1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for gettext-runtime 0.21. 4# 5# Report bugs to <bug-gettext@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 278$0: bug-gettext@gnu.org about your system, including any 279$0: error possibly output before this message. Then install 280$0: a modern shell, or manually run the script under such a 281$0: shell if you do 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='gettext-runtime' 592PACKAGE_TARNAME='gettext-runtime' 593PACKAGE_VERSION='0.21' 594PACKAGE_STRING='gettext-runtime 0.21' 595PACKAGE_BUGREPORT='bug-gettext@gnu.org' 596PACKAGE_URL='' 597 598ac_unique_file="intl/dcigettext.c" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635gl_use_threads_default= 636gl_use_winpthreads_default= 637gt_needs= 638ac_header_list= 639ac_func_list= 640gl_getopt_required=POSIX 641enable_option_checking=no 642ac_subst_vars='gltests_LTLIBOBJS 643gltests_LIBOBJS 644gl_LTLIBOBJS 645gl_LIBOBJS 646am__EXEEXT_FALSE 647am__EXEEXT_TRUE 648LTLIBOBJS 649LIBOBJS 650subdirs 651ENABLE_LIBASPRINTF_FALSE 652ENABLE_LIBASPRINTF_TRUE 653LIBSCHED 654CROSS_COMPILING 655PERL 656INTL_EXPORTS_FLAGS 657WOE32DLL_FALSE 658WOE32DLL_TRUE 659LIBGRT_LTLIBDEPS 660LIBGRT_LIBDEPS 661gltests_WITNESS 662HAVE_FEATURES_H 663NEXT_AS_FIRST_DIRECTIVE_WCHAR_H 664NEXT_WCHAR_H 665LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE 666LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE 667LIBUNISTRING_UNIWIDTH_H 668LIBUNISTRING_UNITYPES_H 669LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE 670LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE 671LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE 672LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE 673LIBUNISTRING_UNISTR_H 674HAVE_UNISTD_H 675NEXT_AS_FIRST_DIRECTIVE_UNISTD_H 676NEXT_UNISTD_H 677UNISTD_H_DEFINES_STRUCT_TIMESPEC 678PTHREAD_H_DEFINES_STRUCT_TIMESPEC 679SYS_TIME_H_DEFINES_STRUCT_TIMESPEC 680TIME_H_DEFINES_STRUCT_TIMESPEC 681NEXT_AS_FIRST_DIRECTIVE_TIME_H 682NEXT_TIME_H 683REPLACE_LOCALTIME 684REPLACE_GMTIME 685GNULIB_GETTIMEOFDAY 686REPLACE_TZSET 687REPLACE_TIMEGM 688REPLACE_STRFTIME 689REPLACE_NANOSLEEP 690REPLACE_MKTIME 691REPLACE_LOCALTIME_R 692REPLACE_CTIME 693HAVE_TIMEZONE_T 694HAVE_TZSET 695HAVE_TIMEGM 696HAVE_STRPTIME 697HAVE_NANOSLEEP 698HAVE_DECL_LOCALTIME_R 699GNULIB_TZSET 700GNULIB_TIME_RZ 701GNULIB_TIME_R 702GNULIB_TIMEGM 703GNULIB_STRPTIME 704GNULIB_STRFTIME 705GNULIB_NANOSLEEP 706GNULIB_LOCALTIME 707GNULIB_MKTIME 708GNULIB_CTIME 709WINDOWS_STAT_INODES 710WINDOWS_64_BIT_OFF_T 711NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H 712NEXT_SYS_TYPES_H 713NEXT_AS_FIRST_DIRECTIVE_STRING_H 714NEXT_STRING_H 715NEXT_AS_FIRST_DIRECTIVE_STDLIB_H 716NEXT_STDLIB_H 717NEXT_AS_FIRST_DIRECTIVE_STDIO_H 718NEXT_STDIO_H 719HAVE__BOOL 720GL_GENERATE_STDBOOL_H_FALSE 721GL_GENERATE_STDBOOL_H_TRUE 722STDBOOL_H 723ASM_SYMBOL_PREFIX 724REPLACE_VSPRINTF 725REPLACE_VSNPRINTF 726REPLACE_VPRINTF 727REPLACE_VFPRINTF 728REPLACE_VDPRINTF 729REPLACE_VASPRINTF 730REPLACE_TMPFILE 731REPLACE_STDIO_WRITE_FUNCS 732REPLACE_STDIO_READ_FUNCS 733REPLACE_SPRINTF 734REPLACE_SNPRINTF 735REPLACE_RENAMEAT 736REPLACE_RENAME 737REPLACE_REMOVE 738REPLACE_PRINTF 739REPLACE_POPEN 740REPLACE_PERROR 741REPLACE_OBSTACK_PRINTF 742REPLACE_GETLINE 743REPLACE_GETDELIM 744REPLACE_FTELLO 745REPLACE_FTELL 746REPLACE_FSEEKO 747REPLACE_FSEEK 748REPLACE_FREOPEN 749REPLACE_FPURGE 750REPLACE_FPRINTF 751REPLACE_FOPEN 752REPLACE_FFLUSH 753REPLACE_FDOPEN 754REPLACE_FCLOSE 755REPLACE_DPRINTF 756HAVE_VDPRINTF 757HAVE_VASPRINTF 758HAVE_RENAMEAT 759HAVE_POPEN 760HAVE_PCLOSE 761HAVE_FTELLO 762HAVE_FSEEKO 763HAVE_DPRINTF 764HAVE_DECL_VSNPRINTF 765HAVE_DECL_SNPRINTF 766HAVE_DECL_OBSTACK_PRINTF 767HAVE_DECL_GETLINE 768HAVE_DECL_GETDELIM 769HAVE_DECL_FTELLO 770HAVE_DECL_FSEEKO 771HAVE_DECL_FPURGE 772GNULIB_VSPRINTF_POSIX 773GNULIB_VSNPRINTF 774GNULIB_VPRINTF_POSIX 775GNULIB_VPRINTF 776GNULIB_VFPRINTF_POSIX 777GNULIB_VFPRINTF 778GNULIB_VDPRINTF 779GNULIB_VSCANF 780GNULIB_VFSCANF 781GNULIB_VASPRINTF 782GNULIB_TMPFILE 783GNULIB_STDIO_H_SIGPIPE 784GNULIB_STDIO_H_NONBLOCKING 785GNULIB_SPRINTF_POSIX 786GNULIB_SNPRINTF 787GNULIB_SCANF 788GNULIB_RENAMEAT 789GNULIB_RENAME 790GNULIB_REMOVE 791GNULIB_PUTS 792GNULIB_PUTCHAR 793GNULIB_PUTC 794GNULIB_PRINTF_POSIX 795GNULIB_PRINTF 796GNULIB_POPEN 797GNULIB_PERROR 798GNULIB_PCLOSE 799GNULIB_OBSTACK_PRINTF_POSIX 800GNULIB_OBSTACK_PRINTF 801GNULIB_GETLINE 802GNULIB_GETDELIM 803GNULIB_GETCHAR 804GNULIB_GETC 805GNULIB_FWRITE 806GNULIB_FTELLO 807GNULIB_FTELL 808GNULIB_FSEEKO 809GNULIB_FSEEK 810GNULIB_FSCANF 811GNULIB_FREOPEN 812GNULIB_FREAD 813GNULIB_FPUTS 814GNULIB_FPUTC 815GNULIB_FPURGE 816GNULIB_FPRINTF_POSIX 817GNULIB_FPRINTF 818GNULIB_FOPEN 819GNULIB_FGETS 820GNULIB_FGETC 821GNULIB_FFLUSH 822GNULIB_FDOPEN 823GNULIB_FCLOSE 824GNULIB_DPRINTF 825NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H 826NEXT_SIGNAL_H 827LIB_SETLOCALE 828RELOCATABLE_STRIP 829RELOCATABLE_BUILD_DIR 830RELOCATABLE_SRC_DIR 831RELOCATABLE_CONFIG_H_DIR 832RELOCATABLE_LIBRARY_PATH 833RELOCATABLE_VIA_WRAPPER_FALSE 834RELOCATABLE_VIA_WRAPPER_TRUE 835RELOCATABLE_VIA_LD_FALSE 836RELOCATABLE_VIA_LD_TRUE 837INSTALL_PROGRAM_ENV 838RELOCATABLE_LDFLAGS 839RELOCATABLE 840REPLACE_RAISE 841REPLACE_PTHREAD_SIGMASK 842HAVE_SIGHANDLER_T 843HAVE_TYPE_VOLATILE_SIG_ATOMIC_T 844HAVE_STRUCT_SIGACTION_SA_SIGACTION 845HAVE_SIGACTION 846HAVE_SIGINFO_T 847HAVE_SIGSET_T 848HAVE_RAISE 849HAVE_PTHREAD_SIGMASK 850HAVE_POSIX_SIGNALBLOCKING 851GNULIB_SIGACTION 852GNULIB_SIGPROCMASK 853GNULIB_SIGNAL_H_SIGPIPE 854GNULIB_RAISE 855GNULIB_PTHREAD_SIGMASK 856UNDEFINE_STRTOK_R 857REPLACE_STRSIGNAL 858REPLACE_STRERROR_R 859REPLACE_STRERROR 860REPLACE_STRTOK_R 861REPLACE_STRCASESTR 862REPLACE_STRSTR 863REPLACE_STRNLEN 864REPLACE_STRNDUP 865REPLACE_STRNCAT 866REPLACE_STRDUP 867REPLACE_STRCHRNUL 868REPLACE_STPNCPY 869REPLACE_MEMMEM 870REPLACE_MEMCHR 871HAVE_STRVERSCMP 872HAVE_DECL_STRSIGNAL 873HAVE_DECL_STRERROR_R 874HAVE_DECL_STRTOK_R 875HAVE_STRCASESTR 876HAVE_STRSEP 877HAVE_STRPBRK 878HAVE_DECL_STRNLEN 879HAVE_DECL_STRNDUP 880HAVE_DECL_STRDUP 881HAVE_STRCHRNUL 882HAVE_STPNCPY 883HAVE_STPCPY 884HAVE_RAWMEMCHR 885HAVE_DECL_MEMRCHR 886HAVE_MEMPCPY 887HAVE_DECL_MEMMEM 888HAVE_FFSLL 889HAVE_FFSL 890HAVE_EXPLICIT_BZERO 891HAVE_MBSLEN 892GNULIB_STRVERSCMP 893GNULIB_STRSIGNAL 894GNULIB_STRERROR_R 895GNULIB_STRERROR 896GNULIB_MBSTOK_R 897GNULIB_MBSSEP 898GNULIB_MBSSPN 899GNULIB_MBSPBRK 900GNULIB_MBSCSPN 901GNULIB_MBSCASESTR 902GNULIB_MBSPCASECMP 903GNULIB_MBSNCASECMP 904GNULIB_MBSCASECMP 905GNULIB_MBSSTR 906GNULIB_MBSRCHR 907GNULIB_MBSCHR 908GNULIB_MBSNLEN 909GNULIB_MBSLEN 910GNULIB_STRTOK_R 911GNULIB_STRCASESTR 912GNULIB_STRSTR 913GNULIB_STRSEP 914GNULIB_STRPBRK 915GNULIB_STRNLEN 916GNULIB_STRNDUP 917GNULIB_STRNCAT 918GNULIB_STRDUP 919GNULIB_STRCHRNUL 920GNULIB_STPNCPY 921GNULIB_STPCPY 922GNULIB_RAWMEMCHR 923GNULIB_MEMRCHR 924GNULIB_MEMPCPY 925GNULIB_MEMMEM 926GNULIB_MEMCHR 927GNULIB_FFSLL 928GNULIB_FFSL 929GNULIB_EXPLICIT_BZERO 930LIB_MBRTOWC 931REPLACE_WCSTOK 932REPLACE_WCSFTIME 933REPLACE_WCSWIDTH 934REPLACE_WCWIDTH 935REPLACE_WCSNRTOMBS 936REPLACE_WCSRTOMBS 937REPLACE_WCRTOMB 938REPLACE_MBSNRTOWCS 939REPLACE_MBSRTOWCS 940REPLACE_MBRLEN 941REPLACE_MBRTOWC 942REPLACE_MBSINIT 943REPLACE_WCTOB 944REPLACE_BTOWC 945REPLACE_MBSTATE_T 946HAVE_DECL_WCWIDTH 947HAVE_DECL_WCTOB 948HAVE_WCSFTIME 949HAVE_WCSWIDTH 950HAVE_WCSTOK 951HAVE_WCSSTR 952HAVE_WCSPBRK 953HAVE_WCSSPN 954HAVE_WCSCSPN 955HAVE_WCSRCHR 956HAVE_WCSCHR 957HAVE_WCSDUP 958HAVE_WCSXFRM 959HAVE_WCSCOLL 960HAVE_WCSNCASECMP 961HAVE_WCSCASECMP 962HAVE_WCSNCMP 963HAVE_WCSCMP 964HAVE_WCSNCAT 965HAVE_WCSCAT 966HAVE_WCPNCPY 967HAVE_WCSNCPY 968HAVE_WCPCPY 969HAVE_WCSCPY 970HAVE_WCSNLEN 971HAVE_WCSLEN 972HAVE_WMEMSET 973HAVE_WMEMPCPY 974HAVE_WMEMMOVE 975HAVE_WMEMCPY 976HAVE_WMEMCMP 977HAVE_WMEMCHR 978HAVE_WCSNRTOMBS 979HAVE_WCSRTOMBS 980HAVE_WCRTOMB 981HAVE_MBSNRTOWCS 982HAVE_MBSRTOWCS 983HAVE_MBRLEN 984HAVE_MBRTOWC 985HAVE_MBSINIT 986HAVE_BTOWC 987GNULIB_WCSFTIME 988GNULIB_WCSWIDTH 989GNULIB_WCSTOK 990GNULIB_WCSSTR 991GNULIB_WCSPBRK 992GNULIB_WCSSPN 993GNULIB_WCSCSPN 994GNULIB_WCSRCHR 995GNULIB_WCSCHR 996GNULIB_WCSDUP 997GNULIB_WCSXFRM 998GNULIB_WCSCOLL 999GNULIB_WCSNCASECMP 1000GNULIB_WCSCASECMP 1001GNULIB_WCSNCMP 1002GNULIB_WCSCMP 1003GNULIB_WCSNCAT 1004GNULIB_WCSCAT 1005GNULIB_WCPNCPY 1006GNULIB_WCSNCPY 1007GNULIB_WCPCPY 1008GNULIB_WCSCPY 1009GNULIB_WCSNLEN 1010GNULIB_WCSLEN 1011GNULIB_WMEMSET 1012GNULIB_WMEMPCPY 1013GNULIB_WMEMMOVE 1014GNULIB_WMEMCPY 1015GNULIB_WMEMCMP 1016GNULIB_WMEMCHR 1017GNULIB_WCWIDTH 1018GNULIB_WCSNRTOMBS 1019GNULIB_WCSRTOMBS 1020GNULIB_WCRTOMB 1021GNULIB_MBSNRTOWCS 1022GNULIB_MBSRTOWCS 1023GNULIB_MBRLEN 1024GNULIB_MBRTOWC 1025GNULIB_MBSINIT 1026GNULIB_WCTOB 1027GNULIB_BTOWC 1028NEXT_AS_FIRST_DIRECTIVE_LOCALE_H 1029NEXT_LOCALE_H 1030HAVE_XLOCALE_H 1031NEXT_AS_FIRST_DIRECTIVE_STDDEF_H 1032NEXT_STDDEF_H 1033GL_GENERATE_STDDEF_H_FALSE 1034GL_GENERATE_STDDEF_H_TRUE 1035STDDEF_H 1036HAVE_WCHAR_T 1037HAVE_MAX_ALIGN_T 1038REPLACE_NULL 1039REPLACE_STRUCT_LCONV 1040REPLACE_FREELOCALE 1041REPLACE_DUPLOCALE 1042REPLACE_NEWLOCALE 1043REPLACE_SETLOCALE 1044REPLACE_LOCALECONV 1045HAVE_FREELOCALE 1046HAVE_DUPLOCALE 1047GNULIB_LOCALENAME 1048GNULIB_DUPLOCALE 1049GNULIB_SETLOCALE_NULL 1050GNULIB_SETLOCALE 1051GNULIB_LOCALECONV 1052LOCALCHARSET_TESTS_ENVIRONMENT 1053HAVE_LANGINFO_YESEXPR 1054HAVE_LANGINFO_ERA 1055HAVE_LANGINFO_ALTMON 1056HAVE_LANGINFO_T_FMT_AMPM 1057HAVE_LANGINFO_CODESET 1058HAVE_LANGINFO_H 1059NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H 1060NEXT_LANGINFO_H 1061REPLACE_NL_LANGINFO 1062HAVE_NL_LANGINFO 1063GNULIB_NL_LANGINFO 1064LOCALE_ZH_CN 1065LOCALE_FR_UTF8 1066LOCALE_JA 1067LOCALE_FR 1068REPLACE_TOWLOWER 1069REPLACE_ISWCNTRL 1070HAVE_WCTYPE_H 1071NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H 1072NEXT_WCTYPE_H 1073HAVE_CRTDEFS_H 1074HAVE_WINT_T 1075HAVE_ISWCNTRL 1076REPLACE_ISWXDIGIT 1077REPLACE_ISWDIGIT 1078REPLACE_ISWBLANK 1079HAVE_WCTRANS_T 1080HAVE_WCTYPE_T 1081HAVE_ISWBLANK 1082GNULIB_TOWCTRANS 1083GNULIB_WCTRANS 1084GNULIB_ISWCTYPE 1085GNULIB_WCTYPE 1086GNULIB_ISWXDIGIT 1087GNULIB_ISWDIGIT 1088GNULIB_ISWBLANK 1089NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H 1090NEXT_INTTYPES_H 1091UINT64_MAX_EQ_ULONG_MAX 1092UINT32_MAX_LT_UINTMAX_MAX 1093PRIPTR_PREFIX 1094INT64_MAX_EQ_LONG_MAX 1095INT32_MAX_LT_INTMAX_MAX 1096REPLACE_STRTOUMAX 1097REPLACE_STRTOIMAX 1098HAVE_IMAXDIV_T 1099HAVE_DECL_STRTOUMAX 1100HAVE_DECL_STRTOIMAX 1101HAVE_DECL_IMAXDIV 1102HAVE_DECL_IMAXABS 1103GNULIB_STRTOUMAX 1104GNULIB_STRTOIMAX 1105GNULIB_IMAXDIV 1106GNULIB_IMAXABS 1107GL_GENERATE_STDINT_H_FALSE 1108GL_GENERATE_STDINT_H_TRUE 1109STDINT_H 1110HAVE_SYS_INTTYPES_H 1111HAVE_SYS_BITYPES_H 1112HAVE_C99_STDINT_H 1113WINT_T_SUFFIX 1114WCHAR_T_SUFFIX 1115SIG_ATOMIC_T_SUFFIX 1116SIZE_T_SUFFIX 1117PTRDIFF_T_SUFFIX 1118HAVE_SIGNED_WINT_T 1119HAVE_SIGNED_WCHAR_T 1120HAVE_SIGNED_SIG_ATOMIC_T 1121BITSIZEOF_WINT_T 1122BITSIZEOF_WCHAR_T 1123BITSIZEOF_SIG_ATOMIC_T 1124BITSIZEOF_SIZE_T 1125BITSIZEOF_PTRDIFF_T 1126APPLE_UNIVERSAL_BUILD 1127HAVE_STDINT_H 1128NEXT_AS_FIRST_DIRECTIVE_STDINT_H 1129NEXT_STDINT_H 1130HAVE_SYS_TYPES_H 1131HAVE_INTTYPES_H 1132HAVE_WCHAR_H 1133GL_GENERATE_LIMITS_H_FALSE 1134GL_GENERATE_LIMITS_H_TRUE 1135LIMITS_H 1136NEXT_AS_FIRST_DIRECTIVE_LIMITS_H 1137NEXT_LIMITS_H 1138NEXT_AS_FIRST_DIRECTIVE_ICONV_H 1139NEXT_ICONV_H 1140LIB_HARD_LOCALE 1141LIB_SETLOCALE_NULL 1142GNULIB_GL_UNISTD_H_GETOPT 1143GETOPT_CDEFS_H 1144GETOPT_H 1145HAVE_SYS_CDEFS_H 1146HAVE_GETOPT_H 1147NEXT_AS_FIRST_DIRECTIVE_GETOPT_H 1148NEXT_GETOPT_H 1149WINDOWS_64_BIT_ST_SIZE 1150WINDOWS_STAT_TIMESPEC 1151NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H 1152NEXT_SYS_STAT_H 1153REPLACE_UTIMENSAT 1154REPLACE_STAT 1155REPLACE_MKNOD 1156REPLACE_MKFIFO 1157REPLACE_MKDIR 1158REPLACE_LSTAT 1159REPLACE_FUTIMENS 1160REPLACE_FSTATAT 1161REPLACE_FSTAT 1162REPLACE_FCHMODAT 1163HAVE_UTIMENSAT 1164HAVE_MKNODAT 1165HAVE_MKNOD 1166HAVE_MKFIFOAT 1167HAVE_MKFIFO 1168HAVE_MKDIRAT 1169HAVE_LSTAT 1170HAVE_LCHMOD 1171HAVE_GETUMASK 1172HAVE_FUTIMENS 1173HAVE_FSTATAT 1174HAVE_FCHMODAT 1175GNULIB_OVERRIDES_STRUCT_STAT 1176GNULIB_UTIMENSAT 1177GNULIB_STAT 1178GNULIB_MKNODAT 1179GNULIB_MKNOD 1180GNULIB_MKFIFOAT 1181GNULIB_MKFIFO 1182GNULIB_MKDIRAT 1183GNULIB_LSTAT 1184GNULIB_LCHMOD 1185GNULIB_GETUMASK 1186GNULIB_FUTIMENS 1187GNULIB_FSTATAT 1188GNULIB_FSTAT 1189GNULIB_FCHMODAT 1190NEXT_AS_FIRST_DIRECTIVE_FCNTL_H 1191NEXT_FCNTL_H 1192REPLACE_OPENAT 1193REPLACE_OPEN 1194REPLACE_FCNTL 1195REPLACE_CREAT 1196HAVE_OPENAT 1197HAVE_FCNTL 1198GNULIB_OPENAT 1199GNULIB_OPEN 1200GNULIB_NONBLOCKING 1201GNULIB_FCNTL 1202GNULIB_CREAT 1203EOVERFLOW_VALUE 1204EOVERFLOW_HIDDEN 1205ENOLINK_VALUE 1206ENOLINK_HIDDEN 1207EMULTIHOP_VALUE 1208EMULTIHOP_HIDDEN 1209GL_GENERATE_ERRNO_H_FALSE 1210GL_GENERATE_ERRNO_H_TRUE 1211ERRNO_H 1212NEXT_AS_FIRST_DIRECTIVE_ERRNO_H 1213NEXT_ERRNO_H 1214PRAGMA_COLUMNS 1215PRAGMA_SYSTEM_HEADER 1216INCLUDE_NEXT_AS_FIRST_DIRECTIVE 1217INCLUDE_NEXT 1218HAVE_WINSOCK2_H 1219HAVE_MSVC_INVALID_PARAMETER_HANDLER 1220UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS 1221UNISTD_H_HAVE_WINSOCK2_H 1222UNISTD_H_HAVE_SYS_RANDOM_H 1223REPLACE_WRITE 1224REPLACE_USLEEP 1225REPLACE_UNLINKAT 1226REPLACE_UNLINK 1227REPLACE_TTYNAME_R 1228REPLACE_TRUNCATE 1229REPLACE_SYMLINKAT 1230REPLACE_SYMLINK 1231REPLACE_SLEEP 1232REPLACE_RMDIR 1233REPLACE_READLINKAT 1234REPLACE_READLINK 1235REPLACE_READ 1236REPLACE_PWRITE 1237REPLACE_PREAD 1238REPLACE_LSEEK 1239REPLACE_LINKAT 1240REPLACE_LINK 1241REPLACE_LCHOWN 1242REPLACE_ISATTY 1243REPLACE_GETPASS 1244REPLACE_GETPAGESIZE 1245REPLACE_GETGROUPS 1246REPLACE_GETLOGIN_R 1247REPLACE_GETDTABLESIZE 1248REPLACE_GETDOMAINNAME 1249REPLACE_GETCWD 1250REPLACE_FTRUNCATE 1251REPLACE_FCHOWNAT 1252REPLACE_FACCESSAT 1253REPLACE_DUP2 1254REPLACE_DUP 1255REPLACE_CLOSE 1256REPLACE_CHOWN 1257REPLACE_ACCESS 1258HAVE_SYS_PARAM_H 1259HAVE_OS_H 1260HAVE_DECL_TTYNAME_R 1261HAVE_DECL_TRUNCATE 1262HAVE_DECL_SETHOSTNAME 1263HAVE_DECL_GETUSERSHELL 1264HAVE_DECL_GETPAGESIZE 1265HAVE_DECL_GETLOGIN_R 1266HAVE_DECL_GETLOGIN 1267HAVE_DECL_GETDOMAINNAME 1268HAVE_DECL_FDATASYNC 1269HAVE_DECL_FCHDIR 1270HAVE_DECL_ENVIRON 1271HAVE_USLEEP 1272HAVE_UNLINKAT 1273HAVE_SYMLINKAT 1274HAVE_SYMLINK 1275HAVE_SLEEP 1276HAVE_SETHOSTNAME 1277HAVE_READLINKAT 1278HAVE_READLINK 1279HAVE_PWRITE 1280HAVE_PREAD 1281HAVE_PIPE2 1282HAVE_PIPE 1283HAVE_LINKAT 1284HAVE_LINK 1285HAVE_LCHOWN 1286HAVE_GROUP_MEMBER 1287HAVE_GETPASS 1288HAVE_GETPAGESIZE 1289HAVE_GETLOGIN 1290HAVE_GETHOSTNAME 1291HAVE_GETGROUPS 1292HAVE_GETENTROPY 1293HAVE_GETDTABLESIZE 1294HAVE_FTRUNCATE 1295HAVE_FSYNC 1296HAVE_FDATASYNC 1297HAVE_FCHOWNAT 1298HAVE_FCHDIR 1299HAVE_FACCESSAT 1300HAVE_EUIDACCESS 1301HAVE_DUP3 1302HAVE_COPY_FILE_RANGE 1303HAVE_CHOWN 1304GNULIB_WRITE 1305GNULIB_USLEEP 1306GNULIB_UNLINKAT 1307GNULIB_UNLINK 1308GNULIB_UNISTD_H_SIGPIPE 1309GNULIB_UNISTD_H_NONBLOCKING 1310GNULIB_TTYNAME_R 1311GNULIB_TRUNCATE 1312GNULIB_SYMLINKAT 1313GNULIB_SYMLINK 1314GNULIB_SLEEP 1315GNULIB_SETHOSTNAME 1316GNULIB_RMDIR 1317GNULIB_READLINKAT 1318GNULIB_READLINK 1319GNULIB_READ 1320GNULIB_PWRITE 1321GNULIB_PREAD 1322GNULIB_PIPE2 1323GNULIB_PIPE 1324GNULIB_LSEEK 1325GNULIB_LINKAT 1326GNULIB_LINK 1327GNULIB_LCHOWN 1328GNULIB_ISATTY 1329GNULIB_GROUP_MEMBER 1330GNULIB_GETUSERSHELL 1331GNULIB_GETPASS 1332GNULIB_GETPAGESIZE 1333GNULIB_GETOPT_POSIX 1334GNULIB_GETLOGIN_R 1335GNULIB_GETLOGIN 1336GNULIB_GETHOSTNAME 1337GNULIB_GETGROUPS 1338GNULIB_GETENTROPY 1339GNULIB_GETDTABLESIZE 1340GNULIB_GETDOMAINNAME 1341GNULIB_GETCWD 1342GNULIB_FTRUNCATE 1343GNULIB_FSYNC 1344GNULIB_FDATASYNC 1345GNULIB_FCHOWNAT 1346GNULIB_FCHDIR 1347GNULIB_FACCESSAT 1348GNULIB_EUIDACCESS 1349GNULIB_ENVIRON 1350GNULIB_DUP3 1351GNULIB_DUP2 1352GNULIB_DUP 1353GNULIB_COPY_FILE_RANGE 1354GNULIB_CLOSE 1355GNULIB_CHOWN 1356GNULIB_CHDIR 1357GNULIB_ACCESS 1358REPLACE_WCTOMB 1359REPLACE_UNSETENV 1360REPLACE_STRTOLD 1361REPLACE_STRTOD 1362REPLACE_SETSTATE 1363REPLACE_SETENV 1364REPLACE_REALPATH 1365REPLACE_REALLOC 1366REPLACE_RANDOM_R 1367REPLACE_RANDOM 1368REPLACE_QSORT_R 1369REPLACE_PUTENV 1370REPLACE_PTSNAME_R 1371REPLACE_PTSNAME 1372REPLACE_MKSTEMP 1373REPLACE_MBTOWC 1374REPLACE_MALLOC 1375REPLACE_INITSTATE 1376REPLACE_CANONICALIZE_FILE_NAME 1377REPLACE_CALLOC 1378HAVE_DECL_UNSETENV 1379HAVE_UNLOCKPT 1380HAVE_SYS_LOADAVG_H 1381HAVE_STRUCT_RANDOM_DATA 1382HAVE_STRTOULL 1383HAVE_STRTOLL 1384HAVE_STRTOLD 1385HAVE_STRTOD 1386HAVE_DECL_SETSTATE 1387HAVE_SETSTATE 1388HAVE_DECL_SETENV 1389HAVE_SETENV 1390HAVE_SECURE_GETENV 1391HAVE_RPMATCH 1392HAVE_REALPATH 1393HAVE_REALLOCARRAY 1394HAVE_RANDOM_R 1395HAVE_RANDOM_H 1396HAVE_RANDOM 1397HAVE_QSORT_R 1398HAVE_PTSNAME_R 1399HAVE_PTSNAME 1400HAVE_POSIX_OPENPT 1401HAVE_MKSTEMPS 1402HAVE_MKSTEMP 1403HAVE_MKOSTEMPS 1404HAVE_MKOSTEMP 1405HAVE_MKDTEMP 1406HAVE_MBTOWC 1407HAVE_DECL_INITSTATE 1408HAVE_INITSTATE 1409HAVE_GRANTPT 1410HAVE_GETSUBOPT 1411HAVE_DECL_GETLOADAVG 1412HAVE_CANONICALIZE_FILE_NAME 1413HAVE_ATOLL 1414HAVE__EXIT 1415GNULIB_WCTOMB 1416GNULIB_UNSETENV 1417GNULIB_UNLOCKPT 1418GNULIB_SYSTEM_POSIX 1419GNULIB_STRTOULL 1420GNULIB_STRTOLL 1421GNULIB_STRTOLD 1422GNULIB_STRTOD 1423GNULIB_SETENV 1424GNULIB_SECURE_GETENV 1425GNULIB_RPMATCH 1426GNULIB_REALPATH 1427GNULIB_REALLOC_POSIX 1428GNULIB_REALLOCARRAY 1429GNULIB_RANDOM_R 1430GNULIB_RANDOM 1431GNULIB_QSORT_R 1432GNULIB_PUTENV 1433GNULIB_PTSNAME_R 1434GNULIB_PTSNAME 1435GNULIB_POSIX_OPENPT 1436GNULIB_MKSTEMPS 1437GNULIB_MKSTEMP 1438GNULIB_MKOSTEMPS 1439GNULIB_MKOSTEMP 1440GNULIB_MKDTEMP 1441GNULIB_MBTOWC 1442GNULIB_MALLOC_POSIX 1443GNULIB_GRANTPT 1444GNULIB_GETSUBOPT 1445GNULIB_GETLOADAVG 1446GNULIB_CANONICALIZE_FILE_NAME 1447GNULIB_CALLOC_POSIX 1448GNULIB_ATOLL 1449GNULIB__EXIT 1450HAVE_ALLOCA_H 1451GL_GENERATE_ALLOCA_H_FALSE 1452GL_GENERATE_ALLOCA_H_TRUE 1453ALLOCA_H 1454GL_COND_LIBTOOL_FALSE 1455GL_COND_LIBTOOL_TRUE 1456PRELOADABLE_LIBINTL_FALSE 1457PRELOADABLE_LIBINTL_TRUE 1458PACKAGE_IS_GETTEXT_TOOLS_FALSE 1459PACKAGE_IS_GETTEXT_TOOLS_TRUE 1460BUILD_INCLUDED_LIBINTL_FALSE 1461BUILD_INCLUDED_LIBINTL_TRUE 1462USE_INCLUDED_LIBINTL_FALSE 1463USE_INCLUDED_LIBINTL_TRUE 1464POSUB 1465LTLIBINTL 1466LIBINTL 1467INTLLIBS 1468CATOBJEXT 1469USE_INCLUDED_LIBINTL 1470BUILD_INCLUDED_LIBINTL 1471WINDRES 1472WOE32 1473WOE32DLL 1474HAVE_NAMELESS_LOCALES 1475HAVE_WPRINTF 1476HAVE_NEWLOCALE 1477HAVE_SNPRINTF 1478HAVE_ASPRINTF 1479HAVE_POSIX_PRINTF 1480INTL_DEFAULT_VERBOSITY 1481INTL_MACOSX_LIBS 1482GLIBC21 1483GNULIB_OVERRIDES_WINT_T 1484INTLBISON 1485GL_GENERATE_ICONV_H_FALSE 1486GL_GENERATE_ICONV_H_TRUE 1487ICONV_H 1488REPLACE_ICONV_UTF 1489REPLACE_ICONV_OPEN 1490REPLACE_ICONV 1491ICONV_CONST 1492GNULIB_ICONV 1493am__fastdepCXX_FALSE 1494am__fastdepCXX_TRUE 1495CXXDEPMODE 1496ANSICXX_FALSE 1497ANSICXX_TRUE 1498CXXFLAGS 1499ac_ct_CXX 1500CXX 1501CXX_CHOICE 1502LTLIBICONV 1503LIBICONV 1504LTLIBMULTITHREAD 1505LIBMULTITHREAD 1506LTLIBTHREAD 1507LIBTHREAD 1508LIBSTDTHREAD 1509LIB_SCHED_YIELD 1510LIBPMULTITHREAD 1511LIBPTHREAD 1512ALLOCA 1513HAVE_VISIBILITY 1514CFLAG_VISIBILITY 1515GLIBC2 1516XGETTEXT_EXTRA_OPTIONS 1517MSGMERGE_FOR_MSGFMT_OPTION 1518MSGMERGE 1519XGETTEXT_015 1520XGETTEXT 1521GMSGFMT_015 1522GMSGFMT 1523MSGFMT 1524GETTEXT_MACRO_VERSION 1525USE_NLS 1526WINDOWS_NATIVE_FALSE 1527WINDOWS_NATIVE_TRUE 1528WOE32_FALSE 1529WOE32_TRUE 1530RC 1531LT_SYS_LIBRARY_PATH 1532OTOOL64 1533OTOOL 1534LIPO 1535NMEDIT 1536DSYMUTIL 1537MANIFEST_TOOL 1538ac_ct_AR 1539LN_S 1540NM 1541ac_ct_DUMPBIN 1542DUMPBIN 1543LD 1544FGREP 1545SED 1546LIBTOOL 1547OBJDUMP 1548DLLTOOL 1549AS 1550RANLIB 1551ARFLAGS 1552AR 1553host_os 1554host_vendor 1555host_cpu 1556host 1557build_os 1558build_vendor 1559build_cpu 1560build 1561BUILDCSHARP 1562CSHARPCOMPFLAGS 1563HAVE_CSC 1564HAVE_MCS 1565HAVE_CSC_IN_PATH 1566HAVE_MCS_IN_PATH 1567CSHARP_CHOICE 1568BUILDJAVA 1569JAR 1570HAVE_JIKES 1571HAVE_JAVAC 1572HAVE_GCJ_C 1573HAVE_JAVAC_ENVVAR 1574CLASSPATH_SEPARATOR 1575CLASSPATH 1576CONF_JAVAC 1577HAVE_JIKES_IN_PATH 1578HAVE_JAVAC_IN_PATH 1579HAVE_GCJ_IN_PATH 1580EGREP 1581GREP 1582CPP 1583JAVA_CHOICE 1584am__fastdepCC_FALSE 1585am__fastdepCC_TRUE 1586CCDEPMODE 1587am__nodep 1588AMDEPBACKSLASH 1589AMDEP_FALSE 1590AMDEP_TRUE 1591am__include 1592DEPDIR 1593OBJEXT 1594EXEEXT 1595ac_ct_CC 1596CPPFLAGS 1597LDFLAGS 1598CFLAGS 1599CC 1600AM_BACKSLASH 1601AM_DEFAULT_VERBOSITY 1602AM_DEFAULT_V 1603AM_V 1604am__untar 1605am__tar 1606AMTAR 1607am__leading_dot 1608SET_MAKE 1609AWK 1610mkdir_p 1611MKDIR_P 1612INSTALL_STRIP_PROGRAM 1613STRIP 1614install_sh 1615MAKEINFO 1616AUTOHEADER 1617AUTOMAKE 1618AUTOCONF 1619ACLOCAL 1620VERSION 1621PACKAGE 1622CYGPATH_W 1623am__isrc 1624INSTALL_DATA 1625INSTALL_SCRIPT 1626INSTALL_PROGRAM 1627target_alias 1628host_alias 1629build_alias 1630LIBS 1631ECHO_T 1632ECHO_N 1633ECHO_C 1634DEFS 1635mandir 1636localedir 1637libdir 1638psdir 1639pdfdir 1640dvidir 1641htmldir 1642infodir 1643docdir 1644oldincludedir 1645includedir 1646localstatedir 1647sharedstatedir 1648sysconfdir 1649datadir 1650datarootdir 1651libexecdir 1652sbindir 1653bindir 1654program_transform_name 1655prefix 1656exec_prefix 1657PACKAGE_URL 1658PACKAGE_BUGREPORT 1659PACKAGE_STRING 1660PACKAGE_VERSION 1661PACKAGE_TARNAME 1662PACKAGE_NAME 1663PATH_SEPARATOR 1664SHELL 1665am__quote' 1666ac_subst_files='' 1667ac_user_opts=' 1668enable_option_checking 1669enable_silent_rules 1670enable_dependency_tracking 1671enable_java 1672enable_csharp 1673enable_largefile 1674enable_threads 1675enable_shared 1676enable_static 1677with_pic 1678enable_fast_install 1679with_aix_soname 1680with_gnu_ld 1681with_sysroot 1682enable_libtool_lock 1683enable_nls 1684enable_rpath 1685with_libiconv_prefix 1686enable_c__ 1687with_included_gettext 1688with_libintl_prefix 1689enable_cross_guesses 1690enable_relocatable 1691enable_libasprintf 1692' 1693 ac_precious_vars='build_alias 1694host_alias 1695target_alias 1696CC 1697CFLAGS 1698LDFLAGS 1699LIBS 1700CPPFLAGS 1701CPP 1702LT_SYS_LIBRARY_PATH 1703CXX 1704CXXFLAGS' 1705ac_subdirs_all='libasprintf' 1706 1707# Initialize some variables set by options. 1708ac_init_help= 1709ac_init_version=false 1710ac_unrecognized_opts= 1711ac_unrecognized_sep= 1712# The variables have the same names as the options, with 1713# dashes changed to underlines. 1714cache_file=/dev/null 1715exec_prefix=NONE 1716no_create= 1717no_recursion= 1718prefix=NONE 1719program_prefix=NONE 1720program_suffix=NONE 1721program_transform_name=s,x,x, 1722silent= 1723site= 1724srcdir= 1725verbose= 1726x_includes=NONE 1727x_libraries=NONE 1728 1729# Installation directory options. 1730# These are left unexpanded so users can "make install exec_prefix=/foo" 1731# and all the variables that are supposed to be based on exec_prefix 1732# by default will actually change. 1733# Use braces instead of parens because sh, perl, etc. also accept them. 1734# (The list follows the same order as the GNU Coding Standards.) 1735bindir='${exec_prefix}/bin' 1736sbindir='${exec_prefix}/sbin' 1737libexecdir='${exec_prefix}/libexec' 1738datarootdir='${prefix}/share' 1739datadir='${datarootdir}' 1740sysconfdir='${prefix}/etc' 1741sharedstatedir='${prefix}/com' 1742localstatedir='${prefix}/var' 1743includedir='${prefix}/include' 1744oldincludedir='/usr/include' 1745docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1746infodir='${datarootdir}/info' 1747htmldir='${docdir}' 1748dvidir='${docdir}' 1749pdfdir='${docdir}' 1750psdir='${docdir}' 1751libdir='${exec_prefix}/lib' 1752localedir='${datarootdir}/locale' 1753mandir='${datarootdir}/man' 1754 1755ac_prev= 1756ac_dashdash= 1757for ac_option 1758do 1759 # If the previous option needs an argument, assign it. 1760 if test -n "$ac_prev"; then 1761 eval $ac_prev=\$ac_option 1762 ac_prev= 1763 continue 1764 fi 1765 1766 case $ac_option in 1767 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1768 *=) ac_optarg= ;; 1769 *) ac_optarg=yes ;; 1770 esac 1771 1772 # Accept the important Cygnus configure options, so we can diagnose typos. 1773 1774 case $ac_dashdash$ac_option in 1775 --) 1776 ac_dashdash=yes ;; 1777 1778 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1779 ac_prev=bindir ;; 1780 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1781 bindir=$ac_optarg ;; 1782 1783 -build | --build | --buil | --bui | --bu) 1784 ac_prev=build_alias ;; 1785 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1786 build_alias=$ac_optarg ;; 1787 1788 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1789 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1790 ac_prev=cache_file ;; 1791 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1792 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1793 cache_file=$ac_optarg ;; 1794 1795 --config-cache | -C) 1796 cache_file=config.cache ;; 1797 1798 -datadir | --datadir | --datadi | --datad) 1799 ac_prev=datadir ;; 1800 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1801 datadir=$ac_optarg ;; 1802 1803 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1804 | --dataroo | --dataro | --datar) 1805 ac_prev=datarootdir ;; 1806 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1807 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1808 datarootdir=$ac_optarg ;; 1809 1810 -disable-* | --disable-*) 1811 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1812 # Reject names that are not valid shell variable names. 1813 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1814 as_fn_error $? "invalid feature name: $ac_useropt" 1815 ac_useropt_orig=$ac_useropt 1816 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1817 case $ac_user_opts in 1818 *" 1819"enable_$ac_useropt" 1820"*) ;; 1821 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1822 ac_unrecognized_sep=', ';; 1823 esac 1824 eval enable_$ac_useropt=no ;; 1825 1826 -docdir | --docdir | --docdi | --doc | --do) 1827 ac_prev=docdir ;; 1828 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1829 docdir=$ac_optarg ;; 1830 1831 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1832 ac_prev=dvidir ;; 1833 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1834 dvidir=$ac_optarg ;; 1835 1836 -enable-* | --enable-*) 1837 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1838 # Reject names that are not valid shell variable names. 1839 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1840 as_fn_error $? "invalid feature name: $ac_useropt" 1841 ac_useropt_orig=$ac_useropt 1842 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1843 case $ac_user_opts in 1844 *" 1845"enable_$ac_useropt" 1846"*) ;; 1847 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1848 ac_unrecognized_sep=', ';; 1849 esac 1850 eval enable_$ac_useropt=\$ac_optarg ;; 1851 1852 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1853 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1854 | --exec | --exe | --ex) 1855 ac_prev=exec_prefix ;; 1856 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1857 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1858 | --exec=* | --exe=* | --ex=*) 1859 exec_prefix=$ac_optarg ;; 1860 1861 -gas | --gas | --ga | --g) 1862 # Obsolete; use --with-gas. 1863 with_gas=yes ;; 1864 1865 -help | --help | --hel | --he | -h) 1866 ac_init_help=long ;; 1867 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1868 ac_init_help=recursive ;; 1869 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1870 ac_init_help=short ;; 1871 1872 -host | --host | --hos | --ho) 1873 ac_prev=host_alias ;; 1874 -host=* | --host=* | --hos=* | --ho=*) 1875 host_alias=$ac_optarg ;; 1876 1877 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1878 ac_prev=htmldir ;; 1879 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1880 | --ht=*) 1881 htmldir=$ac_optarg ;; 1882 1883 -includedir | --includedir | --includedi | --included | --include \ 1884 | --includ | --inclu | --incl | --inc) 1885 ac_prev=includedir ;; 1886 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1887 | --includ=* | --inclu=* | --incl=* | --inc=*) 1888 includedir=$ac_optarg ;; 1889 1890 -infodir | --infodir | --infodi | --infod | --info | --inf) 1891 ac_prev=infodir ;; 1892 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1893 infodir=$ac_optarg ;; 1894 1895 -libdir | --libdir | --libdi | --libd) 1896 ac_prev=libdir ;; 1897 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1898 libdir=$ac_optarg ;; 1899 1900 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1901 | --libexe | --libex | --libe) 1902 ac_prev=libexecdir ;; 1903 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1904 | --libexe=* | --libex=* | --libe=*) 1905 libexecdir=$ac_optarg ;; 1906 1907 -localedir | --localedir | --localedi | --localed | --locale) 1908 ac_prev=localedir ;; 1909 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1910 localedir=$ac_optarg ;; 1911 1912 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1913 | --localstate | --localstat | --localsta | --localst | --locals) 1914 ac_prev=localstatedir ;; 1915 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1916 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1917 localstatedir=$ac_optarg ;; 1918 1919 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1920 ac_prev=mandir ;; 1921 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1922 mandir=$ac_optarg ;; 1923 1924 -nfp | --nfp | --nf) 1925 # Obsolete; use --without-fp. 1926 with_fp=no ;; 1927 1928 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1929 | --no-cr | --no-c | -n) 1930 no_create=yes ;; 1931 1932 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1933 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1934 no_recursion=yes ;; 1935 1936 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1937 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1938 | --oldin | --oldi | --old | --ol | --o) 1939 ac_prev=oldincludedir ;; 1940 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1941 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1942 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1943 oldincludedir=$ac_optarg ;; 1944 1945 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1946 ac_prev=prefix ;; 1947 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1948 prefix=$ac_optarg ;; 1949 1950 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1951 | --program-pre | --program-pr | --program-p) 1952 ac_prev=program_prefix ;; 1953 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1954 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1955 program_prefix=$ac_optarg ;; 1956 1957 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1958 | --program-suf | --program-su | --program-s) 1959 ac_prev=program_suffix ;; 1960 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1961 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1962 program_suffix=$ac_optarg ;; 1963 1964 -program-transform-name | --program-transform-name \ 1965 | --program-transform-nam | --program-transform-na \ 1966 | --program-transform-n | --program-transform- \ 1967 | --program-transform | --program-transfor \ 1968 | --program-transfo | --program-transf \ 1969 | --program-trans | --program-tran \ 1970 | --progr-tra | --program-tr | --program-t) 1971 ac_prev=program_transform_name ;; 1972 -program-transform-name=* | --program-transform-name=* \ 1973 | --program-transform-nam=* | --program-transform-na=* \ 1974 | --program-transform-n=* | --program-transform-=* \ 1975 | --program-transform=* | --program-transfor=* \ 1976 | --program-transfo=* | --program-transf=* \ 1977 | --program-trans=* | --program-tran=* \ 1978 | --progr-tra=* | --program-tr=* | --program-t=*) 1979 program_transform_name=$ac_optarg ;; 1980 1981 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1982 ac_prev=pdfdir ;; 1983 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1984 pdfdir=$ac_optarg ;; 1985 1986 -psdir | --psdir | --psdi | --psd | --ps) 1987 ac_prev=psdir ;; 1988 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1989 psdir=$ac_optarg ;; 1990 1991 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1992 | -silent | --silent | --silen | --sile | --sil) 1993 silent=yes ;; 1994 1995 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1996 ac_prev=sbindir ;; 1997 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1998 | --sbi=* | --sb=*) 1999 sbindir=$ac_optarg ;; 2000 2001 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 2002 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 2003 | --sharedst | --shareds | --shared | --share | --shar \ 2004 | --sha | --sh) 2005 ac_prev=sharedstatedir ;; 2006 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 2007 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 2008 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 2009 | --sha=* | --sh=*) 2010 sharedstatedir=$ac_optarg ;; 2011 2012 -site | --site | --sit) 2013 ac_prev=site ;; 2014 -site=* | --site=* | --sit=*) 2015 site=$ac_optarg ;; 2016 2017 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 2018 ac_prev=srcdir ;; 2019 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 2020 srcdir=$ac_optarg ;; 2021 2022 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 2023 | --syscon | --sysco | --sysc | --sys | --sy) 2024 ac_prev=sysconfdir ;; 2025 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 2026 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 2027 sysconfdir=$ac_optarg ;; 2028 2029 -target | --target | --targe | --targ | --tar | --ta | --t) 2030 ac_prev=target_alias ;; 2031 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 2032 target_alias=$ac_optarg ;; 2033 2034 -v | -verbose | --verbose | --verbos | --verbo | --verb) 2035 verbose=yes ;; 2036 2037 -version | --version | --versio | --versi | --vers | -V) 2038 ac_init_version=: ;; 2039 2040 -with-* | --with-*) 2041 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 2042 # Reject names that are not valid shell variable names. 2043 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 2044 as_fn_error $? "invalid package name: $ac_useropt" 2045 ac_useropt_orig=$ac_useropt 2046 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 2047 case $ac_user_opts in 2048 *" 2049"with_$ac_useropt" 2050"*) ;; 2051 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 2052 ac_unrecognized_sep=', ';; 2053 esac 2054 eval with_$ac_useropt=\$ac_optarg ;; 2055 2056 -without-* | --without-*) 2057 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 2058 # Reject names that are not valid shell variable names. 2059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 2060 as_fn_error $? "invalid package name: $ac_useropt" 2061 ac_useropt_orig=$ac_useropt 2062 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 2063 case $ac_user_opts in 2064 *" 2065"with_$ac_useropt" 2066"*) ;; 2067 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 2068 ac_unrecognized_sep=', ';; 2069 esac 2070 eval with_$ac_useropt=no ;; 2071 2072 --x) 2073 # Obsolete; use --with-x. 2074 with_x=yes ;; 2075 2076 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 2077 | --x-incl | --x-inc | --x-in | --x-i) 2078 ac_prev=x_includes ;; 2079 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 2080 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 2081 x_includes=$ac_optarg ;; 2082 2083 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 2084 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 2085 ac_prev=x_libraries ;; 2086 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 2087 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 2088 x_libraries=$ac_optarg ;; 2089 2090 -*) as_fn_error $? "unrecognized option: \`$ac_option' 2091Try \`$0 --help' for more information" 2092 ;; 2093 2094 *=*) 2095 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 2096 # Reject names that are not valid shell variable names. 2097 case $ac_envvar in #( 2098 '' | [0-9]* | *[!_$as_cr_alnum]* ) 2099 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 2100 esac 2101 eval $ac_envvar=\$ac_optarg 2102 export $ac_envvar ;; 2103 2104 *) 2105 # FIXME: should be removed in autoconf 3.0. 2106 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 2107 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 2108 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 2109 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 2110 ;; 2111 2112 esac 2113done 2114 2115if test -n "$ac_prev"; then 2116 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 2117 as_fn_error $? "missing argument to $ac_option" 2118fi 2119 2120if test -n "$ac_unrecognized_opts"; then 2121 case $enable_option_checking in 2122 no) ;; 2123 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 2124 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 2125 esac 2126fi 2127 2128# Check all directory arguments for consistency. 2129for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 2130 datadir sysconfdir sharedstatedir localstatedir includedir \ 2131 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 2132 libdir localedir mandir 2133do 2134 eval ac_val=\$$ac_var 2135 # Remove trailing slashes. 2136 case $ac_val in 2137 */ ) 2138 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 2139 eval $ac_var=\$ac_val;; 2140 esac 2141 # Be sure to have absolute directory names. 2142 case $ac_val in 2143 [\\/$]* | ?:[\\/]* ) continue;; 2144 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 2145 esac 2146 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 2147done 2148 2149# There might be people who depend on the old broken behavior: `$host' 2150# used to hold the argument of --host etc. 2151# FIXME: To remove some day. 2152build=$build_alias 2153host=$host_alias 2154target=$target_alias 2155 2156# FIXME: To remove some day. 2157if test "x$host_alias" != x; then 2158 if test "x$build_alias" = x; then 2159 cross_compiling=maybe 2160 elif test "x$build_alias" != "x$host_alias"; then 2161 cross_compiling=yes 2162 fi 2163fi 2164 2165ac_tool_prefix= 2166test -n "$host_alias" && ac_tool_prefix=$host_alias- 2167 2168test "$silent" = yes && exec 6>/dev/null 2169 2170 2171ac_pwd=`pwd` && test -n "$ac_pwd" && 2172ac_ls_di=`ls -di .` && 2173ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 2174 as_fn_error $? "working directory cannot be determined" 2175test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 2176 as_fn_error $? "pwd does not report name of working directory" 2177 2178 2179# Find the source files, if location was not specified. 2180if test -z "$srcdir"; then 2181 ac_srcdir_defaulted=yes 2182 # Try the directory containing this script, then the parent directory. 2183 ac_confdir=`$as_dirname -- "$as_myself" || 2184$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 2185 X"$as_myself" : 'X\(//\)[^/]' \| \ 2186 X"$as_myself" : 'X\(//\)$' \| \ 2187 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 2188$as_echo X"$as_myself" | 2189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 2190 s//\1/ 2191 q 2192 } 2193 /^X\(\/\/\)[^/].*/{ 2194 s//\1/ 2195 q 2196 } 2197 /^X\(\/\/\)$/{ 2198 s//\1/ 2199 q 2200 } 2201 /^X\(\/\).*/{ 2202 s//\1/ 2203 q 2204 } 2205 s/.*/./; q'` 2206 srcdir=$ac_confdir 2207 if test ! -r "$srcdir/$ac_unique_file"; then 2208 srcdir=.. 2209 fi 2210else 2211 ac_srcdir_defaulted=no 2212fi 2213if test ! -r "$srcdir/$ac_unique_file"; then 2214 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 2215 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 2216fi 2217ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 2218ac_abs_confdir=`( 2219 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 2220 pwd)` 2221# When building in place, set srcdir=. 2222if test "$ac_abs_confdir" = "$ac_pwd"; then 2223 srcdir=. 2224fi 2225# Remove unnecessary trailing slashes from srcdir. 2226# Double slashes in file names in object file debugging info 2227# mess up M-x gdb in Emacs. 2228case $srcdir in 2229*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 2230esac 2231for ac_var in $ac_precious_vars; do 2232 eval ac_env_${ac_var}_set=\${${ac_var}+set} 2233 eval ac_env_${ac_var}_value=\$${ac_var} 2234 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 2235 eval ac_cv_env_${ac_var}_value=\$${ac_var} 2236done 2237 2238# 2239# Report the --help message. 2240# 2241if test "$ac_init_help" = "long"; then 2242 # Omit some internal or obsolete options to make the list less imposing. 2243 # This message is too long to be a string in the A/UX 3.1 sh. 2244 cat <<_ACEOF 2245\`configure' configures gettext-runtime 0.21 to adapt to many kinds of systems. 2246 2247Usage: $0 [OPTION]... [VAR=VALUE]... 2248 2249To assign environment variables (e.g., CC, CFLAGS...), specify them as 2250VAR=VALUE. See below for descriptions of some of the useful variables. 2251 2252Defaults for the options are specified in brackets. 2253 2254Configuration: 2255 -h, --help display this help and exit 2256 --help=short display options specific to this package 2257 --help=recursive display the short help of all the included packages 2258 -V, --version display version information and exit 2259 -q, --quiet, --silent do not print \`checking ...' messages 2260 --cache-file=FILE cache test results in FILE [disabled] 2261 -C, --config-cache alias for \`--cache-file=config.cache' 2262 -n, --no-create do not create output files 2263 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 2264 2265Installation directories: 2266 --prefix=PREFIX install architecture-independent files in PREFIX 2267 [$ac_default_prefix] 2268 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 2269 [PREFIX] 2270 2271By default, \`make install' will install all the files in 2272\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 2273an installation prefix other than \`$ac_default_prefix' using \`--prefix', 2274for instance \`--prefix=\$HOME'. 2275 2276For better control, use the options below. 2277 2278Fine tuning of the installation directories: 2279 --bindir=DIR user executables [EPREFIX/bin] 2280 --sbindir=DIR system admin executables [EPREFIX/sbin] 2281 --libexecdir=DIR program executables [EPREFIX/libexec] 2282 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 2283 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 2284 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 2285 --libdir=DIR object code libraries [EPREFIX/lib] 2286 --includedir=DIR C header files [PREFIX/include] 2287 --oldincludedir=DIR C header files for non-gcc [/usr/include] 2288 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 2289 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 2290 --infodir=DIR info documentation [DATAROOTDIR/info] 2291 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 2292 --mandir=DIR man documentation [DATAROOTDIR/man] 2293 --docdir=DIR documentation root [DATAROOTDIR/doc/gettext-runtime] 2294 --htmldir=DIR html documentation [DOCDIR] 2295 --dvidir=DIR dvi documentation [DOCDIR] 2296 --pdfdir=DIR pdf documentation [DOCDIR] 2297 --psdir=DIR ps documentation [DOCDIR] 2298_ACEOF 2299 2300 cat <<\_ACEOF 2301 2302Program names: 2303 --program-prefix=PREFIX prepend PREFIX to installed program names 2304 --program-suffix=SUFFIX append SUFFIX to installed program names 2305 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 2306 2307System types: 2308 --build=BUILD configure for building on BUILD [guessed] 2309 --host=HOST cross-compile to build programs to run on HOST [BUILD] 2310_ACEOF 2311fi 2312 2313if test -n "$ac_init_help"; then 2314 case $ac_init_help in 2315 short | recursive ) echo "Configuration of gettext-runtime 0.21:";; 2316 esac 2317 cat <<\_ACEOF 2318 2319Optional Features: 2320 --disable-option-checking ignore unrecognized --enable/--with options 2321 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 2322 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 2323 --enable-silent-rules less verbose build output (undo: "make V=1") 2324 --disable-silent-rules verbose build output (undo: "make V=0") 2325 --enable-dependency-tracking 2326 do not reject slow dependency extractors 2327 --disable-dependency-tracking 2328 speeds up one-time build 2329 --disable-java do not build Java sources 2330 --enable-csharp[=IMPL] choose preferred C# implementation (mono) 2331 --disable-largefile omit support for large files 2332 --enable-threads={isoc|posix|isoc+posix|windows} 2333 specify multithreading API 2334 --disable-threads build without multithread safety 2335 --enable-shared[=PKGS] build shared libraries [default=yes] 2336 --enable-static[=PKGS] build static libraries [default=yes] 2337 --enable-fast-install[=PKGS] 2338 optimize for fast installation [default=yes] 2339 --disable-libtool-lock avoid locking (might break parallel builds) 2340 --disable-nls do not use Native Language Support 2341 --disable-rpath do not hardcode runtime library paths 2342 --disable-c++ do not build C++ sources 2343 --enable-cross-guesses={conservative|risky} 2344 specify policy for cross-compilation guesses 2345 --enable-relocatable install a package that can be moved in the file 2346 system 2347 --disable-libasprintf do not build libasprintf 2348 2349Optional Packages: 2350 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 2351 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 2352 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 2353 both] 2354 --with-aix-soname=aix|svr4|both 2355 shared library versioning (aka "SONAME") variant to 2356 provide on AIX, [default=aix]. 2357 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 2358 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 2359 compiler's sysroot if not specified). 2360 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 2361 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 2362 --without-libiconv-prefix don't search for libiconv in includedir and libdir 2363 --with-included-gettext use the GNU gettext library included here 2364 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 2365 --without-libintl-prefix don't search for libintl in includedir and libdir 2366 2367Some influential environment variables: 2368 CC C compiler command 2369 CFLAGS C compiler flags 2370 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2371 nonstandard directory <lib dir> 2372 LIBS libraries to pass to the linker, e.g. -l<library> 2373 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2374 you have headers in a nonstandard directory <include dir> 2375 CPP C preprocessor 2376 LT_SYS_LIBRARY_PATH 2377 User-defined run-time library search path. 2378 CXX C++ compiler command 2379 CXXFLAGS C++ compiler flags 2380 2381Use these variables to override the choices made by `configure' or to help 2382it to find libraries and programs with nonstandard names/locations. 2383 2384Report bugs to <bug-gettext@gnu.org>. 2385_ACEOF 2386ac_status=$? 2387fi 2388 2389if test "$ac_init_help" = "recursive"; then 2390 # If there are subdirs, report their specific --help. 2391 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2392 test -d "$ac_dir" || 2393 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2394 continue 2395 ac_builddir=. 2396 2397case "$ac_dir" in 2398.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2399*) 2400 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2401 # A ".." for each directory in $ac_dir_suffix. 2402 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2403 case $ac_top_builddir_sub in 2404 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2405 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2406 esac ;; 2407esac 2408ac_abs_top_builddir=$ac_pwd 2409ac_abs_builddir=$ac_pwd$ac_dir_suffix 2410# for backward compatibility: 2411ac_top_builddir=$ac_top_build_prefix 2412 2413case $srcdir in 2414 .) # We are building in place. 2415 ac_srcdir=. 2416 ac_top_srcdir=$ac_top_builddir_sub 2417 ac_abs_top_srcdir=$ac_pwd ;; 2418 [\\/]* | ?:[\\/]* ) # Absolute name. 2419 ac_srcdir=$srcdir$ac_dir_suffix; 2420 ac_top_srcdir=$srcdir 2421 ac_abs_top_srcdir=$srcdir ;; 2422 *) # Relative name. 2423 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2424 ac_top_srcdir=$ac_top_build_prefix$srcdir 2425 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2426esac 2427ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2428 2429 cd "$ac_dir" || { ac_status=$?; continue; } 2430 # Check for guested configure. 2431 if test -f "$ac_srcdir/configure.gnu"; then 2432 echo && 2433 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2434 elif test -f "$ac_srcdir/configure"; then 2435 echo && 2436 $SHELL "$ac_srcdir/configure" --help=recursive 2437 else 2438 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2439 fi || ac_status=$? 2440 cd "$ac_pwd" || { ac_status=$?; break; } 2441 done 2442fi 2443 2444test -n "$ac_init_help" && exit $ac_status 2445if $ac_init_version; then 2446 cat <<\_ACEOF 2447gettext-runtime configure 0.21 2448generated by GNU Autoconf 2.69 2449 2450Copyright (C) 2012 Free Software Foundation, Inc. 2451This configure script is free software; the Free Software Foundation 2452gives unlimited permission to copy, distribute and modify it. 2453_ACEOF 2454 exit 2455fi 2456 2457## ------------------------ ## 2458## Autoconf initialization. ## 2459## ------------------------ ## 2460 2461# ac_fn_c_try_compile LINENO 2462# -------------------------- 2463# Try to compile conftest.$ac_ext, and return whether this succeeded. 2464ac_fn_c_try_compile () 2465{ 2466 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2467 rm -f conftest.$ac_objext 2468 if { { ac_try="$ac_compile" 2469case "(($ac_try" in 2470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2471 *) ac_try_echo=$ac_try;; 2472esac 2473eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2474$as_echo "$ac_try_echo"; } >&5 2475 (eval "$ac_compile") 2>conftest.err 2476 ac_status=$? 2477 if test -s conftest.err; then 2478 grep -v '^ *+' conftest.err >conftest.er1 2479 cat conftest.er1 >&5 2480 mv -f conftest.er1 conftest.err 2481 fi 2482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2483 test $ac_status = 0; } && { 2484 test -z "$ac_c_werror_flag" || 2485 test ! -s conftest.err 2486 } && test -s conftest.$ac_objext; then : 2487 ac_retval=0 2488else 2489 $as_echo "$as_me: failed program was:" >&5 2490sed 's/^/| /' conftest.$ac_ext >&5 2491 2492 ac_retval=1 2493fi 2494 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2495 as_fn_set_status $ac_retval 2496 2497} # ac_fn_c_try_compile 2498 2499# ac_fn_c_try_cpp LINENO 2500# ---------------------- 2501# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2502ac_fn_c_try_cpp () 2503{ 2504 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2505 if { { ac_try="$ac_cpp conftest.$ac_ext" 2506case "(($ac_try" in 2507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2508 *) ac_try_echo=$ac_try;; 2509esac 2510eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2511$as_echo "$ac_try_echo"; } >&5 2512 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2513 ac_status=$? 2514 if test -s conftest.err; then 2515 grep -v '^ *+' conftest.err >conftest.er1 2516 cat conftest.er1 >&5 2517 mv -f conftest.er1 conftest.err 2518 fi 2519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2520 test $ac_status = 0; } > conftest.i && { 2521 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2522 test ! -s conftest.err 2523 }; then : 2524 ac_retval=0 2525else 2526 $as_echo "$as_me: failed program was:" >&5 2527sed 's/^/| /' conftest.$ac_ext >&5 2528 2529 ac_retval=1 2530fi 2531 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2532 as_fn_set_status $ac_retval 2533 2534} # ac_fn_c_try_cpp 2535 2536# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2537# ------------------------------------------------------- 2538# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2539# the include files in INCLUDES and setting the cache variable VAR 2540# accordingly. 2541ac_fn_c_check_header_mongrel () 2542{ 2543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2544 if eval \${$3+:} false; then : 2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2546$as_echo_n "checking for $2... " >&6; } 2547if eval \${$3+:} false; then : 2548 $as_echo_n "(cached) " >&6 2549fi 2550eval ac_res=\$$3 2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2552$as_echo "$ac_res" >&6; } 2553else 2554 # Is the header compilable? 2555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2556$as_echo_n "checking $2 usability... " >&6; } 2557cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2558/* end confdefs.h. */ 2559$4 2560#include <$2> 2561_ACEOF 2562if ac_fn_c_try_compile "$LINENO"; then : 2563 ac_header_compiler=yes 2564else 2565 ac_header_compiler=no 2566fi 2567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2569$as_echo "$ac_header_compiler" >&6; } 2570 2571# Is the header present? 2572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2573$as_echo_n "checking $2 presence... " >&6; } 2574cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2575/* end confdefs.h. */ 2576#include <$2> 2577_ACEOF 2578if ac_fn_c_try_cpp "$LINENO"; then : 2579 ac_header_preproc=yes 2580else 2581 ac_header_preproc=no 2582fi 2583rm -f conftest.err conftest.i conftest.$ac_ext 2584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2585$as_echo "$ac_header_preproc" >&6; } 2586 2587# So? What about this header? 2588case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2589 yes:no: ) 2590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2591$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2593$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2594 ;; 2595 no:yes:* ) 2596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2597$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2599$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2601$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2603$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2605$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2606( $as_echo "## ---------------------------------- ## 2607## Report this to bug-gettext@gnu.org ## 2608## ---------------------------------- ##" 2609 ) | sed "s/^/$as_me: WARNING: /" >&2 2610 ;; 2611esac 2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2613$as_echo_n "checking for $2... " >&6; } 2614if eval \${$3+:} false; then : 2615 $as_echo_n "(cached) " >&6 2616else 2617 eval "$3=\$ac_header_compiler" 2618fi 2619eval ac_res=\$$3 2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2621$as_echo "$ac_res" >&6; } 2622fi 2623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2624 2625} # ac_fn_c_check_header_mongrel 2626 2627# ac_fn_c_try_run LINENO 2628# ---------------------- 2629# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2630# that executables *can* be run. 2631ac_fn_c_try_run () 2632{ 2633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2634 if { { ac_try="$ac_link" 2635case "(($ac_try" in 2636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2637 *) ac_try_echo=$ac_try;; 2638esac 2639eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2640$as_echo "$ac_try_echo"; } >&5 2641 (eval "$ac_link") 2>&5 2642 ac_status=$? 2643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2644 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2645 { { case "(($ac_try" in 2646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2647 *) ac_try_echo=$ac_try;; 2648esac 2649eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2650$as_echo "$ac_try_echo"; } >&5 2651 (eval "$ac_try") 2>&5 2652 ac_status=$? 2653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2654 test $ac_status = 0; }; }; then : 2655 ac_retval=0 2656else 2657 $as_echo "$as_me: program exited with status $ac_status" >&5 2658 $as_echo "$as_me: failed program was:" >&5 2659sed 's/^/| /' conftest.$ac_ext >&5 2660 2661 ac_retval=$ac_status 2662fi 2663 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2664 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2665 as_fn_set_status $ac_retval 2666 2667} # ac_fn_c_try_run 2668 2669# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2670# ------------------------------------------------------- 2671# Tests whether HEADER exists and can be compiled using the include files in 2672# INCLUDES, setting the cache variable VAR accordingly. 2673ac_fn_c_check_header_compile () 2674{ 2675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2677$as_echo_n "checking for $2... " >&6; } 2678if eval \${$3+:} false; then : 2679 $as_echo_n "(cached) " >&6 2680else 2681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2682/* end confdefs.h. */ 2683$4 2684#include <$2> 2685_ACEOF 2686if ac_fn_c_try_compile "$LINENO"; then : 2687 eval "$3=yes" 2688else 2689 eval "$3=no" 2690fi 2691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2692fi 2693eval ac_res=\$$3 2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2695$as_echo "$ac_res" >&6; } 2696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2697 2698} # ac_fn_c_check_header_compile 2699 2700# ac_fn_c_try_link LINENO 2701# ----------------------- 2702# Try to link conftest.$ac_ext, and return whether this succeeded. 2703ac_fn_c_try_link () 2704{ 2705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2706 rm -f conftest.$ac_objext conftest$ac_exeext 2707 if { { ac_try="$ac_link" 2708case "(($ac_try" in 2709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2710 *) ac_try_echo=$ac_try;; 2711esac 2712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2713$as_echo "$ac_try_echo"; } >&5 2714 (eval "$ac_link") 2>conftest.err 2715 ac_status=$? 2716 if test -s conftest.err; then 2717 grep -v '^ *+' conftest.err >conftest.er1 2718 cat conftest.er1 >&5 2719 mv -f conftest.er1 conftest.err 2720 fi 2721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2722 test $ac_status = 0; } && { 2723 test -z "$ac_c_werror_flag" || 2724 test ! -s conftest.err 2725 } && test -s conftest$ac_exeext && { 2726 test "$cross_compiling" = yes || 2727 test -x conftest$ac_exeext 2728 }; then : 2729 ac_retval=0 2730else 2731 $as_echo "$as_me: failed program was:" >&5 2732sed 's/^/| /' conftest.$ac_ext >&5 2733 2734 ac_retval=1 2735fi 2736 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2737 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2738 # interfere with the next link command; also delete a directory that is 2739 # left behind by Apple's compiler. We do this before executing the actions. 2740 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2742 as_fn_set_status $ac_retval 2743 2744} # ac_fn_c_try_link 2745 2746# ac_fn_c_check_func LINENO FUNC VAR 2747# ---------------------------------- 2748# Tests whether FUNC exists, setting the cache variable VAR accordingly 2749ac_fn_c_check_func () 2750{ 2751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2753$as_echo_n "checking for $2... " >&6; } 2754if eval \${$3+:} false; then : 2755 $as_echo_n "(cached) " >&6 2756else 2757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2758/* end confdefs.h. */ 2759/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2760 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2761#define $2 innocuous_$2 2762 2763/* System header to define __stub macros and hopefully few prototypes, 2764 which can conflict with char $2 (); below. 2765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2766 <limits.h> exists even on freestanding compilers. */ 2767 2768#ifdef __STDC__ 2769# include <limits.h> 2770#else 2771# include <assert.h> 2772#endif 2773 2774#undef $2 2775 2776/* Override any GCC internal prototype to avoid an error. 2777 Use char because int might match the return type of a GCC 2778 builtin and then its argument prototype would still apply. */ 2779#ifdef __cplusplus 2780extern "C" 2781#endif 2782char $2 (); 2783/* The GNU C library defines this for functions which it implements 2784 to always fail with ENOSYS. Some functions are actually named 2785 something starting with __ and the normal name is an alias. */ 2786#if defined __stub_$2 || defined __stub___$2 2787choke me 2788#endif 2789 2790int 2791main () 2792{ 2793return $2 (); 2794 ; 2795 return 0; 2796} 2797_ACEOF 2798if ac_fn_c_try_link "$LINENO"; then : 2799 eval "$3=yes" 2800else 2801 eval "$3=no" 2802fi 2803rm -f core conftest.err conftest.$ac_objext \ 2804 conftest$ac_exeext conftest.$ac_ext 2805fi 2806eval ac_res=\$$3 2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2808$as_echo "$ac_res" >&6; } 2809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2810 2811} # ac_fn_c_check_func 2812 2813# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2814# ------------------------------------------- 2815# Tests whether TYPE exists after having included INCLUDES, setting cache 2816# variable VAR accordingly. 2817ac_fn_c_check_type () 2818{ 2819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2821$as_echo_n "checking for $2... " >&6; } 2822if eval \${$3+:} false; then : 2823 $as_echo_n "(cached) " >&6 2824else 2825 eval "$3=no" 2826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2827/* end confdefs.h. */ 2828$4 2829int 2830main () 2831{ 2832if (sizeof ($2)) 2833 return 0; 2834 ; 2835 return 0; 2836} 2837_ACEOF 2838if ac_fn_c_try_compile "$LINENO"; then : 2839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2840/* end confdefs.h. */ 2841$4 2842int 2843main () 2844{ 2845if (sizeof (($2))) 2846 return 0; 2847 ; 2848 return 0; 2849} 2850_ACEOF 2851if ac_fn_c_try_compile "$LINENO"; then : 2852 2853else 2854 eval "$3=yes" 2855fi 2856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2857fi 2858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2859fi 2860eval ac_res=\$$3 2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2862$as_echo "$ac_res" >&6; } 2863 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2864 2865} # ac_fn_c_check_type 2866 2867# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2868# --------------------------------------------- 2869# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2870# accordingly. 2871ac_fn_c_check_decl () 2872{ 2873 ac_save_ac_compile="$ac_compile" 2874 if test -n "$ac_compile_for_check_decl"; then 2875 ac_compile="$ac_compile_for_check_decl" 2876 fi 2877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2878 as_decl_name=`echo $2|sed 's/ *(.*//'` 2879 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2881$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2882if eval \${$3+:} false; then : 2883 $as_echo_n "(cached) " >&6 2884else 2885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2886/* end confdefs.h. */ 2887$4 2888int 2889main () 2890{ 2891#ifndef $as_decl_name 2892#ifdef __cplusplus 2893 (void) $as_decl_use; 2894#else 2895 (void) $as_decl_name; 2896#endif 2897#endif 2898 2899 ; 2900 return 0; 2901} 2902_ACEOF 2903if ac_fn_c_try_compile "$LINENO"; then : 2904 eval "$3=yes" 2905else 2906 eval "$3=no" 2907fi 2908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2909fi 2910eval ac_res=\$$3 2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2912$as_echo "$ac_res" >&6; } 2913 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2914 ac_compile="$ac_save_ac_compile" 2915 2916} # ac_fn_c_check_decl 2917 2918# ac_fn_cxx_try_compile LINENO 2919# ---------------------------- 2920# Try to compile conftest.$ac_ext, and return whether this succeeded. 2921ac_fn_cxx_try_compile () 2922{ 2923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2924 rm -f conftest.$ac_objext 2925 if { { ac_try="$ac_compile" 2926case "(($ac_try" in 2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2928 *) ac_try_echo=$ac_try;; 2929esac 2930eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2931$as_echo "$ac_try_echo"; } >&5 2932 (eval "$ac_compile") 2>conftest.err 2933 ac_status=$? 2934 if test -s conftest.err; then 2935 grep -v '^ *+' conftest.err >conftest.er1 2936 cat conftest.er1 >&5 2937 mv -f conftest.er1 conftest.err 2938 fi 2939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2940 test $ac_status = 0; } && { 2941 test -z "$ac_cxx_werror_flag" || 2942 test ! -s conftest.err 2943 } && test -s conftest.$ac_objext; then : 2944 ac_retval=0 2945else 2946 $as_echo "$as_me: failed program was:" >&5 2947sed 's/^/| /' conftest.$ac_ext >&5 2948 2949 ac_retval=1 2950fi 2951 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2952 as_fn_set_status $ac_retval 2953 2954} # ac_fn_cxx_try_compile 2955 2956# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2957# -------------------------------------------- 2958# Tries to find the compile-time value of EXPR in a program that includes 2959# INCLUDES, setting VAR accordingly. Returns whether the value could be 2960# computed 2961ac_fn_c_compute_int () 2962{ 2963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2964 if test "$cross_compiling" = yes; then 2965 # Depending upon the size, compute the lo and hi bounds. 2966cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2967/* end confdefs.h. */ 2968$4 2969int 2970main () 2971{ 2972static int test_array [1 - 2 * !(($2) >= 0)]; 2973test_array [0] = 0; 2974return test_array [0]; 2975 2976 ; 2977 return 0; 2978} 2979_ACEOF 2980if ac_fn_c_try_compile "$LINENO"; then : 2981 ac_lo=0 ac_mid=0 2982 while :; do 2983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2984/* end confdefs.h. */ 2985$4 2986int 2987main () 2988{ 2989static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2990test_array [0] = 0; 2991return test_array [0]; 2992 2993 ; 2994 return 0; 2995} 2996_ACEOF 2997if ac_fn_c_try_compile "$LINENO"; then : 2998 ac_hi=$ac_mid; break 2999else 3000 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 3001 if test $ac_lo -le $ac_mid; then 3002 ac_lo= ac_hi= 3003 break 3004 fi 3005 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 3006fi 3007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3008 done 3009else 3010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3011/* end confdefs.h. */ 3012$4 3013int 3014main () 3015{ 3016static int test_array [1 - 2 * !(($2) < 0)]; 3017test_array [0] = 0; 3018return test_array [0]; 3019 3020 ; 3021 return 0; 3022} 3023_ACEOF 3024if ac_fn_c_try_compile "$LINENO"; then : 3025 ac_hi=-1 ac_mid=-1 3026 while :; do 3027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3028/* end confdefs.h. */ 3029$4 3030int 3031main () 3032{ 3033static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 3034test_array [0] = 0; 3035return test_array [0]; 3036 3037 ; 3038 return 0; 3039} 3040_ACEOF 3041if ac_fn_c_try_compile "$LINENO"; then : 3042 ac_lo=$ac_mid; break 3043else 3044 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 3045 if test $ac_mid -le $ac_hi; then 3046 ac_lo= ac_hi= 3047 break 3048 fi 3049 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 3050fi 3051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3052 done 3053else 3054 ac_lo= ac_hi= 3055fi 3056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3057fi 3058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3059# Binary search between lo and hi bounds. 3060while test "x$ac_lo" != "x$ac_hi"; do 3061 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 3062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3063/* end confdefs.h. */ 3064$4 3065int 3066main () 3067{ 3068static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 3069test_array [0] = 0; 3070return test_array [0]; 3071 3072 ; 3073 return 0; 3074} 3075_ACEOF 3076if ac_fn_c_try_compile "$LINENO"; then : 3077 ac_hi=$ac_mid 3078else 3079 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 3080fi 3081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3082done 3083case $ac_lo in #(( 3084?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 3085'') ac_retval=1 ;; 3086esac 3087 else 3088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3089/* end confdefs.h. */ 3090$4 3091static long int longval () { return $2; } 3092static unsigned long int ulongval () { return $2; } 3093#include <stdio.h> 3094#include <stdlib.h> 3095int 3096main () 3097{ 3098 3099 FILE *f = fopen ("conftest.val", "w"); 3100 if (! f) 3101 return 1; 3102 if (($2) < 0) 3103 { 3104 long int i = longval (); 3105 if (i != ($2)) 3106 return 1; 3107 fprintf (f, "%ld", i); 3108 } 3109 else 3110 { 3111 unsigned long int i = ulongval (); 3112 if (i != ($2)) 3113 return 1; 3114 fprintf (f, "%lu", i); 3115 } 3116 /* Do not output a trailing newline, as this causes \r\n confusion 3117 on some platforms. */ 3118 return ferror (f) || fclose (f) != 0; 3119 3120 ; 3121 return 0; 3122} 3123_ACEOF 3124if ac_fn_c_try_run "$LINENO"; then : 3125 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 3126else 3127 ac_retval=1 3128fi 3129rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3130 conftest.$ac_objext conftest.beam conftest.$ac_ext 3131rm -f conftest.val 3132 3133 fi 3134 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3135 as_fn_set_status $ac_retval 3136 3137} # ac_fn_c_compute_int 3138 3139# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 3140# ---------------------------------------------------- 3141# Tries to find if the field MEMBER exists in type AGGR, after including 3142# INCLUDES, setting cache variable VAR accordingly. 3143ac_fn_c_check_member () 3144{ 3145 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 3147$as_echo_n "checking for $2.$3... " >&6; } 3148if eval \${$4+:} false; then : 3149 $as_echo_n "(cached) " >&6 3150else 3151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3152/* end confdefs.h. */ 3153$5 3154int 3155main () 3156{ 3157static $2 ac_aggr; 3158if (ac_aggr.$3) 3159return 0; 3160 ; 3161 return 0; 3162} 3163_ACEOF 3164if ac_fn_c_try_compile "$LINENO"; then : 3165 eval "$4=yes" 3166else 3167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3168/* end confdefs.h. */ 3169$5 3170int 3171main () 3172{ 3173static $2 ac_aggr; 3174if (sizeof ac_aggr.$3) 3175return 0; 3176 ; 3177 return 0; 3178} 3179_ACEOF 3180if ac_fn_c_try_compile "$LINENO"; then : 3181 eval "$4=yes" 3182else 3183 eval "$4=no" 3184fi 3185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3186fi 3187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3188fi 3189eval ac_res=\$$4 3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3191$as_echo "$ac_res" >&6; } 3192 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3193 3194} # ac_fn_c_check_member 3195cat >config.log <<_ACEOF 3196This file contains any messages produced by compilers while 3197running configure, to aid debugging if configure makes a mistake. 3198 3199It was created by gettext-runtime $as_me 0.21, which was 3200generated by GNU Autoconf 2.69. Invocation command line was 3201 3202 $ $0 $@ 3203 3204_ACEOF 3205exec 5>>config.log 3206{ 3207cat <<_ASUNAME 3208## --------- ## 3209## Platform. ## 3210## --------- ## 3211 3212hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 3213uname -m = `(uname -m) 2>/dev/null || echo unknown` 3214uname -r = `(uname -r) 2>/dev/null || echo unknown` 3215uname -s = `(uname -s) 2>/dev/null || echo unknown` 3216uname -v = `(uname -v) 2>/dev/null || echo unknown` 3217 3218/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 3219/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 3220 3221/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 3222/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 3223/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 3224/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 3225/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 3226/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 3227/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 3228 3229_ASUNAME 3230 3231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3232for as_dir in $PATH 3233do 3234 IFS=$as_save_IFS 3235 test -z "$as_dir" && as_dir=. 3236 $as_echo "PATH: $as_dir" 3237 done 3238IFS=$as_save_IFS 3239 3240} >&5 3241 3242cat >&5 <<_ACEOF 3243 3244 3245## ----------- ## 3246## Core tests. ## 3247## ----------- ## 3248 3249_ACEOF 3250 3251 3252# Keep a trace of the command line. 3253# Strip out --no-create and --no-recursion so they do not pile up. 3254# Strip out --silent because we don't want to record it for future runs. 3255# Also quote any args containing shell meta-characters. 3256# Make two passes to allow for proper duplicate-argument suppression. 3257ac_configure_args= 3258ac_configure_args0= 3259ac_configure_args1= 3260ac_must_keep_next=false 3261for ac_pass in 1 2 3262do 3263 for ac_arg 3264 do 3265 case $ac_arg in 3266 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 3267 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3268 | -silent | --silent | --silen | --sile | --sil) 3269 continue ;; 3270 *\'*) 3271 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 3272 esac 3273 case $ac_pass in 3274 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 3275 2) 3276 as_fn_append ac_configure_args1 " '$ac_arg'" 3277 if test $ac_must_keep_next = true; then 3278 ac_must_keep_next=false # Got value, back to normal. 3279 else 3280 case $ac_arg in 3281 *=* | --config-cache | -C | -disable-* | --disable-* \ 3282 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 3283 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 3284 | -with-* | --with-* | -without-* | --without-* | --x) 3285 case "$ac_configure_args0 " in 3286 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 3287 esac 3288 ;; 3289 -* ) ac_must_keep_next=true ;; 3290 esac 3291 fi 3292 as_fn_append ac_configure_args " '$ac_arg'" 3293 ;; 3294 esac 3295 done 3296done 3297{ ac_configure_args0=; unset ac_configure_args0;} 3298{ ac_configure_args1=; unset ac_configure_args1;} 3299 3300# When interrupted or exit'd, cleanup temporary files, and complete 3301# config.log. We remove comments because anyway the quotes in there 3302# would cause problems or look ugly. 3303# WARNING: Use '\'' to represent an apostrophe within the trap. 3304# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 3305trap 'exit_status=$? 3306 # Save into config.log some information that might help in debugging. 3307 { 3308 echo 3309 3310 $as_echo "## ---------------- ## 3311## Cache variables. ## 3312## ---------------- ##" 3313 echo 3314 # The following way of writing the cache mishandles newlines in values, 3315( 3316 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3317 eval ac_val=\$$ac_var 3318 case $ac_val in #( 3319 *${as_nl}*) 3320 case $ac_var in #( 3321 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3322$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3323 esac 3324 case $ac_var in #( 3325 _ | IFS | as_nl) ;; #( 3326 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3327 *) { eval $ac_var=; unset $ac_var;} ;; 3328 esac ;; 3329 esac 3330 done 3331 (set) 2>&1 | 3332 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3333 *${as_nl}ac_space=\ *) 3334 sed -n \ 3335 "s/'\''/'\''\\\\'\'''\''/g; 3336 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3337 ;; #( 3338 *) 3339 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3340 ;; 3341 esac | 3342 sort 3343) 3344 echo 3345 3346 $as_echo "## ----------------- ## 3347## Output variables. ## 3348## ----------------- ##" 3349 echo 3350 for ac_var in $ac_subst_vars 3351 do 3352 eval ac_val=\$$ac_var 3353 case $ac_val in 3354 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3355 esac 3356 $as_echo "$ac_var='\''$ac_val'\''" 3357 done | sort 3358 echo 3359 3360 if test -n "$ac_subst_files"; then 3361 $as_echo "## ------------------- ## 3362## File substitutions. ## 3363## ------------------- ##" 3364 echo 3365 for ac_var in $ac_subst_files 3366 do 3367 eval ac_val=\$$ac_var 3368 case $ac_val in 3369 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3370 esac 3371 $as_echo "$ac_var='\''$ac_val'\''" 3372 done | sort 3373 echo 3374 fi 3375 3376 if test -s confdefs.h; then 3377 $as_echo "## ----------- ## 3378## confdefs.h. ## 3379## ----------- ##" 3380 echo 3381 cat confdefs.h 3382 echo 3383 fi 3384 test "$ac_signal" != 0 && 3385 $as_echo "$as_me: caught signal $ac_signal" 3386 $as_echo "$as_me: exit $exit_status" 3387 } >&5 3388 rm -f core *.core core.conftest.* && 3389 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3390 exit $exit_status 3391' 0 3392for ac_signal in 1 2 13 15; do 3393 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3394done 3395ac_signal=0 3396 3397# confdefs.h avoids OS command line length limits that DEFS can exceed. 3398rm -f -r conftest* confdefs.h 3399 3400$as_echo "/* confdefs.h */" > confdefs.h 3401 3402# Predefined preprocessor variables. 3403 3404cat >>confdefs.h <<_ACEOF 3405#define PACKAGE_NAME "$PACKAGE_NAME" 3406_ACEOF 3407 3408cat >>confdefs.h <<_ACEOF 3409#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3410_ACEOF 3411 3412cat >>confdefs.h <<_ACEOF 3413#define PACKAGE_VERSION "$PACKAGE_VERSION" 3414_ACEOF 3415 3416cat >>confdefs.h <<_ACEOF 3417#define PACKAGE_STRING "$PACKAGE_STRING" 3418_ACEOF 3419 3420cat >>confdefs.h <<_ACEOF 3421#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3422_ACEOF 3423 3424cat >>confdefs.h <<_ACEOF 3425#define PACKAGE_URL "$PACKAGE_URL" 3426_ACEOF 3427 3428 3429# Let the site file select an alternate cache file if it wants to. 3430# Prefer an explicitly selected file to automatically selected ones. 3431ac_site_file1=NONE 3432ac_site_file2=NONE 3433if test -n "$CONFIG_SITE"; then 3434 # We do not want a PATH search for config.site. 3435 case $CONFIG_SITE in #(( 3436 -*) ac_site_file1=./$CONFIG_SITE;; 3437 */*) ac_site_file1=$CONFIG_SITE;; 3438 *) ac_site_file1=./$CONFIG_SITE;; 3439 esac 3440elif test "x$prefix" != xNONE; then 3441 ac_site_file1=$prefix/share/config.site 3442 ac_site_file2=$prefix/etc/config.site 3443else 3444 ac_site_file1=$ac_default_prefix/share/config.site 3445 ac_site_file2=$ac_default_prefix/etc/config.site 3446fi 3447for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3448do 3449 test "x$ac_site_file" = xNONE && continue 3450 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3451 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3452$as_echo "$as_me: loading site script $ac_site_file" >&6;} 3453 sed 's/^/| /' "$ac_site_file" >&5 3454 . "$ac_site_file" \ 3455 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3456$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3457as_fn_error $? "failed to load site script $ac_site_file 3458See \`config.log' for more details" "$LINENO" 5; } 3459 fi 3460done 3461 3462if test -r "$cache_file"; then 3463 # Some versions of bash will fail to source /dev/null (special files 3464 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3465 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3466 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3467$as_echo "$as_me: loading cache $cache_file" >&6;} 3468 case $cache_file in 3469 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3470 *) . "./$cache_file";; 3471 esac 3472 fi 3473else 3474 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3475$as_echo "$as_me: creating cache $cache_file" >&6;} 3476 >$cache_file 3477fi 3478 3479gl_use_winpthreads_default=no 3480gt_needs="$gt_needs need-ngettext" 3481as_fn_append ac_header_list " stdlib.h" 3482as_fn_append ac_header_list " unistd.h" 3483as_fn_append ac_header_list " sys/param.h" 3484as_fn_append ac_header_list " threads.h" 3485as_fn_append ac_func_list " symlink" 3486as_fn_append ac_func_list " uselocale" 3487as_fn_append ac_header_list " xlocale.h" 3488as_fn_append ac_func_list " canonicalize_file_name" 3489as_fn_append ac_func_list " getcwd" 3490as_fn_append ac_func_list " readlink" 3491as_fn_append ac_func_list " realpath" 3492as_fn_append ac_func_list " readlinkat" 3493as_fn_append ac_func_list " _set_invalid_parameter_handler" 3494as_fn_append ac_header_list " sys/socket.h" 3495as_fn_append ac_func_list " fcntl" 3496as_fn_append ac_header_list " sys/stat.h" 3497as_fn_append ac_func_list " getdtablesize" 3498gl_getopt_required=GNU 3499as_fn_append ac_header_list " getopt.h" 3500as_fn_append ac_header_list " sys/cdefs.h" 3501as_fn_append ac_func_list " getprogname" 3502as_fn_append ac_func_list " getexecname" 3503as_fn_append ac_header_list " iconv.h" 3504as_fn_append ac_header_list " limits.h" 3505as_fn_append ac_header_list " wchar.h" 3506as_fn_append ac_header_list " stdint.h" 3507as_fn_append ac_header_list " inttypes.h" 3508as_fn_append ac_func_list " iswcntrl" 3509as_fn_append ac_header_list " crtdefs.h" 3510as_fn_append ac_header_list " wctype.h" 3511as_fn_append ac_func_list " iswblank" 3512as_fn_append ac_header_list " langinfo.h" 3513as_fn_append ac_func_list " newlocale" 3514as_fn_append ac_func_list " duplocale" 3515as_fn_append ac_func_list " freelocale" 3516as_fn_append ac_func_list " lstat" 3517as_fn_append ac_func_list " mbsinit" 3518as_fn_append ac_func_list " mbrtowc" 3519as_fn_append ac_func_list " mbslen" 3520as_fn_append ac_header_list " sys/mman.h" 3521as_fn_append ac_func_list " mprotect" 3522as_fn_append ac_func_list " setenv" 3523as_fn_append ac_header_list " sys/time.h" 3524as_fn_append ac_header_list " features.h" 3525as_fn_append ac_func_list " wcwidth" 3526# Check that the precious variables saved in the cache have kept the same 3527# value. 3528ac_cache_corrupted=false 3529for ac_var in $ac_precious_vars; do 3530 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3531 eval ac_new_set=\$ac_env_${ac_var}_set 3532 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3533 eval ac_new_val=\$ac_env_${ac_var}_value 3534 case $ac_old_set,$ac_new_set in 3535 set,) 3536 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3537$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3538 ac_cache_corrupted=: ;; 3539 ,set) 3540 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3541$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3542 ac_cache_corrupted=: ;; 3543 ,);; 3544 *) 3545 if test "x$ac_old_val" != "x$ac_new_val"; then 3546 # differences in whitespace do not lead to failure. 3547 ac_old_val_w=`echo x $ac_old_val` 3548 ac_new_val_w=`echo x $ac_new_val` 3549 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3550 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3551$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3552 ac_cache_corrupted=: 3553 else 3554 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3555$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3556 eval $ac_var=\$ac_old_val 3557 fi 3558 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3559$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3560 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3561$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3562 fi;; 3563 esac 3564 # Pass precious variables to config.status. 3565 if test "$ac_new_set" = set; then 3566 case $ac_new_val in 3567 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3568 *) ac_arg=$ac_var=$ac_new_val ;; 3569 esac 3570 case " $ac_configure_args " in 3571 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3572 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3573 esac 3574 fi 3575done 3576if $ac_cache_corrupted; then 3577 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3578$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3579 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3580$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3581 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3582fi 3583## -------------------- ## 3584## Main body of script. ## 3585## -------------------- ## 3586 3587ac_ext=c 3588ac_cpp='$CPP $CPPFLAGS' 3589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3591ac_compiler_gnu=$ac_cv_c_compiler_gnu 3592 3593 3594 3595ac_aux_dir= 3596for ac_dir in ../build-aux "$srcdir"/../build-aux; do 3597 if test -f "$ac_dir/install-sh"; then 3598 ac_aux_dir=$ac_dir 3599 ac_install_sh="$ac_aux_dir/install-sh -c" 3600 break 3601 elif test -f "$ac_dir/install.sh"; then 3602 ac_aux_dir=$ac_dir 3603 ac_install_sh="$ac_aux_dir/install.sh -c" 3604 break 3605 elif test -f "$ac_dir/shtool"; then 3606 ac_aux_dir=$ac_dir 3607 ac_install_sh="$ac_aux_dir/shtool install -c" 3608 break 3609 fi 3610done 3611if test -z "$ac_aux_dir"; then 3612 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../build-aux \"$srcdir\"/../build-aux" "$LINENO" 5 3613fi 3614 3615# These three variables are undocumented and unsupported, 3616# and are intended to be withdrawn in a future Autoconf release. 3617# They can cause serious problems if a builder's source tree is in a directory 3618# whose full name contains unusual characters. 3619ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3620ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3621ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3622 3623 3624am__api_version='1.16' 3625 3626# Find a good install program. We prefer a C program (faster), 3627# so one script is as good as another. But avoid the broken or 3628# incompatible versions: 3629# SysV /etc/install, /usr/sbin/install 3630# SunOS /usr/etc/install 3631# IRIX /sbin/install 3632# AIX /bin/install 3633# AmigaOS /C/install, which installs bootblocks on floppy discs 3634# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3635# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3636# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3637# OS/2's system install, which has a completely different semantic 3638# ./install, which can be erroneously created by make from ./install.sh. 3639# Reject install programs that cannot install multiple files. 3640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3641$as_echo_n "checking for a BSD-compatible install... " >&6; } 3642if test -z "$INSTALL"; then 3643if ${ac_cv_path_install+:} false; then : 3644 $as_echo_n "(cached) " >&6 3645else 3646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3647for as_dir in $PATH 3648do 3649 IFS=$as_save_IFS 3650 test -z "$as_dir" && as_dir=. 3651 # Account for people who put trailing slashes in PATH elements. 3652case $as_dir/ in #(( 3653 ./ | .// | /[cC]/* | \ 3654 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3655 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3656 /usr/ucb/* ) ;; 3657 *) 3658 # OSF1 and SCO ODT 3.0 have their own names for install. 3659 # Don't use installbsd from OSF since it installs stuff as root 3660 # by default. 3661 for ac_prog in ginstall scoinst install; do 3662 for ac_exec_ext in '' $ac_executable_extensions; do 3663 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3664 if test $ac_prog = install && 3665 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3666 # AIX install. It has an incompatible calling convention. 3667 : 3668 elif test $ac_prog = install && 3669 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3670 # program-specific install script used by HP pwplus--don't use. 3671 : 3672 else 3673 rm -rf conftest.one conftest.two conftest.dir 3674 echo one > conftest.one 3675 echo two > conftest.two 3676 mkdir conftest.dir 3677 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3678 test -s conftest.one && test -s conftest.two && 3679 test -s conftest.dir/conftest.one && 3680 test -s conftest.dir/conftest.two 3681 then 3682 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3683 break 3 3684 fi 3685 fi 3686 fi 3687 done 3688 done 3689 ;; 3690esac 3691 3692 done 3693IFS=$as_save_IFS 3694 3695rm -rf conftest.one conftest.two conftest.dir 3696 3697fi 3698 if test "${ac_cv_path_install+set}" = set; then 3699 INSTALL=$ac_cv_path_install 3700 else 3701 # As a last resort, use the slow shell script. Don't cache a 3702 # value for INSTALL within a source directory, because that will 3703 # break other packages using the cache if that directory is 3704 # removed, or if the value is a relative name. 3705 INSTALL=$ac_install_sh 3706 fi 3707fi 3708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3709$as_echo "$INSTALL" >&6; } 3710 3711# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3712# It thinks the first close brace ends the variable substitution. 3713test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3714 3715test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3716 3717test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3718 3719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3720$as_echo_n "checking whether build environment is sane... " >&6; } 3721# Reject unsafe characters in $srcdir or the absolute working directory 3722# name. Accept space and tab only in the latter. 3723am_lf=' 3724' 3725case `pwd` in 3726 *[\\\"\#\$\&\'\`$am_lf]*) 3727 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3728esac 3729case $srcdir in 3730 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3731 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3732esac 3733 3734# Do 'set' in a subshell so we don't clobber the current shell's 3735# arguments. Must try -L first in case configure is actually a 3736# symlink; some systems play weird games with the mod time of symlinks 3737# (eg FreeBSD returns the mod time of the symlink's containing 3738# directory). 3739if ( 3740 am_has_slept=no 3741 for am_try in 1 2; do 3742 echo "timestamp, slept: $am_has_slept" > conftest.file 3743 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3744 if test "$*" = "X"; then 3745 # -L didn't work. 3746 set X `ls -t "$srcdir/configure" conftest.file` 3747 fi 3748 if test "$*" != "X $srcdir/configure conftest.file" \ 3749 && test "$*" != "X conftest.file $srcdir/configure"; then 3750 3751 # If neither matched, then we have a broken ls. This can happen 3752 # if, for instance, CONFIG_SHELL is bash and it inherits a 3753 # broken ls alias from the environment. This has actually 3754 # happened. Such a system could not be considered "sane". 3755 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3756 alias in your environment" "$LINENO" 5 3757 fi 3758 if test "$2" = conftest.file || test $am_try -eq 2; then 3759 break 3760 fi 3761 # Just in case. 3762 sleep 1 3763 am_has_slept=yes 3764 done 3765 test "$2" = conftest.file 3766 ) 3767then 3768 # Ok. 3769 : 3770else 3771 as_fn_error $? "newly created file is older than distributed files! 3772Check your system clock" "$LINENO" 5 3773fi 3774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3775$as_echo "yes" >&6; } 3776# If we didn't sleep, we still need to ensure time stamps of config.status and 3777# generated files are strictly newer. 3778am_sleep_pid= 3779if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3780 ( sleep 1 ) & 3781 am_sleep_pid=$! 3782fi 3783 3784rm -f conftest.file 3785 3786test "$program_prefix" != NONE && 3787 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3788# Use a double $ so make ignores it. 3789test "$program_suffix" != NONE && 3790 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3791# Double any \ or $. 3792# By default was `s,x,x', remove it if useless. 3793ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3794program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3795 3796# Expand $ac_aux_dir to an absolute path. 3797am_aux_dir=`cd "$ac_aux_dir" && pwd` 3798 3799if test x"${MISSING+set}" != xset; then 3800 case $am_aux_dir in 3801 *\ * | *\ *) 3802 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3803 *) 3804 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3805 esac 3806fi 3807# Use eval to expand $SHELL 3808if eval "$MISSING --is-lightweight"; then 3809 am_missing_run="$MISSING " 3810else 3811 am_missing_run= 3812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3813$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3814fi 3815 3816if test x"${install_sh+set}" != xset; then 3817 case $am_aux_dir in 3818 *\ * | *\ *) 3819 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3820 *) 3821 install_sh="\${SHELL} $am_aux_dir/install-sh" 3822 esac 3823fi 3824 3825# Installed binaries are usually stripped using 'strip' when the user 3826# run "make install-strip". However 'strip' might not be the right 3827# tool to use in cross-compilation environments, therefore Automake 3828# will honor the 'STRIP' environment variable to overrule this program. 3829if test "$cross_compiling" != no; then 3830 if test -n "$ac_tool_prefix"; then 3831 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3832set dummy ${ac_tool_prefix}strip; ac_word=$2 3833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3834$as_echo_n "checking for $ac_word... " >&6; } 3835if ${ac_cv_prog_STRIP+:} false; then : 3836 $as_echo_n "(cached) " >&6 3837else 3838 if test -n "$STRIP"; then 3839 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3840else 3841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3842for as_dir in $PATH 3843do 3844 IFS=$as_save_IFS 3845 test -z "$as_dir" && as_dir=. 3846 for ac_exec_ext in '' $ac_executable_extensions; do 3847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3848 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3850 break 2 3851 fi 3852done 3853 done 3854IFS=$as_save_IFS 3855 3856fi 3857fi 3858STRIP=$ac_cv_prog_STRIP 3859if test -n "$STRIP"; then 3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3861$as_echo "$STRIP" >&6; } 3862else 3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3864$as_echo "no" >&6; } 3865fi 3866 3867 3868fi 3869if test -z "$ac_cv_prog_STRIP"; then 3870 ac_ct_STRIP=$STRIP 3871 # Extract the first word of "strip", so it can be a program name with args. 3872set dummy strip; ac_word=$2 3873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3874$as_echo_n "checking for $ac_word... " >&6; } 3875if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3876 $as_echo_n "(cached) " >&6 3877else 3878 if test -n "$ac_ct_STRIP"; then 3879 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3880else 3881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3882for as_dir in $PATH 3883do 3884 IFS=$as_save_IFS 3885 test -z "$as_dir" && as_dir=. 3886 for ac_exec_ext in '' $ac_executable_extensions; do 3887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3888 ac_cv_prog_ac_ct_STRIP="strip" 3889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3890 break 2 3891 fi 3892done 3893 done 3894IFS=$as_save_IFS 3895 3896fi 3897fi 3898ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3899if test -n "$ac_ct_STRIP"; then 3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3901$as_echo "$ac_ct_STRIP" >&6; } 3902else 3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3904$as_echo "no" >&6; } 3905fi 3906 3907 if test "x$ac_ct_STRIP" = x; then 3908 STRIP=":" 3909 else 3910 case $cross_compiling:$ac_tool_warned in 3911yes:) 3912{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3913$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3914ac_tool_warned=yes ;; 3915esac 3916 STRIP=$ac_ct_STRIP 3917 fi 3918else 3919 STRIP="$ac_cv_prog_STRIP" 3920fi 3921 3922fi 3923INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3924 3925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3926$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3927if test -z "$MKDIR_P"; then 3928 if ${ac_cv_path_mkdir+:} false; then : 3929 $as_echo_n "(cached) " >&6 3930else 3931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3932for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3933do 3934 IFS=$as_save_IFS 3935 test -z "$as_dir" && as_dir=. 3936 for ac_prog in mkdir gmkdir; do 3937 for ac_exec_ext in '' $ac_executable_extensions; do 3938 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3939 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3940 'mkdir (GNU coreutils) '* | \ 3941 'mkdir (coreutils) '* | \ 3942 'mkdir (fileutils) '4.1*) 3943 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3944 break 3;; 3945 esac 3946 done 3947 done 3948 done 3949IFS=$as_save_IFS 3950 3951fi 3952 3953 test -d ./--version && rmdir ./--version 3954 if test "${ac_cv_path_mkdir+set}" = set; then 3955 MKDIR_P="$ac_cv_path_mkdir -p" 3956 else 3957 # As a last resort, use the slow shell script. Don't cache a 3958 # value for MKDIR_P within a source directory, because that will 3959 # break other packages using the cache if that directory is 3960 # removed, or if the value is a relative name. 3961 MKDIR_P="$ac_install_sh -d" 3962 fi 3963fi 3964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3965$as_echo "$MKDIR_P" >&6; } 3966 3967for ac_prog in gawk mawk nawk awk 3968do 3969 # Extract the first word of "$ac_prog", so it can be a program name with args. 3970set dummy $ac_prog; ac_word=$2 3971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3972$as_echo_n "checking for $ac_word... " >&6; } 3973if ${ac_cv_prog_AWK+:} false; then : 3974 $as_echo_n "(cached) " >&6 3975else 3976 if test -n "$AWK"; then 3977 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3978else 3979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3980for as_dir in $PATH 3981do 3982 IFS=$as_save_IFS 3983 test -z "$as_dir" && as_dir=. 3984 for ac_exec_ext in '' $ac_executable_extensions; do 3985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3986 ac_cv_prog_AWK="$ac_prog" 3987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3988 break 2 3989 fi 3990done 3991 done 3992IFS=$as_save_IFS 3993 3994fi 3995fi 3996AWK=$ac_cv_prog_AWK 3997if test -n "$AWK"; then 3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3999$as_echo "$AWK" >&6; } 4000else 4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4002$as_echo "no" >&6; } 4003fi 4004 4005 4006 test -n "$AWK" && break 4007done 4008 4009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4010$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4011set x ${MAKE-make} 4012ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4013if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4014 $as_echo_n "(cached) " >&6 4015else 4016 cat >conftest.make <<\_ACEOF 4017SHELL = /bin/sh 4018all: 4019 @echo '@@@%%%=$(MAKE)=@@@%%%' 4020_ACEOF 4021# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4022case `${MAKE-make} -f conftest.make 2>/dev/null` in 4023 *@@@%%%=?*=@@@%%%*) 4024 eval ac_cv_prog_make_${ac_make}_set=yes;; 4025 *) 4026 eval ac_cv_prog_make_${ac_make}_set=no;; 4027esac 4028rm -f conftest.make 4029fi 4030if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4032$as_echo "yes" >&6; } 4033 SET_MAKE= 4034else 4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4036$as_echo "no" >&6; } 4037 SET_MAKE="MAKE=${MAKE-make}" 4038fi 4039 4040rm -rf .tst 2>/dev/null 4041mkdir .tst 2>/dev/null 4042if test -d .tst; then 4043 am__leading_dot=. 4044else 4045 am__leading_dot=_ 4046fi 4047rmdir .tst 2>/dev/null 4048 4049# Check whether --enable-silent-rules was given. 4050if test "${enable_silent_rules+set}" = set; then : 4051 enableval=$enable_silent_rules; 4052fi 4053 4054case $enable_silent_rules in # ((( 4055 yes) AM_DEFAULT_VERBOSITY=0;; 4056 no) AM_DEFAULT_VERBOSITY=1;; 4057 *) AM_DEFAULT_VERBOSITY=1;; 4058esac 4059am_make=${MAKE-make} 4060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4061$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4062if ${am_cv_make_support_nested_variables+:} false; then : 4063 $as_echo_n "(cached) " >&6 4064else 4065 if $as_echo 'TRUE=$(BAR$(V)) 4066BAR0=false 4067BAR1=true 4068V=1 4069am__doit: 4070 @$(TRUE) 4071.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4072 am_cv_make_support_nested_variables=yes 4073else 4074 am_cv_make_support_nested_variables=no 4075fi 4076fi 4077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4078$as_echo "$am_cv_make_support_nested_variables" >&6; } 4079if test $am_cv_make_support_nested_variables = yes; then 4080 AM_V='$(V)' 4081 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4082else 4083 AM_V=$AM_DEFAULT_VERBOSITY 4084 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4085fi 4086AM_BACKSLASH='\' 4087 4088if test "`cd $srcdir && pwd`" != "`pwd`"; then 4089 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4090 # is not polluted with repeated "-I." 4091 am__isrc=' -I$(srcdir)' 4092 # test to see if srcdir already configured 4093 if test -f $srcdir/config.status; then 4094 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4095 fi 4096fi 4097 4098# test whether we have cygpath 4099if test -z "$CYGPATH_W"; then 4100 if (cygpath --version) >/dev/null 2>/dev/null; then 4101 CYGPATH_W='cygpath -w' 4102 else 4103 CYGPATH_W=echo 4104 fi 4105fi 4106 4107 4108# Define the identity of the package. 4109 PACKAGE='gettext-runtime' 4110 VERSION='0.21' 4111 4112 4113cat >>confdefs.h <<_ACEOF 4114#define PACKAGE "$PACKAGE" 4115_ACEOF 4116 4117 4118cat >>confdefs.h <<_ACEOF 4119#define VERSION "$VERSION" 4120_ACEOF 4121 4122# Some tools Automake needs. 4123 4124ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4125 4126 4127AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4128 4129 4130AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4131 4132 4133AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4134 4135 4136MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4137 4138# For better backward compatibility. To be removed once Automake 1.9.x 4139# dies out for good. For more background, see: 4140# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4141# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4142mkdir_p='$(MKDIR_P)' 4143 4144# We need awk for the "check" target (and possibly the TAP driver). The 4145# system "awk" is bad on some platforms. 4146# Always define AMTAR for backward compatibility. Yes, it's still used 4147# in the wild :-( We should find a proper way to deprecate it ... 4148AMTAR='$${TAR-tar}' 4149 4150 4151# We'll loop over all known methods to create a tar archive until one works. 4152_am_tools='gnutar pax cpio none' 4153 4154am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4155 4156 4157 4158 4159 4160 4161# POSIX will say in a future version that running "rm -f" with no argument 4162# is OK; and we want to be able to make that assumption in our Makefile 4163# recipes. So use an aggressive probe to check that the usage we want is 4164# actually supported "in the wild" to an acceptable degree. 4165# See automake bug#10828. 4166# To make any issue more visible, cause the running configure to be aborted 4167# by default if the 'rm' program in use doesn't match our expectations; the 4168# user can still override this though. 4169if rm -f && rm -fr && rm -rf; then : OK; else 4170 cat >&2 <<'END' 4171Oops! 4172 4173Your 'rm' program seems unable to run without file operands specified 4174on the command line, even when the '-f' option is present. This is contrary 4175to the behaviour of most rm programs out there, and not conforming with 4176the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4177 4178Please tell bug-automake@gnu.org about your system, including the value 4179of your $PATH and any error possibly output before this message. This 4180can help us improve future automake versions. 4181 4182END 4183 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4184 echo 'Configuration will proceed anyway, since you have set the' >&2 4185 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4186 echo >&2 4187 else 4188 cat >&2 <<'END' 4189Aborting the configuration process, to ensure you take notice of the issue. 4190 4191You can download and install GNU coreutils to get an 'rm' implementation 4192that behaves properly: <https://www.gnu.org/software/coreutils/>. 4193 4194If you want to complete the configuration process using your problematic 4195'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4196to "yes", and re-run configure. 4197 4198END 4199 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4200 fi 4201fi 4202 4203ac_config_headers="$ac_config_headers config.h" 4204 4205 4206test "$docdir" != '${datarootdir}/doc/${PACKAGE_TARNAME}' || docdir='${datarootdir}/doc/gettext' 4207 4208ac_ext=c 4209ac_cpp='$CPP $CPPFLAGS' 4210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4212ac_compiler_gnu=$ac_cv_c_compiler_gnu 4213if test -n "$ac_tool_prefix"; then 4214 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4215set dummy ${ac_tool_prefix}gcc; ac_word=$2 4216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4217$as_echo_n "checking for $ac_word... " >&6; } 4218if ${ac_cv_prog_CC+:} false; then : 4219 $as_echo_n "(cached) " >&6 4220else 4221 if test -n "$CC"; then 4222 ac_cv_prog_CC="$CC" # Let the user override the test. 4223else 4224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4225for as_dir in $PATH 4226do 4227 IFS=$as_save_IFS 4228 test -z "$as_dir" && as_dir=. 4229 for ac_exec_ext in '' $ac_executable_extensions; do 4230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4231 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4233 break 2 4234 fi 4235done 4236 done 4237IFS=$as_save_IFS 4238 4239fi 4240fi 4241CC=$ac_cv_prog_CC 4242if test -n "$CC"; then 4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4244$as_echo "$CC" >&6; } 4245else 4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4247$as_echo "no" >&6; } 4248fi 4249 4250 4251fi 4252if test -z "$ac_cv_prog_CC"; then 4253 ac_ct_CC=$CC 4254 # Extract the first word of "gcc", so it can be a program name with args. 4255set dummy gcc; ac_word=$2 4256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4257$as_echo_n "checking for $ac_word... " >&6; } 4258if ${ac_cv_prog_ac_ct_CC+:} false; then : 4259 $as_echo_n "(cached) " >&6 4260else 4261 if test -n "$ac_ct_CC"; then 4262 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4263else 4264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4265for as_dir in $PATH 4266do 4267 IFS=$as_save_IFS 4268 test -z "$as_dir" && as_dir=. 4269 for ac_exec_ext in '' $ac_executable_extensions; do 4270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4271 ac_cv_prog_ac_ct_CC="gcc" 4272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4273 break 2 4274 fi 4275done 4276 done 4277IFS=$as_save_IFS 4278 4279fi 4280fi 4281ac_ct_CC=$ac_cv_prog_ac_ct_CC 4282if test -n "$ac_ct_CC"; then 4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4284$as_echo "$ac_ct_CC" >&6; } 4285else 4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4287$as_echo "no" >&6; } 4288fi 4289 4290 if test "x$ac_ct_CC" = x; then 4291 CC="" 4292 else 4293 case $cross_compiling:$ac_tool_warned in 4294yes:) 4295{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4296$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4297ac_tool_warned=yes ;; 4298esac 4299 CC=$ac_ct_CC 4300 fi 4301else 4302 CC="$ac_cv_prog_CC" 4303fi 4304 4305if test -z "$CC"; then 4306 if test -n "$ac_tool_prefix"; then 4307 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4308set dummy ${ac_tool_prefix}cc; ac_word=$2 4309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4310$as_echo_n "checking for $ac_word... " >&6; } 4311if ${ac_cv_prog_CC+:} false; then : 4312 $as_echo_n "(cached) " >&6 4313else 4314 if test -n "$CC"; then 4315 ac_cv_prog_CC="$CC" # Let the user override the test. 4316else 4317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4318for as_dir in $PATH 4319do 4320 IFS=$as_save_IFS 4321 test -z "$as_dir" && as_dir=. 4322 for ac_exec_ext in '' $ac_executable_extensions; do 4323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4324 ac_cv_prog_CC="${ac_tool_prefix}cc" 4325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4326 break 2 4327 fi 4328done 4329 done 4330IFS=$as_save_IFS 4331 4332fi 4333fi 4334CC=$ac_cv_prog_CC 4335if test -n "$CC"; then 4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4337$as_echo "$CC" >&6; } 4338else 4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4340$as_echo "no" >&6; } 4341fi 4342 4343 4344 fi 4345fi 4346if test -z "$CC"; then 4347 # Extract the first word of "cc", so it can be a program name with args. 4348set dummy cc; ac_word=$2 4349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4350$as_echo_n "checking for $ac_word... " >&6; } 4351if ${ac_cv_prog_CC+:} false; then : 4352 $as_echo_n "(cached) " >&6 4353else 4354 if test -n "$CC"; then 4355 ac_cv_prog_CC="$CC" # Let the user override the test. 4356else 4357 ac_prog_rejected=no 4358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4359for as_dir in $PATH 4360do 4361 IFS=$as_save_IFS 4362 test -z "$as_dir" && as_dir=. 4363 for ac_exec_ext in '' $ac_executable_extensions; do 4364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4365 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4366 ac_prog_rejected=yes 4367 continue 4368 fi 4369 ac_cv_prog_CC="cc" 4370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4371 break 2 4372 fi 4373done 4374 done 4375IFS=$as_save_IFS 4376 4377if test $ac_prog_rejected = yes; then 4378 # We found a bogon in the path, so make sure we never use it. 4379 set dummy $ac_cv_prog_CC 4380 shift 4381 if test $# != 0; then 4382 # We chose a different compiler from the bogus one. 4383 # However, it has the same basename, so the bogon will be chosen 4384 # first if we set CC to just the basename; use the full file name. 4385 shift 4386 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4387 fi 4388fi 4389fi 4390fi 4391CC=$ac_cv_prog_CC 4392if test -n "$CC"; then 4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4394$as_echo "$CC" >&6; } 4395else 4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4397$as_echo "no" >&6; } 4398fi 4399 4400 4401fi 4402if test -z "$CC"; then 4403 if test -n "$ac_tool_prefix"; then 4404 for ac_prog in cl.exe 4405 do 4406 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4407set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4409$as_echo_n "checking for $ac_word... " >&6; } 4410if ${ac_cv_prog_CC+:} false; then : 4411 $as_echo_n "(cached) " >&6 4412else 4413 if test -n "$CC"; then 4414 ac_cv_prog_CC="$CC" # Let the user override the test. 4415else 4416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4417for as_dir in $PATH 4418do 4419 IFS=$as_save_IFS 4420 test -z "$as_dir" && as_dir=. 4421 for ac_exec_ext in '' $ac_executable_extensions; do 4422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4423 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4425 break 2 4426 fi 4427done 4428 done 4429IFS=$as_save_IFS 4430 4431fi 4432fi 4433CC=$ac_cv_prog_CC 4434if test -n "$CC"; then 4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4436$as_echo "$CC" >&6; } 4437else 4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4439$as_echo "no" >&6; } 4440fi 4441 4442 4443 test -n "$CC" && break 4444 done 4445fi 4446if test -z "$CC"; then 4447 ac_ct_CC=$CC 4448 for ac_prog in cl.exe 4449do 4450 # Extract the first word of "$ac_prog", so it can be a program name with args. 4451set dummy $ac_prog; ac_word=$2 4452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4453$as_echo_n "checking for $ac_word... " >&6; } 4454if ${ac_cv_prog_ac_ct_CC+:} false; then : 4455 $as_echo_n "(cached) " >&6 4456else 4457 if test -n "$ac_ct_CC"; then 4458 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4459else 4460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4461for as_dir in $PATH 4462do 4463 IFS=$as_save_IFS 4464 test -z "$as_dir" && as_dir=. 4465 for ac_exec_ext in '' $ac_executable_extensions; do 4466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4467 ac_cv_prog_ac_ct_CC="$ac_prog" 4468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4469 break 2 4470 fi 4471done 4472 done 4473IFS=$as_save_IFS 4474 4475fi 4476fi 4477ac_ct_CC=$ac_cv_prog_ac_ct_CC 4478if test -n "$ac_ct_CC"; then 4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4480$as_echo "$ac_ct_CC" >&6; } 4481else 4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4483$as_echo "no" >&6; } 4484fi 4485 4486 4487 test -n "$ac_ct_CC" && break 4488done 4489 4490 if test "x$ac_ct_CC" = x; then 4491 CC="" 4492 else 4493 case $cross_compiling:$ac_tool_warned in 4494yes:) 4495{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4496$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4497ac_tool_warned=yes ;; 4498esac 4499 CC=$ac_ct_CC 4500 fi 4501fi 4502 4503fi 4504if test -z "$CC"; then 4505 if test -n "$ac_tool_prefix"; then 4506 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 4507set dummy ${ac_tool_prefix}clang; ac_word=$2 4508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4509$as_echo_n "checking for $ac_word... " >&6; } 4510if ${ac_cv_prog_CC+:} false; then : 4511 $as_echo_n "(cached) " >&6 4512else 4513 if test -n "$CC"; then 4514 ac_cv_prog_CC="$CC" # Let the user override the test. 4515else 4516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4517for as_dir in $PATH 4518do 4519 IFS=$as_save_IFS 4520 test -z "$as_dir" && as_dir=. 4521 for ac_exec_ext in '' $ac_executable_extensions; do 4522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4523 ac_cv_prog_CC="${ac_tool_prefix}clang" 4524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4525 break 2 4526 fi 4527done 4528 done 4529IFS=$as_save_IFS 4530 4531fi 4532fi 4533CC=$ac_cv_prog_CC 4534if test -n "$CC"; then 4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4536$as_echo "$CC" >&6; } 4537else 4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4539$as_echo "no" >&6; } 4540fi 4541 4542 4543fi 4544if test -z "$ac_cv_prog_CC"; then 4545 ac_ct_CC=$CC 4546 # Extract the first word of "clang", so it can be a program name with args. 4547set dummy clang; ac_word=$2 4548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4549$as_echo_n "checking for $ac_word... " >&6; } 4550if ${ac_cv_prog_ac_ct_CC+:} false; then : 4551 $as_echo_n "(cached) " >&6 4552else 4553 if test -n "$ac_ct_CC"; then 4554 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4555else 4556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4557for as_dir in $PATH 4558do 4559 IFS=$as_save_IFS 4560 test -z "$as_dir" && as_dir=. 4561 for ac_exec_ext in '' $ac_executable_extensions; do 4562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4563 ac_cv_prog_ac_ct_CC="clang" 4564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4565 break 2 4566 fi 4567done 4568 done 4569IFS=$as_save_IFS 4570 4571fi 4572fi 4573ac_ct_CC=$ac_cv_prog_ac_ct_CC 4574if test -n "$ac_ct_CC"; then 4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4576$as_echo "$ac_ct_CC" >&6; } 4577else 4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4579$as_echo "no" >&6; } 4580fi 4581 4582 if test "x$ac_ct_CC" = x; then 4583 CC="" 4584 else 4585 case $cross_compiling:$ac_tool_warned in 4586yes:) 4587{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4588$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4589ac_tool_warned=yes ;; 4590esac 4591 CC=$ac_ct_CC 4592 fi 4593else 4594 CC="$ac_cv_prog_CC" 4595fi 4596 4597fi 4598 4599 4600test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4601$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4602as_fn_error $? "no acceptable C compiler found in \$PATH 4603See \`config.log' for more details" "$LINENO" 5; } 4604 4605# Provide some information about the compiler. 4606$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4607set X $ac_compile 4608ac_compiler=$2 4609for ac_option in --version -v -V -qversion -version; do 4610 { { ac_try="$ac_compiler $ac_option >&5" 4611case "(($ac_try" in 4612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4613 *) ac_try_echo=$ac_try;; 4614esac 4615eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4616$as_echo "$ac_try_echo"; } >&5 4617 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4618 ac_status=$? 4619 if test -s conftest.err; then 4620 sed '10a\ 4621... rest of stderr output deleted ... 4622 10q' conftest.err >conftest.er1 4623 cat conftest.er1 >&5 4624 fi 4625 rm -f conftest.er1 conftest.err 4626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4627 test $ac_status = 0; } 4628done 4629 4630cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4631/* end confdefs.h. */ 4632 4633int 4634main () 4635{ 4636 4637 ; 4638 return 0; 4639} 4640_ACEOF 4641ac_clean_files_save=$ac_clean_files 4642ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4643# Try to create an executable without -o first, disregard a.out. 4644# It will help us diagnose broken compilers, and finding out an intuition 4645# of exeext. 4646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4647$as_echo_n "checking whether the C compiler works... " >&6; } 4648ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4649 4650# The possible output files: 4651ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4652 4653ac_rmfiles= 4654for ac_file in $ac_files 4655do 4656 case $ac_file in 4657 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4658 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4659 esac 4660done 4661rm -f $ac_rmfiles 4662 4663if { { ac_try="$ac_link_default" 4664case "(($ac_try" in 4665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4666 *) ac_try_echo=$ac_try;; 4667esac 4668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4669$as_echo "$ac_try_echo"; } >&5 4670 (eval "$ac_link_default") 2>&5 4671 ac_status=$? 4672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4673 test $ac_status = 0; }; then : 4674 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4675# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4676# in a Makefile. We should not override ac_cv_exeext if it was cached, 4677# so that the user can short-circuit this test for compilers unknown to 4678# Autoconf. 4679for ac_file in $ac_files '' 4680do 4681 test -f "$ac_file" || continue 4682 case $ac_file in 4683 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4684 ;; 4685 [ab].out ) 4686 # We found the default executable, but exeext='' is most 4687 # certainly right. 4688 break;; 4689 *.* ) 4690 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4691 then :; else 4692 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4693 fi 4694 # We set ac_cv_exeext here because the later test for it is not 4695 # safe: cross compilers may not add the suffix if given an `-o' 4696 # argument, so we may need to know it at that point already. 4697 # Even if this section looks crufty: it has the advantage of 4698 # actually working. 4699 break;; 4700 * ) 4701 break;; 4702 esac 4703done 4704test "$ac_cv_exeext" = no && ac_cv_exeext= 4705 4706else 4707 ac_file='' 4708fi 4709if test -z "$ac_file"; then : 4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4711$as_echo "no" >&6; } 4712$as_echo "$as_me: failed program was:" >&5 4713sed 's/^/| /' conftest.$ac_ext >&5 4714 4715{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4716$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4717as_fn_error 77 "C compiler cannot create executables 4718See \`config.log' for more details" "$LINENO" 5; } 4719else 4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4721$as_echo "yes" >&6; } 4722fi 4723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4724$as_echo_n "checking for C compiler default output file name... " >&6; } 4725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4726$as_echo "$ac_file" >&6; } 4727ac_exeext=$ac_cv_exeext 4728 4729rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4730ac_clean_files=$ac_clean_files_save 4731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4732$as_echo_n "checking for suffix of executables... " >&6; } 4733if { { ac_try="$ac_link" 4734case "(($ac_try" in 4735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4736 *) ac_try_echo=$ac_try;; 4737esac 4738eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4739$as_echo "$ac_try_echo"; } >&5 4740 (eval "$ac_link") 2>&5 4741 ac_status=$? 4742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4743 test $ac_status = 0; }; then : 4744 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4745# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4746# work properly (i.e., refer to `conftest.exe'), while it won't with 4747# `rm'. 4748for ac_file in conftest.exe conftest conftest.*; do 4749 test -f "$ac_file" || continue 4750 case $ac_file in 4751 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4752 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4753 break;; 4754 * ) break;; 4755 esac 4756done 4757else 4758 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4759$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4760as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4761See \`config.log' for more details" "$LINENO" 5; } 4762fi 4763rm -f conftest conftest$ac_cv_exeext 4764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4765$as_echo "$ac_cv_exeext" >&6; } 4766 4767rm -f conftest.$ac_ext 4768EXEEXT=$ac_cv_exeext 4769ac_exeext=$EXEEXT 4770cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4771/* end confdefs.h. */ 4772#include <stdio.h> 4773int 4774main () 4775{ 4776FILE *f = fopen ("conftest.out", "w"); 4777 return ferror (f) || fclose (f) != 0; 4778 4779 ; 4780 return 0; 4781} 4782_ACEOF 4783ac_clean_files="$ac_clean_files conftest.out" 4784# Check that the compiler produces executables we can run. If not, either 4785# the compiler is broken, or we cross compile. 4786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4787$as_echo_n "checking whether we are cross compiling... " >&6; } 4788if test "$cross_compiling" != yes; then 4789 { { ac_try="$ac_link" 4790case "(($ac_try" in 4791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4792 *) ac_try_echo=$ac_try;; 4793esac 4794eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4795$as_echo "$ac_try_echo"; } >&5 4796 (eval "$ac_link") 2>&5 4797 ac_status=$? 4798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4799 test $ac_status = 0; } 4800 if { ac_try='./conftest$ac_cv_exeext' 4801 { { case "(($ac_try" in 4802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4803 *) ac_try_echo=$ac_try;; 4804esac 4805eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4806$as_echo "$ac_try_echo"; } >&5 4807 (eval "$ac_try") 2>&5 4808 ac_status=$? 4809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4810 test $ac_status = 0; }; }; then 4811 cross_compiling=no 4812 else 4813 if test "$cross_compiling" = maybe; then 4814 cross_compiling=yes 4815 else 4816 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4817$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4818as_fn_error $? "cannot run C compiled programs. 4819If you meant to cross compile, use \`--host'. 4820See \`config.log' for more details" "$LINENO" 5; } 4821 fi 4822 fi 4823fi 4824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4825$as_echo "$cross_compiling" >&6; } 4826 4827rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4828ac_clean_files=$ac_clean_files_save 4829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4830$as_echo_n "checking for suffix of object files... " >&6; } 4831if ${ac_cv_objext+:} false; then : 4832 $as_echo_n "(cached) " >&6 4833else 4834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4835/* end confdefs.h. */ 4836 4837int 4838main () 4839{ 4840 4841 ; 4842 return 0; 4843} 4844_ACEOF 4845rm -f conftest.o conftest.obj 4846if { { ac_try="$ac_compile" 4847case "(($ac_try" in 4848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4849 *) ac_try_echo=$ac_try;; 4850esac 4851eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4852$as_echo "$ac_try_echo"; } >&5 4853 (eval "$ac_compile") 2>&5 4854 ac_status=$? 4855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4856 test $ac_status = 0; }; then : 4857 for ac_file in conftest.o conftest.obj conftest.*; do 4858 test -f "$ac_file" || continue; 4859 case $ac_file in 4860 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4861 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4862 break;; 4863 esac 4864done 4865else 4866 $as_echo "$as_me: failed program was:" >&5 4867sed 's/^/| /' conftest.$ac_ext >&5 4868 4869{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4870$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4871as_fn_error $? "cannot compute suffix of object files: cannot compile 4872See \`config.log' for more details" "$LINENO" 5; } 4873fi 4874rm -f conftest.$ac_cv_objext conftest.$ac_ext 4875fi 4876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4877$as_echo "$ac_cv_objext" >&6; } 4878OBJEXT=$ac_cv_objext 4879ac_objext=$OBJEXT 4880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4881$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4882if ${ac_cv_c_compiler_gnu+:} false; then : 4883 $as_echo_n "(cached) " >&6 4884else 4885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4886/* end confdefs.h. */ 4887 4888int 4889main () 4890{ 4891#ifndef __GNUC__ 4892 choke me 4893#endif 4894 4895 ; 4896 return 0; 4897} 4898_ACEOF 4899if ac_fn_c_try_compile "$LINENO"; then : 4900 ac_compiler_gnu=yes 4901else 4902 ac_compiler_gnu=no 4903fi 4904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4905ac_cv_c_compiler_gnu=$ac_compiler_gnu 4906 4907fi 4908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4909$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4910if test $ac_compiler_gnu = yes; then 4911 GCC=yes 4912else 4913 GCC= 4914fi 4915ac_test_CFLAGS=${CFLAGS+set} 4916ac_save_CFLAGS=$CFLAGS 4917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4918$as_echo_n "checking whether $CC accepts -g... " >&6; } 4919if ${ac_cv_prog_cc_g+:} false; then : 4920 $as_echo_n "(cached) " >&6 4921else 4922 ac_save_c_werror_flag=$ac_c_werror_flag 4923 ac_c_werror_flag=yes 4924 ac_cv_prog_cc_g=no 4925 CFLAGS="-g" 4926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4927/* end confdefs.h. */ 4928 4929int 4930main () 4931{ 4932 4933 ; 4934 return 0; 4935} 4936_ACEOF 4937if ac_fn_c_try_compile "$LINENO"; then : 4938 ac_cv_prog_cc_g=yes 4939else 4940 CFLAGS="" 4941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4942/* end confdefs.h. */ 4943 4944int 4945main () 4946{ 4947 4948 ; 4949 return 0; 4950} 4951_ACEOF 4952if ac_fn_c_try_compile "$LINENO"; then : 4953 4954else 4955 ac_c_werror_flag=$ac_save_c_werror_flag 4956 CFLAGS="-g" 4957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4958/* end confdefs.h. */ 4959 4960int 4961main () 4962{ 4963 4964 ; 4965 return 0; 4966} 4967_ACEOF 4968if ac_fn_c_try_compile "$LINENO"; then : 4969 ac_cv_prog_cc_g=yes 4970fi 4971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4972fi 4973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4974fi 4975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4976 ac_c_werror_flag=$ac_save_c_werror_flag 4977fi 4978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4979$as_echo "$ac_cv_prog_cc_g" >&6; } 4980if test "$ac_test_CFLAGS" = set; then 4981 CFLAGS=$ac_save_CFLAGS 4982elif test $ac_cv_prog_cc_g = yes; then 4983 if test "$GCC" = yes; then 4984 CFLAGS="-g -O2" 4985 else 4986 CFLAGS="-g" 4987 fi 4988else 4989 if test "$GCC" = yes; then 4990 CFLAGS="-O2" 4991 else 4992 CFLAGS= 4993 fi 4994fi 4995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4996$as_echo_n "checking for $CC option to enable C11 features... " >&6; } 4997if ${ac_cv_prog_cc_c11+:} false; then : 4998 $as_echo_n "(cached) " >&6 4999else 5000 ac_cv_prog_cc_c11=no 5001ac_save_CC=$CC 5002cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5003/* end confdefs.h. */ 5004#include <stdarg.h> 5005#include <stdbool.h> 5006#include <stddef.h> 5007#include <stdlib.h> 5008#include <wchar.h> 5009#include <stdio.h> 5010 5011// Check varargs macros. These examples are taken from C99 6.10.3.5. 5012#define debug(...) fprintf (stderr, __VA_ARGS__) 5013#define showlist(...) puts (#__VA_ARGS__) 5014#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 5015static void 5016test_varargs_macros (void) 5017{ 5018 int x = 1234; 5019 int y = 5678; 5020 debug ("Flag"); 5021 debug ("X = %d\n", x); 5022 showlist (The first, second, and third items.); 5023 report (x>y, "x is %d but y is %d", x, y); 5024} 5025 5026// Check long long types. 5027#define BIG64 18446744073709551615ull 5028#define BIG32 4294967295ul 5029#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 5030#if !BIG_OK 5031 your preprocessor is broken; 5032#endif 5033#if BIG_OK 5034#else 5035 your preprocessor is broken; 5036#endif 5037static long long int bignum = -9223372036854775807LL; 5038static unsigned long long int ubignum = BIG64; 5039 5040struct incomplete_array 5041{ 5042 int datasize; 5043 double data[]; 5044}; 5045 5046struct named_init { 5047 int number; 5048 const wchar_t *name; 5049 double average; 5050}; 5051 5052typedef const char *ccp; 5053 5054static inline int 5055test_restrict (ccp restrict text) 5056{ 5057 // See if C++-style comments work. 5058 // Iterate through items via the restricted pointer. 5059 // Also check for declarations in for loops. 5060 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 5061 continue; 5062 return 0; 5063} 5064 5065// Check varargs and va_copy. 5066static bool 5067test_varargs (const char *format, ...) 5068{ 5069 va_list args; 5070 va_start (args, format); 5071 va_list args_copy; 5072 va_copy (args_copy, args); 5073 5074 const char *str = ""; 5075 int number = 0; 5076 float fnumber = 0; 5077 5078 while (*format) 5079 { 5080 switch (*format++) 5081 { 5082 case 's': // string 5083 str = va_arg (args_copy, const char *); 5084 break; 5085 case 'd': // int 5086 number = va_arg (args_copy, int); 5087 break; 5088 case 'f': // float 5089 fnumber = va_arg (args_copy, double); 5090 break; 5091 default: 5092 break; 5093 } 5094 } 5095 va_end (args_copy); 5096 va_end (args); 5097 5098 return *str && number && fnumber; 5099} 5100// Check _Alignas. 5101char _Alignas (double) aligned_as_double; 5102char _Alignas (0) no_special_alignment; 5103extern char aligned_as_int; 5104char _Alignas (0) _Alignas (int) aligned_as_int; 5105 5106// Check _Alignof. 5107enum 5108{ 5109 int_alignment = _Alignof (int), 5110 int_array_alignment = _Alignof (int[100]), 5111 char_alignment = _Alignof (char) 5112}; 5113_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 5114 5115// Check _Noreturn. 5116int _Noreturn does_not_return (void) { for (;;) continue; } 5117 5118// Check _Static_assert. 5119struct test_static_assert 5120{ 5121 int x; 5122 _Static_assert (sizeof (int) <= sizeof (long int), 5123 "_Static_assert does not work in struct"); 5124 long int y; 5125}; 5126 5127// Check UTF-8 literals. 5128#define u8 syntax error! 5129char const utf8_literal[] = u8"happens to be ASCII" "another string"; 5130 5131// Check duplicate typedefs. 5132typedef long *long_ptr; 5133typedef long int *long_ptr; 5134typedef long_ptr long_ptr; 5135 5136// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 5137struct anonymous 5138{ 5139 union { 5140 struct { int i; int j; }; 5141 struct { int k; long int l; } w; 5142 }; 5143 int m; 5144} v1; 5145 5146int 5147main () 5148{ 5149 5150 // Check bool. 5151 _Bool success = false; 5152 5153 // Check restrict. 5154 if (test_restrict ("String literal") == 0) 5155 success = true; 5156 char *restrict newvar = "Another string"; 5157 5158 // Check varargs. 5159 success &= test_varargs ("s, d' f .", "string", 65, 34.234); 5160 test_varargs_macros (); 5161 5162 // Check flexible array members. 5163 struct incomplete_array *ia = 5164 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 5165 ia->datasize = 10; 5166 for (int i = 0; i < ia->datasize; ++i) 5167 ia->data[i] = i * 1.234; 5168 5169 // Check named initializers. 5170 struct named_init ni = { 5171 .number = 34, 5172 .name = L"Test wide string", 5173 .average = 543.34343, 5174 }; 5175 5176 ni.number = 58; 5177 5178 int dynamic_array[ni.number]; 5179 dynamic_array[ni.number - 1] = 543; 5180 5181 // work around unused variable warnings 5182 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 5183 || dynamic_array[ni.number - 1] != 543); 5184 5185 v1.i = 2; 5186 v1.w.k = 5; 5187 _Static_assert ((offsetof (struct anonymous, i) 5188 == offsetof (struct anonymous, w.k)), 5189 "Anonymous union alignment botch"); 5190 5191 ; 5192 return 0; 5193} 5194_ACEOF 5195for ac_arg in '' -std=gnu11 5196do 5197 CC="$ac_save_CC $ac_arg" 5198 if ac_fn_c_try_compile "$LINENO"; then : 5199 ac_cv_prog_cc_c11=$ac_arg 5200fi 5201rm -f core conftest.err conftest.$ac_objext 5202 test "x$ac_cv_prog_cc_c11" != "xno" && break 5203done 5204rm -f conftest.$ac_ext 5205CC=$ac_save_CC 5206 5207fi 5208# AC_CACHE_VAL 5209ac_prog_cc_stdc_options= 5210case "x$ac_cv_prog_cc_c11" in 5211 x) 5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5213$as_echo "none needed" >&6; } ;; 5214 xno) 5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5216$as_echo "unsupported" >&6; } ;; 5217 *) 5218 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c11" 5219 CC=$CC$ac_prog_cc_stdc_options 5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 5221$as_echo "$ac_cv_prog_cc_c11" >&6; } ;; 5222esac 5223if test "x$ac_cv_prog_cc_c11" != xno; then : 5224 ac_prog_cc_stdc=c11 5225 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 5226else 5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 5228$as_echo_n "checking for $CC option to enable C99 features... " >&6; } 5229if ${ac_cv_prog_cc_c99+:} false; then : 5230 $as_echo_n "(cached) " >&6 5231else 5232 ac_cv_prog_cc_c99=no 5233ac_save_CC=$CC 5234cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5235/* end confdefs.h. */ 5236#include <stdarg.h> 5237#include <stdbool.h> 5238#include <stddef.h> 5239#include <stdlib.h> 5240#include <wchar.h> 5241#include <stdio.h> 5242 5243// Check varargs macros. These examples are taken from C99 6.10.3.5. 5244#define debug(...) fprintf (stderr, __VA_ARGS__) 5245#define showlist(...) puts (#__VA_ARGS__) 5246#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 5247static void 5248test_varargs_macros (void) 5249{ 5250 int x = 1234; 5251 int y = 5678; 5252 debug ("Flag"); 5253 debug ("X = %d\n", x); 5254 showlist (The first, second, and third items.); 5255 report (x>y, "x is %d but y is %d", x, y); 5256} 5257 5258// Check long long types. 5259#define BIG64 18446744073709551615ull 5260#define BIG32 4294967295ul 5261#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 5262#if !BIG_OK 5263 your preprocessor is broken; 5264#endif 5265#if BIG_OK 5266#else 5267 your preprocessor is broken; 5268#endif 5269static long long int bignum = -9223372036854775807LL; 5270static unsigned long long int ubignum = BIG64; 5271 5272struct incomplete_array 5273{ 5274 int datasize; 5275 double data[]; 5276}; 5277 5278struct named_init { 5279 int number; 5280 const wchar_t *name; 5281 double average; 5282}; 5283 5284typedef const char *ccp; 5285 5286static inline int 5287test_restrict (ccp restrict text) 5288{ 5289 // See if C++-style comments work. 5290 // Iterate through items via the restricted pointer. 5291 // Also check for declarations in for loops. 5292 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 5293 continue; 5294 return 0; 5295} 5296 5297// Check varargs and va_copy. 5298static bool 5299test_varargs (const char *format, ...) 5300{ 5301 va_list args; 5302 va_start (args, format); 5303 va_list args_copy; 5304 va_copy (args_copy, args); 5305 5306 const char *str = ""; 5307 int number = 0; 5308 float fnumber = 0; 5309 5310 while (*format) 5311 { 5312 switch (*format++) 5313 { 5314 case 's': // string 5315 str = va_arg (args_copy, const char *); 5316 break; 5317 case 'd': // int 5318 number = va_arg (args_copy, int); 5319 break; 5320 case 'f': // float 5321 fnumber = va_arg (args_copy, double); 5322 break; 5323 default: 5324 break; 5325 } 5326 } 5327 va_end (args_copy); 5328 va_end (args); 5329 5330 return *str && number && fnumber; 5331} 5332int 5333main () 5334{ 5335 5336 // Check bool. 5337 _Bool success = false; 5338 5339 // Check restrict. 5340 if (test_restrict ("String literal") == 0) 5341 success = true; 5342 char *restrict newvar = "Another string"; 5343 5344 // Check varargs. 5345 success &= test_varargs ("s, d' f .", "string", 65, 34.234); 5346 test_varargs_macros (); 5347 5348 // Check flexible array members. 5349 struct incomplete_array *ia = 5350 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 5351 ia->datasize = 10; 5352 for (int i = 0; i < ia->datasize; ++i) 5353 ia->data[i] = i * 1.234; 5354 5355 // Check named initializers. 5356 struct named_init ni = { 5357 .number = 34, 5358 .name = L"Test wide string", 5359 .average = 543.34343, 5360 }; 5361 5362 ni.number = 58; 5363 5364 int dynamic_array[ni.number]; 5365 dynamic_array[ni.number - 1] = 543; 5366 5367 // work around unused variable warnings 5368 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 5369 || dynamic_array[ni.number - 1] != 543); 5370 5371 ; 5372 return 0; 5373} 5374_ACEOF 5375for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc1x -qlanglvl=extc99 5376do 5377 CC="$ac_save_CC $ac_arg" 5378 if ac_fn_c_try_compile "$LINENO"; then : 5379 ac_cv_prog_cc_c99=$ac_arg 5380fi 5381rm -f core conftest.err conftest.$ac_objext 5382 test "x$ac_cv_prog_cc_c99" != "xno" && break 5383done 5384rm -f conftest.$ac_ext 5385CC=$ac_save_CC 5386 5387fi 5388# AC_CACHE_VAL 5389ac_prog_cc_stdc_options= 5390case "x$ac_cv_prog_cc_c99" in 5391 x) 5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5393$as_echo "none needed" >&6; } ;; 5394 xno) 5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5396$as_echo "unsupported" >&6; } ;; 5397 *) 5398 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c99" 5399 CC=$CC$ac_prog_cc_stdc_options 5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5401$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 5402esac 5403if test "x$ac_cv_prog_cc_c99" != xno; then : 5404 ac_prog_cc_stdc=c99 5405 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 5406else 5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 5408$as_echo_n "checking for $CC option to enable C89 features... " >&6; } 5409if ${ac_cv_prog_cc_c89+:} false; then : 5410 $as_echo_n "(cached) " >&6 5411else 5412 ac_cv_prog_cc_c89=no 5413ac_save_CC=$CC 5414cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5415/* end confdefs.h. */ 5416#include <stdarg.h> 5417#include <stdio.h> 5418struct stat; 5419/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5420struct buf { int x; }; 5421FILE * (*rcsopen) (struct buf *, struct stat *, int); 5422static char *e (p, i) 5423 char **p; 5424 int i; 5425{ 5426 return p[i]; 5427} 5428static char *f (char * (*g) (char **, int), char **p, ...) 5429{ 5430 char *s; 5431 va_list v; 5432 va_start (v,p); 5433 s = g (p, va_arg (v,int)); 5434 va_end (v); 5435 return s; 5436} 5437 5438/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5439 function prototypes and stuff, but not '\xHH' hex character constants. 5440 These don't provoke an error unfortunately, instead are silently treated 5441 as 'x'. The following induces an error, until -std is added to get 5442 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5443 array size at least. It's necessary to write '\x00'==0 to get something 5444 that's true only with -std. */ 5445int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5446 5447/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5448 inside strings and character constants. */ 5449#define FOO(x) 'x' 5450int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5451 5452int test (int i, double x); 5453struct s1 {int (*f) (int a);}; 5454struct s2 {int (*f) (double a);}; 5455int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5456int argc; 5457char **argv; 5458int 5459main () 5460{ 5461return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5462 ; 5463 return 0; 5464} 5465_ACEOF 5466for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5467 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5468do 5469 CC="$ac_save_CC $ac_arg" 5470 if ac_fn_c_try_compile "$LINENO"; then : 5471 ac_cv_prog_cc_c89=$ac_arg 5472fi 5473rm -f core conftest.err conftest.$ac_objext 5474 test "x$ac_cv_prog_cc_c89" != "xno" && break 5475done 5476rm -f conftest.$ac_ext 5477CC=$ac_save_CC 5478 5479fi 5480# AC_CACHE_VAL 5481ac_prog_cc_stdc_options= 5482case "x$ac_cv_prog_cc_c89" in 5483 x) 5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5485$as_echo "none needed" >&6; } ;; 5486 xno) 5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5488$as_echo "unsupported" >&6; } ;; 5489 *) 5490 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c89" 5491 CC=$CC$ac_prog_cc_stdc_options 5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5493$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5494esac 5495if test "x$ac_cv_prog_cc_c89" != xno; then : 5496 ac_prog_cc_stdc=c89 5497 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 5498else 5499 ac_prog_cc_stdc=no 5500 ac_cv_prog_cc_stdc=no 5501fi 5502 5503fi 5504 5505fi 5506 5507ac_ext=c 5508ac_cpp='$CPP $CPPFLAGS' 5509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5511ac_compiler_gnu=$ac_cv_c_compiler_gnu 5512 5513 5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5 5515$as_echo_n "checking whether the compiler is clang... " >&6; } 5516if ${gl_cv_compiler_clang+:} false; then : 5517 $as_echo_n "(cached) " >&6 5518else 5519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5520/* end confdefs.h. */ 5521 5522 #ifdef __clang__ 5523 barfbarf 5524 #endif 5525 5526int 5527main () 5528{ 5529 5530 ; 5531 return 0; 5532} 5533 5534_ACEOF 5535if ac_fn_c_try_compile "$LINENO"; then : 5536 gl_cv_compiler_clang=no 5537else 5538 gl_cv_compiler_clang=yes 5539fi 5540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5541 5542fi 5543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_clang" >&5 5544$as_echo "$gl_cv_compiler_clang" >&6; } 5545 5546 5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option needed when checking for declarations" >&5 5548$as_echo_n "checking for compiler option needed when checking for declarations... " >&6; } 5549if ${gl_cv_compiler_check_decl_option+:} false; then : 5550 $as_echo_n "(cached) " >&6 5551else 5552 if test $gl_cv_compiler_clang = yes; then 5553 save_ac_compile="$ac_compile" 5554 ac_compile="$ac_compile -Werror=implicit-function-declaration" 5555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5556/* end confdefs.h. */ 5557 5558int 5559main () 5560{ 5561 5562 ; 5563 return 0; 5564} 5565_ACEOF 5566if ac_fn_c_try_compile "$LINENO"; then : 5567 gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration' 5568else 5569 gl_cv_compiler_check_decl_option=none 5570fi 5571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5572 ac_compile="$save_ac_compile" 5573 else 5574 gl_cv_compiler_check_decl_option=none 5575 fi 5576 5577fi 5578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_check_decl_option" >&5 5579$as_echo "$gl_cv_compiler_check_decl_option" >&6; } 5580 if test "x$gl_cv_compiler_check_decl_option" != xnone; then 5581 ac_compile_for_check_decl="$ac_compile $gl_cv_compiler_check_decl_option" 5582 else 5583 ac_compile_for_check_decl="$ac_compile" 5584 fi 5585 5586DEPDIR="${am__leading_dot}deps" 5587 5588ac_config_commands="$ac_config_commands depfiles" 5589 5590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 5591$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 5592cat > confinc.mk << 'END' 5593am__doit: 5594 @echo this is the am__doit target >confinc.out 5595.PHONY: am__doit 5596END 5597am__include="#" 5598am__quote= 5599# BSD make does it like this. 5600echo '.include "confinc.mk" # ignored' > confmf.BSD 5601# Other make implementations (GNU, Solaris 10, AIX) do it like this. 5602echo 'include confinc.mk # ignored' > confmf.GNU 5603_am_result=no 5604for s in GNU BSD; do 5605 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 5606 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 5607 ac_status=$? 5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5609 (exit $ac_status); } 5610 case $?:`cat confinc.out 2>/dev/null` in #( 5611 '0:this is the am__doit target') : 5612 case $s in #( 5613 BSD) : 5614 am__include='.include' am__quote='"' ;; #( 5615 *) : 5616 am__include='include' am__quote='' ;; 5617esac ;; #( 5618 *) : 5619 ;; 5620esac 5621 if test "$am__include" != "#"; then 5622 _am_result="yes ($s style)" 5623 break 5624 fi 5625done 5626rm -f confinc.* confmf.* 5627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 5628$as_echo "${_am_result}" >&6; } 5629 5630# Check whether --enable-dependency-tracking was given. 5631if test "${enable_dependency_tracking+set}" = set; then : 5632 enableval=$enable_dependency_tracking; 5633fi 5634 5635if test "x$enable_dependency_tracking" != xno; then 5636 am_depcomp="$ac_aux_dir/depcomp" 5637 AMDEPBACKSLASH='\' 5638 am__nodep='_no' 5639fi 5640 if test "x$enable_dependency_tracking" != xno; then 5641 AMDEP_TRUE= 5642 AMDEP_FALSE='#' 5643else 5644 AMDEP_TRUE='#' 5645 AMDEP_FALSE= 5646fi 5647 5648 5649 5650depcc="$CC" am_compiler_list= 5651 5652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5653$as_echo_n "checking dependency style of $depcc... " >&6; } 5654if ${am_cv_CC_dependencies_compiler_type+:} false; then : 5655 $as_echo_n "(cached) " >&6 5656else 5657 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5658 # We make a subdir and do the tests there. Otherwise we can end up 5659 # making bogus files that we don't know about and never remove. For 5660 # instance it was reported that on HP-UX the gcc test will end up 5661 # making a dummy file named 'D' -- because '-MD' means "put the output 5662 # in D". 5663 rm -rf conftest.dir 5664 mkdir conftest.dir 5665 # Copy depcomp to subdir because otherwise we won't find it if we're 5666 # using a relative directory. 5667 cp "$am_depcomp" conftest.dir 5668 cd conftest.dir 5669 # We will build objects and dependencies in a subdirectory because 5670 # it helps to detect inapplicable dependency modes. For instance 5671 # both Tru64's cc and ICC support -MD to output dependencies as a 5672 # side effect of compilation, but ICC will put the dependencies in 5673 # the current directory while Tru64 will put them in the object 5674 # directory. 5675 mkdir sub 5676 5677 am_cv_CC_dependencies_compiler_type=none 5678 if test "$am_compiler_list" = ""; then 5679 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5680 fi 5681 am__universal=false 5682 case " $depcc " in #( 5683 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5684 esac 5685 5686 for depmode in $am_compiler_list; do 5687 # Setup a source with many dependencies, because some compilers 5688 # like to wrap large dependency lists on column 80 (with \), and 5689 # we should not choose a depcomp mode which is confused by this. 5690 # 5691 # We need to recreate these files for each test, as the compiler may 5692 # overwrite some of them when testing with obscure command lines. 5693 # This happens at least with the AIX C compiler. 5694 : > sub/conftest.c 5695 for i in 1 2 3 4 5 6; do 5696 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5697 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5698 # Solaris 10 /bin/sh. 5699 echo '/* dummy */' > sub/conftst$i.h 5700 done 5701 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5702 5703 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5704 # mode. It turns out that the SunPro C++ compiler does not properly 5705 # handle '-M -o', and we need to detect this. Also, some Intel 5706 # versions had trouble with output in subdirs. 5707 am__obj=sub/conftest.${OBJEXT-o} 5708 am__minus_obj="-o $am__obj" 5709 case $depmode in 5710 gcc) 5711 # This depmode causes a compiler race in universal mode. 5712 test "$am__universal" = false || continue 5713 ;; 5714 nosideeffect) 5715 # After this tag, mechanisms are not by side-effect, so they'll 5716 # only be used when explicitly requested. 5717 if test "x$enable_dependency_tracking" = xyes; then 5718 continue 5719 else 5720 break 5721 fi 5722 ;; 5723 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5724 # This compiler won't grok '-c -o', but also, the minuso test has 5725 # not run yet. These depmodes are late enough in the game, and 5726 # so weak that their functioning should not be impacted. 5727 am__obj=conftest.${OBJEXT-o} 5728 am__minus_obj= 5729 ;; 5730 none) break ;; 5731 esac 5732 if depmode=$depmode \ 5733 source=sub/conftest.c object=$am__obj \ 5734 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5735 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5736 >/dev/null 2>conftest.err && 5737 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5738 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5739 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5740 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5741 # icc doesn't choke on unknown options, it will just issue warnings 5742 # or remarks (even with -Werror). So we grep stderr for any message 5743 # that says an option was ignored or not supported. 5744 # When given -MP, icc 7.0 and 7.1 complain thusly: 5745 # icc: Command line warning: ignoring option '-M'; no argument required 5746 # The diagnosis changed in icc 8.0: 5747 # icc: Command line remark: option '-MP' not supported 5748 if (grep 'ignoring option' conftest.err || 5749 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5750 am_cv_CC_dependencies_compiler_type=$depmode 5751 break 5752 fi 5753 fi 5754 done 5755 5756 cd .. 5757 rm -rf conftest.dir 5758else 5759 am_cv_CC_dependencies_compiler_type=none 5760fi 5761 5762fi 5763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5764$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5765CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5766 5767 if 5768 test "x$enable_dependency_tracking" != xno \ 5769 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5770 am__fastdepCC_TRUE= 5771 am__fastdepCC_FALSE='#' 5772else 5773 am__fastdepCC_TRUE='#' 5774 am__fastdepCC_FALSE= 5775fi 5776 5777 5778 5779 5780 5781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use Java" >&5 5782$as_echo_n "checking whether to use Java... " >&6; } 5783 # Check whether --enable-java was given. 5784if test "${enable_java+set}" = set; then : 5785 enableval=$enable_java; JAVA_CHOICE="$enableval" 5786else 5787 JAVA_CHOICE=yes 5788fi 5789 5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHOICE" >&5 5791$as_echo "$JAVA_CHOICE" >&6; } 5792 5793 5794 5795 5796ac_ext=c 5797ac_cpp='$CPP $CPPFLAGS' 5798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5800ac_compiler_gnu=$ac_cv_c_compiler_gnu 5801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5802$as_echo_n "checking how to run the C preprocessor... " >&6; } 5803# On Suns, sometimes $CPP names a directory. 5804if test -n "$CPP" && test -d "$CPP"; then 5805 CPP= 5806fi 5807if test -z "$CPP"; then 5808 if ${ac_cv_prog_CPP+:} false; then : 5809 $as_echo_n "(cached) " >&6 5810else 5811 # Double quotes because CPP needs to be expanded 5812 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5813 do 5814 ac_preproc_ok=false 5815for ac_c_preproc_warn_flag in '' yes 5816do 5817 # Use a header file that comes with gcc, so configuring glibc 5818 # with a fresh cross-compiler works. 5819 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5820 # <limits.h> exists even on freestanding compilers. 5821 # On the NeXT, cc -E runs the code through the compiler's parser, 5822 # not just through cpp. "Syntax error" is here to catch this case. 5823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5824/* end confdefs.h. */ 5825#ifdef __STDC__ 5826# include <limits.h> 5827#else 5828# include <assert.h> 5829#endif 5830 Syntax error 5831_ACEOF 5832if ac_fn_c_try_cpp "$LINENO"; then : 5833 5834else 5835 # Broken: fails on valid input. 5836continue 5837fi 5838rm -f conftest.err conftest.i conftest.$ac_ext 5839 5840 # OK, works on sane cases. Now check whether nonexistent headers 5841 # can be detected and how. 5842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5843/* end confdefs.h. */ 5844#include <ac_nonexistent.h> 5845_ACEOF 5846if ac_fn_c_try_cpp "$LINENO"; then : 5847 # Broken: success on invalid input. 5848continue 5849else 5850 # Passes both tests. 5851ac_preproc_ok=: 5852break 5853fi 5854rm -f conftest.err conftest.i conftest.$ac_ext 5855 5856done 5857# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5858rm -f conftest.i conftest.err conftest.$ac_ext 5859if $ac_preproc_ok; then : 5860 break 5861fi 5862 5863 done 5864 ac_cv_prog_CPP=$CPP 5865 5866fi 5867 CPP=$ac_cv_prog_CPP 5868else 5869 ac_cv_prog_CPP=$CPP 5870fi 5871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5872$as_echo "$CPP" >&6; } 5873ac_preproc_ok=false 5874for ac_c_preproc_warn_flag in '' yes 5875do 5876 # Use a header file that comes with gcc, so configuring glibc 5877 # with a fresh cross-compiler works. 5878 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5879 # <limits.h> exists even on freestanding compilers. 5880 # On the NeXT, cc -E runs the code through the compiler's parser, 5881 # not just through cpp. "Syntax error" is here to catch this case. 5882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5883/* end confdefs.h. */ 5884#ifdef __STDC__ 5885# include <limits.h> 5886#else 5887# include <assert.h> 5888#endif 5889 Syntax error 5890_ACEOF 5891if ac_fn_c_try_cpp "$LINENO"; then : 5892 5893else 5894 # Broken: fails on valid input. 5895continue 5896fi 5897rm -f conftest.err conftest.i conftest.$ac_ext 5898 5899 # OK, works on sane cases. Now check whether nonexistent headers 5900 # can be detected and how. 5901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5902/* end confdefs.h. */ 5903#include <ac_nonexistent.h> 5904_ACEOF 5905if ac_fn_c_try_cpp "$LINENO"; then : 5906 # Broken: success on invalid input. 5907continue 5908else 5909 # Passes both tests. 5910ac_preproc_ok=: 5911break 5912fi 5913rm -f conftest.err conftest.i conftest.$ac_ext 5914 5915done 5916# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5917rm -f conftest.i conftest.err conftest.$ac_ext 5918if $ac_preproc_ok; then : 5919 5920else 5921 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5922$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5923as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5924See \`config.log' for more details" "$LINENO" 5; } 5925fi 5926 5927ac_ext=c 5928ac_cpp='$CPP $CPPFLAGS' 5929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5931ac_compiler_gnu=$ac_cv_c_compiler_gnu 5932 5933 5934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5935$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5936if ${ac_cv_path_GREP+:} false; then : 5937 $as_echo_n "(cached) " >&6 5938else 5939 if test -z "$GREP"; then 5940 ac_path_GREP_found=false 5941 # Loop through the user's path and test for each of PROGNAME-LIST 5942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5943for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5944do 5945 IFS=$as_save_IFS 5946 test -z "$as_dir" && as_dir=. 5947 for ac_prog in grep ggrep; do 5948 for ac_exec_ext in '' $ac_executable_extensions; do 5949 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5950 as_fn_executable_p "$ac_path_GREP" || continue 5951# Check for GNU ac_path_GREP and select it if it is found. 5952 # Check for GNU $ac_path_GREP 5953case `"$ac_path_GREP" --version 2>&1` in 5954*GNU*) 5955 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5956*) 5957 ac_count=0 5958 $as_echo_n 0123456789 >"conftest.in" 5959 while : 5960 do 5961 cat "conftest.in" "conftest.in" >"conftest.tmp" 5962 mv "conftest.tmp" "conftest.in" 5963 cp "conftest.in" "conftest.nl" 5964 $as_echo 'GREP' >> "conftest.nl" 5965 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5966 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5967 as_fn_arith $ac_count + 1 && ac_count=$as_val 5968 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5969 # Best one so far, save it but keep looking for a better one 5970 ac_cv_path_GREP="$ac_path_GREP" 5971 ac_path_GREP_max=$ac_count 5972 fi 5973 # 10*(2^10) chars as input seems more than enough 5974 test $ac_count -gt 10 && break 5975 done 5976 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5977esac 5978 5979 $ac_path_GREP_found && break 3 5980 done 5981 done 5982 done 5983IFS=$as_save_IFS 5984 if test -z "$ac_cv_path_GREP"; then 5985 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5986 fi 5987else 5988 ac_cv_path_GREP=$GREP 5989fi 5990 5991fi 5992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5993$as_echo "$ac_cv_path_GREP" >&6; } 5994 GREP="$ac_cv_path_GREP" 5995 5996 5997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5998$as_echo_n "checking for egrep... " >&6; } 5999if ${ac_cv_path_EGREP+:} false; then : 6000 $as_echo_n "(cached) " >&6 6001else 6002 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 6003 then ac_cv_path_EGREP="$GREP -E" 6004 else 6005 if test -z "$EGREP"; then 6006 ac_path_EGREP_found=false 6007 # Loop through the user's path and test for each of PROGNAME-LIST 6008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6009for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6010do 6011 IFS=$as_save_IFS 6012 test -z "$as_dir" && as_dir=. 6013 for ac_prog in egrep; do 6014 for ac_exec_ext in '' $ac_executable_extensions; do 6015 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 6016 as_fn_executable_p "$ac_path_EGREP" || continue 6017# Check for GNU ac_path_EGREP and select it if it is found. 6018 # Check for GNU $ac_path_EGREP 6019case `"$ac_path_EGREP" --version 2>&1` in 6020*GNU*) 6021 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 6022*) 6023 ac_count=0 6024 $as_echo_n 0123456789 >"conftest.in" 6025 while : 6026 do 6027 cat "conftest.in" "conftest.in" >"conftest.tmp" 6028 mv "conftest.tmp" "conftest.in" 6029 cp "conftest.in" "conftest.nl" 6030 $as_echo 'EGREP' >> "conftest.nl" 6031 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6032 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6033 as_fn_arith $ac_count + 1 && ac_count=$as_val 6034 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 6035 # Best one so far, save it but keep looking for a better one 6036 ac_cv_path_EGREP="$ac_path_EGREP" 6037 ac_path_EGREP_max=$ac_count 6038 fi 6039 # 10*(2^10) chars as input seems more than enough 6040 test $ac_count -gt 10 && break 6041 done 6042 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6043esac 6044 6045 $ac_path_EGREP_found && break 3 6046 done 6047 done 6048 done 6049IFS=$as_save_IFS 6050 if test -z "$ac_cv_path_EGREP"; then 6051 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6052 fi 6053else 6054 ac_cv_path_EGREP=$EGREP 6055fi 6056 6057 fi 6058fi 6059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 6060$as_echo "$ac_cv_path_EGREP" >&6; } 6061 EGREP="$ac_cv_path_EGREP" 6062 6063 6064 6065 6066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6067/* end confdefs.h. */ 6068 6069#if defined _WIN32 || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__ 6070 yes 6071#endif 6072 6073_ACEOF 6074if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6075 $EGREP "yes" >/dev/null 2>&1; then : 6076 CLASSPATH_SEPARATOR=';' 6077else 6078 CLASSPATH_SEPARATOR=':' 6079fi 6080rm -f conftest* 6081 6082 source_version=1.5 6083 test -n "$source_version" || { 6084 as_fn_error $? "missing source-version argument to gt_JAVACOMP" "$LINENO" 5 6085 } 6086 target_version=1.6 6087 case "$source_version" in 6088 1.3) goodcode='class conftest {}' 6089 failcode='class conftestfail { static { assert(true); } }' ;; 6090 1.4) goodcode='class conftest { static { assert(true); } }' 6091 failcode='class conftestfail<T> { T foo() { return null; } }' ;; 6092 1.5) goodcode='class conftest<T> { T foo() { return null; } }' 6093 failcode='class conftestfail { void foo () { switch ("A") {} } }' ;; 6094 1.7) goodcode='class conftest { void foo () { switch ("A") {} } }' 6095 failcode='class conftestfail { void foo () { Runnable r = () -> {}; } }' ;; 6096 1.8) goodcode='class conftest { void foo () { Runnable r = () -> {}; } }' 6097 failcode='interface conftestfail { private void foo () {} }' ;; 6098 9) goodcode='interface conftest { private void foo () {} }' 6099 failcode='class conftestfail { public void m() { var i = new Integer(0); } }' ;; 6100 10) goodcode='class conftest { public void m() { var i = new Integer(0); } }' 6101 failcode='class conftestfail { Readable r = (var b) -> 0; }' ;; 6102 11) goodcode='class conftest { Readable r = (var b) -> 0; }' 6103 failcode='class conftestfail syntax error' ;; 6104 *) as_fn_error $? "invalid source-version argument to gt_JAVACOMP: $source_version" "$LINENO" 5 ;; 6105 esac 6106 case "$target_version" in 6107 1.1) cfversion=45 ;; 6108 1.2) cfversion=46 ;; 6109 1.3) cfversion=47 ;; 6110 1.4) cfversion=48 ;; 6111 1.5) cfversion=49 ;; 6112 1.6) cfversion=50 ;; 6113 1.7) cfversion=51 ;; 6114 1.8) cfversion=52 ;; 6115 9) cfversion=53 ;; 6116 10) cfversion=54 ;; 6117 11) cfversion=55 ;; 6118 *) as_fn_error $? "invalid target-version argument to gt_JAVACOMP: $target_version" "$LINENO" 5 ;; 6119 esac 6120 # Function to output the classfile version of a file (8th byte) in decimal. 6121 if od -A x < /dev/null >/dev/null 2>/dev/null; then 6122 # Use POSIX od. 6123 func_classfile_version () 6124 { 6125 od -A n -t d1 -j 7 -N 1 "$1" 6126 } 6127 else 6128 # Use BSD hexdump. 6129 func_classfile_version () 6130 { 6131 dd if="$1" bs=1 count=1 skip=7 2>/dev/null | hexdump -e '1/1 "%3d "' 6132 echo 6133 } 6134 fi 6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Java compiler" >&5 6136$as_echo_n "checking for Java compiler... " >&6; } 6137 CONF_JAVAC= 6138 HAVE_JAVAC_ENVVAR= 6139 HAVE_GCJ_C= 6140 HAVE_JAVAC= 6141 HAVE_JIKES= 6142 HAVE_JAVACOMP= 6143 cat > conftestlib.java <<EOF 6144public class conftestlib { 6145 public static void main (String[] args) { 6146 } 6147} 6148EOF 6149 echo "$goodcode" > conftest.java 6150 echo "$failcode" > conftestfail.java 6151 if test -n "$JAVAC"; then 6152 if $JAVAC --version 2>/dev/null | sed -e 1q | grep gcj > /dev/null; then 6153 if $JAVAC --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^4\.[012]/d' | grep '^[4-9]' >/dev/null; then 6154 rm -f conftest.class 6155 if { echo "$as_me:6155: $JAVAC -d . conftest.java" >&5 6156 $JAVAC -d . conftest.java >&5 2>&1 6157 } \ 6158 && test -f conftest.class \ 6159 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then 6160 rm -f conftest.class 6161 rm -f conftestfail.class 6162 if { echo "$as_me:6162: $JAVAC -fsource=$source_version -d . conftest.java" >&5 6163 $JAVAC -fsource="$source_version" -d . conftest.java >&5 2>&1 6164 } \ 6165 && test -f conftest.class \ 6166 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \ 6167 && { echo "$as_me:6167: $JAVAC -d . conftestfail.java" >&5 6168 $JAVAC -d . conftestfail.java >&5 2>&1 6169 } \ 6170 && test -f conftestfail.class \ 6171 && ! { echo "$as_me:6171: $JAVAC -fsource=$source_version -d . conftestfail.java" >&5 6172 $JAVAC -fsource="$source_version" -d . conftestfail.java >&5 2>&1 6173 }; then 6174 CONF_JAVAC="$JAVAC -fsource=$source_version" 6175 HAVE_JAVAC_ENVVAR=1 6176 HAVE_JAVACOMP=1 6177 else 6178 CONF_JAVAC="$JAVAC" 6179 HAVE_JAVAC_ENVVAR=1 6180 HAVE_JAVACOMP=1 6181 fi 6182 else 6183 rm -f conftest.class 6184 rm -f conftestfail.class 6185 if { echo "$as_me:6185: $JAVAC -fsource=$source_version -ftarget=$target_version -d . conftest.java" >&5 6186 $JAVAC -fsource="$source_version" -ftarget="$target_version" -d . conftest.java >&5 2>&1 6187 } \ 6188 && test -f conftest.class \ 6189 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then 6190 CONF_JAVAC="$JAVAC -fsource=$source_version -ftarget=$target_version" 6191 HAVE_JAVAC_ENVVAR=1 6192 HAVE_JAVACOMP=1 6193 fi 6194 fi 6195 else 6196 if test "$target_version" = 1.4 && test "$source_version" = 1.4; then 6197 rm -f conftest.class 6198 if { echo "$as_me:6198: $JAVAC -d . conftest.java" >&5 6199 $JAVAC -d . conftest.java >&5 2>&1 6200 } \ 6201 && test -f conftest.class; then 6202 CONF_JAVAC="$JAVAC" 6203 HAVE_JAVAC_ENVVAR=1 6204 HAVE_JAVACOMP=1 6205 fi 6206 else 6207 if test "$target_version" = 1.4 && test "$source_version" = 1.3; then 6208 javac_works= 6209 rm -f conftest.class 6210 if { echo "$as_me:6210: $JAVAC -d . conftest.java" >&5 6211 $JAVAC -d . conftest.java >&5 2>&1 6212 } \ 6213 && test -f conftest.class; then 6214 javac_works=1 6215 fi 6216 javac_noassert_works= 6217 rm -f conftest.class 6218 if { echo "$as_me:6218: $JAVAC -fno-assert -d . conftest.java" >&5 6219 $JAVAC -fno-assert -d . conftest.java >&5 2>&1 6220 } \ 6221 && test -f conftest.class; then 6222 javac_noassert_works=1 6223 fi 6224 if test -n "$javac_works" && test -n "$javac_noassert_works"; then 6225 rm -f conftestfail.class 6226 if { echo "$as_me:6226: $JAVAC -d . conftestfail.java" >&5 6227 $JAVAC -d . conftestfail.java >&5 2>&1 6228 } \ 6229 && test -f conftestfail.class \ 6230 && ! { echo "$as_me:6230: $JAVAC -fno-assert -d . conftestfail.java" >&5 6231 $JAVAC -fno-assert -d . conftestfail.java >&5 2>&1 6232 }; then 6233 javac_works= 6234 fi 6235 fi 6236 if test -n "$javac_works"; then 6237 CONF_JAVAC="$JAVAC" 6238 HAVE_JAVAC_ENVVAR=1 6239 HAVE_JAVACOMP=1 6240 else 6241 if test -n "$javac_noassert_works"; then 6242 CONF_JAVAC="$JAVAC -fno-assert" 6243 HAVE_JAVAC_ENVVAR=1 6244 HAVE_JAVACOMP=1 6245 fi 6246 fi 6247 fi 6248 fi 6249 fi 6250 else 6251 if test "$source_version" = 1.5; then 6252 case "$target_version" in 6253 1.1 | 1.2 | 1.3 | 1.4 | 1.5) ;; 6254 *) source_version='1.6' ;; 6255 esac 6256 fi 6257 rm -f conftest.class 6258 if { echo "$as_me:6258: $JAVAC -d . conftest.java" >&5 6259 $JAVAC -d . conftest.java >&5 2>&1 6260 } \ 6261 && test -f conftest.class \ 6262 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then 6263 rm -f conftest.class 6264 rm -f conftestfail.class 6265 if { echo "$as_me:6265: $JAVAC -source $source_version -d . conftest.java" >&5 6266 $JAVAC -source "$source_version" -d . conftest.java >&5 2>&1 6267 } \ 6268 && test -f conftest.class \ 6269 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \ 6270 && { echo "$as_me:6270: $JAVAC -d . conftestfail.java" >&5 6271 $JAVAC -d . conftestfail.java >&5 2>&1 6272 } \ 6273 && test -f conftestfail.class \ 6274 && ! { echo "$as_me:6274: $JAVAC -source $source_version -d . conftestfail.java" >&5 6275 $JAVAC -source "$source_version" -d . conftestfail.java >&5 2>&1 6276 }; then 6277 CONF_JAVAC="$JAVAC -source $source_version" 6278 HAVE_JAVAC_ENVVAR=1 6279 HAVE_JAVACOMP=1 6280 else 6281 CONF_JAVAC="$JAVAC" 6282 HAVE_JAVAC_ENVVAR=1 6283 HAVE_JAVACOMP=1 6284 fi 6285 else 6286 rm -f conftest.class 6287 if { echo "$as_me:6287: $JAVAC -target $target_version -d . conftest.java" >&5 6288 $JAVAC -target "$target_version" -d . conftest.java >&5 2>&1 6289 } \ 6290 && test -f conftest.class \ 6291 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then 6292 rm -f conftest.class 6293 rm -f conftestfail.class 6294 if { echo "$as_me:6294: $JAVAC -target $target_version -source $source_version -d . conftest.java" >&5 6295 $JAVAC -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1 6296 } \ 6297 && test -f conftest.class \ 6298 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \ 6299 && { echo "$as_me:6299: $JAVAC -target $target_version -d . conftestfail.java" >&5 6300 $JAVAC -target "$target_version" -d . conftestfail.java >&5 2>&1 6301 } \ 6302 && test -f conftestfail.class \ 6303 && ! { echo "$as_me:6303: $JAVAC -target $target_version -source $source_version -d . conftestfail.java" >&5 6304 $JAVAC -target "$target_version" -source "$source_version" -d . conftestfail.java >&5 2>&1 6305 }; then 6306 CONF_JAVAC="$JAVAC -target $target_version -source $source_version" 6307 HAVE_JAVAC_ENVVAR=1 6308 HAVE_JAVACOMP=1 6309 else 6310 CONF_JAVAC="$JAVAC -target $target_version" 6311 HAVE_JAVAC_ENVVAR=1 6312 HAVE_JAVACOMP=1 6313 fi 6314 else 6315 rm -f conftest.class 6316 if { echo "$as_me:6316: $JAVAC -target $target_version -source $source_version -d . conftest.java" >&5 6317 $JAVAC -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1 6318 } \ 6319 && test -f conftest.class \ 6320 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then 6321 CONF_JAVAC="$JAVAC -target $target_version -source $source_version" 6322 HAVE_JAVAC_ENVVAR=1 6323 HAVE_JAVACOMP=1 6324 fi 6325 fi 6326 fi 6327 fi 6328 fi 6329 if test -z "$HAVE_JAVACOMP"; then 6330 # Extract the first word of "gcj", so it can be a program name with args. 6331set dummy gcj; ac_word=$2 6332: 6333if ${ac_cv_prog_HAVE_GCJ_IN_PATH+:} false; then : 6334 $as_echo_n "(cached) " >&6 6335else 6336 if test -n "$HAVE_GCJ_IN_PATH"; then 6337 ac_cv_prog_HAVE_GCJ_IN_PATH="$HAVE_GCJ_IN_PATH" # Let the user override the test. 6338else 6339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6340for as_dir in $PATH 6341do 6342 IFS=$as_save_IFS 6343 test -z "$as_dir" && as_dir=. 6344 for ac_exec_ext in '' $ac_executable_extensions; do 6345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6346 ac_cv_prog_HAVE_GCJ_IN_PATH="yes" 6347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6348 break 2 6349 fi 6350done 6351 done 6352IFS=$as_save_IFS 6353 6354fi 6355fi 6356HAVE_GCJ_IN_PATH=$ac_cv_prog_HAVE_GCJ_IN_PATH 6357if test -n "$HAVE_GCJ_IN_PATH"; then 6358 : 6359else 6360 : 6361fi 6362 6363 6364 # Extract the first word of "javac", so it can be a program name with args. 6365set dummy javac; ac_word=$2 6366: 6367if ${ac_cv_prog_HAVE_JAVAC_IN_PATH+:} false; then : 6368 $as_echo_n "(cached) " >&6 6369else 6370 if test -n "$HAVE_JAVAC_IN_PATH"; then 6371 ac_cv_prog_HAVE_JAVAC_IN_PATH="$HAVE_JAVAC_IN_PATH" # Let the user override the test. 6372else 6373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6374for as_dir in $PATH 6375do 6376 IFS=$as_save_IFS 6377 test -z "$as_dir" && as_dir=. 6378 for ac_exec_ext in '' $ac_executable_extensions; do 6379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6380 ac_cv_prog_HAVE_JAVAC_IN_PATH="yes" 6381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6382 break 2 6383 fi 6384done 6385 done 6386IFS=$as_save_IFS 6387 6388fi 6389fi 6390HAVE_JAVAC_IN_PATH=$ac_cv_prog_HAVE_JAVAC_IN_PATH 6391if test -n "$HAVE_JAVAC_IN_PATH"; then 6392 : 6393else 6394 : 6395fi 6396 6397 6398 # Extract the first word of "jikes", so it can be a program name with args. 6399set dummy jikes; ac_word=$2 6400: 6401if ${ac_cv_prog_HAVE_JIKES_IN_PATH+:} false; then : 6402 $as_echo_n "(cached) " >&6 6403else 6404 if test -n "$HAVE_JIKES_IN_PATH"; then 6405 ac_cv_prog_HAVE_JIKES_IN_PATH="$HAVE_JIKES_IN_PATH" # Let the user override the test. 6406else 6407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6408for as_dir in $PATH 6409do 6410 IFS=$as_save_IFS 6411 test -z "$as_dir" && as_dir=. 6412 for ac_exec_ext in '' $ac_executable_extensions; do 6413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6414 ac_cv_prog_HAVE_JIKES_IN_PATH="yes" 6415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6416 break 2 6417 fi 6418done 6419 done 6420IFS=$as_save_IFS 6421 6422fi 6423fi 6424HAVE_JIKES_IN_PATH=$ac_cv_prog_HAVE_JIKES_IN_PATH 6425if test -n "$HAVE_JIKES_IN_PATH"; then 6426 : 6427else 6428 : 6429fi 6430 6431 6432 if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_GCJ_IN_PATH"; then 6433 if gcj --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^3\.[01]/d' | grep '^[3-9]' >/dev/null; then 6434 if { echo "$as_me:6434: gcj -C -d . conftestlib.java" >&5 6435 gcj -C -d . conftestlib.java >&5 2>&1 6436 }; then 6437 if gcj --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^4\.[012]/d' | grep '^[4-9]' >/dev/null; then 6438 rm -f conftest.class 6439 if { echo "$as_me:6439: gcj -C -d . conftest.java" >&5 6440 gcj -C -d . conftest.java >&5 2>&1 6441 } \ 6442 && test -f conftest.class \ 6443 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then 6444 rm -f conftest.class 6445 rm -f conftestfail.class 6446 if { echo "$as_me:6446: gcj -C -fsource=$source_version -d . conftest.java" >&5 6447 gcj -C -fsource="$source_version" -d . conftest.java >&5 2>&1 6448 } \ 6449 && test -f conftest.class \ 6450 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \ 6451 && { echo "$as_me:6451: gcj -C -d . conftestfail.java" >&5 6452 gcj -C -d . conftestfail.java >&5 2>&1 6453 } \ 6454 && test -f conftestfail.class \ 6455 && ! { echo "$as_me:6455: gcj -C -fsource=$source_version -d . conftestfail.java" >&5 6456 gcj -C -fsource="$source_version" -d . conftestfail.java >&5 2>&1 6457 }; then 6458 CONF_JAVAC="gcj -C -fsource=$source_version" 6459 HAVE_JAVAC_ENVVAR=1 6460 HAVE_JAVACOMP=1 6461 else 6462 CONF_JAVAC="gcj -C" 6463 HAVE_JAVAC_ENVVAR=1 6464 HAVE_JAVACOMP=1 6465 fi 6466 else 6467 rm -f conftest.class 6468 rm -f conftestfail.class 6469 if { echo "$as_me:6469: gcj -C -fsource=$source_version -ftarget=$target_version -d . conftest.java" >&5 6470 gcj -C -fsource="$source_version" -ftarget="$target_version" -d . conftest.java >&5 2>&1 6471 } \ 6472 && test -f conftest.class \ 6473 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then 6474 CONF_JAVAC="gcj -C -fsource=$source_version -ftarget=$target_version" 6475 HAVE_JAVAC_ENVVAR=1 6476 HAVE_JAVACOMP=1 6477 fi 6478 fi 6479 else 6480 if test "$target_version" = 1.4 && test "$source_version" = 1.4; then 6481 rm -f conftest.class 6482 if { echo "$as_me:6482: gcj -C -d . conftest.java" >&5 6483 gcj -C -d . conftest.java >&5 2>&1 6484 } \ 6485 && test -f conftest.class; then 6486 CONF_JAVAC="gcj -C" 6487 HAVE_GCJ_C=1 6488 HAVE_JAVACOMP=1 6489 fi 6490 else 6491 if test "$target_version" = 1.4 && test "$source_version" = 1.3; then 6492 rm -f conftest.class 6493 if { echo "$as_me:6493: gcj -C -fno-assert -d . conftest.java" >&5 6494 gcj -C -fno-assert -d . conftest.java >&5 2>&1 6495 } \ 6496 && test -f conftest.class; then 6497 CONF_JAVAC="gcj -C -fno-assert" 6498 HAVE_GCJ_C=1 6499 HAVE_JAVACOMP=1 6500 else 6501 rm -f conftest.class 6502 if { echo "$as_me:6502: gcj -C -d . conftest.java" >&5 6503 gcj -C -d . conftest.java >&5 2>&1 6504 } \ 6505 && test -f conftest.class; then 6506 CONF_JAVAC="gcj -C" 6507 HAVE_GCJ_C=1 6508 HAVE_JAVACOMP=1 6509 fi 6510 fi 6511 fi 6512 fi 6513 fi 6514 fi 6515 fi 6516 fi 6517 if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_JAVAC_IN_PATH"; then 6518 if { javac -version >/dev/null 2>/dev/null || test $? -le 2; } \ 6519 && ( if javac -help 2>&1 >/dev/null | grep at.dms.kjc.Main >/dev/null && javac -help 2>/dev/null | grep 'released.*2000' >/dev/null ; then exit 1; else exit 0; fi ); then 6520 if test "$source_version" = 1.5; then 6521 case "$target_version" in 6522 1.1 | 1.2 | 1.3 | 1.4 | 1.5) ;; 6523 *) source_version='1.6' ;; 6524 esac 6525 fi 6526 rm -f conftest.class 6527 if { echo "$as_me:6527: javac -d . conftest.java" >&5 6528 javac -d . conftest.java >&5 2>&1 6529 } \ 6530 && test -f conftest.class \ 6531 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then 6532 rm -f conftest.class 6533 rm -f conftestfail.class 6534 if { echo "$as_me:6534: javac -source $source_version -d . conftest.java" >&5 6535 javac -source "$source_version" -d . conftest.java >&5 2>&1 6536 } \ 6537 && test -f conftest.class \ 6538 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \ 6539 && { echo "$as_me:6539: javac -d . conftestfail.java" >&5 6540 javac -d . conftestfail.java >&5 2>&1 6541 } \ 6542 && test -f conftestfail.class \ 6543 && ! { echo "$as_me:6543: javac -source $source_version -d . conftestfail.java" >&5 6544 javac -source "$source_version" -d . conftestfail.java >&5 2>&1 6545 }; then 6546 CONF_JAVAC="javac -source $source_version" 6547 HAVE_JAVAC=1 6548 HAVE_JAVACOMP=1 6549 else 6550 CONF_JAVAC="javac" 6551 HAVE_JAVAC=1 6552 HAVE_JAVACOMP=1 6553 fi 6554 else 6555 rm -f conftest.class 6556 if { echo "$as_me:6556: javac -target $target_version -d . conftest.java" >&5 6557 javac -target "$target_version" -d . conftest.java >&5 2>&1 6558 } \ 6559 && test -f conftest.class \ 6560 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then 6561 rm -f conftest.class 6562 rm -f conftestfail.class 6563 if { echo "$as_me:6563: javac -target $target_version -source $source_version -d . conftest.java" >&5 6564 javac -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1 6565 } \ 6566 && test -f conftest.class \ 6567 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \ 6568 && { echo "$as_me:6568: javac -target $target_version -d . conftestfail.java" >&5 6569 javac -target "$target_version" -d . conftestfail.java >&5 2>&1 6570 } \ 6571 && test -f conftestfail.class \ 6572 && ! { echo "$as_me:6572: javac -target $target_version -source $source_version -d . conftestfail.java" >&5 6573 javac -target "$target_version" -source "$source_version" -d . conftestfail.java >&5 2>&1 6574 }; then 6575 CONF_JAVAC="javac -target $target_version -source $source_version" 6576 HAVE_JAVAC=1 6577 HAVE_JAVACOMP=1 6578 else 6579 CONF_JAVAC="javac -target $target_version" 6580 HAVE_JAVAC=1 6581 HAVE_JAVACOMP=1 6582 fi 6583 else 6584 rm -f conftest.class 6585 if { echo "$as_me:6585: javac -target $target_version -source $source_version -d . conftest.java" >&5 6586 javac -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1 6587 } \ 6588 && test -f conftest.class \ 6589 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then 6590 CONF_JAVAC="javac -target $target_version -source $source_version" 6591 HAVE_JAVAC=1 6592 HAVE_JAVACOMP=1 6593 fi 6594 fi 6595 fi 6596 fi 6597 fi 6598 if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_JIKES_IN_PATH"; then 6599 if { jikes >/dev/null 2>/dev/null || test $? = 1; } \ 6600 && ( 6601 # See if the existing CLASSPATH is sufficient to make jikes work. 6602 unset JAVA_HOME 6603 jikes conftestlib.java >&5 2>&1 6604 error=$? 6605 rm -f conftestlib.class 6606 exit $error 6607 ); then 6608 if test "$source_version" = 1.3; then 6609 CONF_JAVAC="jikes" 6610 HAVE_JIKES=1 6611 HAVE_JAVACOMP=1 6612 fi 6613 fi 6614 fi 6615 fi 6616 rm -f conftest*.java conftest*.class 6617 if test -n "$HAVE_JAVACOMP"; then 6618 ac_result="$CONF_JAVAC" 6619 else 6620 ac_result="no" 6621 fi 6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5 6623$as_echo "$ac_result" >&6; } 6624 6625 6626 6627 6628 6629 6630 6631 6632# Extract the first word of "jar", so it can be a program name with args. 6633set dummy jar; ac_word=$2 6634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6635$as_echo_n "checking for $ac_word... " >&6; } 6636if ${ac_cv_prog_JAR+:} false; then : 6637 $as_echo_n "(cached) " >&6 6638else 6639 if test -n "$JAR"; then 6640 ac_cv_prog_JAR="$JAR" # Let the user override the test. 6641else 6642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6643for as_dir in $PATH 6644do 6645 IFS=$as_save_IFS 6646 test -z "$as_dir" && as_dir=. 6647 for ac_exec_ext in '' $ac_executable_extensions; do 6648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6649 ac_cv_prog_JAR="jar" 6650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6651 break 2 6652 fi 6653done 6654 done 6655IFS=$as_save_IFS 6656 6657fi 6658fi 6659JAR=$ac_cv_prog_JAR 6660if test -n "$JAR"; then 6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5 6662$as_echo "$JAR" >&6; } 6663else 6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6665$as_echo "no" >&6; } 6666fi 6667 6668 6669if test -n "$HAVE_JAVACOMP" && test -n "$JAR" && test "$JAVA_CHOICE" != no; then 6670 BUILDJAVA=yes 6671else 6672 BUILDJAVA=no 6673fi 6674 6675 6676 6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preferred C# implementation" >&5 6678$as_echo_n "checking for preferred C# implementation... " >&6; } 6679 # Check whether --enable-csharp was given. 6680if test "${enable_csharp+set}" = set; then : 6681 enableval=$enable_csharp; CSHARP_CHOICE="$enableval" 6682else 6683 CSHARP_CHOICE=any 6684fi 6685 6686 6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSHARP_CHOICE" >&5 6688$as_echo "$CSHARP_CHOICE" >&6; } 6689 case "$CSHARP_CHOICE" in 6690 mono) 6691 6692$as_echo "#define CSHARP_CHOICE_MONO 1" >>confdefs.h 6693 6694 ;; 6695 esac 6696 6697 6698 6699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C# compiler" >&5 6700$as_echo_n "checking for C# compiler... " >&6; } 6701 HAVE_CSHARPCOMP=1 6702 # Extract the first word of "mcs", so it can be a program name with args. 6703set dummy mcs; ac_word=$2 6704: 6705if ${ac_cv_prog_HAVE_MCS_IN_PATH+:} false; then : 6706 $as_echo_n "(cached) " >&6 6707else 6708 if test -n "$HAVE_MCS_IN_PATH"; then 6709 ac_cv_prog_HAVE_MCS_IN_PATH="$HAVE_MCS_IN_PATH" # Let the user override the test. 6710else 6711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6712for as_dir in $PATH 6713do 6714 IFS=$as_save_IFS 6715 test -z "$as_dir" && as_dir=. 6716 for ac_exec_ext in '' $ac_executable_extensions; do 6717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6718 ac_cv_prog_HAVE_MCS_IN_PATH="yes" 6719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6720 break 2 6721 fi 6722done 6723 done 6724IFS=$as_save_IFS 6725 6726fi 6727fi 6728HAVE_MCS_IN_PATH=$ac_cv_prog_HAVE_MCS_IN_PATH 6729if test -n "$HAVE_MCS_IN_PATH"; then 6730 : 6731else 6732 : 6733fi 6734 6735 6736 # Extract the first word of "csc", so it can be a program name with args. 6737set dummy csc; ac_word=$2 6738: 6739if ${ac_cv_prog_HAVE_CSC_IN_PATH+:} false; then : 6740 $as_echo_n "(cached) " >&6 6741else 6742 if test -n "$HAVE_CSC_IN_PATH"; then 6743 ac_cv_prog_HAVE_CSC_IN_PATH="$HAVE_CSC_IN_PATH" # Let the user override the test. 6744else 6745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6746for as_dir in $PATH 6747do 6748 IFS=$as_save_IFS 6749 test -z "$as_dir" && as_dir=. 6750 for ac_exec_ext in '' $ac_executable_extensions; do 6751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6752 ac_cv_prog_HAVE_CSC_IN_PATH="yes" 6753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6754 break 2 6755 fi 6756done 6757 done 6758IFS=$as_save_IFS 6759 6760fi 6761fi 6762HAVE_CSC_IN_PATH=$ac_cv_prog_HAVE_CSC_IN_PATH 6763if test -n "$HAVE_CSC_IN_PATH"; then 6764 : 6765else 6766 : 6767fi 6768 6769 6770 for impl in "$CSHARP_CHOICE" mono sscli no; do 6771 case "$impl" in 6772 mono) 6773 if test -n "$HAVE_MCS_IN_PATH" \ 6774 && mcs --version >/dev/null 2>/dev/null \ 6775 && mcs --version 2>/dev/null | grep Mono >/dev/null; then 6776 HAVE_MCS=1 6777 ac_result="mcs" 6778 break 6779 fi 6780 ;; 6781 sscli) 6782 if test -n "$HAVE_CSC_IN_PATH" \ 6783 && csc -help >/dev/null 2>/dev/null \ 6784 && { if csc -help 2>/dev/null | grep -i chicken > /dev/null; then false; else true; fi; }; then 6785 HAVE_CSC=1 6786 ac_result="csc" 6787 break 6788 fi 6789 ;; 6790 no) 6791 HAVE_CSHARPCOMP= 6792 ac_result="no" 6793 break 6794 ;; 6795 esac 6796 done 6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5 6798$as_echo "$ac_result" >&6; } 6799 6800 6801 if test -z "${CSHARPCOMPFLAGS+set}"; then 6802 CSHARPCOMPFLAGS="-O -g" 6803 fi 6804 6805 6806if test -n "$HAVE_CSHARPCOMP" && test "$CSHARP_CHOICE" != no; then 6807 BUILDCSHARP=yes 6808else 6809 BUILDCSHARP=no 6810fi 6811 6812 6813# Make sure we can run config.sub. 6814$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 6815 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 6816 6817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 6818$as_echo_n "checking build system type... " >&6; } 6819if ${ac_cv_build+:} false; then : 6820 $as_echo_n "(cached) " >&6 6821else 6822 ac_build_alias=$build_alias 6823test "x$ac_build_alias" = x && 6824 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 6825test "x$ac_build_alias" = x && 6826 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 6827ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 6828 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 6829 6830fi 6831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 6832$as_echo "$ac_cv_build" >&6; } 6833case $ac_cv_build in 6834*-*-*) ;; 6835*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 6836esac 6837build=$ac_cv_build 6838ac_save_IFS=$IFS; IFS='-' 6839set x $ac_cv_build 6840shift 6841build_cpu=$1 6842build_vendor=$2 6843shift; shift 6844# Remember, the first character of IFS is used to create $*, 6845# except with old shells: 6846build_os=$* 6847IFS=$ac_save_IFS 6848case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 6849 6850 6851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 6852$as_echo_n "checking host system type... " >&6; } 6853if ${ac_cv_host+:} false; then : 6854 $as_echo_n "(cached) " >&6 6855else 6856 if test "x$host_alias" = x; then 6857 ac_cv_host=$ac_cv_build 6858else 6859 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 6860 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 6861fi 6862 6863fi 6864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 6865$as_echo "$ac_cv_host" >&6; } 6866case $ac_cv_host in 6867*-*-*) ;; 6868*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 6869esac 6870host=$ac_cv_host 6871ac_save_IFS=$IFS; IFS='-' 6872set x $ac_cv_host 6873shift 6874host_cpu=$1 6875host_vendor=$2 6876shift; shift 6877# Remember, the first character of IFS is used to create $*, 6878# except with old shells: 6879host_os=$* 6880IFS=$ac_save_IFS 6881case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5 6892$as_echo_n "checking for Minix Amsterdam compiler... " >&6; } 6893if ${gl_cv_c_amsterdam_compiler+:} false; then : 6894 $as_echo_n "(cached) " >&6 6895else 6896 6897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6898/* end confdefs.h. */ 6899 6900#ifdef __ACK__ 6901Amsterdam 6902#endif 6903 6904_ACEOF 6905if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6906 $EGREP "Amsterdam" >/dev/null 2>&1; then : 6907 gl_cv_c_amsterdam_compiler=yes 6908else 6909 gl_cv_c_amsterdam_compiler=no 6910fi 6911rm -f conftest* 6912 6913 6914fi 6915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5 6916$as_echo "$gl_cv_c_amsterdam_compiler" >&6; } 6917 6918 if test $gl_cv_c_amsterdam_compiler = yes; then 6919 if test -z "$AR"; then 6920 AR='cc -c.a' 6921 fi 6922 if test -z "$ARFLAGS"; then 6923 ARFLAGS='-o' 6924 fi 6925 else 6926 : 6927 fi 6928 6929 if test -n "$ac_tool_prefix"; then 6930 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6931set dummy ${ac_tool_prefix}ar; ac_word=$2 6932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6933$as_echo_n "checking for $ac_word... " >&6; } 6934if ${ac_cv_prog_AR+:} false; then : 6935 $as_echo_n "(cached) " >&6 6936else 6937 if test -n "$AR"; then 6938 ac_cv_prog_AR="$AR" # Let the user override the test. 6939else 6940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6941for as_dir in $PATH 6942do 6943 IFS=$as_save_IFS 6944 test -z "$as_dir" && as_dir=. 6945 for ac_exec_ext in '' $ac_executable_extensions; do 6946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6947 ac_cv_prog_AR="${ac_tool_prefix}ar" 6948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6949 break 2 6950 fi 6951done 6952 done 6953IFS=$as_save_IFS 6954 6955fi 6956fi 6957AR=$ac_cv_prog_AR 6958if test -n "$AR"; then 6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6960$as_echo "$AR" >&6; } 6961else 6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6963$as_echo "no" >&6; } 6964fi 6965 6966 6967fi 6968if test -z "$ac_cv_prog_AR"; then 6969 ac_ct_AR=$AR 6970 # Extract the first word of "ar", so it can be a program name with args. 6971set dummy ar; ac_word=$2 6972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6973$as_echo_n "checking for $ac_word... " >&6; } 6974if ${ac_cv_prog_ac_ct_AR+:} false; then : 6975 $as_echo_n "(cached) " >&6 6976else 6977 if test -n "$ac_ct_AR"; then 6978 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6979else 6980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6981for as_dir in $PATH 6982do 6983 IFS=$as_save_IFS 6984 test -z "$as_dir" && as_dir=. 6985 for ac_exec_ext in '' $ac_executable_extensions; do 6986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6987 ac_cv_prog_ac_ct_AR="ar" 6988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6989 break 2 6990 fi 6991done 6992 done 6993IFS=$as_save_IFS 6994 6995fi 6996fi 6997ac_ct_AR=$ac_cv_prog_ac_ct_AR 6998if test -n "$ac_ct_AR"; then 6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7000$as_echo "$ac_ct_AR" >&6; } 7001else 7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7003$as_echo "no" >&6; } 7004fi 7005 7006 if test "x$ac_ct_AR" = x; then 7007 AR="ar" 7008 else 7009 case $cross_compiling:$ac_tool_warned in 7010yes:) 7011{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7012$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7013ac_tool_warned=yes ;; 7014esac 7015 AR=$ac_ct_AR 7016 fi 7017else 7018 AR="$ac_cv_prog_AR" 7019fi 7020 7021 if test -z "$ARFLAGS"; then 7022 ARFLAGS='cr' 7023 fi 7024 7025 7026 7027 if test -z "$RANLIB"; then 7028 if test $gl_cv_c_amsterdam_compiler = yes; then 7029 RANLIB=':' 7030 else 7031 if test -n "$ac_tool_prefix"; then 7032 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7033set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7035$as_echo_n "checking for $ac_word... " >&6; } 7036if ${ac_cv_prog_RANLIB+:} false; then : 7037 $as_echo_n "(cached) " >&6 7038else 7039 if test -n "$RANLIB"; then 7040 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7041else 7042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7043for as_dir in $PATH 7044do 7045 IFS=$as_save_IFS 7046 test -z "$as_dir" && as_dir=. 7047 for ac_exec_ext in '' $ac_executable_extensions; do 7048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7049 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7051 break 2 7052 fi 7053done 7054 done 7055IFS=$as_save_IFS 7056 7057fi 7058fi 7059RANLIB=$ac_cv_prog_RANLIB 7060if test -n "$RANLIB"; then 7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7062$as_echo "$RANLIB" >&6; } 7063else 7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7065$as_echo "no" >&6; } 7066fi 7067 7068 7069fi 7070if test -z "$ac_cv_prog_RANLIB"; then 7071 ac_ct_RANLIB=$RANLIB 7072 # Extract the first word of "ranlib", so it can be a program name with args. 7073set dummy ranlib; ac_word=$2 7074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7075$as_echo_n "checking for $ac_word... " >&6; } 7076if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7077 $as_echo_n "(cached) " >&6 7078else 7079 if test -n "$ac_ct_RANLIB"; then 7080 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7081else 7082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7083for as_dir in $PATH 7084do 7085 IFS=$as_save_IFS 7086 test -z "$as_dir" && as_dir=. 7087 for ac_exec_ext in '' $ac_executable_extensions; do 7088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7089 ac_cv_prog_ac_ct_RANLIB="ranlib" 7090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7091 break 2 7092 fi 7093done 7094 done 7095IFS=$as_save_IFS 7096 7097fi 7098fi 7099ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7100if test -n "$ac_ct_RANLIB"; then 7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7102$as_echo "$ac_ct_RANLIB" >&6; } 7103else 7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7105$as_echo "no" >&6; } 7106fi 7107 7108 if test "x$ac_ct_RANLIB" = x; then 7109 RANLIB=":" 7110 else 7111 case $cross_compiling:$ac_tool_warned in 7112yes:) 7113{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7114$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7115ac_tool_warned=yes ;; 7116esac 7117 RANLIB=$ac_ct_RANLIB 7118 fi 7119else 7120 RANLIB="$ac_cv_prog_RANLIB" 7121fi 7122 7123 fi 7124 fi 7125 7126 7127 7128 7129 7130 7131 7132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7133$as_echo_n "checking for ANSI C header files... " >&6; } 7134if ${ac_cv_header_stdc+:} false; then : 7135 $as_echo_n "(cached) " >&6 7136else 7137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7138/* end confdefs.h. */ 7139#include <stdlib.h> 7140#include <stdarg.h> 7141#include <string.h> 7142#include <float.h> 7143 7144int 7145main () 7146{ 7147 7148 ; 7149 return 0; 7150} 7151_ACEOF 7152if ac_fn_c_try_compile "$LINENO"; then : 7153 ac_cv_header_stdc=yes 7154else 7155 ac_cv_header_stdc=no 7156fi 7157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7158 7159if test $ac_cv_header_stdc = yes; then 7160 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7162/* end confdefs.h. */ 7163#include <string.h> 7164 7165_ACEOF 7166if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7167 $EGREP "memchr" >/dev/null 2>&1; then : 7168 7169else 7170 ac_cv_header_stdc=no 7171fi 7172rm -f conftest* 7173 7174fi 7175 7176if test $ac_cv_header_stdc = yes; then 7177 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7179/* end confdefs.h. */ 7180#include <stdlib.h> 7181 7182_ACEOF 7183if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7184 $EGREP "free" >/dev/null 2>&1; then : 7185 7186else 7187 ac_cv_header_stdc=no 7188fi 7189rm -f conftest* 7190 7191fi 7192 7193if test $ac_cv_header_stdc = yes; then 7194 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7195 if test "$cross_compiling" = yes; then : 7196 : 7197else 7198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7199/* end confdefs.h. */ 7200#include <ctype.h> 7201#include <stdlib.h> 7202#if ((' ' & 0x0FF) == 0x020) 7203# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7204# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7205#else 7206# define ISLOWER(c) \ 7207 (('a' <= (c) && (c) <= 'i') \ 7208 || ('j' <= (c) && (c) <= 'r') \ 7209 || ('s' <= (c) && (c) <= 'z')) 7210# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7211#endif 7212 7213#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7214int 7215main () 7216{ 7217 int i; 7218 for (i = 0; i < 256; i++) 7219 if (XOR (islower (i), ISLOWER (i)) 7220 || toupper (i) != TOUPPER (i)) 7221 return 2; 7222 return 0; 7223} 7224_ACEOF 7225if ac_fn_c_try_run "$LINENO"; then : 7226 7227else 7228 ac_cv_header_stdc=no 7229fi 7230rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7231 conftest.$ac_objext conftest.beam conftest.$ac_ext 7232fi 7233 7234fi 7235fi 7236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7237$as_echo "$ac_cv_header_stdc" >&6; } 7238if test $ac_cv_header_stdc = yes; then 7239 7240$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7241 7242fi 7243 7244# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7245for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7246 inttypes.h stdint.h unistd.h 7247do : 7248 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7249ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7250" 7251if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7252 cat >>confdefs.h <<_ACEOF 7253#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7254_ACEOF 7255 7256fi 7257 7258done 7259 7260 7261 7262 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 7263if test "x$ac_cv_header_minix_config_h" = xyes; then : 7264 MINIX=yes 7265else 7266 MINIX= 7267fi 7268 7269 7270 if test "$MINIX" = yes; then 7271 7272$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 7273 7274 7275$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 7276 7277 7278$as_echo "#define _MINIX 1" >>confdefs.h 7279 7280 7281$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h 7282 7283 fi 7284 7285 7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 7287$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 7288if ${ac_cv_safe_to_define___extensions__+:} false; then : 7289 $as_echo_n "(cached) " >&6 7290else 7291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7292/* end confdefs.h. */ 7293 7294# define __EXTENSIONS__ 1 7295 $ac_includes_default 7296int 7297main () 7298{ 7299 7300 ; 7301 return 0; 7302} 7303_ACEOF 7304if ac_fn_c_try_compile "$LINENO"; then : 7305 ac_cv_safe_to_define___extensions__=yes 7306else 7307 ac_cv_safe_to_define___extensions__=no 7308fi 7309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7310fi 7311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 7312$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 7313 test $ac_cv_safe_to_define___extensions__ = yes && 7314 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 7315 7316 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 7317 7318 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h 7319 7320 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 7321 7322 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h 7323 7324 $as_echo "#define _OPENBSD_SOURCE 1" >>confdefs.h 7325 7326 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 7327 7328 $as_echo "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 7329 7330 $as_echo "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 7331 7332 $as_echo "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 7333 7334 $as_echo "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 7335 7336 $as_echo "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 7337 7338 $as_echo "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 7339 7340 $as_echo "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 7341 7342 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 7343 7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 7345$as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; } 7346if ${ac_cv_should_define__xopen_source+:} false; then : 7347 $as_echo_n "(cached) " >&6 7348else 7349 ac_cv_should_define__xopen_source=no 7350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7351/* end confdefs.h. */ 7352 7353 #include <wchar.h> 7354 mbstate_t x; 7355int 7356main () 7357{ 7358 7359 ; 7360 return 0; 7361} 7362_ACEOF 7363if ac_fn_c_try_compile "$LINENO"; then : 7364 7365else 7366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7367/* end confdefs.h. */ 7368 7369 #define _XOPEN_SOURCE 500 7370 #include <wchar.h> 7371 mbstate_t x; 7372int 7373main () 7374{ 7375 7376 ; 7377 return 0; 7378} 7379_ACEOF 7380if ac_fn_c_try_compile "$LINENO"; then : 7381 ac_cv_should_define__xopen_source=yes 7382fi 7383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7384fi 7385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7386fi 7387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 7388$as_echo "$ac_cv_should_define__xopen_source" >&6; } 7389 test $ac_cv_should_define__xopen_source = yes && 7390 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h 7391 7392 $as_echo "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402# Check whether --enable-largefile was given. 7403if test "${enable_largefile+set}" = set; then : 7404 enableval=$enable_largefile; 7405fi 7406 7407if test "$enable_largefile" != no; then 7408 7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 7410$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 7411if ${ac_cv_sys_largefile_CC+:} false; then : 7412 $as_echo_n "(cached) " >&6 7413else 7414 ac_cv_sys_largefile_CC=no 7415 if test "$GCC" != yes; then 7416 ac_save_CC=$CC 7417 while :; do 7418 # IRIX 6.2 and later do not support large files by default, 7419 # so use the C compiler's -n32 option if that helps. 7420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7421/* end confdefs.h. */ 7422#include <sys/types.h> 7423 /* Check that off_t can represent 2**63 - 1 correctly. 7424 We can't simply define LARGE_OFF_T to be 9223372036854775807, 7425 since some C++ compilers masquerading as C compilers 7426 incorrectly reject 9223372036854775807. */ 7427#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 7428 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 7429 && LARGE_OFF_T % 2147483647 == 1) 7430 ? 1 : -1]; 7431int 7432main () 7433{ 7434 7435 ; 7436 return 0; 7437} 7438_ACEOF 7439 if ac_fn_c_try_compile "$LINENO"; then : 7440 break 7441fi 7442rm -f core conftest.err conftest.$ac_objext 7443 CC="$CC -n32" 7444 if ac_fn_c_try_compile "$LINENO"; then : 7445 ac_cv_sys_largefile_CC=' -n32'; break 7446fi 7447rm -f core conftest.err conftest.$ac_objext 7448 break 7449 done 7450 CC=$ac_save_CC 7451 rm -f conftest.$ac_ext 7452 fi 7453fi 7454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 7455$as_echo "$ac_cv_sys_largefile_CC" >&6; } 7456 if test "$ac_cv_sys_largefile_CC" != no; then 7457 CC=$CC$ac_cv_sys_largefile_CC 7458 fi 7459 7460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 7461$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 7462if ${ac_cv_sys_file_offset_bits+:} false; then : 7463 $as_echo_n "(cached) " >&6 7464else 7465 while :; do 7466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7467/* end confdefs.h. */ 7468#include <sys/types.h> 7469 /* Check that off_t can represent 2**63 - 1 correctly. 7470 We can't simply define LARGE_OFF_T to be 9223372036854775807, 7471 since some C++ compilers masquerading as C compilers 7472 incorrectly reject 9223372036854775807. */ 7473#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 7474 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 7475 && LARGE_OFF_T % 2147483647 == 1) 7476 ? 1 : -1]; 7477int 7478main () 7479{ 7480 7481 ; 7482 return 0; 7483} 7484_ACEOF 7485if ac_fn_c_try_compile "$LINENO"; then : 7486 ac_cv_sys_file_offset_bits=no; break 7487fi 7488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7490/* end confdefs.h. */ 7491#define _FILE_OFFSET_BITS 64 7492#include <sys/types.h> 7493 /* Check that off_t can represent 2**63 - 1 correctly. 7494 We can't simply define LARGE_OFF_T to be 9223372036854775807, 7495 since some C++ compilers masquerading as C compilers 7496 incorrectly reject 9223372036854775807. */ 7497#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 7498 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 7499 && LARGE_OFF_T % 2147483647 == 1) 7500 ? 1 : -1]; 7501int 7502main () 7503{ 7504 7505 ; 7506 return 0; 7507} 7508_ACEOF 7509if ac_fn_c_try_compile "$LINENO"; then : 7510 ac_cv_sys_file_offset_bits=64; break 7511fi 7512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7513 ac_cv_sys_file_offset_bits=unknown 7514 break 7515done 7516fi 7517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 7518$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 7519case $ac_cv_sys_file_offset_bits in #( 7520 no | unknown) ;; 7521 *) 7522cat >>confdefs.h <<_ACEOF 7523#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 7524_ACEOF 7525;; 7526esac 7527rm -rf conftest* 7528 if test $ac_cv_sys_file_offset_bits = unknown; then 7529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 7530$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 7531if ${ac_cv_sys_large_files+:} false; then : 7532 $as_echo_n "(cached) " >&6 7533else 7534 while :; do 7535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7536/* end confdefs.h. */ 7537#include <sys/types.h> 7538 /* Check that off_t can represent 2**63 - 1 correctly. 7539 We can't simply define LARGE_OFF_T to be 9223372036854775807, 7540 since some C++ compilers masquerading as C compilers 7541 incorrectly reject 9223372036854775807. */ 7542#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 7543 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 7544 && LARGE_OFF_T % 2147483647 == 1) 7545 ? 1 : -1]; 7546int 7547main () 7548{ 7549 7550 ; 7551 return 0; 7552} 7553_ACEOF 7554if ac_fn_c_try_compile "$LINENO"; then : 7555 ac_cv_sys_large_files=no; break 7556fi 7557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7559/* end confdefs.h. */ 7560#define _LARGE_FILES 1 7561#include <sys/types.h> 7562 /* Check that off_t can represent 2**63 - 1 correctly. 7563 We can't simply define LARGE_OFF_T to be 9223372036854775807, 7564 since some C++ compilers masquerading as C compilers 7565 incorrectly reject 9223372036854775807. */ 7566#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 7567 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 7568 && LARGE_OFF_T % 2147483647 == 1) 7569 ? 1 : -1]; 7570int 7571main () 7572{ 7573 7574 ; 7575 return 0; 7576} 7577_ACEOF 7578if ac_fn_c_try_compile "$LINENO"; then : 7579 ac_cv_sys_large_files=1; break 7580fi 7581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7582 ac_cv_sys_large_files=unknown 7583 break 7584done 7585fi 7586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 7587$as_echo "$ac_cv_sys_large_files" >&6; } 7588case $ac_cv_sys_large_files in #( 7589 no | unknown) ;; 7590 *) 7591cat >>confdefs.h <<_ACEOF 7592#define _LARGE_FILES $ac_cv_sys_large_files 7593_ACEOF 7594;; 7595esac 7596rm -rf conftest* 7597 fi 7598fi 7599 7600 7601 7602 7603 7604 7605 7606 # Check whether --enable-threads was given. 7607if test "${enable_threads+set}" = set; then : 7608 enableval=$enable_threads; gl_use_threads=$enableval 7609else 7610 if test -n "$gl_use_threads_default"; then 7611 gl_use_threads="$gl_use_threads_default" 7612 else 7613 case "$host_os" in 7614 osf*) gl_use_threads=no ;; 7615 cygwin*) 7616 case `uname -r` in 7617 1.[0-5].*) gl_use_threads=no ;; 7618 *) gl_use_threads=yes ;; 7619 esac 7620 ;; 7621 mingw*) 7622 case "$gl_use_winpthreads_default" in 7623 yes) gl_use_threads=posix ;; 7624 no) gl_use_threads=windows ;; 7625 *) gl_use_threads=yes ;; 7626 esac 7627 ;; 7628 *) gl_use_threads=yes ;; 7629 esac 7630 fi 7631 7632fi 7633 7634 if test "$gl_use_threads" = yes \ 7635 || test "$gl_use_threads" = isoc \ 7636 || test "$gl_use_threads" = posix \ 7637 || test "$gl_use_threads" = isoc+posix; then 7638 # For using <threads.h> or <pthread.h>: 7639 7640 7641 if test -z "$gl_anythreadlib_early_done"; then 7642 case "$host_os" in 7643 osf*) 7644 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it 7645 # groks <pthread.h>. cc also understands the flag -pthread, but 7646 # we don't use it because 1. gcc-2.95 doesn't understand -pthread, 7647 # 2. putting a flag into CPPFLAGS that has an effect on the linker 7648 # causes the AC_LINK_IFELSE test below to succeed unexpectedly, 7649 # leading to wrong values of LIBTHREAD and LTLIBTHREAD. 7650 CPPFLAGS="$CPPFLAGS -D_REENTRANT" 7651 ;; 7652 esac 7653 # Some systems optimize for single-threaded programs by default, and 7654 # need special flags to disable these optimizations. For example, the 7655 # definition of 'errno' in <errno.h>. 7656 case "$host_os" in 7657 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;; 7658 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;; 7659 esac 7660 gl_anythreadlib_early_done=done 7661 fi 7662 7663 fi 7664 7665 7666 7667 # Pre-early section. 7668 7669 7670 7671 7672 # Code from module absolute-header: 7673 # Code from module alloca-opt: 7674 # Code from module allocator: 7675 # Code from module ansi-c++-opt: 7676 # Code from module areadlink: 7677 # Code from module atexit: 7678 # Code from module attribute: 7679 # Code from module basename-lgpl: 7680 # Code from module binary-io: 7681 # Code from module bison: 7682 # Code from module c-ctype: 7683 # Code from module c-strcase: 7684 # Code from module c99: 7685 # Code from module canonicalize-lgpl: 7686 # Code from module careadlinkat: 7687 # Code from module cloexec: 7688 # Code from module close: 7689 # Code from module closeout: 7690 # Code from module csharpcomp-script: 7691 # Code from module double-slash-root: 7692 # Code from module dup2: 7693 # Code from module environ: 7694 # Code from module errno: 7695 # Code from module error: 7696 # Code from module extensions: 7697 # Code from module extern-inline: 7698 # Code from module fcntl: 7699 # Code from module fcntl-h: 7700 # Code from module fd-hook: 7701 # Code from module filename: 7702 # Code from module flexmember: 7703 # Code from module fstat: 7704 # Code from module fwriteerror: 7705 # Code from module getdtablesize: 7706 # Code from module getopt-gnu: 7707 # Code from module getopt-posix: 7708 # Code from module getprogname: 7709 # Code from module gettext-h: 7710 # Code from module gettext-runtime-misc: 7711 # Code from module gperf: 7712 # Code from module hard-locale: 7713 # Code from module havelib: 7714 # Code from module iconv: 7715 # Code from module iconv-h: 7716 # Code from module iconv_open: 7717 # Code from module include_next: 7718 # Code from module inline: 7719 # Code from module intprops: 7720 # Code from module inttypes-incomplete: 7721 # Code from module iswblank: 7722 # Code from module iswdigit: 7723 # Code from module iswxdigit: 7724 # Code from module java: 7725 # Code from module javacomp-script: 7726 # Code from module langinfo: 7727 # Code from module largefile: 7728 7729 # Code from module limits-h: 7730 # Code from module localcharset: 7731 # Code from module locale: 7732 # Code from module localename: 7733 # Code from module lock: 7734 # Code from module lstat: 7735 # Code from module malloca: 7736 # Code from module mbchar: 7737 # Code from module mbiter: 7738 # Code from module mbrtowc: 7739 # Code from module mbsinit: 7740 # Code from module mbslen: 7741 # Code from module mbsstr: 7742 # Code from module mbuiter: 7743 # Code from module memchr: 7744 # Code from module memmove: 7745 # Code from module msvc-inval: 7746 # Code from module msvc-nothrow: 7747 # Code from module multiarch: 7748 # Code from module nocrash: 7749 # Code from module noreturn: 7750 # Code from module open: 7751 # Code from module pathmax: 7752 # Code from module progname: 7753 # Code from module propername: 7754 # Code from module raise: 7755 # Code from module readlink: 7756 # Code from module relocatable-prog: 7757 # Code from module relocatable-prog-wrapper: 7758 7759 # Code from module setlocale: 7760 # Code from module setlocale-null: 7761 # Code from module signal-h: 7762 # Code from module sigpipe: 7763 # Code from module sigprocmask: 7764 # Code from module snippet/_Noreturn: 7765 # Code from module snippet/arg-nonnull: 7766 # Code from module snippet/c++defs: 7767 # Code from module snippet/unused-parameter: 7768 # Code from module snippet/warn-on-use: 7769 # Code from module ssize_t: 7770 # Code from module stat: 7771 # Code from module stat-time: 7772 # Code from module std-gnu11: 7773 # Code from module stdbool: 7774 # Code from module stddef: 7775 # Code from module stdint: 7776 # Code from module stdio: 7777 # Code from module stdlib: 7778 # Code from module streq: 7779 # Code from module strerror: 7780 # Code from module strerror-override: 7781 # Code from module striconv: 7782 # Code from module string: 7783 # Code from module strnlen: 7784 # Code from module strnlen1: 7785 # Code from module strtoul: 7786 # Code from module sys_stat: 7787 # Code from module sys_types: 7788 # Code from module threadlib: 7789 7790 7791 7792 # Code from module time: 7793 # Code from module trim: 7794 # Code from module unistd: 7795 # Code from module unistr/base: 7796 # Code from module unistr/u8-mbtoucr: 7797 # Code from module unistr/u8-uctomb: 7798 # Code from module unitypes: 7799 # Code from module uniwidth/base: 7800 # Code from module uniwidth/width: 7801 # Code from module unlocked-io: 7802 # Code from module verify: 7803 # Code from module wchar: 7804 # Code from module wctype-h: 7805 # Code from module wcwidth: 7806 # Code from module windows-mutex: 7807 # Code from module windows-once: 7808 # Code from module windows-recmutex: 7809 # Code from module windows-rwlock: 7810 # Code from module xalloc: 7811 # Code from module xalloc-oversized: 7812 # Code from module xreadlink: 7813 # Code from module xstriconv: 7814 7815 7816 7817 7818 7819 7820 case "$host_os" in 7821 mingw* | cygwin*) 7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for auto-import of symbols" >&5 7823$as_echo_n "checking for auto-import of symbols... " >&6; } 7824 if ${gl_cv_ld_autoimport+:} false; then : 7825 $as_echo_n "(cached) " >&6 7826else 7827 7828 gl_save_LDFLAGS="$LDFLAGS" 7829 LDFLAGS="$LDFLAGS -Wl,--disable-auto-import" 7830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7831/* end confdefs.h. */ 7832 7833int 7834main () 7835{ 7836 7837 ; 7838 return 0; 7839} 7840_ACEOF 7841if ac_fn_c_try_link "$LINENO"; then : 7842 gl_cv_ld_autoimport=yes 7843else 7844 gl_cv_ld_autoimport=no 7845fi 7846rm -f core conftest.err conftest.$ac_objext \ 7847 conftest$ac_exeext conftest.$ac_ext 7848 LDFLAGS="$gl_save_LDFLAGS" 7849fi 7850 7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ld_autoimport" >&5 7852$as_echo "$gl_cv_ld_autoimport" >&6; } 7853 if test $gl_cv_ld_autoimport = yes; then 7854 LDFLAGS="$LDFLAGS -Wl,--disable-auto-import" 7855 fi 7856 ;; 7857 esac 7858 7859 7860case `pwd` in 7861 *\ * | *\ *) 7862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 7863$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 7864esac 7865 7866 7867 7868macro_version='2.4.6' 7869macro_revision='2.4.6' 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883ltmain=$ac_aux_dir/ltmain.sh 7884 7885# Backslashify metacharacters that are still active within 7886# double-quoted strings. 7887sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7888 7889# Same as above, but do not quote variable references. 7890double_quote_subst='s/\(["`\\]\)/\\\1/g' 7891 7892# Sed substitution to delay expansion of an escaped shell variable in a 7893# double_quote_subst'ed string. 7894delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7895 7896# Sed substitution to delay expansion of an escaped single quote. 7897delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7898 7899# Sed substitution to avoid accidental globbing in evaled expressions 7900no_glob_subst='s/\*/\\\*/g' 7901 7902ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 7903ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 7904ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 7905 7906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 7907$as_echo_n "checking how to print strings... " >&6; } 7908# Test print first, because it will be a builtin if present. 7909if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 7910 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 7911 ECHO='print -r --' 7912elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 7913 ECHO='printf %s\n' 7914else 7915 # Use this function as a fallback that always works. 7916 func_fallback_echo () 7917 { 7918 eval 'cat <<_LTECHO_EOF 7919$1 7920_LTECHO_EOF' 7921 } 7922 ECHO='func_fallback_echo' 7923fi 7924 7925# func_echo_all arg... 7926# Invoke $ECHO with all args, space-separated. 7927func_echo_all () 7928{ 7929 $ECHO "" 7930} 7931 7932case $ECHO in 7933 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 7934$as_echo "printf" >&6; } ;; 7935 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 7936$as_echo "print -r" >&6; } ;; 7937 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 7938$as_echo "cat" >&6; } ;; 7939esac 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 7955$as_echo_n "checking for a sed that does not truncate output... " >&6; } 7956if ${ac_cv_path_SED+:} false; then : 7957 $as_echo_n "(cached) " >&6 7958else 7959 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 7960 for ac_i in 1 2 3 4 5 6 7; do 7961 ac_script="$ac_script$as_nl$ac_script" 7962 done 7963 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 7964 { ac_script=; unset ac_script;} 7965 if test -z "$SED"; then 7966 ac_path_SED_found=false 7967 # Loop through the user's path and test for each of PROGNAME-LIST 7968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7969for as_dir in $PATH 7970do 7971 IFS=$as_save_IFS 7972 test -z "$as_dir" && as_dir=. 7973 for ac_prog in sed gsed; do 7974 for ac_exec_ext in '' $ac_executable_extensions; do 7975 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 7976 as_fn_executable_p "$ac_path_SED" || continue 7977# Check for GNU ac_path_SED and select it if it is found. 7978 # Check for GNU $ac_path_SED 7979case `"$ac_path_SED" --version 2>&1` in 7980*GNU*) 7981 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 7982*) 7983 ac_count=0 7984 $as_echo_n 0123456789 >"conftest.in" 7985 while : 7986 do 7987 cat "conftest.in" "conftest.in" >"conftest.tmp" 7988 mv "conftest.tmp" "conftest.in" 7989 cp "conftest.in" "conftest.nl" 7990 $as_echo '' >> "conftest.nl" 7991 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 7992 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7993 as_fn_arith $ac_count + 1 && ac_count=$as_val 7994 if test $ac_count -gt ${ac_path_SED_max-0}; then 7995 # Best one so far, save it but keep looking for a better one 7996 ac_cv_path_SED="$ac_path_SED" 7997 ac_path_SED_max=$ac_count 7998 fi 7999 # 10*(2^10) chars as input seems more than enough 8000 test $ac_count -gt 10 && break 8001 done 8002 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 8003esac 8004 8005 $ac_path_SED_found && break 3 8006 done 8007 done 8008 done 8009IFS=$as_save_IFS 8010 if test -z "$ac_cv_path_SED"; then 8011 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 8012 fi 8013else 8014 ac_cv_path_SED=$SED 8015fi 8016 8017fi 8018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 8019$as_echo "$ac_cv_path_SED" >&6; } 8020 SED="$ac_cv_path_SED" 8021 rm -f conftest.sed 8022 8023test -z "$SED" && SED=sed 8024Xsed="$SED -e 1s/^X//" 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 8037$as_echo_n "checking for fgrep... " >&6; } 8038if ${ac_cv_path_FGREP+:} false; then : 8039 $as_echo_n "(cached) " >&6 8040else 8041 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 8042 then ac_cv_path_FGREP="$GREP -F" 8043 else 8044 if test -z "$FGREP"; then 8045 ac_path_FGREP_found=false 8046 # Loop through the user's path and test for each of PROGNAME-LIST 8047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8048for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 8049do 8050 IFS=$as_save_IFS 8051 test -z "$as_dir" && as_dir=. 8052 for ac_prog in fgrep; do 8053 for ac_exec_ext in '' $ac_executable_extensions; do 8054 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 8055 as_fn_executable_p "$ac_path_FGREP" || continue 8056# Check for GNU ac_path_FGREP and select it if it is found. 8057 # Check for GNU $ac_path_FGREP 8058case `"$ac_path_FGREP" --version 2>&1` in 8059*GNU*) 8060 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 8061*) 8062 ac_count=0 8063 $as_echo_n 0123456789 >"conftest.in" 8064 while : 8065 do 8066 cat "conftest.in" "conftest.in" >"conftest.tmp" 8067 mv "conftest.tmp" "conftest.in" 8068 cp "conftest.in" "conftest.nl" 8069 $as_echo 'FGREP' >> "conftest.nl" 8070 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 8071 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 8072 as_fn_arith $ac_count + 1 && ac_count=$as_val 8073 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 8074 # Best one so far, save it but keep looking for a better one 8075 ac_cv_path_FGREP="$ac_path_FGREP" 8076 ac_path_FGREP_max=$ac_count 8077 fi 8078 # 10*(2^10) chars as input seems more than enough 8079 test $ac_count -gt 10 && break 8080 done 8081 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 8082esac 8083 8084 $ac_path_FGREP_found && break 3 8085 done 8086 done 8087 done 8088IFS=$as_save_IFS 8089 if test -z "$ac_cv_path_FGREP"; then 8090 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 8091 fi 8092else 8093 ac_cv_path_FGREP=$FGREP 8094fi 8095 8096 fi 8097fi 8098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 8099$as_echo "$ac_cv_path_FGREP" >&6; } 8100 FGREP="$ac_cv_path_FGREP" 8101 8102 8103test -z "$GREP" && GREP=grep 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123# Check whether --with-gnu-ld was given. 8124if test "${with_gnu_ld+set}" = set; then : 8125 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 8126else 8127 with_gnu_ld=no 8128fi 8129 8130ac_prog=ld 8131if test yes = "$GCC"; then 8132 # Check if gcc -print-prog-name=ld gives a path. 8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 8134$as_echo_n "checking for ld used by $CC... " >&6; } 8135 case $host in 8136 *-*-mingw*) 8137 # gcc leaves a trailing carriage return, which upsets mingw 8138 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 8139 *) 8140 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 8141 esac 8142 case $ac_prog in 8143 # Accept absolute paths. 8144 [\\/]* | ?:[\\/]*) 8145 re_direlt='/[^/][^/]*/\.\./' 8146 # Canonicalize the pathname of ld 8147 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 8148 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 8149 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 8150 done 8151 test -z "$LD" && LD=$ac_prog 8152 ;; 8153 "") 8154 # If it fails, then pretend we aren't using GCC. 8155 ac_prog=ld 8156 ;; 8157 *) 8158 # If it is relative, then search for the first ld in PATH. 8159 with_gnu_ld=unknown 8160 ;; 8161 esac 8162elif test yes = "$with_gnu_ld"; then 8163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 8164$as_echo_n "checking for GNU ld... " >&6; } 8165else 8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 8167$as_echo_n "checking for non-GNU ld... " >&6; } 8168fi 8169if ${lt_cv_path_LD+:} false; then : 8170 $as_echo_n "(cached) " >&6 8171else 8172 if test -z "$LD"; then 8173 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8174 for ac_dir in $PATH; do 8175 IFS=$lt_save_ifs 8176 test -z "$ac_dir" && ac_dir=. 8177 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 8178 lt_cv_path_LD=$ac_dir/$ac_prog 8179 # Check to see if the program is GNU ld. I'd rather use --version, 8180 # but apparently some variants of GNU ld only accept -v. 8181 # Break only if it was the GNU/non-GNU ld that we prefer. 8182 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 8183 *GNU* | *'with BFD'*) 8184 test no != "$with_gnu_ld" && break 8185 ;; 8186 *) 8187 test yes != "$with_gnu_ld" && break 8188 ;; 8189 esac 8190 fi 8191 done 8192 IFS=$lt_save_ifs 8193else 8194 lt_cv_path_LD=$LD # Let the user override the test with a path. 8195fi 8196fi 8197 8198LD=$lt_cv_path_LD 8199if test -n "$LD"; then 8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 8201$as_echo "$LD" >&6; } 8202else 8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8204$as_echo "no" >&6; } 8205fi 8206test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 8207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 8208$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 8209if ${lt_cv_prog_gnu_ld+:} false; then : 8210 $as_echo_n "(cached) " >&6 8211else 8212 # I'd rather use --version here, but apparently some GNU lds only accept -v. 8213case `$LD -v 2>&1 </dev/null` in 8214*GNU* | *'with BFD'*) 8215 lt_cv_prog_gnu_ld=yes 8216 ;; 8217*) 8218 lt_cv_prog_gnu_ld=no 8219 ;; 8220esac 8221fi 8222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 8223$as_echo "$lt_cv_prog_gnu_ld" >&6; } 8224with_gnu_ld=$lt_cv_prog_gnu_ld 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 8235$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 8236if ${lt_cv_path_NM+:} false; then : 8237 $as_echo_n "(cached) " >&6 8238else 8239 if test -n "$NM"; then 8240 # Let the user override the test. 8241 lt_cv_path_NM=$NM 8242else 8243 lt_nm_to_check=${ac_tool_prefix}nm 8244 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 8245 lt_nm_to_check="$lt_nm_to_check nm" 8246 fi 8247 for lt_tmp_nm in $lt_nm_to_check; do 8248 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8249 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 8250 IFS=$lt_save_ifs 8251 test -z "$ac_dir" && ac_dir=. 8252 tmp_nm=$ac_dir/$lt_tmp_nm 8253 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 8254 # Check to see if the nm accepts a BSD-compat flag. 8255 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 8256 # nm: unknown option "B" ignored 8257 # Tru64's nm complains that /dev/null is an invalid object file 8258 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 8259 case $build_os in 8260 mingw*) lt_bad_file=conftest.nm/nofile ;; 8261 *) lt_bad_file=/dev/null ;; 8262 esac 8263 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 8264 *$lt_bad_file* | *'Invalid file or object type'*) 8265 lt_cv_path_NM="$tmp_nm -B" 8266 break 2 8267 ;; 8268 *) 8269 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 8270 */dev/null*) 8271 lt_cv_path_NM="$tmp_nm -p" 8272 break 2 8273 ;; 8274 *) 8275 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 8276 continue # so that we can try to find one that supports BSD flags 8277 ;; 8278 esac 8279 ;; 8280 esac 8281 fi 8282 done 8283 IFS=$lt_save_ifs 8284 done 8285 : ${lt_cv_path_NM=no} 8286fi 8287fi 8288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 8289$as_echo "$lt_cv_path_NM" >&6; } 8290if test no != "$lt_cv_path_NM"; then 8291 NM=$lt_cv_path_NM 8292else 8293 # Didn't find any BSD compatible name lister, look for dumpbin. 8294 if test -n "$DUMPBIN"; then : 8295 # Let the user override the test. 8296 else 8297 if test -n "$ac_tool_prefix"; then 8298 for ac_prog in dumpbin "link -dump" 8299 do 8300 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8301set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8303$as_echo_n "checking for $ac_word... " >&6; } 8304if ${ac_cv_prog_DUMPBIN+:} false; then : 8305 $as_echo_n "(cached) " >&6 8306else 8307 if test -n "$DUMPBIN"; then 8308 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 8309else 8310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8311for as_dir in $PATH 8312do 8313 IFS=$as_save_IFS 8314 test -z "$as_dir" && as_dir=. 8315 for ac_exec_ext in '' $ac_executable_extensions; do 8316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8317 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 8318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8319 break 2 8320 fi 8321done 8322 done 8323IFS=$as_save_IFS 8324 8325fi 8326fi 8327DUMPBIN=$ac_cv_prog_DUMPBIN 8328if test -n "$DUMPBIN"; then 8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 8330$as_echo "$DUMPBIN" >&6; } 8331else 8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8333$as_echo "no" >&6; } 8334fi 8335 8336 8337 test -n "$DUMPBIN" && break 8338 done 8339fi 8340if test -z "$DUMPBIN"; then 8341 ac_ct_DUMPBIN=$DUMPBIN 8342 for ac_prog in dumpbin "link -dump" 8343do 8344 # Extract the first word of "$ac_prog", so it can be a program name with args. 8345set dummy $ac_prog; ac_word=$2 8346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8347$as_echo_n "checking for $ac_word... " >&6; } 8348if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 8349 $as_echo_n "(cached) " >&6 8350else 8351 if test -n "$ac_ct_DUMPBIN"; then 8352 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 8353else 8354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8355for as_dir in $PATH 8356do 8357 IFS=$as_save_IFS 8358 test -z "$as_dir" && as_dir=. 8359 for ac_exec_ext in '' $ac_executable_extensions; do 8360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8361 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 8362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8363 break 2 8364 fi 8365done 8366 done 8367IFS=$as_save_IFS 8368 8369fi 8370fi 8371ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 8372if test -n "$ac_ct_DUMPBIN"; then 8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 8374$as_echo "$ac_ct_DUMPBIN" >&6; } 8375else 8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8377$as_echo "no" >&6; } 8378fi 8379 8380 8381 test -n "$ac_ct_DUMPBIN" && break 8382done 8383 8384 if test "x$ac_ct_DUMPBIN" = x; then 8385 DUMPBIN=":" 8386 else 8387 case $cross_compiling:$ac_tool_warned in 8388yes:) 8389{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8390$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8391ac_tool_warned=yes ;; 8392esac 8393 DUMPBIN=$ac_ct_DUMPBIN 8394 fi 8395fi 8396 8397 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 8398 *COFF*) 8399 DUMPBIN="$DUMPBIN -symbols -headers" 8400 ;; 8401 *) 8402 DUMPBIN=: 8403 ;; 8404 esac 8405 fi 8406 8407 if test : != "$DUMPBIN"; then 8408 NM=$DUMPBIN 8409 fi 8410fi 8411test -z "$NM" && NM=nm 8412 8413 8414 8415 8416 8417 8418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 8419$as_echo_n "checking the name lister ($NM) interface... " >&6; } 8420if ${lt_cv_nm_interface+:} false; then : 8421 $as_echo_n "(cached) " >&6 8422else 8423 lt_cv_nm_interface="BSD nm" 8424 echo "int some_variable = 0;" > conftest.$ac_ext 8425 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 8426 (eval "$ac_compile" 2>conftest.err) 8427 cat conftest.err >&5 8428 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 8429 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 8430 cat conftest.err >&5 8431 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 8432 cat conftest.out >&5 8433 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 8434 lt_cv_nm_interface="MS dumpbin" 8435 fi 8436 rm -f conftest* 8437fi 8438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 8439$as_echo "$lt_cv_nm_interface" >&6; } 8440 8441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 8442$as_echo_n "checking whether ln -s works... " >&6; } 8443LN_S=$as_ln_s 8444if test "$LN_S" = "ln -s"; then 8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8446$as_echo "yes" >&6; } 8447else 8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 8449$as_echo "no, using $LN_S" >&6; } 8450fi 8451 8452# find the maximum length of command line arguments 8453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 8454$as_echo_n "checking the maximum length of command line arguments... " >&6; } 8455if ${lt_cv_sys_max_cmd_len+:} false; then : 8456 $as_echo_n "(cached) " >&6 8457else 8458 i=0 8459 teststring=ABCD 8460 8461 case $build_os in 8462 msdosdjgpp*) 8463 # On DJGPP, this test can blow up pretty badly due to problems in libc 8464 # (any single argument exceeding 2000 bytes causes a buffer overrun 8465 # during glob expansion). Even if it were fixed, the result of this 8466 # check would be larger than it should be. 8467 lt_cv_sys_max_cmd_len=12288; # 12K is about right 8468 ;; 8469 8470 gnu*) 8471 # Under GNU Hurd, this test is not required because there is 8472 # no limit to the length of command line arguments. 8473 # Libtool will interpret -1 as no limit whatsoever 8474 lt_cv_sys_max_cmd_len=-1; 8475 ;; 8476 8477 cygwin* | mingw* | cegcc*) 8478 # On Win9x/ME, this test blows up -- it succeeds, but takes 8479 # about 5 minutes as the teststring grows exponentially. 8480 # Worse, since 9x/ME are not pre-emptively multitasking, 8481 # you end up with a "frozen" computer, even though with patience 8482 # the test eventually succeeds (with a max line length of 256k). 8483 # Instead, let's just punt: use the minimum linelength reported by 8484 # all of the supported platforms: 8192 (on NT/2K/XP). 8485 lt_cv_sys_max_cmd_len=8192; 8486 ;; 8487 8488 mint*) 8489 # On MiNT this can take a long time and run out of memory. 8490 lt_cv_sys_max_cmd_len=8192; 8491 ;; 8492 8493 amigaos*) 8494 # On AmigaOS with pdksh, this test takes hours, literally. 8495 # So we just punt and use a minimum line length of 8192. 8496 lt_cv_sys_max_cmd_len=8192; 8497 ;; 8498 8499 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 8500 # This has been around since 386BSD, at least. Likely further. 8501 if test -x /sbin/sysctl; then 8502 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 8503 elif test -x /usr/sbin/sysctl; then 8504 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 8505 else 8506 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 8507 fi 8508 # And add a safety zone 8509 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 8510 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 8511 ;; 8512 8513 interix*) 8514 # We know the value 262144 and hardcode it with a safety zone (like BSD) 8515 lt_cv_sys_max_cmd_len=196608 8516 ;; 8517 8518 os2*) 8519 # The test takes a long time on OS/2. 8520 lt_cv_sys_max_cmd_len=8192 8521 ;; 8522 8523 osf*) 8524 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 8525 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 8526 # nice to cause kernel panics so lets avoid the loop below. 8527 # First set a reasonable default. 8528 lt_cv_sys_max_cmd_len=16384 8529 # 8530 if test -x /sbin/sysconfig; then 8531 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 8532 *1*) lt_cv_sys_max_cmd_len=-1 ;; 8533 esac 8534 fi 8535 ;; 8536 sco3.2v5*) 8537 lt_cv_sys_max_cmd_len=102400 8538 ;; 8539 sysv5* | sco5v6* | sysv4.2uw2*) 8540 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 8541 if test -n "$kargmax"; then 8542 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 8543 else 8544 lt_cv_sys_max_cmd_len=32768 8545 fi 8546 ;; 8547 *) 8548 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 8549 if test -n "$lt_cv_sys_max_cmd_len" && \ 8550 test undefined != "$lt_cv_sys_max_cmd_len"; then 8551 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 8552 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 8553 else 8554 # Make teststring a little bigger before we do anything with it. 8555 # a 1K string should be a reasonable start. 8556 for i in 1 2 3 4 5 6 7 8; do 8557 teststring=$teststring$teststring 8558 done 8559 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 8560 # If test is not a shell built-in, we'll probably end up computing a 8561 # maximum length that is only half of the actual maximum length, but 8562 # we can't tell. 8563 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 8564 = "X$teststring$teststring"; } >/dev/null 2>&1 && 8565 test 17 != "$i" # 1/2 MB should be enough 8566 do 8567 i=`expr $i + 1` 8568 teststring=$teststring$teststring 8569 done 8570 # Only check the string length outside the loop. 8571 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 8572 teststring= 8573 # Add a significant safety factor because C++ compilers can tack on 8574 # massive amounts of additional arguments before passing them to the 8575 # linker. It appears as though 1/2 is a usable value. 8576 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 8577 fi 8578 ;; 8579 esac 8580 8581fi 8582 8583if test -n "$lt_cv_sys_max_cmd_len"; then 8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 8585$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 8586else 8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 8588$as_echo "none" >&6; } 8589fi 8590max_cmd_len=$lt_cv_sys_max_cmd_len 8591 8592 8593 8594 8595 8596 8597: ${CP="cp -f"} 8598: ${MV="mv -f"} 8599: ${RM="rm -f"} 8600 8601if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 8602 lt_unset=unset 8603else 8604 lt_unset=false 8605fi 8606 8607 8608 8609 8610 8611# test EBCDIC or ASCII 8612case `echo X|tr X '\101'` in 8613 A) # ASCII based system 8614 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 8615 lt_SP2NL='tr \040 \012' 8616 lt_NL2SP='tr \015\012 \040\040' 8617 ;; 8618 *) # EBCDIC based system 8619 lt_SP2NL='tr \100 \n' 8620 lt_NL2SP='tr \r\n \100\100' 8621 ;; 8622esac 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 8633$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 8634if ${lt_cv_to_host_file_cmd+:} false; then : 8635 $as_echo_n "(cached) " >&6 8636else 8637 case $host in 8638 *-*-mingw* ) 8639 case $build in 8640 *-*-mingw* ) # actually msys 8641 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 8642 ;; 8643 *-*-cygwin* ) 8644 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 8645 ;; 8646 * ) # otherwise, assume *nix 8647 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 8648 ;; 8649 esac 8650 ;; 8651 *-*-cygwin* ) 8652 case $build in 8653 *-*-mingw* ) # actually msys 8654 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 8655 ;; 8656 *-*-cygwin* ) 8657 lt_cv_to_host_file_cmd=func_convert_file_noop 8658 ;; 8659 * ) # otherwise, assume *nix 8660 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 8661 ;; 8662 esac 8663 ;; 8664 * ) # unhandled hosts (and "normal" native builds) 8665 lt_cv_to_host_file_cmd=func_convert_file_noop 8666 ;; 8667esac 8668 8669fi 8670 8671to_host_file_cmd=$lt_cv_to_host_file_cmd 8672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 8673$as_echo "$lt_cv_to_host_file_cmd" >&6; } 8674 8675 8676 8677 8678 8679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 8680$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 8681if ${lt_cv_to_tool_file_cmd+:} false; then : 8682 $as_echo_n "(cached) " >&6 8683else 8684 #assume ordinary cross tools, or native build. 8685lt_cv_to_tool_file_cmd=func_convert_file_noop 8686case $host in 8687 *-*-mingw* ) 8688 case $build in 8689 *-*-mingw* ) # actually msys 8690 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 8691 ;; 8692 esac 8693 ;; 8694esac 8695 8696fi 8697 8698to_tool_file_cmd=$lt_cv_to_tool_file_cmd 8699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 8700$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 8701 8702 8703 8704 8705 8706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 8707$as_echo_n "checking for $LD option to reload object files... " >&6; } 8708if ${lt_cv_ld_reload_flag+:} false; then : 8709 $as_echo_n "(cached) " >&6 8710else 8711 lt_cv_ld_reload_flag='-r' 8712fi 8713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 8714$as_echo "$lt_cv_ld_reload_flag" >&6; } 8715reload_flag=$lt_cv_ld_reload_flag 8716case $reload_flag in 8717"" | " "*) ;; 8718*) reload_flag=" $reload_flag" ;; 8719esac 8720reload_cmds='$LD$reload_flag -o $output$reload_objs' 8721case $host_os in 8722 cygwin* | mingw* | pw32* | cegcc*) 8723 if test yes != "$GCC"; then 8724 reload_cmds=false 8725 fi 8726 ;; 8727 darwin*) 8728 if test yes = "$GCC"; then 8729 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 8730 else 8731 reload_cmds='$LD$reload_flag -o $output$reload_objs' 8732 fi 8733 ;; 8734esac 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744if test -n "$ac_tool_prefix"; then 8745 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8746set dummy ${ac_tool_prefix}objdump; ac_word=$2 8747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8748$as_echo_n "checking for $ac_word... " >&6; } 8749if ${ac_cv_prog_OBJDUMP+:} false; then : 8750 $as_echo_n "(cached) " >&6 8751else 8752 if test -n "$OBJDUMP"; then 8753 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8754else 8755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8756for as_dir in $PATH 8757do 8758 IFS=$as_save_IFS 8759 test -z "$as_dir" && as_dir=. 8760 for ac_exec_ext in '' $ac_executable_extensions; do 8761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8762 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8764 break 2 8765 fi 8766done 8767 done 8768IFS=$as_save_IFS 8769 8770fi 8771fi 8772OBJDUMP=$ac_cv_prog_OBJDUMP 8773if test -n "$OBJDUMP"; then 8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8775$as_echo "$OBJDUMP" >&6; } 8776else 8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8778$as_echo "no" >&6; } 8779fi 8780 8781 8782fi 8783if test -z "$ac_cv_prog_OBJDUMP"; then 8784 ac_ct_OBJDUMP=$OBJDUMP 8785 # Extract the first word of "objdump", so it can be a program name with args. 8786set dummy objdump; ac_word=$2 8787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8788$as_echo_n "checking for $ac_word... " >&6; } 8789if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 8790 $as_echo_n "(cached) " >&6 8791else 8792 if test -n "$ac_ct_OBJDUMP"; then 8793 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8794else 8795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8796for as_dir in $PATH 8797do 8798 IFS=$as_save_IFS 8799 test -z "$as_dir" && as_dir=. 8800 for ac_exec_ext in '' $ac_executable_extensions; do 8801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8802 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8804 break 2 8805 fi 8806done 8807 done 8808IFS=$as_save_IFS 8809 8810fi 8811fi 8812ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8813if test -n "$ac_ct_OBJDUMP"; then 8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8815$as_echo "$ac_ct_OBJDUMP" >&6; } 8816else 8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8818$as_echo "no" >&6; } 8819fi 8820 8821 if test "x$ac_ct_OBJDUMP" = x; then 8822 OBJDUMP="false" 8823 else 8824 case $cross_compiling:$ac_tool_warned in 8825yes:) 8826{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8827$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8828ac_tool_warned=yes ;; 8829esac 8830 OBJDUMP=$ac_ct_OBJDUMP 8831 fi 8832else 8833 OBJDUMP="$ac_cv_prog_OBJDUMP" 8834fi 8835 8836test -z "$OBJDUMP" && OBJDUMP=objdump 8837 8838 8839 8840 8841 8842 8843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 8844$as_echo_n "checking how to recognize dependent libraries... " >&6; } 8845if ${lt_cv_deplibs_check_method+:} false; then : 8846 $as_echo_n "(cached) " >&6 8847else 8848 lt_cv_file_magic_cmd='$MAGIC_CMD' 8849lt_cv_file_magic_test_file= 8850lt_cv_deplibs_check_method='unknown' 8851# Need to set the preceding variable on all platforms that support 8852# interlibrary dependencies. 8853# 'none' -- dependencies not supported. 8854# 'unknown' -- same as none, but documents that we really don't know. 8855# 'pass_all' -- all dependencies passed with no checks. 8856# 'test_compile' -- check by making test program. 8857# 'file_magic [[regex]]' -- check by looking for files in library path 8858# that responds to the $file_magic_cmd with a given extended regex. 8859# If you have 'file' or equivalent on your system and you're not sure 8860# whether 'pass_all' will *always* work, you probably want this one. 8861 8862case $host_os in 8863aix[4-9]*) 8864 lt_cv_deplibs_check_method=pass_all 8865 ;; 8866 8867beos*) 8868 lt_cv_deplibs_check_method=pass_all 8869 ;; 8870 8871bsdi[45]*) 8872 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 8873 lt_cv_file_magic_cmd='/usr/bin/file -L' 8874 lt_cv_file_magic_test_file=/shlib/libc.so 8875 ;; 8876 8877cygwin*) 8878 # func_win32_libid is a shell function defined in ltmain.sh 8879 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8880 lt_cv_file_magic_cmd='func_win32_libid' 8881 ;; 8882 8883mingw* | pw32*) 8884 # Base MSYS/MinGW do not provide the 'file' command needed by 8885 # func_win32_libid shell function, so use a weaker test based on 'objdump', 8886 # unless we find 'file', for example because we are cross-compiling. 8887 if ( file / ) >/dev/null 2>&1; then 8888 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8889 lt_cv_file_magic_cmd='func_win32_libid' 8890 else 8891 # Keep this pattern in sync with the one in func_win32_libid. 8892 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 8893 lt_cv_file_magic_cmd='$OBJDUMP -f' 8894 fi 8895 ;; 8896 8897cegcc*) 8898 # use the weaker test based on 'objdump'. See mingw*. 8899 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 8900 lt_cv_file_magic_cmd='$OBJDUMP -f' 8901 ;; 8902 8903darwin* | rhapsody*) 8904 lt_cv_deplibs_check_method=pass_all 8905 ;; 8906 8907freebsd* | dragonfly*) 8908 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8909 case $host_cpu in 8910 i*86 ) 8911 # Not sure whether the presence of OpenBSD here was a mistake. 8912 # Let's accept both of them until this is cleared up. 8913 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 8914 lt_cv_file_magic_cmd=/usr/bin/file 8915 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 8916 ;; 8917 esac 8918 else 8919 lt_cv_deplibs_check_method=pass_all 8920 fi 8921 ;; 8922 8923haiku*) 8924 lt_cv_deplibs_check_method=pass_all 8925 ;; 8926 8927hpux10.20* | hpux11*) 8928 lt_cv_file_magic_cmd=/usr/bin/file 8929 case $host_cpu in 8930 ia64*) 8931 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 8932 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 8933 ;; 8934 hppa*64*) 8935 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]' 8936 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 8937 ;; 8938 *) 8939 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 8940 lt_cv_file_magic_test_file=/usr/lib/libc.sl 8941 ;; 8942 esac 8943 ;; 8944 8945interix[3-9]*) 8946 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 8947 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 8948 ;; 8949 8950irix5* | irix6* | nonstopux*) 8951 case $LD in 8952 *-32|*"-32 ") libmagic=32-bit;; 8953 *-n32|*"-n32 ") libmagic=N32;; 8954 *-64|*"-64 ") libmagic=64-bit;; 8955 *) libmagic=never-match;; 8956 esac 8957 lt_cv_deplibs_check_method=pass_all 8958 ;; 8959 8960# This must be glibc/ELF. 8961linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8962 lt_cv_deplibs_check_method=pass_all 8963 ;; 8964 8965netbsd*) 8966 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8967 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8968 else 8969 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 8970 fi 8971 ;; 8972 8973newos6*) 8974 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 8975 lt_cv_file_magic_cmd=/usr/bin/file 8976 lt_cv_file_magic_test_file=/usr/lib/libnls.so 8977 ;; 8978 8979*nto* | *qnx*) 8980 lt_cv_deplibs_check_method=pass_all 8981 ;; 8982 8983openbsd* | bitrig*) 8984 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 8985 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 8986 else 8987 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8988 fi 8989 ;; 8990 8991osf3* | osf4* | osf5*) 8992 lt_cv_deplibs_check_method=pass_all 8993 ;; 8994 8995rdos*) 8996 lt_cv_deplibs_check_method=pass_all 8997 ;; 8998 8999solaris*) 9000 lt_cv_deplibs_check_method=pass_all 9001 ;; 9002 9003sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9004 lt_cv_deplibs_check_method=pass_all 9005 ;; 9006 9007sysv4 | sysv4.3*) 9008 case $host_vendor in 9009 motorola) 9010 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]' 9011 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 9012 ;; 9013 ncr) 9014 lt_cv_deplibs_check_method=pass_all 9015 ;; 9016 sequent) 9017 lt_cv_file_magic_cmd='/bin/file' 9018 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 9019 ;; 9020 sni) 9021 lt_cv_file_magic_cmd='/bin/file' 9022 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 9023 lt_cv_file_magic_test_file=/lib/libc.so 9024 ;; 9025 siemens) 9026 lt_cv_deplibs_check_method=pass_all 9027 ;; 9028 pc) 9029 lt_cv_deplibs_check_method=pass_all 9030 ;; 9031 esac 9032 ;; 9033 9034tpf*) 9035 lt_cv_deplibs_check_method=pass_all 9036 ;; 9037os2*) 9038 lt_cv_deplibs_check_method=pass_all 9039 ;; 9040esac 9041 9042fi 9043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 9044$as_echo "$lt_cv_deplibs_check_method" >&6; } 9045 9046file_magic_glob= 9047want_nocaseglob=no 9048if test "$build" = "$host"; then 9049 case $host_os in 9050 mingw* | pw32*) 9051 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 9052 want_nocaseglob=yes 9053 else 9054 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 9055 fi 9056 ;; 9057 esac 9058fi 9059 9060file_magic_cmd=$lt_cv_file_magic_cmd 9061deplibs_check_method=$lt_cv_deplibs_check_method 9062test -z "$deplibs_check_method" && deplibs_check_method=unknown 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085if test -n "$ac_tool_prefix"; then 9086 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 9087set dummy ${ac_tool_prefix}dlltool; ac_word=$2 9088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9089$as_echo_n "checking for $ac_word... " >&6; } 9090if ${ac_cv_prog_DLLTOOL+:} false; then : 9091 $as_echo_n "(cached) " >&6 9092else 9093 if test -n "$DLLTOOL"; then 9094 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 9095else 9096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9097for as_dir in $PATH 9098do 9099 IFS=$as_save_IFS 9100 test -z "$as_dir" && as_dir=. 9101 for ac_exec_ext in '' $ac_executable_extensions; do 9102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9103 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 9104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9105 break 2 9106 fi 9107done 9108 done 9109IFS=$as_save_IFS 9110 9111fi 9112fi 9113DLLTOOL=$ac_cv_prog_DLLTOOL 9114if test -n "$DLLTOOL"; then 9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 9116$as_echo "$DLLTOOL" >&6; } 9117else 9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9119$as_echo "no" >&6; } 9120fi 9121 9122 9123fi 9124if test -z "$ac_cv_prog_DLLTOOL"; then 9125 ac_ct_DLLTOOL=$DLLTOOL 9126 # Extract the first word of "dlltool", so it can be a program name with args. 9127set dummy dlltool; ac_word=$2 9128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9129$as_echo_n "checking for $ac_word... " >&6; } 9130if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 9131 $as_echo_n "(cached) " >&6 9132else 9133 if test -n "$ac_ct_DLLTOOL"; then 9134 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 9135else 9136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9137for as_dir in $PATH 9138do 9139 IFS=$as_save_IFS 9140 test -z "$as_dir" && as_dir=. 9141 for ac_exec_ext in '' $ac_executable_extensions; do 9142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9143 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 9144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9145 break 2 9146 fi 9147done 9148 done 9149IFS=$as_save_IFS 9150 9151fi 9152fi 9153ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 9154if test -n "$ac_ct_DLLTOOL"; then 9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 9156$as_echo "$ac_ct_DLLTOOL" >&6; } 9157else 9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9159$as_echo "no" >&6; } 9160fi 9161 9162 if test "x$ac_ct_DLLTOOL" = x; then 9163 DLLTOOL="false" 9164 else 9165 case $cross_compiling:$ac_tool_warned in 9166yes:) 9167{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9168$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9169ac_tool_warned=yes ;; 9170esac 9171 DLLTOOL=$ac_ct_DLLTOOL 9172 fi 9173else 9174 DLLTOOL="$ac_cv_prog_DLLTOOL" 9175fi 9176 9177test -z "$DLLTOOL" && DLLTOOL=dlltool 9178 9179 9180 9181 9182 9183 9184 9185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 9186$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 9187if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 9188 $as_echo_n "(cached) " >&6 9189else 9190 lt_cv_sharedlib_from_linklib_cmd='unknown' 9191 9192case $host_os in 9193cygwin* | mingw* | pw32* | cegcc*) 9194 # two different shell functions defined in ltmain.sh; 9195 # decide which one to use based on capabilities of $DLLTOOL 9196 case `$DLLTOOL --help 2>&1` in 9197 *--identify-strict*) 9198 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 9199 ;; 9200 *) 9201 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 9202 ;; 9203 esac 9204 ;; 9205*) 9206 # fallback: assume linklib IS sharedlib 9207 lt_cv_sharedlib_from_linklib_cmd=$ECHO 9208 ;; 9209esac 9210 9211fi 9212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 9213$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 9214sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 9215test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 9216 9217 9218 9219 9220 9221 9222 9223if test -n "$ac_tool_prefix"; then 9224 for ac_prog in ar 9225 do 9226 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 9227set dummy $ac_tool_prefix$ac_prog; ac_word=$2 9228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9229$as_echo_n "checking for $ac_word... " >&6; } 9230if ${ac_cv_prog_AR+:} false; then : 9231 $as_echo_n "(cached) " >&6 9232else 9233 if test -n "$AR"; then 9234 ac_cv_prog_AR="$AR" # Let the user override the test. 9235else 9236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9237for as_dir in $PATH 9238do 9239 IFS=$as_save_IFS 9240 test -z "$as_dir" && as_dir=. 9241 for ac_exec_ext in '' $ac_executable_extensions; do 9242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9243 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 9244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9245 break 2 9246 fi 9247done 9248 done 9249IFS=$as_save_IFS 9250 9251fi 9252fi 9253AR=$ac_cv_prog_AR 9254if test -n "$AR"; then 9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 9256$as_echo "$AR" >&6; } 9257else 9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9259$as_echo "no" >&6; } 9260fi 9261 9262 9263 test -n "$AR" && break 9264 done 9265fi 9266if test -z "$AR"; then 9267 ac_ct_AR=$AR 9268 for ac_prog in ar 9269do 9270 # Extract the first word of "$ac_prog", so it can be a program name with args. 9271set dummy $ac_prog; ac_word=$2 9272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9273$as_echo_n "checking for $ac_word... " >&6; } 9274if ${ac_cv_prog_ac_ct_AR+:} false; then : 9275 $as_echo_n "(cached) " >&6 9276else 9277 if test -n "$ac_ct_AR"; then 9278 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 9279else 9280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9281for as_dir in $PATH 9282do 9283 IFS=$as_save_IFS 9284 test -z "$as_dir" && as_dir=. 9285 for ac_exec_ext in '' $ac_executable_extensions; do 9286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9287 ac_cv_prog_ac_ct_AR="$ac_prog" 9288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9289 break 2 9290 fi 9291done 9292 done 9293IFS=$as_save_IFS 9294 9295fi 9296fi 9297ac_ct_AR=$ac_cv_prog_ac_ct_AR 9298if test -n "$ac_ct_AR"; then 9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 9300$as_echo "$ac_ct_AR" >&6; } 9301else 9302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9303$as_echo "no" >&6; } 9304fi 9305 9306 9307 test -n "$ac_ct_AR" && break 9308done 9309 9310 if test "x$ac_ct_AR" = x; then 9311 AR="false" 9312 else 9313 case $cross_compiling:$ac_tool_warned in 9314yes:) 9315{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9316$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9317ac_tool_warned=yes ;; 9318esac 9319 AR=$ac_ct_AR 9320 fi 9321fi 9322 9323: ${AR=ar} 9324: ${AR_FLAGS=cru} 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 9337$as_echo_n "checking for archiver @FILE support... " >&6; } 9338if ${lt_cv_ar_at_file+:} false; then : 9339 $as_echo_n "(cached) " >&6 9340else 9341 lt_cv_ar_at_file=no 9342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9343/* end confdefs.h. */ 9344 9345int 9346main () 9347{ 9348 9349 ; 9350 return 0; 9351} 9352_ACEOF 9353if ac_fn_c_try_compile "$LINENO"; then : 9354 echo conftest.$ac_objext > conftest.lst 9355 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 9356 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 9357 (eval $lt_ar_try) 2>&5 9358 ac_status=$? 9359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9360 test $ac_status = 0; } 9361 if test 0 -eq "$ac_status"; then 9362 # Ensure the archiver fails upon bogus file names. 9363 rm -f conftest.$ac_objext libconftest.a 9364 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 9365 (eval $lt_ar_try) 2>&5 9366 ac_status=$? 9367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9368 test $ac_status = 0; } 9369 if test 0 -ne "$ac_status"; then 9370 lt_cv_ar_at_file=@ 9371 fi 9372 fi 9373 rm -f conftest.* libconftest.a 9374 9375fi 9376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9377 9378fi 9379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 9380$as_echo "$lt_cv_ar_at_file" >&6; } 9381 9382if test no = "$lt_cv_ar_at_file"; then 9383 archiver_list_spec= 9384else 9385 archiver_list_spec=$lt_cv_ar_at_file 9386fi 9387 9388 9389 9390 9391 9392 9393 9394if test -n "$ac_tool_prefix"; then 9395 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 9396set dummy ${ac_tool_prefix}strip; ac_word=$2 9397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9398$as_echo_n "checking for $ac_word... " >&6; } 9399if ${ac_cv_prog_STRIP+:} false; then : 9400 $as_echo_n "(cached) " >&6 9401else 9402 if test -n "$STRIP"; then 9403 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 9404else 9405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9406for as_dir in $PATH 9407do 9408 IFS=$as_save_IFS 9409 test -z "$as_dir" && as_dir=. 9410 for ac_exec_ext in '' $ac_executable_extensions; do 9411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9412 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 9413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9414 break 2 9415 fi 9416done 9417 done 9418IFS=$as_save_IFS 9419 9420fi 9421fi 9422STRIP=$ac_cv_prog_STRIP 9423if test -n "$STRIP"; then 9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 9425$as_echo "$STRIP" >&6; } 9426else 9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9428$as_echo "no" >&6; } 9429fi 9430 9431 9432fi 9433if test -z "$ac_cv_prog_STRIP"; then 9434 ac_ct_STRIP=$STRIP 9435 # Extract the first word of "strip", so it can be a program name with args. 9436set dummy strip; ac_word=$2 9437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9438$as_echo_n "checking for $ac_word... " >&6; } 9439if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 9440 $as_echo_n "(cached) " >&6 9441else 9442 if test -n "$ac_ct_STRIP"; then 9443 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 9444else 9445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9446for as_dir in $PATH 9447do 9448 IFS=$as_save_IFS 9449 test -z "$as_dir" && as_dir=. 9450 for ac_exec_ext in '' $ac_executable_extensions; do 9451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9452 ac_cv_prog_ac_ct_STRIP="strip" 9453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9454 break 2 9455 fi 9456done 9457 done 9458IFS=$as_save_IFS 9459 9460fi 9461fi 9462ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 9463if test -n "$ac_ct_STRIP"; then 9464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 9465$as_echo "$ac_ct_STRIP" >&6; } 9466else 9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9468$as_echo "no" >&6; } 9469fi 9470 9471 if test "x$ac_ct_STRIP" = x; then 9472 STRIP=":" 9473 else 9474 case $cross_compiling:$ac_tool_warned in 9475yes:) 9476{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9477$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9478ac_tool_warned=yes ;; 9479esac 9480 STRIP=$ac_ct_STRIP 9481 fi 9482else 9483 STRIP="$ac_cv_prog_STRIP" 9484fi 9485 9486test -z "$STRIP" && STRIP=: 9487 9488 9489 9490 9491 9492 9493if test -n "$ac_tool_prefix"; then 9494 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 9495set dummy ${ac_tool_prefix}ranlib; ac_word=$2 9496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9497$as_echo_n "checking for $ac_word... " >&6; } 9498if ${ac_cv_prog_RANLIB+:} false; then : 9499 $as_echo_n "(cached) " >&6 9500else 9501 if test -n "$RANLIB"; then 9502 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 9503else 9504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9505for as_dir in $PATH 9506do 9507 IFS=$as_save_IFS 9508 test -z "$as_dir" && as_dir=. 9509 for ac_exec_ext in '' $ac_executable_extensions; do 9510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9511 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 9512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9513 break 2 9514 fi 9515done 9516 done 9517IFS=$as_save_IFS 9518 9519fi 9520fi 9521RANLIB=$ac_cv_prog_RANLIB 9522if test -n "$RANLIB"; then 9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 9524$as_echo "$RANLIB" >&6; } 9525else 9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9527$as_echo "no" >&6; } 9528fi 9529 9530 9531fi 9532if test -z "$ac_cv_prog_RANLIB"; then 9533 ac_ct_RANLIB=$RANLIB 9534 # Extract the first word of "ranlib", so it can be a program name with args. 9535set dummy ranlib; ac_word=$2 9536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9537$as_echo_n "checking for $ac_word... " >&6; } 9538if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 9539 $as_echo_n "(cached) " >&6 9540else 9541 if test -n "$ac_ct_RANLIB"; then 9542 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 9543else 9544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9545for as_dir in $PATH 9546do 9547 IFS=$as_save_IFS 9548 test -z "$as_dir" && as_dir=. 9549 for ac_exec_ext in '' $ac_executable_extensions; do 9550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9551 ac_cv_prog_ac_ct_RANLIB="ranlib" 9552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9553 break 2 9554 fi 9555done 9556 done 9557IFS=$as_save_IFS 9558 9559fi 9560fi 9561ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 9562if test -n "$ac_ct_RANLIB"; then 9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 9564$as_echo "$ac_ct_RANLIB" >&6; } 9565else 9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9567$as_echo "no" >&6; } 9568fi 9569 9570 if test "x$ac_ct_RANLIB" = x; then 9571 RANLIB=":" 9572 else 9573 case $cross_compiling:$ac_tool_warned in 9574yes:) 9575{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9576$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9577ac_tool_warned=yes ;; 9578esac 9579 RANLIB=$ac_ct_RANLIB 9580 fi 9581else 9582 RANLIB="$ac_cv_prog_RANLIB" 9583fi 9584 9585test -z "$RANLIB" && RANLIB=: 9586 9587 9588 9589 9590 9591 9592# Determine commands to create old-style static archives. 9593old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 9594old_postinstall_cmds='chmod 644 $oldlib' 9595old_postuninstall_cmds= 9596 9597if test -n "$RANLIB"; then 9598 case $host_os in 9599 bitrig* | openbsd*) 9600 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 9601 ;; 9602 *) 9603 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 9604 ;; 9605 esac 9606 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 9607fi 9608 9609case $host_os in 9610 darwin*) 9611 lock_old_archive_extraction=yes ;; 9612 *) 9613 lock_old_archive_extraction=no ;; 9614esac 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654# If no C compiler was specified, use CC. 9655LTCC=${LTCC-"$CC"} 9656 9657# If no C compiler flags were specified, use CFLAGS. 9658LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9659 9660# Allow CC to be a program name with arguments. 9661compiler=$CC 9662 9663 9664# Check for command to grab the raw symbol name followed by C symbol from nm. 9665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 9666$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 9667if ${lt_cv_sys_global_symbol_pipe+:} false; then : 9668 $as_echo_n "(cached) " >&6 9669else 9670 9671# These are sane defaults that work on at least a few old systems. 9672# [They come from Ultrix. What could be older than Ultrix?!! ;)] 9673 9674# Character class describing NM global symbol codes. 9675symcode='[BCDEGRST]' 9676 9677# Regexp to match symbols that can be accessed directly from C. 9678sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 9679 9680# Define system-specific variables. 9681case $host_os in 9682aix*) 9683 symcode='[BCDT]' 9684 ;; 9685cygwin* | mingw* | pw32* | cegcc*) 9686 symcode='[ABCDGISTW]' 9687 ;; 9688hpux*) 9689 if test ia64 = "$host_cpu"; then 9690 symcode='[ABCDEGRST]' 9691 fi 9692 ;; 9693irix* | nonstopux*) 9694 symcode='[BCDEGRST]' 9695 ;; 9696osf*) 9697 symcode='[BCDEGQRST]' 9698 ;; 9699solaris*) 9700 symcode='[BDRT]' 9701 ;; 9702sco3.2v5*) 9703 symcode='[DT]' 9704 ;; 9705sysv4.2uw2*) 9706 symcode='[DT]' 9707 ;; 9708sysv5* | sco5v6* | unixware* | OpenUNIX*) 9709 symcode='[ABDT]' 9710 ;; 9711sysv4) 9712 symcode='[DFNSTU]' 9713 ;; 9714esac 9715 9716# If we're using GNU nm, then use its standard symbol codes. 9717case `$NM -V 2>&1` in 9718*GNU* | *'with BFD'*) 9719 symcode='[ABCDGIRSTW]' ;; 9720esac 9721 9722if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9723 # Gets list of data symbols to import. 9724 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 9725 # Adjust the below global symbol transforms to fixup imported variables. 9726 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 9727 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 9728 lt_c_name_lib_hook="\ 9729 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 9730 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 9731else 9732 # Disable hooks by default. 9733 lt_cv_sys_global_symbol_to_import= 9734 lt_cdecl_hook= 9735 lt_c_name_hook= 9736 lt_c_name_lib_hook= 9737fi 9738 9739# Transform an extracted symbol line into a proper C declaration. 9740# Some systems (esp. on ia64) link data and code symbols differently, 9741# so use this general approach. 9742lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 9743$lt_cdecl_hook\ 9744" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 9745" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 9746 9747# Transform an extracted symbol line into symbol name and symbol address 9748lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 9749$lt_c_name_hook\ 9750" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 9751" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 9752 9753# Transform an extracted symbol line into symbol name with lib prefix and 9754# symbol address. 9755lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 9756$lt_c_name_lib_hook\ 9757" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 9758" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 9759" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 9760 9761# Handle CRLF in mingw tool chain 9762opt_cr= 9763case $build_os in 9764mingw*) 9765 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 9766 ;; 9767esac 9768 9769# Try without a prefix underscore, then with it. 9770for ac_symprfx in "" "_"; do 9771 9772 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 9773 symxfrm="\\1 $ac_symprfx\\2 \\2" 9774 9775 # Write the raw and C identifiers. 9776 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9777 # Fake it for dumpbin and say T for any non-static function, 9778 # D for any global variable and I for any imported variable. 9779 # Also find C++ and __fastcall symbols from MSVC++, 9780 # which start with @ or ?. 9781 lt_cv_sys_global_symbol_pipe="$AWK '"\ 9782" {last_section=section; section=\$ 3};"\ 9783" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 9784" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 9785" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 9786" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 9787" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 9788" \$ 0!~/External *\|/{next};"\ 9789" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 9790" {if(hide[section]) next};"\ 9791" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 9792" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 9793" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 9794" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 9795" ' prfx=^$ac_symprfx" 9796 else 9797 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 9798 fi 9799 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 9800 9801 # Check to see that the pipe works correctly. 9802 pipe_works=no 9803 9804 rm -f conftest* 9805 cat > conftest.$ac_ext <<_LT_EOF 9806#ifdef __cplusplus 9807extern "C" { 9808#endif 9809char nm_test_var; 9810void nm_test_func(void); 9811void nm_test_func(void){} 9812#ifdef __cplusplus 9813} 9814#endif 9815int main(){nm_test_var='a';nm_test_func();return(0);} 9816_LT_EOF 9817 9818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9819 (eval $ac_compile) 2>&5 9820 ac_status=$? 9821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9822 test $ac_status = 0; }; then 9823 # Now try to grab the symbols. 9824 nlist=conftest.nm 9825 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 9826 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 9827 ac_status=$? 9828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9829 test $ac_status = 0; } && test -s "$nlist"; then 9830 # Try sorting and uniquifying the output. 9831 if sort "$nlist" | uniq > "$nlist"T; then 9832 mv -f "$nlist"T "$nlist" 9833 else 9834 rm -f "$nlist"T 9835 fi 9836 9837 # Make sure that we snagged all the symbols we need. 9838 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 9839 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 9840 cat <<_LT_EOF > conftest.$ac_ext 9841/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 9842#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 9843/* DATA imports from DLLs on WIN32 can't be const, because runtime 9844 relocations are performed -- see ld's documentation on pseudo-relocs. */ 9845# define LT_DLSYM_CONST 9846#elif defined __osf__ 9847/* This system does not cope well with relocations in const data. */ 9848# define LT_DLSYM_CONST 9849#else 9850# define LT_DLSYM_CONST const 9851#endif 9852 9853#ifdef __cplusplus 9854extern "C" { 9855#endif 9856 9857_LT_EOF 9858 # Now generate the symbol file. 9859 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 9860 9861 cat <<_LT_EOF >> conftest.$ac_ext 9862 9863/* The mapping between symbol names and symbols. */ 9864LT_DLSYM_CONST struct { 9865 const char *name; 9866 void *address; 9867} 9868lt__PROGRAM__LTX_preloaded_symbols[] = 9869{ 9870 { "@PROGRAM@", (void *) 0 }, 9871_LT_EOF 9872 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 9873 cat <<\_LT_EOF >> conftest.$ac_ext 9874 {0, (void *) 0} 9875}; 9876 9877/* This works around a problem in FreeBSD linker */ 9878#ifdef FREEBSD_WORKAROUND 9879static const void *lt_preloaded_setup() { 9880 return lt__PROGRAM__LTX_preloaded_symbols; 9881} 9882#endif 9883 9884#ifdef __cplusplus 9885} 9886#endif 9887_LT_EOF 9888 # Now try linking the two files. 9889 mv conftest.$ac_objext conftstm.$ac_objext 9890 lt_globsym_save_LIBS=$LIBS 9891 lt_globsym_save_CFLAGS=$CFLAGS 9892 LIBS=conftstm.$ac_objext 9893 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 9894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 9895 (eval $ac_link) 2>&5 9896 ac_status=$? 9897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9898 test $ac_status = 0; } && test -s conftest$ac_exeext; then 9899 pipe_works=yes 9900 fi 9901 LIBS=$lt_globsym_save_LIBS 9902 CFLAGS=$lt_globsym_save_CFLAGS 9903 else 9904 echo "cannot find nm_test_func in $nlist" >&5 9905 fi 9906 else 9907 echo "cannot find nm_test_var in $nlist" >&5 9908 fi 9909 else 9910 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 9911 fi 9912 else 9913 echo "$progname: failed program was:" >&5 9914 cat conftest.$ac_ext >&5 9915 fi 9916 rm -rf conftest* conftst* 9917 9918 # Do not use the global_symbol_pipe unless it works. 9919 if test yes = "$pipe_works"; then 9920 break 9921 else 9922 lt_cv_sys_global_symbol_pipe= 9923 fi 9924done 9925 9926fi 9927 9928if test -z "$lt_cv_sys_global_symbol_pipe"; then 9929 lt_cv_sys_global_symbol_to_cdecl= 9930fi 9931if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 9933$as_echo "failed" >&6; } 9934else 9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 9936$as_echo "ok" >&6; } 9937fi 9938 9939# Response file support. 9940if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9941 nm_file_list_spec='@' 9942elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 9943 nm_file_list_spec='@' 9944fi 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 9983$as_echo_n "checking for sysroot... " >&6; } 9984 9985# Check whether --with-sysroot was given. 9986if test "${with_sysroot+set}" = set; then : 9987 withval=$with_sysroot; 9988else 9989 with_sysroot=no 9990fi 9991 9992 9993lt_sysroot= 9994case $with_sysroot in #( 9995 yes) 9996 if test yes = "$GCC"; then 9997 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 9998 fi 9999 ;; #( 10000 /*) 10001 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 10002 ;; #( 10003 no|'') 10004 ;; #( 10005 *) 10006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 10007$as_echo "$with_sysroot" >&6; } 10008 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 10009 ;; 10010esac 10011 10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 10013$as_echo "${lt_sysroot:-no}" >&6; } 10014 10015 10016 10017 10018 10019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 10020$as_echo_n "checking for a working dd... " >&6; } 10021if ${ac_cv_path_lt_DD+:} false; then : 10022 $as_echo_n "(cached) " >&6 10023else 10024 printf 0123456789abcdef0123456789abcdef >conftest.i 10025cat conftest.i conftest.i >conftest2.i 10026: ${lt_DD:=$DD} 10027if test -z "$lt_DD"; then 10028 ac_path_lt_DD_found=false 10029 # Loop through the user's path and test for each of PROGNAME-LIST 10030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10031for as_dir in $PATH 10032do 10033 IFS=$as_save_IFS 10034 test -z "$as_dir" && as_dir=. 10035 for ac_prog in dd; do 10036 for ac_exec_ext in '' $ac_executable_extensions; do 10037 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 10038 as_fn_executable_p "$ac_path_lt_DD" || continue 10039if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 10040 cmp -s conftest.i conftest.out \ 10041 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 10042fi 10043 $ac_path_lt_DD_found && break 3 10044 done 10045 done 10046 done 10047IFS=$as_save_IFS 10048 if test -z "$ac_cv_path_lt_DD"; then 10049 : 10050 fi 10051else 10052 ac_cv_path_lt_DD=$lt_DD 10053fi 10054 10055rm -f conftest.i conftest2.i conftest.out 10056fi 10057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 10058$as_echo "$ac_cv_path_lt_DD" >&6; } 10059 10060 10061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 10062$as_echo_n "checking how to truncate binary pipes... " >&6; } 10063if ${lt_cv_truncate_bin+:} false; then : 10064 $as_echo_n "(cached) " >&6 10065else 10066 printf 0123456789abcdef0123456789abcdef >conftest.i 10067cat conftest.i conftest.i >conftest2.i 10068lt_cv_truncate_bin= 10069if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 10070 cmp -s conftest.i conftest.out \ 10071 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 10072fi 10073rm -f conftest.i conftest2.i conftest.out 10074test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 10075fi 10076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 10077$as_echo "$lt_cv_truncate_bin" >&6; } 10078 10079 10080 10081 10082 10083 10084 10085# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 10086func_cc_basename () 10087{ 10088 for cc_temp in $*""; do 10089 case $cc_temp in 10090 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10091 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10092 \-*) ;; 10093 *) break;; 10094 esac 10095 done 10096 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 10097} 10098 10099# Check whether --enable-libtool-lock was given. 10100if test "${enable_libtool_lock+set}" = set; then : 10101 enableval=$enable_libtool_lock; 10102fi 10103 10104test no = "$enable_libtool_lock" || enable_libtool_lock=yes 10105 10106# Some flags need to be propagated to the compiler or linker for good 10107# libtool support. 10108case $host in 10109ia64-*-hpux*) 10110 # Find out what ABI is being produced by ac_compile, and set mode 10111 # options accordingly. 10112 echo 'int i;' > conftest.$ac_ext 10113 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10114 (eval $ac_compile) 2>&5 10115 ac_status=$? 10116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10117 test $ac_status = 0; }; then 10118 case `/usr/bin/file conftest.$ac_objext` in 10119 *ELF-32*) 10120 HPUX_IA64_MODE=32 10121 ;; 10122 *ELF-64*) 10123 HPUX_IA64_MODE=64 10124 ;; 10125 esac 10126 fi 10127 rm -rf conftest* 10128 ;; 10129*-*-irix6*) 10130 # Find out what ABI is being produced by ac_compile, and set linker 10131 # options accordingly. 10132 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 10133 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10134 (eval $ac_compile) 2>&5 10135 ac_status=$? 10136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10137 test $ac_status = 0; }; then 10138 if test yes = "$lt_cv_prog_gnu_ld"; then 10139 case `/usr/bin/file conftest.$ac_objext` in 10140 *32-bit*) 10141 LD="${LD-ld} -melf32bsmip" 10142 ;; 10143 *N32*) 10144 LD="${LD-ld} -melf32bmipn32" 10145 ;; 10146 *64-bit*) 10147 LD="${LD-ld} -melf64bmip" 10148 ;; 10149 esac 10150 else 10151 case `/usr/bin/file conftest.$ac_objext` in 10152 *32-bit*) 10153 LD="${LD-ld} -32" 10154 ;; 10155 *N32*) 10156 LD="${LD-ld} -n32" 10157 ;; 10158 *64-bit*) 10159 LD="${LD-ld} -64" 10160 ;; 10161 esac 10162 fi 10163 fi 10164 rm -rf conftest* 10165 ;; 10166 10167mips64*-*linux*) 10168 # Find out what ABI is being produced by ac_compile, and set linker 10169 # options accordingly. 10170 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 10171 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10172 (eval $ac_compile) 2>&5 10173 ac_status=$? 10174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10175 test $ac_status = 0; }; then 10176 emul=elf 10177 case `/usr/bin/file conftest.$ac_objext` in 10178 *32-bit*) 10179 emul="${emul}32" 10180 ;; 10181 *64-bit*) 10182 emul="${emul}64" 10183 ;; 10184 esac 10185 case `/usr/bin/file conftest.$ac_objext` in 10186 *MSB*) 10187 emul="${emul}btsmip" 10188 ;; 10189 *LSB*) 10190 emul="${emul}ltsmip" 10191 ;; 10192 esac 10193 case `/usr/bin/file conftest.$ac_objext` in 10194 *N32*) 10195 emul="${emul}n32" 10196 ;; 10197 esac 10198 LD="${LD-ld} -m $emul" 10199 fi 10200 rm -rf conftest* 10201 ;; 10202 10203x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 10204s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 10205 # Find out what ABI is being produced by ac_compile, and set linker 10206 # options accordingly. Note that the listed cases only cover the 10207 # situations where additional linker options are needed (such as when 10208 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 10209 # vice versa); the common cases where no linker options are needed do 10210 # not appear in the list. 10211 echo 'int i;' > conftest.$ac_ext 10212 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10213 (eval $ac_compile) 2>&5 10214 ac_status=$? 10215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10216 test $ac_status = 0; }; then 10217 case `/usr/bin/file conftest.o` in 10218 *32-bit*) 10219 case $host in 10220 x86_64-*kfreebsd*-gnu) 10221 LD="${LD-ld} -m elf_i386_fbsd" 10222 ;; 10223 x86_64-*linux*) 10224 case `/usr/bin/file conftest.o` in 10225 *x86-64*) 10226 LD="${LD-ld} -m elf32_x86_64" 10227 ;; 10228 *) 10229 LD="${LD-ld} -m elf_i386" 10230 ;; 10231 esac 10232 ;; 10233 powerpc64le-*linux*) 10234 LD="${LD-ld} -m elf32lppclinux" 10235 ;; 10236 powerpc64-*linux*) 10237 LD="${LD-ld} -m elf32ppclinux" 10238 ;; 10239 s390x-*linux*) 10240 LD="${LD-ld} -m elf_s390" 10241 ;; 10242 sparc64-*linux*) 10243 LD="${LD-ld} -m elf32_sparc" 10244 ;; 10245 esac 10246 ;; 10247 *64-bit*) 10248 case $host in 10249 x86_64-*kfreebsd*-gnu) 10250 LD="${LD-ld} -m elf_x86_64_fbsd" 10251 ;; 10252 x86_64-*linux*) 10253 LD="${LD-ld} -m elf_x86_64" 10254 ;; 10255 powerpcle-*linux*) 10256 LD="${LD-ld} -m elf64lppc" 10257 ;; 10258 powerpc-*linux*) 10259 LD="${LD-ld} -m elf64ppc" 10260 ;; 10261 s390*-*linux*|s390*-*tpf*) 10262 LD="${LD-ld} -m elf64_s390" 10263 ;; 10264 sparc*-*linux*) 10265 LD="${LD-ld} -m elf64_sparc" 10266 ;; 10267 esac 10268 ;; 10269 esac 10270 fi 10271 rm -rf conftest* 10272 ;; 10273 10274*-*-sco3.2v5*) 10275 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 10276 SAVE_CFLAGS=$CFLAGS 10277 CFLAGS="$CFLAGS -belf" 10278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 10279$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 10280if ${lt_cv_cc_needs_belf+:} false; then : 10281 $as_echo_n "(cached) " >&6 10282else 10283 ac_ext=c 10284ac_cpp='$CPP $CPPFLAGS' 10285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10287ac_compiler_gnu=$ac_cv_c_compiler_gnu 10288 10289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10290/* end confdefs.h. */ 10291 10292int 10293main () 10294{ 10295 10296 ; 10297 return 0; 10298} 10299_ACEOF 10300if ac_fn_c_try_link "$LINENO"; then : 10301 lt_cv_cc_needs_belf=yes 10302else 10303 lt_cv_cc_needs_belf=no 10304fi 10305rm -f core conftest.err conftest.$ac_objext \ 10306 conftest$ac_exeext conftest.$ac_ext 10307 ac_ext=c 10308ac_cpp='$CPP $CPPFLAGS' 10309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10311ac_compiler_gnu=$ac_cv_c_compiler_gnu 10312 10313fi 10314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 10315$as_echo "$lt_cv_cc_needs_belf" >&6; } 10316 if test yes != "$lt_cv_cc_needs_belf"; then 10317 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 10318 CFLAGS=$SAVE_CFLAGS 10319 fi 10320 ;; 10321*-*solaris*) 10322 # Find out what ABI is being produced by ac_compile, and set linker 10323 # options accordingly. 10324 echo 'int i;' > conftest.$ac_ext 10325 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10326 (eval $ac_compile) 2>&5 10327 ac_status=$? 10328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10329 test $ac_status = 0; }; then 10330 case `/usr/bin/file conftest.o` in 10331 *64-bit*) 10332 case $lt_cv_prog_gnu_ld in 10333 yes*) 10334 case $host in 10335 i?86-*-solaris*|x86_64-*-solaris*) 10336 LD="${LD-ld} -m elf_x86_64" 10337 ;; 10338 sparc*-*-solaris*) 10339 LD="${LD-ld} -m elf64_sparc" 10340 ;; 10341 esac 10342 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 10343 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 10344 LD=${LD-ld}_sol2 10345 fi 10346 ;; 10347 *) 10348 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 10349 LD="${LD-ld} -64" 10350 fi 10351 ;; 10352 esac 10353 ;; 10354 esac 10355 fi 10356 rm -rf conftest* 10357 ;; 10358esac 10359 10360need_locks=$enable_libtool_lock 10361 10362if test -n "$ac_tool_prefix"; then 10363 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 10364set dummy ${ac_tool_prefix}mt; ac_word=$2 10365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10366$as_echo_n "checking for $ac_word... " >&6; } 10367if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 10368 $as_echo_n "(cached) " >&6 10369else 10370 if test -n "$MANIFEST_TOOL"; then 10371 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 10372else 10373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10374for as_dir in $PATH 10375do 10376 IFS=$as_save_IFS 10377 test -z "$as_dir" && as_dir=. 10378 for ac_exec_ext in '' $ac_executable_extensions; do 10379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10380 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 10381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10382 break 2 10383 fi 10384done 10385 done 10386IFS=$as_save_IFS 10387 10388fi 10389fi 10390MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 10391if test -n "$MANIFEST_TOOL"; then 10392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 10393$as_echo "$MANIFEST_TOOL" >&6; } 10394else 10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10396$as_echo "no" >&6; } 10397fi 10398 10399 10400fi 10401if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 10402 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 10403 # Extract the first word of "mt", so it can be a program name with args. 10404set dummy mt; ac_word=$2 10405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10406$as_echo_n "checking for $ac_word... " >&6; } 10407if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 10408 $as_echo_n "(cached) " >&6 10409else 10410 if test -n "$ac_ct_MANIFEST_TOOL"; then 10411 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 10412else 10413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10414for as_dir in $PATH 10415do 10416 IFS=$as_save_IFS 10417 test -z "$as_dir" && as_dir=. 10418 for ac_exec_ext in '' $ac_executable_extensions; do 10419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10420 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 10421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10422 break 2 10423 fi 10424done 10425 done 10426IFS=$as_save_IFS 10427 10428fi 10429fi 10430ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 10431if test -n "$ac_ct_MANIFEST_TOOL"; then 10432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 10433$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 10434else 10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10436$as_echo "no" >&6; } 10437fi 10438 10439 if test "x$ac_ct_MANIFEST_TOOL" = x; then 10440 MANIFEST_TOOL=":" 10441 else 10442 case $cross_compiling:$ac_tool_warned in 10443yes:) 10444{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10445$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10446ac_tool_warned=yes ;; 10447esac 10448 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 10449 fi 10450else 10451 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 10452fi 10453 10454test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 10455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 10456$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 10457if ${lt_cv_path_mainfest_tool+:} false; then : 10458 $as_echo_n "(cached) " >&6 10459else 10460 lt_cv_path_mainfest_tool=no 10461 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 10462 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 10463 cat conftest.err >&5 10464 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 10465 lt_cv_path_mainfest_tool=yes 10466 fi 10467 rm -f conftest* 10468fi 10469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 10470$as_echo "$lt_cv_path_mainfest_tool" >&6; } 10471if test yes != "$lt_cv_path_mainfest_tool"; then 10472 MANIFEST_TOOL=: 10473fi 10474 10475 10476 10477 10478 10479 10480 case $host_os in 10481 rhapsody* | darwin*) 10482 if test -n "$ac_tool_prefix"; then 10483 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 10484set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 10485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10486$as_echo_n "checking for $ac_word... " >&6; } 10487if ${ac_cv_prog_DSYMUTIL+:} false; then : 10488 $as_echo_n "(cached) " >&6 10489else 10490 if test -n "$DSYMUTIL"; then 10491 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 10492else 10493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10494for as_dir in $PATH 10495do 10496 IFS=$as_save_IFS 10497 test -z "$as_dir" && as_dir=. 10498 for ac_exec_ext in '' $ac_executable_extensions; do 10499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10500 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 10501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10502 break 2 10503 fi 10504done 10505 done 10506IFS=$as_save_IFS 10507 10508fi 10509fi 10510DSYMUTIL=$ac_cv_prog_DSYMUTIL 10511if test -n "$DSYMUTIL"; then 10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 10513$as_echo "$DSYMUTIL" >&6; } 10514else 10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10516$as_echo "no" >&6; } 10517fi 10518 10519 10520fi 10521if test -z "$ac_cv_prog_DSYMUTIL"; then 10522 ac_ct_DSYMUTIL=$DSYMUTIL 10523 # Extract the first word of "dsymutil", so it can be a program name with args. 10524set dummy dsymutil; ac_word=$2 10525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10526$as_echo_n "checking for $ac_word... " >&6; } 10527if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 10528 $as_echo_n "(cached) " >&6 10529else 10530 if test -n "$ac_ct_DSYMUTIL"; then 10531 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 10532else 10533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10534for as_dir in $PATH 10535do 10536 IFS=$as_save_IFS 10537 test -z "$as_dir" && as_dir=. 10538 for ac_exec_ext in '' $ac_executable_extensions; do 10539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10540 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 10541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10542 break 2 10543 fi 10544done 10545 done 10546IFS=$as_save_IFS 10547 10548fi 10549fi 10550ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 10551if test -n "$ac_ct_DSYMUTIL"; then 10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 10553$as_echo "$ac_ct_DSYMUTIL" >&6; } 10554else 10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10556$as_echo "no" >&6; } 10557fi 10558 10559 if test "x$ac_ct_DSYMUTIL" = x; then 10560 DSYMUTIL=":" 10561 else 10562 case $cross_compiling:$ac_tool_warned in 10563yes:) 10564{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10565$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10566ac_tool_warned=yes ;; 10567esac 10568 DSYMUTIL=$ac_ct_DSYMUTIL 10569 fi 10570else 10571 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 10572fi 10573 10574 if test -n "$ac_tool_prefix"; then 10575 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 10576set dummy ${ac_tool_prefix}nmedit; ac_word=$2 10577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10578$as_echo_n "checking for $ac_word... " >&6; } 10579if ${ac_cv_prog_NMEDIT+:} false; then : 10580 $as_echo_n "(cached) " >&6 10581else 10582 if test -n "$NMEDIT"; then 10583 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 10584else 10585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10586for as_dir in $PATH 10587do 10588 IFS=$as_save_IFS 10589 test -z "$as_dir" && as_dir=. 10590 for ac_exec_ext in '' $ac_executable_extensions; do 10591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10592 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 10593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10594 break 2 10595 fi 10596done 10597 done 10598IFS=$as_save_IFS 10599 10600fi 10601fi 10602NMEDIT=$ac_cv_prog_NMEDIT 10603if test -n "$NMEDIT"; then 10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 10605$as_echo "$NMEDIT" >&6; } 10606else 10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10608$as_echo "no" >&6; } 10609fi 10610 10611 10612fi 10613if test -z "$ac_cv_prog_NMEDIT"; then 10614 ac_ct_NMEDIT=$NMEDIT 10615 # Extract the first word of "nmedit", so it can be a program name with args. 10616set dummy nmedit; ac_word=$2 10617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10618$as_echo_n "checking for $ac_word... " >&6; } 10619if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 10620 $as_echo_n "(cached) " >&6 10621else 10622 if test -n "$ac_ct_NMEDIT"; then 10623 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 10624else 10625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10626for as_dir in $PATH 10627do 10628 IFS=$as_save_IFS 10629 test -z "$as_dir" && as_dir=. 10630 for ac_exec_ext in '' $ac_executable_extensions; do 10631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10632 ac_cv_prog_ac_ct_NMEDIT="nmedit" 10633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10634 break 2 10635 fi 10636done 10637 done 10638IFS=$as_save_IFS 10639 10640fi 10641fi 10642ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 10643if test -n "$ac_ct_NMEDIT"; then 10644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 10645$as_echo "$ac_ct_NMEDIT" >&6; } 10646else 10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10648$as_echo "no" >&6; } 10649fi 10650 10651 if test "x$ac_ct_NMEDIT" = x; then 10652 NMEDIT=":" 10653 else 10654 case $cross_compiling:$ac_tool_warned in 10655yes:) 10656{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10657$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10658ac_tool_warned=yes ;; 10659esac 10660 NMEDIT=$ac_ct_NMEDIT 10661 fi 10662else 10663 NMEDIT="$ac_cv_prog_NMEDIT" 10664fi 10665 10666 if test -n "$ac_tool_prefix"; then 10667 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 10668set dummy ${ac_tool_prefix}lipo; ac_word=$2 10669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10670$as_echo_n "checking for $ac_word... " >&6; } 10671if ${ac_cv_prog_LIPO+:} false; then : 10672 $as_echo_n "(cached) " >&6 10673else 10674 if test -n "$LIPO"; then 10675 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 10676else 10677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10678for as_dir in $PATH 10679do 10680 IFS=$as_save_IFS 10681 test -z "$as_dir" && as_dir=. 10682 for ac_exec_ext in '' $ac_executable_extensions; do 10683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10684 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 10685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10686 break 2 10687 fi 10688done 10689 done 10690IFS=$as_save_IFS 10691 10692fi 10693fi 10694LIPO=$ac_cv_prog_LIPO 10695if test -n "$LIPO"; then 10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 10697$as_echo "$LIPO" >&6; } 10698else 10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10700$as_echo "no" >&6; } 10701fi 10702 10703 10704fi 10705if test -z "$ac_cv_prog_LIPO"; then 10706 ac_ct_LIPO=$LIPO 10707 # Extract the first word of "lipo", so it can be a program name with args. 10708set dummy lipo; ac_word=$2 10709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10710$as_echo_n "checking for $ac_word... " >&6; } 10711if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 10712 $as_echo_n "(cached) " >&6 10713else 10714 if test -n "$ac_ct_LIPO"; then 10715 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 10716else 10717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10718for as_dir in $PATH 10719do 10720 IFS=$as_save_IFS 10721 test -z "$as_dir" && as_dir=. 10722 for ac_exec_ext in '' $ac_executable_extensions; do 10723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10724 ac_cv_prog_ac_ct_LIPO="lipo" 10725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10726 break 2 10727 fi 10728done 10729 done 10730IFS=$as_save_IFS 10731 10732fi 10733fi 10734ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 10735if test -n "$ac_ct_LIPO"; then 10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 10737$as_echo "$ac_ct_LIPO" >&6; } 10738else 10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10740$as_echo "no" >&6; } 10741fi 10742 10743 if test "x$ac_ct_LIPO" = x; then 10744 LIPO=":" 10745 else 10746 case $cross_compiling:$ac_tool_warned in 10747yes:) 10748{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10749$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10750ac_tool_warned=yes ;; 10751esac 10752 LIPO=$ac_ct_LIPO 10753 fi 10754else 10755 LIPO="$ac_cv_prog_LIPO" 10756fi 10757 10758 if test -n "$ac_tool_prefix"; then 10759 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 10760set dummy ${ac_tool_prefix}otool; ac_word=$2 10761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10762$as_echo_n "checking for $ac_word... " >&6; } 10763if ${ac_cv_prog_OTOOL+:} false; then : 10764 $as_echo_n "(cached) " >&6 10765else 10766 if test -n "$OTOOL"; then 10767 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 10768else 10769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10770for as_dir in $PATH 10771do 10772 IFS=$as_save_IFS 10773 test -z "$as_dir" && as_dir=. 10774 for ac_exec_ext in '' $ac_executable_extensions; do 10775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10776 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 10777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10778 break 2 10779 fi 10780done 10781 done 10782IFS=$as_save_IFS 10783 10784fi 10785fi 10786OTOOL=$ac_cv_prog_OTOOL 10787if test -n "$OTOOL"; then 10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 10789$as_echo "$OTOOL" >&6; } 10790else 10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10792$as_echo "no" >&6; } 10793fi 10794 10795 10796fi 10797if test -z "$ac_cv_prog_OTOOL"; then 10798 ac_ct_OTOOL=$OTOOL 10799 # Extract the first word of "otool", so it can be a program name with args. 10800set dummy otool; ac_word=$2 10801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10802$as_echo_n "checking for $ac_word... " >&6; } 10803if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 10804 $as_echo_n "(cached) " >&6 10805else 10806 if test -n "$ac_ct_OTOOL"; then 10807 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 10808else 10809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10810for as_dir in $PATH 10811do 10812 IFS=$as_save_IFS 10813 test -z "$as_dir" && as_dir=. 10814 for ac_exec_ext in '' $ac_executable_extensions; do 10815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10816 ac_cv_prog_ac_ct_OTOOL="otool" 10817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10818 break 2 10819 fi 10820done 10821 done 10822IFS=$as_save_IFS 10823 10824fi 10825fi 10826ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 10827if test -n "$ac_ct_OTOOL"; then 10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 10829$as_echo "$ac_ct_OTOOL" >&6; } 10830else 10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10832$as_echo "no" >&6; } 10833fi 10834 10835 if test "x$ac_ct_OTOOL" = x; then 10836 OTOOL=":" 10837 else 10838 case $cross_compiling:$ac_tool_warned in 10839yes:) 10840{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10841$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10842ac_tool_warned=yes ;; 10843esac 10844 OTOOL=$ac_ct_OTOOL 10845 fi 10846else 10847 OTOOL="$ac_cv_prog_OTOOL" 10848fi 10849 10850 if test -n "$ac_tool_prefix"; then 10851 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 10852set dummy ${ac_tool_prefix}otool64; ac_word=$2 10853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10854$as_echo_n "checking for $ac_word... " >&6; } 10855if ${ac_cv_prog_OTOOL64+:} false; then : 10856 $as_echo_n "(cached) " >&6 10857else 10858 if test -n "$OTOOL64"; then 10859 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 10860else 10861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10862for as_dir in $PATH 10863do 10864 IFS=$as_save_IFS 10865 test -z "$as_dir" && as_dir=. 10866 for ac_exec_ext in '' $ac_executable_extensions; do 10867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10868 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 10869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10870 break 2 10871 fi 10872done 10873 done 10874IFS=$as_save_IFS 10875 10876fi 10877fi 10878OTOOL64=$ac_cv_prog_OTOOL64 10879if test -n "$OTOOL64"; then 10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 10881$as_echo "$OTOOL64" >&6; } 10882else 10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10884$as_echo "no" >&6; } 10885fi 10886 10887 10888fi 10889if test -z "$ac_cv_prog_OTOOL64"; then 10890 ac_ct_OTOOL64=$OTOOL64 10891 # Extract the first word of "otool64", so it can be a program name with args. 10892set dummy otool64; ac_word=$2 10893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10894$as_echo_n "checking for $ac_word... " >&6; } 10895if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 10896 $as_echo_n "(cached) " >&6 10897else 10898 if test -n "$ac_ct_OTOOL64"; then 10899 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 10900else 10901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10902for as_dir in $PATH 10903do 10904 IFS=$as_save_IFS 10905 test -z "$as_dir" && as_dir=. 10906 for ac_exec_ext in '' $ac_executable_extensions; do 10907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10908 ac_cv_prog_ac_ct_OTOOL64="otool64" 10909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10910 break 2 10911 fi 10912done 10913 done 10914IFS=$as_save_IFS 10915 10916fi 10917fi 10918ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 10919if test -n "$ac_ct_OTOOL64"; then 10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 10921$as_echo "$ac_ct_OTOOL64" >&6; } 10922else 10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10924$as_echo "no" >&6; } 10925fi 10926 10927 if test "x$ac_ct_OTOOL64" = x; then 10928 OTOOL64=":" 10929 else 10930 case $cross_compiling:$ac_tool_warned in 10931yes:) 10932{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10933$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10934ac_tool_warned=yes ;; 10935esac 10936 OTOOL64=$ac_ct_OTOOL64 10937 fi 10938else 10939 OTOOL64="$ac_cv_prog_OTOOL64" 10940fi 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 10969$as_echo_n "checking for -single_module linker flag... " >&6; } 10970if ${lt_cv_apple_cc_single_mod+:} false; then : 10971 $as_echo_n "(cached) " >&6 10972else 10973 lt_cv_apple_cc_single_mod=no 10974 if test -z "$LT_MULTI_MODULE"; then 10975 # By default we will add the -single_module flag. You can override 10976 # by either setting the environment variable LT_MULTI_MODULE 10977 # non-empty at configure time, or by adding -multi_module to the 10978 # link flags. 10979 rm -rf libconftest.dylib* 10980 echo "int foo(void){return 1;}" > conftest.c 10981 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10982-dynamiclib -Wl,-single_module conftest.c" >&5 10983 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10984 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 10985 _lt_result=$? 10986 # If there is a non-empty error log, and "single_module" 10987 # appears in it, assume the flag caused a linker warning 10988 if test -s conftest.err && $GREP single_module conftest.err; then 10989 cat conftest.err >&5 10990 # Otherwise, if the output was created with a 0 exit code from 10991 # the compiler, it worked. 10992 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 10993 lt_cv_apple_cc_single_mod=yes 10994 else 10995 cat conftest.err >&5 10996 fi 10997 rm -rf libconftest.dylib* 10998 rm -f conftest.* 10999 fi 11000fi 11001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 11002$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 11003 11004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 11005$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 11006if ${lt_cv_ld_exported_symbols_list+:} false; then : 11007 $as_echo_n "(cached) " >&6 11008else 11009 lt_cv_ld_exported_symbols_list=no 11010 save_LDFLAGS=$LDFLAGS 11011 echo "_main" > conftest.sym 11012 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 11013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11014/* end confdefs.h. */ 11015 11016int 11017main () 11018{ 11019 11020 ; 11021 return 0; 11022} 11023_ACEOF 11024if ac_fn_c_try_link "$LINENO"; then : 11025 lt_cv_ld_exported_symbols_list=yes 11026else 11027 lt_cv_ld_exported_symbols_list=no 11028fi 11029rm -f core conftest.err conftest.$ac_objext \ 11030 conftest$ac_exeext conftest.$ac_ext 11031 LDFLAGS=$save_LDFLAGS 11032 11033fi 11034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 11035$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 11036 11037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 11038$as_echo_n "checking for -force_load linker flag... " >&6; } 11039if ${lt_cv_ld_force_load+:} false; then : 11040 $as_echo_n "(cached) " >&6 11041else 11042 lt_cv_ld_force_load=no 11043 cat > conftest.c << _LT_EOF 11044int forced_loaded() { return 2;} 11045_LT_EOF 11046 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 11047 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 11048 echo "$AR cru libconftest.a conftest.o" >&5 11049 $AR cru libconftest.a conftest.o 2>&5 11050 echo "$RANLIB libconftest.a" >&5 11051 $RANLIB libconftest.a 2>&5 11052 cat > conftest.c << _LT_EOF 11053int main() { return 0;} 11054_LT_EOF 11055 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 11056 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 11057 _lt_result=$? 11058 if test -s conftest.err && $GREP force_load conftest.err; then 11059 cat conftest.err >&5 11060 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 11061 lt_cv_ld_force_load=yes 11062 else 11063 cat conftest.err >&5 11064 fi 11065 rm -f conftest.err libconftest.a conftest conftest.c 11066 rm -rf conftest.dSYM 11067 11068fi 11069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 11070$as_echo "$lt_cv_ld_force_load" >&6; } 11071 case $host_os in 11072 rhapsody* | darwin1.[012]) 11073 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 11074 darwin1.*) 11075 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 11076 darwin*) # darwin 5.x on 11077 # if running on 10.5 or later, the deployment target defaults 11078 # to the OS version, if on x86, and 10.4, the deployment 11079 # target defaults to 10.4. Don't you love it? 11080 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 11081 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 11082 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 11083 10.[012][,.]*) 11084 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 11085 10.*) 11086 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 11087 esac 11088 ;; 11089 esac 11090 if test yes = "$lt_cv_apple_cc_single_mod"; then 11091 _lt_dar_single_mod='$single_module' 11092 fi 11093 if test yes = "$lt_cv_ld_exported_symbols_list"; then 11094 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 11095 else 11096 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 11097 fi 11098 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 11099 _lt_dsymutil='~$DSYMUTIL $lib || :' 11100 else 11101 _lt_dsymutil= 11102 fi 11103 ;; 11104 esac 11105 11106# func_munge_path_list VARIABLE PATH 11107# ----------------------------------- 11108# VARIABLE is name of variable containing _space_ separated list of 11109# directories to be munged by the contents of PATH, which is string 11110# having a format: 11111# "DIR[:DIR]:" 11112# string "DIR[ DIR]" will be prepended to VARIABLE 11113# ":DIR[:DIR]" 11114# string "DIR[ DIR]" will be appended to VARIABLE 11115# "DIRP[:DIRP]::[DIRA:]DIRA" 11116# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 11117# "DIRA[ DIRA]" will be appended to VARIABLE 11118# "DIR[:DIR]" 11119# VARIABLE will be replaced by "DIR[ DIR]" 11120func_munge_path_list () 11121{ 11122 case x$2 in 11123 x) 11124 ;; 11125 *:) 11126 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 11127 ;; 11128 x:*) 11129 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 11130 ;; 11131 *::*) 11132 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 11133 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 11134 ;; 11135 *) 11136 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 11137 ;; 11138 esac 11139} 11140 11141for ac_header in dlfcn.h 11142do : 11143 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 11144" 11145if test "x$ac_cv_header_dlfcn_h" = xyes; then : 11146 cat >>confdefs.h <<_ACEOF 11147#define HAVE_DLFCN_H 1 11148_ACEOF 11149 11150fi 11151 11152done 11153 11154 11155 11156 11157 11158# Set options 11159enable_win32_dll=yes 11160 11161case $host in 11162*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 11163 if test -n "$ac_tool_prefix"; then 11164 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 11165set dummy ${ac_tool_prefix}as; ac_word=$2 11166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11167$as_echo_n "checking for $ac_word... " >&6; } 11168if ${ac_cv_prog_AS+:} false; then : 11169 $as_echo_n "(cached) " >&6 11170else 11171 if test -n "$AS"; then 11172 ac_cv_prog_AS="$AS" # Let the user override the test. 11173else 11174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11175for as_dir in $PATH 11176do 11177 IFS=$as_save_IFS 11178 test -z "$as_dir" && as_dir=. 11179 for ac_exec_ext in '' $ac_executable_extensions; do 11180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11181 ac_cv_prog_AS="${ac_tool_prefix}as" 11182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11183 break 2 11184 fi 11185done 11186 done 11187IFS=$as_save_IFS 11188 11189fi 11190fi 11191AS=$ac_cv_prog_AS 11192if test -n "$AS"; then 11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 11194$as_echo "$AS" >&6; } 11195else 11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11197$as_echo "no" >&6; } 11198fi 11199 11200 11201fi 11202if test -z "$ac_cv_prog_AS"; then 11203 ac_ct_AS=$AS 11204 # Extract the first word of "as", so it can be a program name with args. 11205set dummy as; ac_word=$2 11206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11207$as_echo_n "checking for $ac_word... " >&6; } 11208if ${ac_cv_prog_ac_ct_AS+:} false; then : 11209 $as_echo_n "(cached) " >&6 11210else 11211 if test -n "$ac_ct_AS"; then 11212 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 11213else 11214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11215for as_dir in $PATH 11216do 11217 IFS=$as_save_IFS 11218 test -z "$as_dir" && as_dir=. 11219 for ac_exec_ext in '' $ac_executable_extensions; do 11220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11221 ac_cv_prog_ac_ct_AS="as" 11222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11223 break 2 11224 fi 11225done 11226 done 11227IFS=$as_save_IFS 11228 11229fi 11230fi 11231ac_ct_AS=$ac_cv_prog_ac_ct_AS 11232if test -n "$ac_ct_AS"; then 11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 11234$as_echo "$ac_ct_AS" >&6; } 11235else 11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11237$as_echo "no" >&6; } 11238fi 11239 11240 if test "x$ac_ct_AS" = x; then 11241 AS="false" 11242 else 11243 case $cross_compiling:$ac_tool_warned in 11244yes:) 11245{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11246$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11247ac_tool_warned=yes ;; 11248esac 11249 AS=$ac_ct_AS 11250 fi 11251else 11252 AS="$ac_cv_prog_AS" 11253fi 11254 11255 if test -n "$ac_tool_prefix"; then 11256 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 11257set dummy ${ac_tool_prefix}dlltool; ac_word=$2 11258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11259$as_echo_n "checking for $ac_word... " >&6; } 11260if ${ac_cv_prog_DLLTOOL+:} false; then : 11261 $as_echo_n "(cached) " >&6 11262else 11263 if test -n "$DLLTOOL"; then 11264 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 11265else 11266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11267for as_dir in $PATH 11268do 11269 IFS=$as_save_IFS 11270 test -z "$as_dir" && as_dir=. 11271 for ac_exec_ext in '' $ac_executable_extensions; do 11272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11273 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 11274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11275 break 2 11276 fi 11277done 11278 done 11279IFS=$as_save_IFS 11280 11281fi 11282fi 11283DLLTOOL=$ac_cv_prog_DLLTOOL 11284if test -n "$DLLTOOL"; then 11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 11286$as_echo "$DLLTOOL" >&6; } 11287else 11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11289$as_echo "no" >&6; } 11290fi 11291 11292 11293fi 11294if test -z "$ac_cv_prog_DLLTOOL"; then 11295 ac_ct_DLLTOOL=$DLLTOOL 11296 # Extract the first word of "dlltool", so it can be a program name with args. 11297set dummy dlltool; ac_word=$2 11298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11299$as_echo_n "checking for $ac_word... " >&6; } 11300if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 11301 $as_echo_n "(cached) " >&6 11302else 11303 if test -n "$ac_ct_DLLTOOL"; then 11304 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 11305else 11306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11307for as_dir in $PATH 11308do 11309 IFS=$as_save_IFS 11310 test -z "$as_dir" && as_dir=. 11311 for ac_exec_ext in '' $ac_executable_extensions; do 11312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11313 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 11314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11315 break 2 11316 fi 11317done 11318 done 11319IFS=$as_save_IFS 11320 11321fi 11322fi 11323ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 11324if test -n "$ac_ct_DLLTOOL"; then 11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 11326$as_echo "$ac_ct_DLLTOOL" >&6; } 11327else 11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11329$as_echo "no" >&6; } 11330fi 11331 11332 if test "x$ac_ct_DLLTOOL" = x; then 11333 DLLTOOL="false" 11334 else 11335 case $cross_compiling:$ac_tool_warned in 11336yes:) 11337{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11338$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11339ac_tool_warned=yes ;; 11340esac 11341 DLLTOOL=$ac_ct_DLLTOOL 11342 fi 11343else 11344 DLLTOOL="$ac_cv_prog_DLLTOOL" 11345fi 11346 11347 if test -n "$ac_tool_prefix"; then 11348 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 11349set dummy ${ac_tool_prefix}objdump; ac_word=$2 11350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11351$as_echo_n "checking for $ac_word... " >&6; } 11352if ${ac_cv_prog_OBJDUMP+:} false; then : 11353 $as_echo_n "(cached) " >&6 11354else 11355 if test -n "$OBJDUMP"; then 11356 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 11357else 11358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11359for as_dir in $PATH 11360do 11361 IFS=$as_save_IFS 11362 test -z "$as_dir" && as_dir=. 11363 for ac_exec_ext in '' $ac_executable_extensions; do 11364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11365 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 11366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11367 break 2 11368 fi 11369done 11370 done 11371IFS=$as_save_IFS 11372 11373fi 11374fi 11375OBJDUMP=$ac_cv_prog_OBJDUMP 11376if test -n "$OBJDUMP"; then 11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 11378$as_echo "$OBJDUMP" >&6; } 11379else 11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11381$as_echo "no" >&6; } 11382fi 11383 11384 11385fi 11386if test -z "$ac_cv_prog_OBJDUMP"; then 11387 ac_ct_OBJDUMP=$OBJDUMP 11388 # Extract the first word of "objdump", so it can be a program name with args. 11389set dummy objdump; ac_word=$2 11390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11391$as_echo_n "checking for $ac_word... " >&6; } 11392if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 11393 $as_echo_n "(cached) " >&6 11394else 11395 if test -n "$ac_ct_OBJDUMP"; then 11396 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 11397else 11398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11399for as_dir in $PATH 11400do 11401 IFS=$as_save_IFS 11402 test -z "$as_dir" && as_dir=. 11403 for ac_exec_ext in '' $ac_executable_extensions; do 11404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11405 ac_cv_prog_ac_ct_OBJDUMP="objdump" 11406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11407 break 2 11408 fi 11409done 11410 done 11411IFS=$as_save_IFS 11412 11413fi 11414fi 11415ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 11416if test -n "$ac_ct_OBJDUMP"; then 11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 11418$as_echo "$ac_ct_OBJDUMP" >&6; } 11419else 11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11421$as_echo "no" >&6; } 11422fi 11423 11424 if test "x$ac_ct_OBJDUMP" = x; then 11425 OBJDUMP="false" 11426 else 11427 case $cross_compiling:$ac_tool_warned in 11428yes:) 11429{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11430$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11431ac_tool_warned=yes ;; 11432esac 11433 OBJDUMP=$ac_ct_OBJDUMP 11434 fi 11435else 11436 OBJDUMP="$ac_cv_prog_OBJDUMP" 11437fi 11438 11439 ;; 11440esac 11441 11442test -z "$AS" && AS=as 11443 11444 11445 11446 11447 11448test -z "$DLLTOOL" && DLLTOOL=dlltool 11449 11450 11451 11452 11453 11454test -z "$OBJDUMP" && OBJDUMP=objdump 11455 11456 11457 11458 11459 11460 11461 11462 enable_dlopen=no 11463 11464 11465 11466 # Check whether --enable-shared was given. 11467if test "${enable_shared+set}" = set; then : 11468 enableval=$enable_shared; p=${PACKAGE-default} 11469 case $enableval in 11470 yes) enable_shared=yes ;; 11471 no) enable_shared=no ;; 11472 *) 11473 enable_shared=no 11474 # Look at the argument we got. We use all the common list separators. 11475 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11476 for pkg in $enableval; do 11477 IFS=$lt_save_ifs 11478 if test "X$pkg" = "X$p"; then 11479 enable_shared=yes 11480 fi 11481 done 11482 IFS=$lt_save_ifs 11483 ;; 11484 esac 11485else 11486 enable_shared=yes 11487fi 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 # Check whether --enable-static was given. 11498if test "${enable_static+set}" = set; then : 11499 enableval=$enable_static; p=${PACKAGE-default} 11500 case $enableval in 11501 yes) enable_static=yes ;; 11502 no) enable_static=no ;; 11503 *) 11504 enable_static=no 11505 # Look at the argument we got. We use all the common list separators. 11506 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11507 for pkg in $enableval; do 11508 IFS=$lt_save_ifs 11509 if test "X$pkg" = "X$p"; then 11510 enable_static=yes 11511 fi 11512 done 11513 IFS=$lt_save_ifs 11514 ;; 11515 esac 11516else 11517 enable_static=yes 11518fi 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529# Check whether --with-pic was given. 11530if test "${with_pic+set}" = set; then : 11531 withval=$with_pic; lt_p=${PACKAGE-default} 11532 case $withval in 11533 yes|no) pic_mode=$withval ;; 11534 *) 11535 pic_mode=default 11536 # Look at the argument we got. We use all the common list separators. 11537 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11538 for lt_pkg in $withval; do 11539 IFS=$lt_save_ifs 11540 if test "X$lt_pkg" = "X$lt_p"; then 11541 pic_mode=yes 11542 fi 11543 done 11544 IFS=$lt_save_ifs 11545 ;; 11546 esac 11547else 11548 pic_mode=default 11549fi 11550 11551 11552 11553 11554 11555 11556 11557 11558 # Check whether --enable-fast-install was given. 11559if test "${enable_fast_install+set}" = set; then : 11560 enableval=$enable_fast_install; p=${PACKAGE-default} 11561 case $enableval in 11562 yes) enable_fast_install=yes ;; 11563 no) enable_fast_install=no ;; 11564 *) 11565 enable_fast_install=no 11566 # Look at the argument we got. We use all the common list separators. 11567 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11568 for pkg in $enableval; do 11569 IFS=$lt_save_ifs 11570 if test "X$pkg" = "X$p"; then 11571 enable_fast_install=yes 11572 fi 11573 done 11574 IFS=$lt_save_ifs 11575 ;; 11576 esac 11577else 11578 enable_fast_install=yes 11579fi 11580 11581 11582 11583 11584 11585 11586 11587 11588 shared_archive_member_spec= 11589case $host,$enable_shared in 11590power*-*-aix[5-9]*,yes) 11591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 11592$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 11593 11594# Check whether --with-aix-soname was given. 11595if test "${with_aix_soname+set}" = set; then : 11596 withval=$with_aix_soname; case $withval in 11597 aix|svr4|both) 11598 ;; 11599 *) 11600 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 11601 ;; 11602 esac 11603 lt_cv_with_aix_soname=$with_aix_soname 11604else 11605 if ${lt_cv_with_aix_soname+:} false; then : 11606 $as_echo_n "(cached) " >&6 11607else 11608 lt_cv_with_aix_soname=aix 11609fi 11610 11611 with_aix_soname=$lt_cv_with_aix_soname 11612fi 11613 11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 11615$as_echo "$with_aix_soname" >&6; } 11616 if test aix != "$with_aix_soname"; then 11617 # For the AIX way of multilib, we name the shared archive member 11618 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 11619 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 11620 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 11621 # the AIX toolchain works better with OBJECT_MODE set (default 32). 11622 if test 64 = "${OBJECT_MODE-32}"; then 11623 shared_archive_member_spec=shr_64 11624 else 11625 shared_archive_member_spec=shr 11626 fi 11627 fi 11628 ;; 11629*) 11630 with_aix_soname=aix 11631 ;; 11632esac 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643# This can be used to rebuild libtool when needed 11644LIBTOOL_DEPS=$ltmain 11645 11646# Always use our own libtool. 11647LIBTOOL="${CONFIG_SHELL-$SHELL} "'$(top_builddir)/libtool' 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678test -z "$LN_S" && LN_S="ln -s" 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693if test -n "${ZSH_VERSION+set}"; then 11694 setopt NO_GLOB_SUBST 11695fi 11696 11697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 11698$as_echo_n "checking for objdir... " >&6; } 11699if ${lt_cv_objdir+:} false; then : 11700 $as_echo_n "(cached) " >&6 11701else 11702 rm -f .libs 2>/dev/null 11703mkdir .libs 2>/dev/null 11704if test -d .libs; then 11705 lt_cv_objdir=.libs 11706else 11707 # MS-DOS does not allow filenames that begin with a dot. 11708 lt_cv_objdir=_libs 11709fi 11710rmdir .libs 2>/dev/null 11711fi 11712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 11713$as_echo "$lt_cv_objdir" >&6; } 11714objdir=$lt_cv_objdir 11715 11716 11717 11718 11719 11720cat >>confdefs.h <<_ACEOF 11721#define LT_OBJDIR "$lt_cv_objdir/" 11722_ACEOF 11723 11724 11725 11726 11727case $host_os in 11728aix3*) 11729 # AIX sometimes has problems with the GCC collect2 program. For some 11730 # reason, if we set the COLLECT_NAMES environment variable, the problems 11731 # vanish in a puff of smoke. 11732 if test set != "${COLLECT_NAMES+set}"; then 11733 COLLECT_NAMES= 11734 export COLLECT_NAMES 11735 fi 11736 ;; 11737esac 11738 11739# Global variables: 11740ofile=libtool 11741can_build_shared=yes 11742 11743# All known linkers require a '.a' archive for static linking (except MSVC, 11744# which needs '.lib'). 11745libext=a 11746 11747with_gnu_ld=$lt_cv_prog_gnu_ld 11748 11749old_CC=$CC 11750old_CFLAGS=$CFLAGS 11751 11752# Set sane defaults for various variables 11753test -z "$CC" && CC=cc 11754test -z "$LTCC" && LTCC=$CC 11755test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 11756test -z "$LD" && LD=ld 11757test -z "$ac_objext" && ac_objext=o 11758 11759func_cc_basename $compiler 11760cc_basename=$func_cc_basename_result 11761 11762 11763# Only perform the check for file, if the check method requires it 11764test -z "$MAGIC_CMD" && MAGIC_CMD=file 11765case $deplibs_check_method in 11766file_magic*) 11767 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 11768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 11769$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 11770if ${lt_cv_path_MAGIC_CMD+:} false; then : 11771 $as_echo_n "(cached) " >&6 11772else 11773 case $MAGIC_CMD in 11774[\\/*] | ?:[\\/]*) 11775 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 11776 ;; 11777*) 11778 lt_save_MAGIC_CMD=$MAGIC_CMD 11779 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11780 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 11781 for ac_dir in $ac_dummy; do 11782 IFS=$lt_save_ifs 11783 test -z "$ac_dir" && ac_dir=. 11784 if test -f "$ac_dir/${ac_tool_prefix}file"; then 11785 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 11786 if test -n "$file_magic_test_file"; then 11787 case $deplibs_check_method in 11788 "file_magic "*) 11789 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 11790 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11791 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 11792 $EGREP "$file_magic_regex" > /dev/null; then 11793 : 11794 else 11795 cat <<_LT_EOF 1>&2 11796 11797*** Warning: the command libtool uses to detect shared libraries, 11798*** $file_magic_cmd, produces output that libtool cannot recognize. 11799*** The result is that libtool may fail to recognize shared libraries 11800*** as such. This will affect the creation of libtool libraries that 11801*** depend on shared libraries, but programs linked with such libtool 11802*** libraries will work regardless of this problem. Nevertheless, you 11803*** may want to report the problem to your system manager and/or to 11804*** bug-libtool@gnu.org 11805 11806_LT_EOF 11807 fi ;; 11808 esac 11809 fi 11810 break 11811 fi 11812 done 11813 IFS=$lt_save_ifs 11814 MAGIC_CMD=$lt_save_MAGIC_CMD 11815 ;; 11816esac 11817fi 11818 11819MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11820if test -n "$MAGIC_CMD"; then 11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 11822$as_echo "$MAGIC_CMD" >&6; } 11823else 11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11825$as_echo "no" >&6; } 11826fi 11827 11828 11829 11830 11831 11832if test -z "$lt_cv_path_MAGIC_CMD"; then 11833 if test -n "$ac_tool_prefix"; then 11834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 11835$as_echo_n "checking for file... " >&6; } 11836if ${lt_cv_path_MAGIC_CMD+:} false; then : 11837 $as_echo_n "(cached) " >&6 11838else 11839 case $MAGIC_CMD in 11840[\\/*] | ?:[\\/]*) 11841 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 11842 ;; 11843*) 11844 lt_save_MAGIC_CMD=$MAGIC_CMD 11845 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11846 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 11847 for ac_dir in $ac_dummy; do 11848 IFS=$lt_save_ifs 11849 test -z "$ac_dir" && ac_dir=. 11850 if test -f "$ac_dir/file"; then 11851 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 11852 if test -n "$file_magic_test_file"; then 11853 case $deplibs_check_method in 11854 "file_magic "*) 11855 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 11856 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11857 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 11858 $EGREP "$file_magic_regex" > /dev/null; then 11859 : 11860 else 11861 cat <<_LT_EOF 1>&2 11862 11863*** Warning: the command libtool uses to detect shared libraries, 11864*** $file_magic_cmd, produces output that libtool cannot recognize. 11865*** The result is that libtool may fail to recognize shared libraries 11866*** as such. This will affect the creation of libtool libraries that 11867*** depend on shared libraries, but programs linked with such libtool 11868*** libraries will work regardless of this problem. Nevertheless, you 11869*** may want to report the problem to your system manager and/or to 11870*** bug-libtool@gnu.org 11871 11872_LT_EOF 11873 fi ;; 11874 esac 11875 fi 11876 break 11877 fi 11878 done 11879 IFS=$lt_save_ifs 11880 MAGIC_CMD=$lt_save_MAGIC_CMD 11881 ;; 11882esac 11883fi 11884 11885MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11886if test -n "$MAGIC_CMD"; then 11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 11888$as_echo "$MAGIC_CMD" >&6; } 11889else 11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11891$as_echo "no" >&6; } 11892fi 11893 11894 11895 else 11896 MAGIC_CMD=: 11897 fi 11898fi 11899 11900 fi 11901 ;; 11902esac 11903 11904# Use C for the default configuration in the libtool script 11905 11906lt_save_CC=$CC 11907ac_ext=c 11908ac_cpp='$CPP $CPPFLAGS' 11909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11911ac_compiler_gnu=$ac_cv_c_compiler_gnu 11912 11913 11914# Source file extension for C test sources. 11915ac_ext=c 11916 11917# Object file extension for compiled C test sources. 11918objext=o 11919objext=$objext 11920 11921# Code to be used in simple compile tests 11922lt_simple_compile_test_code="int some_variable = 0;" 11923 11924# Code to be used in simple link tests 11925lt_simple_link_test_code='int main(){return(0);}' 11926 11927 11928 11929 11930 11931 11932 11933# If no C compiler was specified, use CC. 11934LTCC=${LTCC-"$CC"} 11935 11936# If no C compiler flags were specified, use CFLAGS. 11937LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11938 11939# Allow CC to be a program name with arguments. 11940compiler=$CC 11941 11942# Save the default compiler, since it gets overwritten when the other 11943# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 11944compiler_DEFAULT=$CC 11945 11946# save warnings/boilerplate of simple test code 11947ac_outfile=conftest.$ac_objext 11948echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11949eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11950_lt_compiler_boilerplate=`cat conftest.err` 11951$RM conftest* 11952 11953ac_outfile=conftest.$ac_objext 11954echo "$lt_simple_link_test_code" >conftest.$ac_ext 11955eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11956_lt_linker_boilerplate=`cat conftest.err` 11957$RM -r conftest* 11958 11959 11960## CAVEAT EMPTOR: 11961## There is no encapsulation within the following macros, do not change 11962## the running order or otherwise move them around unless you know exactly 11963## what you are doing... 11964if test -n "$compiler"; then 11965 11966lt_prog_compiler_no_builtin_flag= 11967 11968if test yes = "$GCC"; then 11969 case $cc_basename in 11970 nvcc*) 11971 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 11972 *) 11973 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 11974 esac 11975 11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 11977$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 11978if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 11979 $as_echo_n "(cached) " >&6 11980else 11981 lt_cv_prog_compiler_rtti_exceptions=no 11982 ac_outfile=conftest.$ac_objext 11983 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11984 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 11985 # Insert the option either (1) after the last *FLAGS variable, or 11986 # (2) before a word containing "conftest.", or (3) at the end. 11987 # Note that $ac_compile itself does not contain backslashes and begins 11988 # with a dollar sign (not a hyphen), so the echo should work correctly. 11989 # The option is referenced via a variable to avoid confusing sed. 11990 lt_compile=`echo "$ac_compile" | $SED \ 11991 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11992 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11993 -e 's:$: $lt_compiler_flag:'` 11994 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11995 (eval "$lt_compile" 2>conftest.err) 11996 ac_status=$? 11997 cat conftest.err >&5 11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11999 if (exit $ac_status) && test -s "$ac_outfile"; then 12000 # The compiler can only warn and ignore the option if not recognized 12001 # So say no if there are warnings other than the usual output. 12002 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 12003 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12004 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12005 lt_cv_prog_compiler_rtti_exceptions=yes 12006 fi 12007 fi 12008 $RM conftest* 12009 12010fi 12011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 12012$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 12013 12014if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 12015 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 12016else 12017 : 12018fi 12019 12020fi 12021 12022 12023 12024 12025 12026 12027 lt_prog_compiler_wl= 12028lt_prog_compiler_pic= 12029lt_prog_compiler_static= 12030 12031 12032 if test yes = "$GCC"; then 12033 lt_prog_compiler_wl='-Wl,' 12034 lt_prog_compiler_static='-static' 12035 12036 case $host_os in 12037 aix*) 12038 # All AIX code is PIC. 12039 if test ia64 = "$host_cpu"; then 12040 # AIX 5 now supports IA64 processor 12041 lt_prog_compiler_static='-Bstatic' 12042 fi 12043 lt_prog_compiler_pic='-fPIC' 12044 ;; 12045 12046 amigaos*) 12047 case $host_cpu in 12048 powerpc) 12049 # see comment about AmigaOS4 .so support 12050 lt_prog_compiler_pic='-fPIC' 12051 ;; 12052 m68k) 12053 # FIXME: we need at least 68020 code to build shared libraries, but 12054 # adding the '-m68020' flag to GCC prevents building anything better, 12055 # like '-m68040'. 12056 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 12057 ;; 12058 esac 12059 ;; 12060 12061 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12062 # PIC is the default for these OSes. 12063 ;; 12064 12065 mingw* | cygwin* | pw32* | os2* | cegcc*) 12066 # This hack is so that the source file can tell whether it is being 12067 # built for inclusion in a dll (and should export symbols for example). 12068 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12069 # (--disable-auto-import) libraries 12070 lt_prog_compiler_pic='-DDLL_EXPORT' 12071 case $host_os in 12072 os2*) 12073 lt_prog_compiler_static='$wl-static' 12074 ;; 12075 esac 12076 ;; 12077 12078 darwin* | rhapsody*) 12079 # PIC is the default on this platform 12080 # Common symbols not allowed in MH_DYLIB files 12081 lt_prog_compiler_pic='-fno-common' 12082 ;; 12083 12084 haiku*) 12085 # PIC is the default for Haiku. 12086 # The "-static" flag exists, but is broken. 12087 lt_prog_compiler_static= 12088 ;; 12089 12090 hpux*) 12091 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 12092 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 12093 # sets the default TLS model and affects inlining. 12094 case $host_cpu in 12095 hppa*64*) 12096 # +Z the default 12097 ;; 12098 *) 12099 lt_prog_compiler_pic='-fPIC' 12100 ;; 12101 esac 12102 ;; 12103 12104 interix[3-9]*) 12105 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12106 # Instead, we relocate shared libraries at runtime. 12107 ;; 12108 12109 msdosdjgpp*) 12110 # Just because we use GCC doesn't mean we suddenly get shared libraries 12111 # on systems that don't support them. 12112 lt_prog_compiler_can_build_shared=no 12113 enable_shared=no 12114 ;; 12115 12116 *nto* | *qnx*) 12117 # QNX uses GNU C++, but need to define -shared option too, otherwise 12118 # it will coredump. 12119 lt_prog_compiler_pic='-fPIC -shared' 12120 ;; 12121 12122 sysv4*MP*) 12123 if test -d /usr/nec; then 12124 lt_prog_compiler_pic=-Kconform_pic 12125 fi 12126 ;; 12127 12128 *) 12129 lt_prog_compiler_pic='-fPIC' 12130 ;; 12131 esac 12132 12133 case $cc_basename in 12134 nvcc*) # Cuda Compiler Driver 2.2 12135 lt_prog_compiler_wl='-Xlinker ' 12136 if test -n "$lt_prog_compiler_pic"; then 12137 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 12138 fi 12139 ;; 12140 esac 12141 else 12142 # PORTME Check for flag to pass linker flags through the system compiler. 12143 case $host_os in 12144 aix*) 12145 lt_prog_compiler_wl='-Wl,' 12146 if test ia64 = "$host_cpu"; then 12147 # AIX 5 now supports IA64 processor 12148 lt_prog_compiler_static='-Bstatic' 12149 else 12150 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 12151 fi 12152 ;; 12153 12154 darwin* | rhapsody*) 12155 # PIC is the default on this platform 12156 # Common symbols not allowed in MH_DYLIB files 12157 lt_prog_compiler_pic='-fno-common' 12158 case $cc_basename in 12159 nagfor*) 12160 # NAG Fortran compiler 12161 lt_prog_compiler_wl='-Wl,-Wl,,' 12162 lt_prog_compiler_pic='-PIC' 12163 lt_prog_compiler_static='-Bstatic' 12164 ;; 12165 esac 12166 ;; 12167 12168 mingw* | cygwin* | pw32* | os2* | cegcc*) 12169 # This hack is so that the source file can tell whether it is being 12170 # built for inclusion in a dll (and should export symbols for example). 12171 lt_prog_compiler_pic='-DDLL_EXPORT' 12172 case $host_os in 12173 os2*) 12174 lt_prog_compiler_static='$wl-static' 12175 ;; 12176 esac 12177 ;; 12178 12179 hpux9* | hpux10* | hpux11*) 12180 lt_prog_compiler_wl='-Wl,' 12181 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12182 # not for PA HP-UX. 12183 case $host_cpu in 12184 hppa*64*|ia64*) 12185 # +Z the default 12186 ;; 12187 *) 12188 lt_prog_compiler_pic='+Z' 12189 ;; 12190 esac 12191 # Is there a better lt_prog_compiler_static that works with the bundled CC? 12192 lt_prog_compiler_static='$wl-a ${wl}archive' 12193 ;; 12194 12195 irix5* | irix6* | nonstopux*) 12196 lt_prog_compiler_wl='-Wl,' 12197 # PIC (with -KPIC) is the default. 12198 lt_prog_compiler_static='-non_shared' 12199 ;; 12200 12201 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12202 case $cc_basename in 12203 # old Intel for x86_64, which still supported -KPIC. 12204 ecc*) 12205 lt_prog_compiler_wl='-Wl,' 12206 lt_prog_compiler_pic='-KPIC' 12207 lt_prog_compiler_static='-static' 12208 ;; 12209 # icc used to be incompatible with GCC. 12210 # ICC 10 doesn't accept -KPIC any more. 12211 icc* | ifort*) 12212 lt_prog_compiler_wl='-Wl,' 12213 lt_prog_compiler_pic='-fPIC' 12214 lt_prog_compiler_static='-static' 12215 ;; 12216 # Lahey Fortran 8.1. 12217 lf95*) 12218 lt_prog_compiler_wl='-Wl,' 12219 lt_prog_compiler_pic='--shared' 12220 lt_prog_compiler_static='--static' 12221 ;; 12222 nagfor*) 12223 # NAG Fortran compiler 12224 lt_prog_compiler_wl='-Wl,-Wl,,' 12225 lt_prog_compiler_pic='-PIC' 12226 lt_prog_compiler_static='-Bstatic' 12227 ;; 12228 tcc*) 12229 # Fabrice Bellard et al's Tiny C Compiler 12230 lt_prog_compiler_wl='-Wl,' 12231 lt_prog_compiler_pic='-fPIC' 12232 lt_prog_compiler_static='-static' 12233 ;; 12234 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 12235 # Portland Group compilers (*not* the Pentium gcc compiler, 12236 # which looks to be a dead project) 12237 lt_prog_compiler_wl='-Wl,' 12238 lt_prog_compiler_pic='-fpic' 12239 lt_prog_compiler_static='-Bstatic' 12240 ;; 12241 ccc*) 12242 lt_prog_compiler_wl='-Wl,' 12243 # All Alpha code is PIC. 12244 lt_prog_compiler_static='-non_shared' 12245 ;; 12246 xl* | bgxl* | bgf* | mpixl*) 12247 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 12248 lt_prog_compiler_wl='-Wl,' 12249 lt_prog_compiler_pic='-qpic' 12250 lt_prog_compiler_static='-qstaticlink' 12251 ;; 12252 *) 12253 case `$CC -V 2>&1 | sed 5q` in 12254 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 12255 # Sun Fortran 8.3 passes all unrecognized flags to the linker 12256 lt_prog_compiler_pic='-KPIC' 12257 lt_prog_compiler_static='-Bstatic' 12258 lt_prog_compiler_wl='' 12259 ;; 12260 *Sun\ F* | *Sun*Fortran*) 12261 lt_prog_compiler_pic='-KPIC' 12262 lt_prog_compiler_static='-Bstatic' 12263 lt_prog_compiler_wl='-Qoption ld ' 12264 ;; 12265 *Sun\ C*) 12266 # Sun C 5.9 12267 lt_prog_compiler_pic='-KPIC' 12268 lt_prog_compiler_static='-Bstatic' 12269 lt_prog_compiler_wl='-Wl,' 12270 ;; 12271 *Intel*\ [CF]*Compiler*) 12272 lt_prog_compiler_wl='-Wl,' 12273 lt_prog_compiler_pic='-fPIC' 12274 lt_prog_compiler_static='-static' 12275 ;; 12276 *Portland\ Group*) 12277 lt_prog_compiler_wl='-Wl,' 12278 lt_prog_compiler_pic='-fpic' 12279 lt_prog_compiler_static='-Bstatic' 12280 ;; 12281 esac 12282 ;; 12283 esac 12284 ;; 12285 12286 newsos6) 12287 lt_prog_compiler_pic='-KPIC' 12288 lt_prog_compiler_static='-Bstatic' 12289 ;; 12290 12291 *nto* | *qnx*) 12292 # QNX uses GNU C++, but need to define -shared option too, otherwise 12293 # it will coredump. 12294 lt_prog_compiler_pic='-fPIC -shared' 12295 ;; 12296 12297 osf3* | osf4* | osf5*) 12298 lt_prog_compiler_wl='-Wl,' 12299 # All OSF/1 code is PIC. 12300 lt_prog_compiler_static='-non_shared' 12301 ;; 12302 12303 rdos*) 12304 lt_prog_compiler_static='-non_shared' 12305 ;; 12306 12307 solaris*) 12308 lt_prog_compiler_pic='-KPIC' 12309 lt_prog_compiler_static='-Bstatic' 12310 case $cc_basename in 12311 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 12312 lt_prog_compiler_wl='-Qoption ld ';; 12313 *) 12314 lt_prog_compiler_wl='-Wl,';; 12315 esac 12316 ;; 12317 12318 sunos4*) 12319 lt_prog_compiler_wl='-Qoption ld ' 12320 lt_prog_compiler_pic='-PIC' 12321 lt_prog_compiler_static='-Bstatic' 12322 ;; 12323 12324 sysv4 | sysv4.2uw2* | sysv4.3*) 12325 lt_prog_compiler_wl='-Wl,' 12326 lt_prog_compiler_pic='-KPIC' 12327 lt_prog_compiler_static='-Bstatic' 12328 ;; 12329 12330 sysv4*MP*) 12331 if test -d /usr/nec; then 12332 lt_prog_compiler_pic='-Kconform_pic' 12333 lt_prog_compiler_static='-Bstatic' 12334 fi 12335 ;; 12336 12337 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12338 lt_prog_compiler_wl='-Wl,' 12339 lt_prog_compiler_pic='-KPIC' 12340 lt_prog_compiler_static='-Bstatic' 12341 ;; 12342 12343 unicos*) 12344 lt_prog_compiler_wl='-Wl,' 12345 lt_prog_compiler_can_build_shared=no 12346 ;; 12347 12348 uts4*) 12349 lt_prog_compiler_pic='-pic' 12350 lt_prog_compiler_static='-Bstatic' 12351 ;; 12352 12353 *) 12354 lt_prog_compiler_can_build_shared=no 12355 ;; 12356 esac 12357 fi 12358 12359case $host_os in 12360 # For platforms that do not support PIC, -DPIC is meaningless: 12361 *djgpp*) 12362 lt_prog_compiler_pic= 12363 ;; 12364 *) 12365 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 12366 ;; 12367esac 12368 12369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 12370$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 12371if ${lt_cv_prog_compiler_pic+:} false; then : 12372 $as_echo_n "(cached) " >&6 12373else 12374 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 12375fi 12376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 12377$as_echo "$lt_cv_prog_compiler_pic" >&6; } 12378lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 12379 12380# 12381# Check to make sure the PIC flag actually works. 12382# 12383if test -n "$lt_prog_compiler_pic"; then 12384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 12385$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 12386if ${lt_cv_prog_compiler_pic_works+:} false; then : 12387 $as_echo_n "(cached) " >&6 12388else 12389 lt_cv_prog_compiler_pic_works=no 12390 ac_outfile=conftest.$ac_objext 12391 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12392 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 12393 # Insert the option either (1) after the last *FLAGS variable, or 12394 # (2) before a word containing "conftest.", or (3) at the end. 12395 # Note that $ac_compile itself does not contain backslashes and begins 12396 # with a dollar sign (not a hyphen), so the echo should work correctly. 12397 # The option is referenced via a variable to avoid confusing sed. 12398 lt_compile=`echo "$ac_compile" | $SED \ 12399 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12400 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12401 -e 's:$: $lt_compiler_flag:'` 12402 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12403 (eval "$lt_compile" 2>conftest.err) 12404 ac_status=$? 12405 cat conftest.err >&5 12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12407 if (exit $ac_status) && test -s "$ac_outfile"; then 12408 # The compiler can only warn and ignore the option if not recognized 12409 # So say no if there are warnings other than the usual output. 12410 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 12411 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12412 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12413 lt_cv_prog_compiler_pic_works=yes 12414 fi 12415 fi 12416 $RM conftest* 12417 12418fi 12419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 12420$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 12421 12422if test yes = "$lt_cv_prog_compiler_pic_works"; then 12423 case $lt_prog_compiler_pic in 12424 "" | " "*) ;; 12425 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 12426 esac 12427else 12428 lt_prog_compiler_pic= 12429 lt_prog_compiler_can_build_shared=no 12430fi 12431 12432fi 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442 12443 12444# 12445# Check to make sure the static flag actually works. 12446# 12447wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 12448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12449$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 12450if ${lt_cv_prog_compiler_static_works+:} false; then : 12451 $as_echo_n "(cached) " >&6 12452else 12453 lt_cv_prog_compiler_static_works=no 12454 save_LDFLAGS=$LDFLAGS 12455 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12456 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12457 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12458 # The linker can only warn and ignore the option if not recognized 12459 # So say no if there are warnings 12460 if test -s conftest.err; then 12461 # Append any errors to the config.log. 12462 cat conftest.err 1>&5 12463 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12464 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12465 if diff conftest.exp conftest.er2 >/dev/null; then 12466 lt_cv_prog_compiler_static_works=yes 12467 fi 12468 else 12469 lt_cv_prog_compiler_static_works=yes 12470 fi 12471 fi 12472 $RM -r conftest* 12473 LDFLAGS=$save_LDFLAGS 12474 12475fi 12476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 12477$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 12478 12479if test yes = "$lt_cv_prog_compiler_static_works"; then 12480 : 12481else 12482 lt_prog_compiler_static= 12483fi 12484 12485 12486 12487 12488 12489 12490 12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 12492$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12493if ${lt_cv_prog_compiler_c_o+:} false; then : 12494 $as_echo_n "(cached) " >&6 12495else 12496 lt_cv_prog_compiler_c_o=no 12497 $RM -r conftest 2>/dev/null 12498 mkdir conftest 12499 cd conftest 12500 mkdir out 12501 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12502 12503 lt_compiler_flag="-o out/conftest2.$ac_objext" 12504 # Insert the option either (1) after the last *FLAGS variable, or 12505 # (2) before a word containing "conftest.", or (3) at the end. 12506 # Note that $ac_compile itself does not contain backslashes and begins 12507 # with a dollar sign (not a hyphen), so the echo should work correctly. 12508 lt_compile=`echo "$ac_compile" | $SED \ 12509 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12510 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12511 -e 's:$: $lt_compiler_flag:'` 12512 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12513 (eval "$lt_compile" 2>out/conftest.err) 12514 ac_status=$? 12515 cat out/conftest.err >&5 12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12517 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12518 then 12519 # The compiler can only warn and ignore the option if not recognized 12520 # So say no if there are warnings 12521 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 12522 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12523 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12524 lt_cv_prog_compiler_c_o=yes 12525 fi 12526 fi 12527 chmod u+w . 2>&5 12528 $RM conftest* 12529 # SGI C++ compiler will create directory out/ii_files/ for 12530 # template instantiation 12531 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 12532 $RM out/* && rmdir out 12533 cd .. 12534 $RM -r conftest 12535 $RM conftest* 12536 12537fi 12538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 12539$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 12540 12541 12542 12543 12544 12545 12546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 12547$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12548if ${lt_cv_prog_compiler_c_o+:} false; then : 12549 $as_echo_n "(cached) " >&6 12550else 12551 lt_cv_prog_compiler_c_o=no 12552 $RM -r conftest 2>/dev/null 12553 mkdir conftest 12554 cd conftest 12555 mkdir out 12556 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12557 12558 lt_compiler_flag="-o out/conftest2.$ac_objext" 12559 # Insert the option either (1) after the last *FLAGS variable, or 12560 # (2) before a word containing "conftest.", or (3) at the end. 12561 # Note that $ac_compile itself does not contain backslashes and begins 12562 # with a dollar sign (not a hyphen), so the echo should work correctly. 12563 lt_compile=`echo "$ac_compile" | $SED \ 12564 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12565 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12566 -e 's:$: $lt_compiler_flag:'` 12567 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12568 (eval "$lt_compile" 2>out/conftest.err) 12569 ac_status=$? 12570 cat out/conftest.err >&5 12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12572 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12573 then 12574 # The compiler can only warn and ignore the option if not recognized 12575 # So say no if there are warnings 12576 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 12577 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12578 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12579 lt_cv_prog_compiler_c_o=yes 12580 fi 12581 fi 12582 chmod u+w . 2>&5 12583 $RM conftest* 12584 # SGI C++ compiler will create directory out/ii_files/ for 12585 # template instantiation 12586 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 12587 $RM out/* && rmdir out 12588 cd .. 12589 $RM -r conftest 12590 $RM conftest* 12591 12592fi 12593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 12594$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 12595 12596 12597 12598 12599hard_links=nottested 12600if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 12601 # do not overwrite the value of need_locks provided by the user 12602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 12603$as_echo_n "checking if we can lock with hard links... " >&6; } 12604 hard_links=yes 12605 $RM conftest* 12606 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12607 touch conftest.a 12608 ln conftest.a conftest.b 2>&5 || hard_links=no 12609 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 12611$as_echo "$hard_links" >&6; } 12612 if test no = "$hard_links"; then 12613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 12614$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 12615 need_locks=warn 12616 fi 12617else 12618 need_locks=no 12619fi 12620 12621 12622 12623 12624 12625 12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12627$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12628 12629 runpath_var= 12630 allow_undefined_flag= 12631 always_export_symbols=no 12632 archive_cmds= 12633 archive_expsym_cmds= 12634 compiler_needs_object=no 12635 enable_shared_with_static_runtimes=no 12636 export_dynamic_flag_spec= 12637 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12638 hardcode_automatic=no 12639 hardcode_direct=no 12640 hardcode_direct_absolute=no 12641 hardcode_libdir_flag_spec= 12642 hardcode_libdir_separator= 12643 hardcode_minus_L=no 12644 hardcode_shlibpath_var=unsupported 12645 inherit_rpath=no 12646 link_all_deplibs=unknown 12647 module_cmds= 12648 module_expsym_cmds= 12649 old_archive_from_new_cmds= 12650 old_archive_from_expsyms_cmds= 12651 thread_safe_flag_spec= 12652 whole_archive_flag_spec= 12653 # include_expsyms should be a list of space-separated symbols to be *always* 12654 # included in the symbol list 12655 include_expsyms= 12656 # exclude_expsyms can be an extended regexp of symbols to exclude 12657 # it will be wrapped by ' (' and ')$', so one must not match beginning or 12658 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 12659 # as well as any symbol that contains 'd'. 12660 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 12661 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 12662 # platforms (ab)use it in PIC code, but their linkers get confused if 12663 # the symbol is explicitly referenced. Since portable code cannot 12664 # rely on this symbol name, it's probably fine to never include it in 12665 # preloaded symbol tables. 12666 # Exclude shared library initialization/finalization symbols. 12667 extract_expsyms_cmds= 12668 12669 case $host_os in 12670 cygwin* | mingw* | pw32* | cegcc*) 12671 # FIXME: the MSVC++ port hasn't been tested in a loooong time 12672 # When not using gcc, we currently assume that we are using 12673 # Microsoft Visual C++. 12674 if test yes != "$GCC"; then 12675 with_gnu_ld=no 12676 fi 12677 ;; 12678 interix*) 12679 # we just hope/assume this is gcc and not c89 (= MSVC++) 12680 with_gnu_ld=yes 12681 ;; 12682 openbsd* | bitrig*) 12683 with_gnu_ld=no 12684 ;; 12685 esac 12686 12687 ld_shlibs=yes 12688 12689 # On some targets, GNU ld is compatible enough with the native linker 12690 # that we're better off using the native interface for both. 12691 lt_use_gnu_ld_interface=no 12692 if test yes = "$with_gnu_ld"; then 12693 case $host_os in 12694 aix*) 12695 # The AIX port of GNU ld has always aspired to compatibility 12696 # with the native linker. However, as the warning in the GNU ld 12697 # block says, versions before 2.19.5* couldn't really create working 12698 # shared libraries, regardless of the interface used. 12699 case `$LD -v 2>&1` in 12700 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 12701 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 12702 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 12703 *) 12704 lt_use_gnu_ld_interface=yes 12705 ;; 12706 esac 12707 ;; 12708 *) 12709 lt_use_gnu_ld_interface=yes 12710 ;; 12711 esac 12712 fi 12713 12714 if test yes = "$lt_use_gnu_ld_interface"; then 12715 # If archive_cmds runs LD, not CC, wlarc should be empty 12716 wlarc='$wl' 12717 12718 # Set some defaults for GNU ld with shared library support. These 12719 # are reset later if shared libraries are not supported. Putting them 12720 # here allows them to be overridden if necessary. 12721 runpath_var=LD_RUN_PATH 12722 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12723 export_dynamic_flag_spec='$wl--export-dynamic' 12724 # ancient GNU ld didn't support --whole-archive et. al. 12725 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 12726 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 12727 else 12728 whole_archive_flag_spec= 12729 fi 12730 supports_anon_versioning=no 12731 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 12732 *GNU\ gold*) supports_anon_versioning=yes ;; 12733 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 12734 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 12735 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 12736 *\ 2.11.*) ;; # other 2.11 versions 12737 *) supports_anon_versioning=yes ;; 12738 esac 12739 12740 # See if GNU ld supports shared libraries. 12741 case $host_os in 12742 aix[3-9]*) 12743 # On AIX/PPC, the GNU linker is very broken 12744 if test ia64 != "$host_cpu"; then 12745 ld_shlibs=no 12746 cat <<_LT_EOF 1>&2 12747 12748*** Warning: the GNU linker, at least up to release 2.19, is reported 12749*** to be unable to reliably create shared libraries on AIX. 12750*** Therefore, libtool is disabling shared libraries support. If you 12751*** really care for shared libraries, you may want to install binutils 12752*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 12753*** You will then need to restart the configuration process. 12754 12755_LT_EOF 12756 fi 12757 ;; 12758 12759 amigaos*) 12760 case $host_cpu in 12761 powerpc) 12762 # see comment about AmigaOS4 .so support 12763 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12764 archive_expsym_cmds='' 12765 ;; 12766 m68k) 12767 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)' 12768 hardcode_libdir_flag_spec='-L$libdir' 12769 hardcode_minus_L=yes 12770 ;; 12771 esac 12772 ;; 12773 12774 beos*) 12775 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12776 allow_undefined_flag=unsupported 12777 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12778 # support --undefined. This deserves some investigation. FIXME 12779 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12780 else 12781 ld_shlibs=no 12782 fi 12783 ;; 12784 12785 cygwin* | mingw* | pw32* | cegcc*) 12786 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 12787 # as there is no search path for DLLs. 12788 hardcode_libdir_flag_spec='-L$libdir' 12789 export_dynamic_flag_spec='$wl--export-all-symbols' 12790 allow_undefined_flag=unsupported 12791 always_export_symbols=no 12792 enable_shared_with_static_runtimes=yes 12793 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' 12794 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 12795 12796 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12797 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12798 # If the export-symbols file already is a .def file, use it as 12799 # is; otherwise, prepend EXPORTS... 12800 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 12801 cp $export_symbols $output_objdir/$soname.def; 12802 else 12803 echo EXPORTS > $output_objdir/$soname.def; 12804 cat $export_symbols >> $output_objdir/$soname.def; 12805 fi~ 12806 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12807 else 12808 ld_shlibs=no 12809 fi 12810 ;; 12811 12812 haiku*) 12813 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12814 link_all_deplibs=yes 12815 ;; 12816 12817 os2*) 12818 hardcode_libdir_flag_spec='-L$libdir' 12819 hardcode_minus_L=yes 12820 allow_undefined_flag=unsupported 12821 shrext_cmds=.dll 12822 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12823 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12824 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12825 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12826 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 12827 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12828 emximp -o $lib $output_objdir/$libname.def' 12829 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12830 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12831 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12832 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12833 prefix_cmds="$SED"~ 12834 if test EXPORTS = "`$SED 1q $export_symbols`"; then 12835 prefix_cmds="$prefix_cmds -e 1d"; 12836 fi~ 12837 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 12838 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 12839 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12840 emximp -o $lib $output_objdir/$libname.def' 12841 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 12842 enable_shared_with_static_runtimes=yes 12843 ;; 12844 12845 interix[3-9]*) 12846 hardcode_direct=no 12847 hardcode_shlibpath_var=no 12848 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 12849 export_dynamic_flag_spec='$wl-E' 12850 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12851 # Instead, shared libraries are loaded at an image base (0x10000000 by 12852 # default) and relocated if they conflict, which is a slow very memory 12853 # consuming and fragmenting process. To avoid this, we pick a random, 12854 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12855 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12856 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 12857 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' 12858 ;; 12859 12860 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 12861 tmp_diet=no 12862 if test linux-dietlibc = "$host_os"; then 12863 case $cc_basename in 12864 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 12865 esac 12866 fi 12867 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 12868 && test no = "$tmp_diet" 12869 then 12870 tmp_addflag=' $pic_flag' 12871 tmp_sharedflag='-shared' 12872 case $cc_basename,$host_cpu in 12873 pgcc*) # Portland Group C compiler 12874 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' 12875 tmp_addflag=' $pic_flag' 12876 ;; 12877 pgf77* | pgf90* | pgf95* | pgfortran*) 12878 # Portland Group f77 and f90 compilers 12879 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' 12880 tmp_addflag=' $pic_flag -Mnomain' ;; 12881 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 12882 tmp_addflag=' -i_dynamic' ;; 12883 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 12884 tmp_addflag=' -i_dynamic -nofor_main' ;; 12885 ifc* | ifort*) # Intel Fortran compiler 12886 tmp_addflag=' -nofor_main' ;; 12887 lf95*) # Lahey Fortran 8.1 12888 whole_archive_flag_spec= 12889 tmp_sharedflag='--shared' ;; 12890 nagfor*) # NAGFOR 5.3 12891 tmp_sharedflag='-Wl,-shared' ;; 12892 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 12893 tmp_sharedflag='-qmkshrobj' 12894 tmp_addflag= ;; 12895 nvcc*) # Cuda Compiler Driver 2.2 12896 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' 12897 compiler_needs_object=yes 12898 ;; 12899 esac 12900 case `$CC -V 2>&1 | sed 5q` in 12901 *Sun\ C*) # Sun C 5.9 12902 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' 12903 compiler_needs_object=yes 12904 tmp_sharedflag='-G' ;; 12905 *Sun\ F*) # Sun Fortran 8.3 12906 tmp_sharedflag='-G' ;; 12907 esac 12908 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12909 12910 if test yes = "$supports_anon_versioning"; then 12911 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 12912 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12913 echo "local: *; };" >> $output_objdir/$libname.ver~ 12914 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 12915 fi 12916 12917 case $cc_basename in 12918 tcc*) 12919 export_dynamic_flag_spec='-rdynamic' 12920 ;; 12921 xlf* | bgf* | bgxlf* | mpixlf*) 12922 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 12923 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 12924 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12925 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 12926 if test yes = "$supports_anon_versioning"; then 12927 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 12928 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12929 echo "local: *; };" >> $output_objdir/$libname.ver~ 12930 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 12931 fi 12932 ;; 12933 esac 12934 else 12935 ld_shlibs=no 12936 fi 12937 ;; 12938 12939 netbsd*) 12940 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12941 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 12942 wlarc= 12943 else 12944 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12945 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12946 fi 12947 ;; 12948 12949 solaris*) 12950 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 12951 ld_shlibs=no 12952 cat <<_LT_EOF 1>&2 12953 12954*** Warning: The releases 2.8.* of the GNU linker cannot reliably 12955*** create shared libraries on Solaris systems. Therefore, libtool 12956*** is disabling shared libraries support. We urge you to upgrade GNU 12957*** binutils to release 2.9.1 or newer. Another option is to modify 12958*** your PATH or compiler configuration so that the native linker is 12959*** used, and then restart. 12960 12961_LT_EOF 12962 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12963 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12964 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12965 else 12966 ld_shlibs=no 12967 fi 12968 ;; 12969 12970 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 12971 case `$LD -v 2>&1` in 12972 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 12973 ld_shlibs=no 12974 cat <<_LT_EOF 1>&2 12975 12976*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 12977*** reliably create shared libraries on SCO systems. Therefore, libtool 12978*** is disabling shared libraries support. We urge you to upgrade GNU 12979*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 12980*** your PATH or compiler configuration so that the native linker is 12981*** used, and then restart. 12982 12983_LT_EOF 12984 ;; 12985 *) 12986 # For security reasons, it is highly recommended that you always 12987 # use absolute paths for naming shared libraries, and exclude the 12988 # DT_RUNPATH tag from executables and libraries. But doing so 12989 # requires that you compile everything twice, which is a pain. 12990 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12991 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12992 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12993 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12994 else 12995 ld_shlibs=no 12996 fi 12997 ;; 12998 esac 12999 ;; 13000 13001 sunos4*) 13002 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13003 wlarc= 13004 hardcode_direct=yes 13005 hardcode_shlibpath_var=no 13006 ;; 13007 13008 *) 13009 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13010 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13011 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13012 else 13013 ld_shlibs=no 13014 fi 13015 ;; 13016 esac 13017 13018 if test no = "$ld_shlibs"; then 13019 runpath_var= 13020 hardcode_libdir_flag_spec= 13021 export_dynamic_flag_spec= 13022 whole_archive_flag_spec= 13023 fi 13024 else 13025 # PORTME fill in a description of your system's linker (not GNU ld) 13026 case $host_os in 13027 aix3*) 13028 allow_undefined_flag=unsupported 13029 always_export_symbols=yes 13030 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' 13031 # Note: this linker hardcodes the directories in LIBPATH if there 13032 # are no directories specified by -L. 13033 hardcode_minus_L=yes 13034 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 13035 # Neither direct hardcoding nor static linking is supported with a 13036 # broken collect2. 13037 hardcode_direct=unsupported 13038 fi 13039 ;; 13040 13041 aix[4-9]*) 13042 if test ia64 = "$host_cpu"; then 13043 # On IA64, the linker does run time linking by default, so we don't 13044 # have to do anything special. 13045 aix_use_runtimelinking=no 13046 exp_sym_flag='-Bexport' 13047 no_entry_flag= 13048 else 13049 # If we're using GNU nm, then we don't want the "-C" option. 13050 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 13051 # Without the "-l" option, or with the "-B" option, AIX nm treats 13052 # weak defined symbols like other global defined symbols, whereas 13053 # GNU nm marks them as "W". 13054 # While the 'weak' keyword is ignored in the Export File, we need 13055 # it in the Import File for the 'aix-soname' feature, so we have 13056 # to replace the "-B" option with "-P" for AIX nm. 13057 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 13058 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' 13059 else 13060 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' 13061 fi 13062 aix_use_runtimelinking=no 13063 13064 # Test if we are trying to use run time linking or normal 13065 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13066 # have runtime linking enabled, and use it for executables. 13067 # For shared libraries, we enable/disable runtime linking 13068 # depending on the kind of the shared library created - 13069 # when "with_aix_soname,aix_use_runtimelinking" is: 13070 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 13071 # "aix,yes" lib.so shared, rtl:yes, for executables 13072 # lib.a static archive 13073 # "both,no" lib.so.V(shr.o) shared, rtl:yes 13074 # lib.a(lib.so.V) shared, rtl:no, for executables 13075 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 13076 # lib.a(lib.so.V) shared, rtl:no 13077 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 13078 # lib.a static archive 13079 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13080 for ld_flag in $LDFLAGS; do 13081 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 13082 aix_use_runtimelinking=yes 13083 break 13084 fi 13085 done 13086 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 13087 # With aix-soname=svr4, we create the lib.so.V shared archives only, 13088 # so we don't have lib.a shared libs to link our executables. 13089 # We have to force runtime linking in this case. 13090 aix_use_runtimelinking=yes 13091 LDFLAGS="$LDFLAGS -Wl,-brtl" 13092 fi 13093 ;; 13094 esac 13095 13096 exp_sym_flag='-bexport' 13097 no_entry_flag='-bnoentry' 13098 fi 13099 13100 # When large executables or shared objects are built, AIX ld can 13101 # have problems creating the table of contents. If linking a library 13102 # or program results in "error TOC overflow" add -mminimal-toc to 13103 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13104 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13105 13106 archive_cmds='' 13107 hardcode_direct=yes 13108 hardcode_direct_absolute=yes 13109 hardcode_libdir_separator=':' 13110 link_all_deplibs=yes 13111 file_list_spec='$wl-f,' 13112 case $with_aix_soname,$aix_use_runtimelinking in 13113 aix,*) ;; # traditional, no import file 13114 svr4,* | *,yes) # use import file 13115 # The Import File defines what to hardcode. 13116 hardcode_direct=no 13117 hardcode_direct_absolute=no 13118 ;; 13119 esac 13120 13121 if test yes = "$GCC"; then 13122 case $host_os in aix4.[012]|aix4.[012].*) 13123 # We only want to do this on AIX 4.2 and lower, the check 13124 # below for broken collect2 doesn't work under 4.3+ 13125 collect2name=`$CC -print-prog-name=collect2` 13126 if test -f "$collect2name" && 13127 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13128 then 13129 # We have reworked collect2 13130 : 13131 else 13132 # We have old collect2 13133 hardcode_direct=unsupported 13134 # It fails to find uninstalled libraries when the uninstalled 13135 # path is not listed in the libpath. Setting hardcode_minus_L 13136 # to unsupported forces relinking 13137 hardcode_minus_L=yes 13138 hardcode_libdir_flag_spec='-L$libdir' 13139 hardcode_libdir_separator= 13140 fi 13141 ;; 13142 esac 13143 shared_flag='-shared' 13144 if test yes = "$aix_use_runtimelinking"; then 13145 shared_flag="$shared_flag "'$wl-G' 13146 fi 13147 # Need to ensure runtime linking is disabled for the traditional 13148 # shared library, or the linker may eventually find shared libraries 13149 # /with/ Import File - we do not want to mix them. 13150 shared_flag_aix='-shared' 13151 shared_flag_svr4='-shared $wl-G' 13152 else 13153 # not using gcc 13154 if test ia64 = "$host_cpu"; then 13155 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13156 # chokes on -Wl,-G. The following line is correct: 13157 shared_flag='-G' 13158 else 13159 if test yes = "$aix_use_runtimelinking"; then 13160 shared_flag='$wl-G' 13161 else 13162 shared_flag='$wl-bM:SRE' 13163 fi 13164 shared_flag_aix='$wl-bM:SRE' 13165 shared_flag_svr4='$wl-G' 13166 fi 13167 fi 13168 13169 export_dynamic_flag_spec='$wl-bexpall' 13170 # It seems that -bexpall does not export symbols beginning with 13171 # underscore (_), so it is better to generate a list of symbols to export. 13172 always_export_symbols=yes 13173 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 13174 # Warning - without using the other runtime loading flags (-brtl), 13175 # -berok will link without error, but may produce a broken library. 13176 allow_undefined_flag='-berok' 13177 # Determine the default libpath from the value encoded in an 13178 # empty executable. 13179 if test set = "${lt_cv_aix_libpath+set}"; then 13180 aix_libpath=$lt_cv_aix_libpath 13181else 13182 if ${lt_cv_aix_libpath_+:} false; then : 13183 $as_echo_n "(cached) " >&6 13184else 13185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13186/* end confdefs.h. */ 13187 13188int 13189main () 13190{ 13191 13192 ; 13193 return 0; 13194} 13195_ACEOF 13196if ac_fn_c_try_link "$LINENO"; then : 13197 13198 lt_aix_libpath_sed=' 13199 /Import File Strings/,/^$/ { 13200 /^0/ { 13201 s/^0 *\([^ ]*\) *$/\1/ 13202 p 13203 } 13204 }' 13205 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13206 # Check for a 64-bit object if we didn't find anything. 13207 if test -z "$lt_cv_aix_libpath_"; then 13208 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13209 fi 13210fi 13211rm -f core conftest.err conftest.$ac_objext \ 13212 conftest$ac_exeext conftest.$ac_ext 13213 if test -z "$lt_cv_aix_libpath_"; then 13214 lt_cv_aix_libpath_=/usr/lib:/lib 13215 fi 13216 13217fi 13218 13219 aix_libpath=$lt_cv_aix_libpath_ 13220fi 13221 13222 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 13223 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 13224 else 13225 if test ia64 = "$host_cpu"; then 13226 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 13227 allow_undefined_flag="-z nodefs" 13228 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" 13229 else 13230 # Determine the default libpath from the value encoded in an 13231 # empty executable. 13232 if test set = "${lt_cv_aix_libpath+set}"; then 13233 aix_libpath=$lt_cv_aix_libpath 13234else 13235 if ${lt_cv_aix_libpath_+:} false; then : 13236 $as_echo_n "(cached) " >&6 13237else 13238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13239/* end confdefs.h. */ 13240 13241int 13242main () 13243{ 13244 13245 ; 13246 return 0; 13247} 13248_ACEOF 13249if ac_fn_c_try_link "$LINENO"; then : 13250 13251 lt_aix_libpath_sed=' 13252 /Import File Strings/,/^$/ { 13253 /^0/ { 13254 s/^0 *\([^ ]*\) *$/\1/ 13255 p 13256 } 13257 }' 13258 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13259 # Check for a 64-bit object if we didn't find anything. 13260 if test -z "$lt_cv_aix_libpath_"; then 13261 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13262 fi 13263fi 13264rm -f core conftest.err conftest.$ac_objext \ 13265 conftest$ac_exeext conftest.$ac_ext 13266 if test -z "$lt_cv_aix_libpath_"; then 13267 lt_cv_aix_libpath_=/usr/lib:/lib 13268 fi 13269 13270fi 13271 13272 aix_libpath=$lt_cv_aix_libpath_ 13273fi 13274 13275 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 13276 # Warning - without using the other run time loading flags, 13277 # -berok will link without error, but may produce a broken library. 13278 no_undefined_flag=' $wl-bernotok' 13279 allow_undefined_flag=' $wl-berok' 13280 if test yes = "$with_gnu_ld"; then 13281 # We only use this code for GNU lds that support --whole-archive. 13282 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 13283 else 13284 # Exported symbols can be pulled into shared objects from archives 13285 whole_archive_flag_spec='$convenience' 13286 fi 13287 archive_cmds_need_lc=yes 13288 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 13289 # -brtl affects multiple linker settings, -berok does not and is overridden later 13290 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 13291 if test svr4 != "$with_aix_soname"; then 13292 # This is similar to how AIX traditionally builds its shared libraries. 13293 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' 13294 fi 13295 if test aix != "$with_aix_soname"; then 13296 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' 13297 else 13298 # used by -dlpreopen to get the symbols 13299 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 13300 fi 13301 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 13302 fi 13303 fi 13304 ;; 13305 13306 amigaos*) 13307 case $host_cpu in 13308 powerpc) 13309 # see comment about AmigaOS4 .so support 13310 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13311 archive_expsym_cmds='' 13312 ;; 13313 m68k) 13314 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)' 13315 hardcode_libdir_flag_spec='-L$libdir' 13316 hardcode_minus_L=yes 13317 ;; 13318 esac 13319 ;; 13320 13321 bsdi[45]*) 13322 export_dynamic_flag_spec=-rdynamic 13323 ;; 13324 13325 cygwin* | mingw* | pw32* | cegcc*) 13326 # When not using gcc, we currently assume that we are using 13327 # Microsoft Visual C++. 13328 # hardcode_libdir_flag_spec is actually meaningless, as there is 13329 # no search path for DLLs. 13330 case $cc_basename in 13331 cl*) 13332 # Native MSVC 13333 hardcode_libdir_flag_spec=' ' 13334 allow_undefined_flag=unsupported 13335 always_export_symbols=yes 13336 file_list_spec='@' 13337 # Tell ltmain to make .lib files, not .a files. 13338 libext=lib 13339 # Tell ltmain to make .dll files, not .so files. 13340 shrext_cmds=.dll 13341 # FIXME: Setting linknames here is a bad hack. 13342 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 13343 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13344 cp "$export_symbols" "$output_objdir/$soname.def"; 13345 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 13346 else 13347 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 13348 fi~ 13349 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 13350 linknames=' 13351 # The linker will not automatically build a static lib if we build a DLL. 13352 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 13353 enable_shared_with_static_runtimes=yes 13354 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 13355 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 13356 # Don't use ranlib 13357 old_postinstall_cmds='chmod 644 $oldlib' 13358 postlink_cmds='lt_outputfile="@OUTPUT@"~ 13359 lt_tool_outputfile="@TOOL_OUTPUT@"~ 13360 case $lt_outputfile in 13361 *.exe|*.EXE) ;; 13362 *) 13363 lt_outputfile=$lt_outputfile.exe 13364 lt_tool_outputfile=$lt_tool_outputfile.exe 13365 ;; 13366 esac~ 13367 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 13368 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 13369 $RM "$lt_outputfile.manifest"; 13370 fi' 13371 ;; 13372 *) 13373 # Assume MSVC wrapper 13374 hardcode_libdir_flag_spec=' ' 13375 allow_undefined_flag=unsupported 13376 # Tell ltmain to make .lib files, not .a files. 13377 libext=lib 13378 # Tell ltmain to make .dll files, not .so files. 13379 shrext_cmds=.dll 13380 # FIXME: Setting linknames here is a bad hack. 13381 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 13382 # The linker will automatically build a .lib file if we build a DLL. 13383 old_archive_from_new_cmds='true' 13384 # FIXME: Should let the user specify the lib program. 13385 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 13386 enable_shared_with_static_runtimes=yes 13387 ;; 13388 esac 13389 ;; 13390 13391 darwin* | rhapsody*) 13392 13393 13394 archive_cmds_need_lc=no 13395 hardcode_direct=no 13396 hardcode_automatic=yes 13397 hardcode_shlibpath_var=unsupported 13398 if test yes = "$lt_cv_ld_force_load"; then 13399 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\"`' 13400 13401 else 13402 whole_archive_flag_spec='' 13403 fi 13404 link_all_deplibs=yes 13405 allow_undefined_flag=$_lt_dar_allow_undefined 13406 case $cc_basename in 13407 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 13408 *) _lt_dar_can_shared=$GCC ;; 13409 esac 13410 if test yes = "$_lt_dar_can_shared"; then 13411 output_verbose_link_cmd=func_echo_all 13412 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 13413 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 13414 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" 13415 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" 13416 13417 else 13418 ld_shlibs=no 13419 fi 13420 13421 ;; 13422 13423 dgux*) 13424 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13425 hardcode_libdir_flag_spec='-L$libdir' 13426 hardcode_shlibpath_var=no 13427 ;; 13428 13429 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 13430 # support. Future versions do this automatically, but an explicit c++rt0.o 13431 # does not break anything, and helps significantly (at the cost of a little 13432 # extra space). 13433 freebsd2.2*) 13434 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 13435 hardcode_libdir_flag_spec='-R$libdir' 13436 hardcode_direct=yes 13437 hardcode_shlibpath_var=no 13438 ;; 13439 13440 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 13441 freebsd2.*) 13442 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13443 hardcode_direct=yes 13444 hardcode_minus_L=yes 13445 hardcode_shlibpath_var=no 13446 ;; 13447 13448 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 13449 freebsd* | dragonfly*) 13450 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13451 hardcode_libdir_flag_spec='-R$libdir' 13452 hardcode_direct=yes 13453 hardcode_shlibpath_var=no 13454 ;; 13455 13456 hpux9*) 13457 if test yes = "$GCC"; then 13458 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' 13459 else 13460 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' 13461 fi 13462 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 13463 hardcode_libdir_separator=: 13464 hardcode_direct=yes 13465 13466 # hardcode_minus_L: Not really in the search PATH, 13467 # but as the default location of the library. 13468 hardcode_minus_L=yes 13469 export_dynamic_flag_spec='$wl-E' 13470 ;; 13471 13472 hpux10*) 13473 if test yes,no = "$GCC,$with_gnu_ld"; then 13474 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13475 else 13476 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 13477 fi 13478 if test no = "$with_gnu_ld"; then 13479 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 13480 hardcode_libdir_separator=: 13481 hardcode_direct=yes 13482 hardcode_direct_absolute=yes 13483 export_dynamic_flag_spec='$wl-E' 13484 # hardcode_minus_L: Not really in the search PATH, 13485 # but as the default location of the library. 13486 hardcode_minus_L=yes 13487 fi 13488 ;; 13489 13490 hpux11*) 13491 if test yes,no = "$GCC,$with_gnu_ld"; then 13492 case $host_cpu in 13493 hppa*64*) 13494 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 13495 ;; 13496 ia64*) 13497 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 13498 ;; 13499 *) 13500 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13501 ;; 13502 esac 13503 else 13504 case $host_cpu in 13505 hppa*64*) 13506 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 13507 ;; 13508 ia64*) 13509 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 13510 ;; 13511 *) 13512 13513 # Older versions of the 11.00 compiler do not understand -b yet 13514 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 13515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 13516$as_echo_n "checking if $CC understands -b... " >&6; } 13517if ${lt_cv_prog_compiler__b+:} false; then : 13518 $as_echo_n "(cached) " >&6 13519else 13520 lt_cv_prog_compiler__b=no 13521 save_LDFLAGS=$LDFLAGS 13522 LDFLAGS="$LDFLAGS -b" 13523 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13524 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13525 # The linker can only warn and ignore the option if not recognized 13526 # So say no if there are warnings 13527 if test -s conftest.err; then 13528 # Append any errors to the config.log. 13529 cat conftest.err 1>&5 13530 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 13531 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13532 if diff conftest.exp conftest.er2 >/dev/null; then 13533 lt_cv_prog_compiler__b=yes 13534 fi 13535 else 13536 lt_cv_prog_compiler__b=yes 13537 fi 13538 fi 13539 $RM -r conftest* 13540 LDFLAGS=$save_LDFLAGS 13541 13542fi 13543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 13544$as_echo "$lt_cv_prog_compiler__b" >&6; } 13545 13546if test yes = "$lt_cv_prog_compiler__b"; then 13547 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13548else 13549 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 13550fi 13551 13552 ;; 13553 esac 13554 fi 13555 if test no = "$with_gnu_ld"; then 13556 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 13557 hardcode_libdir_separator=: 13558 13559 case $host_cpu in 13560 hppa*64*|ia64*) 13561 hardcode_direct=no 13562 hardcode_shlibpath_var=no 13563 ;; 13564 *) 13565 hardcode_direct=yes 13566 hardcode_direct_absolute=yes 13567 export_dynamic_flag_spec='$wl-E' 13568 13569 # hardcode_minus_L: Not really in the search PATH, 13570 # but as the default location of the library. 13571 hardcode_minus_L=yes 13572 ;; 13573 esac 13574 fi 13575 ;; 13576 13577 irix5* | irix6* | nonstopux*) 13578 if test yes = "$GCC"; then 13579 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' 13580 # Try to use the -exported_symbol ld option, if it does not 13581 # work, assume that -exports_file does not work either and 13582 # implicitly export all symbols. 13583 # This should be the same for all languages, so no per-tag cache variable. 13584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 13585$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 13586if ${lt_cv_irix_exported_symbol+:} false; then : 13587 $as_echo_n "(cached) " >&6 13588else 13589 save_LDFLAGS=$LDFLAGS 13590 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 13591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13592/* end confdefs.h. */ 13593int foo (void) { return 0; } 13594_ACEOF 13595if ac_fn_c_try_link "$LINENO"; then : 13596 lt_cv_irix_exported_symbol=yes 13597else 13598 lt_cv_irix_exported_symbol=no 13599fi 13600rm -f core conftest.err conftest.$ac_objext \ 13601 conftest$ac_exeext conftest.$ac_ext 13602 LDFLAGS=$save_LDFLAGS 13603fi 13604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 13605$as_echo "$lt_cv_irix_exported_symbol" >&6; } 13606 if test yes = "$lt_cv_irix_exported_symbol"; then 13607 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' 13608 fi 13609 else 13610 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' 13611 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' 13612 fi 13613 archive_cmds_need_lc='no' 13614 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13615 hardcode_libdir_separator=: 13616 inherit_rpath=yes 13617 link_all_deplibs=yes 13618 ;; 13619 13620 linux*) 13621 case $cc_basename in 13622 tcc*) 13623 # Fabrice Bellard et al's Tiny C Compiler 13624 ld_shlibs=yes 13625 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13626 ;; 13627 esac 13628 ;; 13629 13630 netbsd*) 13631 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13632 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 13633 else 13634 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 13635 fi 13636 hardcode_libdir_flag_spec='-R$libdir' 13637 hardcode_direct=yes 13638 hardcode_shlibpath_var=no 13639 ;; 13640 13641 newsos6) 13642 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13643 hardcode_direct=yes 13644 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13645 hardcode_libdir_separator=: 13646 hardcode_shlibpath_var=no 13647 ;; 13648 13649 *nto* | *qnx*) 13650 ;; 13651 13652 openbsd* | bitrig*) 13653 if test -f /usr/libexec/ld.so; then 13654 hardcode_direct=yes 13655 hardcode_shlibpath_var=no 13656 hardcode_direct_absolute=yes 13657 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 13658 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13659 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 13660 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 13661 export_dynamic_flag_spec='$wl-E' 13662 else 13663 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13664 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 13665 fi 13666 else 13667 ld_shlibs=no 13668 fi 13669 ;; 13670 13671 os2*) 13672 hardcode_libdir_flag_spec='-L$libdir' 13673 hardcode_minus_L=yes 13674 allow_undefined_flag=unsupported 13675 shrext_cmds=.dll 13676 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13677 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13678 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13679 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13680 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 13681 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13682 emximp -o $lib $output_objdir/$libname.def' 13683 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13684 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13685 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13686 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13687 prefix_cmds="$SED"~ 13688 if test EXPORTS = "`$SED 1q $export_symbols`"; then 13689 prefix_cmds="$prefix_cmds -e 1d"; 13690 fi~ 13691 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 13692 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 13693 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13694 emximp -o $lib $output_objdir/$libname.def' 13695 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 13696 enable_shared_with_static_runtimes=yes 13697 ;; 13698 13699 osf3*) 13700 if test yes = "$GCC"; then 13701 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 13702 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' 13703 else 13704 allow_undefined_flag=' -expect_unresolved \*' 13705 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' 13706 fi 13707 archive_cmds_need_lc='no' 13708 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13709 hardcode_libdir_separator=: 13710 ;; 13711 13712 osf4* | osf5*) # as osf3* with the addition of -msym flag 13713 if test yes = "$GCC"; then 13714 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 13715 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' 13716 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13717 else 13718 allow_undefined_flag=' -expect_unresolved \*' 13719 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' 13720 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~ 13721 $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' 13722 13723 # Both c and cxx compiler support -rpath directly 13724 hardcode_libdir_flag_spec='-rpath $libdir' 13725 fi 13726 archive_cmds_need_lc='no' 13727 hardcode_libdir_separator=: 13728 ;; 13729 13730 solaris*) 13731 no_undefined_flag=' -z defs' 13732 if test yes = "$GCC"; then 13733 wlarc='$wl' 13734 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 13735 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13736 $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' 13737 else 13738 case `$CC -V 2>&1` in 13739 *"Compilers 5.0"*) 13740 wlarc='' 13741 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 13742 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13743 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 13744 ;; 13745 *) 13746 wlarc='$wl' 13747 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 13748 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13749 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 13750 ;; 13751 esac 13752 fi 13753 hardcode_libdir_flag_spec='-R$libdir' 13754 hardcode_shlibpath_var=no 13755 case $host_os in 13756 solaris2.[0-5] | solaris2.[0-5].*) ;; 13757 *) 13758 # The compiler driver will combine and reorder linker options, 13759 # but understands '-z linker_flag'. GCC discards it without '$wl', 13760 # but is careful enough not to reorder. 13761 # Supported since Solaris 2.6 (maybe 2.5.1?) 13762 if test yes = "$GCC"; then 13763 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 13764 else 13765 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 13766 fi 13767 ;; 13768 esac 13769 link_all_deplibs=yes 13770 ;; 13771 13772 sunos4*) 13773 if test sequent = "$host_vendor"; then 13774 # Use $CC to link under sequent, because it throws in some extra .o 13775 # files that make .init and .fini sections work. 13776 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 13777 else 13778 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 13779 fi 13780 hardcode_libdir_flag_spec='-L$libdir' 13781 hardcode_direct=yes 13782 hardcode_minus_L=yes 13783 hardcode_shlibpath_var=no 13784 ;; 13785 13786 sysv4) 13787 case $host_vendor in 13788 sni) 13789 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13790 hardcode_direct=yes # is this really true??? 13791 ;; 13792 siemens) 13793 ## LD is ld it makes a PLAMLIB 13794 ## CC just makes a GrossModule. 13795 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 13796 reload_cmds='$CC -r -o $output$reload_objs' 13797 hardcode_direct=no 13798 ;; 13799 motorola) 13800 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13801 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 13802 ;; 13803 esac 13804 runpath_var='LD_RUN_PATH' 13805 hardcode_shlibpath_var=no 13806 ;; 13807 13808 sysv4.3*) 13809 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13810 hardcode_shlibpath_var=no 13811 export_dynamic_flag_spec='-Bexport' 13812 ;; 13813 13814 sysv4*MP*) 13815 if test -d /usr/nec; then 13816 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13817 hardcode_shlibpath_var=no 13818 runpath_var=LD_RUN_PATH 13819 hardcode_runpath_var=yes 13820 ld_shlibs=yes 13821 fi 13822 ;; 13823 13824 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13825 no_undefined_flag='$wl-z,text' 13826 archive_cmds_need_lc=no 13827 hardcode_shlibpath_var=no 13828 runpath_var='LD_RUN_PATH' 13829 13830 if test yes = "$GCC"; then 13831 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13832 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13833 else 13834 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13835 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13836 fi 13837 ;; 13838 13839 sysv5* | sco3.2v5* | sco5v6*) 13840 # Note: We CANNOT use -z defs as we might desire, because we do not 13841 # link with -lc, and that would cause any symbols used from libc to 13842 # always be unresolved, which means just about no library would 13843 # ever link correctly. If we're not using GNU ld we use -z text 13844 # though, which does catch some bad symbols but isn't as heavy-handed 13845 # as -z defs. 13846 no_undefined_flag='$wl-z,text' 13847 allow_undefined_flag='$wl-z,nodefs' 13848 archive_cmds_need_lc=no 13849 hardcode_shlibpath_var=no 13850 hardcode_libdir_flag_spec='$wl-R,$libdir' 13851 hardcode_libdir_separator=':' 13852 link_all_deplibs=yes 13853 export_dynamic_flag_spec='$wl-Bexport' 13854 runpath_var='LD_RUN_PATH' 13855 13856 if test yes = "$GCC"; then 13857 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13858 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13859 else 13860 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13861 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13862 fi 13863 ;; 13864 13865 uts4*) 13866 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13867 hardcode_libdir_flag_spec='-L$libdir' 13868 hardcode_shlibpath_var=no 13869 ;; 13870 13871 *) 13872 ld_shlibs=no 13873 ;; 13874 esac 13875 13876 if test sni = "$host_vendor"; then 13877 case $host in 13878 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 13879 export_dynamic_flag_spec='$wl-Blargedynsym' 13880 ;; 13881 esac 13882 fi 13883 fi 13884 13885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 13886$as_echo "$ld_shlibs" >&6; } 13887test no = "$ld_shlibs" && can_build_shared=no 13888 13889with_gnu_ld=$with_gnu_ld 13890 13891 13892 13893 13894 13895 13896 13897 13898 13899 13900 13901 13902 13903 13904 13905# 13906# Do we need to explicitly link libc? 13907# 13908case "x$archive_cmds_need_lc" in 13909x|xyes) 13910 # Assume -lc should be added 13911 archive_cmds_need_lc=yes 13912 13913 if test yes,yes = "$GCC,$enable_shared"; then 13914 case $archive_cmds in 13915 *'~'*) 13916 # FIXME: we may have to deal with multi-command sequences. 13917 ;; 13918 '$CC '*) 13919 # Test whether the compiler implicitly links with -lc since on some 13920 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13921 # to ld, don't add -lc before -lgcc. 13922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 13923$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13924if ${lt_cv_archive_cmds_need_lc+:} false; then : 13925 $as_echo_n "(cached) " >&6 13926else 13927 $RM conftest* 13928 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13929 13930 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13931 (eval $ac_compile) 2>&5 13932 ac_status=$? 13933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13934 test $ac_status = 0; } 2>conftest.err; then 13935 soname=conftest 13936 lib=conftest 13937 libobjs=conftest.$ac_objext 13938 deplibs= 13939 wl=$lt_prog_compiler_wl 13940 pic_flag=$lt_prog_compiler_pic 13941 compiler_flags=-v 13942 linker_flags=-v 13943 verstring= 13944 output_objdir=. 13945 libname=conftest 13946 lt_save_allow_undefined_flag=$allow_undefined_flag 13947 allow_undefined_flag= 13948 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 13949 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 13950 ac_status=$? 13951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13952 test $ac_status = 0; } 13953 then 13954 lt_cv_archive_cmds_need_lc=no 13955 else 13956 lt_cv_archive_cmds_need_lc=yes 13957 fi 13958 allow_undefined_flag=$lt_save_allow_undefined_flag 13959 else 13960 cat conftest.err 1>&5 13961 fi 13962 $RM conftest* 13963 13964fi 13965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 13966$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 13967 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 13968 ;; 13969 esac 13970 fi 13971 ;; 13972esac 13973 13974 13975 13976 13977 13978 13979 13980 13981 13982 13983 13984 13985 13986 13987 13988 13989 13990 13991 13992 13993 13994 13995 13996 13997 13998 13999 14000 14001 14002 14003 14004 14005 14006 14007 14008 14009 14010 14011 14012 14013 14014 14015 14016 14017 14018 14019 14020 14021 14022 14023 14024 14025 14026 14027 14028 14029 14030 14031 14032 14033 14034 14035 14036 14037 14038 14039 14040 14041 14042 14043 14044 14045 14046 14047 14048 14049 14050 14051 14052 14053 14054 14055 14056 14057 14058 14059 14060 14061 14062 14063 14064 14065 14066 14067 14068 14069 14070 14071 14072 14073 14074 14075 14076 14077 14078 14079 14080 14081 14082 14083 14084 14085 14086 14087 14088 14089 14090 14091 14092 14093 14094 14095 14096 14097 14098 14099 14100 14101 14102 14103 14104 14105 14106 14107 14108 14109 14110 14111 14112 14113 14114 14115 14116 14117 14118 14119 14120 14121 14122 14123 14124 14125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 14126$as_echo_n "checking dynamic linker characteristics... " >&6; } 14127 14128if test yes = "$GCC"; then 14129 case $host_os in 14130 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 14131 *) lt_awk_arg='/^libraries:/' ;; 14132 esac 14133 case $host_os in 14134 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 14135 *) lt_sed_strip_eq='s|=/|/|g' ;; 14136 esac 14137 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 14138 case $lt_search_path_spec in 14139 *\;*) 14140 # if the path contains ";" then we assume it to be the separator 14141 # otherwise default to the standard path separator (i.e. ":") - it is 14142 # assumed that no part of a normal pathname contains ";" but that should 14143 # okay in the real world where ";" in dirpaths is itself problematic. 14144 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 14145 ;; 14146 *) 14147 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 14148 ;; 14149 esac 14150 # Ok, now we have the path, separated by spaces, we can step through it 14151 # and add multilib dir if necessary... 14152 lt_tmp_lt_search_path_spec= 14153 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 14154 # ...but if some path component already ends with the multilib dir we assume 14155 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 14156 case "$lt_multi_os_dir; $lt_search_path_spec " in 14157 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 14158 lt_multi_os_dir= 14159 ;; 14160 esac 14161 for lt_sys_path in $lt_search_path_spec; do 14162 if test -d "$lt_sys_path$lt_multi_os_dir"; then 14163 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 14164 elif test -n "$lt_multi_os_dir"; then 14165 test -d "$lt_sys_path" && \ 14166 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 14167 fi 14168 done 14169 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 14170BEGIN {RS = " "; FS = "/|\n";} { 14171 lt_foo = ""; 14172 lt_count = 0; 14173 for (lt_i = NF; lt_i > 0; lt_i--) { 14174 if ($lt_i != "" && $lt_i != ".") { 14175 if ($lt_i == "..") { 14176 lt_count++; 14177 } else { 14178 if (lt_count == 0) { 14179 lt_foo = "/" $lt_i lt_foo; 14180 } else { 14181 lt_count--; 14182 } 14183 } 14184 } 14185 } 14186 if (lt_foo != "") { lt_freq[lt_foo]++; } 14187 if (lt_freq[lt_foo] == 1) { print lt_foo; } 14188}'` 14189 # AWK program above erroneously prepends '/' to C:/dos/paths 14190 # for these hosts. 14191 case $host_os in 14192 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 14193 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 14194 esac 14195 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 14196else 14197 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14198fi 14199library_names_spec= 14200libname_spec='lib$name' 14201soname_spec= 14202shrext_cmds=.so 14203postinstall_cmds= 14204postuninstall_cmds= 14205finish_cmds= 14206finish_eval= 14207shlibpath_var= 14208shlibpath_overrides_runpath=unknown 14209version_type=none 14210dynamic_linker="$host_os ld.so" 14211sys_lib_dlsearch_path_spec="/lib /usr/lib" 14212need_lib_prefix=unknown 14213hardcode_into_libs=no 14214 14215# when you set need_version to no, make sure it does not cause -set_version 14216# flags to be left without arguments 14217need_version=unknown 14218 14219 14220 14221case $host_os in 14222aix3*) 14223 version_type=linux # correct to gnu/linux during the next big refactor 14224 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 14225 shlibpath_var=LIBPATH 14226 14227 # AIX 3 has no versioning support, so we append a major version to the name. 14228 soname_spec='$libname$release$shared_ext$major' 14229 ;; 14230 14231aix[4-9]*) 14232 version_type=linux # correct to gnu/linux during the next big refactor 14233 need_lib_prefix=no 14234 need_version=no 14235 hardcode_into_libs=yes 14236 if test ia64 = "$host_cpu"; then 14237 # AIX 5 supports IA64 14238 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 14239 shlibpath_var=LD_LIBRARY_PATH 14240 else 14241 # With GCC up to 2.95.x, collect2 would create an import file 14242 # for dependence libraries. The import file would start with 14243 # the line '#! .'. This would cause the generated library to 14244 # depend on '.', always an invalid library. This was fixed in 14245 # development snapshots of GCC prior to 3.0. 14246 case $host_os in 14247 aix4 | aix4.[01] | aix4.[01].*) 14248 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14249 echo ' yes ' 14250 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 14251 : 14252 else 14253 can_build_shared=no 14254 fi 14255 ;; 14256 esac 14257 # Using Import Files as archive members, it is possible to support 14258 # filename-based versioning of shared library archives on AIX. While 14259 # this would work for both with and without runtime linking, it will 14260 # prevent static linking of such archives. So we do filename-based 14261 # shared library versioning with .so extension only, which is used 14262 # when both runtime linking and shared linking is enabled. 14263 # Unfortunately, runtime linking may impact performance, so we do 14264 # not want this to be the default eventually. Also, we use the 14265 # versioned .so libs for executables only if there is the -brtl 14266 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 14267 # To allow for filename-based versioning support, we need to create 14268 # libNAME.so.V as an archive file, containing: 14269 # *) an Import File, referring to the versioned filename of the 14270 # archive as well as the shared archive member, telling the 14271 # bitwidth (32 or 64) of that shared object, and providing the 14272 # list of exported symbols of that shared object, eventually 14273 # decorated with the 'weak' keyword 14274 # *) the shared object with the F_LOADONLY flag set, to really avoid 14275 # it being seen by the linker. 14276 # At run time we better use the real file rather than another symlink, 14277 # but for link time we create the symlink libNAME.so -> libNAME.so.V 14278 14279 case $with_aix_soname,$aix_use_runtimelinking in 14280 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 14281 # soname into executable. Probably we can add versioning support to 14282 # collect2, so additional links can be useful in future. 14283 aix,yes) # traditional libtool 14284 dynamic_linker='AIX unversionable lib.so' 14285 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14286 # instead of lib<name>.a to let people know that these are not 14287 # typical AIX shared libraries. 14288 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14289 ;; 14290 aix,no) # traditional AIX only 14291 dynamic_linker='AIX lib.a(lib.so.V)' 14292 # We preserve .a as extension for shared libraries through AIX4.2 14293 # and later when we are not doing run time linking. 14294 library_names_spec='$libname$release.a $libname.a' 14295 soname_spec='$libname$release$shared_ext$major' 14296 ;; 14297 svr4,*) # full svr4 only 14298 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 14299 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 14300 # We do not specify a path in Import Files, so LIBPATH fires. 14301 shlibpath_overrides_runpath=yes 14302 ;; 14303 *,yes) # both, prefer svr4 14304 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 14305 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 14306 # unpreferred sharedlib libNAME.a needs extra handling 14307 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"' 14308 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"' 14309 # We do not specify a path in Import Files, so LIBPATH fires. 14310 shlibpath_overrides_runpath=yes 14311 ;; 14312 *,no) # both, prefer aix 14313 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 14314 library_names_spec='$libname$release.a $libname.a' 14315 soname_spec='$libname$release$shared_ext$major' 14316 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 14317 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)' 14318 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"' 14319 ;; 14320 esac 14321 shlibpath_var=LIBPATH 14322 fi 14323 ;; 14324 14325amigaos*) 14326 case $host_cpu in 14327 powerpc) 14328 # Since July 2007 AmigaOS4 officially supports .so libraries. 14329 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 14330 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14331 ;; 14332 m68k) 14333 library_names_spec='$libname.ixlibrary $libname.a' 14334 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14335 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' 14336 ;; 14337 esac 14338 ;; 14339 14340beos*) 14341 library_names_spec='$libname$shared_ext' 14342 dynamic_linker="$host_os ld.so" 14343 shlibpath_var=LIBRARY_PATH 14344 ;; 14345 14346bsdi[45]*) 14347 version_type=linux # correct to gnu/linux during the next big refactor 14348 need_version=no 14349 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14350 soname_spec='$libname$release$shared_ext$major' 14351 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14352 shlibpath_var=LD_LIBRARY_PATH 14353 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14354 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14355 # the default ld.so.conf also contains /usr/contrib/lib and 14356 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14357 # libtool to hard-code these into programs 14358 ;; 14359 14360cygwin* | mingw* | pw32* | cegcc*) 14361 version_type=windows 14362 shrext_cmds=.dll 14363 need_version=no 14364 need_lib_prefix=no 14365 14366 case $GCC,$cc_basename in 14367 yes,*) 14368 # gcc 14369 library_names_spec='$libname.dll.a' 14370 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14371 postinstall_cmds='base_file=`basename \$file`~ 14372 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 14373 dldir=$destdir/`dirname \$dlpath`~ 14374 test -d \$dldir || mkdir -p \$dldir~ 14375 $install_prog $dir/$dlname \$dldir/$dlname~ 14376 chmod a+x \$dldir/$dlname~ 14377 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14378 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14379 fi' 14380 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14381 dlpath=$dir/\$dldll~ 14382 $RM \$dlpath' 14383 shlibpath_overrides_runpath=yes 14384 14385 case $host_os in 14386 cygwin*) 14387 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14388 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14389 14390 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 14391 ;; 14392 mingw* | cegcc*) 14393 # MinGW DLLs use traditional 'lib' prefix 14394 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14395 ;; 14396 pw32*) 14397 # pw32 DLLs use 'pw' prefix rather than 'lib' 14398 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14399 ;; 14400 esac 14401 dynamic_linker='Win32 ld.exe' 14402 ;; 14403 14404 *,cl*) 14405 # Native MSVC 14406 libname_spec='$name' 14407 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14408 library_names_spec='$libname.dll.lib' 14409 14410 case $build_os in 14411 mingw*) 14412 sys_lib_search_path_spec= 14413 lt_save_ifs=$IFS 14414 IFS=';' 14415 for lt_path in $LIB 14416 do 14417 IFS=$lt_save_ifs 14418 # Let DOS variable expansion print the short 8.3 style file name. 14419 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 14420 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 14421 done 14422 IFS=$lt_save_ifs 14423 # Convert to MSYS style. 14424 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 14425 ;; 14426 cygwin*) 14427 # Convert to unix form, then to dos form, then back to unix form 14428 # but this time dos style (no spaces!) so that the unix form looks 14429 # like /cygdrive/c/PROGRA~1:/cygdr... 14430 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 14431 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 14432 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14433 ;; 14434 *) 14435 sys_lib_search_path_spec=$LIB 14436 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 14437 # It is most probably a Windows format PATH. 14438 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14439 else 14440 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14441 fi 14442 # FIXME: find the short name or the path components, as spaces are 14443 # common. (e.g. "Program Files" -> "PROGRA~1") 14444 ;; 14445 esac 14446 14447 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14448 postinstall_cmds='base_file=`basename \$file`~ 14449 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 14450 dldir=$destdir/`dirname \$dlpath`~ 14451 test -d \$dldir || mkdir -p \$dldir~ 14452 $install_prog $dir/$dlname \$dldir/$dlname' 14453 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14454 dlpath=$dir/\$dldll~ 14455 $RM \$dlpath' 14456 shlibpath_overrides_runpath=yes 14457 dynamic_linker='Win32 link.exe' 14458 ;; 14459 14460 *) 14461 # Assume MSVC wrapper 14462 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 14463 dynamic_linker='Win32 ld.exe' 14464 ;; 14465 esac 14466 # FIXME: first we should search . and the directory the executable is in 14467 shlibpath_var=PATH 14468 ;; 14469 14470darwin* | rhapsody*) 14471 dynamic_linker="$host_os dyld" 14472 version_type=darwin 14473 need_lib_prefix=no 14474 need_version=no 14475 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 14476 soname_spec='$libname$release$major$shared_ext' 14477 shlibpath_overrides_runpath=yes 14478 shlibpath_var=DYLD_LIBRARY_PATH 14479 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14480 14481 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 14482 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14483 ;; 14484 14485dgux*) 14486 version_type=linux # correct to gnu/linux during the next big refactor 14487 need_lib_prefix=no 14488 need_version=no 14489 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14490 soname_spec='$libname$release$shared_ext$major' 14491 shlibpath_var=LD_LIBRARY_PATH 14492 ;; 14493 14494freebsd* | dragonfly*) 14495 # DragonFly does not have aout. When/if they implement a new 14496 # versioning mechanism, adjust this. 14497 if test -x /usr/bin/objformat; then 14498 objformat=`/usr/bin/objformat` 14499 else 14500 case $host_os in 14501 freebsd[23].*) objformat=aout ;; 14502 *) objformat=elf ;; 14503 esac 14504 fi 14505 version_type=freebsd-$objformat 14506 case $version_type in 14507 freebsd-elf*) 14508 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14509 soname_spec='$libname$release$shared_ext$major' 14510 need_version=no 14511 need_lib_prefix=no 14512 ;; 14513 freebsd-*) 14514 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14515 need_version=yes 14516 ;; 14517 esac 14518 shlibpath_var=LD_LIBRARY_PATH 14519 case $host_os in 14520 freebsd2.*) 14521 shlibpath_overrides_runpath=yes 14522 ;; 14523 freebsd3.[01]* | freebsdelf3.[01]*) 14524 shlibpath_overrides_runpath=yes 14525 hardcode_into_libs=yes 14526 ;; 14527 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14528 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14529 shlibpath_overrides_runpath=no 14530 hardcode_into_libs=yes 14531 ;; 14532 *) # from 4.6 on, and DragonFly 14533 shlibpath_overrides_runpath=yes 14534 hardcode_into_libs=yes 14535 ;; 14536 esac 14537 ;; 14538 14539haiku*) 14540 version_type=linux # correct to gnu/linux during the next big refactor 14541 need_lib_prefix=no 14542 need_version=no 14543 dynamic_linker="$host_os runtime_loader" 14544 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14545 soname_spec='$libname$release$shared_ext$major' 14546 shlibpath_var=LIBRARY_PATH 14547 shlibpath_overrides_runpath=no 14548 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 14549 hardcode_into_libs=yes 14550 ;; 14551 14552hpux9* | hpux10* | hpux11*) 14553 # Give a soname corresponding to the major version so that dld.sl refuses to 14554 # link against other versions. 14555 version_type=sunos 14556 need_lib_prefix=no 14557 need_version=no 14558 case $host_cpu in 14559 ia64*) 14560 shrext_cmds='.so' 14561 hardcode_into_libs=yes 14562 dynamic_linker="$host_os dld.so" 14563 shlibpath_var=LD_LIBRARY_PATH 14564 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14565 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14566 soname_spec='$libname$release$shared_ext$major' 14567 if test 32 = "$HPUX_IA64_MODE"; then 14568 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14569 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 14570 else 14571 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14572 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 14573 fi 14574 ;; 14575 hppa*64*) 14576 shrext_cmds='.sl' 14577 hardcode_into_libs=yes 14578 dynamic_linker="$host_os dld.sl" 14579 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14580 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14581 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14582 soname_spec='$libname$release$shared_ext$major' 14583 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14584 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14585 ;; 14586 *) 14587 shrext_cmds='.sl' 14588 dynamic_linker="$host_os dld.sl" 14589 shlibpath_var=SHLIB_PATH 14590 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14591 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14592 soname_spec='$libname$release$shared_ext$major' 14593 ;; 14594 esac 14595 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 14596 postinstall_cmds='chmod 555 $lib' 14597 # or fails outright, so override atomically: 14598 install_override_mode=555 14599 ;; 14600 14601interix[3-9]*) 14602 version_type=linux # correct to gnu/linux during the next big refactor 14603 need_lib_prefix=no 14604 need_version=no 14605 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14606 soname_spec='$libname$release$shared_ext$major' 14607 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14608 shlibpath_var=LD_LIBRARY_PATH 14609 shlibpath_overrides_runpath=no 14610 hardcode_into_libs=yes 14611 ;; 14612 14613irix5* | irix6* | nonstopux*) 14614 case $host_os in 14615 nonstopux*) version_type=nonstopux ;; 14616 *) 14617 if test yes = "$lt_cv_prog_gnu_ld"; then 14618 version_type=linux # correct to gnu/linux during the next big refactor 14619 else 14620 version_type=irix 14621 fi ;; 14622 esac 14623 need_lib_prefix=no 14624 need_version=no 14625 soname_spec='$libname$release$shared_ext$major' 14626 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 14627 case $host_os in 14628 irix5* | nonstopux*) 14629 libsuff= shlibsuff= 14630 ;; 14631 *) 14632 case $LD in # libtool.m4 will add one of these switches to LD 14633 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14634 libsuff= shlibsuff= libmagic=32-bit;; 14635 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14636 libsuff=32 shlibsuff=N32 libmagic=N32;; 14637 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14638 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14639 *) libsuff= shlibsuff= libmagic=never-match;; 14640 esac 14641 ;; 14642 esac 14643 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14644 shlibpath_overrides_runpath=no 14645 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 14646 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 14647 hardcode_into_libs=yes 14648 ;; 14649 14650# No shared lib support for Linux oldld, aout, or coff. 14651linux*oldld* | linux*aout* | linux*coff*) 14652 dynamic_linker=no 14653 ;; 14654 14655linux*android*) 14656 version_type=none # Android doesn't support versioned libraries. 14657 need_lib_prefix=no 14658 need_version=no 14659 library_names_spec='$libname$release$shared_ext' 14660 soname_spec='$libname$release$shared_ext' 14661 finish_cmds= 14662 shlibpath_var=LD_LIBRARY_PATH 14663 shlibpath_overrides_runpath=yes 14664 14665 # This implies no fast_install, which is unacceptable. 14666 # Some rework will be needed to allow for fast_install 14667 # before this can be enabled. 14668 hardcode_into_libs=yes 14669 14670 dynamic_linker='Android linker' 14671 # Don't embed -rpath directories since the linker doesn't support them. 14672 hardcode_libdir_flag_spec='-L$libdir' 14673 ;; 14674 14675# This must be glibc/ELF. 14676linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14677 version_type=linux # correct to gnu/linux during the next big refactor 14678 need_lib_prefix=no 14679 need_version=no 14680 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14681 soname_spec='$libname$release$shared_ext$major' 14682 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14683 shlibpath_var=LD_LIBRARY_PATH 14684 shlibpath_overrides_runpath=no 14685 14686 # Some binutils ld are patched to set DT_RUNPATH 14687 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 14688 $as_echo_n "(cached) " >&6 14689else 14690 lt_cv_shlibpath_overrides_runpath=no 14691 save_LDFLAGS=$LDFLAGS 14692 save_libdir=$libdir 14693 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 14694 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 14695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14696/* end confdefs.h. */ 14697 14698int 14699main () 14700{ 14701 14702 ; 14703 return 0; 14704} 14705_ACEOF 14706if ac_fn_c_try_link "$LINENO"; then : 14707 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 14708 lt_cv_shlibpath_overrides_runpath=yes 14709fi 14710fi 14711rm -f core conftest.err conftest.$ac_objext \ 14712 conftest$ac_exeext conftest.$ac_ext 14713 LDFLAGS=$save_LDFLAGS 14714 libdir=$save_libdir 14715 14716fi 14717 14718 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 14719 14720 # This implies no fast_install, which is unacceptable. 14721 # Some rework will be needed to allow for fast_install 14722 # before this can be enabled. 14723 hardcode_into_libs=yes 14724 14725 # Ideally, we could use ldconfig to report *all* directores which are 14726 # searched for libraries, however this is still not possible. Aside from not 14727 # being certain /sbin/ldconfig is available, command 14728 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 14729 # even though it is searched at run-time. Try to do the best guess by 14730 # appending ld.so.conf contents (and includes) to the search path. 14731 if test -f /etc/ld.so.conf; then 14732 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' ' '` 14733 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14734 fi 14735 14736 # We used to test for /lib/ld.so.1 and disable shared libraries on 14737 # powerpc, because MkLinux only supported shared libraries with the 14738 # GNU dynamic linker. Since this was broken with cross compilers, 14739 # most powerpc-linux boxes support dynamic linking these days and 14740 # people can always --disable-shared, the test was removed, and we 14741 # assume the GNU/Linux dynamic linker is in use. 14742 dynamic_linker='GNU/Linux ld.so' 14743 ;; 14744 14745netbsd*) 14746 version_type=sunos 14747 need_lib_prefix=no 14748 need_version=no 14749 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14750 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14751 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14752 dynamic_linker='NetBSD (a.out) ld.so' 14753 else 14754 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14755 soname_spec='$libname$release$shared_ext$major' 14756 dynamic_linker='NetBSD ld.elf_so' 14757 fi 14758 shlibpath_var=LD_LIBRARY_PATH 14759 shlibpath_overrides_runpath=yes 14760 hardcode_into_libs=yes 14761 ;; 14762 14763newsos6) 14764 version_type=linux # correct to gnu/linux during the next big refactor 14765 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14766 shlibpath_var=LD_LIBRARY_PATH 14767 shlibpath_overrides_runpath=yes 14768 ;; 14769 14770*nto* | *qnx*) 14771 version_type=qnx 14772 need_lib_prefix=no 14773 need_version=no 14774 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14775 soname_spec='$libname$release$shared_ext$major' 14776 shlibpath_var=LD_LIBRARY_PATH 14777 shlibpath_overrides_runpath=no 14778 hardcode_into_libs=yes 14779 dynamic_linker='ldqnx.so' 14780 ;; 14781 14782openbsd* | bitrig*) 14783 version_type=sunos 14784 sys_lib_dlsearch_path_spec=/usr/lib 14785 need_lib_prefix=no 14786 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 14787 need_version=no 14788 else 14789 need_version=yes 14790 fi 14791 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14792 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14793 shlibpath_var=LD_LIBRARY_PATH 14794 shlibpath_overrides_runpath=yes 14795 ;; 14796 14797os2*) 14798 libname_spec='$name' 14799 version_type=windows 14800 shrext_cmds=.dll 14801 need_version=no 14802 need_lib_prefix=no 14803 # OS/2 can only load a DLL with a base name of 8 characters or less. 14804 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 14805 v=$($ECHO $release$versuffix | tr -d .-); 14806 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 14807 $ECHO $n$v`$shared_ext' 14808 library_names_spec='${libname}_dll.$libext' 14809 dynamic_linker='OS/2 ld.exe' 14810 shlibpath_var=BEGINLIBPATH 14811 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14812 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14813 postinstall_cmds='base_file=`basename \$file`~ 14814 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 14815 dldir=$destdir/`dirname \$dlpath`~ 14816 test -d \$dldir || mkdir -p \$dldir~ 14817 $install_prog $dir/$dlname \$dldir/$dlname~ 14818 chmod a+x \$dldir/$dlname~ 14819 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14820 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14821 fi' 14822 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 14823 dlpath=$dir/\$dldll~ 14824 $RM \$dlpath' 14825 ;; 14826 14827osf3* | osf4* | osf5*) 14828 version_type=osf 14829 need_lib_prefix=no 14830 need_version=no 14831 soname_spec='$libname$release$shared_ext$major' 14832 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14833 shlibpath_var=LD_LIBRARY_PATH 14834 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14835 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14836 ;; 14837 14838rdos*) 14839 dynamic_linker=no 14840 ;; 14841 14842solaris*) 14843 version_type=linux # correct to gnu/linux during the next big refactor 14844 need_lib_prefix=no 14845 need_version=no 14846 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14847 soname_spec='$libname$release$shared_ext$major' 14848 shlibpath_var=LD_LIBRARY_PATH 14849 shlibpath_overrides_runpath=yes 14850 hardcode_into_libs=yes 14851 # ldd complains unless libraries are executable 14852 postinstall_cmds='chmod +x $lib' 14853 ;; 14854 14855sunos4*) 14856 version_type=sunos 14857 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14858 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14859 shlibpath_var=LD_LIBRARY_PATH 14860 shlibpath_overrides_runpath=yes 14861 if test yes = "$with_gnu_ld"; then 14862 need_lib_prefix=no 14863 fi 14864 need_version=yes 14865 ;; 14866 14867sysv4 | sysv4.3*) 14868 version_type=linux # correct to gnu/linux during the next big refactor 14869 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14870 soname_spec='$libname$release$shared_ext$major' 14871 shlibpath_var=LD_LIBRARY_PATH 14872 case $host_vendor in 14873 sni) 14874 shlibpath_overrides_runpath=no 14875 need_lib_prefix=no 14876 runpath_var=LD_RUN_PATH 14877 ;; 14878 siemens) 14879 need_lib_prefix=no 14880 ;; 14881 motorola) 14882 need_lib_prefix=no 14883 need_version=no 14884 shlibpath_overrides_runpath=no 14885 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14886 ;; 14887 esac 14888 ;; 14889 14890sysv4*MP*) 14891 if test -d /usr/nec; then 14892 version_type=linux # correct to gnu/linux during the next big refactor 14893 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 14894 soname_spec='$libname$shared_ext.$major' 14895 shlibpath_var=LD_LIBRARY_PATH 14896 fi 14897 ;; 14898 14899sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14900 version_type=sco 14901 need_lib_prefix=no 14902 need_version=no 14903 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 14904 soname_spec='$libname$release$shared_ext$major' 14905 shlibpath_var=LD_LIBRARY_PATH 14906 shlibpath_overrides_runpath=yes 14907 hardcode_into_libs=yes 14908 if test yes = "$with_gnu_ld"; then 14909 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14910 else 14911 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14912 case $host_os in 14913 sco3.2v5*) 14914 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14915 ;; 14916 esac 14917 fi 14918 sys_lib_dlsearch_path_spec='/usr/lib' 14919 ;; 14920 14921tpf*) 14922 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 14923 version_type=linux # correct to gnu/linux during the next big refactor 14924 need_lib_prefix=no 14925 need_version=no 14926 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14927 shlibpath_var=LD_LIBRARY_PATH 14928 shlibpath_overrides_runpath=no 14929 hardcode_into_libs=yes 14930 ;; 14931 14932uts4*) 14933 version_type=linux # correct to gnu/linux during the next big refactor 14934 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14935 soname_spec='$libname$release$shared_ext$major' 14936 shlibpath_var=LD_LIBRARY_PATH 14937 ;; 14938 14939*) 14940 dynamic_linker=no 14941 ;; 14942esac 14943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 14944$as_echo "$dynamic_linker" >&6; } 14945test no = "$dynamic_linker" && can_build_shared=no 14946 14947variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14948if test yes = "$GCC"; then 14949 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14950fi 14951 14952if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 14953 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 14954fi 14955 14956if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 14957 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 14958fi 14959 14960# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 14961configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 14962 14963# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 14964func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 14965 14966# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 14967configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 14968 14969 14970 14971 14972 14973 14974 14975 14976 14977 14978 14979 14980 14981 14982 14983 14984 14985 14986 14987 14988 14989 14990 14991 14992 14993 14994 14995 14996 14997 14998 14999 15000 15001 15002 15003 15004 15005 15006 15007 15008 15009 15010 15011 15012 15013 15014 15015 15016 15017 15018 15019 15020 15021 15022 15023 15024 15025 15026 15027 15028 15029 15030 15031 15032 15033 15034 15035 15036 15037 15038 15039 15040 15041 15042 15043 15044 15045 15046 15047 15048 15049 15050 15051 15052 15053 15054 15055 15056 15057 15058 15059 15060 15061 15062 15063 15064 15065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15066$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15067hardcode_action= 15068if test -n "$hardcode_libdir_flag_spec" || 15069 test -n "$runpath_var" || 15070 test yes = "$hardcode_automatic"; then 15071 15072 # We can hardcode non-existent directories. 15073 if test no != "$hardcode_direct" && 15074 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15075 # have to relink, otherwise we might link with an installed library 15076 # when we should be linking with a yet-to-be-installed one 15077 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 15078 test no != "$hardcode_minus_L"; then 15079 # Linking always hardcodes the temporary library directory. 15080 hardcode_action=relink 15081 else 15082 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15083 hardcode_action=immediate 15084 fi 15085else 15086 # We cannot hardcode anything, or else we can only hardcode existing 15087 # directories. 15088 hardcode_action=unsupported 15089fi 15090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 15091$as_echo "$hardcode_action" >&6; } 15092 15093if test relink = "$hardcode_action" || 15094 test yes = "$inherit_rpath"; then 15095 # Fast installation is not supported 15096 enable_fast_install=no 15097elif test yes = "$shlibpath_overrides_runpath" || 15098 test no = "$enable_shared"; then 15099 # Fast installation is not necessary 15100 enable_fast_install=needless 15101fi 15102 15103 15104 15105 15106 15107 15108 if test yes != "$enable_dlopen"; then 15109 enable_dlopen=unknown 15110 enable_dlopen_self=unknown 15111 enable_dlopen_self_static=unknown 15112else 15113 lt_cv_dlopen=no 15114 lt_cv_dlopen_libs= 15115 15116 case $host_os in 15117 beos*) 15118 lt_cv_dlopen=load_add_on 15119 lt_cv_dlopen_libs= 15120 lt_cv_dlopen_self=yes 15121 ;; 15122 15123 mingw* | pw32* | cegcc*) 15124 lt_cv_dlopen=LoadLibrary 15125 lt_cv_dlopen_libs= 15126 ;; 15127 15128 cygwin*) 15129 lt_cv_dlopen=dlopen 15130 lt_cv_dlopen_libs= 15131 ;; 15132 15133 darwin*) 15134 # if libdl is installed we need to link against it 15135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 15136$as_echo_n "checking for dlopen in -ldl... " >&6; } 15137if ${ac_cv_lib_dl_dlopen+:} false; then : 15138 $as_echo_n "(cached) " >&6 15139else 15140 ac_check_lib_save_LIBS=$LIBS 15141LIBS="-ldl $LIBS" 15142cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15143/* end confdefs.h. */ 15144 15145/* Override any GCC internal prototype to avoid an error. 15146 Use char because int might match the return type of a GCC 15147 builtin and then its argument prototype would still apply. */ 15148#ifdef __cplusplus 15149extern "C" 15150#endif 15151char dlopen (); 15152int 15153main () 15154{ 15155return dlopen (); 15156 ; 15157 return 0; 15158} 15159_ACEOF 15160if ac_fn_c_try_link "$LINENO"; then : 15161 ac_cv_lib_dl_dlopen=yes 15162else 15163 ac_cv_lib_dl_dlopen=no 15164fi 15165rm -f core conftest.err conftest.$ac_objext \ 15166 conftest$ac_exeext conftest.$ac_ext 15167LIBS=$ac_check_lib_save_LIBS 15168fi 15169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 15170$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 15171if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 15172 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 15173else 15174 15175 lt_cv_dlopen=dyld 15176 lt_cv_dlopen_libs= 15177 lt_cv_dlopen_self=yes 15178 15179fi 15180 15181 ;; 15182 15183 tpf*) 15184 # Don't try to run any link tests for TPF. We know it's impossible 15185 # because TPF is a cross-compiler, and we know how we open DSOs. 15186 lt_cv_dlopen=dlopen 15187 lt_cv_dlopen_libs= 15188 lt_cv_dlopen_self=no 15189 ;; 15190 15191 *) 15192 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 15193if test "x$ac_cv_func_shl_load" = xyes; then : 15194 lt_cv_dlopen=shl_load 15195else 15196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 15197$as_echo_n "checking for shl_load in -ldld... " >&6; } 15198if ${ac_cv_lib_dld_shl_load+:} false; then : 15199 $as_echo_n "(cached) " >&6 15200else 15201 ac_check_lib_save_LIBS=$LIBS 15202LIBS="-ldld $LIBS" 15203cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15204/* end confdefs.h. */ 15205 15206/* Override any GCC internal prototype to avoid an error. 15207 Use char because int might match the return type of a GCC 15208 builtin and then its argument prototype would still apply. */ 15209#ifdef __cplusplus 15210extern "C" 15211#endif 15212char shl_load (); 15213int 15214main () 15215{ 15216return shl_load (); 15217 ; 15218 return 0; 15219} 15220_ACEOF 15221if ac_fn_c_try_link "$LINENO"; then : 15222 ac_cv_lib_dld_shl_load=yes 15223else 15224 ac_cv_lib_dld_shl_load=no 15225fi 15226rm -f core conftest.err conftest.$ac_objext \ 15227 conftest$ac_exeext conftest.$ac_ext 15228LIBS=$ac_check_lib_save_LIBS 15229fi 15230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 15231$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 15232if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 15233 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 15234else 15235 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 15236if test "x$ac_cv_func_dlopen" = xyes; then : 15237 lt_cv_dlopen=dlopen 15238else 15239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 15240$as_echo_n "checking for dlopen in -ldl... " >&6; } 15241if ${ac_cv_lib_dl_dlopen+:} false; then : 15242 $as_echo_n "(cached) " >&6 15243else 15244 ac_check_lib_save_LIBS=$LIBS 15245LIBS="-ldl $LIBS" 15246cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15247/* end confdefs.h. */ 15248 15249/* Override any GCC internal prototype to avoid an error. 15250 Use char because int might match the return type of a GCC 15251 builtin and then its argument prototype would still apply. */ 15252#ifdef __cplusplus 15253extern "C" 15254#endif 15255char dlopen (); 15256int 15257main () 15258{ 15259return dlopen (); 15260 ; 15261 return 0; 15262} 15263_ACEOF 15264if ac_fn_c_try_link "$LINENO"; then : 15265 ac_cv_lib_dl_dlopen=yes 15266else 15267 ac_cv_lib_dl_dlopen=no 15268fi 15269rm -f core conftest.err conftest.$ac_objext \ 15270 conftest$ac_exeext conftest.$ac_ext 15271LIBS=$ac_check_lib_save_LIBS 15272fi 15273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 15274$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 15275if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 15276 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 15277else 15278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 15279$as_echo_n "checking for dlopen in -lsvld... " >&6; } 15280if ${ac_cv_lib_svld_dlopen+:} false; then : 15281 $as_echo_n "(cached) " >&6 15282else 15283 ac_check_lib_save_LIBS=$LIBS 15284LIBS="-lsvld $LIBS" 15285cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15286/* end confdefs.h. */ 15287 15288/* Override any GCC internal prototype to avoid an error. 15289 Use char because int might match the return type of a GCC 15290 builtin and then its argument prototype would still apply. */ 15291#ifdef __cplusplus 15292extern "C" 15293#endif 15294char dlopen (); 15295int 15296main () 15297{ 15298return dlopen (); 15299 ; 15300 return 0; 15301} 15302_ACEOF 15303if ac_fn_c_try_link "$LINENO"; then : 15304 ac_cv_lib_svld_dlopen=yes 15305else 15306 ac_cv_lib_svld_dlopen=no 15307fi 15308rm -f core conftest.err conftest.$ac_objext \ 15309 conftest$ac_exeext conftest.$ac_ext 15310LIBS=$ac_check_lib_save_LIBS 15311fi 15312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 15313$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 15314if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 15315 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 15316else 15317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 15318$as_echo_n "checking for dld_link in -ldld... " >&6; } 15319if ${ac_cv_lib_dld_dld_link+:} false; then : 15320 $as_echo_n "(cached) " >&6 15321else 15322 ac_check_lib_save_LIBS=$LIBS 15323LIBS="-ldld $LIBS" 15324cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15325/* end confdefs.h. */ 15326 15327/* Override any GCC internal prototype to avoid an error. 15328 Use char because int might match the return type of a GCC 15329 builtin and then its argument prototype would still apply. */ 15330#ifdef __cplusplus 15331extern "C" 15332#endif 15333char dld_link (); 15334int 15335main () 15336{ 15337return dld_link (); 15338 ; 15339 return 0; 15340} 15341_ACEOF 15342if ac_fn_c_try_link "$LINENO"; then : 15343 ac_cv_lib_dld_dld_link=yes 15344else 15345 ac_cv_lib_dld_dld_link=no 15346fi 15347rm -f core conftest.err conftest.$ac_objext \ 15348 conftest$ac_exeext conftest.$ac_ext 15349LIBS=$ac_check_lib_save_LIBS 15350fi 15351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 15352$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 15353if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 15354 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 15355fi 15356 15357 15358fi 15359 15360 15361fi 15362 15363 15364fi 15365 15366 15367fi 15368 15369 15370fi 15371 15372 ;; 15373 esac 15374 15375 if test no = "$lt_cv_dlopen"; then 15376 enable_dlopen=no 15377 else 15378 enable_dlopen=yes 15379 fi 15380 15381 case $lt_cv_dlopen in 15382 dlopen) 15383 save_CPPFLAGS=$CPPFLAGS 15384 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 15385 15386 save_LDFLAGS=$LDFLAGS 15387 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 15388 15389 save_LIBS=$LIBS 15390 LIBS="$lt_cv_dlopen_libs $LIBS" 15391 15392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 15393$as_echo_n "checking whether a program can dlopen itself... " >&6; } 15394if ${lt_cv_dlopen_self+:} false; then : 15395 $as_echo_n "(cached) " >&6 15396else 15397 if test yes = "$cross_compiling"; then : 15398 lt_cv_dlopen_self=cross 15399else 15400 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 15401 lt_status=$lt_dlunknown 15402 cat > conftest.$ac_ext <<_LT_EOF 15403#line $LINENO "configure" 15404#include "confdefs.h" 15405 15406#if HAVE_DLFCN_H 15407#include <dlfcn.h> 15408#endif 15409 15410#include <stdio.h> 15411 15412#ifdef RTLD_GLOBAL 15413# define LT_DLGLOBAL RTLD_GLOBAL 15414#else 15415# ifdef DL_GLOBAL 15416# define LT_DLGLOBAL DL_GLOBAL 15417# else 15418# define LT_DLGLOBAL 0 15419# endif 15420#endif 15421 15422/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 15423 find out it does not work in some platform. */ 15424#ifndef LT_DLLAZY_OR_NOW 15425# ifdef RTLD_LAZY 15426# define LT_DLLAZY_OR_NOW RTLD_LAZY 15427# else 15428# ifdef DL_LAZY 15429# define LT_DLLAZY_OR_NOW DL_LAZY 15430# else 15431# ifdef RTLD_NOW 15432# define LT_DLLAZY_OR_NOW RTLD_NOW 15433# else 15434# ifdef DL_NOW 15435# define LT_DLLAZY_OR_NOW DL_NOW 15436# else 15437# define LT_DLLAZY_OR_NOW 0 15438# endif 15439# endif 15440# endif 15441# endif 15442#endif 15443 15444/* When -fvisibility=hidden is used, assume the code has been annotated 15445 correspondingly for the symbols needed. */ 15446#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 15447int fnord () __attribute__((visibility("default"))); 15448#endif 15449 15450int fnord () { return 42; } 15451int main () 15452{ 15453 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 15454 int status = $lt_dlunknown; 15455 15456 if (self) 15457 { 15458 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 15459 else 15460 { 15461 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 15462 else puts (dlerror ()); 15463 } 15464 /* dlclose (self); */ 15465 } 15466 else 15467 puts (dlerror ()); 15468 15469 return status; 15470} 15471_LT_EOF 15472 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 15473 (eval $ac_link) 2>&5 15474 ac_status=$? 15475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15476 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 15477 (./conftest; exit; ) >&5 2>/dev/null 15478 lt_status=$? 15479 case x$lt_status in 15480 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 15481 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 15482 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 15483 esac 15484 else : 15485 # compilation failed 15486 lt_cv_dlopen_self=no 15487 fi 15488fi 15489rm -fr conftest* 15490 15491 15492fi 15493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 15494$as_echo "$lt_cv_dlopen_self" >&6; } 15495 15496 if test yes = "$lt_cv_dlopen_self"; then 15497 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 15498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 15499$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 15500if ${lt_cv_dlopen_self_static+:} false; then : 15501 $as_echo_n "(cached) " >&6 15502else 15503 if test yes = "$cross_compiling"; then : 15504 lt_cv_dlopen_self_static=cross 15505else 15506 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 15507 lt_status=$lt_dlunknown 15508 cat > conftest.$ac_ext <<_LT_EOF 15509#line $LINENO "configure" 15510#include "confdefs.h" 15511 15512#if HAVE_DLFCN_H 15513#include <dlfcn.h> 15514#endif 15515 15516#include <stdio.h> 15517 15518#ifdef RTLD_GLOBAL 15519# define LT_DLGLOBAL RTLD_GLOBAL 15520#else 15521# ifdef DL_GLOBAL 15522# define LT_DLGLOBAL DL_GLOBAL 15523# else 15524# define LT_DLGLOBAL 0 15525# endif 15526#endif 15527 15528/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 15529 find out it does not work in some platform. */ 15530#ifndef LT_DLLAZY_OR_NOW 15531# ifdef RTLD_LAZY 15532# define LT_DLLAZY_OR_NOW RTLD_LAZY 15533# else 15534# ifdef DL_LAZY 15535# define LT_DLLAZY_OR_NOW DL_LAZY 15536# else 15537# ifdef RTLD_NOW 15538# define LT_DLLAZY_OR_NOW RTLD_NOW 15539# else 15540# ifdef DL_NOW 15541# define LT_DLLAZY_OR_NOW DL_NOW 15542# else 15543# define LT_DLLAZY_OR_NOW 0 15544# endif 15545# endif 15546# endif 15547# endif 15548#endif 15549 15550/* When -fvisibility=hidden is used, assume the code has been annotated 15551 correspondingly for the symbols needed. */ 15552#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 15553int fnord () __attribute__((visibility("default"))); 15554#endif 15555 15556int fnord () { return 42; } 15557int main () 15558{ 15559 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 15560 int status = $lt_dlunknown; 15561 15562 if (self) 15563 { 15564 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 15565 else 15566 { 15567 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 15568 else puts (dlerror ()); 15569 } 15570 /* dlclose (self); */ 15571 } 15572 else 15573 puts (dlerror ()); 15574 15575 return status; 15576} 15577_LT_EOF 15578 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 15579 (eval $ac_link) 2>&5 15580 ac_status=$? 15581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15582 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 15583 (./conftest; exit; ) >&5 2>/dev/null 15584 lt_status=$? 15585 case x$lt_status in 15586 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 15587 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 15588 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 15589 esac 15590 else : 15591 # compilation failed 15592 lt_cv_dlopen_self_static=no 15593 fi 15594fi 15595rm -fr conftest* 15596 15597 15598fi 15599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 15600$as_echo "$lt_cv_dlopen_self_static" >&6; } 15601 fi 15602 15603 CPPFLAGS=$save_CPPFLAGS 15604 LDFLAGS=$save_LDFLAGS 15605 LIBS=$save_LIBS 15606 ;; 15607 esac 15608 15609 case $lt_cv_dlopen_self in 15610 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 15611 *) enable_dlopen_self=unknown ;; 15612 esac 15613 15614 case $lt_cv_dlopen_self_static in 15615 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 15616 *) enable_dlopen_self_static=unknown ;; 15617 esac 15618fi 15619 15620 15621 15622 15623 15624 15625 15626 15627 15628 15629 15630 15631 15632 15633 15634 15635 15636striplib= 15637old_striplib= 15638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 15639$as_echo_n "checking whether stripping libraries is possible... " >&6; } 15640if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 15641 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 15642 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 15643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15644$as_echo "yes" >&6; } 15645else 15646# FIXME - insert some real tests, host_os isn't really good enough 15647 case $host_os in 15648 darwin*) 15649 if test -n "$STRIP"; then 15650 striplib="$STRIP -x" 15651 old_striplib="$STRIP -S" 15652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15653$as_echo "yes" >&6; } 15654 else 15655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15656$as_echo "no" >&6; } 15657 fi 15658 ;; 15659 *) 15660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15661$as_echo "no" >&6; } 15662 ;; 15663 esac 15664fi 15665 15666 15667 15668 15669 15670 15671 15672 15673 15674 15675 15676 15677 # Report what library types will actually be built 15678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 15679$as_echo_n "checking if libtool supports shared libraries... " >&6; } 15680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 15681$as_echo "$can_build_shared" >&6; } 15682 15683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 15684$as_echo_n "checking whether to build shared libraries... " >&6; } 15685 test no = "$can_build_shared" && enable_shared=no 15686 15687 # On AIX, shared libraries and static libraries use the same namespace, and 15688 # are all built from PIC. 15689 case $host_os in 15690 aix3*) 15691 test yes = "$enable_shared" && enable_static=no 15692 if test -n "$RANLIB"; then 15693 archive_cmds="$archive_cmds~\$RANLIB \$lib" 15694 postinstall_cmds='$RANLIB $lib' 15695 fi 15696 ;; 15697 15698 aix[4-9]*) 15699 if test ia64 != "$host_cpu"; then 15700 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 15701 yes,aix,yes) ;; # shared object as lib.so file only 15702 yes,svr4,*) ;; # shared object as lib.so archive member only 15703 yes,*) enable_static=no ;; # shared object in lib.a archive as well 15704 esac 15705 fi 15706 ;; 15707 esac 15708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 15709$as_echo "$enable_shared" >&6; } 15710 15711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 15712$as_echo_n "checking whether to build static libraries... " >&6; } 15713 # Make sure either enable_shared or enable_static is yes. 15714 test yes = "$enable_shared" || enable_static=yes 15715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 15716$as_echo "$enable_static" >&6; } 15717 15718 15719 15720 15721fi 15722ac_ext=c 15723ac_cpp='$CPP $CPPFLAGS' 15724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15726ac_compiler_gnu=$ac_cv_c_compiler_gnu 15727 15728CC=$lt_save_CC 15729 15730 15731 15732 15733 15734 15735 15736 15737 15738 15739 15740 15741 15742 15743 15744 ac_config_commands="$ac_config_commands libtool" 15745 15746 15747 15748 15749# Only expand once: 15750 15751 15752 15753if test -n "$ac_tool_prefix"; then 15754 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 15755set dummy ${ac_tool_prefix}windres; ac_word=$2 15756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15757$as_echo_n "checking for $ac_word... " >&6; } 15758if ${ac_cv_prog_RC+:} false; then : 15759 $as_echo_n "(cached) " >&6 15760else 15761 if test -n "$RC"; then 15762 ac_cv_prog_RC="$RC" # Let the user override the test. 15763else 15764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15765for as_dir in $PATH 15766do 15767 IFS=$as_save_IFS 15768 test -z "$as_dir" && as_dir=. 15769 for ac_exec_ext in '' $ac_executable_extensions; do 15770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15771 ac_cv_prog_RC="${ac_tool_prefix}windres" 15772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15773 break 2 15774 fi 15775done 15776 done 15777IFS=$as_save_IFS 15778 15779fi 15780fi 15781RC=$ac_cv_prog_RC 15782if test -n "$RC"; then 15783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 15784$as_echo "$RC" >&6; } 15785else 15786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15787$as_echo "no" >&6; } 15788fi 15789 15790 15791fi 15792if test -z "$ac_cv_prog_RC"; then 15793 ac_ct_RC=$RC 15794 # Extract the first word of "windres", so it can be a program name with args. 15795set dummy windres; ac_word=$2 15796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15797$as_echo_n "checking for $ac_word... " >&6; } 15798if ${ac_cv_prog_ac_ct_RC+:} false; then : 15799 $as_echo_n "(cached) " >&6 15800else 15801 if test -n "$ac_ct_RC"; then 15802 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test. 15803else 15804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15805for as_dir in $PATH 15806do 15807 IFS=$as_save_IFS 15808 test -z "$as_dir" && as_dir=. 15809 for ac_exec_ext in '' $ac_executable_extensions; do 15810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15811 ac_cv_prog_ac_ct_RC="windres" 15812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15813 break 2 15814 fi 15815done 15816 done 15817IFS=$as_save_IFS 15818 15819fi 15820fi 15821ac_ct_RC=$ac_cv_prog_ac_ct_RC 15822if test -n "$ac_ct_RC"; then 15823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5 15824$as_echo "$ac_ct_RC" >&6; } 15825else 15826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15827$as_echo "no" >&6; } 15828fi 15829 15830 if test "x$ac_ct_RC" = x; then 15831 RC="" 15832 else 15833 case $cross_compiling:$ac_tool_warned in 15834yes:) 15835{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15836$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15837ac_tool_warned=yes ;; 15838esac 15839 RC=$ac_ct_RC 15840 fi 15841else 15842 RC="$ac_cv_prog_RC" 15843fi 15844 15845 15846 15847 15848# Source file extension for RC test sources. 15849ac_ext=rc 15850 15851# Object file extension for compiled RC test sources. 15852objext=o 15853objext_RC=$objext 15854 15855# Code to be used in simple compile tests 15856lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 15857 15858# Code to be used in simple link tests 15859lt_simple_link_test_code=$lt_simple_compile_test_code 15860 15861# ltmain only uses $CC for tagged configurations so make sure $CC is set. 15862 15863 15864 15865 15866 15867 15868# If no C compiler was specified, use CC. 15869LTCC=${LTCC-"$CC"} 15870 15871# If no C compiler flags were specified, use CFLAGS. 15872LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15873 15874# Allow CC to be a program name with arguments. 15875compiler=$CC 15876 15877 15878# save warnings/boilerplate of simple test code 15879ac_outfile=conftest.$ac_objext 15880echo "$lt_simple_compile_test_code" >conftest.$ac_ext 15881eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15882_lt_compiler_boilerplate=`cat conftest.err` 15883$RM conftest* 15884 15885ac_outfile=conftest.$ac_objext 15886echo "$lt_simple_link_test_code" >conftest.$ac_ext 15887eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15888_lt_linker_boilerplate=`cat conftest.err` 15889$RM -r conftest* 15890 15891 15892# Allow CC to be a program name with arguments. 15893lt_save_CC=$CC 15894lt_save_CFLAGS=$CFLAGS 15895lt_save_GCC=$GCC 15896GCC= 15897CC=${RC-"windres"} 15898CFLAGS= 15899compiler=$CC 15900compiler_RC=$CC 15901func_cc_basename $compiler 15902cc_basename=$func_cc_basename_result 15903 15904lt_cv_prog_compiler_c_o_RC=yes 15905 15906if test -n "$compiler"; then 15907 : 15908 15909 15910 15911fi 15912 15913GCC=$lt_save_GCC 15914ac_ext=c 15915ac_cpp='$CPP $CPPFLAGS' 15916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15918ac_compiler_gnu=$ac_cv_c_compiler_gnu 15919 15920CC=$lt_save_CC 15921CFLAGS=$lt_save_CFLAGS 15922 15923 15924case "$host_os" in 15925 mingw* | cygwin*) is_woe32=yes ;; 15926 *) is_woe32=no ;; 15927esac 15928 if test $is_woe32 = yes; then 15929 WOE32_TRUE= 15930 WOE32_FALSE='#' 15931else 15932 WOE32_TRUE='#' 15933 WOE32_FALSE= 15934fi 15935 15936 15937case "$host_os" in 15938 mingw*) is_windows_native=yes ;; 15939 *) is_windows_native=no ;; 15940esac 15941 if test $is_windows_native = yes; then 15942 WINDOWS_NATIVE_TRUE= 15943 WINDOWS_NATIVE_FALSE='#' 15944else 15945 WINDOWS_NATIVE_TRUE='#' 15946 WINDOWS_NATIVE_FALSE= 15947fi 15948 15949 15950 15951 15952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 15953$as_echo_n "checking whether NLS is requested... " >&6; } 15954 # Check whether --enable-nls was given. 15955if test "${enable_nls+set}" = set; then : 15956 enableval=$enable_nls; USE_NLS=$enableval 15957else 15958 USE_NLS=yes 15959fi 15960 15961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 15962$as_echo "$USE_NLS" >&6; } 15963 15964 15965 15966 15967 GETTEXT_MACRO_VERSION=0.20 15968 15969 15970 15971 15972# Prepare PATH_SEPARATOR. 15973# The user is always right. 15974if test "${PATH_SEPARATOR+set}" != set; then 15975 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 15976 # contains only /bin. Note that ksh looks also at the FPATH variable, 15977 # so we have to set that as well for the test. 15978 PATH_SEPARATOR=: 15979 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 15980 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 15981 || PATH_SEPARATOR=';' 15982 } 15983fi 15984 15985# Find out how to test for executable files. Don't use a zero-byte file, 15986# as systems may use methods other than mode bits to determine executability. 15987cat >conf$$.file <<_ASEOF 15988#! /bin/sh 15989exit 0 15990_ASEOF 15991chmod +x conf$$.file 15992if test -x conf$$.file >/dev/null 2>&1; then 15993 ac_executable_p="test -x" 15994else 15995 ac_executable_p="test -f" 15996fi 15997rm -f conf$$.file 15998 15999# Extract the first word of "msgfmt", so it can be a program name with args. 16000set dummy msgfmt; ac_word=$2 16001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16002$as_echo_n "checking for $ac_word... " >&6; } 16003if ${ac_cv_path_MSGFMT+:} false; then : 16004 $as_echo_n "(cached) " >&6 16005else 16006 case "$MSGFMT" in 16007 [\\/]* | ?:[\\/]*) 16008 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 16009 ;; 16010 *) 16011 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 16012 for ac_dir in $PATH; do 16013 IFS="$ac_save_IFS" 16014 test -z "$ac_dir" && ac_dir=. 16015 for ac_exec_ext in '' $ac_executable_extensions; do 16016 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 16017 echo "$as_me: trying $ac_dir/$ac_word..." >&5 16018 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && 16019 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 16020 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 16021 break 2 16022 fi 16023 fi 16024 done 16025 done 16026 IFS="$ac_save_IFS" 16027 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 16028 ;; 16029esac 16030fi 16031MSGFMT="$ac_cv_path_MSGFMT" 16032if test "$MSGFMT" != ":"; then 16033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 16034$as_echo "$MSGFMT" >&6; } 16035else 16036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16037$as_echo "no" >&6; } 16038fi 16039 16040 # Extract the first word of "gmsgfmt", so it can be a program name with args. 16041set dummy gmsgfmt; ac_word=$2 16042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16043$as_echo_n "checking for $ac_word... " >&6; } 16044if ${ac_cv_path_GMSGFMT+:} false; then : 16045 $as_echo_n "(cached) " >&6 16046else 16047 case $GMSGFMT in 16048 [\\/]* | ?:[\\/]*) 16049 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 16050 ;; 16051 *) 16052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16053for as_dir in $PATH 16054do 16055 IFS=$as_save_IFS 16056 test -z "$as_dir" && as_dir=. 16057 for ac_exec_ext in '' $ac_executable_extensions; do 16058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16059 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 16060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16061 break 2 16062 fi 16063done 16064 done 16065IFS=$as_save_IFS 16066 16067 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 16068 ;; 16069esac 16070fi 16071GMSGFMT=$ac_cv_path_GMSGFMT 16072if test -n "$GMSGFMT"; then 16073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 16074$as_echo "$GMSGFMT" >&6; } 16075else 16076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16077$as_echo "no" >&6; } 16078fi 16079 16080 16081 16082 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 16083 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; 16084 *) GMSGFMT_015=$GMSGFMT ;; 16085 esac 16086 16087 16088 16089# Prepare PATH_SEPARATOR. 16090# The user is always right. 16091if test "${PATH_SEPARATOR+set}" != set; then 16092 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 16093 # contains only /bin. Note that ksh looks also at the FPATH variable, 16094 # so we have to set that as well for the test. 16095 PATH_SEPARATOR=: 16096 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 16097 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 16098 || PATH_SEPARATOR=';' 16099 } 16100fi 16101 16102# Find out how to test for executable files. Don't use a zero-byte file, 16103# as systems may use methods other than mode bits to determine executability. 16104cat >conf$$.file <<_ASEOF 16105#! /bin/sh 16106exit 0 16107_ASEOF 16108chmod +x conf$$.file 16109if test -x conf$$.file >/dev/null 2>&1; then 16110 ac_executable_p="test -x" 16111else 16112 ac_executable_p="test -f" 16113fi 16114rm -f conf$$.file 16115 16116# Extract the first word of "xgettext", so it can be a program name with args. 16117set dummy xgettext; ac_word=$2 16118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16119$as_echo_n "checking for $ac_word... " >&6; } 16120if ${ac_cv_path_XGETTEXT+:} false; then : 16121 $as_echo_n "(cached) " >&6 16122else 16123 case "$XGETTEXT" in 16124 [\\/]* | ?:[\\/]*) 16125 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 16126 ;; 16127 *) 16128 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 16129 for ac_dir in $PATH; do 16130 IFS="$ac_save_IFS" 16131 test -z "$ac_dir" && ac_dir=. 16132 for ac_exec_ext in '' $ac_executable_extensions; do 16133 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 16134 echo "$as_me: trying $ac_dir/$ac_word..." >&5 16135 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && 16136 (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 16137 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 16138 break 2 16139 fi 16140 fi 16141 done 16142 done 16143 IFS="$ac_save_IFS" 16144 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 16145 ;; 16146esac 16147fi 16148XGETTEXT="$ac_cv_path_XGETTEXT" 16149if test "$XGETTEXT" != ":"; then 16150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 16151$as_echo "$XGETTEXT" >&6; } 16152else 16153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16154$as_echo "no" >&6; } 16155fi 16156 16157 rm -f messages.po 16158 16159 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 16160 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; 16161 *) XGETTEXT_015=$XGETTEXT ;; 16162 esac 16163 16164 16165 16166# Prepare PATH_SEPARATOR. 16167# The user is always right. 16168if test "${PATH_SEPARATOR+set}" != set; then 16169 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 16170 # contains only /bin. Note that ksh looks also at the FPATH variable, 16171 # so we have to set that as well for the test. 16172 PATH_SEPARATOR=: 16173 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 16174 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 16175 || PATH_SEPARATOR=';' 16176 } 16177fi 16178 16179# Find out how to test for executable files. Don't use a zero-byte file, 16180# as systems may use methods other than mode bits to determine executability. 16181cat >conf$$.file <<_ASEOF 16182#! /bin/sh 16183exit 0 16184_ASEOF 16185chmod +x conf$$.file 16186if test -x conf$$.file >/dev/null 2>&1; then 16187 ac_executable_p="test -x" 16188else 16189 ac_executable_p="test -f" 16190fi 16191rm -f conf$$.file 16192 16193# Extract the first word of "msgmerge", so it can be a program name with args. 16194set dummy msgmerge; ac_word=$2 16195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16196$as_echo_n "checking for $ac_word... " >&6; } 16197if ${ac_cv_path_MSGMERGE+:} false; then : 16198 $as_echo_n "(cached) " >&6 16199else 16200 case "$MSGMERGE" in 16201 [\\/]* | ?:[\\/]*) 16202 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 16203 ;; 16204 *) 16205 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 16206 for ac_dir in $PATH; do 16207 IFS="$ac_save_IFS" 16208 test -z "$ac_dir" && ac_dir=. 16209 for ac_exec_ext in '' $ac_executable_extensions; do 16210 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 16211 echo "$as_me: trying $ac_dir/$ac_word..." >&5 16212 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then 16213 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 16214 break 2 16215 fi 16216 fi 16217 done 16218 done 16219 IFS="$ac_save_IFS" 16220 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 16221 ;; 16222esac 16223fi 16224MSGMERGE="$ac_cv_path_MSGMERGE" 16225if test "$MSGMERGE" != ":"; then 16226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 16227$as_echo "$MSGMERGE" >&6; } 16228else 16229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16230$as_echo "no" >&6; } 16231fi 16232 16233 16234 if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then 16235 MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt' 16236 else 16237 if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then 16238 MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet' 16239 else 16240 MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet' 16241 fi 16242 fi 16243 16244 16245 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= 16246 16247 16248 ac_config_commands="$ac_config_commands po-directories" 16249 16250 16251 16252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5 16253$as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; } 16254if ${ac_cv_gnu_library_2+:} false; then : 16255 $as_echo_n "(cached) " >&6 16256else 16257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16258/* end confdefs.h. */ 16259 16260#include <features.h> 16261#ifdef __GNU_LIBRARY__ 16262 #if (__GLIBC__ >= 2) && !defined __UCLIBC__ 16263 Lucky GNU user 16264 #endif 16265#endif 16266 16267_ACEOF 16268if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16269 $EGREP "Lucky GNU user" >/dev/null 2>&1; then : 16270 ac_cv_gnu_library_2=yes 16271else 16272 ac_cv_gnu_library_2=no 16273fi 16274rm -f conftest* 16275 16276 16277 16278fi 16279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5 16280$as_echo "$ac_cv_gnu_library_2" >&6; } 16281 16282 GLIBC2="$ac_cv_gnu_library_2" 16283 16284 16285 16286 16287 CFLAG_VISIBILITY= 16288 HAVE_VISIBILITY=0 16289 if test -n "$GCC"; then 16290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5 16291$as_echo_n "checking whether the -Werror option is usable... " >&6; } 16292if ${gl_cv_cc_vis_werror+:} false; then : 16293 $as_echo_n "(cached) " >&6 16294else 16295 gl_save_CFLAGS="$CFLAGS" 16296 CFLAGS="$CFLAGS -Werror" 16297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16298/* end confdefs.h. */ 16299 16300int 16301main () 16302{ 16303 16304 ; 16305 return 0; 16306} 16307_ACEOF 16308if ac_fn_c_try_compile "$LINENO"; then : 16309 gl_cv_cc_vis_werror=yes 16310else 16311 gl_cv_cc_vis_werror=no 16312fi 16313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16314 CFLAGS="$gl_save_CFLAGS" 16315 16316fi 16317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5 16318$as_echo "$gl_cv_cc_vis_werror" >&6; } 16319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 16320$as_echo_n "checking for simple visibility declarations... " >&6; } 16321if ${gl_cv_cc_visibility+:} false; then : 16322 $as_echo_n "(cached) " >&6 16323else 16324 gl_save_CFLAGS="$CFLAGS" 16325 CFLAGS="$CFLAGS -fvisibility=hidden" 16326 if test $gl_cv_cc_vis_werror = yes; then 16327 CFLAGS="$CFLAGS -Werror" 16328 fi 16329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16330/* end confdefs.h. */ 16331extern __attribute__((__visibility__("hidden"))) int hiddenvar; 16332 extern __attribute__((__visibility__("default"))) int exportedvar; 16333 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); 16334 extern __attribute__((__visibility__("default"))) int exportedfunc (void); 16335 void dummyfunc (void) {} 16336 16337int 16338main () 16339{ 16340 16341 ; 16342 return 0; 16343} 16344_ACEOF 16345if ac_fn_c_try_compile "$LINENO"; then : 16346 gl_cv_cc_visibility=yes 16347else 16348 gl_cv_cc_visibility=no 16349fi 16350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16351 CFLAGS="$gl_save_CFLAGS" 16352 16353fi 16354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 16355$as_echo "$gl_cv_cc_visibility" >&6; } 16356 if test $gl_cv_cc_visibility = yes; then 16357 CFLAG_VISIBILITY="-fvisibility=hidden" 16358 HAVE_VISIBILITY=1 16359 fi 16360 fi 16361 16362 16363 16364cat >>confdefs.h <<_ACEOF 16365#define HAVE_VISIBILITY $HAVE_VISIBILITY 16366_ACEOF 16367 16368 16369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 16370$as_echo_n "checking for inline... " >&6; } 16371if ${ac_cv_c_inline+:} false; then : 16372 $as_echo_n "(cached) " >&6 16373else 16374 ac_cv_c_inline=no 16375for ac_kw in inline __inline__ __inline; do 16376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16377/* end confdefs.h. */ 16378#ifndef __cplusplus 16379typedef int foo_t; 16380static $ac_kw foo_t static_foo () {return 0; } 16381$ac_kw foo_t foo () {return 0; } 16382#endif 16383 16384_ACEOF 16385if ac_fn_c_try_compile "$LINENO"; then : 16386 ac_cv_c_inline=$ac_kw 16387fi 16388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16389 test "$ac_cv_c_inline" != no && break 16390done 16391 16392fi 16393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 16394$as_echo "$ac_cv_c_inline" >&6; } 16395 16396case $ac_cv_c_inline in 16397 inline | yes) ;; 16398 *) 16399 case $ac_cv_c_inline in 16400 no) ac_val=;; 16401 *) ac_val=$ac_cv_c_inline;; 16402 esac 16403 cat >>confdefs.h <<_ACEOF 16404#ifndef __cplusplus 16405#define inline $ac_val 16406#endif 16407_ACEOF 16408 ;; 16409esac 16410 16411ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 16412if test "x$ac_cv_type_size_t" = xyes; then : 16413 16414else 16415 16416cat >>confdefs.h <<_ACEOF 16417#define size_t unsigned int 16418_ACEOF 16419 16420fi 16421 16422 16423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5 16424$as_echo_n "checking for stdint.h... " >&6; } 16425if ${gl_cv_header_stdint_h+:} false; then : 16426 $as_echo_n "(cached) " >&6 16427else 16428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16429/* end confdefs.h. */ 16430#include <sys/types.h> 16431 #include <stdint.h> 16432int 16433main () 16434{ 16435uintmax_t i = (uintmax_t) -1; return !i; 16436 ; 16437 return 0; 16438} 16439_ACEOF 16440if ac_fn_c_try_compile "$LINENO"; then : 16441 gl_cv_header_stdint_h=yes 16442else 16443 gl_cv_header_stdint_h=no 16444fi 16445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16446fi 16447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5 16448$as_echo "$gl_cv_header_stdint_h" >&6; } 16449 if test $gl_cv_header_stdint_h = yes; then 16450 16451cat >>confdefs.h <<_ACEOF 16452#define HAVE_STDINT_H_WITH_UINTMAX 1 16453_ACEOF 16454 16455 fi 16456 16457# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 16458# for constant arguments. Useless! 16459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 16460$as_echo_n "checking for working alloca.h... " >&6; } 16461if ${ac_cv_working_alloca_h+:} false; then : 16462 $as_echo_n "(cached) " >&6 16463else 16464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16465/* end confdefs.h. */ 16466#include <alloca.h> 16467int 16468main () 16469{ 16470char *p = (char *) alloca (2 * sizeof (int)); 16471 if (p) return 0; 16472 ; 16473 return 0; 16474} 16475_ACEOF 16476if ac_fn_c_try_link "$LINENO"; then : 16477 ac_cv_working_alloca_h=yes 16478else 16479 ac_cv_working_alloca_h=no 16480fi 16481rm -f core conftest.err conftest.$ac_objext \ 16482 conftest$ac_exeext conftest.$ac_ext 16483fi 16484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 16485$as_echo "$ac_cv_working_alloca_h" >&6; } 16486if test $ac_cv_working_alloca_h = yes; then 16487 16488$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 16489 16490fi 16491 16492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 16493$as_echo_n "checking for alloca... " >&6; } 16494if ${ac_cv_func_alloca_works+:} false; then : 16495 $as_echo_n "(cached) " >&6 16496else 16497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16498/* end confdefs.h. */ 16499#ifdef __GNUC__ 16500# define alloca __builtin_alloca 16501#else 16502# ifdef _MSC_VER 16503# include <malloc.h> 16504# define alloca _alloca 16505# else 16506# ifdef HAVE_ALLOCA_H 16507# include <alloca.h> 16508# else 16509# ifdef _AIX 16510 #pragma alloca 16511# else 16512# ifndef alloca /* predefined by HP cc +Olibcalls */ 16513void *alloca (size_t); 16514# endif 16515# endif 16516# endif 16517# endif 16518#endif 16519 16520int 16521main () 16522{ 16523char *p = (char *) alloca (1); 16524 if (p) return 0; 16525 ; 16526 return 0; 16527} 16528_ACEOF 16529if ac_fn_c_try_link "$LINENO"; then : 16530 ac_cv_func_alloca_works=yes 16531else 16532 ac_cv_func_alloca_works=no 16533fi 16534rm -f core conftest.err conftest.$ac_objext \ 16535 conftest$ac_exeext conftest.$ac_ext 16536fi 16537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 16538$as_echo "$ac_cv_func_alloca_works" >&6; } 16539 16540if test $ac_cv_func_alloca_works = yes; then 16541 16542$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 16543 16544else 16545 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 16546# that cause trouble. Some versions do not even contain alloca or 16547# contain a buggy version. If you still want to use their alloca, 16548# use ar to extract alloca.o from them instead of compiling alloca.c. 16549 16550ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 16551 16552$as_echo "#define C_ALLOCA 1" >>confdefs.h 16553 16554 16555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 16556$as_echo_n "checking stack direction for C alloca... " >&6; } 16557if ${ac_cv_c_stack_direction+:} false; then : 16558 $as_echo_n "(cached) " >&6 16559else 16560 if test "$cross_compiling" = yes; then : 16561 ac_cv_c_stack_direction=0 16562else 16563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16564/* end confdefs.h. */ 16565$ac_includes_default 16566int 16567find_stack_direction (int *addr, int depth) 16568{ 16569 int dir, dummy = 0; 16570 if (! addr) 16571 addr = &dummy; 16572 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 16573 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 16574 return dir + dummy; 16575} 16576 16577int 16578main (int argc, char **argv) 16579{ 16580 return find_stack_direction (0, argc + !argv + 20) < 0; 16581} 16582_ACEOF 16583if ac_fn_c_try_run "$LINENO"; then : 16584 ac_cv_c_stack_direction=1 16585else 16586 ac_cv_c_stack_direction=-1 16587fi 16588rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16589 conftest.$ac_objext conftest.beam conftest.$ac_ext 16590fi 16591 16592fi 16593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 16594$as_echo "$ac_cv_c_stack_direction" >&6; } 16595cat >>confdefs.h <<_ACEOF 16596#define STACK_DIRECTION $ac_cv_c_stack_direction 16597_ACEOF 16598 16599 16600fi 16601 16602 16603 16604 16605 for ac_header in $ac_header_list 16606do : 16607 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16608ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 16609" 16610if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16611 cat >>confdefs.h <<_ACEOF 16612#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16613_ACEOF 16614 16615fi 16616 16617done 16618 16619 16620 16621 16622 16623 16624 16625 16626for ac_func in getpagesize 16627do : 16628 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 16629if test "x$ac_cv_func_getpagesize" = xyes; then : 16630 cat >>confdefs.h <<_ACEOF 16631#define HAVE_GETPAGESIZE 1 16632_ACEOF 16633 16634fi 16635done 16636 16637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 16638$as_echo_n "checking for working mmap... " >&6; } 16639if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 16640 $as_echo_n "(cached) " >&6 16641else 16642 if test "$cross_compiling" = yes; then : 16643 ac_cv_func_mmap_fixed_mapped=no 16644else 16645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16646/* end confdefs.h. */ 16647$ac_includes_default 16648/* malloc might have been renamed as rpl_malloc. */ 16649#undef malloc 16650 16651/* Thanks to Mike Haertel and Jim Avera for this test. 16652 Here is a matrix of mmap possibilities: 16653 mmap private not fixed 16654 mmap private fixed at somewhere currently unmapped 16655 mmap private fixed at somewhere already mapped 16656 mmap shared not fixed 16657 mmap shared fixed at somewhere currently unmapped 16658 mmap shared fixed at somewhere already mapped 16659 For private mappings, we should verify that changes cannot be read() 16660 back from the file, nor mmap's back from the file at a different 16661 address. (There have been systems where private was not correctly 16662 implemented like the infamous i386 svr4.0, and systems where the 16663 VM page cache was not coherent with the file system buffer cache 16664 like early versions of FreeBSD and possibly contemporary NetBSD.) 16665 For shared mappings, we should conversely verify that changes get 16666 propagated back to all the places they're supposed to be. 16667 16668 Grep wants private fixed already mapped. 16669 The main things grep needs to know about mmap are: 16670 * does it exist and is it safe to write into the mmap'd area 16671 * how to use it (BSD variants) */ 16672 16673#include <fcntl.h> 16674#include <sys/mman.h> 16675 16676#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 16677char *malloc (); 16678#endif 16679 16680/* This mess was copied from the GNU getpagesize.h. */ 16681#ifndef HAVE_GETPAGESIZE 16682# ifdef _SC_PAGESIZE 16683# define getpagesize() sysconf(_SC_PAGESIZE) 16684# else /* no _SC_PAGESIZE */ 16685# ifdef HAVE_SYS_PARAM_H 16686# include <sys/param.h> 16687# ifdef EXEC_PAGESIZE 16688# define getpagesize() EXEC_PAGESIZE 16689# else /* no EXEC_PAGESIZE */ 16690# ifdef NBPG 16691# define getpagesize() NBPG * CLSIZE 16692# ifndef CLSIZE 16693# define CLSIZE 1 16694# endif /* no CLSIZE */ 16695# else /* no NBPG */ 16696# ifdef NBPC 16697# define getpagesize() NBPC 16698# else /* no NBPC */ 16699# ifdef PAGESIZE 16700# define getpagesize() PAGESIZE 16701# endif /* PAGESIZE */ 16702# endif /* no NBPC */ 16703# endif /* no NBPG */ 16704# endif /* no EXEC_PAGESIZE */ 16705# else /* no HAVE_SYS_PARAM_H */ 16706# define getpagesize() 8192 /* punt totally */ 16707# endif /* no HAVE_SYS_PARAM_H */ 16708# endif /* no _SC_PAGESIZE */ 16709 16710#endif /* no HAVE_GETPAGESIZE */ 16711 16712int 16713main () 16714{ 16715 char *data, *data2, *data3; 16716 const char *cdata2; 16717 int i, pagesize; 16718 int fd, fd2; 16719 16720 pagesize = getpagesize (); 16721 16722 /* First, make a file with some known garbage in it. */ 16723 data = (char *) malloc (pagesize); 16724 if (!data) 16725 return 1; 16726 for (i = 0; i < pagesize; ++i) 16727 *(data + i) = rand (); 16728 umask (0); 16729 fd = creat ("conftest.mmap", 0600); 16730 if (fd < 0) 16731 return 2; 16732 if (write (fd, data, pagesize) != pagesize) 16733 return 3; 16734 close (fd); 16735 16736 /* Next, check that the tail of a page is zero-filled. File must have 16737 non-zero length, otherwise we risk SIGBUS for entire page. */ 16738 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 16739 if (fd2 < 0) 16740 return 4; 16741 cdata2 = ""; 16742 if (write (fd2, cdata2, 1) != 1) 16743 return 5; 16744 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 16745 if (data2 == MAP_FAILED) 16746 return 6; 16747 for (i = 0; i < pagesize; ++i) 16748 if (*(data2 + i)) 16749 return 7; 16750 close (fd2); 16751 if (munmap (data2, pagesize)) 16752 return 8; 16753 16754 /* Next, try to mmap the file at a fixed address which already has 16755 something else allocated at it. If we can, also make sure that 16756 we see the same garbage. */ 16757 fd = open ("conftest.mmap", O_RDWR); 16758 if (fd < 0) 16759 return 9; 16760 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 16761 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 16762 return 10; 16763 for (i = 0; i < pagesize; ++i) 16764 if (*(data + i) != *(data2 + i)) 16765 return 11; 16766 16767 /* Finally, make sure that changes to the mapped area do not 16768 percolate back to the file as seen by read(). (This is a bug on 16769 some variants of i386 svr4.0.) */ 16770 for (i = 0; i < pagesize; ++i) 16771 *(data2 + i) = *(data2 + i) + 1; 16772 data3 = (char *) malloc (pagesize); 16773 if (!data3) 16774 return 12; 16775 if (read (fd, data3, pagesize) != pagesize) 16776 return 13; 16777 for (i = 0; i < pagesize; ++i) 16778 if (*(data + i) != *(data3 + i)) 16779 return 14; 16780 close (fd); 16781 return 0; 16782} 16783_ACEOF 16784if ac_fn_c_try_run "$LINENO"; then : 16785 ac_cv_func_mmap_fixed_mapped=yes 16786else 16787 ac_cv_func_mmap_fixed_mapped=no 16788fi 16789rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16790 conftest.$ac_objext conftest.beam conftest.$ac_ext 16791fi 16792 16793fi 16794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 16795$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 16796if test $ac_cv_func_mmap_fixed_mapped = yes; then 16797 16798$as_echo "#define HAVE_MMAP 1" >>confdefs.h 16799 16800fi 16801rm -f conftest.mmap conftest.txt 16802 16803 16804 16805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5 16806$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; } 16807if ${gt_cv_int_divbyzero_sigfpe+:} false; then : 16808 $as_echo_n "(cached) " >&6 16809else 16810 16811 gt_cv_int_divbyzero_sigfpe= 16812 case "$host_os" in 16813 macos* | darwin[6-9]* | darwin[1-9][0-9]*) 16814 # On Mac OS X 10.2 or newer, just assume the same as when cross- 16815 # compiling. If we were to perform the real test, 1 Crash Report 16816 # dialog window would pop up. 16817 case "$host_cpu" in 16818 i[34567]86 | x86_64) 16819 gt_cv_int_divbyzero_sigfpe="guessing yes" ;; 16820 esac 16821 ;; 16822 esac 16823 if test -z "$gt_cv_int_divbyzero_sigfpe"; then 16824 if test "$cross_compiling" = yes; then : 16825 16826 # Guess based on the CPU. 16827 case "$host_cpu" in 16828 alpha* | i[34567]86 | x86_64 | m68k | s390*) 16829 gt_cv_int_divbyzero_sigfpe="guessing yes";; 16830 *) 16831 gt_cv_int_divbyzero_sigfpe="guessing no";; 16832 esac 16833 16834else 16835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16836/* end confdefs.h. */ 16837 16838#include <stdlib.h> /* for exit() */ 16839#include <signal.h> 16840#if !(defined _WIN32 && !defined __CYGWIN__) 16841#include <unistd.h> /* for _exit() */ 16842#endif 16843 16844static void 16845sigfpe_handler (int sig) 16846{ 16847 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ 16848 _exit (sig != SIGFPE); 16849} 16850 16851int x = 1; 16852int y = 0; 16853int z; 16854int nan; 16855 16856int main () 16857{ 16858 signal (SIGFPE, sigfpe_handler); 16859/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ 16860#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) 16861 signal (SIGTRAP, sigfpe_handler); 16862#endif 16863/* Linux/SPARC yields signal SIGILL. */ 16864#if defined (__sparc__) && defined (__linux__) 16865 signal (SIGILL, sigfpe_handler); 16866#endif 16867 16868 z = x / y; 16869 nan = y / y; 16870 exit (2); 16871} 16872 16873_ACEOF 16874if ac_fn_c_try_run "$LINENO"; then : 16875 gt_cv_int_divbyzero_sigfpe=yes 16876else 16877 gt_cv_int_divbyzero_sigfpe=no 16878fi 16879rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16880 conftest.$ac_objext conftest.beam conftest.$ac_ext 16881fi 16882 16883 fi 16884 16885fi 16886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5 16887$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; } 16888 case "$gt_cv_int_divbyzero_sigfpe" in 16889 *yes) value=1;; 16890 *) value=0;; 16891 esac 16892 16893cat >>confdefs.h <<_ACEOF 16894#define INTDIV0_RAISES_SIGFPE $value 16895_ACEOF 16896 16897 16898 16899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 16900$as_echo_n "checking for inttypes.h... " >&6; } 16901if ${gl_cv_header_inttypes_h+:} false; then : 16902 $as_echo_n "(cached) " >&6 16903else 16904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16905/* end confdefs.h. */ 16906 16907#include <sys/types.h> 16908#include <inttypes.h> 16909 16910int 16911main () 16912{ 16913uintmax_t i = (uintmax_t) -1; return !i; 16914 ; 16915 return 0; 16916} 16917_ACEOF 16918if ac_fn_c_try_compile "$LINENO"; then : 16919 gl_cv_header_inttypes_h=yes 16920else 16921 gl_cv_header_inttypes_h=no 16922fi 16923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16924fi 16925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5 16926$as_echo "$gl_cv_header_inttypes_h" >&6; } 16927 if test $gl_cv_header_inttypes_h = yes; then 16928 16929cat >>confdefs.h <<_ACEOF 16930#define HAVE_INTTYPES_H_WITH_UINTMAX 1 16931_ACEOF 16932 16933 fi 16934 16935 16936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 16937$as_echo_n "checking for unsigned long long int... " >&6; } 16938if ${ac_cv_type_unsigned_long_long_int+:} false; then : 16939 $as_echo_n "(cached) " >&6 16940else 16941 ac_cv_type_unsigned_long_long_int=yes 16942 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 16943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16944/* end confdefs.h. */ 16945 16946 /* For now, do not test the preprocessor; as of 2007 there are too many 16947 implementations with broken preprocessors. Perhaps this can 16948 be revisited in 2012. In the meantime, code should not expect 16949 #if to work with literals wider than 32 bits. */ 16950 /* Test literals. */ 16951 long long int ll = 9223372036854775807ll; 16952 long long int nll = -9223372036854775807LL; 16953 unsigned long long int ull = 18446744073709551615ULL; 16954 /* Test constant expressions. */ 16955 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 16956 ? 1 : -1)]; 16957 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 16958 ? 1 : -1)]; 16959 int i = 63; 16960int 16961main () 16962{ 16963/* Test availability of runtime routines for shift and division. */ 16964 long long int llmax = 9223372036854775807ll; 16965 unsigned long long int ullmax = 18446744073709551615ull; 16966 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 16967 | (llmax / ll) | (llmax % ll) 16968 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 16969 | (ullmax / ull) | (ullmax % ull)); 16970 ; 16971 return 0; 16972} 16973 16974_ACEOF 16975if ac_fn_c_try_link "$LINENO"; then : 16976 16977else 16978 ac_cv_type_unsigned_long_long_int=no 16979fi 16980rm -f core conftest.err conftest.$ac_objext \ 16981 conftest$ac_exeext conftest.$ac_ext 16982 fi 16983fi 16984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 16985$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 16986 if test $ac_cv_type_unsigned_long_long_int = yes; then 16987 16988$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 16989 16990 fi 16991 16992 16993 16994 16995 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then 16996 16997 test $ac_cv_type_unsigned_long_long_int = yes \ 16998 && ac_type='unsigned long long' \ 16999 || ac_type='unsigned long' 17000 17001cat >>confdefs.h <<_ACEOF 17002#define uintmax_t $ac_type 17003_ACEOF 17004 17005 else 17006 17007$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h 17008 17009 fi 17010 17011 17012 17013 17014 17015 gl_threads_api=none 17016 LIBTHREAD= 17017 LTLIBTHREAD= 17018 LIBMULTITHREAD= 17019 LTLIBMULTITHREAD= 17020 if test "$gl_use_threads" != no; then 17021 17022 17023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5 17024$as_echo_n "checking whether imported symbols can be declared weak... " >&6; } 17025if ${gl_cv_have_weak+:} false; then : 17026 $as_echo_n "(cached) " >&6 17027else 17028 gl_cv_have_weak=no 17029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17030/* end confdefs.h. */ 17031extern void xyzzy (); 17032#pragma weak xyzzy 17033int 17034main () 17035{ 17036xyzzy(); 17037 ; 17038 return 0; 17039} 17040_ACEOF 17041if ac_fn_c_try_link "$LINENO"; then : 17042 gl_cv_have_weak=maybe 17043fi 17044rm -f core conftest.err conftest.$ac_objext \ 17045 conftest$ac_exeext conftest.$ac_ext 17046 if test $gl_cv_have_weak = maybe; then 17047 if test "$cross_compiling" = yes; then : 17048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17049/* end confdefs.h. */ 17050#ifdef __ELF__ 17051 Extensible Linking Format 17052 #endif 17053 17054_ACEOF 17055if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17056 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then : 17057 gl_cv_have_weak="guessing yes" 17058else 17059 gl_cv_have_weak="guessing no" 17060fi 17061rm -f conftest* 17062 17063 17064else 17065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17066/* end confdefs.h. */ 17067 17068#include <stdio.h> 17069#pragma weak fputs 17070int main () 17071{ 17072 return (fputs == NULL); 17073} 17074_ACEOF 17075if ac_fn_c_try_run "$LINENO"; then : 17076 gl_cv_have_weak=yes 17077else 17078 gl_cv_have_weak=no 17079fi 17080rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17081 conftest.$ac_objext conftest.beam conftest.$ac_ext 17082fi 17083 17084 fi 17085 case " $LDFLAGS " in 17086 *" -static "*) gl_cv_have_weak=no ;; 17087 esac 17088 case "$gl_cv_have_weak" in 17089 *yes) 17090 case "$host_os" in 17091 freebsd* | dragonfly*) 17092 : > conftest1.c 17093 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c -lpthread >&5 2>&1 17094 cat <<EOF > conftest2.c 17095#include <pthread.h> 17096#pragma weak pthread_mutexattr_gettype 17097int main () 17098{ 17099 return (pthread_mutexattr_gettype != NULL); 17100} 17101EOF 17102 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so >&5 2>&1 \ 17103 || gl_cv_have_weak=no 17104 rm -f conftest1.c libempty.so conftest2.c conftest 17105 ;; 17106 esac 17107 ;; 17108 esac 17109 17110fi 17111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5 17112$as_echo "$gl_cv_have_weak" >&6; } 17113 case "$gl_cv_have_weak" in 17114 *yes) 17115 17116$as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h 17117 17118 ;; 17119 esac 17120 17121 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then 17122 17123 : 17124 fi 17125 if test "$gl_use_threads" = isoc || test "$gl_use_threads" = isoc+posix; then 17126 17127 gl_have_isoc_threads="$ac_cv_header_threads_h" 17128 fi 17129 if test "$gl_use_threads" = yes \ 17130 || test "$gl_use_threads" = posix \ 17131 || test "$gl_use_threads" = isoc+posix; then 17132 17133 17134 if test -z "$gl_pthreadlib_body_done"; then 17135 gl_pthread_api=no 17136 LIBPTHREAD= 17137 LIBPMULTITHREAD= 17138 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that 17139 # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY. 17140 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 17141if test "x$ac_cv_header_pthread_h" = xyes; then : 17142 gl_have_pthread_h=yes 17143else 17144 gl_have_pthread_h=no 17145fi 17146 17147 17148 if test "$gl_have_pthread_h" = yes; then 17149 # Other possible tests: 17150 # -lpthreads (FSU threads, PCthreads) 17151 # -lgthreads 17152 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist 17153 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but 17154 # the second one only in libpthread, and lock.c needs it. 17155 # 17156 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04 17157 # needs -pthread for some reason. See: 17158 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html 17159 save_LIBS=$LIBS 17160 for gl_pthread in '' '-pthread'; do 17161 LIBS="$LIBS $gl_pthread" 17162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17163/* end confdefs.h. */ 17164#include <pthread.h> 17165 pthread_mutex_t m; 17166 pthread_mutexattr_t ma; 17167 17168int 17169main () 17170{ 17171pthread_mutex_lock (&m); 17172 pthread_mutexattr_init (&ma); 17173 ; 17174 return 0; 17175} 17176_ACEOF 17177if ac_fn_c_try_link "$LINENO"; then : 17178 gl_pthread_api=yes 17179 LIBPTHREAD=$gl_pthread 17180 LIBPMULTITHREAD=$gl_pthread 17181fi 17182rm -f core conftest.err conftest.$ac_objext \ 17183 conftest$ac_exeext conftest.$ac_ext 17184 LIBS=$save_LIBS 17185 test $gl_pthread_api = yes && break 17186 done 17187 17188 # Test for libpthread by looking for pthread_kill. (Not pthread_self, 17189 # since it is defined as a macro on OSF/1.) 17190 if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then 17191 # The program links fine without libpthread. But it may actually 17192 # need to link with libpthread in order to create multiple threads. 17193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 17194$as_echo_n "checking for pthread_kill in -lpthread... " >&6; } 17195if ${ac_cv_lib_pthread_pthread_kill+:} false; then : 17196 $as_echo_n "(cached) " >&6 17197else 17198 ac_check_lib_save_LIBS=$LIBS 17199LIBS="-lpthread $LIBS" 17200cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17201/* end confdefs.h. */ 17202 17203/* Override any GCC internal prototype to avoid an error. 17204 Use char because int might match the return type of a GCC 17205 builtin and then its argument prototype would still apply. */ 17206#ifdef __cplusplus 17207extern "C" 17208#endif 17209char pthread_kill (); 17210int 17211main () 17212{ 17213return pthread_kill (); 17214 ; 17215 return 0; 17216} 17217_ACEOF 17218if ac_fn_c_try_link "$LINENO"; then : 17219 ac_cv_lib_pthread_pthread_kill=yes 17220else 17221 ac_cv_lib_pthread_pthread_kill=no 17222fi 17223rm -f core conftest.err conftest.$ac_objext \ 17224 conftest$ac_exeext conftest.$ac_ext 17225LIBS=$ac_check_lib_save_LIBS 17226fi 17227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 17228$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } 17229if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then : 17230 LIBPMULTITHREAD=-lpthread 17231 # On Solaris and HP-UX, most pthread functions exist also in libc. 17232 # Therefore pthread_in_use() needs to actually try to create a 17233 # thread: pthread_create from libc will fail, whereas 17234 # pthread_create will actually create a thread. 17235 # On Solaris 10 or newer, this test is no longer needed, because 17236 # libc contains the fully functional pthread functions. 17237 case "$host_os" in 17238 solaris | solaris2.1-9 | solaris2.1-9.* | hpux*) 17239 17240$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h 17241 17242 esac 17243 17244fi 17245 17246 elif test $gl_pthread_api != yes; then 17247 # Some library is needed. Try libpthread and libc_r. 17248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 17249$as_echo_n "checking for pthread_kill in -lpthread... " >&6; } 17250if ${ac_cv_lib_pthread_pthread_kill+:} false; then : 17251 $as_echo_n "(cached) " >&6 17252else 17253 ac_check_lib_save_LIBS=$LIBS 17254LIBS="-lpthread $LIBS" 17255cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17256/* end confdefs.h. */ 17257 17258/* Override any GCC internal prototype to avoid an error. 17259 Use char because int might match the return type of a GCC 17260 builtin and then its argument prototype would still apply. */ 17261#ifdef __cplusplus 17262extern "C" 17263#endif 17264char pthread_kill (); 17265int 17266main () 17267{ 17268return pthread_kill (); 17269 ; 17270 return 0; 17271} 17272_ACEOF 17273if ac_fn_c_try_link "$LINENO"; then : 17274 ac_cv_lib_pthread_pthread_kill=yes 17275else 17276 ac_cv_lib_pthread_pthread_kill=no 17277fi 17278rm -f core conftest.err conftest.$ac_objext \ 17279 conftest$ac_exeext conftest.$ac_ext 17280LIBS=$ac_check_lib_save_LIBS 17281fi 17282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 17283$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } 17284if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then : 17285 gl_pthread_api=yes 17286 LIBPTHREAD=-lpthread 17287 LIBPMULTITHREAD=-lpthread 17288fi 17289 17290 if test $gl_pthread_api != yes; then 17291 # For FreeBSD 4. 17292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5 17293$as_echo_n "checking for pthread_kill in -lc_r... " >&6; } 17294if ${ac_cv_lib_c_r_pthread_kill+:} false; then : 17295 $as_echo_n "(cached) " >&6 17296else 17297 ac_check_lib_save_LIBS=$LIBS 17298LIBS="-lc_r $LIBS" 17299cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17300/* end confdefs.h. */ 17301 17302/* Override any GCC internal prototype to avoid an error. 17303 Use char because int might match the return type of a GCC 17304 builtin and then its argument prototype would still apply. */ 17305#ifdef __cplusplus 17306extern "C" 17307#endif 17308char pthread_kill (); 17309int 17310main () 17311{ 17312return pthread_kill (); 17313 ; 17314 return 0; 17315} 17316_ACEOF 17317if ac_fn_c_try_link "$LINENO"; then : 17318 ac_cv_lib_c_r_pthread_kill=yes 17319else 17320 ac_cv_lib_c_r_pthread_kill=no 17321fi 17322rm -f core conftest.err conftest.$ac_objext \ 17323 conftest$ac_exeext conftest.$ac_ext 17324LIBS=$ac_check_lib_save_LIBS 17325fi 17326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5 17327$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; } 17328if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then : 17329 gl_pthread_api=yes 17330 LIBPTHREAD=-lc_r 17331 LIBPMULTITHREAD=-lc_r 17332fi 17333 17334 fi 17335 fi 17336 fi 17337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5 17338$as_echo_n "checking whether POSIX threads API is available... " >&6; } 17339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5 17340$as_echo "$gl_pthread_api" >&6; } 17341 17342 17343 if test $gl_pthread_api = yes; then 17344 17345$as_echo "#define HAVE_PTHREAD_API 1" >>confdefs.h 17346 17347 fi 17348 17349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17350/* end confdefs.h. */ 17351#include <sched.h> 17352int 17353main () 17354{ 17355sched_yield (); 17356 ; 17357 return 0; 17358} 17359_ACEOF 17360if ac_fn_c_try_link "$LINENO"; then : 17361 LIB_SCHED_YIELD= 17362 17363else 17364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5 17365$as_echo_n "checking for sched_yield in -lrt... " >&6; } 17366if ${ac_cv_lib_rt_sched_yield+:} false; then : 17367 $as_echo_n "(cached) " >&6 17368else 17369 ac_check_lib_save_LIBS=$LIBS 17370LIBS="-lrt $LIBS" 17371cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17372/* end confdefs.h. */ 17373 17374/* Override any GCC internal prototype to avoid an error. 17375 Use char because int might match the return type of a GCC 17376 builtin and then its argument prototype would still apply. */ 17377#ifdef __cplusplus 17378extern "C" 17379#endif 17380char sched_yield (); 17381int 17382main () 17383{ 17384return sched_yield (); 17385 ; 17386 return 0; 17387} 17388_ACEOF 17389if ac_fn_c_try_link "$LINENO"; then : 17390 ac_cv_lib_rt_sched_yield=yes 17391else 17392 ac_cv_lib_rt_sched_yield=no 17393fi 17394rm -f core conftest.err conftest.$ac_objext \ 17395 conftest$ac_exeext conftest.$ac_ext 17396LIBS=$ac_check_lib_save_LIBS 17397fi 17398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5 17399$as_echo "$ac_cv_lib_rt_sched_yield" >&6; } 17400if test "x$ac_cv_lib_rt_sched_yield" = xyes; then : 17401 LIB_SCHED_YIELD=-lrt 17402else 17403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5 17404$as_echo_n "checking for sched_yield in -lposix4... " >&6; } 17405if ${ac_cv_lib_posix4_sched_yield+:} false; then : 17406 $as_echo_n "(cached) " >&6 17407else 17408 ac_check_lib_save_LIBS=$LIBS 17409LIBS="-lposix4 $LIBS" 17410cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17411/* end confdefs.h. */ 17412 17413/* Override any GCC internal prototype to avoid an error. 17414 Use char because int might match the return type of a GCC 17415 builtin and then its argument prototype would still apply. */ 17416#ifdef __cplusplus 17417extern "C" 17418#endif 17419char sched_yield (); 17420int 17421main () 17422{ 17423return sched_yield (); 17424 ; 17425 return 0; 17426} 17427_ACEOF 17428if ac_fn_c_try_link "$LINENO"; then : 17429 ac_cv_lib_posix4_sched_yield=yes 17430else 17431 ac_cv_lib_posix4_sched_yield=no 17432fi 17433rm -f core conftest.err conftest.$ac_objext \ 17434 conftest$ac_exeext conftest.$ac_ext 17435LIBS=$ac_check_lib_save_LIBS 17436fi 17437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5 17438$as_echo "$ac_cv_lib_posix4_sched_yield" >&6; } 17439if test "x$ac_cv_lib_posix4_sched_yield" = xyes; then : 17440 LIB_SCHED_YIELD=-lposix4 17441fi 17442 17443fi 17444 17445 17446fi 17447rm -f core conftest.err conftest.$ac_objext \ 17448 conftest$ac_exeext conftest.$ac_ext 17449 17450 17451 gl_pthreadlib_body_done=done 17452 fi 17453 17454 LIBTHREAD=$LIBPTHREAD LTLIBTHREAD=$LIBPTHREAD 17455 LIBMULTITHREAD=$LIBPMULTITHREAD LTLIBMULTITHREAD=$LIBPMULTITHREAD 17456 if test $gl_pthread_api = yes; then 17457 if test "$gl_use_threads" = isoc+posix && test "$gl_have_isoc_threads" = yes; then 17458 gl_threads_api='isoc+posix' 17459 17460$as_echo "#define USE_ISOC_AND_POSIX_THREADS 1" >>confdefs.h 17461 17462 LIBTHREAD= LTLIBTHREAD= 17463 else 17464 gl_threads_api=posix 17465 17466$as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h 17467 17468 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then 17469 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then 17470 17471$as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h 17472 17473 LIBTHREAD= LTLIBTHREAD= 17474 fi 17475 fi 17476 fi 17477 fi 17478 fi 17479 if test $gl_threads_api = none; then 17480 if test "$gl_use_threads" = isoc && test "$gl_have_isoc_threads" = yes; then 17481 17482 17483 17484 if test -z "$gl_stdthreadlib_body_done"; then 17485 17486 17487 case "$host_os" in 17488 mingw*) 17489 LIBSTDTHREAD= 17490 ;; 17491 *) 17492 17493 17494 if test -z "$gl_pthreadlib_body_done"; then 17495 gl_pthread_api=no 17496 LIBPTHREAD= 17497 LIBPMULTITHREAD= 17498 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that 17499 # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY. 17500 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 17501if test "x$ac_cv_header_pthread_h" = xyes; then : 17502 gl_have_pthread_h=yes 17503else 17504 gl_have_pthread_h=no 17505fi 17506 17507 17508 if test "$gl_have_pthread_h" = yes; then 17509 # Other possible tests: 17510 # -lpthreads (FSU threads, PCthreads) 17511 # -lgthreads 17512 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist 17513 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but 17514 # the second one only in libpthread, and lock.c needs it. 17515 # 17516 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04 17517 # needs -pthread for some reason. See: 17518 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html 17519 save_LIBS=$LIBS 17520 for gl_pthread in '' '-pthread'; do 17521 LIBS="$LIBS $gl_pthread" 17522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17523/* end confdefs.h. */ 17524#include <pthread.h> 17525 pthread_mutex_t m; 17526 pthread_mutexattr_t ma; 17527 17528int 17529main () 17530{ 17531pthread_mutex_lock (&m); 17532 pthread_mutexattr_init (&ma); 17533 ; 17534 return 0; 17535} 17536_ACEOF 17537if ac_fn_c_try_link "$LINENO"; then : 17538 gl_pthread_api=yes 17539 LIBPTHREAD=$gl_pthread 17540 LIBPMULTITHREAD=$gl_pthread 17541fi 17542rm -f core conftest.err conftest.$ac_objext \ 17543 conftest$ac_exeext conftest.$ac_ext 17544 LIBS=$save_LIBS 17545 test $gl_pthread_api = yes && break 17546 done 17547 17548 # Test for libpthread by looking for pthread_kill. (Not pthread_self, 17549 # since it is defined as a macro on OSF/1.) 17550 if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then 17551 # The program links fine without libpthread. But it may actually 17552 # need to link with libpthread in order to create multiple threads. 17553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 17554$as_echo_n "checking for pthread_kill in -lpthread... " >&6; } 17555if ${ac_cv_lib_pthread_pthread_kill+:} false; then : 17556 $as_echo_n "(cached) " >&6 17557else 17558 ac_check_lib_save_LIBS=$LIBS 17559LIBS="-lpthread $LIBS" 17560cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17561/* end confdefs.h. */ 17562 17563/* Override any GCC internal prototype to avoid an error. 17564 Use char because int might match the return type of a GCC 17565 builtin and then its argument prototype would still apply. */ 17566#ifdef __cplusplus 17567extern "C" 17568#endif 17569char pthread_kill (); 17570int 17571main () 17572{ 17573return pthread_kill (); 17574 ; 17575 return 0; 17576} 17577_ACEOF 17578if ac_fn_c_try_link "$LINENO"; then : 17579 ac_cv_lib_pthread_pthread_kill=yes 17580else 17581 ac_cv_lib_pthread_pthread_kill=no 17582fi 17583rm -f core conftest.err conftest.$ac_objext \ 17584 conftest$ac_exeext conftest.$ac_ext 17585LIBS=$ac_check_lib_save_LIBS 17586fi 17587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 17588$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } 17589if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then : 17590 LIBPMULTITHREAD=-lpthread 17591 # On Solaris and HP-UX, most pthread functions exist also in libc. 17592 # Therefore pthread_in_use() needs to actually try to create a 17593 # thread: pthread_create from libc will fail, whereas 17594 # pthread_create will actually create a thread. 17595 # On Solaris 10 or newer, this test is no longer needed, because 17596 # libc contains the fully functional pthread functions. 17597 case "$host_os" in 17598 solaris | solaris2.1-9 | solaris2.1-9.* | hpux*) 17599 17600$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h 17601 17602 esac 17603 17604fi 17605 17606 elif test $gl_pthread_api != yes; then 17607 # Some library is needed. Try libpthread and libc_r. 17608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 17609$as_echo_n "checking for pthread_kill in -lpthread... " >&6; } 17610if ${ac_cv_lib_pthread_pthread_kill+:} false; then : 17611 $as_echo_n "(cached) " >&6 17612else 17613 ac_check_lib_save_LIBS=$LIBS 17614LIBS="-lpthread $LIBS" 17615cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17616/* end confdefs.h. */ 17617 17618/* Override any GCC internal prototype to avoid an error. 17619 Use char because int might match the return type of a GCC 17620 builtin and then its argument prototype would still apply. */ 17621#ifdef __cplusplus 17622extern "C" 17623#endif 17624char pthread_kill (); 17625int 17626main () 17627{ 17628return pthread_kill (); 17629 ; 17630 return 0; 17631} 17632_ACEOF 17633if ac_fn_c_try_link "$LINENO"; then : 17634 ac_cv_lib_pthread_pthread_kill=yes 17635else 17636 ac_cv_lib_pthread_pthread_kill=no 17637fi 17638rm -f core conftest.err conftest.$ac_objext \ 17639 conftest$ac_exeext conftest.$ac_ext 17640LIBS=$ac_check_lib_save_LIBS 17641fi 17642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 17643$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } 17644if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then : 17645 gl_pthread_api=yes 17646 LIBPTHREAD=-lpthread 17647 LIBPMULTITHREAD=-lpthread 17648fi 17649 17650 if test $gl_pthread_api != yes; then 17651 # For FreeBSD 4. 17652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5 17653$as_echo_n "checking for pthread_kill in -lc_r... " >&6; } 17654if ${ac_cv_lib_c_r_pthread_kill+:} false; then : 17655 $as_echo_n "(cached) " >&6 17656else 17657 ac_check_lib_save_LIBS=$LIBS 17658LIBS="-lc_r $LIBS" 17659cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17660/* end confdefs.h. */ 17661 17662/* Override any GCC internal prototype to avoid an error. 17663 Use char because int might match the return type of a GCC 17664 builtin and then its argument prototype would still apply. */ 17665#ifdef __cplusplus 17666extern "C" 17667#endif 17668char pthread_kill (); 17669int 17670main () 17671{ 17672return pthread_kill (); 17673 ; 17674 return 0; 17675} 17676_ACEOF 17677if ac_fn_c_try_link "$LINENO"; then : 17678 ac_cv_lib_c_r_pthread_kill=yes 17679else 17680 ac_cv_lib_c_r_pthread_kill=no 17681fi 17682rm -f core conftest.err conftest.$ac_objext \ 17683 conftest$ac_exeext conftest.$ac_ext 17684LIBS=$ac_check_lib_save_LIBS 17685fi 17686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5 17687$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; } 17688if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then : 17689 gl_pthread_api=yes 17690 LIBPTHREAD=-lc_r 17691 LIBPMULTITHREAD=-lc_r 17692fi 17693 17694 fi 17695 fi 17696 fi 17697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5 17698$as_echo_n "checking whether POSIX threads API is available... " >&6; } 17699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5 17700$as_echo "$gl_pthread_api" >&6; } 17701 17702 17703 if test $gl_pthread_api = yes; then 17704 17705$as_echo "#define HAVE_PTHREAD_API 1" >>confdefs.h 17706 17707 fi 17708 17709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17710/* end confdefs.h. */ 17711#include <sched.h> 17712int 17713main () 17714{ 17715sched_yield (); 17716 ; 17717 return 0; 17718} 17719_ACEOF 17720if ac_fn_c_try_link "$LINENO"; then : 17721 LIB_SCHED_YIELD= 17722 17723else 17724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5 17725$as_echo_n "checking for sched_yield in -lrt... " >&6; } 17726if ${ac_cv_lib_rt_sched_yield+:} false; then : 17727 $as_echo_n "(cached) " >&6 17728else 17729 ac_check_lib_save_LIBS=$LIBS 17730LIBS="-lrt $LIBS" 17731cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17732/* end confdefs.h. */ 17733 17734/* Override any GCC internal prototype to avoid an error. 17735 Use char because int might match the return type of a GCC 17736 builtin and then its argument prototype would still apply. */ 17737#ifdef __cplusplus 17738extern "C" 17739#endif 17740char sched_yield (); 17741int 17742main () 17743{ 17744return sched_yield (); 17745 ; 17746 return 0; 17747} 17748_ACEOF 17749if ac_fn_c_try_link "$LINENO"; then : 17750 ac_cv_lib_rt_sched_yield=yes 17751else 17752 ac_cv_lib_rt_sched_yield=no 17753fi 17754rm -f core conftest.err conftest.$ac_objext \ 17755 conftest$ac_exeext conftest.$ac_ext 17756LIBS=$ac_check_lib_save_LIBS 17757fi 17758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5 17759$as_echo "$ac_cv_lib_rt_sched_yield" >&6; } 17760if test "x$ac_cv_lib_rt_sched_yield" = xyes; then : 17761 LIB_SCHED_YIELD=-lrt 17762else 17763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5 17764$as_echo_n "checking for sched_yield in -lposix4... " >&6; } 17765if ${ac_cv_lib_posix4_sched_yield+:} false; then : 17766 $as_echo_n "(cached) " >&6 17767else 17768 ac_check_lib_save_LIBS=$LIBS 17769LIBS="-lposix4 $LIBS" 17770cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17771/* end confdefs.h. */ 17772 17773/* Override any GCC internal prototype to avoid an error. 17774 Use char because int might match the return type of a GCC 17775 builtin and then its argument prototype would still apply. */ 17776#ifdef __cplusplus 17777extern "C" 17778#endif 17779char sched_yield (); 17780int 17781main () 17782{ 17783return sched_yield (); 17784 ; 17785 return 0; 17786} 17787_ACEOF 17788if ac_fn_c_try_link "$LINENO"; then : 17789 ac_cv_lib_posix4_sched_yield=yes 17790else 17791 ac_cv_lib_posix4_sched_yield=no 17792fi 17793rm -f core conftest.err conftest.$ac_objext \ 17794 conftest$ac_exeext conftest.$ac_ext 17795LIBS=$ac_check_lib_save_LIBS 17796fi 17797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5 17798$as_echo "$ac_cv_lib_posix4_sched_yield" >&6; } 17799if test "x$ac_cv_lib_posix4_sched_yield" = xyes; then : 17800 LIB_SCHED_YIELD=-lposix4 17801fi 17802 17803fi 17804 17805 17806fi 17807rm -f core conftest.err conftest.$ac_objext \ 17808 conftest$ac_exeext conftest.$ac_ext 17809 17810 17811 gl_pthreadlib_body_done=done 17812 fi 17813 17814 if test $ac_cv_header_threads_h = yes; then 17815 for ac_func in thrd_create 17816do : 17817 ac_fn_c_check_func "$LINENO" "thrd_create" "ac_cv_func_thrd_create" 17818if test "x$ac_cv_func_thrd_create" = xyes; then : 17819 cat >>confdefs.h <<_ACEOF 17820#define HAVE_THRD_CREATE 1 17821_ACEOF 17822 17823fi 17824done 17825 17826 if test $ac_cv_func_thrd_create = yes; then 17827 LIBSTDTHREAD= 17828 else 17829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thrd_create in -lstdthreads" >&5 17830$as_echo_n "checking for thrd_create in -lstdthreads... " >&6; } 17831if ${ac_cv_lib_stdthreads_thrd_create+:} false; then : 17832 $as_echo_n "(cached) " >&6 17833else 17834 ac_check_lib_save_LIBS=$LIBS 17835LIBS="-lstdthreads $LIBS" 17836cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17837/* end confdefs.h. */ 17838 17839/* Override any GCC internal prototype to avoid an error. 17840 Use char because int might match the return type of a GCC 17841 builtin and then its argument prototype would still apply. */ 17842#ifdef __cplusplus 17843extern "C" 17844#endif 17845char thrd_create (); 17846int 17847main () 17848{ 17849return thrd_create (); 17850 ; 17851 return 0; 17852} 17853_ACEOF 17854if ac_fn_c_try_link "$LINENO"; then : 17855 ac_cv_lib_stdthreads_thrd_create=yes 17856else 17857 ac_cv_lib_stdthreads_thrd_create=no 17858fi 17859rm -f core conftest.err conftest.$ac_objext \ 17860 conftest$ac_exeext conftest.$ac_ext 17861LIBS=$ac_check_lib_save_LIBS 17862fi 17863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdthreads_thrd_create" >&5 17864$as_echo "$ac_cv_lib_stdthreads_thrd_create" >&6; } 17865if test "x$ac_cv_lib_stdthreads_thrd_create" = xyes; then : 17866 17867 LIBSTDTHREAD='-lstdthreads -lpthread' 17868 17869else 17870 17871 LIBSTDTHREAD="$LIBPMULTITHREAD" 17872 17873fi 17874 17875 fi 17876 else 17877 LIBSTDTHREAD="$LIBPMULTITHREAD $LIB_SCHED_YIELD" 17878 fi 17879 ;; 17880 esac 17881 17882 17883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ISO C threads API is available" >&5 17884$as_echo_n "checking whether ISO C threads API is available... " >&6; } 17885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_threads_h" >&5 17886$as_echo "$ac_cv_header_threads_h" >&6; } 17887 gl_stdthreadlib_body_done=done 17888 fi 17889 17890 LIBTHREAD=$LIBSTDTHREAD LTLIBTHREAD=$LIBSTDTHREAD 17891 LIBMULTITHREAD=$LIBSTDTHREAD LTLIBMULTITHREAD=$LIBSTDTHREAD 17892 gl_threads_api=isoc 17893 17894$as_echo "#define USE_ISOC_THREADS 1" >>confdefs.h 17895 17896 fi 17897 fi 17898 if test $gl_threads_api = none; then 17899 case "$gl_use_threads" in 17900 yes | windows | win32) # The 'win32' is for backward compatibility. 17901 if { case "$host_os" in 17902 mingw*) true;; 17903 *) false;; 17904 esac 17905 }; then 17906 gl_threads_api=windows 17907 17908$as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h 17909 17910 fi 17911 ;; 17912 esac 17913 fi 17914 fi 17915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5 17916$as_echo_n "checking for multithread API to use... " >&6; } 17917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5 17918$as_echo "$gl_threads_api" >&6; } 17919 17920 17921 17922 17923 17924 17925 17926 17927 17928 17929 17930 if test "$gl_threads_api" = posix; then 17931 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the 17932 # pthread_rwlock_* functions. 17933 has_rwlock=false 17934 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h> 17935" 17936if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then : 17937 has_rwlock=true 17938 17939$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h 17940 17941fi 17942 17943 if $has_rwlock; then 17944 17945 17946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_rwlock_rdlock prefers a writer to a reader" >&5 17947$as_echo_n "checking whether pthread_rwlock_rdlock prefers a writer to a reader... " >&6; } 17948if ${gl_cv_pthread_rwlock_rdlock_prefer_writer+:} false; then : 17949 $as_echo_n "(cached) " >&6 17950else 17951 save_LIBS="$LIBS" 17952 LIBS="$LIBS $LIBMULTITHREAD" 17953 if test "$cross_compiling" = yes; then : 17954 case "$host_os" in 17955 # Guess no on glibc systems. 17956 *-gnu* | gnu*) gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" ;; 17957 # Guess no on musl systems. 17958 *-musl*) gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" ;; 17959 # Guess no on bionic systems. 17960 *-android*) gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" ;; 17961 # Guess yes on native Windows with the mingw-w64 winpthreads library. 17962 # Guess no on native Windows with the gnulib windows-rwlock module. 17963 mingw*) if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then 17964 gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing yes" 17965 else 17966 gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" 17967 fi 17968 ;; 17969 # If we don't know, obey --enable-cross-guesses. 17970 *) gl_cv_pthread_rwlock_rdlock_prefer_writer="$gl_cross_guess_normal" ;; 17971 esac 17972 17973else 17974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17975/* end confdefs.h. */ 17976 17977#include <errno.h> 17978#include <pthread.h> 17979#include <stdlib.h> 17980#include <unistd.h> 17981 17982#define SUCCEED() exit (0) 17983#define FAILURE() exit (1) 17984#define UNEXPECTED(n) (exit (10 + (n))) 17985 17986/* The main thread creates the waiting writer and the requesting reader threads 17987 in the default way; this guarantees that they have the same priority. 17988 We can reuse the main thread as first reader thread. */ 17989 17990static pthread_rwlock_t lock; 17991static pthread_t reader1; 17992static pthread_t writer; 17993static pthread_t reader2; 17994static pthread_t timer; 17995/* Used to pass control from writer to reader2 and from reader2 to timer, 17996 as in a relay race. 17997 Passing control from one running thread to another running thread 17998 is most likely faster than to create the second thread. */ 17999static pthread_mutex_t baton; 18000 18001static void * 18002timer_func (void *ignored) 18003{ 18004 /* Step 13 (can be before or after step 12): 18005 The timer thread takes the baton, then waits a moment to make sure 18006 it can tell whether the second reader thread is blocked at step 12. */ 18007 if (pthread_mutex_lock (&baton)) 18008 UNEXPECTED (13); 18009 usleep (100000); 18010 /* By the time we get here, it's clear that the second reader thread is 18011 blocked at step 12. This is the desired behaviour. */ 18012 SUCCEED (); 18013} 18014 18015static void * 18016reader2_func (void *ignored) 18017{ 18018 int err; 18019 18020 /* Step 8 (can be before or after step 7): 18021 The second reader thread takes the baton, then waits a moment to make sure 18022 the writer thread has reached step 7. */ 18023 if (pthread_mutex_lock (&baton)) 18024 UNEXPECTED (8); 18025 usleep (100000); 18026 /* Step 9: The second reader thread requests the lock. */ 18027 err = pthread_rwlock_tryrdlock (&lock); 18028 if (err == 0) 18029 FAILURE (); 18030 else if (err != EBUSY) 18031 UNEXPECTED (9); 18032 /* Step 10: Launch a timer, to test whether the next call blocks. */ 18033 if (pthread_create (&timer, NULL, timer_func, NULL)) 18034 UNEXPECTED (10); 18035 /* Step 11: Release the baton. */ 18036 if (pthread_mutex_unlock (&baton)) 18037 UNEXPECTED (11); 18038 /* Step 12: The second reader thread requests the lock. */ 18039 err = pthread_rwlock_rdlock (&lock); 18040 if (err == 0) 18041 FAILURE (); 18042 else 18043 UNEXPECTED (12); 18044} 18045 18046static void * 18047writer_func (void *ignored) 18048{ 18049 /* Step 4: Take the baton, so that the second reader thread does not go ahead 18050 too early. */ 18051 if (pthread_mutex_lock (&baton)) 18052 UNEXPECTED (4); 18053 /* Step 5: Create the second reader thread. */ 18054 if (pthread_create (&reader2, NULL, reader2_func, NULL)) 18055 UNEXPECTED (5); 18056 /* Step 6: Release the baton. */ 18057 if (pthread_mutex_unlock (&baton)) 18058 UNEXPECTED (6); 18059 /* Step 7: The writer thread requests the lock. */ 18060 if (pthread_rwlock_wrlock (&lock)) 18061 UNEXPECTED (7); 18062 return NULL; 18063} 18064 18065int 18066main () 18067{ 18068 reader1 = pthread_self (); 18069 18070 /* Step 1: The main thread initializes the lock and the baton. */ 18071 if (pthread_rwlock_init (&lock, NULL)) 18072 UNEXPECTED (1); 18073 if (pthread_mutex_init (&baton, NULL)) 18074 UNEXPECTED (1); 18075 /* Step 2: The main thread acquires the lock as a reader. */ 18076 if (pthread_rwlock_rdlock (&lock)) 18077 UNEXPECTED (2); 18078 /* Step 3: Create the writer thread. */ 18079 if (pthread_create (&writer, NULL, writer_func, NULL)) 18080 UNEXPECTED (3); 18081 /* Job done. Go to sleep. */ 18082 for (;;) 18083 { 18084 sleep (1); 18085 } 18086} 18087 18088_ACEOF 18089if ac_fn_c_try_run "$LINENO"; then : 18090 gl_cv_pthread_rwlock_rdlock_prefer_writer=yes 18091else 18092 gl_cv_pthread_rwlock_rdlock_prefer_writer=no 18093fi 18094rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18095 conftest.$ac_objext conftest.beam conftest.$ac_ext 18096fi 18097 18098 LIBS="$save_LIBS" 18099 18100fi 18101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pthread_rwlock_rdlock_prefer_writer" >&5 18102$as_echo "$gl_cv_pthread_rwlock_rdlock_prefer_writer" >&6; } 18103 case "$gl_cv_pthread_rwlock_rdlock_prefer_writer" in 18104 *yes) 18105 18106$as_echo "#define HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER 1" >>confdefs.h 18107 18108 ;; 18109 esac 18110 18111 fi 18112 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro. 18113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18114/* end confdefs.h. */ 18115 18116 #include <pthread.h> 18117int 18118main () 18119{ 18120 18121#if __FreeBSD__ == 4 18122error "No, in FreeBSD 4.0 recursive mutexes actually don't work." 18123#elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \ 18124 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070) 18125error "No, in Mac OS X < 10.7 recursive mutexes actually don't work." 18126#else 18127int x = (int)PTHREAD_MUTEX_RECURSIVE; 18128return !x; 18129#endif 18130 18131 ; 18132 return 0; 18133} 18134_ACEOF 18135if ac_fn_c_try_compile "$LINENO"; then : 18136 18137$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h 18138 18139fi 18140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18141 fi 18142 : 18143 18144 18145 if test "X$prefix" = "XNONE"; then 18146 acl_final_prefix="$ac_default_prefix" 18147 else 18148 acl_final_prefix="$prefix" 18149 fi 18150 if test "X$exec_prefix" = "XNONE"; then 18151 acl_final_exec_prefix='${prefix}' 18152 else 18153 acl_final_exec_prefix="$exec_prefix" 18154 fi 18155 acl_save_prefix="$prefix" 18156 prefix="$acl_final_prefix" 18157 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 18158 prefix="$acl_save_prefix" 18159 18160 18161 18162# Check whether --with-gnu-ld was given. 18163if test "${with_gnu_ld+set}" = set; then : 18164 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 18165else 18166 with_gnu_ld=no 18167fi 18168 18169# Prepare PATH_SEPARATOR. 18170# The user is always right. 18171if test "${PATH_SEPARATOR+set}" != set; then 18172 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 18173 # contains only /bin. Note that ksh looks also at the FPATH variable, 18174 # so we have to set that as well for the test. 18175 PATH_SEPARATOR=: 18176 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 18177 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 18178 || PATH_SEPARATOR=';' 18179 } 18180fi 18181 18182if test -n "$LD"; then 18183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld" >&5 18184$as_echo_n "checking for ld... " >&6; } 18185elif test "$GCC" = yes; then 18186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 18187$as_echo_n "checking for ld used by $CC... " >&6; } 18188elif test "$with_gnu_ld" = yes; then 18189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 18190$as_echo_n "checking for GNU ld... " >&6; } 18191else 18192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 18193$as_echo_n "checking for non-GNU ld... " >&6; } 18194fi 18195if test -n "$LD"; then 18196 # Let the user override the test with a path. 18197 : 18198else 18199 if ${acl_cv_path_LD+:} false; then : 18200 $as_echo_n "(cached) " >&6 18201else 18202 18203 acl_cv_path_LD= # Final result of this test 18204 ac_prog=ld # Program to search in $PATH 18205 if test "$GCC" = yes; then 18206 # Check if gcc -print-prog-name=ld gives a path. 18207 case $host in 18208 *-*-mingw*) 18209 # gcc leaves a trailing carriage return which upsets mingw 18210 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 18211 *) 18212 acl_output=`($CC -print-prog-name=ld) 2>&5` ;; 18213 esac 18214 case $acl_output in 18215 # Accept absolute paths. 18216 [\\/]* | ?:[\\/]*) 18217 re_direlt='/[^/][^/]*/\.\./' 18218 # Canonicalize the pathname of ld 18219 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'` 18220 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do 18221 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"` 18222 done 18223 # Got the pathname. No search in PATH is needed. 18224 acl_cv_path_LD="$acl_output" 18225 ac_prog= 18226 ;; 18227 "") 18228 # If it fails, then pretend we aren't using GCC. 18229 ;; 18230 *) 18231 # If it is relative, then search for the first ld in PATH. 18232 with_gnu_ld=unknown 18233 ;; 18234 esac 18235 fi 18236 if test -n "$ac_prog"; then 18237 # Search for $ac_prog in $PATH. 18238 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 18239 for ac_dir in $PATH; do 18240 IFS="$acl_save_ifs" 18241 test -z "$ac_dir" && ac_dir=. 18242 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 18243 acl_cv_path_LD="$ac_dir/$ac_prog" 18244 # Check to see if the program is GNU ld. I'd rather use --version, 18245 # but apparently some variants of GNU ld only accept -v. 18246 # Break only if it was the GNU/non-GNU ld that we prefer. 18247 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in 18248 *GNU* | *'with BFD'*) 18249 test "$with_gnu_ld" != no && break 18250 ;; 18251 *) 18252 test "$with_gnu_ld" != yes && break 18253 ;; 18254 esac 18255 fi 18256 done 18257 IFS="$acl_save_ifs" 18258 fi 18259 case $host in 18260 *-*-aix*) 18261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18262/* end confdefs.h. */ 18263#if defined __powerpc64__ || defined _ARCH_PPC64 18264 int ok; 18265 #else 18266 error fail 18267 #endif 18268 18269_ACEOF 18270if ac_fn_c_try_compile "$LINENO"; then : 18271 # The compiler produces 64-bit code. Add option '-b64' so that the 18272 # linker groks 64-bit object files. 18273 case "$acl_cv_path_LD " in 18274 *" -b64 "*) ;; 18275 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;; 18276 esac 18277 18278fi 18279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18280 ;; 18281 sparc64-*-netbsd*) 18282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18283/* end confdefs.h. */ 18284#if defined __sparcv9 || defined __arch64__ 18285 int ok; 18286 #else 18287 error fail 18288 #endif 18289 18290_ACEOF 18291if ac_fn_c_try_compile "$LINENO"; then : 18292 18293else 18294 # The compiler produces 32-bit code. Add option '-m elf32_sparc' 18295 # so that the linker groks 32-bit object files. 18296 case "$acl_cv_path_LD " in 18297 *" -m elf32_sparc "*) ;; 18298 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;; 18299 esac 18300 18301fi 18302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18303 ;; 18304 esac 18305 18306fi 18307 18308 LD="$acl_cv_path_LD" 18309fi 18310if test -n "$LD"; then 18311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 18312$as_echo "$LD" >&6; } 18313else 18314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18315$as_echo "no" >&6; } 18316 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 18317fi 18318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 18319$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 18320if ${acl_cv_prog_gnu_ld+:} false; then : 18321 $as_echo_n "(cached) " >&6 18322else 18323 # I'd rather use --version here, but apparently some GNU lds only accept -v. 18324case `$LD -v 2>&1 </dev/null` in 18325*GNU* | *'with BFD'*) 18326 acl_cv_prog_gnu_ld=yes 18327 ;; 18328*) 18329 acl_cv_prog_gnu_ld=no 18330 ;; 18331esac 18332fi 18333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 18334$as_echo "$acl_cv_prog_gnu_ld" >&6; } 18335with_gnu_ld=$acl_cv_prog_gnu_ld 18336 18337 18338 18339 18340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 18341$as_echo_n "checking for shared library run path origin... " >&6; } 18342if ${acl_cv_rpath+:} false; then : 18343 $as_echo_n "(cached) " >&6 18344else 18345 18346 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 18347 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 18348 . ./conftest.sh 18349 rm -f ./conftest.sh 18350 acl_cv_rpath=done 18351 18352fi 18353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 18354$as_echo "$acl_cv_rpath" >&6; } 18355 wl="$acl_cv_wl" 18356 acl_libext="$acl_cv_libext" 18357 acl_shlibext="$acl_cv_shlibext" 18358 acl_libname_spec="$acl_cv_libname_spec" 18359 acl_library_names_spec="$acl_cv_library_names_spec" 18360 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 18361 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 18362 acl_hardcode_direct="$acl_cv_hardcode_direct" 18363 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" 18364 # Check whether --enable-rpath was given. 18365if test "${enable_rpath+set}" = set; then : 18366 enableval=$enable_rpath; : 18367else 18368 enable_rpath=yes 18369fi 18370 18371 18372 18373 18374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5 18375$as_echo_n "checking 32-bit host C ABI... " >&6; } 18376if ${gl_cv_host_cpu_c_abi_32bit+:} false; then : 18377 $as_echo_n "(cached) " >&6 18378else 18379 if test -n "$gl_cv_host_cpu_c_abi"; then 18380 case "$gl_cv_host_cpu_c_abi" in 18381 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc) 18382 gl_cv_host_cpu_c_abi_32bit=yes ;; 18383 x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 ) 18384 gl_cv_host_cpu_c_abi_32bit=no ;; 18385 *) 18386 gl_cv_host_cpu_c_abi_32bit=unknown ;; 18387 esac 18388 else 18389 case "$host_cpu" in 18390 18391 # CPUs that only support a 32-bit ABI. 18392 arc \ 18393 | bfin \ 18394 | cris* \ 18395 | csky \ 18396 | epiphany \ 18397 | ft32 \ 18398 | h8300 \ 18399 | m68k \ 18400 | microblaze | microblazeel \ 18401 | nds32 | nds32le | nds32be \ 18402 | nios2 | nios2eb | nios2el \ 18403 | or1k* \ 18404 | or32 \ 18405 | sh | sh1234 | sh1234elb \ 18406 | tic6x \ 18407 | xtensa* ) 18408 gl_cv_host_cpu_c_abi_32bit=yes 18409 ;; 18410 18411 # CPUs that only support a 64-bit ABI. 18412 alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \ 18413 | mmix ) 18414 gl_cv_host_cpu_c_abi_32bit=no 18415 ;; 18416 18417 i[34567]86 ) 18418 gl_cv_host_cpu_c_abi_32bit=yes 18419 ;; 18420 18421 x86_64 ) 18422 # On x86_64 systems, the C compiler may be generating code in one of 18423 # these ABIs: 18424 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64. 18425 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64 18426 # with native Windows (mingw, MSVC). 18427 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32. 18428 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386. 18429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18430/* end confdefs.h. */ 18431#if (defined __x86_64__ || defined __amd64__ \ 18432 || defined _M_X64 || defined _M_AMD64) \ 18433 && !(defined __ILP32__ || defined _ILP32) 18434 int ok; 18435 #else 18436 error fail 18437 #endif 18438 18439_ACEOF 18440if ac_fn_c_try_compile "$LINENO"; then : 18441 gl_cv_host_cpu_c_abi_32bit=no 18442else 18443 gl_cv_host_cpu_c_abi_32bit=yes 18444fi 18445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18446 ;; 18447 18448 arm* | aarch64 ) 18449 # Assume arm with EABI. 18450 # On arm64 systems, the C compiler may be generating code in one of 18451 # these ABIs: 18452 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64. 18453 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32. 18454 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf. 18455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18456/* end confdefs.h. */ 18457#if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32) 18458 int ok; 18459 #else 18460 error fail 18461 #endif 18462 18463_ACEOF 18464if ac_fn_c_try_compile "$LINENO"; then : 18465 gl_cv_host_cpu_c_abi_32bit=no 18466else 18467 gl_cv_host_cpu_c_abi_32bit=yes 18468fi 18469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18470 ;; 18471 18472 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 ) 18473 # On hppa, the C compiler may be generating 32-bit code or 64-bit 18474 # code. In the latter case, it defines _LP64 and __LP64__. 18475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18476/* end confdefs.h. */ 18477#ifdef __LP64__ 18478 int ok; 18479 #else 18480 error fail 18481 #endif 18482 18483_ACEOF 18484if ac_fn_c_try_compile "$LINENO"; then : 18485 gl_cv_host_cpu_c_abi_32bit=no 18486else 18487 gl_cv_host_cpu_c_abi_32bit=yes 18488fi 18489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18490 ;; 18491 18492 ia64* ) 18493 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or 18494 # 32-bit code. In the latter case, it defines _ILP32. 18495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18496/* end confdefs.h. */ 18497#ifdef _ILP32 18498 int ok; 18499 #else 18500 error fail 18501 #endif 18502 18503_ACEOF 18504if ac_fn_c_try_compile "$LINENO"; then : 18505 gl_cv_host_cpu_c_abi_32bit=yes 18506else 18507 gl_cv_host_cpu_c_abi_32bit=no 18508fi 18509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18510 ;; 18511 18512 mips* ) 18513 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this 18514 # at 32. 18515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18516/* end confdefs.h. */ 18517#if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64) 18518 int ok; 18519 #else 18520 error fail 18521 #endif 18522 18523_ACEOF 18524if ac_fn_c_try_compile "$LINENO"; then : 18525 gl_cv_host_cpu_c_abi_32bit=no 18526else 18527 gl_cv_host_cpu_c_abi_32bit=yes 18528fi 18529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18530 ;; 18531 18532 powerpc* ) 18533 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD. 18534 # No need to distinguish them here; the caller may distinguish 18535 # them based on the OS. 18536 # On powerpc64 systems, the C compiler may still be generating 18537 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may 18538 # be generating 64-bit code. 18539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18540/* end confdefs.h. */ 18541#if defined __powerpc64__ || defined _ARCH_PPC64 18542 int ok; 18543 #else 18544 error fail 18545 #endif 18546 18547_ACEOF 18548if ac_fn_c_try_compile "$LINENO"; then : 18549 gl_cv_host_cpu_c_abi_32bit=no 18550else 18551 gl_cv_host_cpu_c_abi_32bit=yes 18552fi 18553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18554 ;; 18555 18556 rs6000 ) 18557 gl_cv_host_cpu_c_abi_32bit=yes 18558 ;; 18559 18560 riscv32 | riscv64 ) 18561 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d. 18562 # Size of 'long' and 'void *': 18563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18564/* end confdefs.h. */ 18565#if defined __LP64__ 18566 int ok; 18567 #else 18568 error fail 18569 #endif 18570 18571_ACEOF 18572if ac_fn_c_try_compile "$LINENO"; then : 18573 gl_cv_host_cpu_c_abi_32bit=no 18574else 18575 gl_cv_host_cpu_c_abi_32bit=yes 18576fi 18577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18578 ;; 18579 18580 s390* ) 18581 # On s390x, the C compiler may be generating 64-bit (= s390x) code 18582 # or 31-bit (= s390) code. 18583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18584/* end confdefs.h. */ 18585#if defined __LP64__ || defined __s390x__ 18586 int ok; 18587 #else 18588 error fail 18589 #endif 18590 18591_ACEOF 18592if ac_fn_c_try_compile "$LINENO"; then : 18593 gl_cv_host_cpu_c_abi_32bit=no 18594else 18595 gl_cv_host_cpu_c_abi_32bit=yes 18596fi 18597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18598 ;; 18599 18600 sparc | sparc64 ) 18601 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the 18602 # C compiler still generates 32-bit code. 18603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18604/* end confdefs.h. */ 18605#if defined __sparcv9 || defined __arch64__ 18606 int ok; 18607 #else 18608 error fail 18609 #endif 18610 18611_ACEOF 18612if ac_fn_c_try_compile "$LINENO"; then : 18613 gl_cv_host_cpu_c_abi_32bit=no 18614else 18615 gl_cv_host_cpu_c_abi_32bit=yes 18616fi 18617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18618 ;; 18619 18620 *) 18621 gl_cv_host_cpu_c_abi_32bit=unknown 18622 ;; 18623 esac 18624 fi 18625 18626fi 18627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5 18628$as_echo "$gl_cv_host_cpu_c_abi_32bit" >&6; } 18629 18630 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit" 18631 18632 18633 18634 18635 18636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5 18637$as_echo_n "checking for ELF binary format... " >&6; } 18638if ${gl_cv_elf+:} false; then : 18639 $as_echo_n "(cached) " >&6 18640else 18641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18642/* end confdefs.h. */ 18643#ifdef __ELF__ 18644 Extensible Linking Format 18645 #endif 18646 18647_ACEOF 18648if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18649 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then : 18650 gl_cv_elf=yes 18651else 18652 gl_cv_elf=no 18653fi 18654rm -f conftest* 18655 18656 18657fi 18658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5 18659$as_echo "$gl_cv_elf" >&6; } 18660 if test $gl_cv_elf; then 18661 # Extract the ELF class of a file (5th byte) in decimal. 18662 # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header 18663 if od -A x < /dev/null >/dev/null 2>/dev/null; then 18664 # Use POSIX od. 18665 func_elfclass () 18666 { 18667 od -A n -t d1 -j 4 -N 1 18668 } 18669 else 18670 # Use BSD hexdump. 18671 func_elfclass () 18672 { 18673 dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "' 18674 echo 18675 } 18676 fi 18677 case $HOST_CPU_C_ABI_32BIT in 18678 yes) 18679 # 32-bit ABI. 18680 acl_is_expected_elfclass () 18681 { 18682 test "`func_elfclass | sed -e 's/[ ]//g'`" = 1 18683 } 18684 ;; 18685 no) 18686 # 64-bit ABI. 18687 acl_is_expected_elfclass () 18688 { 18689 test "`func_elfclass | sed -e 's/[ ]//g'`" = 2 18690 } 18691 ;; 18692 *) 18693 # Unknown. 18694 acl_is_expected_elfclass () 18695 { 18696 : 18697 } 18698 ;; 18699 esac 18700 else 18701 acl_is_expected_elfclass () 18702 { 18703 : 18704 } 18705 fi 18706 18707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5 18708$as_echo_n "checking for the common suffixes of directories in the library search path... " >&6; } 18709if ${acl_cv_libdirstems+:} false; then : 18710 $as_echo_n "(cached) " >&6 18711else 18712 acl_libdirstem=lib 18713 acl_libdirstem2= 18714 acl_libdirstem3= 18715 case "$host_os" in 18716 solaris*) 18717 if test $HOST_CPU_C_ABI_32BIT = no; then 18718 acl_libdirstem2=lib/64 18719 case "$host_cpu" in 18720 sparc*) acl_libdirstem3=lib/sparcv9 ;; 18721 i*86 | x86_64) acl_libdirstem3=lib/amd64 ;; 18722 esac 18723 fi 18724 ;; 18725 *) 18726 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \ 18727 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 18728 if test $HOST_CPU_C_ABI_32BIT != no; then 18729 # 32-bit or unknown ABI. 18730 if test -d /usr/lib32; then 18731 acl_libdirstem2=lib32 18732 fi 18733 fi 18734 if test $HOST_CPU_C_ABI_32BIT != yes; then 18735 # 64-bit or unknown ABI. 18736 if test -d /usr/lib64; then 18737 acl_libdirstem3=lib64 18738 fi 18739 fi 18740 if test -n "$searchpath"; then 18741 acl_save_IFS="${IFS= }"; IFS=":" 18742 for searchdir in $searchpath; do 18743 if test -d "$searchdir"; then 18744 case "$searchdir" in 18745 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;; 18746 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;; 18747 */../ | */.. ) 18748 # Better ignore directories of this form. They are misleading. 18749 ;; 18750 *) searchdir=`cd "$searchdir" && pwd` 18751 case "$searchdir" in 18752 */lib32 ) acl_libdirstem2=lib32 ;; 18753 */lib64 ) acl_libdirstem3=lib64 ;; 18754 esac ;; 18755 esac 18756 fi 18757 done 18758 IFS="$acl_save_IFS" 18759 if test $HOST_CPU_C_ABI_32BIT = yes; then 18760 # 32-bit ABI. 18761 acl_libdirstem3= 18762 fi 18763 if test $HOST_CPU_C_ABI_32BIT = no; then 18764 # 64-bit ABI. 18765 acl_libdirstem2= 18766 fi 18767 fi 18768 ;; 18769 esac 18770 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" 18771 test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem" 18772 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3" 18773 18774fi 18775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5 18776$as_echo "$acl_cv_libdirstems" >&6; } 18777 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'` 18778 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'` 18779 acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'` 18780 18781 18782 18783 18784 18785 18786 18787 18788 18789 18790 18791 use_additional=yes 18792 18793 acl_save_prefix="$prefix" 18794 prefix="$acl_final_prefix" 18795 acl_save_exec_prefix="$exec_prefix" 18796 exec_prefix="$acl_final_exec_prefix" 18797 18798 eval additional_includedir=\"$includedir\" 18799 eval additional_libdir=\"$libdir\" 18800 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" 18801 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" 18802 18803 exec_prefix="$acl_save_exec_prefix" 18804 prefix="$acl_save_prefix" 18805 18806 18807# Check whether --with-libiconv-prefix was given. 18808if test "${with_libiconv_prefix+set}" = set; then : 18809 withval=$with_libiconv_prefix; 18810 if test "X$withval" = "Xno"; then 18811 use_additional=no 18812 else 18813 if test "X$withval" = "X"; then 18814 18815 acl_save_prefix="$prefix" 18816 prefix="$acl_final_prefix" 18817 acl_save_exec_prefix="$exec_prefix" 18818 exec_prefix="$acl_final_exec_prefix" 18819 18820 eval additional_includedir=\"$includedir\" 18821 eval additional_libdir=\"$libdir\" 18822 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" 18823 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" 18824 18825 exec_prefix="$acl_save_exec_prefix" 18826 prefix="$acl_save_prefix" 18827 18828 else 18829 additional_includedir="$withval/include" 18830 additional_libdir="$withval/$acl_libdirstem" 18831 additional_libdir2="$withval/$acl_libdirstem2" 18832 additional_libdir3="$withval/$acl_libdirstem3" 18833 fi 18834 fi 18835 18836fi 18837 18838 if test "X$additional_libdir2" = "X$additional_libdir"; then 18839 additional_libdir2= 18840 fi 18841 if test "X$additional_libdir3" = "X$additional_libdir"; then 18842 additional_libdir3= 18843 fi 18844 LIBICONV= 18845 LTLIBICONV= 18846 INCICONV= 18847 LIBICONV_PREFIX= 18848 HAVE_LIBICONV= 18849 rpathdirs= 18850 ltrpathdirs= 18851 names_already_handled= 18852 names_next_round='iconv ' 18853 while test -n "$names_next_round"; do 18854 names_this_round="$names_next_round" 18855 names_next_round= 18856 for name in $names_this_round; do 18857 already_handled= 18858 for n in $names_already_handled; do 18859 if test "$n" = "$name"; then 18860 already_handled=yes 18861 break 18862 fi 18863 done 18864 if test -z "$already_handled"; then 18865 names_already_handled="$names_already_handled $name" 18866 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` 18867 eval value=\"\$HAVE_LIB$uppername\" 18868 if test -n "$value"; then 18869 if test "$value" = yes; then 18870 eval value=\"\$LIB$uppername\" 18871 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 18872 eval value=\"\$LTLIB$uppername\" 18873 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 18874 else 18875 : 18876 fi 18877 else 18878 found_dir= 18879 found_la= 18880 found_so= 18881 found_a= 18882 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 18883 if test -n "$acl_shlibext"; then 18884 shrext=".$acl_shlibext" # typically: shrext=.so 18885 else 18886 shrext= 18887 fi 18888 if test $use_additional = yes; then 18889 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do 18890 if test "X$found_dir" = "X"; then 18891 eval dir=\$$additional_libdir_variable 18892 if test -n "$dir"; then 18893 if test -n "$acl_shlibext"; then 18894 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then 18895 found_dir="$dir" 18896 found_so="$dir/$libname$shrext" 18897 else 18898 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 18899 ver=`(cd "$dir" && \ 18900 for f in "$libname$shrext".*; do echo "$f"; done \ 18901 | sed -e "s,^$libname$shrext\\\\.,," \ 18902 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 18903 | sed 1q ) 2>/dev/null` 18904 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then 18905 found_dir="$dir" 18906 found_so="$dir/$libname$shrext.$ver" 18907 fi 18908 else 18909 eval library_names=\"$acl_library_names_spec\" 18910 for f in $library_names; do 18911 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then 18912 found_dir="$dir" 18913 found_so="$dir/$f" 18914 break 18915 fi 18916 done 18917 fi 18918 fi 18919 fi 18920 if test "X$found_dir" = "X"; then 18921 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then 18922 found_dir="$dir" 18923 found_a="$dir/$libname.$acl_libext" 18924 fi 18925 fi 18926 if test "X$found_dir" != "X"; then 18927 if test -f "$dir/$libname.la"; then 18928 found_la="$dir/$libname.la" 18929 fi 18930 fi 18931 fi 18932 fi 18933 done 18934 fi 18935 if test "X$found_dir" = "X"; then 18936 for x in $LDFLAGS $LTLIBICONV; do 18937 18938 acl_save_prefix="$prefix" 18939 prefix="$acl_final_prefix" 18940 acl_save_exec_prefix="$exec_prefix" 18941 exec_prefix="$acl_final_exec_prefix" 18942 eval x=\"$x\" 18943 exec_prefix="$acl_save_exec_prefix" 18944 prefix="$acl_save_prefix" 18945 18946 case "$x" in 18947 -L*) 18948 dir=`echo "X$x" | sed -e 's/^X-L//'` 18949 if test -n "$acl_shlibext"; then 18950 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then 18951 found_dir="$dir" 18952 found_so="$dir/$libname$shrext" 18953 else 18954 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 18955 ver=`(cd "$dir" && \ 18956 for f in "$libname$shrext".*; do echo "$f"; done \ 18957 | sed -e "s,^$libname$shrext\\\\.,," \ 18958 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 18959 | sed 1q ) 2>/dev/null` 18960 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then 18961 found_dir="$dir" 18962 found_so="$dir/$libname$shrext.$ver" 18963 fi 18964 else 18965 eval library_names=\"$acl_library_names_spec\" 18966 for f in $library_names; do 18967 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then 18968 found_dir="$dir" 18969 found_so="$dir/$f" 18970 break 18971 fi 18972 done 18973 fi 18974 fi 18975 fi 18976 if test "X$found_dir" = "X"; then 18977 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then 18978 found_dir="$dir" 18979 found_a="$dir/$libname.$acl_libext" 18980 fi 18981 fi 18982 if test "X$found_dir" != "X"; then 18983 if test -f "$dir/$libname.la"; then 18984 found_la="$dir/$libname.la" 18985 fi 18986 fi 18987 ;; 18988 esac 18989 if test "X$found_dir" != "X"; then 18990 break 18991 fi 18992 done 18993 fi 18994 if test "X$found_dir" != "X"; then 18995 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 18996 if test "X$found_so" != "X"; then 18997 if test "$enable_rpath" = no \ 18998 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 18999 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \ 19000 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then 19001 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 19002 else 19003 haveit= 19004 for x in $ltrpathdirs; do 19005 if test "X$x" = "X$found_dir"; then 19006 haveit=yes 19007 break 19008 fi 19009 done 19010 if test -z "$haveit"; then 19011 ltrpathdirs="$ltrpathdirs $found_dir" 19012 fi 19013 if test "$acl_hardcode_direct" = yes; then 19014 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 19015 else 19016 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 19017 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 19018 haveit= 19019 for x in $rpathdirs; do 19020 if test "X$x" = "X$found_dir"; then 19021 haveit=yes 19022 break 19023 fi 19024 done 19025 if test -z "$haveit"; then 19026 rpathdirs="$rpathdirs $found_dir" 19027 fi 19028 else 19029 haveit= 19030 for x in $LDFLAGS $LIBICONV; do 19031 19032 acl_save_prefix="$prefix" 19033 prefix="$acl_final_prefix" 19034 acl_save_exec_prefix="$exec_prefix" 19035 exec_prefix="$acl_final_exec_prefix" 19036 eval x=\"$x\" 19037 exec_prefix="$acl_save_exec_prefix" 19038 prefix="$acl_save_prefix" 19039 19040 if test "X$x" = "X-L$found_dir"; then 19041 haveit=yes 19042 break 19043 fi 19044 done 19045 if test -z "$haveit"; then 19046 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 19047 fi 19048 if test "$acl_hardcode_minus_L" != no; then 19049 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 19050 else 19051 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 19052 fi 19053 fi 19054 fi 19055 fi 19056 else 19057 if test "X$found_a" != "X"; then 19058 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 19059 else 19060 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 19061 fi 19062 fi 19063 additional_includedir= 19064 case "$found_dir" in 19065 */$acl_libdirstem | */$acl_libdirstem/) 19066 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 19067 if test "$name" = 'iconv'; then 19068 LIBICONV_PREFIX="$basedir" 19069 fi 19070 additional_includedir="$basedir/include" 19071 ;; 19072 */$acl_libdirstem2 | */$acl_libdirstem2/) 19073 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 19074 if test "$name" = 'iconv'; then 19075 LIBICONV_PREFIX="$basedir" 19076 fi 19077 additional_includedir="$basedir/include" 19078 ;; 19079 */$acl_libdirstem3 | */$acl_libdirstem3/) 19080 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'` 19081 if test "$name" = 'iconv'; then 19082 LIBICONV_PREFIX="$basedir" 19083 fi 19084 additional_includedir="$basedir/include" 19085 ;; 19086 esac 19087 if test "X$additional_includedir" != "X"; then 19088 if test "X$additional_includedir" != "X/usr/include"; then 19089 haveit= 19090 if test "X$additional_includedir" = "X/usr/local/include"; then 19091 if test -n "$GCC"; then 19092 case $host_os in 19093 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 19094 esac 19095 fi 19096 fi 19097 if test -z "$haveit"; then 19098 for x in $CPPFLAGS $INCICONV; do 19099 19100 acl_save_prefix="$prefix" 19101 prefix="$acl_final_prefix" 19102 acl_save_exec_prefix="$exec_prefix" 19103 exec_prefix="$acl_final_exec_prefix" 19104 eval x=\"$x\" 19105 exec_prefix="$acl_save_exec_prefix" 19106 prefix="$acl_save_prefix" 19107 19108 if test "X$x" = "X-I$additional_includedir"; then 19109 haveit=yes 19110 break 19111 fi 19112 done 19113 if test -z "$haveit"; then 19114 if test -d "$additional_includedir"; then 19115 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 19116 fi 19117 fi 19118 fi 19119 fi 19120 fi 19121 if test -n "$found_la"; then 19122 save_libdir="$libdir" 19123 case "$found_la" in 19124 */* | *\\*) . "$found_la" ;; 19125 *) . "./$found_la" ;; 19126 esac 19127 libdir="$save_libdir" 19128 for dep in $dependency_libs; do 19129 case "$dep" in 19130 -L*) 19131 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 19132 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \ 19133 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \ 19134 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then 19135 haveit= 19136 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \ 19137 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \ 19138 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then 19139 if test -n "$GCC"; then 19140 case $host_os in 19141 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 19142 esac 19143 fi 19144 fi 19145 if test -z "$haveit"; then 19146 haveit= 19147 for x in $LDFLAGS $LIBICONV; do 19148 19149 acl_save_prefix="$prefix" 19150 prefix="$acl_final_prefix" 19151 acl_save_exec_prefix="$exec_prefix" 19152 exec_prefix="$acl_final_exec_prefix" 19153 eval x=\"$x\" 19154 exec_prefix="$acl_save_exec_prefix" 19155 prefix="$acl_save_prefix" 19156 19157 if test "X$x" = "X-L$dependency_libdir"; then 19158 haveit=yes 19159 break 19160 fi 19161 done 19162 if test -z "$haveit"; then 19163 if test -d "$dependency_libdir"; then 19164 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir" 19165 fi 19166 fi 19167 haveit= 19168 for x in $LDFLAGS $LTLIBICONV; do 19169 19170 acl_save_prefix="$prefix" 19171 prefix="$acl_final_prefix" 19172 acl_save_exec_prefix="$exec_prefix" 19173 exec_prefix="$acl_final_exec_prefix" 19174 eval x=\"$x\" 19175 exec_prefix="$acl_save_exec_prefix" 19176 prefix="$acl_save_prefix" 19177 19178 if test "X$x" = "X-L$dependency_libdir"; then 19179 haveit=yes 19180 break 19181 fi 19182 done 19183 if test -z "$haveit"; then 19184 if test -d "$dependency_libdir"; then 19185 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir" 19186 fi 19187 fi 19188 fi 19189 fi 19190 ;; 19191 -R*) 19192 dir=`echo "X$dep" | sed -e 's/^X-R//'` 19193 if test "$enable_rpath" != no; then 19194 haveit= 19195 for x in $rpathdirs; do 19196 if test "X$x" = "X$dir"; then 19197 haveit=yes 19198 break 19199 fi 19200 done 19201 if test -z "$haveit"; then 19202 rpathdirs="$rpathdirs $dir" 19203 fi 19204 haveit= 19205 for x in $ltrpathdirs; do 19206 if test "X$x" = "X$dir"; then 19207 haveit=yes 19208 break 19209 fi 19210 done 19211 if test -z "$haveit"; then 19212 ltrpathdirs="$ltrpathdirs $dir" 19213 fi 19214 fi 19215 ;; 19216 -l*) 19217 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 19218 ;; 19219 *.la) 19220 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 19221 ;; 19222 *) 19223 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 19224 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 19225 ;; 19226 esac 19227 done 19228 fi 19229 else 19230 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 19231 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 19232 fi 19233 fi 19234 fi 19235 done 19236 done 19237 if test "X$rpathdirs" != "X"; then 19238 if test -n "$acl_hardcode_libdir_separator"; then 19239 alldirs= 19240 for found_dir in $rpathdirs; do 19241 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 19242 done 19243 acl_save_libdir="$libdir" 19244 libdir="$alldirs" 19245 eval flag=\"$acl_hardcode_libdir_flag_spec\" 19246 libdir="$acl_save_libdir" 19247 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 19248 else 19249 for found_dir in $rpathdirs; do 19250 acl_save_libdir="$libdir" 19251 libdir="$found_dir" 19252 eval flag=\"$acl_hardcode_libdir_flag_spec\" 19253 libdir="$acl_save_libdir" 19254 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 19255 done 19256 fi 19257 fi 19258 if test "X$ltrpathdirs" != "X"; then 19259 for found_dir in $ltrpathdirs; do 19260 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 19261 done 19262 fi 19263 19264 19265 19266 19267 19268 19269 19270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use C++" >&5 19271$as_echo_n "checking whether to use C++... " >&6; } 19272 # Check whether --enable-c++ was given. 19273if test "${enable_c__+set}" = set; then : 19274 enableval=$enable_c__; CXX_CHOICE="$enableval" 19275else 19276 CXX_CHOICE=yes 19277fi 19278 19279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_CHOICE" >&5 19280$as_echo "$CXX_CHOICE" >&6; } 19281 19282 19283 19284 19285 19286 19287 if test "$CXX_CHOICE" = no; then 19288 CXX=no 19289 fi 19290 if test -z "$CXX"; then 19291 if test -n "$CCC"; then 19292 CXX="$CCC" 19293 else 19294 if test -n "$ac_tool_prefix"; then 19295 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 19296 do 19297 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 19298set dummy $ac_tool_prefix$ac_prog; ac_word=$2 19299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19300$as_echo_n "checking for $ac_word... " >&6; } 19301if ${ac_cv_prog_CXX+:} false; then : 19302 $as_echo_n "(cached) " >&6 19303else 19304 if test -n "$CXX"; then 19305 ac_cv_prog_CXX="$CXX" # Let the user override the test. 19306else 19307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19308for as_dir in $PATH 19309do 19310 IFS=$as_save_IFS 19311 test -z "$as_dir" && as_dir=. 19312 for ac_exec_ext in '' $ac_executable_extensions; do 19313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19314 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 19315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19316 break 2 19317 fi 19318done 19319 done 19320IFS=$as_save_IFS 19321 19322fi 19323fi 19324CXX=$ac_cv_prog_CXX 19325if test -n "$CXX"; then 19326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 19327$as_echo "$CXX" >&6; } 19328else 19329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19330$as_echo "no" >&6; } 19331fi 19332 19333 19334 test -n "$CXX" && break 19335 done 19336fi 19337if test -z "$CXX"; then 19338 ac_ct_CXX=$CXX 19339 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 19340do 19341 # Extract the first word of "$ac_prog", so it can be a program name with args. 19342set dummy $ac_prog; ac_word=$2 19343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19344$as_echo_n "checking for $ac_word... " >&6; } 19345if ${ac_cv_prog_ac_ct_CXX+:} false; then : 19346 $as_echo_n "(cached) " >&6 19347else 19348 if test -n "$ac_ct_CXX"; then 19349 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 19350else 19351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19352for as_dir in $PATH 19353do 19354 IFS=$as_save_IFS 19355 test -z "$as_dir" && as_dir=. 19356 for ac_exec_ext in '' $ac_executable_extensions; do 19357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19358 ac_cv_prog_ac_ct_CXX="$ac_prog" 19359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19360 break 2 19361 fi 19362done 19363 done 19364IFS=$as_save_IFS 19365 19366fi 19367fi 19368ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 19369if test -n "$ac_ct_CXX"; then 19370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 19371$as_echo "$ac_ct_CXX" >&6; } 19372else 19373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19374$as_echo "no" >&6; } 19375fi 19376 19377 19378 test -n "$ac_ct_CXX" && break 19379done 19380 19381 if test "x$ac_ct_CXX" = x; then 19382 CXX=":" 19383 else 19384 case $cross_compiling:$ac_tool_warned in 19385yes:) 19386{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19387$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19388ac_tool_warned=yes ;; 19389esac 19390 CXX=$ac_ct_CXX 19391 fi 19392fi 19393 19394 fi 19395 fi 19396 if test "$CXX" != no; then 19397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 19398$as_echo_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works... " >&6; } 19399 ac_ext=cpp 19400ac_cpp='$CXXCPP $CPPFLAGS' 19401ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19402ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19403ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19404 19405 19406 19407 echo 'int main () { return 0; }' > conftest.$ac_ext 19408 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 19409 (eval $ac_link) 2>&5 19410 ac_status=$? 19411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19412 test $ac_status = 0; } && test -s conftest$ac_exeext; then 19413 gl_cv_prog_ansicxx_works=yes 19414 if (./conftest; exit) 2>/dev/null; then 19415 gl_cv_prog_ansicxx_cross=no 19416 else 19417 gl_cv_prog_ansicxx_cross=yes 19418 fi 19419 else 19420 gl_cv_prog_ansicxx_works=no 19421 fi 19422 rm -fr conftest* 19423 ac_ext=c 19424ac_cpp='$CPP $CPPFLAGS' 19425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19427ac_compiler_gnu=$ac_cv_c_compiler_gnu 19428 19429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_ansicxx_works" >&5 19430$as_echo "$gl_cv_prog_ansicxx_works" >&6; } 19431 if test $gl_cv_prog_ansicxx_works = no; then 19432 CXX=no 19433 else 19434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler supports namespaces" >&5 19435$as_echo_n "checking whether the C++ compiler supports namespaces... " >&6; } 19436 ac_ext=cpp 19437ac_cpp='$CXXCPP $CPPFLAGS' 19438ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19439ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19440ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19441 19442 cat <<EOF > conftest.$ac_ext 19443#include <iostream> 19444namespace test { using namespace std; } 19445std::ostream* ptr; 19446int main () { return 0; } 19447EOF 19448 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 19449 (eval $ac_link) 2>&5 19450 ac_status=$? 19451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19452 test $ac_status = 0; } && test -s conftest$ac_exeext; then 19453 gl_cv_prog_ansicxx_namespaces=yes 19454 else 19455 gl_cv_prog_ansicxx_namespaces=no 19456 fi 19457 rm -fr conftest* 19458 ac_ext=c 19459ac_cpp='$CPP $CPPFLAGS' 19460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19462ac_compiler_gnu=$ac_cv_c_compiler_gnu 19463 19464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_ansicxx_namespaces" >&5 19465$as_echo "$gl_cv_prog_ansicxx_namespaces" >&6; } 19466 if test $gl_cv_prog_ansicxx_namespaces = no; then 19467 CXX=no 19468 fi 19469 fi 19470 fi 19471 19472 19473 19474 if test "$CXX" != no; then 19475 ANSICXX_TRUE= 19476 ANSICXX_FALSE='#' 19477else 19478 ANSICXX_TRUE='#' 19479 ANSICXX_FALSE= 19480fi 19481 19482 19483 if test "$CXX" != no; then 19484 19485depcc="$CXX" am_compiler_list= 19486 19487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 19488$as_echo_n "checking dependency style of $depcc... " >&6; } 19489if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 19490 $as_echo_n "(cached) " >&6 19491else 19492 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 19493 # We make a subdir and do the tests there. Otherwise we can end up 19494 # making bogus files that we don't know about and never remove. For 19495 # instance it was reported that on HP-UX the gcc test will end up 19496 # making a dummy file named 'D' -- because '-MD' means "put the output 19497 # in D". 19498 rm -rf conftest.dir 19499 mkdir conftest.dir 19500 # Copy depcomp to subdir because otherwise we won't find it if we're 19501 # using a relative directory. 19502 cp "$am_depcomp" conftest.dir 19503 cd conftest.dir 19504 # We will build objects and dependencies in a subdirectory because 19505 # it helps to detect inapplicable dependency modes. For instance 19506 # both Tru64's cc and ICC support -MD to output dependencies as a 19507 # side effect of compilation, but ICC will put the dependencies in 19508 # the current directory while Tru64 will put them in the object 19509 # directory. 19510 mkdir sub 19511 19512 am_cv_CXX_dependencies_compiler_type=none 19513 if test "$am_compiler_list" = ""; then 19514 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 19515 fi 19516 am__universal=false 19517 case " $depcc " in #( 19518 *\ -arch\ *\ -arch\ *) am__universal=true ;; 19519 esac 19520 19521 for depmode in $am_compiler_list; do 19522 # Setup a source with many dependencies, because some compilers 19523 # like to wrap large dependency lists on column 80 (with \), and 19524 # we should not choose a depcomp mode which is confused by this. 19525 # 19526 # We need to recreate these files for each test, as the compiler may 19527 # overwrite some of them when testing with obscure command lines. 19528 # This happens at least with the AIX C compiler. 19529 : > sub/conftest.c 19530 for i in 1 2 3 4 5 6; do 19531 echo '#include "conftst'$i'.h"' >> sub/conftest.c 19532 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 19533 # Solaris 10 /bin/sh. 19534 echo '/* dummy */' > sub/conftst$i.h 19535 done 19536 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 19537 19538 # We check with '-c' and '-o' for the sake of the "dashmstdout" 19539 # mode. It turns out that the SunPro C++ compiler does not properly 19540 # handle '-M -o', and we need to detect this. Also, some Intel 19541 # versions had trouble with output in subdirs. 19542 am__obj=sub/conftest.${OBJEXT-o} 19543 am__minus_obj="-o $am__obj" 19544 case $depmode in 19545 gcc) 19546 # This depmode causes a compiler race in universal mode. 19547 test "$am__universal" = false || continue 19548 ;; 19549 nosideeffect) 19550 # After this tag, mechanisms are not by side-effect, so they'll 19551 # only be used when explicitly requested. 19552 if test "x$enable_dependency_tracking" = xyes; then 19553 continue 19554 else 19555 break 19556 fi 19557 ;; 19558 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 19559 # This compiler won't grok '-c -o', but also, the minuso test has 19560 # not run yet. These depmodes are late enough in the game, and 19561 # so weak that their functioning should not be impacted. 19562 am__obj=conftest.${OBJEXT-o} 19563 am__minus_obj= 19564 ;; 19565 none) break ;; 19566 esac 19567 if depmode=$depmode \ 19568 source=sub/conftest.c object=$am__obj \ 19569 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 19570 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 19571 >/dev/null 2>conftest.err && 19572 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 19573 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 19574 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 19575 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 19576 # icc doesn't choke on unknown options, it will just issue warnings 19577 # or remarks (even with -Werror). So we grep stderr for any message 19578 # that says an option was ignored or not supported. 19579 # When given -MP, icc 7.0 and 7.1 complain thusly: 19580 # icc: Command line warning: ignoring option '-M'; no argument required 19581 # The diagnosis changed in icc 8.0: 19582 # icc: Command line remark: option '-MP' not supported 19583 if (grep 'ignoring option' conftest.err || 19584 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 19585 am_cv_CXX_dependencies_compiler_type=$depmode 19586 break 19587 fi 19588 fi 19589 done 19590 19591 cd .. 19592 rm -rf conftest.dir 19593else 19594 am_cv_CXX_dependencies_compiler_type=none 19595fi 19596 19597fi 19598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 19599$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 19600CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 19601 19602 if 19603 test "x$enable_dependency_tracking" != xno \ 19604 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 19605 am__fastdepCXX_TRUE= 19606 am__fastdepCXX_FALSE='#' 19607else 19608 am__fastdepCXX_TRUE='#' 19609 am__fastdepCXX_FALSE= 19610fi 19611 19612 19613 ac_ext=cpp 19614ac_cpp='$CXXCPP $CPPFLAGS' 19615ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19616ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19617ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19618 19619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 19620$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 19621if ${ac_cv_cxx_compiler_gnu+:} false; then : 19622 $as_echo_n "(cached) " >&6 19623else 19624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19625/* end confdefs.h. */ 19626 19627int 19628main () 19629{ 19630#ifndef __GNUC__ 19631 choke me 19632#endif 19633 19634 ; 19635 return 0; 19636} 19637_ACEOF 19638if ac_fn_cxx_try_compile "$LINENO"; then : 19639 ac_compiler_gnu=yes 19640else 19641 ac_compiler_gnu=no 19642fi 19643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19644ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 19645 19646fi 19647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 19648$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 19649 if test $ac_compiler_gnu = yes; then 19650 GXX=yes 19651 else 19652 GXX= 19653 fi 19654 ac_test_CXXFLAGS=${CXXFLAGS+set} 19655ac_save_CXXFLAGS=$CXXFLAGS 19656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 19657$as_echo_n "checking whether $CXX accepts -g... " >&6; } 19658if ${ac_cv_prog_cxx_g+:} false; then : 19659 $as_echo_n "(cached) " >&6 19660else 19661 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 19662 ac_cxx_werror_flag=yes 19663 ac_cv_prog_cxx_g=no 19664 CXXFLAGS="-g" 19665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19666/* end confdefs.h. */ 19667 19668int 19669main () 19670{ 19671 19672 ; 19673 return 0; 19674} 19675_ACEOF 19676if ac_fn_cxx_try_compile "$LINENO"; then : 19677 ac_cv_prog_cxx_g=yes 19678else 19679 CXXFLAGS="" 19680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19681/* end confdefs.h. */ 19682 19683int 19684main () 19685{ 19686 19687 ; 19688 return 0; 19689} 19690_ACEOF 19691if ac_fn_cxx_try_compile "$LINENO"; then : 19692 19693else 19694 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 19695 CXXFLAGS="-g" 19696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19697/* end confdefs.h. */ 19698 19699int 19700main () 19701{ 19702 19703 ; 19704 return 0; 19705} 19706_ACEOF 19707if ac_fn_cxx_try_compile "$LINENO"; then : 19708 ac_cv_prog_cxx_g=yes 19709fi 19710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19711fi 19712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19713fi 19714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19715 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 19716fi 19717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 19718$as_echo "$ac_cv_prog_cxx_g" >&6; } 19719if test "$ac_test_CXXFLAGS" = set; then 19720 CXXFLAGS=$ac_save_CXXFLAGS 19721elif test $ac_cv_prog_cxx_g = yes; then 19722 if test "$GXX" = yes; then 19723 CXXFLAGS="-g -O2" 19724 else 19725 CXXFLAGS="-g" 19726 fi 19727else 19728 if test "$GXX" = yes; then 19729 CXXFLAGS="-O2" 19730 else 19731 CXXFLAGS= 19732 fi 19733fi 19734 ac_ext=c 19735ac_cpp='$CPP $CPPFLAGS' 19736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19738ac_compiler_gnu=$ac_cv_c_compiler_gnu 19739 19740 else 19741 if false; then 19742 am__fastdepCXX_TRUE= 19743 am__fastdepCXX_FALSE='#' 19744else 19745 am__fastdepCXX_TRUE='#' 19746 am__fastdepCXX_FALSE= 19747fi 19748 19749 fi 19750 19751 19752 19753 19754 GNULIB_ICONV=0; 19755 ICONV_CONST=; 19756 REPLACE_ICONV=0; 19757 REPLACE_ICONV_OPEN=0; 19758 REPLACE_ICONV_UTF=0; 19759 ICONV_H=''; 19760 if test "$CXX" != no; then 19761 ICONV_H='iconv.h' 19762 fi 19763 19764 if test -n "$ICONV_H"; then 19765 GL_GENERATE_ICONV_H_TRUE= 19766 GL_GENERATE_ICONV_H_FALSE='#' 19767else 19768 GL_GENERATE_ICONV_H_TRUE='#' 19769 GL_GENERATE_ICONV_H_FALSE= 19770fi 19771 19772 19773 19774 19775 19776 19777 19778 am_save_CPPFLAGS="$CPPFLAGS" 19779 19780 for element in $INCICONV; do 19781 haveit= 19782 for x in $CPPFLAGS; do 19783 19784 acl_save_prefix="$prefix" 19785 prefix="$acl_final_prefix" 19786 acl_save_exec_prefix="$exec_prefix" 19787 exec_prefix="$acl_final_exec_prefix" 19788 eval x=\"$x\" 19789 exec_prefix="$acl_save_exec_prefix" 19790 prefix="$acl_save_prefix" 19791 19792 if test "X$x" = "X$element"; then 19793 haveit=yes 19794 break 19795 fi 19796 done 19797 if test -z "$haveit"; then 19798 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 19799 fi 19800 done 19801 19802 19803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 19804$as_echo_n "checking for iconv... " >&6; } 19805if ${am_cv_func_iconv+:} false; then : 19806 $as_echo_n "(cached) " >&6 19807else 19808 19809 am_cv_func_iconv="no, consider installing GNU libiconv" 19810 am_cv_lib_iconv=no 19811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19812/* end confdefs.h. */ 19813 19814#include <stdlib.h> 19815#include <iconv.h> 19816 19817int 19818main () 19819{ 19820iconv_t cd = iconv_open("",""); 19821 iconv(cd,NULL,NULL,NULL,NULL); 19822 iconv_close(cd); 19823 ; 19824 return 0; 19825} 19826_ACEOF 19827if ac_fn_c_try_link "$LINENO"; then : 19828 am_cv_func_iconv=yes 19829fi 19830rm -f core conftest.err conftest.$ac_objext \ 19831 conftest$ac_exeext conftest.$ac_ext 19832 if test "$am_cv_func_iconv" != yes; then 19833 am_save_LIBS="$LIBS" 19834 LIBS="$LIBS $LIBICONV" 19835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19836/* end confdefs.h. */ 19837 19838#include <stdlib.h> 19839#include <iconv.h> 19840 19841int 19842main () 19843{ 19844iconv_t cd = iconv_open("",""); 19845 iconv(cd,NULL,NULL,NULL,NULL); 19846 iconv_close(cd); 19847 ; 19848 return 0; 19849} 19850_ACEOF 19851if ac_fn_c_try_link "$LINENO"; then : 19852 am_cv_lib_iconv=yes 19853 am_cv_func_iconv=yes 19854fi 19855rm -f core conftest.err conftest.$ac_objext \ 19856 conftest$ac_exeext conftest.$ac_ext 19857 LIBS="$am_save_LIBS" 19858 fi 19859 19860fi 19861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 19862$as_echo "$am_cv_func_iconv" >&6; } 19863 if test "$am_cv_func_iconv" = yes; then 19864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 19865$as_echo_n "checking for working iconv... " >&6; } 19866if ${am_cv_func_iconv_works+:} false; then : 19867 $as_echo_n "(cached) " >&6 19868else 19869 19870 am_save_LIBS="$LIBS" 19871 if test $am_cv_lib_iconv = yes; then 19872 LIBS="$LIBS $LIBICONV" 19873 fi 19874 am_cv_func_iconv_works=no 19875 for ac_iconv_const in '' 'const'; do 19876 if test "$cross_compiling" = yes; then : 19877 case "$host_os" in 19878 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 19879 *) am_cv_func_iconv_works="guessing yes" ;; 19880 esac 19881else 19882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19883/* end confdefs.h. */ 19884 19885#include <iconv.h> 19886#include <string.h> 19887 19888#ifndef ICONV_CONST 19889# define ICONV_CONST $ac_iconv_const 19890#endif 19891 19892int 19893main () 19894{ 19895int result = 0; 19896 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful 19897 returns. */ 19898 { 19899 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 19900 if (cd_utf8_to_88591 != (iconv_t)(-1)) 19901 { 19902 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */ 19903 char buf[10]; 19904 ICONV_CONST char *inptr = input; 19905 size_t inbytesleft = strlen (input); 19906 char *outptr = buf; 19907 size_t outbytesleft = sizeof (buf); 19908 size_t res = iconv (cd_utf8_to_88591, 19909 &inptr, &inbytesleft, 19910 &outptr, &outbytesleft); 19911 if (res == 0) 19912 result |= 1; 19913 iconv_close (cd_utf8_to_88591); 19914 } 19915 } 19916 /* Test against Solaris 10 bug: Failures are not distinguishable from 19917 successful returns. */ 19918 { 19919 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); 19920 if (cd_ascii_to_88591 != (iconv_t)(-1)) 19921 { 19922 static ICONV_CONST char input[] = "\263"; 19923 char buf[10]; 19924 ICONV_CONST char *inptr = input; 19925 size_t inbytesleft = strlen (input); 19926 char *outptr = buf; 19927 size_t outbytesleft = sizeof (buf); 19928 size_t res = iconv (cd_ascii_to_88591, 19929 &inptr, &inbytesleft, 19930 &outptr, &outbytesleft); 19931 if (res == 0) 19932 result |= 2; 19933 iconv_close (cd_ascii_to_88591); 19934 } 19935 } 19936 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ 19937 { 19938 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); 19939 if (cd_88591_to_utf8 != (iconv_t)(-1)) 19940 { 19941 static ICONV_CONST char input[] = "\304"; 19942 static char buf[2] = { (char)0xDE, (char)0xAD }; 19943 ICONV_CONST char *inptr = input; 19944 size_t inbytesleft = 1; 19945 char *outptr = buf; 19946 size_t outbytesleft = 1; 19947 size_t res = iconv (cd_88591_to_utf8, 19948 &inptr, &inbytesleft, 19949 &outptr, &outbytesleft); 19950 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) 19951 result |= 4; 19952 iconv_close (cd_88591_to_utf8); 19953 } 19954 } 19955#if 0 /* This bug could be worked around by the caller. */ 19956 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 19957 { 19958 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 19959 if (cd_88591_to_utf8 != (iconv_t)(-1)) 19960 { 19961 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 19962 char buf[50]; 19963 ICONV_CONST char *inptr = input; 19964 size_t inbytesleft = strlen (input); 19965 char *outptr = buf; 19966 size_t outbytesleft = sizeof (buf); 19967 size_t res = iconv (cd_88591_to_utf8, 19968 &inptr, &inbytesleft, 19969 &outptr, &outbytesleft); 19970 if ((int)res > 0) 19971 result |= 8; 19972 iconv_close (cd_88591_to_utf8); 19973 } 19974 } 19975#endif 19976 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 19977 provided. */ 19978 { 19979 /* Try standardized names. */ 19980 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP"); 19981 /* Try IRIX, OSF/1 names. */ 19982 iconv_t cd2 = iconv_open ("UTF-8", "eucJP"); 19983 /* Try AIX names. */ 19984 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP"); 19985 /* Try HP-UX names. */ 19986 iconv_t cd4 = iconv_open ("utf8", "eucJP"); 19987 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1) 19988 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1)) 19989 result |= 16; 19990 if (cd1 != (iconv_t)(-1)) 19991 iconv_close (cd1); 19992 if (cd2 != (iconv_t)(-1)) 19993 iconv_close (cd2); 19994 if (cd3 != (iconv_t)(-1)) 19995 iconv_close (cd3); 19996 if (cd4 != (iconv_t)(-1)) 19997 iconv_close (cd4); 19998 } 19999 return result; 20000 20001 ; 20002 return 0; 20003} 20004_ACEOF 20005if ac_fn_c_try_run "$LINENO"; then : 20006 am_cv_func_iconv_works=yes 20007fi 20008rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20009 conftest.$ac_objext conftest.beam conftest.$ac_ext 20010fi 20011 20012 test "$am_cv_func_iconv_works" = no || break 20013 done 20014 LIBS="$am_save_LIBS" 20015 20016fi 20017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 20018$as_echo "$am_cv_func_iconv_works" >&6; } 20019 case "$am_cv_func_iconv_works" in 20020 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 20021 *) am_func_iconv=yes ;; 20022 esac 20023 else 20024 am_func_iconv=no am_cv_lib_iconv=no 20025 fi 20026 if test "$am_func_iconv" = yes; then 20027 20028$as_echo "#define HAVE_ICONV 1" >>confdefs.h 20029 20030 fi 20031 if test "$am_cv_lib_iconv" = yes; then 20032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 20033$as_echo_n "checking how to link with libiconv... " >&6; } 20034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 20035$as_echo "$LIBICONV" >&6; } 20036 else 20037 CPPFLAGS="$am_save_CPPFLAGS" 20038 LIBICONV= 20039 LTLIBICONV= 20040 fi 20041 20042 20043 20044 if test "$am_cv_func_iconv" = yes; then 20045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 20046$as_echo_n "checking for iconv declaration... " >&6; } 20047 if ${am_cv_proto_iconv+:} false; then : 20048 $as_echo_n "(cached) " >&6 20049else 20050 20051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20052/* end confdefs.h. */ 20053 20054#include <stdlib.h> 20055#include <iconv.h> 20056extern 20057#ifdef __cplusplus 20058"C" 20059#endif 20060#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus) 20061size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 20062#else 20063size_t iconv(); 20064#endif 20065 20066int 20067main () 20068{ 20069 20070 ; 20071 return 0; 20072} 20073_ACEOF 20074if ac_fn_c_try_compile "$LINENO"; then : 20075 am_cv_proto_iconv_arg1="" 20076else 20077 am_cv_proto_iconv_arg1="const" 20078fi 20079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20080 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);" 20081fi 20082 20083 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 20084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 20085 $am_cv_proto_iconv" >&5 20086$as_echo " 20087 $am_cv_proto_iconv" >&6; } 20088 else 20089 am_cv_proto_iconv_arg1="" 20090 fi 20091 20092cat >>confdefs.h <<_ACEOF 20093#define ICONV_CONST $am_cv_proto_iconv_arg1 20094_ACEOF 20095 20096 20097 if test -n "$am_cv_proto_iconv_arg1"; then 20098 ICONV_CONST="const" 20099 fi 20100 20101 20102 20103 20104 20105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20106/* end confdefs.h. */ 20107int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; } 20108int 20109main () 20110{ 20111 20112 ; 20113 return 0; 20114} 20115_ACEOF 20116if ac_fn_c_try_link "$LINENO"; then : 20117 20118$as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h 20119 20120fi 20121rm -f core conftest.err conftest.$ac_objext \ 20122 conftest$ac_exeext conftest.$ac_ext 20123 20124 for ac_header in inttypes.h limits.h unistd.h sys/param.h 20125do : 20126 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20127ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 20128if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 20129 cat >>confdefs.h <<_ACEOF 20130#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20131_ACEOF 20132 20133fi 20134 20135done 20136 20137 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \ 20138 stpcpy strcasecmp strdup strtoul tsearch __fsetlocking 20139do : 20140 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20141ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20142if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 20143 cat >>confdefs.h <<_ACEOF 20144#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20145_ACEOF 20146 20147fi 20148done 20149 20150 20151 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h> 20152" 20153if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then : 20154 ac_have_decl=1 20155else 20156 ac_have_decl=0 20157fi 20158 20159cat >>confdefs.h <<_ACEOF 20160#define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl 20161_ACEOF 20162ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h> 20163" 20164if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then : 20165 ac_have_decl=1 20166else 20167 ac_have_decl=0 20168fi 20169 20170cat >>confdefs.h <<_ACEOF 20171#define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl 20172_ACEOF 20173 20174 20175 20176 20177 20178 for ac_prog in bison 20179do 20180 # Extract the first word of "$ac_prog", so it can be a program name with args. 20181set dummy $ac_prog; ac_word=$2 20182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20183$as_echo_n "checking for $ac_word... " >&6; } 20184if ${ac_cv_prog_INTLBISON+:} false; then : 20185 $as_echo_n "(cached) " >&6 20186else 20187 if test -n "$INTLBISON"; then 20188 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. 20189else 20190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20191for as_dir in $PATH 20192do 20193 IFS=$as_save_IFS 20194 test -z "$as_dir" && as_dir=. 20195 for ac_exec_ext in '' $ac_executable_extensions; do 20196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20197 ac_cv_prog_INTLBISON="$ac_prog" 20198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20199 break 2 20200 fi 20201done 20202 done 20203IFS=$as_save_IFS 20204 20205fi 20206fi 20207INTLBISON=$ac_cv_prog_INTLBISON 20208if test -n "$INTLBISON"; then 20209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5 20210$as_echo "$INTLBISON" >&6; } 20211else 20212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20213$as_echo "no" >&6; } 20214fi 20215 20216 20217 test -n "$INTLBISON" && break 20218done 20219 20220 if test -z "$INTLBISON"; then 20221 ac_verc_fail=yes 20222 else 20223 cat >conftest.y <<_ACEOF 20224%require "3.0" 20225%% 20226exp: 20227_ACEOF 20228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison 3.0 or newer" >&5 20229$as_echo_n "checking for bison 3.0 or newer... " >&6; } 20230 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` 20231 : ${ac_prog_version:='v. ?.??'} 20232 if $INTLBISON conftest.y -o conftest.c 2>/dev/null; then 20233 ac_prog_version="$ac_prog_version, ok" 20234 ac_verc_fail=no 20235 else 20236 ac_prog_version="$ac_prog_version, bad" 20237 ac_verc_fail=yes 20238 fi 20239 rm -f conftest.y conftest.c 20240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 20241$as_echo "$ac_prog_version" >&6; } 20242 fi 20243 if test $ac_verc_fail = yes; then 20244 INTLBISON=: 20245 fi 20246 20247 20248 20249 20250 20251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 20252$as_echo_n "checking for long long int... " >&6; } 20253if ${ac_cv_type_long_long_int+:} false; then : 20254 $as_echo_n "(cached) " >&6 20255else 20256 ac_cv_type_long_long_int=yes 20257 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 20258 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int 20259 if test $ac_cv_type_long_long_int = yes; then 20260 if test "$cross_compiling" = yes; then : 20261 : 20262else 20263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20264/* end confdefs.h. */ 20265#include <limits.h> 20266 #ifndef LLONG_MAX 20267 # define HALF \ 20268 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 20269 # define LLONG_MAX (HALF - 1 + HALF) 20270 #endif 20271int 20272main () 20273{ 20274long long int n = 1; 20275 int i; 20276 for (i = 0; ; i++) 20277 { 20278 long long int m = n << i; 20279 if (m >> i != n) 20280 return 1; 20281 if (LLONG_MAX / 2 < m) 20282 break; 20283 } 20284 return 0; 20285 ; 20286 return 0; 20287} 20288_ACEOF 20289if ac_fn_c_try_run "$LINENO"; then : 20290 20291else 20292 ac_cv_type_long_long_int=no 20293fi 20294rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20295 conftest.$ac_objext conftest.beam conftest.$ac_ext 20296fi 20297 20298 fi 20299 fi 20300fi 20301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 20302$as_echo "$ac_cv_type_long_long_int" >&6; } 20303 if test $ac_cv_type_long_long_int = yes; then 20304 20305$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 20306 20307 fi 20308 20309 20310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 20311$as_echo_n "checking for wchar_t... " >&6; } 20312if ${gt_cv_c_wchar_t+:} false; then : 20313 $as_echo_n "(cached) " >&6 20314else 20315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20316/* end confdefs.h. */ 20317#include <stddef.h> 20318 wchar_t foo = (wchar_t)'\0'; 20319int 20320main () 20321{ 20322 20323 ; 20324 return 0; 20325} 20326_ACEOF 20327if ac_fn_c_try_compile "$LINENO"; then : 20328 gt_cv_c_wchar_t=yes 20329else 20330 gt_cv_c_wchar_t=no 20331fi 20332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20333fi 20334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 20335$as_echo "$gt_cv_c_wchar_t" >&6; } 20336 if test $gt_cv_c_wchar_t = yes; then 20337 20338$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h 20339 20340 fi 20341 20342 20343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 20344$as_echo_n "checking for wint_t... " >&6; } 20345if ${gt_cv_c_wint_t+:} false; then : 20346 $as_echo_n "(cached) " >&6 20347else 20348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20349/* end confdefs.h. */ 20350 20351/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 20352 <wchar.h>. 20353 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included 20354 before <wchar.h>. */ 20355#include <stddef.h> 20356#include <stdio.h> 20357#include <time.h> 20358#include <wchar.h> 20359 wint_t foo = (wchar_t)'\0'; 20360int 20361main () 20362{ 20363 20364 ; 20365 return 0; 20366} 20367_ACEOF 20368if ac_fn_c_try_compile "$LINENO"; then : 20369 gt_cv_c_wint_t=yes 20370else 20371 gt_cv_c_wint_t=no 20372fi 20373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20374fi 20375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 20376$as_echo "$gt_cv_c_wint_t" >&6; } 20377 if test $gt_cv_c_wint_t = yes; then 20378 20379$as_echo "#define HAVE_WINT_T 1" >>confdefs.h 20380 20381 20382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wint_t is too small" >&5 20383$as_echo_n "checking whether wint_t is too small... " >&6; } 20384if ${gl_cv_type_wint_t_too_small+:} false; then : 20385 $as_echo_n "(cached) " >&6 20386else 20387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20388/* end confdefs.h. */ 20389 20390/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 20391 <wchar.h>. 20392 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 20393 included before <wchar.h>. */ 20394#if !(defined __GLIBC__ && !defined __UCLIBC__) 20395# include <stddef.h> 20396# include <stdio.h> 20397# include <time.h> 20398#endif 20399#include <wchar.h> 20400 int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1]; 20401 20402int 20403main () 20404{ 20405 20406 ; 20407 return 0; 20408} 20409_ACEOF 20410if ac_fn_c_try_compile "$LINENO"; then : 20411 gl_cv_type_wint_t_too_small=no 20412else 20413 gl_cv_type_wint_t_too_small=yes 20414fi 20415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20416fi 20417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_too_small" >&5 20418$as_echo "$gl_cv_type_wint_t_too_small" >&6; } 20419 if test $gl_cv_type_wint_t_too_small = yes; then 20420 GNULIB_OVERRIDES_WINT_T=1 20421 else 20422 GNULIB_OVERRIDES_WINT_T=0 20423 fi 20424 else 20425 GNULIB_OVERRIDES_WINT_T=0 20426 fi 20427 20428 20429 20430 20431 20432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5 20433$as_echo_n "checking for intmax_t... " >&6; } 20434if ${gt_cv_c_intmax_t+:} false; then : 20435 $as_echo_n "(cached) " >&6 20436else 20437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20438/* end confdefs.h. */ 20439 20440#include <stddef.h> 20441#include <stdlib.h> 20442#if HAVE_STDINT_H_WITH_UINTMAX 20443#include <stdint.h> 20444#endif 20445#if HAVE_INTTYPES_H_WITH_UINTMAX 20446#include <inttypes.h> 20447#endif 20448 20449int 20450main () 20451{ 20452intmax_t x = -1; 20453 return !x; 20454 ; 20455 return 0; 20456} 20457_ACEOF 20458if ac_fn_c_try_compile "$LINENO"; then : 20459 gt_cv_c_intmax_t=yes 20460else 20461 gt_cv_c_intmax_t=no 20462fi 20463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20464fi 20465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5 20466$as_echo "$gt_cv_c_intmax_t" >&6; } 20467 if test $gt_cv_c_intmax_t = yes; then 20468 20469$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h 20470 20471 fi 20472 20473 20474 20475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5 20476$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; } 20477if ${gt_cv_func_printf_posix+:} false; then : 20478 $as_echo_n "(cached) " >&6 20479else 20480 20481 if test "$cross_compiling" = yes; then : 20482 20483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20484/* end confdefs.h. */ 20485 20486#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ 20487 notposix 20488#endif 20489 20490_ACEOF 20491if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20492 $EGREP "notposix" >/dev/null 2>&1; then : 20493 gt_cv_func_printf_posix="guessing no" 20494else 20495 gt_cv_func_printf_posix="guessing yes" 20496fi 20497rm -f conftest* 20498 20499 20500else 20501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20502/* end confdefs.h. */ 20503 20504#include <stdio.h> 20505#include <string.h> 20506/* The string "%2$d %1$d", with dollar characters protected from the shell's 20507 dollar expansion (possibly an autoconf bug). */ 20508static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; 20509static char buf[100]; 20510int main () 20511{ 20512 sprintf (buf, format, 33, 55); 20513 return (strcmp (buf, "55 33") != 0); 20514} 20515_ACEOF 20516if ac_fn_c_try_run "$LINENO"; then : 20517 gt_cv_func_printf_posix=yes 20518else 20519 gt_cv_func_printf_posix=no 20520fi 20521rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20522 conftest.$ac_objext conftest.beam conftest.$ac_ext 20523fi 20524 20525 20526fi 20527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5 20528$as_echo "$gt_cv_func_printf_posix" >&6; } 20529 case $gt_cv_func_printf_posix in 20530 *yes) 20531 20532$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h 20533 20534 ;; 20535 esac 20536 20537 20538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5 20539$as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; } 20540if ${ac_cv_gnu_library_2_1+:} false; then : 20541 $as_echo_n "(cached) " >&6 20542else 20543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20544/* end confdefs.h. */ 20545 20546#include <features.h> 20547#ifdef __GNU_LIBRARY__ 20548 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) 20549 Lucky GNU user 20550 #endif 20551#endif 20552#ifdef __UCLIBC__ 20553 Lucky user 20554#endif 20555 20556_ACEOF 20557if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20558 $EGREP "Lucky" >/dev/null 2>&1; then : 20559 ac_cv_gnu_library_2_1=yes 20560else 20561 ac_cv_gnu_library_2_1=no 20562fi 20563rm -f conftest* 20564 20565 20566 20567fi 20568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5 20569$as_echo "$ac_cv_gnu_library_2_1" >&6; } 20570 20571 GLIBC21="$ac_cv_gnu_library_2_1" 20572 20573 20574 20575 for ac_header in stdint.h 20576do : 20577 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 20578if test "x$ac_cv_header_stdint_h" = xyes; then : 20579 cat >>confdefs.h <<_ACEOF 20580#define HAVE_STDINT_H 1 20581_ACEOF 20582 20583fi 20584 20585done 20586 20587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5 20588$as_echo_n "checking for SIZE_MAX... " >&6; } 20589if ${gl_cv_size_max+:} false; then : 20590 $as_echo_n "(cached) " >&6 20591else 20592 20593 gl_cv_size_max=no 20594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20595/* end confdefs.h. */ 20596 20597#include <limits.h> 20598#if HAVE_STDINT_H 20599#include <stdint.h> 20600#endif 20601#ifdef SIZE_MAX 20602Found it 20603#endif 20604 20605_ACEOF 20606if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20607 $EGREP "Found it" >/dev/null 2>&1; then : 20608 gl_cv_size_max=yes 20609fi 20610rm -f conftest* 20611 20612 if test $gl_cv_size_max != yes; then 20613 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h> 20614#include <limits.h>"; then : 20615 20616else 20617 size_t_bits_minus_1= 20618fi 20619 20620 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then : 20621 20622else 20623 fits_in_uint= 20624fi 20625 20626 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then 20627 if test $fits_in_uint = 1; then 20628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20629/* end confdefs.h. */ 20630#include <stddef.h> 20631 extern size_t foo; 20632 extern unsigned long foo; 20633 20634int 20635main () 20636{ 20637 20638 ; 20639 return 0; 20640} 20641_ACEOF 20642if ac_fn_c_try_compile "$LINENO"; then : 20643 fits_in_uint=0 20644fi 20645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20646 fi 20647 if test $fits_in_uint = 1; then 20648 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)" 20649 else 20650 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)" 20651 fi 20652 else 20653 gl_cv_size_max='((size_t)~(size_t)0)' 20654 fi 20655 fi 20656 20657fi 20658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5 20659$as_echo "$gl_cv_size_max" >&6; } 20660 if test "$gl_cv_size_max" != yes; then 20661 20662cat >>confdefs.h <<_ACEOF 20663#define SIZE_MAX $gl_cv_size_max 20664_ACEOF 20665 20666 fi 20667 20668 20669 20670 20671 for ac_header in stdint.h 20672do : 20673 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 20674if test "x$ac_cv_header_stdint_h" = xyes; then : 20675 cat >>confdefs.h <<_ACEOF 20676#define HAVE_STDINT_H 1 20677_ACEOF 20678 20679fi 20680 20681done 20682 20683 20684 20685 20686 20687 for ac_func in $ac_func_list 20688do : 20689 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20690ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20691if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 20692 cat >>confdefs.h <<_ACEOF 20693#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20694_ACEOF 20695 20696fi 20697done 20698 20699 20700 20701 20702 20703 20704 20705 20706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5 20707$as_echo_n "checking for working fcntl.h... " >&6; } 20708if ${gl_cv_header_working_fcntl_h+:} false; then : 20709 $as_echo_n "(cached) " >&6 20710else 20711 if test "$cross_compiling" = yes; then : 20712 case "$host_os" in 20713 # Guess 'no' on native Windows. 20714 mingw*) gl_cv_header_working_fcntl_h='no' ;; 20715 *) gl_cv_header_working_fcntl_h=cross-compiling ;; 20716 esac 20717 20718else 20719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20720/* end confdefs.h. */ 20721#include <sys/types.h> 20722 #include <sys/stat.h> 20723 #if HAVE_UNISTD_H 20724 # include <unistd.h> 20725 #else /* on Windows with MSVC */ 20726 # include <io.h> 20727 # include <stdlib.h> 20728 # defined sleep(n) _sleep ((n) * 1000) 20729 #endif 20730 #include <fcntl.h> 20731 #ifndef O_NOATIME 20732 #define O_NOATIME 0 20733 #endif 20734 #ifndef O_NOFOLLOW 20735 #define O_NOFOLLOW 0 20736 #endif 20737 static int const constants[] = 20738 { 20739 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND, 20740 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY 20741 }; 20742 20743int 20744main () 20745{ 20746 20747 int result = !constants; 20748 #if HAVE_SYMLINK 20749 { 20750 static char const sym[] = "conftest.sym"; 20751 if (symlink ("/dev/null", sym) != 0) 20752 result |= 2; 20753 else 20754 { 20755 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0); 20756 if (fd >= 0) 20757 { 20758 close (fd); 20759 result |= 4; 20760 } 20761 } 20762 if (unlink (sym) != 0 || symlink (".", sym) != 0) 20763 result |= 2; 20764 else 20765 { 20766 int fd = open (sym, O_RDONLY | O_NOFOLLOW); 20767 if (fd >= 0) 20768 { 20769 close (fd); 20770 result |= 4; 20771 } 20772 } 20773 unlink (sym); 20774 } 20775 #endif 20776 { 20777 static char const file[] = "confdefs.h"; 20778 int fd = open (file, O_RDONLY | O_NOATIME); 20779 if (fd < 0) 20780 result |= 8; 20781 else 20782 { 20783 struct stat st0; 20784 if (fstat (fd, &st0) != 0) 20785 result |= 16; 20786 else 20787 { 20788 char c; 20789 sleep (1); 20790 if (read (fd, &c, 1) != 1) 20791 result |= 24; 20792 else 20793 { 20794 if (close (fd) != 0) 20795 result |= 32; 20796 else 20797 { 20798 struct stat st1; 20799 if (stat (file, &st1) != 0) 20800 result |= 40; 20801 else 20802 if (st0.st_atime != st1.st_atime) 20803 result |= 64; 20804 } 20805 } 20806 } 20807 } 20808 } 20809 return result; 20810 ; 20811 return 0; 20812} 20813_ACEOF 20814if ac_fn_c_try_run "$LINENO"; then : 20815 gl_cv_header_working_fcntl_h=yes 20816else 20817 case $? in #( 20818 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #( 20819 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #( 20820 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #( 20821 *) gl_cv_header_working_fcntl_h='no';; 20822 esac 20823fi 20824rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20825 conftest.$ac_objext conftest.beam conftest.$ac_ext 20826fi 20827 20828 20829fi 20830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5 20831$as_echo "$gl_cv_header_working_fcntl_h" >&6; } 20832 20833 case $gl_cv_header_working_fcntl_h in #( 20834 *O_NOATIME* | no | cross-compiling) ac_val=0;; #( 20835 *) ac_val=1;; 20836 esac 20837 20838cat >>confdefs.h <<_ACEOF 20839#define HAVE_WORKING_O_NOATIME $ac_val 20840_ACEOF 20841 20842 20843 case $gl_cv_header_working_fcntl_h in #( 20844 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #( 20845 *) ac_val=1;; 20846 esac 20847 20848cat >>confdefs.h <<_ACEOF 20849#define HAVE_WORKING_O_NOFOLLOW $ac_val 20850_ACEOF 20851 20852 20853 20854 20855 20856 20857 20858 20859 20860 20861 20862 20863 20864 20865 20866 20867 20868 if test $ac_cv_func_uselocale = yes; then 20869 20870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uselocale works" >&5 20871$as_echo_n "checking whether uselocale works... " >&6; } 20872if ${gt_cv_func_uselocale_works+:} false; then : 20873 $as_echo_n "(cached) " >&6 20874else 20875 if test "$cross_compiling" = yes; then : 20876 # Guess no on AIX and z/OS, yes otherwise. 20877 case "$host_os" in 20878 aix* | openedition*) gt_cv_func_uselocale_works="guessing no" ;; 20879 *) gt_cv_func_uselocale_works="guessing yes" ;; 20880 esac 20881 20882else 20883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20884/* end confdefs.h. */ 20885 20886#include <locale.h> 20887#if HAVE_XLOCALE_H 20888# include <xlocale.h> 20889#endif 20890locale_t loc1; 20891int main () 20892{ 20893 uselocale (NULL); 20894 setlocale (LC_ALL, "en_US.UTF-8"); 20895 return 0; 20896} 20897_ACEOF 20898if ac_fn_c_try_run "$LINENO"; then : 20899 gt_cv_func_uselocale_works=yes 20900else 20901 gt_cv_func_uselocale_works=no 20902fi 20903rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20904 conftest.$ac_objext conftest.beam conftest.$ac_ext 20905fi 20906 20907 20908fi 20909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_uselocale_works" >&5 20910$as_echo "$gt_cv_func_uselocale_works" >&6; } 20911 else 20912 gt_cv_func_uselocale_works=no 20913 fi 20914 case "$gt_cv_func_uselocale_works" in 20915 *yes) 20916 20917$as_echo "#define HAVE_WORKING_USELOCALE 1" >>confdefs.h 20918 20919 ;; 20920 esac 20921 20922 20923 case "$gt_cv_func_uselocale_works" in 20924 *yes) 20925 20926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fake locale system (OpenBSD)" >&5 20927$as_echo_n "checking for fake locale system (OpenBSD)... " >&6; } 20928if ${gt_cv_locale_fake+:} false; then : 20929 $as_echo_n "(cached) " >&6 20930else 20931 if test "$cross_compiling" = yes; then : 20932 case "$host_os" in 20933 openbsd*) gt_cv_locale_fake="guessing yes" ;; 20934 *) gt_cv_locale_fake="guessing no" ;; 20935 esac 20936 20937else 20938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20939/* end confdefs.h. */ 20940 20941#include <locale.h> 20942#if HAVE_XLOCALE_H 20943# include <xlocale.h> 20944#endif 20945int main () 20946{ 20947 locale_t loc1, loc2; 20948 if (setlocale (LC_ALL, "de_DE.UTF-8") == NULL) return 1; 20949 if (setlocale (LC_ALL, "fr_FR.UTF-8") == NULL) return 1; 20950 loc1 = newlocale (LC_ALL_MASK, "de_DE.UTF-8", (locale_t)0); 20951 loc2 = newlocale (LC_ALL_MASK, "fr_FR.UTF-8", (locale_t)0); 20952 return !(loc1 == loc2); 20953} 20954_ACEOF 20955if ac_fn_c_try_run "$LINENO"; then : 20956 gt_cv_locale_fake=yes 20957else 20958 gt_cv_locale_fake=no 20959fi 20960rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20961 conftest.$ac_objext conftest.beam conftest.$ac_ext 20962fi 20963 20964 20965fi 20966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fake" >&5 20967$as_echo "$gt_cv_locale_fake" >&6; } 20968 ;; 20969 *) gt_cv_locale_fake=no ;; 20970 esac 20971 case "$gt_cv_locale_fake" in 20972 *yes) 20973 20974$as_echo "#define HAVE_FAKE_LOCALES 1" >>confdefs.h 20975 20976 ;; 20977 esac 20978 20979 case "$gt_cv_func_uselocale_works" in 20980 *yes) 20981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris 11.4 locale system" >&5 20982$as_echo_n "checking for Solaris 11.4 locale system... " >&6; } 20983if ${gt_cv_locale_solaris114+:} false; then : 20984 $as_echo_n "(cached) " >&6 20985else 20986 case "$host_os" in 20987 solaris*) 20988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20989/* end confdefs.h. */ 20990 20991 #include <locale.h> 20992 struct _LC_locale_t *x; 20993 locale_t y; 20994 20995int 20996main () 20997{ 20998*y = x; 20999 ; 21000 return 0; 21001} 21002_ACEOF 21003if ac_fn_c_try_compile "$LINENO"; then : 21004 gt_cv_locale_solaris114=yes 21005else 21006 gt_cv_locale_solaris114=no 21007fi 21008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21009 ;; 21010 *) gt_cv_locale_solaris114=no ;; 21011 esac 21012 21013fi 21014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_solaris114" >&5 21015$as_echo "$gt_cv_locale_solaris114" >&6; } 21016 ;; 21017 *) gt_cv_locale_solaris114=no ;; 21018 esac 21019 if test $gt_cv_locale_solaris114 = yes; then 21020 21021$as_echo "#define HAVE_SOLARIS114_LOCALES 1" >>confdefs.h 21022 21023 fi 21024 21025 case "$gt_cv_func_uselocale_works" in 21026 *yes) 21027 for ac_func in getlocalename_l 21028do : 21029 ac_fn_c_check_func "$LINENO" "getlocalename_l" "ac_cv_func_getlocalename_l" 21030if test "x$ac_cv_func_getlocalename_l" = xyes; then : 21031 cat >>confdefs.h <<_ACEOF 21032#define HAVE_GETLOCALENAME_L 1 21033_ACEOF 21034 21035fi 21036done 21037 21038 ;; 21039 esac 21040 21041 gt_nameless_locales=no 21042 case "$host_os" in 21043 aix*) 21044 gt_nameless_locales=yes 21045 21046$as_echo "#define HAVE_NAMELESS_LOCALES 1" >>confdefs.h 21047 21048 ;; 21049 esac 21050 21051 21052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 21053$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } 21054if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : 21055 $as_echo_n "(cached) " >&6 21056else 21057 gt_save_LIBS="$LIBS" 21058 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 21059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21060/* end confdefs.h. */ 21061#include <CoreFoundation/CFPreferences.h> 21062int 21063main () 21064{ 21065CFPreferencesCopyAppValue(NULL, NULL) 21066 ; 21067 return 0; 21068} 21069_ACEOF 21070if ac_fn_c_try_link "$LINENO"; then : 21071 gt_cv_func_CFPreferencesCopyAppValue=yes 21072else 21073 gt_cv_func_CFPreferencesCopyAppValue=no 21074fi 21075rm -f core conftest.err conftest.$ac_objext \ 21076 conftest$ac_exeext conftest.$ac_ext 21077 LIBS="$gt_save_LIBS" 21078fi 21079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 21080$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 21081 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 21082 21083$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h 21084 21085 fi 21086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5 21087$as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; } 21088if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then : 21089 $as_echo_n "(cached) " >&6 21090else 21091 gt_save_LIBS="$LIBS" 21092 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 21093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21094/* end confdefs.h. */ 21095#include <CoreFoundation/CFLocale.h> 21096int 21097main () 21098{ 21099CFLocaleCopyPreferredLanguages(); 21100 ; 21101 return 0; 21102} 21103_ACEOF 21104if ac_fn_c_try_link "$LINENO"; then : 21105 gt_cv_func_CFLocaleCopyPreferredLanguages=yes 21106else 21107 gt_cv_func_CFLocaleCopyPreferredLanguages=no 21108fi 21109rm -f core conftest.err conftest.$ac_objext \ 21110 conftest$ac_exeext conftest.$ac_ext 21111 LIBS="$gt_save_LIBS" 21112fi 21113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5 21114$as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; } 21115 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then 21116 21117$as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h 21118 21119 fi 21120 INTL_MACOSX_LIBS= 21121 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \ 21122 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then 21123 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 21124 fi 21125 21126 21127 21128 21129 21130 21131 21132 21133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array member" >&5 21134$as_echo_n "checking for flexible array member... " >&6; } 21135if ${ac_cv_c_flexmember+:} false; then : 21136 $as_echo_n "(cached) " >&6 21137else 21138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21139/* end confdefs.h. */ 21140#include <stdlib.h> 21141 #include <stdio.h> 21142 #include <stddef.h> 21143 struct m { struct m *next, **list; char name[]; }; 21144 struct s { struct s *p; struct m *m; int n; double d[]; }; 21145int 21146main () 21147{ 21148int m = getchar (); 21149 size_t nbytes = offsetof (struct s, d) + m * sizeof (double); 21150 nbytes += sizeof (struct s) - 1; 21151 nbytes -= nbytes % sizeof (struct s); 21152 struct s *p = malloc (nbytes); 21153 p->p = p; 21154 p->m = NULL; 21155 p->d[0] = 0.0; 21156 return p->d != (double *) NULL; 21157 ; 21158 return 0; 21159} 21160_ACEOF 21161if ac_fn_c_try_compile "$LINENO"; then : 21162 ac_cv_c_flexmember=yes 21163else 21164 ac_cv_c_flexmember=no 21165fi 21166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21167fi 21168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5 21169$as_echo "$ac_cv_c_flexmember" >&6; } 21170 if test $ac_cv_c_flexmember = yes; then 21171 21172$as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h 21173 21174 else 21175 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h 21176 21177 fi 21178 21179 21180 21181 21182 21183 21184 21185 21186 21187 case "$enable_silent_rules" in 21188 yes) INTL_DEFAULT_VERBOSITY=0;; 21189 no) INTL_DEFAULT_VERBOSITY=1;; 21190 *) INTL_DEFAULT_VERBOSITY=1;; 21191 esac 21192 21193 21194 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 21195if test "x$ac_cv_type_ptrdiff_t" = xyes; then : 21196 21197else 21198 21199$as_echo "#define ptrdiff_t long" >>confdefs.h 21200 21201 21202fi 21203 21204 for ac_header in features.h stddef.h stdlib.h string.h 21205do : 21206 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 21207ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 21208if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 21209 cat >>confdefs.h <<_ACEOF 21210#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 21211_ACEOF 21212 21213fi 21214 21215done 21216 21217 for ac_func in asprintf wprintf newlocale putenv setenv \ 21218 snprintf strnlen uselocale wcslen wcsnlen mbrtowc wcrtomb 21219do : 21220 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 21221ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 21222if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 21223 cat >>confdefs.h <<_ACEOF 21224#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 21225_ACEOF 21226 21227fi 21228done 21229 21230 21231 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h> 21232" 21233if test "x$ac_cv_have_decl__snprintf" = xyes; then : 21234 ac_have_decl=1 21235else 21236 ac_have_decl=0 21237fi 21238 21239cat >>confdefs.h <<_ACEOF 21240#define HAVE_DECL__SNPRINTF $ac_have_decl 21241_ACEOF 21242ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h> 21243" 21244if test "x$ac_cv_have_decl__snwprintf" = xyes; then : 21245 ac_have_decl=1 21246else 21247 ac_have_decl=0 21248fi 21249 21250cat >>confdefs.h <<_ACEOF 21251#define HAVE_DECL__SNWPRINTF $ac_have_decl 21252_ACEOF 21253 21254 21255 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h> 21256" 21257if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then : 21258 ac_have_decl=1 21259else 21260 ac_have_decl=0 21261fi 21262 21263cat >>confdefs.h <<_ACEOF 21264#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl 21265_ACEOF 21266 21267 21268 case $gt_cv_func_printf_posix in 21269 *yes) HAVE_POSIX_PRINTF=1 ;; 21270 *) HAVE_POSIX_PRINTF=0 ;; 21271 esac 21272 21273 if test "$ac_cv_func_asprintf" = yes; then 21274 HAVE_ASPRINTF=1 21275 else 21276 HAVE_ASPRINTF=0 21277 fi 21278 21279 if test "$ac_cv_func_snprintf" = yes; then 21280 HAVE_SNPRINTF=1 21281 else 21282 HAVE_SNPRINTF=0 21283 fi 21284 21285 if test "$ac_cv_func_newlocale" = yes; then 21286 HAVE_NEWLOCALE=1 21287 else 21288 HAVE_NEWLOCALE=0 21289 fi 21290 21291 if test "$ac_cv_func_wprintf" = yes; then 21292 HAVE_WPRINTF=1 21293 else 21294 HAVE_WPRINTF=0 21295 fi 21296 21297 21298 21299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 21300$as_echo_n "checking for nl_langinfo and CODESET... " >&6; } 21301if ${am_cv_langinfo_codeset+:} false; then : 21302 $as_echo_n "(cached) " >&6 21303else 21304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21305/* end confdefs.h. */ 21306#include <langinfo.h> 21307int 21308main () 21309{ 21310char* cs = nl_langinfo(CODESET); return !cs; 21311 ; 21312 return 0; 21313} 21314_ACEOF 21315if ac_fn_c_try_link "$LINENO"; then : 21316 am_cv_langinfo_codeset=yes 21317else 21318 am_cv_langinfo_codeset=no 21319fi 21320rm -f core conftest.err conftest.$ac_objext \ 21321 conftest$ac_exeext conftest.$ac_ext 21322 21323fi 21324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 21325$as_echo "$am_cv_langinfo_codeset" >&6; } 21326 if test $am_cv_langinfo_codeset = yes; then 21327 21328$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h 21329 21330 fi 21331 21332 21333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 21334$as_echo_n "checking for LC_MESSAGES... " >&6; } 21335if ${gt_cv_val_LC_MESSAGES+:} false; then : 21336 $as_echo_n "(cached) " >&6 21337else 21338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21339/* end confdefs.h. */ 21340#include <locale.h> 21341int 21342main () 21343{ 21344return LC_MESSAGES 21345 ; 21346 return 0; 21347} 21348_ACEOF 21349if ac_fn_c_try_link "$LINENO"; then : 21350 gt_cv_val_LC_MESSAGES=yes 21351else 21352 gt_cv_val_LC_MESSAGES=no 21353fi 21354rm -f core conftest.err conftest.$ac_objext \ 21355 conftest$ac_exeext conftest.$ac_ext 21356fi 21357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5 21358$as_echo "$gt_cv_val_LC_MESSAGES" >&6; } 21359 if test $gt_cv_val_LC_MESSAGES = yes; then 21360 21361$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h 21362 21363 fi 21364 21365 21366 if test $gt_nameless_locales = yes; then 21367 HAVE_NAMELESS_LOCALES=1 21368 else 21369 HAVE_NAMELESS_LOCALES=0 21370 fi 21371 21372 21373 if test "$enable_shared" = yes; then 21374 case "$host_os" in 21375 mingw* | cygwin*) is_woe32dll=yes ;; 21376 *) is_woe32dll=no ;; 21377 esac 21378 else 21379 is_woe32dll=no 21380 fi 21381 WOE32DLL=$is_woe32dll 21382 21383 21384 case "$host_os" in 21385 mingw* | cygwin*) is_woe32=yes ;; 21386 *) is_woe32=no ;; 21387 esac 21388 WOE32=$is_woe32 21389 21390 if test $WOE32 = yes; then 21391 if test -n "$ac_tool_prefix"; then 21392 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 21393set dummy ${ac_tool_prefix}windres; ac_word=$2 21394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21395$as_echo_n "checking for $ac_word... " >&6; } 21396if ${ac_cv_prog_WINDRES+:} false; then : 21397 $as_echo_n "(cached) " >&6 21398else 21399 if test -n "$WINDRES"; then 21400 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 21401else 21402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21403for as_dir in $PATH 21404do 21405 IFS=$as_save_IFS 21406 test -z "$as_dir" && as_dir=. 21407 for ac_exec_ext in '' $ac_executable_extensions; do 21408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21409 ac_cv_prog_WINDRES="${ac_tool_prefix}windres" 21410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21411 break 2 21412 fi 21413done 21414 done 21415IFS=$as_save_IFS 21416 21417fi 21418fi 21419WINDRES=$ac_cv_prog_WINDRES 21420if test -n "$WINDRES"; then 21421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 21422$as_echo "$WINDRES" >&6; } 21423else 21424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21425$as_echo "no" >&6; } 21426fi 21427 21428 21429fi 21430if test -z "$ac_cv_prog_WINDRES"; then 21431 ac_ct_WINDRES=$WINDRES 21432 # Extract the first word of "windres", so it can be a program name with args. 21433set dummy windres; ac_word=$2 21434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21435$as_echo_n "checking for $ac_word... " >&6; } 21436if ${ac_cv_prog_ac_ct_WINDRES+:} false; then : 21437 $as_echo_n "(cached) " >&6 21438else 21439 if test -n "$ac_ct_WINDRES"; then 21440 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. 21441else 21442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21443for as_dir in $PATH 21444do 21445 IFS=$as_save_IFS 21446 test -z "$as_dir" && as_dir=. 21447 for ac_exec_ext in '' $ac_executable_extensions; do 21448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21449 ac_cv_prog_ac_ct_WINDRES="windres" 21450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21451 break 2 21452 fi 21453done 21454 done 21455IFS=$as_save_IFS 21456 21457fi 21458fi 21459ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES 21460if test -n "$ac_ct_WINDRES"; then 21461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 21462$as_echo "$ac_ct_WINDRES" >&6; } 21463else 21464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21465$as_echo "no" >&6; } 21466fi 21467 21468 if test "x$ac_ct_WINDRES" = x; then 21469 WINDRES="" 21470 else 21471 case $cross_compiling:$ac_tool_warned in 21472yes:) 21473{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 21474$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 21475ac_tool_warned=yes ;; 21476esac 21477 WINDRES=$ac_ct_WINDRES 21478 fi 21479else 21480 WINDRES="$ac_cv_prog_WINDRES" 21481fi 21482 21483 fi 21484 21485 21486 21487 21488 21489 21490 21491 21492 21493 21494 21495 21496 21497 21498 21499 21500 21501 21502 21503 21504 21505 21506 21507 21508 21509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 21510$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } 21511if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : 21512 $as_echo_n "(cached) " >&6 21513else 21514 gt_save_LIBS="$LIBS" 21515 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 21516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21517/* end confdefs.h. */ 21518#include <CoreFoundation/CFPreferences.h> 21519int 21520main () 21521{ 21522CFPreferencesCopyAppValue(NULL, NULL) 21523 ; 21524 return 0; 21525} 21526_ACEOF 21527if ac_fn_c_try_link "$LINENO"; then : 21528 gt_cv_func_CFPreferencesCopyAppValue=yes 21529else 21530 gt_cv_func_CFPreferencesCopyAppValue=no 21531fi 21532rm -f core conftest.err conftest.$ac_objext \ 21533 conftest$ac_exeext conftest.$ac_ext 21534 LIBS="$gt_save_LIBS" 21535fi 21536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 21537$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 21538 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 21539 21540$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h 21541 21542 fi 21543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5 21544$as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; } 21545if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then : 21546 $as_echo_n "(cached) " >&6 21547else 21548 gt_save_LIBS="$LIBS" 21549 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 21550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21551/* end confdefs.h. */ 21552#include <CoreFoundation/CFLocale.h> 21553int 21554main () 21555{ 21556CFLocaleCopyPreferredLanguages(); 21557 ; 21558 return 0; 21559} 21560_ACEOF 21561if ac_fn_c_try_link "$LINENO"; then : 21562 gt_cv_func_CFLocaleCopyPreferredLanguages=yes 21563else 21564 gt_cv_func_CFLocaleCopyPreferredLanguages=no 21565fi 21566rm -f core conftest.err conftest.$ac_objext \ 21567 conftest$ac_exeext conftest.$ac_ext 21568 LIBS="$gt_save_LIBS" 21569fi 21570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5 21571$as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; } 21572 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then 21573 21574$as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h 21575 21576 fi 21577 INTL_MACOSX_LIBS= 21578 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \ 21579 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then 21580 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 21581 fi 21582 21583 21584 21585 21586 21587 21588 BUILD_INCLUDED_LIBINTL=no 21589 USE_INCLUDED_LIBINTL=no 21590 21591 LIBINTL= 21592 LTLIBINTL= 21593 POSUB= 21594 21595 case " $gt_needs " in 21596 *" need-formatstring-macros "*) gt_api_version=3 ;; 21597 *" need-ngettext "*) gt_api_version=2 ;; 21598 *) gt_api_version=1 ;; 21599 esac 21600 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" 21601 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" 21602 21603 if test "$USE_NLS" = "yes"; then 21604 gt_use_preinstalled_gnugettext=no 21605 21606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5 21607$as_echo_n "checking whether included gettext is requested... " >&6; } 21608 21609# Check whether --with-included-gettext was given. 21610if test "${with_included_gettext+set}" = set; then : 21611 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval 21612else 21613 nls_cv_force_use_gnu_gettext=no 21614fi 21615 21616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5 21617$as_echo "$nls_cv_force_use_gnu_gettext" >&6; } 21618 21619 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" 21620 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then 21621 21622 21623 if test $gt_api_version -ge 3; then 21624 gt_revision_test_code=' 21625#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 21626#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 21627#endif 21628typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 21629' 21630 else 21631 gt_revision_test_code= 21632 fi 21633 if test $gt_api_version -ge 2; then 21634 gt_expression_test_code=' + * ngettext ("", "", 0)' 21635 else 21636 gt_expression_test_code= 21637 fi 21638 21639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 21640$as_echo_n "checking for GNU gettext in libc... " >&6; } 21641if eval \${$gt_func_gnugettext_libc+:} false; then : 21642 $as_echo_n "(cached) " >&6 21643else 21644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21645/* end confdefs.h. */ 21646 21647#include <libintl.h> 21648#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 21649extern int _nl_msg_cat_cntr; 21650extern int *_nl_domain_bindings; 21651#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings) 21652#else 21653#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 21654#endif 21655$gt_revision_test_code 21656 21657int 21658main () 21659{ 21660 21661bindtextdomain ("", ""); 21662return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION 21663 21664 ; 21665 return 0; 21666} 21667_ACEOF 21668if ac_fn_c_try_link "$LINENO"; then : 21669 eval "$gt_func_gnugettext_libc=yes" 21670else 21671 eval "$gt_func_gnugettext_libc=no" 21672fi 21673rm -f core conftest.err conftest.$ac_objext \ 21674 conftest$ac_exeext conftest.$ac_ext 21675fi 21676eval ac_res=\$$gt_func_gnugettext_libc 21677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 21678$as_echo "$ac_res" >&6; } 21679 21680 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 21681 21682 21683 21684 21685 21686 21687 21688 use_additional=yes 21689 21690 acl_save_prefix="$prefix" 21691 prefix="$acl_final_prefix" 21692 acl_save_exec_prefix="$exec_prefix" 21693 exec_prefix="$acl_final_exec_prefix" 21694 21695 eval additional_includedir=\"$includedir\" 21696 eval additional_libdir=\"$libdir\" 21697 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" 21698 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" 21699 21700 exec_prefix="$acl_save_exec_prefix" 21701 prefix="$acl_save_prefix" 21702 21703 21704# Check whether --with-libintl-prefix was given. 21705if test "${with_libintl_prefix+set}" = set; then : 21706 withval=$with_libintl_prefix; 21707 if test "X$withval" = "Xno"; then 21708 use_additional=no 21709 else 21710 if test "X$withval" = "X"; then 21711 21712 acl_save_prefix="$prefix" 21713 prefix="$acl_final_prefix" 21714 acl_save_exec_prefix="$exec_prefix" 21715 exec_prefix="$acl_final_exec_prefix" 21716 21717 eval additional_includedir=\"$includedir\" 21718 eval additional_libdir=\"$libdir\" 21719 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" 21720 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" 21721 21722 exec_prefix="$acl_save_exec_prefix" 21723 prefix="$acl_save_prefix" 21724 21725 else 21726 additional_includedir="$withval/include" 21727 additional_libdir="$withval/$acl_libdirstem" 21728 additional_libdir2="$withval/$acl_libdirstem2" 21729 additional_libdir3="$withval/$acl_libdirstem3" 21730 fi 21731 fi 21732 21733fi 21734 21735 if test "X$additional_libdir2" = "X$additional_libdir"; then 21736 additional_libdir2= 21737 fi 21738 if test "X$additional_libdir3" = "X$additional_libdir"; then 21739 additional_libdir3= 21740 fi 21741 LIBINTL= 21742 LTLIBINTL= 21743 INCINTL= 21744 LIBINTL_PREFIX= 21745 HAVE_LIBINTL= 21746 rpathdirs= 21747 ltrpathdirs= 21748 names_already_handled= 21749 names_next_round='intl ' 21750 while test -n "$names_next_round"; do 21751 names_this_round="$names_next_round" 21752 names_next_round= 21753 for name in $names_this_round; do 21754 already_handled= 21755 for n in $names_already_handled; do 21756 if test "$n" = "$name"; then 21757 already_handled=yes 21758 break 21759 fi 21760 done 21761 if test -z "$already_handled"; then 21762 names_already_handled="$names_already_handled $name" 21763 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` 21764 eval value=\"\$HAVE_LIB$uppername\" 21765 if test -n "$value"; then 21766 if test "$value" = yes; then 21767 eval value=\"\$LIB$uppername\" 21768 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 21769 eval value=\"\$LTLIB$uppername\" 21770 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 21771 else 21772 : 21773 fi 21774 else 21775 found_dir= 21776 found_la= 21777 found_so= 21778 found_a= 21779 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 21780 if test -n "$acl_shlibext"; then 21781 shrext=".$acl_shlibext" # typically: shrext=.so 21782 else 21783 shrext= 21784 fi 21785 if test $use_additional = yes; then 21786 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do 21787 if test "X$found_dir" = "X"; then 21788 eval dir=\$$additional_libdir_variable 21789 if test -n "$dir"; then 21790 if test -n "$acl_shlibext"; then 21791 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then 21792 found_dir="$dir" 21793 found_so="$dir/$libname$shrext" 21794 else 21795 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 21796 ver=`(cd "$dir" && \ 21797 for f in "$libname$shrext".*; do echo "$f"; done \ 21798 | sed -e "s,^$libname$shrext\\\\.,," \ 21799 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 21800 | sed 1q ) 2>/dev/null` 21801 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then 21802 found_dir="$dir" 21803 found_so="$dir/$libname$shrext.$ver" 21804 fi 21805 else 21806 eval library_names=\"$acl_library_names_spec\" 21807 for f in $library_names; do 21808 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then 21809 found_dir="$dir" 21810 found_so="$dir/$f" 21811 break 21812 fi 21813 done 21814 fi 21815 fi 21816 fi 21817 if test "X$found_dir" = "X"; then 21818 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then 21819 found_dir="$dir" 21820 found_a="$dir/$libname.$acl_libext" 21821 fi 21822 fi 21823 if test "X$found_dir" != "X"; then 21824 if test -f "$dir/$libname.la"; then 21825 found_la="$dir/$libname.la" 21826 fi 21827 fi 21828 fi 21829 fi 21830 done 21831 fi 21832 if test "X$found_dir" = "X"; then 21833 for x in $LDFLAGS $LTLIBINTL; do 21834 21835 acl_save_prefix="$prefix" 21836 prefix="$acl_final_prefix" 21837 acl_save_exec_prefix="$exec_prefix" 21838 exec_prefix="$acl_final_exec_prefix" 21839 eval x=\"$x\" 21840 exec_prefix="$acl_save_exec_prefix" 21841 prefix="$acl_save_prefix" 21842 21843 case "$x" in 21844 -L*) 21845 dir=`echo "X$x" | sed -e 's/^X-L//'` 21846 if test -n "$acl_shlibext"; then 21847 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then 21848 found_dir="$dir" 21849 found_so="$dir/$libname$shrext" 21850 else 21851 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 21852 ver=`(cd "$dir" && \ 21853 for f in "$libname$shrext".*; do echo "$f"; done \ 21854 | sed -e "s,^$libname$shrext\\\\.,," \ 21855 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 21856 | sed 1q ) 2>/dev/null` 21857 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then 21858 found_dir="$dir" 21859 found_so="$dir/$libname$shrext.$ver" 21860 fi 21861 else 21862 eval library_names=\"$acl_library_names_spec\" 21863 for f in $library_names; do 21864 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then 21865 found_dir="$dir" 21866 found_so="$dir/$f" 21867 break 21868 fi 21869 done 21870 fi 21871 fi 21872 fi 21873 if test "X$found_dir" = "X"; then 21874 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then 21875 found_dir="$dir" 21876 found_a="$dir/$libname.$acl_libext" 21877 fi 21878 fi 21879 if test "X$found_dir" != "X"; then 21880 if test -f "$dir/$libname.la"; then 21881 found_la="$dir/$libname.la" 21882 fi 21883 fi 21884 ;; 21885 esac 21886 if test "X$found_dir" != "X"; then 21887 break 21888 fi 21889 done 21890 fi 21891 if test "X$found_dir" != "X"; then 21892 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 21893 if test "X$found_so" != "X"; then 21894 if test "$enable_rpath" = no \ 21895 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 21896 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \ 21897 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then 21898 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 21899 else 21900 haveit= 21901 for x in $ltrpathdirs; do 21902 if test "X$x" = "X$found_dir"; then 21903 haveit=yes 21904 break 21905 fi 21906 done 21907 if test -z "$haveit"; then 21908 ltrpathdirs="$ltrpathdirs $found_dir" 21909 fi 21910 if test "$acl_hardcode_direct" = yes; then 21911 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 21912 else 21913 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 21914 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 21915 haveit= 21916 for x in $rpathdirs; do 21917 if test "X$x" = "X$found_dir"; then 21918 haveit=yes 21919 break 21920 fi 21921 done 21922 if test -z "$haveit"; then 21923 rpathdirs="$rpathdirs $found_dir" 21924 fi 21925 else 21926 haveit= 21927 for x in $LDFLAGS $LIBINTL; do 21928 21929 acl_save_prefix="$prefix" 21930 prefix="$acl_final_prefix" 21931 acl_save_exec_prefix="$exec_prefix" 21932 exec_prefix="$acl_final_exec_prefix" 21933 eval x=\"$x\" 21934 exec_prefix="$acl_save_exec_prefix" 21935 prefix="$acl_save_prefix" 21936 21937 if test "X$x" = "X-L$found_dir"; then 21938 haveit=yes 21939 break 21940 fi 21941 done 21942 if test -z "$haveit"; then 21943 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 21944 fi 21945 if test "$acl_hardcode_minus_L" != no; then 21946 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 21947 else 21948 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 21949 fi 21950 fi 21951 fi 21952 fi 21953 else 21954 if test "X$found_a" != "X"; then 21955 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 21956 else 21957 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 21958 fi 21959 fi 21960 additional_includedir= 21961 case "$found_dir" in 21962 */$acl_libdirstem | */$acl_libdirstem/) 21963 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 21964 if test "$name" = 'intl'; then 21965 LIBINTL_PREFIX="$basedir" 21966 fi 21967 additional_includedir="$basedir/include" 21968 ;; 21969 */$acl_libdirstem2 | */$acl_libdirstem2/) 21970 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 21971 if test "$name" = 'intl'; then 21972 LIBINTL_PREFIX="$basedir" 21973 fi 21974 additional_includedir="$basedir/include" 21975 ;; 21976 */$acl_libdirstem3 | */$acl_libdirstem3/) 21977 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'` 21978 if test "$name" = 'intl'; then 21979 LIBINTL_PREFIX="$basedir" 21980 fi 21981 additional_includedir="$basedir/include" 21982 ;; 21983 esac 21984 if test "X$additional_includedir" != "X"; then 21985 if test "X$additional_includedir" != "X/usr/include"; then 21986 haveit= 21987 if test "X$additional_includedir" = "X/usr/local/include"; then 21988 if test -n "$GCC"; then 21989 case $host_os in 21990 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 21991 esac 21992 fi 21993 fi 21994 if test -z "$haveit"; then 21995 for x in $CPPFLAGS $INCINTL; do 21996 21997 acl_save_prefix="$prefix" 21998 prefix="$acl_final_prefix" 21999 acl_save_exec_prefix="$exec_prefix" 22000 exec_prefix="$acl_final_exec_prefix" 22001 eval x=\"$x\" 22002 exec_prefix="$acl_save_exec_prefix" 22003 prefix="$acl_save_prefix" 22004 22005 if test "X$x" = "X-I$additional_includedir"; then 22006 haveit=yes 22007 break 22008 fi 22009 done 22010 if test -z "$haveit"; then 22011 if test -d "$additional_includedir"; then 22012 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 22013 fi 22014 fi 22015 fi 22016 fi 22017 fi 22018 if test -n "$found_la"; then 22019 save_libdir="$libdir" 22020 case "$found_la" in 22021 */* | *\\*) . "$found_la" ;; 22022 *) . "./$found_la" ;; 22023 esac 22024 libdir="$save_libdir" 22025 for dep in $dependency_libs; do 22026 case "$dep" in 22027 -L*) 22028 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 22029 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \ 22030 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \ 22031 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then 22032 haveit= 22033 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \ 22034 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \ 22035 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then 22036 if test -n "$GCC"; then 22037 case $host_os in 22038 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 22039 esac 22040 fi 22041 fi 22042 if test -z "$haveit"; then 22043 haveit= 22044 for x in $LDFLAGS $LIBINTL; do 22045 22046 acl_save_prefix="$prefix" 22047 prefix="$acl_final_prefix" 22048 acl_save_exec_prefix="$exec_prefix" 22049 exec_prefix="$acl_final_exec_prefix" 22050 eval x=\"$x\" 22051 exec_prefix="$acl_save_exec_prefix" 22052 prefix="$acl_save_prefix" 22053 22054 if test "X$x" = "X-L$dependency_libdir"; then 22055 haveit=yes 22056 break 22057 fi 22058 done 22059 if test -z "$haveit"; then 22060 if test -d "$dependency_libdir"; then 22061 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir" 22062 fi 22063 fi 22064 haveit= 22065 for x in $LDFLAGS $LTLIBINTL; do 22066 22067 acl_save_prefix="$prefix" 22068 prefix="$acl_final_prefix" 22069 acl_save_exec_prefix="$exec_prefix" 22070 exec_prefix="$acl_final_exec_prefix" 22071 eval x=\"$x\" 22072 exec_prefix="$acl_save_exec_prefix" 22073 prefix="$acl_save_prefix" 22074 22075 if test "X$x" = "X-L$dependency_libdir"; then 22076 haveit=yes 22077 break 22078 fi 22079 done 22080 if test -z "$haveit"; then 22081 if test -d "$dependency_libdir"; then 22082 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir" 22083 fi 22084 fi 22085 fi 22086 fi 22087 ;; 22088 -R*) 22089 dir=`echo "X$dep" | sed -e 's/^X-R//'` 22090 if test "$enable_rpath" != no; then 22091 haveit= 22092 for x in $rpathdirs; do 22093 if test "X$x" = "X$dir"; then 22094 haveit=yes 22095 break 22096 fi 22097 done 22098 if test -z "$haveit"; then 22099 rpathdirs="$rpathdirs $dir" 22100 fi 22101 haveit= 22102 for x in $ltrpathdirs; do 22103 if test "X$x" = "X$dir"; then 22104 haveit=yes 22105 break 22106 fi 22107 done 22108 if test -z "$haveit"; then 22109 ltrpathdirs="$ltrpathdirs $dir" 22110 fi 22111 fi 22112 ;; 22113 -l*) 22114 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 22115 ;; 22116 *.la) 22117 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 22118 ;; 22119 *) 22120 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 22121 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 22122 ;; 22123 esac 22124 done 22125 fi 22126 else 22127 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 22128 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 22129 fi 22130 fi 22131 fi 22132 done 22133 done 22134 if test "X$rpathdirs" != "X"; then 22135 if test -n "$acl_hardcode_libdir_separator"; then 22136 alldirs= 22137 for found_dir in $rpathdirs; do 22138 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 22139 done 22140 acl_save_libdir="$libdir" 22141 libdir="$alldirs" 22142 eval flag=\"$acl_hardcode_libdir_flag_spec\" 22143 libdir="$acl_save_libdir" 22144 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 22145 else 22146 for found_dir in $rpathdirs; do 22147 acl_save_libdir="$libdir" 22148 libdir="$found_dir" 22149 eval flag=\"$acl_hardcode_libdir_flag_spec\" 22150 libdir="$acl_save_libdir" 22151 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 22152 done 22153 fi 22154 fi 22155 if test "X$ltrpathdirs" != "X"; then 22156 for found_dir in $ltrpathdirs; do 22157 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 22158 done 22159 fi 22160 22161 22162 22163 22164 22165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 22166$as_echo_n "checking for GNU gettext in libintl... " >&6; } 22167if eval \${$gt_func_gnugettext_libintl+:} false; then : 22168 $as_echo_n "(cached) " >&6 22169else 22170 gt_save_CPPFLAGS="$CPPFLAGS" 22171 CPPFLAGS="$CPPFLAGS $INCINTL" 22172 gt_save_LIBS="$LIBS" 22173 LIBS="$LIBS $LIBINTL" 22174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22175/* end confdefs.h. */ 22176 22177#include <libintl.h> 22178#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 22179extern int _nl_msg_cat_cntr; 22180extern 22181#ifdef __cplusplus 22182"C" 22183#endif 22184const char *_nl_expand_alias (const char *); 22185#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) 22186#else 22187#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 22188#endif 22189$gt_revision_test_code 22190 22191int 22192main () 22193{ 22194 22195bindtextdomain ("", ""); 22196return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION 22197 22198 ; 22199 return 0; 22200} 22201_ACEOF 22202if ac_fn_c_try_link "$LINENO"; then : 22203 eval "$gt_func_gnugettext_libintl=yes" 22204else 22205 eval "$gt_func_gnugettext_libintl=no" 22206fi 22207rm -f core conftest.err conftest.$ac_objext \ 22208 conftest$ac_exeext conftest.$ac_ext 22209 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then 22210 LIBS="$LIBS $LIBICONV" 22211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22212/* end confdefs.h. */ 22213 22214#include <libintl.h> 22215#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 22216extern int _nl_msg_cat_cntr; 22217extern 22218#ifdef __cplusplus 22219"C" 22220#endif 22221const char *_nl_expand_alias (const char *); 22222#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) 22223#else 22224#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 22225#endif 22226$gt_revision_test_code 22227 22228int 22229main () 22230{ 22231 22232bindtextdomain ("", ""); 22233return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION 22234 22235 ; 22236 return 0; 22237} 22238_ACEOF 22239if ac_fn_c_try_link "$LINENO"; then : 22240 LIBINTL="$LIBINTL $LIBICONV" 22241 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 22242 eval "$gt_func_gnugettext_libintl=yes" 22243 22244fi 22245rm -f core conftest.err conftest.$ac_objext \ 22246 conftest$ac_exeext conftest.$ac_ext 22247 fi 22248 CPPFLAGS="$gt_save_CPPFLAGS" 22249 LIBS="$gt_save_LIBS" 22250fi 22251eval ac_res=\$$gt_func_gnugettext_libintl 22252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 22253$as_echo "$ac_res" >&6; } 22254 fi 22255 22256 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ 22257 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ 22258 && test "$PACKAGE" != gettext-runtime \ 22259 && test "$PACKAGE" != gettext-tools; }; then 22260 gt_use_preinstalled_gnugettext=yes 22261 else 22262 LIBINTL= 22263 LTLIBINTL= 22264 INCINTL= 22265 fi 22266 22267 22268 if test "$gt_use_preinstalled_gnugettext" != "yes"; then 22269 nls_cv_use_gnu_gettext=yes 22270 fi 22271 fi 22272 22273 if test "$nls_cv_use_gnu_gettext" = "yes"; then 22274 BUILD_INCLUDED_LIBINTL=yes 22275 USE_INCLUDED_LIBINTL=yes 22276 LIBINTL="\${top_builddir}/intl/libintl.la $LIBICONV $LIBTHREAD" 22277 LTLIBINTL="\${top_builddir}/intl/libintl.la $LTLIBICONV $LTLIBTHREAD" 22278 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` 22279 fi 22280 22281 CATOBJEXT= 22282 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 22283 || test "$nls_cv_use_gnu_gettext" = "yes"; then 22284 CATOBJEXT=.gmo 22285 fi 22286 22287 22288 if test -n "$INTL_MACOSX_LIBS"; then 22289 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 22290 || test "$nls_cv_use_gnu_gettext" = "yes"; then 22291 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" 22292 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" 22293 fi 22294 fi 22295 22296 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 22297 || test "$nls_cv_use_gnu_gettext" = "yes"; then 22298 22299$as_echo "#define ENABLE_NLS 1" >>confdefs.h 22300 22301 else 22302 USE_NLS=no 22303 fi 22304 fi 22305 22306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 22307$as_echo_n "checking whether to use NLS... " >&6; } 22308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 22309$as_echo "$USE_NLS" >&6; } 22310 if test "$USE_NLS" = "yes"; then 22311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 22312$as_echo_n "checking where the gettext function comes from... " >&6; } 22313 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 22314 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 22315 gt_source="external libintl" 22316 else 22317 gt_source="libc" 22318 fi 22319 else 22320 gt_source="included intl directory" 22321 fi 22322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 22323$as_echo "$gt_source" >&6; } 22324 fi 22325 22326 if test "$USE_NLS" = "yes"; then 22327 22328 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 22329 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 22330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 22331$as_echo_n "checking how to link with libintl... " >&6; } 22332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 22333$as_echo "$LIBINTL" >&6; } 22334 22335 for element in $INCINTL; do 22336 haveit= 22337 for x in $CPPFLAGS; do 22338 22339 acl_save_prefix="$prefix" 22340 prefix="$acl_final_prefix" 22341 acl_save_exec_prefix="$exec_prefix" 22342 exec_prefix="$acl_final_exec_prefix" 22343 eval x=\"$x\" 22344 exec_prefix="$acl_save_exec_prefix" 22345 prefix="$acl_save_prefix" 22346 22347 if test "X$x" = "X$element"; then 22348 haveit=yes 22349 break 22350 fi 22351 done 22352 if test -z "$haveit"; then 22353 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 22354 fi 22355 done 22356 22357 fi 22358 22359 22360$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 22361 22362 22363$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h 22364 22365 fi 22366 22367 POSUB=po 22368 fi 22369 22370 22371 BUILD_INCLUDED_LIBINTL=yes 22372 22373 22374 22375 22376 22377 22378 INTLLIBS="$LIBINTL" 22379 22380 22381 22382 22383 22384 22385 if test $USE_INCLUDED_LIBINTL = yes; then 22386 USE_INCLUDED_LIBINTL_TRUE= 22387 USE_INCLUDED_LIBINTL_FALSE='#' 22388else 22389 USE_INCLUDED_LIBINTL_TRUE='#' 22390 USE_INCLUDED_LIBINTL_FALSE= 22391fi 22392 22393 if test $BUILD_INCLUDED_LIBINTL = yes; then 22394 BUILD_INCLUDED_LIBINTL_TRUE= 22395 BUILD_INCLUDED_LIBINTL_FALSE='#' 22396else 22397 BUILD_INCLUDED_LIBINTL_TRUE='#' 22398 BUILD_INCLUDED_LIBINTL_FALSE= 22399fi 22400 22401 if false; then 22402 PACKAGE_IS_GETTEXT_TOOLS_TRUE= 22403 PACKAGE_IS_GETTEXT_TOOLS_FALSE='#' 22404else 22405 PACKAGE_IS_GETTEXT_TOOLS_TRUE='#' 22406 PACKAGE_IS_GETTEXT_TOOLS_FALSE= 22407fi 22408 22409 if false; then 22410 PRELOADABLE_LIBINTL_TRUE= 22411 PRELOADABLE_LIBINTL_FALSE='#' 22412else 22413 PRELOADABLE_LIBINTL_TRUE='#' 22414 PRELOADABLE_LIBINTL_FALSE= 22415fi 22416 22417 22418 22419 22420 22421 22422 22423 22424 22425 22426 # Check whether --enable-cross-guesses was given. 22427if test "${enable_cross_guesses+set}" = set; then : 22428 enableval=$enable_cross_guesses; if test "x$enableval" != xconservative && test "x$enableval" != xrisky; then 22429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-cross-guesses" >&5 22430$as_echo "$as_me: WARNING: invalid argument supplied to --enable-cross-guesses" >&2;} 22431 enableval=conservative 22432 fi 22433 gl_cross_guesses="$enableval" 22434else 22435 gl_cross_guesses=conservative 22436fi 22437 22438 if test $gl_cross_guesses = risky; then 22439 gl_cross_guess_normal="guessing yes" 22440 gl_cross_guess_inverted="guessing no" 22441 else 22442 gl_cross_guess_normal="guessing no" 22443 gl_cross_guess_inverted="guessing yes" 22444 fi 22445 LIBC_FATAL_STDERR_=1 22446 export LIBC_FATAL_STDERR_ 22447 22448 22449 22450 GNULIB__EXIT=0; 22451 GNULIB_ATOLL=0; 22452 GNULIB_CALLOC_POSIX=0; 22453 GNULIB_CANONICALIZE_FILE_NAME=0; 22454 GNULIB_GETLOADAVG=0; 22455 GNULIB_GETSUBOPT=0; 22456 GNULIB_GRANTPT=0; 22457 GNULIB_MALLOC_POSIX=0; 22458 GNULIB_MBTOWC=0; 22459 GNULIB_MKDTEMP=0; 22460 GNULIB_MKOSTEMP=0; 22461 GNULIB_MKOSTEMPS=0; 22462 GNULIB_MKSTEMP=0; 22463 GNULIB_MKSTEMPS=0; 22464 GNULIB_POSIX_OPENPT=0; 22465 GNULIB_PTSNAME=0; 22466 GNULIB_PTSNAME_R=0; 22467 GNULIB_PUTENV=0; 22468 GNULIB_QSORT_R=0; 22469 GNULIB_RANDOM=0; 22470 GNULIB_RANDOM_R=0; 22471 GNULIB_REALLOCARRAY=0; 22472 GNULIB_REALLOC_POSIX=0; 22473 GNULIB_REALPATH=0; 22474 GNULIB_RPMATCH=0; 22475 GNULIB_SECURE_GETENV=0; 22476 GNULIB_SETENV=0; 22477 GNULIB_STRTOD=0; 22478 GNULIB_STRTOLD=0; 22479 GNULIB_STRTOLL=0; 22480 GNULIB_STRTOULL=0; 22481 GNULIB_SYSTEM_POSIX=0; 22482 GNULIB_UNLOCKPT=0; 22483 GNULIB_UNSETENV=0; 22484 GNULIB_WCTOMB=0; 22485 HAVE__EXIT=1; 22486 HAVE_ATOLL=1; 22487 HAVE_CANONICALIZE_FILE_NAME=1; 22488 HAVE_DECL_GETLOADAVG=1; 22489 HAVE_GETSUBOPT=1; 22490 HAVE_GRANTPT=1; 22491 HAVE_INITSTATE=1; 22492 HAVE_DECL_INITSTATE=1; 22493 HAVE_MBTOWC=1; 22494 HAVE_MKDTEMP=1; 22495 HAVE_MKOSTEMP=1; 22496 HAVE_MKOSTEMPS=1; 22497 HAVE_MKSTEMP=1; 22498 HAVE_MKSTEMPS=1; 22499 HAVE_POSIX_OPENPT=1; 22500 HAVE_PTSNAME=1; 22501 HAVE_PTSNAME_R=1; 22502 HAVE_QSORT_R=1; 22503 HAVE_RANDOM=1; 22504 HAVE_RANDOM_H=1; 22505 HAVE_RANDOM_R=1; 22506 HAVE_REALLOCARRAY=1; 22507 HAVE_REALPATH=1; 22508 HAVE_RPMATCH=1; 22509 HAVE_SECURE_GETENV=1; 22510 HAVE_SETENV=1; 22511 HAVE_DECL_SETENV=1; 22512 HAVE_SETSTATE=1; 22513 HAVE_DECL_SETSTATE=1; 22514 HAVE_STRTOD=1; 22515 HAVE_STRTOLD=1; 22516 HAVE_STRTOLL=1; 22517 HAVE_STRTOULL=1; 22518 HAVE_STRUCT_RANDOM_DATA=1; 22519 HAVE_SYS_LOADAVG_H=0; 22520 HAVE_UNLOCKPT=1; 22521 HAVE_DECL_UNSETENV=1; 22522 REPLACE_CALLOC=0; 22523 REPLACE_CANONICALIZE_FILE_NAME=0; 22524 REPLACE_INITSTATE=0; 22525 REPLACE_MALLOC=0; 22526 REPLACE_MBTOWC=0; 22527 REPLACE_MKSTEMP=0; 22528 REPLACE_PTSNAME=0; 22529 REPLACE_PTSNAME_R=0; 22530 REPLACE_PUTENV=0; 22531 REPLACE_QSORT_R=0; 22532 REPLACE_RANDOM=0; 22533 REPLACE_RANDOM_R=0; 22534 REPLACE_REALLOC=0; 22535 REPLACE_REALPATH=0; 22536 REPLACE_SETENV=0; 22537 REPLACE_SETSTATE=0; 22538 REPLACE_STRTOD=0; 22539 REPLACE_STRTOLD=0; 22540 REPLACE_UNSETENV=0; 22541 REPLACE_WCTOMB=0; 22542 22543 22544 22545 22546 22547 22548 22549 22550 22551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5 22552$as_echo_n "checking whether // is distinct from /... " >&6; } 22553if ${gl_cv_double_slash_root+:} false; then : 22554 $as_echo_n "(cached) " >&6 22555else 22556 if test x"$cross_compiling" = xyes ; then 22557 # When cross-compiling, there is no way to tell whether // is special 22558 # short of a list of hosts. However, the only known hosts to date 22559 # that have a distinct // are Apollo DomainOS (too old to port to), 22560 # Cygwin, and z/OS. If anyone knows of another system for which // has 22561 # special semantics and is distinct from /, please report it to 22562 # <bug-gnulib@gnu.org>. 22563 case $host in 22564 *-cygwin | i370-ibm-openedition) 22565 gl_cv_double_slash_root=yes ;; 22566 *) 22567 # Be optimistic and assume that / and // are the same when we 22568 # don't know. 22569 gl_cv_double_slash_root='unknown, assuming no' ;; 22570 esac 22571 else 22572 set x `ls -di / // 2>/dev/null` 22573 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then 22574 gl_cv_double_slash_root=no 22575 else 22576 gl_cv_double_slash_root=yes 22577 fi 22578 fi 22579fi 22580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5 22581$as_echo "$gl_cv_double_slash_root" >&6; } 22582 if test "$gl_cv_double_slash_root" = yes; then 22583 22584$as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h 22585 22586 fi 22587 22588 22589 22590 22591 22592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5 22593$as_echo_n "checking whether realpath works... " >&6; } 22594if ${gl_cv_func_realpath_works+:} false; then : 22595 $as_echo_n "(cached) " >&6 22596else 22597 22598 touch conftest.a 22599 mkdir conftest.d 22600 if test "$cross_compiling" = yes; then : 22601 case "$host_os" in 22602 # Guess yes on glibc systems. 22603 *-gnu* | gnu*) gl_cv_func_realpath_works="guessing yes" ;; 22604 # Guess yes on musl systems. 22605 *-musl*) gl_cv_func_realpath_works="guessing yes" ;; 22606 # Guess no on native Windows. 22607 mingw*) gl_cv_func_realpath_works="guessing no" ;; 22608 # If we don't know, obey --enable-cross-guesses. 22609 *) gl_cv_func_realpath_works="$gl_cross_guess_normal" ;; 22610 esac 22611 22612else 22613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22614/* end confdefs.h. */ 22615 22616 22617 22618#include <stdlib.h> 22619#if defined __MACH__ && defined __APPLE__ 22620/* Avoid a crash on Mac OS X. */ 22621#include <mach/mach.h> 22622#include <mach/mach_error.h> 22623#include <mach/thread_status.h> 22624#include <mach/exception.h> 22625#include <mach/task.h> 22626#include <pthread.h> 22627/* The exception port on which our thread listens. */ 22628static mach_port_t our_exception_port; 22629/* The main function of the thread listening for exceptions of type 22630 EXC_BAD_ACCESS. */ 22631static void * 22632mach_exception_thread (void *arg) 22633{ 22634 /* Buffer for a message to be received. */ 22635 struct { 22636 mach_msg_header_t head; 22637 mach_msg_body_t msgh_body; 22638 char data[1024]; 22639 } msg; 22640 mach_msg_return_t retval; 22641 /* Wait for a message on the exception port. */ 22642 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg), 22643 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL); 22644 if (retval != MACH_MSG_SUCCESS) 22645 abort (); 22646 exit (1); 22647} 22648static void 22649nocrash_init (void) 22650{ 22651 mach_port_t self = mach_task_self (); 22652 /* Allocate a port on which the thread shall listen for exceptions. */ 22653 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port) 22654 == KERN_SUCCESS) { 22655 /* See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */ 22656 if (mach_port_insert_right (self, our_exception_port, our_exception_port, 22657 MACH_MSG_TYPE_MAKE_SEND) 22658 == KERN_SUCCESS) { 22659 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting 22660 for us. */ 22661 exception_mask_t mask = EXC_MASK_BAD_ACCESS; 22662 /* Create the thread listening on the exception port. */ 22663 pthread_attr_t attr; 22664 pthread_t thread; 22665 if (pthread_attr_init (&attr) == 0 22666 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0 22667 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) { 22668 pthread_attr_destroy (&attr); 22669 /* Replace the exception port info for these exceptions with our own. 22670 Note that we replace the exception port for the entire task, not only 22671 for a particular thread. This has the effect that when our exception 22672 port gets the message, the thread specific exception port has already 22673 been asked, and we don't need to bother about it. 22674 See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */ 22675 task_set_exception_ports (self, mask, our_exception_port, 22676 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE); 22677 } 22678 } 22679 } 22680} 22681#elif defined _WIN32 && ! defined __CYGWIN__ 22682/* Avoid a crash on native Windows. */ 22683#define WIN32_LEAN_AND_MEAN 22684#include <windows.h> 22685#include <winerror.h> 22686static LONG WINAPI 22687exception_filter (EXCEPTION_POINTERS *ExceptionInfo) 22688{ 22689 switch (ExceptionInfo->ExceptionRecord->ExceptionCode) 22690 { 22691 case EXCEPTION_ACCESS_VIOLATION: 22692 case EXCEPTION_IN_PAGE_ERROR: 22693 case EXCEPTION_STACK_OVERFLOW: 22694 case EXCEPTION_GUARD_PAGE: 22695 case EXCEPTION_PRIV_INSTRUCTION: 22696 case EXCEPTION_ILLEGAL_INSTRUCTION: 22697 case EXCEPTION_DATATYPE_MISALIGNMENT: 22698 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED: 22699 case EXCEPTION_NONCONTINUABLE_EXCEPTION: 22700 exit (1); 22701 } 22702 return EXCEPTION_CONTINUE_SEARCH; 22703} 22704static void 22705nocrash_init (void) 22706{ 22707 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter); 22708} 22709#else 22710/* Avoid a crash on POSIX systems. */ 22711#include <signal.h> 22712#include <unistd.h> 22713/* A POSIX signal handler. */ 22714static void 22715exception_handler (int sig) 22716{ 22717 _exit (1); 22718} 22719static void 22720nocrash_init (void) 22721{ 22722#ifdef SIGSEGV 22723 signal (SIGSEGV, exception_handler); 22724#endif 22725#ifdef SIGBUS 22726 signal (SIGBUS, exception_handler); 22727#endif 22728} 22729#endif 22730 22731 #include <stdlib.h> 22732 #include <string.h> 22733 22734int 22735main () 22736{ 22737 22738 int result = 0; 22739 { 22740 char *name = realpath ("conftest.a", NULL); 22741 if (!(name && *name == '/')) 22742 result |= 1; 22743 free (name); 22744 } 22745 { 22746 char *name = realpath ("conftest.b/../conftest.a", NULL); 22747 if (name != NULL) 22748 result |= 2; 22749 free (name); 22750 } 22751 { 22752 char *name = realpath ("conftest.a/", NULL); 22753 if (name != NULL) 22754 result |= 4; 22755 free (name); 22756 } 22757 { 22758 char *name1 = realpath (".", NULL); 22759 char *name2 = realpath ("conftest.d//./..", NULL); 22760 if (! name1 || ! name2 || strcmp (name1, name2)) 22761 result |= 8; 22762 free (name1); 22763 free (name2); 22764 } 22765 return result; 22766 22767 ; 22768 return 0; 22769} 22770 22771_ACEOF 22772if ac_fn_c_try_run "$LINENO"; then : 22773 gl_cv_func_realpath_works=yes 22774else 22775 gl_cv_func_realpath_works=no 22776fi 22777rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22778 conftest.$ac_objext conftest.beam conftest.$ac_ext 22779fi 22780 22781 rm -rf conftest.a conftest.d 22782 22783fi 22784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5 22785$as_echo "$gl_cv_func_realpath_works" >&6; } 22786 case "$gl_cv_func_realpath_works" in 22787 *yes) 22788 22789$as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h 22790 22791 ;; 22792 esac 22793 22794 22795 22796 22797 22798 22799 22800 22801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 22802$as_echo_n "checking for C/C++ restrict keyword... " >&6; } 22803if ${ac_cv_c_restrict+:} false; then : 22804 $as_echo_n "(cached) " >&6 22805else 22806 ac_cv_c_restrict=no 22807 # The order here caters to the fact that C++ does not require restrict. 22808 for ac_kw in __restrict __restrict__ _Restrict restrict; do 22809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22810/* end confdefs.h. */ 22811typedef int *int_ptr; 22812 int foo (int_ptr $ac_kw ip) { return ip[0]; } 22813 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */ 22814 int bar (int ip[$ac_kw]) { return ip[0]; } 22815 22816int 22817main () 22818{ 22819int s[1]; 22820 int *$ac_kw t = s; 22821 t[0] = 0; 22822 return foo (t) + bar (t); 22823 22824 ; 22825 return 0; 22826} 22827_ACEOF 22828if ac_fn_c_try_compile "$LINENO"; then : 22829 ac_cv_c_restrict=$ac_kw 22830fi 22831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22832 test "$ac_cv_c_restrict" != no && break 22833 done 22834 22835fi 22836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 22837$as_echo "$ac_cv_c_restrict" >&6; } 22838 22839 case $ac_cv_c_restrict in 22840 restrict) ;; 22841 no) $as_echo "#define restrict /**/" >>confdefs.h 22842 ;; 22843 *) cat >>confdefs.h <<_ACEOF 22844#define restrict $ac_cv_c_restrict 22845_ACEOF 22846 ;; 22847 esac 22848 22849 22850 22851 22852 GNULIB_ACCESS=0; 22853 GNULIB_CHDIR=0; 22854 GNULIB_CHOWN=0; 22855 GNULIB_CLOSE=0; 22856 GNULIB_COPY_FILE_RANGE=0; 22857 GNULIB_DUP=0; 22858 GNULIB_DUP2=0; 22859 GNULIB_DUP3=0; 22860 GNULIB_ENVIRON=0; 22861 GNULIB_EUIDACCESS=0; 22862 GNULIB_FACCESSAT=0; 22863 GNULIB_FCHDIR=0; 22864 GNULIB_FCHOWNAT=0; 22865 GNULIB_FDATASYNC=0; 22866 GNULIB_FSYNC=0; 22867 GNULIB_FTRUNCATE=0; 22868 GNULIB_GETCWD=0; 22869 GNULIB_GETDOMAINNAME=0; 22870 GNULIB_GETDTABLESIZE=0; 22871 GNULIB_GETENTROPY=0; 22872 GNULIB_GETGROUPS=0; 22873 GNULIB_GETHOSTNAME=0; 22874 GNULIB_GETLOGIN=0; 22875 GNULIB_GETLOGIN_R=0; 22876 GNULIB_GETOPT_POSIX=0; 22877 GNULIB_GETPAGESIZE=0; 22878 GNULIB_GETPASS=0; 22879 GNULIB_GETUSERSHELL=0; 22880 GNULIB_GROUP_MEMBER=0; 22881 GNULIB_ISATTY=0; 22882 GNULIB_LCHOWN=0; 22883 GNULIB_LINK=0; 22884 GNULIB_LINKAT=0; 22885 GNULIB_LSEEK=0; 22886 GNULIB_PIPE=0; 22887 GNULIB_PIPE2=0; 22888 GNULIB_PREAD=0; 22889 GNULIB_PWRITE=0; 22890 GNULIB_READ=0; 22891 GNULIB_READLINK=0; 22892 GNULIB_READLINKAT=0; 22893 GNULIB_RMDIR=0; 22894 GNULIB_SETHOSTNAME=0; 22895 GNULIB_SLEEP=0; 22896 GNULIB_SYMLINK=0; 22897 GNULIB_SYMLINKAT=0; 22898 GNULIB_TRUNCATE=0; 22899 GNULIB_TTYNAME_R=0; 22900 GNULIB_UNISTD_H_NONBLOCKING=0; 22901 GNULIB_UNISTD_H_SIGPIPE=0; 22902 GNULIB_UNLINK=0; 22903 GNULIB_UNLINKAT=0; 22904 GNULIB_USLEEP=0; 22905 GNULIB_WRITE=0; 22906 HAVE_CHOWN=1; 22907 HAVE_COPY_FILE_RANGE=1; 22908 HAVE_DUP3=1; 22909 HAVE_EUIDACCESS=1; 22910 HAVE_FACCESSAT=1; 22911 HAVE_FCHDIR=1; 22912 HAVE_FCHOWNAT=1; 22913 HAVE_FDATASYNC=1; 22914 HAVE_FSYNC=1; 22915 HAVE_FTRUNCATE=1; 22916 HAVE_GETDTABLESIZE=1; 22917 HAVE_GETENTROPY=1; 22918 HAVE_GETGROUPS=1; 22919 HAVE_GETHOSTNAME=1; 22920 HAVE_GETLOGIN=1; 22921 HAVE_GETPAGESIZE=1; 22922 HAVE_GETPASS=1; 22923 HAVE_GROUP_MEMBER=1; 22924 HAVE_LCHOWN=1; 22925 HAVE_LINK=1; 22926 HAVE_LINKAT=1; 22927 HAVE_PIPE=1; 22928 HAVE_PIPE2=1; 22929 HAVE_PREAD=1; 22930 HAVE_PWRITE=1; 22931 HAVE_READLINK=1; 22932 HAVE_READLINKAT=1; 22933 HAVE_SETHOSTNAME=1; 22934 HAVE_SLEEP=1; 22935 HAVE_SYMLINK=1; 22936 HAVE_SYMLINKAT=1; 22937 HAVE_UNLINKAT=1; 22938 HAVE_USLEEP=1; 22939 HAVE_DECL_ENVIRON=1; 22940 HAVE_DECL_FCHDIR=1; 22941 HAVE_DECL_FDATASYNC=1; 22942 HAVE_DECL_GETDOMAINNAME=1; 22943 HAVE_DECL_GETLOGIN=1; 22944 HAVE_DECL_GETLOGIN_R=1; 22945 HAVE_DECL_GETPAGESIZE=1; 22946 HAVE_DECL_GETUSERSHELL=1; 22947 HAVE_DECL_SETHOSTNAME=1; 22948 HAVE_DECL_TRUNCATE=1; 22949 HAVE_DECL_TTYNAME_R=1; 22950 HAVE_OS_H=0; 22951 HAVE_SYS_PARAM_H=0; 22952 REPLACE_ACCESS=0; 22953 REPLACE_CHOWN=0; 22954 REPLACE_CLOSE=0; 22955 REPLACE_DUP=0; 22956 REPLACE_DUP2=0; 22957 REPLACE_FACCESSAT=0; 22958 REPLACE_FCHOWNAT=0; 22959 REPLACE_FTRUNCATE=0; 22960 REPLACE_GETCWD=0; 22961 REPLACE_GETDOMAINNAME=0; 22962 REPLACE_GETDTABLESIZE=0; 22963 REPLACE_GETLOGIN_R=0; 22964 REPLACE_GETGROUPS=0; 22965 REPLACE_GETPAGESIZE=0; 22966 REPLACE_GETPASS=0; 22967 REPLACE_ISATTY=0; 22968 REPLACE_LCHOWN=0; 22969 REPLACE_LINK=0; 22970 REPLACE_LINKAT=0; 22971 REPLACE_LSEEK=0; 22972 REPLACE_PREAD=0; 22973 REPLACE_PWRITE=0; 22974 REPLACE_READ=0; 22975 REPLACE_READLINK=0; 22976 REPLACE_READLINKAT=0; 22977 REPLACE_RMDIR=0; 22978 REPLACE_SLEEP=0; 22979 REPLACE_SYMLINK=0; 22980 REPLACE_SYMLINKAT=0; 22981 REPLACE_TRUNCATE=0; 22982 REPLACE_TTYNAME_R=0; 22983 REPLACE_UNLINK=0; 22984 REPLACE_UNLINKAT=0; 22985 REPLACE_USLEEP=0; 22986 REPLACE_WRITE=0; 22987 UNISTD_H_HAVE_SYS_RANDOM_H=0; 22988 UNISTD_H_HAVE_WINSOCK2_H=0; 22989 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0; 22990 22991 22992 22993 22994 22995 22996 if test $ac_cv_func__set_invalid_parameter_handler = yes; then 22997 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1 22998 22999$as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h 23000 23001 else 23002 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0 23003 fi 23004 23005 23006 23007 23008 23009 23010 23011 23012 23013 23014 23015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5 23016$as_echo_n "checking if environ is properly declared... " >&6; } 23017if ${gt_cv_var_environ_declaration+:} false; then : 23018 $as_echo_n "(cached) " >&6 23019else 23020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23021/* end confdefs.h. */ 23022#if HAVE_UNISTD_H 23023 #include <unistd.h> 23024 #endif 23025 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */ 23026 #include <stdlib.h> 23027 23028 extern struct { int foo; } environ; 23029int 23030main () 23031{ 23032environ.foo = 1; 23033 ; 23034 return 0; 23035} 23036_ACEOF 23037if ac_fn_c_try_compile "$LINENO"; then : 23038 gt_cv_var_environ_declaration=no 23039else 23040 gt_cv_var_environ_declaration=yes 23041fi 23042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23043fi 23044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5 23045$as_echo "$gt_cv_var_environ_declaration" >&6; } 23046 if test $gt_cv_var_environ_declaration = yes; then 23047 23048$as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h 23049 23050 fi 23051 23052 23053 if test $gt_cv_var_environ_declaration != yes; then 23054 HAVE_DECL_ENVIRON=0 23055 fi 23056 23057 23058 23059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5 23060$as_echo_n "checking whether the preprocessor supports include_next... " >&6; } 23061if ${gl_cv_have_include_next+:} false; then : 23062 $as_echo_n "(cached) " >&6 23063else 23064 rm -rf conftestd1a conftestd1b conftestd2 23065 mkdir conftestd1a conftestd1b conftestd2 23066 cat <<EOF > conftestd1a/conftest.h 23067#define DEFINED_IN_CONFTESTD1 23068#include_next <conftest.h> 23069#ifdef DEFINED_IN_CONFTESTD2 23070int foo; 23071#else 23072#error "include_next doesn't work" 23073#endif 23074EOF 23075 cat <<EOF > conftestd1b/conftest.h 23076#define DEFINED_IN_CONFTESTD1 23077#include <stdio.h> 23078#include_next <conftest.h> 23079#ifdef DEFINED_IN_CONFTESTD2 23080int foo; 23081#else 23082#error "include_next doesn't work" 23083#endif 23084EOF 23085 cat <<EOF > conftestd2/conftest.h 23086#ifndef DEFINED_IN_CONFTESTD1 23087#error "include_next test doesn't work" 23088#endif 23089#define DEFINED_IN_CONFTESTD2 23090EOF 23091 gl_save_CPPFLAGS="$CPPFLAGS" 23092 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2" 23093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23094/* end confdefs.h. */ 23095#include <conftest.h> 23096_ACEOF 23097if ac_fn_c_try_compile "$LINENO"; then : 23098 gl_cv_have_include_next=yes 23099else 23100 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2" 23101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23102/* end confdefs.h. */ 23103#include <conftest.h> 23104_ACEOF 23105if ac_fn_c_try_compile "$LINENO"; then : 23106 gl_cv_have_include_next=buggy 23107else 23108 gl_cv_have_include_next=no 23109fi 23110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23111 23112fi 23113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23114 CPPFLAGS="$gl_save_CPPFLAGS" 23115 rm -rf conftestd1a conftestd1b conftestd2 23116 23117fi 23118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5 23119$as_echo "$gl_cv_have_include_next" >&6; } 23120 PRAGMA_SYSTEM_HEADER= 23121 if test $gl_cv_have_include_next = yes; then 23122 INCLUDE_NEXT=include_next 23123 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next 23124 if test -n "$GCC"; then 23125 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header' 23126 fi 23127 else 23128 if test $gl_cv_have_include_next = buggy; then 23129 INCLUDE_NEXT=include 23130 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next 23131 else 23132 INCLUDE_NEXT=include 23133 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include 23134 fi 23135 fi 23136 23137 23138 23139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5 23140$as_echo_n "checking whether system header files limit the line length... " >&6; } 23141if ${gl_cv_pragma_columns+:} false; then : 23142 $as_echo_n "(cached) " >&6 23143else 23144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23145/* end confdefs.h. */ 23146 23147#ifdef __TANDEM 23148choke me 23149#endif 23150 23151_ACEOF 23152if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23153 $EGREP "choke me" >/dev/null 2>&1; then : 23154 gl_cv_pragma_columns=yes 23155else 23156 gl_cv_pragma_columns=no 23157fi 23158rm -f conftest* 23159 23160 23161fi 23162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5 23163$as_echo "$gl_cv_pragma_columns" >&6; } 23164 if test $gl_cv_pragma_columns = yes; then 23165 PRAGMA_COLUMNS="#pragma COLUMNS 10000" 23166 else 23167 PRAGMA_COLUMNS= 23168 fi 23169 23170 23171 23172 23173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5 23174$as_echo_n "checking for complete errno.h... " >&6; } 23175if ${gl_cv_header_errno_h_complete+:} false; then : 23176 $as_echo_n "(cached) " >&6 23177else 23178 23179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23180/* end confdefs.h. */ 23181 23182#include <errno.h> 23183#if !defined ETXTBSY 23184booboo 23185#endif 23186#if !defined ENOMSG 23187booboo 23188#endif 23189#if !defined EIDRM 23190booboo 23191#endif 23192#if !defined ENOLINK 23193booboo 23194#endif 23195#if !defined EPROTO 23196booboo 23197#endif 23198#if !defined EMULTIHOP 23199booboo 23200#endif 23201#if !defined EBADMSG 23202booboo 23203#endif 23204#if !defined EOVERFLOW 23205booboo 23206#endif 23207#if !defined ENOTSUP 23208booboo 23209#endif 23210#if !defined ENETRESET 23211booboo 23212#endif 23213#if !defined ECONNABORTED 23214booboo 23215#endif 23216#if !defined ESTALE 23217booboo 23218#endif 23219#if !defined EDQUOT 23220booboo 23221#endif 23222#if !defined ECANCELED 23223booboo 23224#endif 23225#if !defined EOWNERDEAD 23226booboo 23227#endif 23228#if !defined ENOTRECOVERABLE 23229booboo 23230#endif 23231#if !defined EILSEQ 23232booboo 23233#endif 23234 23235_ACEOF 23236if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23237 $EGREP "booboo" >/dev/null 2>&1; then : 23238 gl_cv_header_errno_h_complete=no 23239else 23240 gl_cv_header_errno_h_complete=yes 23241fi 23242rm -f conftest* 23243 23244 23245fi 23246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5 23247$as_echo "$gl_cv_header_errno_h_complete" >&6; } 23248 if test $gl_cv_header_errno_h_complete = yes; then 23249 ERRNO_H='' 23250 else 23251 23252 23253 23254 23255 23256 23257 23258 23259 if test $gl_cv_have_include_next = yes; then 23260 gl_cv_next_errno_h='<'errno.h'>' 23261 else 23262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5 23263$as_echo_n "checking absolute name of <errno.h>... " >&6; } 23264if ${gl_cv_next_errno_h+:} false; then : 23265 $as_echo_n "(cached) " >&6 23266else 23267 23268 23269 23270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23271/* end confdefs.h. */ 23272#include <errno.h> 23273_ACEOF 23274 case "$host_os" in 23275 aix*) gl_absname_cpp="$ac_cpp -C" ;; 23276 *) gl_absname_cpp="$ac_cpp" ;; 23277 esac 23278 23279 case "$host_os" in 23280 mingw*) 23281 gl_dirsep_regex='[/\\]' 23282 ;; 23283 *) 23284 gl_dirsep_regex='\/' 23285 ;; 23286 esac 23287 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 23288 gl_header_literal_regex=`echo 'errno.h' \ 23289 | sed -e "$gl_make_literal_regex_sed"` 23290 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 23291 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 23292 s|^/[^/]|//&| 23293 p 23294 q 23295 }' 23296 23297 gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 23298 sed -n "$gl_absolute_header_sed"` 23299 23300 gl_header=$gl_cv_absolute_errno_h 23301 gl_cv_next_errno_h='"'$gl_header'"' 23302 23303 23304fi 23305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5 23306$as_echo "$gl_cv_next_errno_h" >&6; } 23307 fi 23308 NEXT_ERRNO_H=$gl_cv_next_errno_h 23309 23310 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 23311 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 23312 gl_next_as_first_directive='<'errno.h'>' 23313 else 23314 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 23315 gl_next_as_first_directive=$gl_cv_next_errno_h 23316 fi 23317 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive 23318 23319 23320 23321 23322 ERRNO_H='errno.h' 23323 fi 23324 23325 if test -n "$ERRNO_H"; then 23326 GL_GENERATE_ERRNO_H_TRUE= 23327 GL_GENERATE_ERRNO_H_FALSE='#' 23328else 23329 GL_GENERATE_ERRNO_H_TRUE='#' 23330 GL_GENERATE_ERRNO_H_FALSE= 23331fi 23332 23333 23334 if test -n "$ERRNO_H"; then 23335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5 23336$as_echo_n "checking for EMULTIHOP value... " >&6; } 23337if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then : 23338 $as_echo_n "(cached) " >&6 23339else 23340 23341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23342/* end confdefs.h. */ 23343 23344#include <errno.h> 23345#ifdef EMULTIHOP 23346yes 23347#endif 23348 23349_ACEOF 23350if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23351 $EGREP "yes" >/dev/null 2>&1; then : 23352 gl_cv_header_errno_h_EMULTIHOP=yes 23353else 23354 gl_cv_header_errno_h_EMULTIHOP=no 23355fi 23356rm -f conftest* 23357 23358 if test $gl_cv_header_errno_h_EMULTIHOP = no; then 23359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23360/* end confdefs.h. */ 23361 23362#define _XOPEN_SOURCE_EXTENDED 1 23363#include <errno.h> 23364#ifdef EMULTIHOP 23365yes 23366#endif 23367 23368_ACEOF 23369if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23370 $EGREP "yes" >/dev/null 2>&1; then : 23371 gl_cv_header_errno_h_EMULTIHOP=hidden 23372fi 23373rm -f conftest* 23374 23375 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then 23376 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" " 23377#define _XOPEN_SOURCE_EXTENDED 1 23378#include <errno.h> 23379/* The following two lines are a workaround against an autoconf-2.52 bug. */ 23380#include <stdio.h> 23381#include <stdlib.h> 23382"; then : 23383 23384fi 23385 23386 fi 23387 fi 23388 23389fi 23390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5 23391$as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; } 23392 case $gl_cv_header_errno_h_EMULTIHOP in 23393 yes | no) 23394 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE= 23395 ;; 23396 *) 23397 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP" 23398 ;; 23399 esac 23400 23401 23402 fi 23403 23404 23405 if test -n "$ERRNO_H"; then 23406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5 23407$as_echo_n "checking for ENOLINK value... " >&6; } 23408if ${gl_cv_header_errno_h_ENOLINK+:} false; then : 23409 $as_echo_n "(cached) " >&6 23410else 23411 23412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23413/* end confdefs.h. */ 23414 23415#include <errno.h> 23416#ifdef ENOLINK 23417yes 23418#endif 23419 23420_ACEOF 23421if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23422 $EGREP "yes" >/dev/null 2>&1; then : 23423 gl_cv_header_errno_h_ENOLINK=yes 23424else 23425 gl_cv_header_errno_h_ENOLINK=no 23426fi 23427rm -f conftest* 23428 23429 if test $gl_cv_header_errno_h_ENOLINK = no; then 23430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23431/* end confdefs.h. */ 23432 23433#define _XOPEN_SOURCE_EXTENDED 1 23434#include <errno.h> 23435#ifdef ENOLINK 23436yes 23437#endif 23438 23439_ACEOF 23440if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23441 $EGREP "yes" >/dev/null 2>&1; then : 23442 gl_cv_header_errno_h_ENOLINK=hidden 23443fi 23444rm -f conftest* 23445 23446 if test $gl_cv_header_errno_h_ENOLINK = hidden; then 23447 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" " 23448#define _XOPEN_SOURCE_EXTENDED 1 23449#include <errno.h> 23450/* The following two lines are a workaround against an autoconf-2.52 bug. */ 23451#include <stdio.h> 23452#include <stdlib.h> 23453"; then : 23454 23455fi 23456 23457 fi 23458 fi 23459 23460fi 23461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5 23462$as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; } 23463 case $gl_cv_header_errno_h_ENOLINK in 23464 yes | no) 23465 ENOLINK_HIDDEN=0; ENOLINK_VALUE= 23466 ;; 23467 *) 23468 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK" 23469 ;; 23470 esac 23471 23472 23473 fi 23474 23475 23476 if test -n "$ERRNO_H"; then 23477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5 23478$as_echo_n "checking for EOVERFLOW value... " >&6; } 23479if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then : 23480 $as_echo_n "(cached) " >&6 23481else 23482 23483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23484/* end confdefs.h. */ 23485 23486#include <errno.h> 23487#ifdef EOVERFLOW 23488yes 23489#endif 23490 23491_ACEOF 23492if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23493 $EGREP "yes" >/dev/null 2>&1; then : 23494 gl_cv_header_errno_h_EOVERFLOW=yes 23495else 23496 gl_cv_header_errno_h_EOVERFLOW=no 23497fi 23498rm -f conftest* 23499 23500 if test $gl_cv_header_errno_h_EOVERFLOW = no; then 23501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23502/* end confdefs.h. */ 23503 23504#define _XOPEN_SOURCE_EXTENDED 1 23505#include <errno.h> 23506#ifdef EOVERFLOW 23507yes 23508#endif 23509 23510_ACEOF 23511if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23512 $EGREP "yes" >/dev/null 2>&1; then : 23513 gl_cv_header_errno_h_EOVERFLOW=hidden 23514fi 23515rm -f conftest* 23516 23517 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then 23518 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" " 23519#define _XOPEN_SOURCE_EXTENDED 1 23520#include <errno.h> 23521/* The following two lines are a workaround against an autoconf-2.52 bug. */ 23522#include <stdio.h> 23523#include <stdlib.h> 23524"; then : 23525 23526fi 23527 23528 fi 23529 fi 23530 23531fi 23532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5 23533$as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; } 23534 case $gl_cv_header_errno_h_EOVERFLOW in 23535 yes | no) 23536 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE= 23537 ;; 23538 *) 23539 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW" 23540 ;; 23541 esac 23542 23543 23544 fi 23545 23546 23547ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" 23548if test "x$ac_cv_have_decl_strerror_r" = xyes; then : 23549 ac_have_decl=1 23550else 23551 ac_have_decl=0 23552fi 23553 23554cat >>confdefs.h <<_ACEOF 23555#define HAVE_DECL_STRERROR_R $ac_have_decl 23556_ACEOF 23557 23558for ac_func in strerror_r 23559do : 23560 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" 23561if test "x$ac_cv_func_strerror_r" = xyes; then : 23562 cat >>confdefs.h <<_ACEOF 23563#define HAVE_STRERROR_R 1 23564_ACEOF 23565 23566fi 23567done 23568 23569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 23570$as_echo_n "checking whether strerror_r returns char *... " >&6; } 23571if ${ac_cv_func_strerror_r_char_p+:} false; then : 23572 $as_echo_n "(cached) " >&6 23573else 23574 23575 ac_cv_func_strerror_r_char_p=no 23576 if test $ac_cv_have_decl_strerror_r = yes; then 23577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23578/* end confdefs.h. */ 23579$ac_includes_default 23580int 23581main () 23582{ 23583 23584 char buf[100]; 23585 char x = *strerror_r (0, buf, sizeof buf); 23586 char *p = strerror_r (0, buf, sizeof buf); 23587 return !p || x; 23588 23589 ; 23590 return 0; 23591} 23592_ACEOF 23593if ac_fn_c_try_compile "$LINENO"; then : 23594 ac_cv_func_strerror_r_char_p=yes 23595fi 23596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23597 else 23598 # strerror_r is not declared. Choose between 23599 # systems that have relatively inaccessible declarations for the 23600 # function. BeOS and DEC UNIX 4.0 fall in this category, but the 23601 # former has a strerror_r that returns char*, while the latter 23602 # has a strerror_r that returns `int'. 23603 # This test should segfault on the DEC system. 23604 if test "$cross_compiling" = yes; then : 23605 : 23606else 23607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23608/* end confdefs.h. */ 23609$ac_includes_default 23610 extern char *strerror_r (); 23611int 23612main () 23613{ 23614char buf[100]; 23615 char x = *strerror_r (0, buf, sizeof buf); 23616 return ! isalpha (x); 23617 ; 23618 return 0; 23619} 23620_ACEOF 23621if ac_fn_c_try_run "$LINENO"; then : 23622 ac_cv_func_strerror_r_char_p=yes 23623fi 23624rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23625 conftest.$ac_objext conftest.beam conftest.$ac_ext 23626fi 23627 23628 fi 23629 23630fi 23631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 23632$as_echo "$ac_cv_func_strerror_r_char_p" >&6; } 23633if test $ac_cv_func_strerror_r_char_p = yes; then 23634 23635$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h 23636 23637fi 23638 23639 23640 XGETTEXT_EXTRA_OPTIONS= 23641 23642 23643 GNULIB_CREAT=0; 23644 GNULIB_FCNTL=0; 23645 GNULIB_NONBLOCKING=0; 23646 GNULIB_OPEN=0; 23647 GNULIB_OPENAT=0; 23648 HAVE_FCNTL=1; 23649 HAVE_OPENAT=1; 23650 REPLACE_CREAT=0; 23651 REPLACE_FCNTL=0; 23652 REPLACE_OPEN=0; 23653 REPLACE_OPENAT=0; 23654 23655 23656 23657ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 23658if test "x$ac_cv_type_pid_t" = xyes; then : 23659 23660else 23661 23662cat >>confdefs.h <<_ACEOF 23663#define pid_t int 23664_ACEOF 23665 23666fi 23667 23668ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 23669if test "x$ac_cv_type_mode_t" = xyes; then : 23670 23671else 23672 23673cat >>confdefs.h <<_ACEOF 23674#define mode_t int 23675_ACEOF 23676 23677fi 23678 23679 23680 GNULIB_FCHMODAT=0; 23681 GNULIB_FSTAT=0; 23682 GNULIB_FSTATAT=0; 23683 GNULIB_FUTIMENS=0; 23684 GNULIB_GETUMASK=0; 23685 GNULIB_LCHMOD=0; 23686 GNULIB_LSTAT=0; 23687 GNULIB_MKDIRAT=0; 23688 GNULIB_MKFIFO=0; 23689 GNULIB_MKFIFOAT=0; 23690 GNULIB_MKNOD=0; 23691 GNULIB_MKNODAT=0; 23692 GNULIB_STAT=0; 23693 GNULIB_UTIMENSAT=0; 23694 GNULIB_OVERRIDES_STRUCT_STAT=0; 23695 HAVE_FCHMODAT=1; 23696 HAVE_FSTATAT=1; 23697 HAVE_FUTIMENS=1; 23698 HAVE_GETUMASK=1; 23699 HAVE_LCHMOD=1; 23700 HAVE_LSTAT=1; 23701 HAVE_MKDIRAT=1; 23702 HAVE_MKFIFO=1; 23703 HAVE_MKFIFOAT=1; 23704 HAVE_MKNOD=1; 23705 HAVE_MKNODAT=1; 23706 HAVE_UTIMENSAT=1; 23707 REPLACE_FCHMODAT=0; 23708 REPLACE_FSTAT=0; 23709 REPLACE_FSTATAT=0; 23710 REPLACE_FUTIMENS=0; 23711 REPLACE_LSTAT=0; 23712 REPLACE_MKDIR=0; 23713 REPLACE_MKFIFO=0; 23714 REPLACE_MKNOD=0; 23715 REPLACE_STAT=0; 23716 REPLACE_UTIMENSAT=0; 23717 23718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5 23719$as_echo_n "checking whether stat file-mode macros are broken... " >&6; } 23720if ${ac_cv_header_stat_broken+:} false; then : 23721 $as_echo_n "(cached) " >&6 23722else 23723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23724/* end confdefs.h. */ 23725#include <sys/types.h> 23726#include <sys/stat.h> 23727 23728#if defined S_ISBLK && defined S_IFDIR 23729extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; 23730#endif 23731 23732#if defined S_ISBLK && defined S_IFCHR 23733extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; 23734#endif 23735 23736#if defined S_ISLNK && defined S_IFREG 23737extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; 23738#endif 23739 23740#if defined S_ISSOCK && defined S_IFREG 23741extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; 23742#endif 23743 23744_ACEOF 23745if ac_fn_c_try_compile "$LINENO"; then : 23746 ac_cv_header_stat_broken=no 23747else 23748 ac_cv_header_stat_broken=yes 23749fi 23750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23751fi 23752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5 23753$as_echo "$ac_cv_header_stat_broken" >&6; } 23754if test $ac_cv_header_stat_broken = yes; then 23755 23756$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h 23757 23758fi 23759 23760 23761 23762 23763 23764 case "$host_os" in 23765 mingw*) 23766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5 23767$as_echo_n "checking for 64-bit off_t... " >&6; } 23768if ${gl_cv_type_off_t_64+:} false; then : 23769 $as_echo_n "(cached) " >&6 23770else 23771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23772/* end confdefs.h. */ 23773#include <sys/types.h> 23774 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1]; 23775 23776int 23777main () 23778{ 23779 23780 ; 23781 return 0; 23782} 23783_ACEOF 23784if ac_fn_c_try_compile "$LINENO"; then : 23785 gl_cv_type_off_t_64=yes 23786else 23787 gl_cv_type_off_t_64=no 23788fi 23789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23790 23791fi 23792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5 23793$as_echo "$gl_cv_type_off_t_64" >&6; } 23794 if test $gl_cv_type_off_t_64 = no; then 23795 WINDOWS_64_BIT_OFF_T=1 23796 else 23797 WINDOWS_64_BIT_OFF_T=0 23798 fi 23799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit st_size" >&5 23800$as_echo_n "checking for 64-bit st_size... " >&6; } 23801if ${gl_cv_member_st_size_64+:} false; then : 23802 $as_echo_n "(cached) " >&6 23803else 23804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23805/* end confdefs.h. */ 23806#include <sys/types.h> 23807 struct stat buf; 23808 int verify_st_size_size[sizeof (buf.st_size) >= 8 ? 1 : -1]; 23809 23810int 23811main () 23812{ 23813 23814 ; 23815 return 0; 23816} 23817_ACEOF 23818if ac_fn_c_try_compile "$LINENO"; then : 23819 gl_cv_member_st_size_64=yes 23820else 23821 gl_cv_member_st_size_64=no 23822fi 23823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23824 23825fi 23826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_member_st_size_64" >&5 23827$as_echo "$gl_cv_member_st_size_64" >&6; } 23828 if test $gl_cv_member_st_size_64 = no; then 23829 WINDOWS_64_BIT_ST_SIZE=1 23830 else 23831 WINDOWS_64_BIT_ST_SIZE=0 23832 fi 23833 ;; 23834 *) 23835 WINDOWS_64_BIT_OFF_T=0 23836 WINDOWS_64_BIT_ST_SIZE=0 23837 ;; 23838 esac 23839 23840 23841 23842 23843 23844 23845 23846 23847 23848 23849 23850 23851 23852 23853 23854 if test $gl_cv_have_include_next = yes; then 23855 gl_cv_next_sys_stat_h='<'sys/stat.h'>' 23856 else 23857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5 23858$as_echo_n "checking absolute name of <sys/stat.h>... " >&6; } 23859if ${gl_cv_next_sys_stat_h+:} false; then : 23860 $as_echo_n "(cached) " >&6 23861else 23862 23863 if test $ac_cv_header_sys_stat_h = yes; then 23864 23865 23866 23867 23868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23869/* end confdefs.h. */ 23870#include <sys/stat.h> 23871_ACEOF 23872 case "$host_os" in 23873 aix*) gl_absname_cpp="$ac_cpp -C" ;; 23874 *) gl_absname_cpp="$ac_cpp" ;; 23875 esac 23876 23877 case "$host_os" in 23878 mingw*) 23879 gl_dirsep_regex='[/\\]' 23880 ;; 23881 *) 23882 gl_dirsep_regex='\/' 23883 ;; 23884 esac 23885 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 23886 gl_header_literal_regex=`echo 'sys/stat.h' \ 23887 | sed -e "$gl_make_literal_regex_sed"` 23888 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 23889 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 23890 s|^/[^/]|//&| 23891 p 23892 q 23893 }' 23894 23895 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 23896 sed -n "$gl_absolute_header_sed"` 23897 23898 gl_header=$gl_cv_absolute_sys_stat_h 23899 gl_cv_next_sys_stat_h='"'$gl_header'"' 23900 else 23901 gl_cv_next_sys_stat_h='<'sys/stat.h'>' 23902 fi 23903 23904 23905fi 23906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5 23907$as_echo "$gl_cv_next_sys_stat_h" >&6; } 23908 fi 23909 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h 23910 23911 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 23912 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 23913 gl_next_as_first_directive='<'sys/stat.h'>' 23914 else 23915 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 23916 gl_next_as_first_directive=$gl_cv_next_sys_stat_h 23917 fi 23918 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive 23919 23920 23921 23922 23923 23924 23925 23926 23927 WINDOWS_STAT_TIMESPEC=0 23928 23929 23930 23931 23932 23933 23934 23935 23936 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h> 23937 #include <sys/stat.h> 23938" 23939if test "x$ac_cv_type_nlink_t" = xyes; then : 23940 23941else 23942 23943$as_echo "#define nlink_t int" >>confdefs.h 23944 23945fi 23946 23947 23948 23949 23950 23951 23952 23953 23954 23955 23956ac_fn_c_check_decl "$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default" 23957if test "x$ac_cv_have_decl_getdtablesize" = xyes; then : 23958 ac_have_decl=1 23959else 23960 ac_have_decl=0 23961fi 23962 23963cat >>confdefs.h <<_ACEOF 23964#define HAVE_DECL_GETDTABLESIZE $ac_have_decl 23965_ACEOF 23966 23967 23968 23969 23970 23971 23972 23973 23974 23975 23976 23977 23978 23979 23980 23981 23982 if test $gl_cv_have_include_next = yes; then 23983 gl_cv_next_getopt_h='<'getopt.h'>' 23984 else 23985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5 23986$as_echo_n "checking absolute name of <getopt.h>... " >&6; } 23987if ${gl_cv_next_getopt_h+:} false; then : 23988 $as_echo_n "(cached) " >&6 23989else 23990 23991 if test $ac_cv_header_getopt_h = yes; then 23992 23993 23994 23995 23996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23997/* end confdefs.h. */ 23998#include <getopt.h> 23999_ACEOF 24000 case "$host_os" in 24001 aix*) gl_absname_cpp="$ac_cpp -C" ;; 24002 *) gl_absname_cpp="$ac_cpp" ;; 24003 esac 24004 24005 case "$host_os" in 24006 mingw*) 24007 gl_dirsep_regex='[/\\]' 24008 ;; 24009 *) 24010 gl_dirsep_regex='\/' 24011 ;; 24012 esac 24013 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 24014 gl_header_literal_regex=`echo 'getopt.h' \ 24015 | sed -e "$gl_make_literal_regex_sed"` 24016 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 24017 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 24018 s|^/[^/]|//&| 24019 p 24020 q 24021 }' 24022 24023 gl_cv_absolute_getopt_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 24024 sed -n "$gl_absolute_header_sed"` 24025 24026 gl_header=$gl_cv_absolute_getopt_h 24027 gl_cv_next_getopt_h='"'$gl_header'"' 24028 else 24029 gl_cv_next_getopt_h='<'getopt.h'>' 24030 fi 24031 24032 24033fi 24034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5 24035$as_echo "$gl_cv_next_getopt_h" >&6; } 24036 fi 24037 NEXT_GETOPT_H=$gl_cv_next_getopt_h 24038 24039 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 24040 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 24041 gl_next_as_first_directive='<'getopt.h'>' 24042 else 24043 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 24044 gl_next_as_first_directive=$gl_cv_next_getopt_h 24045 fi 24046 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive 24047 24048 24049 24050 24051 if test $ac_cv_header_getopt_h = yes; then 24052 HAVE_GETOPT_H=1 24053 else 24054 HAVE_GETOPT_H=0 24055 fi 24056 24057 24058 gl_replace_getopt= 24059 24060 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then 24061 for ac_header in getopt.h 24062do : 24063 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" 24064if test "x$ac_cv_header_getopt_h" = xyes; then : 24065 cat >>confdefs.h <<_ACEOF 24066#define HAVE_GETOPT_H 1 24067_ACEOF 24068 24069else 24070 gl_replace_getopt=yes 24071fi 24072 24073done 24074 24075 fi 24076 24077 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then 24078 for ac_func in getopt_long_only 24079do : 24080 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only" 24081if test "x$ac_cv_func_getopt_long_only" = xyes; then : 24082 cat >>confdefs.h <<_ACEOF 24083#define HAVE_GETOPT_LONG_ONLY 1 24084_ACEOF 24085 24086else 24087 gl_replace_getopt=yes 24088fi 24089done 24090 24091 fi 24092 24093 if test -z "$gl_replace_getopt"; then 24094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5 24095$as_echo_n "checking whether getopt is POSIX compatible... " >&6; } 24096if ${gl_cv_func_getopt_posix+:} false; then : 24097 $as_echo_n "(cached) " >&6 24098else 24099 24100 if test $cross_compiling = no; then 24101 if test "$cross_compiling" = yes; then : 24102 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24103$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24104as_fn_error $? "cannot run test program while cross compiling 24105See \`config.log' for more details" "$LINENO" 5; } 24106else 24107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24108/* end confdefs.h. */ 24109 24110#include <unistd.h> 24111#include <stdlib.h> 24112#include <string.h> 24113 24114int 24115main () 24116{ 24117 static char program[] = "program"; 24118 static char a[] = "-a"; 24119 static char foo[] = "foo"; 24120 static char bar[] = "bar"; 24121 char *argv[] = { program, a, foo, bar, NULL }; 24122 int c; 24123 24124 c = getopt (4, argv, "ab"); 24125 if (!(c == 'a')) 24126 return 1; 24127 c = getopt (4, argv, "ab"); 24128 if (!(c == -1)) 24129 return 2; 24130 if (!(optind == 2)) 24131 return 3; 24132 return 0; 24133} 24134 24135_ACEOF 24136if ac_fn_c_try_run "$LINENO"; then : 24137 gl_cv_func_getopt_posix=maybe 24138else 24139 gl_cv_func_getopt_posix=no 24140fi 24141rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24142 conftest.$ac_objext conftest.beam conftest.$ac_ext 24143fi 24144 24145 if test $gl_cv_func_getopt_posix = maybe; then 24146 if test "$cross_compiling" = yes; then : 24147 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24148$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24149as_fn_error $? "cannot run test program while cross compiling 24150See \`config.log' for more details" "$LINENO" 5; } 24151else 24152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24153/* end confdefs.h. */ 24154 24155#include <unistd.h> 24156#include <stdlib.h> 24157#include <string.h> 24158 24159int 24160main () 24161{ 24162 static char program[] = "program"; 24163 static char donald[] = "donald"; 24164 static char p[] = "-p"; 24165 static char billy[] = "billy"; 24166 static char duck[] = "duck"; 24167 static char a[] = "-a"; 24168 static char bar[] = "bar"; 24169 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL }; 24170 int c; 24171 24172 c = getopt (7, argv, "+abp:q:"); 24173 if (!(c == -1)) 24174 return 4; 24175 if (!(strcmp (argv[0], "program") == 0)) 24176 return 5; 24177 if (!(strcmp (argv[1], "donald") == 0)) 24178 return 6; 24179 if (!(strcmp (argv[2], "-p") == 0)) 24180 return 7; 24181 if (!(strcmp (argv[3], "billy") == 0)) 24182 return 8; 24183 if (!(strcmp (argv[4], "duck") == 0)) 24184 return 9; 24185 if (!(strcmp (argv[5], "-a") == 0)) 24186 return 10; 24187 if (!(strcmp (argv[6], "bar") == 0)) 24188 return 11; 24189 if (!(optind == 1)) 24190 return 12; 24191 return 0; 24192} 24193 24194_ACEOF 24195if ac_fn_c_try_run "$LINENO"; then : 24196 gl_cv_func_getopt_posix=maybe 24197else 24198 gl_cv_func_getopt_posix=no 24199fi 24200rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24201 conftest.$ac_objext conftest.beam conftest.$ac_ext 24202fi 24203 24204 fi 24205 if test $gl_cv_func_getopt_posix = maybe; then 24206 if test "$cross_compiling" = yes; then : 24207 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24208$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24209as_fn_error $? "cannot run test program while cross compiling 24210See \`config.log' for more details" "$LINENO" 5; } 24211else 24212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24213/* end confdefs.h. */ 24214 24215#include <unistd.h> 24216#include <stdlib.h> 24217#include <string.h> 24218 24219int 24220main () 24221{ 24222 static char program[] = "program"; 24223 static char ab[] = "-ab"; 24224 char *argv[3] = { program, ab, NULL }; 24225 if (getopt (2, argv, "ab:") != 'a') 24226 return 13; 24227 if (getopt (2, argv, "ab:") != '?') 24228 return 14; 24229 if (optopt != 'b') 24230 return 15; 24231 if (optind != 2) 24232 return 16; 24233 return 0; 24234} 24235 24236_ACEOF 24237if ac_fn_c_try_run "$LINENO"; then : 24238 gl_cv_func_getopt_posix=yes 24239else 24240 gl_cv_func_getopt_posix=no 24241fi 24242rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24243 conftest.$ac_objext conftest.beam conftest.$ac_ext 24244fi 24245 24246 fi 24247 else 24248 case "$host_os" in 24249 darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";; 24250 *) gl_cv_func_getopt_posix="guessing yes";; 24251 esac 24252 fi 24253 24254fi 24255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5 24256$as_echo "$gl_cv_func_getopt_posix" >&6; } 24257 case "$gl_cv_func_getopt_posix" in 24258 *no) gl_replace_getopt=yes ;; 24259 esac 24260 fi 24261 24262 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then 24263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5 24264$as_echo_n "checking for working GNU getopt function... " >&6; } 24265if ${gl_cv_func_getopt_gnu+:} false; then : 24266 $as_echo_n "(cached) " >&6 24267else 24268 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the 24269 # optstring is necessary for programs like m4 that have POSIX-mandated 24270 # semantics for supporting options interspersed with files. 24271 # Also, since getopt_long is a GNU extension, we require optind=0. 24272 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT; 24273 # so take care to revert to the correct (non-)export state. 24274 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }' 24275 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in 24276 xx) gl_had_POSIXLY_CORRECT=exported ;; 24277 x) gl_had_POSIXLY_CORRECT=yes ;; 24278 *) gl_had_POSIXLY_CORRECT= ;; 24279 esac 24280 POSIXLY_CORRECT=1 24281 export POSIXLY_CORRECT 24282 if test "$cross_compiling" = yes; then : 24283 gl_cv_func_getopt_gnu="$gl_cross_guess_normal" 24284 24285else 24286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24287/* end confdefs.h. */ 24288#include <getopt.h> 24289 #include <stddef.h> 24290 #include <string.h> 24291 24292#include <stdlib.h> 24293#if defined __MACH__ && defined __APPLE__ 24294/* Avoid a crash on Mac OS X. */ 24295#include <mach/mach.h> 24296#include <mach/mach_error.h> 24297#include <mach/thread_status.h> 24298#include <mach/exception.h> 24299#include <mach/task.h> 24300#include <pthread.h> 24301/* The exception port on which our thread listens. */ 24302static mach_port_t our_exception_port; 24303/* The main function of the thread listening for exceptions of type 24304 EXC_BAD_ACCESS. */ 24305static void * 24306mach_exception_thread (void *arg) 24307{ 24308 /* Buffer for a message to be received. */ 24309 struct { 24310 mach_msg_header_t head; 24311 mach_msg_body_t msgh_body; 24312 char data[1024]; 24313 } msg; 24314 mach_msg_return_t retval; 24315 /* Wait for a message on the exception port. */ 24316 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg), 24317 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL); 24318 if (retval != MACH_MSG_SUCCESS) 24319 abort (); 24320 exit (1); 24321} 24322static void 24323nocrash_init (void) 24324{ 24325 mach_port_t self = mach_task_self (); 24326 /* Allocate a port on which the thread shall listen for exceptions. */ 24327 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port) 24328 == KERN_SUCCESS) { 24329 /* See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */ 24330 if (mach_port_insert_right (self, our_exception_port, our_exception_port, 24331 MACH_MSG_TYPE_MAKE_SEND) 24332 == KERN_SUCCESS) { 24333 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting 24334 for us. */ 24335 exception_mask_t mask = EXC_MASK_BAD_ACCESS; 24336 /* Create the thread listening on the exception port. */ 24337 pthread_attr_t attr; 24338 pthread_t thread; 24339 if (pthread_attr_init (&attr) == 0 24340 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0 24341 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) { 24342 pthread_attr_destroy (&attr); 24343 /* Replace the exception port info for these exceptions with our own. 24344 Note that we replace the exception port for the entire task, not only 24345 for a particular thread. This has the effect that when our exception 24346 port gets the message, the thread specific exception port has already 24347 been asked, and we don't need to bother about it. 24348 See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */ 24349 task_set_exception_ports (self, mask, our_exception_port, 24350 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE); 24351 } 24352 } 24353 } 24354} 24355#elif defined _WIN32 && ! defined __CYGWIN__ 24356/* Avoid a crash on native Windows. */ 24357#define WIN32_LEAN_AND_MEAN 24358#include <windows.h> 24359#include <winerror.h> 24360static LONG WINAPI 24361exception_filter (EXCEPTION_POINTERS *ExceptionInfo) 24362{ 24363 switch (ExceptionInfo->ExceptionRecord->ExceptionCode) 24364 { 24365 case EXCEPTION_ACCESS_VIOLATION: 24366 case EXCEPTION_IN_PAGE_ERROR: 24367 case EXCEPTION_STACK_OVERFLOW: 24368 case EXCEPTION_GUARD_PAGE: 24369 case EXCEPTION_PRIV_INSTRUCTION: 24370 case EXCEPTION_ILLEGAL_INSTRUCTION: 24371 case EXCEPTION_DATATYPE_MISALIGNMENT: 24372 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED: 24373 case EXCEPTION_NONCONTINUABLE_EXCEPTION: 24374 exit (1); 24375 } 24376 return EXCEPTION_CONTINUE_SEARCH; 24377} 24378static void 24379nocrash_init (void) 24380{ 24381 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter); 24382} 24383#else 24384/* Avoid a crash on POSIX systems. */ 24385#include <signal.h> 24386#include <unistd.h> 24387/* A POSIX signal handler. */ 24388static void 24389exception_handler (int sig) 24390{ 24391 _exit (1); 24392} 24393static void 24394nocrash_init (void) 24395{ 24396#ifdef SIGSEGV 24397 signal (SIGSEGV, exception_handler); 24398#endif 24399#ifdef SIGBUS 24400 signal (SIGBUS, exception_handler); 24401#endif 24402} 24403#endif 24404 24405 24406int 24407main () 24408{ 24409 24410 int result = 0; 24411 24412 nocrash_init(); 24413 24414 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw, 24415 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5, 24416 OSF/1 5.1, Solaris 10. */ 24417 { 24418 static char conftest[] = "conftest"; 24419 static char plus[] = "-+"; 24420 char *argv[3] = { conftest, plus, NULL }; 24421 opterr = 0; 24422 if (getopt (2, argv, "+a") != '?') 24423 result |= 1; 24424 } 24425 /* This code succeeds on glibc 2.8, mingw, 24426 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11, 24427 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */ 24428 { 24429 static char program[] = "program"; 24430 static char p[] = "-p"; 24431 static char foo[] = "foo"; 24432 static char bar[] = "bar"; 24433 char *argv[] = { program, p, foo, bar, NULL }; 24434 24435 optind = 1; 24436 if (getopt (4, argv, "p::") != 'p') 24437 result |= 2; 24438 else if (optarg != NULL) 24439 result |= 4; 24440 else if (getopt (4, argv, "p::") != -1) 24441 result |= 6; 24442 else if (optind != 2) 24443 result |= 8; 24444 } 24445 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */ 24446 { 24447 static char program[] = "program"; 24448 static char foo[] = "foo"; 24449 static char p[] = "-p"; 24450 char *argv[] = { program, foo, p, NULL }; 24451 optind = 0; 24452 if (getopt (3, argv, "-p") != 1) 24453 result |= 16; 24454 else if (getopt (3, argv, "-p") != 'p') 24455 result |= 16; 24456 } 24457 /* This code fails on glibc 2.11. */ 24458 { 24459 static char program[] = "program"; 24460 static char b[] = "-b"; 24461 static char a[] = "-a"; 24462 char *argv[] = { program, b, a, NULL }; 24463 optind = opterr = 0; 24464 if (getopt (3, argv, "+:a:b") != 'b') 24465 result |= 32; 24466 else if (getopt (3, argv, "+:a:b") != ':') 24467 result |= 32; 24468 } 24469 /* This code dumps core on glibc 2.14. */ 24470 { 24471 static char program[] = "program"; 24472 static char w[] = "-W"; 24473 static char dummy[] = "dummy"; 24474 char *argv[] = { program, w, dummy, NULL }; 24475 optind = opterr = 1; 24476 if (getopt (3, argv, "W;") != 'W') 24477 result |= 64; 24478 } 24479 return result; 24480 24481 ; 24482 return 0; 24483} 24484_ACEOF 24485if ac_fn_c_try_run "$LINENO"; then : 24486 gl_cv_func_getopt_gnu=yes 24487else 24488 gl_cv_func_getopt_gnu=no 24489fi 24490rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24491 conftest.$ac_objext conftest.beam conftest.$ac_ext 24492fi 24493 24494 case $gl_had_POSIXLY_CORRECT in 24495 exported) ;; 24496 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;; 24497 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;; 24498 esac 24499 24500fi 24501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5 24502$as_echo "$gl_cv_func_getopt_gnu" >&6; } 24503 if test "$gl_cv_func_getopt_gnu" != yes; then 24504 gl_replace_getopt=yes 24505 else 24506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5 24507$as_echo_n "checking for working GNU getopt_long function... " >&6; } 24508if ${gl_cv_func_getopt_long_gnu+:} false; then : 24509 $as_echo_n "(cached) " >&6 24510else 24511 if test "$cross_compiling" = yes; then : 24512 case "$host_os" in 24513 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";; 24514 *) gl_cv_func_getopt_long_gnu="guessing yes";; 24515 esac 24516 24517else 24518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24519/* end confdefs.h. */ 24520#include <getopt.h> 24521 #include <stddef.h> 24522 #include <string.h> 24523 24524int 24525main () 24526{ 24527static const struct option long_options[] = 24528 { 24529 { "xtremely-",no_argument, NULL, 1003 }, 24530 { "xtra", no_argument, NULL, 1001 }, 24531 { "xtreme", no_argument, NULL, 1002 }, 24532 { "xtremely", no_argument, NULL, 1003 }, 24533 { NULL, 0, NULL, 0 } 24534 }; 24535 /* This code fails on OpenBSD 5.0. */ 24536 { 24537 static char program[] = "program"; 24538 static char xtremel[] = "--xtremel"; 24539 char *argv[] = { program, xtremel, NULL }; 24540 int option_index; 24541 optind = 1; opterr = 0; 24542 if (getopt_long (2, argv, "", long_options, &option_index) != 1003) 24543 return 1; 24544 } 24545 return 0; 24546 24547 ; 24548 return 0; 24549} 24550_ACEOF 24551if ac_fn_c_try_run "$LINENO"; then : 24552 gl_cv_func_getopt_long_gnu=yes 24553else 24554 gl_cv_func_getopt_long_gnu=no 24555fi 24556rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24557 conftest.$ac_objext conftest.beam conftest.$ac_ext 24558fi 24559 24560 24561fi 24562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5 24563$as_echo "$gl_cv_func_getopt_long_gnu" >&6; } 24564 case "$gl_cv_func_getopt_long_gnu" in 24565 *yes) ;; 24566 *) gl_replace_getopt=yes ;; 24567 esac 24568 fi 24569 fi 24570 24571 24572 24573 24574 24575 24576 24577 24578 24579 24580 24581 if test -z "$gl_pthreadlib_body_done"; then 24582 gl_pthread_api=no 24583 LIBPTHREAD= 24584 LIBPMULTITHREAD= 24585 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that 24586 # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY. 24587 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 24588if test "x$ac_cv_header_pthread_h" = xyes; then : 24589 gl_have_pthread_h=yes 24590else 24591 gl_have_pthread_h=no 24592fi 24593 24594 24595 if test "$gl_have_pthread_h" = yes; then 24596 # Other possible tests: 24597 # -lpthreads (FSU threads, PCthreads) 24598 # -lgthreads 24599 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist 24600 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but 24601 # the second one only in libpthread, and lock.c needs it. 24602 # 24603 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04 24604 # needs -pthread for some reason. See: 24605 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html 24606 save_LIBS=$LIBS 24607 for gl_pthread in '' '-pthread'; do 24608 LIBS="$LIBS $gl_pthread" 24609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24610/* end confdefs.h. */ 24611#include <pthread.h> 24612 pthread_mutex_t m; 24613 pthread_mutexattr_t ma; 24614 24615int 24616main () 24617{ 24618pthread_mutex_lock (&m); 24619 pthread_mutexattr_init (&ma); 24620 ; 24621 return 0; 24622} 24623_ACEOF 24624if ac_fn_c_try_link "$LINENO"; then : 24625 gl_pthread_api=yes 24626 LIBPTHREAD=$gl_pthread 24627 LIBPMULTITHREAD=$gl_pthread 24628fi 24629rm -f core conftest.err conftest.$ac_objext \ 24630 conftest$ac_exeext conftest.$ac_ext 24631 LIBS=$save_LIBS 24632 test $gl_pthread_api = yes && break 24633 done 24634 24635 # Test for libpthread by looking for pthread_kill. (Not pthread_self, 24636 # since it is defined as a macro on OSF/1.) 24637 if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then 24638 # The program links fine without libpthread. But it may actually 24639 # need to link with libpthread in order to create multiple threads. 24640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 24641$as_echo_n "checking for pthread_kill in -lpthread... " >&6; } 24642if ${ac_cv_lib_pthread_pthread_kill+:} false; then : 24643 $as_echo_n "(cached) " >&6 24644else 24645 ac_check_lib_save_LIBS=$LIBS 24646LIBS="-lpthread $LIBS" 24647cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24648/* end confdefs.h. */ 24649 24650/* Override any GCC internal prototype to avoid an error. 24651 Use char because int might match the return type of a GCC 24652 builtin and then its argument prototype would still apply. */ 24653#ifdef __cplusplus 24654extern "C" 24655#endif 24656char pthread_kill (); 24657int 24658main () 24659{ 24660return pthread_kill (); 24661 ; 24662 return 0; 24663} 24664_ACEOF 24665if ac_fn_c_try_link "$LINENO"; then : 24666 ac_cv_lib_pthread_pthread_kill=yes 24667else 24668 ac_cv_lib_pthread_pthread_kill=no 24669fi 24670rm -f core conftest.err conftest.$ac_objext \ 24671 conftest$ac_exeext conftest.$ac_ext 24672LIBS=$ac_check_lib_save_LIBS 24673fi 24674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 24675$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } 24676if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then : 24677 LIBPMULTITHREAD=-lpthread 24678 # On Solaris and HP-UX, most pthread functions exist also in libc. 24679 # Therefore pthread_in_use() needs to actually try to create a 24680 # thread: pthread_create from libc will fail, whereas 24681 # pthread_create will actually create a thread. 24682 # On Solaris 10 or newer, this test is no longer needed, because 24683 # libc contains the fully functional pthread functions. 24684 case "$host_os" in 24685 solaris | solaris2.1-9 | solaris2.1-9.* | hpux*) 24686 24687$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h 24688 24689 esac 24690 24691fi 24692 24693 elif test $gl_pthread_api != yes; then 24694 # Some library is needed. Try libpthread and libc_r. 24695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 24696$as_echo_n "checking for pthread_kill in -lpthread... " >&6; } 24697if ${ac_cv_lib_pthread_pthread_kill+:} false; then : 24698 $as_echo_n "(cached) " >&6 24699else 24700 ac_check_lib_save_LIBS=$LIBS 24701LIBS="-lpthread $LIBS" 24702cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24703/* end confdefs.h. */ 24704 24705/* Override any GCC internal prototype to avoid an error. 24706 Use char because int might match the return type of a GCC 24707 builtin and then its argument prototype would still apply. */ 24708#ifdef __cplusplus 24709extern "C" 24710#endif 24711char pthread_kill (); 24712int 24713main () 24714{ 24715return pthread_kill (); 24716 ; 24717 return 0; 24718} 24719_ACEOF 24720if ac_fn_c_try_link "$LINENO"; then : 24721 ac_cv_lib_pthread_pthread_kill=yes 24722else 24723 ac_cv_lib_pthread_pthread_kill=no 24724fi 24725rm -f core conftest.err conftest.$ac_objext \ 24726 conftest$ac_exeext conftest.$ac_ext 24727LIBS=$ac_check_lib_save_LIBS 24728fi 24729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 24730$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } 24731if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then : 24732 gl_pthread_api=yes 24733 LIBPTHREAD=-lpthread 24734 LIBPMULTITHREAD=-lpthread 24735fi 24736 24737 if test $gl_pthread_api != yes; then 24738 # For FreeBSD 4. 24739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5 24740$as_echo_n "checking for pthread_kill in -lc_r... " >&6; } 24741if ${ac_cv_lib_c_r_pthread_kill+:} false; then : 24742 $as_echo_n "(cached) " >&6 24743else 24744 ac_check_lib_save_LIBS=$LIBS 24745LIBS="-lc_r $LIBS" 24746cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24747/* end confdefs.h. */ 24748 24749/* Override any GCC internal prototype to avoid an error. 24750 Use char because int might match the return type of a GCC 24751 builtin and then its argument prototype would still apply. */ 24752#ifdef __cplusplus 24753extern "C" 24754#endif 24755char pthread_kill (); 24756int 24757main () 24758{ 24759return pthread_kill (); 24760 ; 24761 return 0; 24762} 24763_ACEOF 24764if ac_fn_c_try_link "$LINENO"; then : 24765 ac_cv_lib_c_r_pthread_kill=yes 24766else 24767 ac_cv_lib_c_r_pthread_kill=no 24768fi 24769rm -f core conftest.err conftest.$ac_objext \ 24770 conftest$ac_exeext conftest.$ac_ext 24771LIBS=$ac_check_lib_save_LIBS 24772fi 24773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5 24774$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; } 24775if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then : 24776 gl_pthread_api=yes 24777 LIBPTHREAD=-lc_r 24778 LIBPMULTITHREAD=-lc_r 24779fi 24780 24781 fi 24782 fi 24783 fi 24784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5 24785$as_echo_n "checking whether POSIX threads API is available... " >&6; } 24786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5 24787$as_echo "$gl_pthread_api" >&6; } 24788 24789 24790 if test $gl_pthread_api = yes; then 24791 24792$as_echo "#define HAVE_PTHREAD_API 1" >>confdefs.h 24793 24794 fi 24795 24796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24797/* end confdefs.h. */ 24798#include <sched.h> 24799int 24800main () 24801{ 24802sched_yield (); 24803 ; 24804 return 0; 24805} 24806_ACEOF 24807if ac_fn_c_try_link "$LINENO"; then : 24808 LIB_SCHED_YIELD= 24809 24810else 24811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5 24812$as_echo_n "checking for sched_yield in -lrt... " >&6; } 24813if ${ac_cv_lib_rt_sched_yield+:} false; then : 24814 $as_echo_n "(cached) " >&6 24815else 24816 ac_check_lib_save_LIBS=$LIBS 24817LIBS="-lrt $LIBS" 24818cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24819/* end confdefs.h. */ 24820 24821/* Override any GCC internal prototype to avoid an error. 24822 Use char because int might match the return type of a GCC 24823 builtin and then its argument prototype would still apply. */ 24824#ifdef __cplusplus 24825extern "C" 24826#endif 24827char sched_yield (); 24828int 24829main () 24830{ 24831return sched_yield (); 24832 ; 24833 return 0; 24834} 24835_ACEOF 24836if ac_fn_c_try_link "$LINENO"; then : 24837 ac_cv_lib_rt_sched_yield=yes 24838else 24839 ac_cv_lib_rt_sched_yield=no 24840fi 24841rm -f core conftest.err conftest.$ac_objext \ 24842 conftest$ac_exeext conftest.$ac_ext 24843LIBS=$ac_check_lib_save_LIBS 24844fi 24845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5 24846$as_echo "$ac_cv_lib_rt_sched_yield" >&6; } 24847if test "x$ac_cv_lib_rt_sched_yield" = xyes; then : 24848 LIB_SCHED_YIELD=-lrt 24849else 24850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5 24851$as_echo_n "checking for sched_yield in -lposix4... " >&6; } 24852if ${ac_cv_lib_posix4_sched_yield+:} false; then : 24853 $as_echo_n "(cached) " >&6 24854else 24855 ac_check_lib_save_LIBS=$LIBS 24856LIBS="-lposix4 $LIBS" 24857cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24858/* end confdefs.h. */ 24859 24860/* Override any GCC internal prototype to avoid an error. 24861 Use char because int might match the return type of a GCC 24862 builtin and then its argument prototype would still apply. */ 24863#ifdef __cplusplus 24864extern "C" 24865#endif 24866char sched_yield (); 24867int 24868main () 24869{ 24870return sched_yield (); 24871 ; 24872 return 0; 24873} 24874_ACEOF 24875if ac_fn_c_try_link "$LINENO"; then : 24876 ac_cv_lib_posix4_sched_yield=yes 24877else 24878 ac_cv_lib_posix4_sched_yield=no 24879fi 24880rm -f core conftest.err conftest.$ac_objext \ 24881 conftest$ac_exeext conftest.$ac_ext 24882LIBS=$ac_check_lib_save_LIBS 24883fi 24884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5 24885$as_echo "$ac_cv_lib_posix4_sched_yield" >&6; } 24886if test "x$ac_cv_lib_posix4_sched_yield" = xyes; then : 24887 LIB_SCHED_YIELD=-lposix4 24888fi 24889 24890fi 24891 24892 24893fi 24894rm -f core conftest.err conftest.$ac_objext \ 24895 conftest$ac_exeext conftest.$ac_ext 24896 24897 24898 gl_pthreadlib_body_done=done 24899 fi 24900 24901 24902 24903 24904 24905 24906 24907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (LC_ALL, NULL) is multithread-safe" >&5 24908$as_echo_n "checking whether setlocale (LC_ALL, NULL) is multithread-safe... " >&6; } 24909if ${gl_cv_func_setlocale_null_all_mtsafe+:} false; then : 24910 $as_echo_n "(cached) " >&6 24911else 24912 case "$host_os" in 24913 # Guess no on musl libc, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Haiku, Cygwin. 24914 *-musl* | darwin* | freebsd* | netbsd* | openbsd* | aix* | haiku* | cygwin*) 24915 gl_cv_func_setlocale_null_all_mtsafe=no ;; 24916 # Guess yes on glibc, HP-UX, IRIX, Solaris, native Windows. 24917 *-gnu* | gnu* | hpux* | irix* | solaris* | mingw*) 24918 gl_cv_func_setlocale_null_all_mtsafe=yes ;; 24919 # If we don't know, obey --enable-cross-guesses. 24920 *) 24921 gl_cv_func_setlocale_null_all_mtsafe="$gl_cross_guess_normal" ;; 24922 esac 24923 24924fi 24925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_all_mtsafe" >&5 24926$as_echo "$gl_cv_func_setlocale_null_all_mtsafe" >&6; } 24927 case "$host_os" in 24928 mingw*) ;; 24929 *) 24930 if test $gl_pthread_api = no && test $ac_cv_header_threads_h = no; then 24931 gl_cv_func_setlocale_null_all_mtsafe="trivially yes" 24932 fi 24933 ;; 24934 esac 24935 case "$gl_cv_func_setlocale_null_all_mtsafe" in 24936 *yes) SETLOCALE_NULL_ALL_MTSAFE=1 ;; 24937 *) SETLOCALE_NULL_ALL_MTSAFE=0 ;; 24938 esac 24939 24940cat >>confdefs.h <<_ACEOF 24941#define SETLOCALE_NULL_ALL_MTSAFE $SETLOCALE_NULL_ALL_MTSAFE 24942_ACEOF 24943 24944 24945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (category, NULL) is multithread-safe" >&5 24946$as_echo_n "checking whether setlocale (category, NULL) is multithread-safe... " >&6; } 24947if ${gl_cv_func_setlocale_null_one_mtsafe+:} false; then : 24948 $as_echo_n "(cached) " >&6 24949else 24950 case "$host_os" in 24951 # Guess no on OpenBSD, AIX. 24952 openbsd* | aix*) 24953 gl_cv_func_setlocale_null_one_mtsafe=no ;; 24954 # Guess yes on glibc, musl libc, macOS, FreeBSD, NetBSD, HP-UX, IRIX, Solaris, Haiku, Cygwin, native Windows. 24955 *-gnu* | gnu* | *-musl* | darwin* | freebsd* | netbsd* | hpux* | irix* | solaris* | haiku* | cygwin* | mingw*) 24956 gl_cv_func_setlocale_null_one_mtsafe=yes ;; 24957 # If we don't know, obey --enable-cross-guesses. 24958 *) 24959 gl_cv_func_setlocale_null_one_mtsafe="$gl_cross_guess_normal" ;; 24960 esac 24961 24962fi 24963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_one_mtsafe" >&5 24964$as_echo "$gl_cv_func_setlocale_null_one_mtsafe" >&6; } 24965 case "$host_os" in 24966 mingw*) ;; 24967 *) 24968 if test $gl_pthread_api = no && test $ac_cv_header_threads_h = no; then 24969 gl_cv_func_setlocale_null_one_mtsafe="trivially yes" 24970 fi 24971 ;; 24972 esac 24973 case "$gl_cv_func_setlocale_null_one_mtsafe" in 24974 *yes) SETLOCALE_NULL_ONE_MTSAFE=1 ;; 24975 *) SETLOCALE_NULL_ONE_MTSAFE=0 ;; 24976 esac 24977 24978cat >>confdefs.h <<_ACEOF 24979#define SETLOCALE_NULL_ONE_MTSAFE $SETLOCALE_NULL_ONE_MTSAFE 24980_ACEOF 24981 24982 24983 if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then 24984 case "$host_os" in 24985 mingw*) LIB_SETLOCALE_NULL= ;; 24986 *) 24987 24988 24989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5 24990$as_echo_n "checking whether imported symbols can be declared weak... " >&6; } 24991if ${gl_cv_have_weak+:} false; then : 24992 $as_echo_n "(cached) " >&6 24993else 24994 gl_cv_have_weak=no 24995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24996/* end confdefs.h. */ 24997extern void xyzzy (); 24998#pragma weak xyzzy 24999int 25000main () 25001{ 25002xyzzy(); 25003 ; 25004 return 0; 25005} 25006_ACEOF 25007if ac_fn_c_try_link "$LINENO"; then : 25008 gl_cv_have_weak=maybe 25009fi 25010rm -f core conftest.err conftest.$ac_objext \ 25011 conftest$ac_exeext conftest.$ac_ext 25012 if test $gl_cv_have_weak = maybe; then 25013 if test "$cross_compiling" = yes; then : 25014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25015/* end confdefs.h. */ 25016#ifdef __ELF__ 25017 Extensible Linking Format 25018 #endif 25019 25020_ACEOF 25021if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 25022 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then : 25023 gl_cv_have_weak="guessing yes" 25024else 25025 gl_cv_have_weak="guessing no" 25026fi 25027rm -f conftest* 25028 25029 25030else 25031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25032/* end confdefs.h. */ 25033 25034#include <stdio.h> 25035#pragma weak fputs 25036int main () 25037{ 25038 return (fputs == NULL); 25039} 25040_ACEOF 25041if ac_fn_c_try_run "$LINENO"; then : 25042 gl_cv_have_weak=yes 25043else 25044 gl_cv_have_weak=no 25045fi 25046rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25047 conftest.$ac_objext conftest.beam conftest.$ac_ext 25048fi 25049 25050 fi 25051 case " $LDFLAGS " in 25052 *" -static "*) gl_cv_have_weak=no ;; 25053 esac 25054 case "$gl_cv_have_weak" in 25055 *yes) 25056 case "$host_os" in 25057 freebsd* | dragonfly*) 25058 : > conftest1.c 25059 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c -lpthread >&5 2>&1 25060 cat <<EOF > conftest2.c 25061#include <pthread.h> 25062#pragma weak pthread_mutexattr_gettype 25063int main () 25064{ 25065 return (pthread_mutexattr_gettype != NULL); 25066} 25067EOF 25068 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so >&5 2>&1 \ 25069 || gl_cv_have_weak=no 25070 rm -f conftest1.c libempty.so conftest2.c conftest 25071 ;; 25072 esac 25073 ;; 25074 esac 25075 25076fi 25077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5 25078$as_echo "$gl_cv_have_weak" >&6; } 25079 case "$gl_cv_have_weak" in 25080 *yes) 25081 25082$as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h 25083 25084 ;; 25085 esac 25086 25087 case "$gl_cv_have_weak" in 25088 *yes) LIB_SETLOCALE_NULL= ;; 25089 *) LIB_SETLOCALE_NULL="$LIBPTHREAD" ;; 25090 esac 25091 ;; 25092 esac 25093 else 25094 LIB_SETLOCALE_NULL= 25095 fi 25096 25097 25098 25099 25100 25101 25102 25103 25104 25105 25106 25107 25108 25109 25110 25111 25112 if test $gl_cv_have_include_next = yes; then 25113 gl_cv_next_limits_h='<'limits.h'>' 25114 else 25115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5 25116$as_echo_n "checking absolute name of <limits.h>... " >&6; } 25117if ${gl_cv_next_limits_h+:} false; then : 25118 $as_echo_n "(cached) " >&6 25119else 25120 25121 if test $ac_cv_header_limits_h = yes; then 25122 25123 25124 25125 25126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25127/* end confdefs.h. */ 25128#include <limits.h> 25129_ACEOF 25130 case "$host_os" in 25131 aix*) gl_absname_cpp="$ac_cpp -C" ;; 25132 *) gl_absname_cpp="$ac_cpp" ;; 25133 esac 25134 25135 case "$host_os" in 25136 mingw*) 25137 gl_dirsep_regex='[/\\]' 25138 ;; 25139 *) 25140 gl_dirsep_regex='\/' 25141 ;; 25142 esac 25143 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 25144 gl_header_literal_regex=`echo 'limits.h' \ 25145 | sed -e "$gl_make_literal_regex_sed"` 25146 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 25147 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 25148 s|^/[^/]|//&| 25149 p 25150 q 25151 }' 25152 25153 gl_cv_absolute_limits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 25154 sed -n "$gl_absolute_header_sed"` 25155 25156 gl_header=$gl_cv_absolute_limits_h 25157 gl_cv_next_limits_h='"'$gl_header'"' 25158 else 25159 gl_cv_next_limits_h='<'limits.h'>' 25160 fi 25161 25162 25163fi 25164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5 25165$as_echo "$gl_cv_next_limits_h" >&6; } 25166 fi 25167 NEXT_LIMITS_H=$gl_cv_next_limits_h 25168 25169 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 25170 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 25171 gl_next_as_first_directive='<'limits.h'>' 25172 else 25173 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 25174 gl_next_as_first_directive=$gl_cv_next_limits_h 25175 fi 25176 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H=$gl_next_as_first_directive 25177 25178 25179 25180 25181 25182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc." >&5 25183$as_echo_n "checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc.... " >&6; } 25184if ${gl_cv_header_limits_width+:} false; then : 25185 $as_echo_n "(cached) " >&6 25186else 25187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25188/* end confdefs.h. */ 25189#ifndef __STDC_WANT_IEC_60559_BFP_EXT__ 25190 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 25191 #endif 25192 #include <limits.h> 25193 long long llm = LLONG_MAX; 25194 int wb = WORD_BIT; 25195 int ullw = ULLONG_WIDTH; 25196 25197int 25198main () 25199{ 25200 25201 ; 25202 return 0; 25203} 25204_ACEOF 25205if ac_fn_c_try_compile "$LINENO"; then : 25206 gl_cv_header_limits_width=yes 25207else 25208 gl_cv_header_limits_width=no 25209fi 25210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25211fi 25212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5 25213$as_echo "$gl_cv_header_limits_width" >&6; } 25214 if test "$gl_cv_header_limits_width" = yes; then 25215 LIMITS_H= 25216 else 25217 LIMITS_H=limits.h 25218 fi 25219 25220 if test -n "$LIMITS_H"; then 25221 GL_GENERATE_LIMITS_H_TRUE= 25222 GL_GENERATE_LIMITS_H_FALSE='#' 25223else 25224 GL_GENERATE_LIMITS_H_TRUE='#' 25225 GL_GENERATE_LIMITS_H_FALSE= 25226fi 25227 25228 25229 25230 25231 25232 25233 25234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler produces multi-arch binaries" >&5 25235$as_echo_n "checking whether the compiler produces multi-arch binaries... " >&6; } 25236if ${gl_cv_c_multiarch+:} false; then : 25237 $as_echo_n "(cached) " >&6 25238else 25239 gl_cv_c_multiarch=no 25240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25241/* end confdefs.h. */ 25242#ifndef __APPLE_CC__ 25243 not a universal capable compiler 25244 #endif 25245 typedef int dummy; 25246 25247_ACEOF 25248if ac_fn_c_try_compile "$LINENO"; then : 25249 25250 arch= 25251 prev= 25252 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do 25253 if test -n "$prev"; then 25254 case $word in 25255 i?86 | x86_64 | ppc | ppc64 | arm | arm64) 25256 if test -z "$arch" || test "$arch" = "$word"; then 25257 arch="$word" 25258 else 25259 gl_cv_c_multiarch=yes 25260 fi 25261 ;; 25262 esac 25263 prev= 25264 else 25265 if test "x$word" = "x-arch"; then 25266 prev=arch 25267 fi 25268 fi 25269 done 25270 25271fi 25272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25273 25274fi 25275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_multiarch" >&5 25276$as_echo "$gl_cv_c_multiarch" >&6; } 25277 if test $gl_cv_c_multiarch = yes; then 25278 APPLE_UNIVERSAL_BUILD=1 25279 else 25280 APPLE_UNIVERSAL_BUILD=0 25281 fi 25282 25283 25284 25285 25286 25287 25288 25289 25290$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 25291 25292 25293$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 25294 25295 25296 25297 if test $ac_cv_header_wchar_h = yes; then 25298 HAVE_WCHAR_H=1 25299 else 25300 HAVE_WCHAR_H=0 25301 fi 25302 25303 25304 if test $ac_cv_header_inttypes_h = yes; then 25305 HAVE_INTTYPES_H=1 25306 else 25307 HAVE_INTTYPES_H=0 25308 fi 25309 25310 25311 if test $ac_cv_header_sys_types_h = yes; then 25312 HAVE_SYS_TYPES_H=1 25313 else 25314 HAVE_SYS_TYPES_H=0 25315 fi 25316 25317 25318 25319 25320 25321 25322 25323 25324 25325 25326 25327 if test $gl_cv_have_include_next = yes; then 25328 gl_cv_next_stdint_h='<'stdint.h'>' 25329 else 25330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5 25331$as_echo_n "checking absolute name of <stdint.h>... " >&6; } 25332if ${gl_cv_next_stdint_h+:} false; then : 25333 $as_echo_n "(cached) " >&6 25334else 25335 25336 if test $ac_cv_header_stdint_h = yes; then 25337 25338 25339 25340 25341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25342/* end confdefs.h. */ 25343#include <stdint.h> 25344_ACEOF 25345 case "$host_os" in 25346 aix*) gl_absname_cpp="$ac_cpp -C" ;; 25347 *) gl_absname_cpp="$ac_cpp" ;; 25348 esac 25349 25350 case "$host_os" in 25351 mingw*) 25352 gl_dirsep_regex='[/\\]' 25353 ;; 25354 *) 25355 gl_dirsep_regex='\/' 25356 ;; 25357 esac 25358 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 25359 gl_header_literal_regex=`echo 'stdint.h' \ 25360 | sed -e "$gl_make_literal_regex_sed"` 25361 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 25362 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 25363 s|^/[^/]|//&| 25364 p 25365 q 25366 }' 25367 25368 gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 25369 sed -n "$gl_absolute_header_sed"` 25370 25371 gl_header=$gl_cv_absolute_stdint_h 25372 gl_cv_next_stdint_h='"'$gl_header'"' 25373 else 25374 gl_cv_next_stdint_h='<'stdint.h'>' 25375 fi 25376 25377 25378fi 25379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5 25380$as_echo "$gl_cv_next_stdint_h" >&6; } 25381 fi 25382 NEXT_STDINT_H=$gl_cv_next_stdint_h 25383 25384 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 25385 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 25386 gl_next_as_first_directive='<'stdint.h'>' 25387 else 25388 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 25389 gl_next_as_first_directive=$gl_cv_next_stdint_h 25390 fi 25391 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive 25392 25393 25394 25395 25396 if test $ac_cv_header_stdint_h = yes; then 25397 HAVE_STDINT_H=1 25398 else 25399 HAVE_STDINT_H=0 25400 fi 25401 25402 25403 if test $ac_cv_header_stdint_h = yes; then 25404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5 25405$as_echo_n "checking whether stdint.h conforms to C99... " >&6; } 25406if ${gl_cv_header_working_stdint_h+:} false; then : 25407 $as_echo_n "(cached) " >&6 25408else 25409 gl_cv_header_working_stdint_h=no 25410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25411/* end confdefs.h. */ 25412 25413 25414#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ 25415#define __STDC_CONSTANT_MACROS 1 25416#define __STDC_LIMIT_MACROS 1 25417#include <stdint.h> 25418/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */ 25419#if !(defined WCHAR_MIN && defined WCHAR_MAX) 25420#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>" 25421#endif 25422 25423 25424 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 25425 included before <wchar.h>. */ 25426 #include <stddef.h> 25427 #include <signal.h> 25428 #if HAVE_WCHAR_H 25429 # include <stdio.h> 25430 # include <time.h> 25431 # include <wchar.h> 25432 #endif 25433 25434 25435#ifdef INT8_MAX 25436int8_t a1 = INT8_MAX; 25437int8_t a1min = INT8_MIN; 25438#endif 25439#ifdef INT16_MAX 25440int16_t a2 = INT16_MAX; 25441int16_t a2min = INT16_MIN; 25442#endif 25443#ifdef INT32_MAX 25444int32_t a3 = INT32_MAX; 25445int32_t a3min = INT32_MIN; 25446#endif 25447#ifdef INT64_MAX 25448int64_t a4 = INT64_MAX; 25449int64_t a4min = INT64_MIN; 25450#endif 25451#ifdef UINT8_MAX 25452uint8_t b1 = UINT8_MAX; 25453#else 25454typedef int b1[(unsigned char) -1 != 255 ? 1 : -1]; 25455#endif 25456#ifdef UINT16_MAX 25457uint16_t b2 = UINT16_MAX; 25458#endif 25459#ifdef UINT32_MAX 25460uint32_t b3 = UINT32_MAX; 25461#endif 25462#ifdef UINT64_MAX 25463uint64_t b4 = UINT64_MAX; 25464#endif 25465int_least8_t c1 = INT8_C (0x7f); 25466int_least8_t c1max = INT_LEAST8_MAX; 25467int_least8_t c1min = INT_LEAST8_MIN; 25468int_least16_t c2 = INT16_C (0x7fff); 25469int_least16_t c2max = INT_LEAST16_MAX; 25470int_least16_t c2min = INT_LEAST16_MIN; 25471int_least32_t c3 = INT32_C (0x7fffffff); 25472int_least32_t c3max = INT_LEAST32_MAX; 25473int_least32_t c3min = INT_LEAST32_MIN; 25474int_least64_t c4 = INT64_C (0x7fffffffffffffff); 25475int_least64_t c4max = INT_LEAST64_MAX; 25476int_least64_t c4min = INT_LEAST64_MIN; 25477uint_least8_t d1 = UINT8_C (0xff); 25478uint_least8_t d1max = UINT_LEAST8_MAX; 25479uint_least16_t d2 = UINT16_C (0xffff); 25480uint_least16_t d2max = UINT_LEAST16_MAX; 25481uint_least32_t d3 = UINT32_C (0xffffffff); 25482uint_least32_t d3max = UINT_LEAST32_MAX; 25483uint_least64_t d4 = UINT64_C (0xffffffffffffffff); 25484uint_least64_t d4max = UINT_LEAST64_MAX; 25485int_fast8_t e1 = INT_FAST8_MAX; 25486int_fast8_t e1min = INT_FAST8_MIN; 25487int_fast16_t e2 = INT_FAST16_MAX; 25488int_fast16_t e2min = INT_FAST16_MIN; 25489int_fast32_t e3 = INT_FAST32_MAX; 25490int_fast32_t e3min = INT_FAST32_MIN; 25491int_fast64_t e4 = INT_FAST64_MAX; 25492int_fast64_t e4min = INT_FAST64_MIN; 25493uint_fast8_t f1 = UINT_FAST8_MAX; 25494uint_fast16_t f2 = UINT_FAST16_MAX; 25495uint_fast32_t f3 = UINT_FAST32_MAX; 25496uint_fast64_t f4 = UINT_FAST64_MAX; 25497#ifdef INTPTR_MAX 25498intptr_t g = INTPTR_MAX; 25499intptr_t gmin = INTPTR_MIN; 25500#endif 25501#ifdef UINTPTR_MAX 25502uintptr_t h = UINTPTR_MAX; 25503#endif 25504intmax_t i = INTMAX_MAX; 25505uintmax_t j = UINTMAX_MAX; 25506 25507/* Check that SIZE_MAX has the correct type, if possible. */ 25508#if 201112 <= __STDC_VERSION__ 25509int k = _Generic (SIZE_MAX, size_t: 0); 25510#elif (2 <= __GNUC__ || defined __IBM__TYPEOF__ \ 25511 || (0x5110 <= __SUNPRO_C && !__STDC__)) 25512extern size_t k; 25513extern __typeof__ (SIZE_MAX) k; 25514#endif 25515 25516#include <limits.h> /* for CHAR_BIT */ 25517#define TYPE_MINIMUM(t) \ 25518 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t))) 25519#define TYPE_MAXIMUM(t) \ 25520 ((t) ((t) 0 < (t) -1 \ 25521 ? (t) -1 \ 25522 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1))) 25523struct s { 25524 int check_PTRDIFF: 25525 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t) 25526 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t) 25527 ? 1 : -1; 25528 /* Detect bug in FreeBSD 6.0 / ia64. */ 25529 int check_SIG_ATOMIC: 25530 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t) 25531 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t) 25532 ? 1 : -1; 25533 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1; 25534 int check_WCHAR: 25535 WCHAR_MIN == TYPE_MINIMUM (wchar_t) 25536 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t) 25537 ? 1 : -1; 25538 /* Detect bug in mingw. */ 25539 int check_WINT: 25540 WINT_MIN == TYPE_MINIMUM (wint_t) 25541 && WINT_MAX == TYPE_MAXIMUM (wint_t) 25542 ? 1 : -1; 25543 25544 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */ 25545 int check_UINT8_C: 25546 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1; 25547 int check_UINT16_C: 25548 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1; 25549 25550 /* Detect bugs in OpenBSD 3.9 stdint.h. */ 25551#ifdef UINT8_MAX 25552 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1; 25553#endif 25554#ifdef UINT16_MAX 25555 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1; 25556#endif 25557#ifdef UINT32_MAX 25558 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1; 25559#endif 25560#ifdef UINT64_MAX 25561 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1; 25562#endif 25563 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1; 25564 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1; 25565 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1; 25566 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1; 25567 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1; 25568 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1; 25569 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1; 25570 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1; 25571 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1; 25572 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1; 25573 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1; 25574}; 25575 25576int 25577main () 25578{ 25579 25580 ; 25581 return 0; 25582} 25583_ACEOF 25584if ac_fn_c_try_compile "$LINENO"; then : 25585 if test "$cross_compiling" = yes; then : 25586 case "$host_os" in 25587 # Guess yes on native Windows. 25588 mingw*) gl_cv_header_working_stdint_h="guessing yes" ;; 25589 # In general, assume it works. 25590 *) gl_cv_header_working_stdint_h="guessing yes" ;; 25591 esac 25592 25593else 25594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25595/* end confdefs.h. */ 25596 25597 25598#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ 25599#define __STDC_CONSTANT_MACROS 1 25600#define __STDC_LIMIT_MACROS 1 25601#include <stdint.h> 25602 25603 25604 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 25605 included before <wchar.h>. */ 25606 #include <stddef.h> 25607 #include <signal.h> 25608 #if HAVE_WCHAR_H 25609 # include <stdio.h> 25610 # include <time.h> 25611 # include <wchar.h> 25612 #endif 25613 25614 25615#include <stdio.h> 25616#include <string.h> 25617#define MVAL(macro) MVAL1(macro) 25618#define MVAL1(expression) #expression 25619static const char *macro_values[] = 25620 { 25621#ifdef INT8_MAX 25622 MVAL (INT8_MAX), 25623#endif 25624#ifdef INT16_MAX 25625 MVAL (INT16_MAX), 25626#endif 25627#ifdef INT32_MAX 25628 MVAL (INT32_MAX), 25629#endif 25630#ifdef INT64_MAX 25631 MVAL (INT64_MAX), 25632#endif 25633#ifdef UINT8_MAX 25634 MVAL (UINT8_MAX), 25635#endif 25636#ifdef UINT16_MAX 25637 MVAL (UINT16_MAX), 25638#endif 25639#ifdef UINT32_MAX 25640 MVAL (UINT32_MAX), 25641#endif 25642#ifdef UINT64_MAX 25643 MVAL (UINT64_MAX), 25644#endif 25645 NULL 25646 }; 25647 25648int 25649main () 25650{ 25651 25652 const char **mv; 25653 for (mv = macro_values; *mv != NULL; mv++) 25654 { 25655 const char *value = *mv; 25656 /* Test whether it looks like a cast expression. */ 25657 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0 25658 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0 25659 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0 25660 || strncmp (value, "((int)"/*)*/, 6) == 0 25661 || strncmp (value, "((signed short)"/*)*/, 15) == 0 25662 || strncmp (value, "((signed char)"/*)*/, 14) == 0) 25663 return mv - macro_values + 1; 25664 } 25665 return 0; 25666 25667 ; 25668 return 0; 25669} 25670_ACEOF 25671if ac_fn_c_try_run "$LINENO"; then : 25672 gl_cv_header_working_stdint_h=yes 25673fi 25674rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25675 conftest.$ac_objext conftest.beam conftest.$ac_ext 25676fi 25677 25678 25679fi 25680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25681 25682fi 25683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5 25684$as_echo "$gl_cv_header_working_stdint_h" >&6; } 25685 fi 25686 25687 HAVE_C99_STDINT_H=0 25688 HAVE_SYS_BITYPES_H=0 25689 HAVE_SYS_INTTYPES_H=0 25690 STDINT_H=stdint.h 25691 case "$gl_cv_header_working_stdint_h" in 25692 *yes) 25693 HAVE_C99_STDINT_H=1 25694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h predates C++11" >&5 25695$as_echo_n "checking whether stdint.h predates C++11... " >&6; } 25696if ${gl_cv_header_stdint_predates_cxx11_h+:} false; then : 25697 $as_echo_n "(cached) " >&6 25698else 25699 gl_cv_header_stdint_predates_cxx11_h=yes 25700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25701/* end confdefs.h. */ 25702 25703 25704#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ 25705#include <stdint.h> 25706 25707 25708 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 25709 included before <wchar.h>. */ 25710 #include <stddef.h> 25711 #include <signal.h> 25712 #if HAVE_WCHAR_H 25713 # include <stdio.h> 25714 # include <time.h> 25715 # include <wchar.h> 25716 #endif 25717 25718 25719intmax_t im = INTMAX_MAX; 25720int32_t i32 = INT32_C (0x7fffffff); 25721 25722int 25723main () 25724{ 25725 25726 ; 25727 return 0; 25728} 25729_ACEOF 25730if ac_fn_c_try_compile "$LINENO"; then : 25731 gl_cv_header_stdint_predates_cxx11_h=no 25732fi 25733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25734fi 25735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_predates_cxx11_h" >&5 25736$as_echo "$gl_cv_header_stdint_predates_cxx11_h" >&6; } 25737 25738 if test "$gl_cv_header_stdint_predates_cxx11_h" = yes; then 25739 25740$as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h 25741 25742 25743$as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h 25744 25745 fi 25746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5 25747$as_echo_n "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; } 25748if ${gl_cv_header_stdint_width+:} false; then : 25749 $as_echo_n "(cached) " >&6 25750else 25751 gl_cv_header_stdint_width=no 25752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25753/* end confdefs.h. */ 25754 25755 /* Work if build is not clean. */ 25756 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 25757 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__ 25758 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 25759 #endif 25760 #include <stdint.h> 25761 25762 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 25763 included before <wchar.h>. */ 25764 #include <stddef.h> 25765 #include <signal.h> 25766 #if HAVE_WCHAR_H 25767 # include <stdio.h> 25768 # include <time.h> 25769 # include <wchar.h> 25770 #endif 25771 25772 int iw = UINTMAX_WIDTH; 25773 25774int 25775main () 25776{ 25777 25778 ; 25779 return 0; 25780} 25781_ACEOF 25782if ac_fn_c_try_compile "$LINENO"; then : 25783 gl_cv_header_stdint_width=yes 25784fi 25785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25786fi 25787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5 25788$as_echo "$gl_cv_header_stdint_width" >&6; } 25789 if test "$gl_cv_header_stdint_width" = yes; then 25790 STDINT_H= 25791 fi 25792 ;; 25793 *) 25794 for ac_header in sys/inttypes.h sys/bitypes.h 25795do : 25796 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 25797ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 25798if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 25799 cat >>confdefs.h <<_ACEOF 25800#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 25801_ACEOF 25802 25803fi 25804 25805done 25806 25807 if test $ac_cv_header_sys_inttypes_h = yes; then 25808 HAVE_SYS_INTTYPES_H=1 25809 fi 25810 if test $ac_cv_header_sys_bitypes_h = yes; then 25811 HAVE_SYS_BITYPES_H=1 25812 fi 25813 25814 25815 if test $APPLE_UNIVERSAL_BUILD = 0; then 25816 25817 25818 for gltype in ptrdiff_t size_t ; do 25819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5 25820$as_echo_n "checking for bit size of $gltype... " >&6; } 25821if eval \${gl_cv_bitsizeof_${gltype}+:} false; then : 25822 $as_echo_n "(cached) " >&6 25823else 25824 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" " 25825 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 25826 included before <wchar.h>. */ 25827 #include <stddef.h> 25828 #include <signal.h> 25829 #if HAVE_WCHAR_H 25830 # include <stdio.h> 25831 # include <time.h> 25832 # include <wchar.h> 25833 #endif 25834 25835#include <limits.h>"; then : 25836 25837else 25838 result=unknown 25839fi 25840 25841 eval gl_cv_bitsizeof_${gltype}=\$result 25842 25843fi 25844eval ac_res=\$gl_cv_bitsizeof_${gltype} 25845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 25846$as_echo "$ac_res" >&6; } 25847 eval result=\$gl_cv_bitsizeof_${gltype} 25848 if test $result = unknown; then 25849 result=0 25850 fi 25851 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` 25852 cat >>confdefs.h <<_ACEOF 25853#define BITSIZEOF_${GLTYPE} $result 25854_ACEOF 25855 25856 eval BITSIZEOF_${GLTYPE}=\$result 25857 done 25858 25859 25860 fi 25861 25862 25863 for gltype in sig_atomic_t wchar_t wint_t ; do 25864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5 25865$as_echo_n "checking for bit size of $gltype... " >&6; } 25866if eval \${gl_cv_bitsizeof_${gltype}+:} false; then : 25867 $as_echo_n "(cached) " >&6 25868else 25869 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" " 25870 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 25871 included before <wchar.h>. */ 25872 #include <stddef.h> 25873 #include <signal.h> 25874 #if HAVE_WCHAR_H 25875 # include <stdio.h> 25876 # include <time.h> 25877 # include <wchar.h> 25878 #endif 25879 25880#include <limits.h>"; then : 25881 25882else 25883 result=unknown 25884fi 25885 25886 eval gl_cv_bitsizeof_${gltype}=\$result 25887 25888fi 25889eval ac_res=\$gl_cv_bitsizeof_${gltype} 25890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 25891$as_echo "$ac_res" >&6; } 25892 eval result=\$gl_cv_bitsizeof_${gltype} 25893 if test $result = unknown; then 25894 result=0 25895 fi 25896 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` 25897 cat >>confdefs.h <<_ACEOF 25898#define BITSIZEOF_${GLTYPE} $result 25899_ACEOF 25900 25901 eval BITSIZEOF_${GLTYPE}=\$result 25902 done 25903 25904 25905 25906 25907 for gltype in sig_atomic_t wchar_t wint_t ; do 25908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5 25909$as_echo_n "checking whether $gltype is signed... " >&6; } 25910if eval \${gl_cv_type_${gltype}_signed+:} false; then : 25911 $as_echo_n "(cached) " >&6 25912else 25913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25914/* end confdefs.h. */ 25915 25916 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 25917 included before <wchar.h>. */ 25918 #include <stddef.h> 25919 #include <signal.h> 25920 #if HAVE_WCHAR_H 25921 # include <stdio.h> 25922 # include <time.h> 25923 # include <wchar.h> 25924 #endif 25925 25926 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1]; 25927int 25928main () 25929{ 25930 25931 ; 25932 return 0; 25933} 25934_ACEOF 25935if ac_fn_c_try_compile "$LINENO"; then : 25936 result=yes 25937else 25938 result=no 25939fi 25940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25941 eval gl_cv_type_${gltype}_signed=\$result 25942 25943fi 25944eval ac_res=\$gl_cv_type_${gltype}_signed 25945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 25946$as_echo "$ac_res" >&6; } 25947 eval result=\$gl_cv_type_${gltype}_signed 25948 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` 25949 if test "$result" = yes; then 25950 cat >>confdefs.h <<_ACEOF 25951#define HAVE_SIGNED_${GLTYPE} 1 25952_ACEOF 25953 25954 eval HAVE_SIGNED_${GLTYPE}=1 25955 else 25956 eval HAVE_SIGNED_${GLTYPE}=0 25957 fi 25958 done 25959 25960 25961 gl_cv_type_ptrdiff_t_signed=yes 25962 gl_cv_type_size_t_signed=no 25963 if test $APPLE_UNIVERSAL_BUILD = 0; then 25964 25965 25966 for gltype in ptrdiff_t size_t ; do 25967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5 25968$as_echo_n "checking for $gltype integer literal suffix... " >&6; } 25969if eval \${gl_cv_type_${gltype}_suffix+:} false; then : 25970 $as_echo_n "(cached) " >&6 25971else 25972 eval gl_cv_type_${gltype}_suffix=no 25973 eval result=\$gl_cv_type_${gltype}_signed 25974 if test "$result" = yes; then 25975 glsufu= 25976 else 25977 glsufu=u 25978 fi 25979 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do 25980 case $glsuf in 25981 '') gltype1='int';; 25982 l) gltype1='long int';; 25983 ll) gltype1='long long int';; 25984 i64) gltype1='__int64';; 25985 u) gltype1='unsigned int';; 25986 ul) gltype1='unsigned long int';; 25987 ull) gltype1='unsigned long long int';; 25988 ui64)gltype1='unsigned __int64';; 25989 esac 25990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25991/* end confdefs.h. */ 25992 25993 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 25994 included before <wchar.h>. */ 25995 #include <stddef.h> 25996 #include <signal.h> 25997 #if HAVE_WCHAR_H 25998 # include <stdio.h> 25999 # include <time.h> 26000 # include <wchar.h> 26001 #endif 26002 26003 extern $gltype foo; 26004 extern $gltype1 foo; 26005int 26006main () 26007{ 26008 26009 ; 26010 return 0; 26011} 26012_ACEOF 26013if ac_fn_c_try_compile "$LINENO"; then : 26014 eval gl_cv_type_${gltype}_suffix=\$glsuf 26015fi 26016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26017 eval result=\$gl_cv_type_${gltype}_suffix 26018 test "$result" != no && break 26019 done 26020fi 26021eval ac_res=\$gl_cv_type_${gltype}_suffix 26022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 26023$as_echo "$ac_res" >&6; } 26024 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` 26025 eval result=\$gl_cv_type_${gltype}_suffix 26026 test "$result" = no && result= 26027 eval ${GLTYPE}_SUFFIX=\$result 26028 cat >>confdefs.h <<_ACEOF 26029#define ${GLTYPE}_SUFFIX $result 26030_ACEOF 26031 26032 done 26033 26034 26035 fi 26036 26037 26038 for gltype in sig_atomic_t wchar_t wint_t ; do 26039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5 26040$as_echo_n "checking for $gltype integer literal suffix... " >&6; } 26041if eval \${gl_cv_type_${gltype}_suffix+:} false; then : 26042 $as_echo_n "(cached) " >&6 26043else 26044 eval gl_cv_type_${gltype}_suffix=no 26045 eval result=\$gl_cv_type_${gltype}_signed 26046 if test "$result" = yes; then 26047 glsufu= 26048 else 26049 glsufu=u 26050 fi 26051 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do 26052 case $glsuf in 26053 '') gltype1='int';; 26054 l) gltype1='long int';; 26055 ll) gltype1='long long int';; 26056 i64) gltype1='__int64';; 26057 u) gltype1='unsigned int';; 26058 ul) gltype1='unsigned long int';; 26059 ull) gltype1='unsigned long long int';; 26060 ui64)gltype1='unsigned __int64';; 26061 esac 26062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26063/* end confdefs.h. */ 26064 26065 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 26066 included before <wchar.h>. */ 26067 #include <stddef.h> 26068 #include <signal.h> 26069 #if HAVE_WCHAR_H 26070 # include <stdio.h> 26071 # include <time.h> 26072 # include <wchar.h> 26073 #endif 26074 26075 extern $gltype foo; 26076 extern $gltype1 foo; 26077int 26078main () 26079{ 26080 26081 ; 26082 return 0; 26083} 26084_ACEOF 26085if ac_fn_c_try_compile "$LINENO"; then : 26086 eval gl_cv_type_${gltype}_suffix=\$glsuf 26087fi 26088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26089 eval result=\$gl_cv_type_${gltype}_suffix 26090 test "$result" != no && break 26091 done 26092fi 26093eval ac_res=\$gl_cv_type_${gltype}_suffix 26094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 26095$as_echo "$ac_res" >&6; } 26096 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` 26097 eval result=\$gl_cv_type_${gltype}_suffix 26098 test "$result" = no && result= 26099 eval ${GLTYPE}_SUFFIX=\$result 26100 cat >>confdefs.h <<_ACEOF 26101#define ${GLTYPE}_SUFFIX $result 26102_ACEOF 26103 26104 done 26105 26106 26107 26108 if test $GNULIB_OVERRIDES_WINT_T = 1; then 26109 BITSIZEOF_WINT_T=32 26110 fi 26111 26112 ;; 26113 esac 26114 26115 26116 26117 LIMITS_H='limits.h' 26118 if test -n "$LIMITS_H"; then 26119 GL_GENERATE_LIMITS_H_TRUE= 26120 GL_GENERATE_LIMITS_H_FALSE='#' 26121else 26122 GL_GENERATE_LIMITS_H_TRUE='#' 26123 GL_GENERATE_LIMITS_H_FALSE= 26124fi 26125 26126 26127 26128 26129 26130 26131 26132 if test -n "$STDINT_H"; then 26133 GL_GENERATE_STDINT_H_TRUE= 26134 GL_GENERATE_STDINT_H_FALSE='#' 26135else 26136 GL_GENERATE_STDINT_H_TRUE='#' 26137 GL_GENERATE_STDINT_H_FALSE= 26138fi 26139 26140 26141 26142 26143 26144 GNULIB_IMAXABS=0; 26145 GNULIB_IMAXDIV=0; 26146 GNULIB_STRTOIMAX=0; 26147 GNULIB_STRTOUMAX=0; 26148 HAVE_DECL_IMAXABS=1; 26149 HAVE_DECL_IMAXDIV=1; 26150 HAVE_DECL_STRTOIMAX=1; 26151 HAVE_DECL_STRTOUMAX=1; 26152 HAVE_IMAXDIV_T=1; 26153 REPLACE_STRTOIMAX=0; 26154 REPLACE_STRTOUMAX=0; 26155 INT32_MAX_LT_INTMAX_MAX=1; 26156 INT64_MAX_EQ_LONG_MAX='defined _LP64'; 26157 PRIPTR_PREFIX=__PRIPTR_PREFIX; 26158 UINT32_MAX_LT_UINTMAX_MAX=1; 26159 UINT64_MAX_EQ_ULONG_MAX='defined _LP64'; 26160 26161 26162 26163 26164 26165 26166 26167 26168 26169 26170 26171 26172 26173 26174 26175 if test $gl_cv_have_include_next = yes; then 26176 gl_cv_next_inttypes_h='<'inttypes.h'>' 26177 else 26178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5 26179$as_echo_n "checking absolute name of <inttypes.h>... " >&6; } 26180if ${gl_cv_next_inttypes_h+:} false; then : 26181 $as_echo_n "(cached) " >&6 26182else 26183 26184 if test $ac_cv_header_inttypes_h = yes; then 26185 26186 26187 26188 26189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26190/* end confdefs.h. */ 26191#include <inttypes.h> 26192_ACEOF 26193 case "$host_os" in 26194 aix*) gl_absname_cpp="$ac_cpp -C" ;; 26195 *) gl_absname_cpp="$ac_cpp" ;; 26196 esac 26197 26198 case "$host_os" in 26199 mingw*) 26200 gl_dirsep_regex='[/\\]' 26201 ;; 26202 *) 26203 gl_dirsep_regex='\/' 26204 ;; 26205 esac 26206 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 26207 gl_header_literal_regex=`echo 'inttypes.h' \ 26208 | sed -e "$gl_make_literal_regex_sed"` 26209 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 26210 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 26211 s|^/[^/]|//&| 26212 p 26213 q 26214 }' 26215 26216 gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 26217 sed -n "$gl_absolute_header_sed"` 26218 26219 gl_header=$gl_cv_absolute_inttypes_h 26220 gl_cv_next_inttypes_h='"'$gl_header'"' 26221 else 26222 gl_cv_next_inttypes_h='<'inttypes.h'>' 26223 fi 26224 26225 26226fi 26227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5 26228$as_echo "$gl_cv_next_inttypes_h" >&6; } 26229 fi 26230 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h 26231 26232 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 26233 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 26234 gl_next_as_first_directive='<'inttypes.h'>' 26235 else 26236 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 26237 gl_next_as_first_directive=$gl_cv_next_inttypes_h 26238 fi 26239 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive 26240 26241 26242 26243 26244 26245 26246 26247 26248 26249 26250 26251 26252 26253 26254 GNULIB_ISWBLANK=0; 26255 GNULIB_ISWDIGIT=0; 26256 GNULIB_ISWXDIGIT=0; 26257 GNULIB_WCTYPE=0; 26258 GNULIB_ISWCTYPE=0; 26259 GNULIB_WCTRANS=0; 26260 GNULIB_TOWCTRANS=0; 26261 HAVE_ISWBLANK=1; 26262 HAVE_WCTYPE_T=1; 26263 HAVE_WCTRANS_T=1; 26264 REPLACE_ISWBLANK=0; 26265 REPLACE_ISWDIGIT=0; 26266 REPLACE_ISWXDIGIT=0; 26267 26268 26269 26270 26271 26272 26273 26274 if test $ac_cv_header_crtdefs_h = yes; then 26275 HAVE_CRTDEFS_H=1 26276 else 26277 HAVE_CRTDEFS_H=0 26278 fi 26279 26280 26281 26282 26283 26284 26285 26286 26287 26288 if test $ac_cv_func_iswcntrl = yes; then 26289 HAVE_ISWCNTRL=1 26290 else 26291 HAVE_ISWCNTRL=0 26292 fi 26293 26294 26295 26296 if test $gt_cv_c_wint_t = yes; then 26297 HAVE_WINT_T=1 26298 else 26299 HAVE_WINT_T=0 26300 fi 26301 26302 26303 26304 26305 26306 26307 26308 26309 26310 26311 26312 26313 26314 if test $gl_cv_have_include_next = yes; then 26315 gl_cv_next_wctype_h='<'wctype.h'>' 26316 else 26317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5 26318$as_echo_n "checking absolute name of <wctype.h>... " >&6; } 26319if ${gl_cv_next_wctype_h+:} false; then : 26320 $as_echo_n "(cached) " >&6 26321else 26322 26323 if test $ac_cv_header_wctype_h = yes; then 26324 26325 26326 26327 26328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26329/* end confdefs.h. */ 26330#include <wctype.h> 26331_ACEOF 26332 case "$host_os" in 26333 aix*) gl_absname_cpp="$ac_cpp -C" ;; 26334 *) gl_absname_cpp="$ac_cpp" ;; 26335 esac 26336 26337 case "$host_os" in 26338 mingw*) 26339 gl_dirsep_regex='[/\\]' 26340 ;; 26341 *) 26342 gl_dirsep_regex='\/' 26343 ;; 26344 esac 26345 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 26346 gl_header_literal_regex=`echo 'wctype.h' \ 26347 | sed -e "$gl_make_literal_regex_sed"` 26348 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 26349 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 26350 s|^/[^/]|//&| 26351 p 26352 q 26353 }' 26354 26355 gl_cv_absolute_wctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 26356 sed -n "$gl_absolute_header_sed"` 26357 26358 gl_header=$gl_cv_absolute_wctype_h 26359 gl_cv_next_wctype_h='"'$gl_header'"' 26360 else 26361 gl_cv_next_wctype_h='<'wctype.h'>' 26362 fi 26363 26364 26365fi 26366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5 26367$as_echo "$gl_cv_next_wctype_h" >&6; } 26368 fi 26369 NEXT_WCTYPE_H=$gl_cv_next_wctype_h 26370 26371 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 26372 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 26373 gl_next_as_first_directive='<'wctype.h'>' 26374 else 26375 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 26376 gl_next_as_first_directive=$gl_cv_next_wctype_h 26377 fi 26378 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive 26379 26380 26381 26382 26383 if test $ac_cv_header_wctype_h = yes; then 26384 if test $ac_cv_func_iswcntrl = yes; then 26385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5 26386$as_echo_n "checking whether iswcntrl works... " >&6; } 26387if ${gl_cv_func_iswcntrl_works+:} false; then : 26388 $as_echo_n "(cached) " >&6 26389else 26390 26391 if test "$cross_compiling" = yes; then : 26392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26393/* end confdefs.h. */ 26394#include <stdlib.h> 26395 #if __GNU_LIBRARY__ == 1 26396 Linux libc5 i18n is broken. 26397 #endif 26398int 26399main () 26400{ 26401 26402 ; 26403 return 0; 26404} 26405_ACEOF 26406if ac_fn_c_try_compile "$LINENO"; then : 26407 gl_cv_func_iswcntrl_works="guessing yes" 26408else 26409 gl_cv_func_iswcntrl_works="guessing no" 26410fi 26411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26412 26413else 26414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26415/* end confdefs.h. */ 26416 26417 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be 26418 included before <wchar.h>. 26419 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> 26420 must be included before <wchar.h>. */ 26421 #include <stddef.h> 26422 #include <stdio.h> 26423 #include <time.h> 26424 #include <wchar.h> 26425 #include <wctype.h> 26426 int main () { return iswprint ('x') == 0; } 26427 26428_ACEOF 26429if ac_fn_c_try_run "$LINENO"; then : 26430 gl_cv_func_iswcntrl_works=yes 26431else 26432 gl_cv_func_iswcntrl_works=no 26433fi 26434rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26435 conftest.$ac_objext conftest.beam conftest.$ac_ext 26436fi 26437 26438 26439fi 26440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5 26441$as_echo "$gl_cv_func_iswcntrl_works" >&6; } 26442 fi 26443 HAVE_WCTYPE_H=1 26444 else 26445 HAVE_WCTYPE_H=0 26446 fi 26447 26448 26449 if test $GNULIB_OVERRIDES_WINT_T = 1; then 26450 REPLACE_ISWCNTRL=1 26451 else 26452 case "$gl_cv_func_iswcntrl_works" in 26453 *yes) REPLACE_ISWCNTRL=0 ;; 26454 *) REPLACE_ISWCNTRL=1 ;; 26455 esac 26456 fi 26457 26458 26459 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then 26460 : 26461 fi 26462 26463 if test $REPLACE_ISWCNTRL = 1; then 26464 REPLACE_TOWLOWER=1 26465 else 26466 for ac_func in towlower 26467do : 26468 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower" 26469if test "x$ac_cv_func_towlower" = xyes; then : 26470 cat >>confdefs.h <<_ACEOF 26471#define HAVE_TOWLOWER 1 26472_ACEOF 26473 26474fi 26475done 26476 26477 if test $ac_cv_func_towlower = yes; then 26478 REPLACE_TOWLOWER=0 26479 else 26480 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be 26481 included before <wchar.h>. 26482 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> 26483 must be included before <wchar.h>. */ 26484 #include <stddef.h> 26485 #include <stdio.h> 26486 #include <time.h> 26487 #include <wchar.h> 26488 #if HAVE_WCTYPE_H 26489 # include <wctype.h> 26490 #endif 26491 26492" 26493if test "x$ac_cv_have_decl_towlower" = xyes; then : 26494 ac_have_decl=1 26495else 26496 ac_have_decl=0 26497fi 26498 26499cat >>confdefs.h <<_ACEOF 26500#define HAVE_DECL_TOWLOWER $ac_have_decl 26501_ACEOF 26502 26503 if test $ac_cv_have_decl_towlower = yes; then 26504 REPLACE_TOWLOWER=1 26505 else 26506 REPLACE_TOWLOWER=0 26507 fi 26508 fi 26509 fi 26510 26511 26512 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then 26513 : 26514 fi 26515 26516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5 26517$as_echo_n "checking for wctype_t... " >&6; } 26518if ${gl_cv_type_wctype_t+:} false; then : 26519 $as_echo_n "(cached) " >&6 26520else 26521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26522/* end confdefs.h. */ 26523/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be 26524 included before <wchar.h>. 26525 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> 26526 must be included before <wchar.h>. */ 26527 #include <stddef.h> 26528 #include <stdio.h> 26529 #include <time.h> 26530 #include <wchar.h> 26531 #if HAVE_WCTYPE_H 26532 # include <wctype.h> 26533 #endif 26534 wctype_t a; 26535 26536int 26537main () 26538{ 26539 26540 ; 26541 return 0; 26542} 26543_ACEOF 26544if ac_fn_c_try_compile "$LINENO"; then : 26545 gl_cv_type_wctype_t=yes 26546else 26547 gl_cv_type_wctype_t=no 26548fi 26549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26550 26551fi 26552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5 26553$as_echo "$gl_cv_type_wctype_t" >&6; } 26554 if test $gl_cv_type_wctype_t = no; then 26555 HAVE_WCTYPE_T=0 26556 fi 26557 26558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5 26559$as_echo_n "checking for wctrans_t... " >&6; } 26560if ${gl_cv_type_wctrans_t+:} false; then : 26561 $as_echo_n "(cached) " >&6 26562else 26563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26564/* end confdefs.h. */ 26565/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be 26566 included before <wchar.h>. 26567 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> 26568 must be included before <wchar.h>. */ 26569 #include <stddef.h> 26570 #include <stdio.h> 26571 #include <time.h> 26572 #include <wchar.h> 26573 #include <wctype.h> 26574 wctrans_t a; 26575 26576int 26577main () 26578{ 26579 26580 ; 26581 return 0; 26582} 26583_ACEOF 26584if ac_fn_c_try_compile "$LINENO"; then : 26585 gl_cv_type_wctrans_t=yes 26586else 26587 gl_cv_type_wctrans_t=no 26588fi 26589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26590 26591fi 26592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5 26593$as_echo "$gl_cv_type_wctrans_t" >&6; } 26594 if test $gl_cv_type_wctrans_t = no; then 26595 HAVE_WCTRANS_T=0 26596 fi 26597 26598 26599 26600 26601 26602 26603 26604 26605 26606 26607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5 26608$as_echo_n "checking for a traditional french locale... " >&6; } 26609if ${gt_cv_locale_fr+:} false; then : 26610 $as_echo_n "(cached) " >&6 26611else 26612 26613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26614/* end confdefs.h. */ 26615 26616#include <locale.h> 26617#include <time.h> 26618#if HAVE_LANGINFO_CODESET 26619# include <langinfo.h> 26620#endif 26621#include <stdlib.h> 26622#include <string.h> 26623struct tm t; 26624char buf[16]; 26625int main () { 26626 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 26627 imitates locale dependent behaviour by looking at the environment 26628 variables, and all locales use the UTF-8 encoding. */ 26629#if defined __BEOS__ || defined __HAIKU__ 26630 return 1; 26631#else 26632 /* Check whether the given locale name is recognized by the system. */ 26633# if defined _WIN32 && !defined __CYGWIN__ 26634 /* On native Windows, setlocale(category, "") looks at the system settings, 26635 not at the environment variables. Also, when an encoding suffix such 26636 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 26637 category of the locale to "C". */ 26638 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 26639 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 26640 return 1; 26641# else 26642 if (setlocale (LC_ALL, "") == NULL) return 1; 26643# endif 26644 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 26645 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 26646 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 26647 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 26648 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 26649 some unit tests fail. 26650 On MirBSD 10, when an unsupported locale is specified, setlocale() 26651 succeeds but then nl_langinfo(CODESET) is "UTF-8". */ 26652# if HAVE_LANGINFO_CODESET 26653 { 26654 const char *cs = nl_langinfo (CODESET); 26655 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0 26656 || strcmp (cs, "UTF-8") == 0) 26657 return 1; 26658 } 26659# endif 26660# ifdef __CYGWIN__ 26661 /* On Cygwin, avoid locale names without encoding suffix, because the 26662 locale_charset() function relies on the encoding suffix. Note that 26663 LC_ALL is set on the command line. */ 26664 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 26665# endif 26666 /* Check whether in the abbreviation of the second month, the second 26667 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only 26668 one byte long. This excludes the UTF-8 encoding. */ 26669 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 26670 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1; 26671# if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */ 26672 /* Check whether the decimal separator is a comma. 26673 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point 26674 are nl_langinfo(RADIXCHAR) are both ".". */ 26675 if (localeconv () ->decimal_point[0] != ',') return 1; 26676# endif 26677 return 0; 26678#endif 26679} 26680 26681_ACEOF 26682 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 26683 (eval $ac_link) 2>&5 26684 ac_status=$? 26685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26686 test $ac_status = 0; } && test -s conftest$ac_exeext; then 26687 case "$host_os" in 26688 # Handle native Windows specially, because there setlocale() interprets 26689 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 26690 # "fr" or "fra" as "French" or "French_France.1252", 26691 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 26692 # "ja" as "Japanese" or "Japanese_Japan.932", 26693 # and similar. 26694 mingw*) 26695 # Test for the native Windows locale name. 26696 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 26697 gt_cv_locale_fr=French_France.1252 26698 else 26699 # None found. 26700 gt_cv_locale_fr=none 26701 fi 26702 ;; 26703 *) 26704 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 26705 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 26706 # configure script would override the LC_ALL setting. Likewise for 26707 # LC_CTYPE, which is also set at the beginning of the configure script. 26708 # Test for the usual locale name. 26709 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 26710 gt_cv_locale_fr=fr_FR 26711 else 26712 # Test for the locale name with explicit encoding suffix. 26713 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 26714 gt_cv_locale_fr=fr_FR.ISO-8859-1 26715 else 26716 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name. 26717 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 26718 gt_cv_locale_fr=fr_FR.ISO8859-1 26719 else 26720 # Test for the HP-UX locale name. 26721 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 26722 gt_cv_locale_fr=fr_FR.iso88591 26723 else 26724 # Test for the Solaris 7 locale name. 26725 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 26726 gt_cv_locale_fr=fr 26727 else 26728 # None found. 26729 gt_cv_locale_fr=none 26730 fi 26731 fi 26732 fi 26733 fi 26734 fi 26735 ;; 26736 esac 26737 fi 26738 rm -fr conftest* 26739 26740fi 26741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5 26742$as_echo "$gt_cv_locale_fr" >&6; } 26743 LOCALE_FR=$gt_cv_locale_fr 26744 26745 26746 26747 26748 26749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5 26750$as_echo_n "checking for a traditional japanese locale... " >&6; } 26751if ${gt_cv_locale_ja+:} false; then : 26752 $as_echo_n "(cached) " >&6 26753else 26754 26755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26756/* end confdefs.h. */ 26757 26758#include <locale.h> 26759#include <time.h> 26760#if HAVE_LANGINFO_CODESET 26761# include <langinfo.h> 26762#endif 26763#include <stdlib.h> 26764#include <string.h> 26765struct tm t; 26766char buf[16]; 26767int main () 26768{ 26769 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 26770 imitates locale dependent behaviour by looking at the environment 26771 variables, and all locales use the UTF-8 encoding. */ 26772#if defined __BEOS__ || defined __HAIKU__ 26773 return 1; 26774#else 26775 /* Check whether the given locale name is recognized by the system. */ 26776# if defined _WIN32 && !defined __CYGWIN__ 26777 /* On native Windows, setlocale(category, "") looks at the system settings, 26778 not at the environment variables. Also, when an encoding suffix such 26779 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 26780 category of the locale to "C". */ 26781 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 26782 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 26783 return 1; 26784# else 26785 if (setlocale (LC_ALL, "") == NULL) return 1; 26786# endif 26787 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 26788 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 26789 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 26790 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 26791 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 26792 some unit tests fail. 26793 On MirBSD 10, when an unsupported locale is specified, setlocale() 26794 succeeds but then nl_langinfo(CODESET) is "UTF-8". */ 26795# if HAVE_LANGINFO_CODESET 26796 { 26797 const char *cs = nl_langinfo (CODESET); 26798 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0 26799 || strcmp (cs, "UTF-8") == 0) 26800 return 1; 26801 } 26802# endif 26803# ifdef __CYGWIN__ 26804 /* On Cygwin, avoid locale names without encoding suffix, because the 26805 locale_charset() function relies on the encoding suffix. Note that 26806 LC_ALL is set on the command line. */ 26807 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 26808# endif 26809 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales 26810 on Cygwin 1.5.x. */ 26811 if (MB_CUR_MAX == 1) 26812 return 1; 26813 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs. 26814 This excludes the UTF-8 encoding (except on MirBSD). */ 26815 { 26816 const char *p; 26817 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 26818 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1; 26819 for (p = buf; *p != '\0'; p++) 26820 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0) 26821 return 1; 26822 } 26823 return 0; 26824#endif 26825} 26826 26827_ACEOF 26828 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 26829 (eval $ac_link) 2>&5 26830 ac_status=$? 26831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26832 test $ac_status = 0; } && test -s conftest$ac_exeext; then 26833 case "$host_os" in 26834 # Handle native Windows specially, because there setlocale() interprets 26835 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 26836 # "fr" or "fra" as "French" or "French_France.1252", 26837 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 26838 # "ja" as "Japanese" or "Japanese_Japan.932", 26839 # and similar. 26840 mingw*) 26841 # Note that on native Windows, the Japanese locale is 26842 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we 26843 # cannot use it here. 26844 gt_cv_locale_ja=none 26845 ;; 26846 *) 26847 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 26848 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 26849 # configure script would override the LC_ALL setting. Likewise for 26850 # LC_CTYPE, which is also set at the beginning of the configure script. 26851 # Test for the AIX locale name. 26852 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 26853 gt_cv_locale_ja=ja_JP 26854 else 26855 # Test for the locale name with explicit encoding suffix. 26856 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 26857 gt_cv_locale_ja=ja_JP.EUC-JP 26858 else 26859 # Test for the HP-UX, OSF/1, NetBSD locale name. 26860 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 26861 gt_cv_locale_ja=ja_JP.eucJP 26862 else 26863 # Test for the IRIX, FreeBSD locale name. 26864 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 26865 gt_cv_locale_ja=ja_JP.EUC 26866 else 26867 # Test for the Solaris 7 locale name. 26868 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 26869 gt_cv_locale_ja=ja 26870 else 26871 # Special test for NetBSD 1.6. 26872 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then 26873 gt_cv_locale_ja=ja_JP.eucJP 26874 else 26875 # None found. 26876 gt_cv_locale_ja=none 26877 fi 26878 fi 26879 fi 26880 fi 26881 fi 26882 fi 26883 ;; 26884 esac 26885 fi 26886 rm -fr conftest* 26887 26888fi 26889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5 26890$as_echo "$gt_cv_locale_ja" >&6; } 26891 LOCALE_JA=$gt_cv_locale_ja 26892 26893 26894 26895 26896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5 26897$as_echo_n "checking for a french Unicode locale... " >&6; } 26898if ${gt_cv_locale_fr_utf8+:} false; then : 26899 $as_echo_n "(cached) " >&6 26900else 26901 26902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26903/* end confdefs.h. */ 26904 26905#include <locale.h> 26906#include <time.h> 26907#if HAVE_LANGINFO_CODESET 26908# include <langinfo.h> 26909#endif 26910#include <stdlib.h> 26911#include <string.h> 26912struct tm t; 26913char buf[16]; 26914int main () { 26915 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 26916 imitates locale dependent behaviour by looking at the environment 26917 variables, and all locales use the UTF-8 encoding. */ 26918#if !(defined __BEOS__ || defined __HAIKU__) 26919 /* Check whether the given locale name is recognized by the system. */ 26920# if defined _WIN32 && !defined __CYGWIN__ 26921 /* On native Windows, setlocale(category, "") looks at the system settings, 26922 not at the environment variables. Also, when an encoding suffix such 26923 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 26924 category of the locale to "C". */ 26925 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 26926 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 26927 return 1; 26928# else 26929 if (setlocale (LC_ALL, "") == NULL) return 1; 26930# endif 26931 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 26932 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 26933 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 26934 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 26935 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 26936 some unit tests fail. */ 26937# if HAVE_LANGINFO_CODESET 26938 { 26939 const char *cs = nl_langinfo (CODESET); 26940 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) 26941 return 1; 26942 } 26943# endif 26944# ifdef __CYGWIN__ 26945 /* On Cygwin, avoid locale names without encoding suffix, because the 26946 locale_charset() function relies on the encoding suffix. Note that 26947 LC_ALL is set on the command line. */ 26948 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 26949# endif 26950 /* Check whether in the abbreviation of the second month, the second 26951 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is 26952 two bytes long, with UTF-8 encoding. */ 26953 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 26954 if (strftime (buf, sizeof (buf), "%b", &t) < 4 26955 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v') 26956 return 1; 26957#endif 26958#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */ 26959 /* Check whether the decimal separator is a comma. 26960 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point 26961 are nl_langinfo(RADIXCHAR) are both ".". */ 26962 if (localeconv () ->decimal_point[0] != ',') return 1; 26963#endif 26964 return 0; 26965} 26966 26967_ACEOF 26968 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 26969 (eval $ac_link) 2>&5 26970 ac_status=$? 26971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26972 test $ac_status = 0; } && test -s conftest$ac_exeext; then 26973 case "$host_os" in 26974 # Handle native Windows specially, because there setlocale() interprets 26975 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 26976 # "fr" or "fra" as "French" or "French_France.1252", 26977 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 26978 # "ja" as "Japanese" or "Japanese_Japan.932", 26979 # and similar. 26980 mingw*) 26981 # Test for the hypothetical native Windows locale name. 26982 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 26983 gt_cv_locale_fr_utf8=French_France.65001 26984 else 26985 # None found. 26986 gt_cv_locale_fr_utf8=none 26987 fi 26988 ;; 26989 *) 26990 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 26991 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 26992 # configure script would override the LC_ALL setting. Likewise for 26993 # LC_CTYPE, which is also set at the beginning of the configure script. 26994 # Test for the usual locale name. 26995 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 26996 gt_cv_locale_fr_utf8=fr_FR 26997 else 26998 # Test for the locale name with explicit encoding suffix. 26999 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 27000 gt_cv_locale_fr_utf8=fr_FR.UTF-8 27001 else 27002 # Test for the Solaris 7 locale name. 27003 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 27004 gt_cv_locale_fr_utf8=fr.UTF-8 27005 else 27006 # None found. 27007 gt_cv_locale_fr_utf8=none 27008 fi 27009 fi 27010 fi 27011 ;; 27012 esac 27013 fi 27014 rm -fr conftest* 27015 27016fi 27017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5 27018$as_echo "$gt_cv_locale_fr_utf8" >&6; } 27019 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8 27020 27021 27022 27023 27024 27025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5 27026$as_echo_n "checking for a transitional chinese locale... " >&6; } 27027if ${gt_cv_locale_zh_CN+:} false; then : 27028 $as_echo_n "(cached) " >&6 27029else 27030 27031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27032/* end confdefs.h. */ 27033 27034#include <locale.h> 27035#include <stdlib.h> 27036#include <time.h> 27037#if HAVE_LANGINFO_CODESET 27038# include <langinfo.h> 27039#endif 27040#include <stdlib.h> 27041#include <string.h> 27042struct tm t; 27043char buf[16]; 27044int main () 27045{ 27046 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 27047 imitates locale dependent behaviour by looking at the environment 27048 variables, and all locales use the UTF-8 encoding. */ 27049#if defined __BEOS__ || defined __HAIKU__ 27050 return 1; 27051#else 27052 /* Check whether the given locale name is recognized by the system. */ 27053# if defined _WIN32 && !defined __CYGWIN__ 27054 /* On native Windows, setlocale(category, "") looks at the system settings, 27055 not at the environment variables. Also, when an encoding suffix such 27056 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 27057 category of the locale to "C". */ 27058 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 27059 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 27060 return 1; 27061# else 27062 if (setlocale (LC_ALL, "") == NULL) return 1; 27063# endif 27064 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 27065 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 27066 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 27067 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 27068 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 27069 some unit tests fail. 27070 On MirBSD 10, when an unsupported locale is specified, setlocale() 27071 succeeds but then nl_langinfo(CODESET) is "UTF-8". */ 27072# if HAVE_LANGINFO_CODESET 27073 { 27074 const char *cs = nl_langinfo (CODESET); 27075 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0 27076 || strcmp (cs, "UTF-8") == 0) 27077 return 1; 27078 } 27079# endif 27080# ifdef __CYGWIN__ 27081 /* On Cygwin, avoid locale names without encoding suffix, because the 27082 locale_charset() function relies on the encoding suffix. Note that 27083 LC_ALL is set on the command line. */ 27084 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 27085# endif 27086 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs. 27087 This excludes the UTF-8 encoding (except on MirBSD). */ 27088 { 27089 const char *p; 27090 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 27091 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1; 27092 for (p = buf; *p != '\0'; p++) 27093 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0) 27094 return 1; 27095 } 27096 /* Check whether a typical GB18030 multibyte sequence is recognized as a 27097 single wide character. This excludes the GB2312 and GBK encodings. */ 27098 if (mblen ("\203\062\332\066", 5) != 4) 27099 return 1; 27100 return 0; 27101#endif 27102} 27103 27104_ACEOF 27105 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 27106 (eval $ac_link) 2>&5 27107 ac_status=$? 27108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27109 test $ac_status = 0; } && test -s conftest$ac_exeext; then 27110 case "$host_os" in 27111 # Handle native Windows specially, because there setlocale() interprets 27112 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 27113 # "fr" or "fra" as "French" or "French_France.1252", 27114 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 27115 # "ja" as "Japanese" or "Japanese_Japan.932", 27116 # and similar. 27117 mingw*) 27118 # Test for the hypothetical native Windows locale name. 27119 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 27120 gt_cv_locale_zh_CN=Chinese_China.54936 27121 else 27122 # None found. 27123 gt_cv_locale_zh_CN=none 27124 fi 27125 ;; 27126 solaris2.8) 27127 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are 27128 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK. 27129 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core. 27130 gt_cv_locale_zh_CN=none 27131 ;; 27132 *) 27133 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 27134 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 27135 # configure script would override the LC_ALL setting. Likewise for 27136 # LC_CTYPE, which is also set at the beginning of the configure script. 27137 # Test for the locale name without encoding suffix. 27138 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 27139 gt_cv_locale_zh_CN=zh_CN 27140 else 27141 # Test for the locale name with explicit encoding suffix. 27142 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 27143 gt_cv_locale_zh_CN=zh_CN.GB18030 27144 else 27145 # None found. 27146 gt_cv_locale_zh_CN=none 27147 fi 27148 fi 27149 ;; 27150 esac 27151 else 27152 # If there was a link error, due to mblen(), the system is so old that 27153 # it certainly doesn't have a chinese locale. 27154 gt_cv_locale_zh_CN=none 27155 fi 27156 rm -fr conftest* 27157 27158fi 27159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5 27160$as_echo "$gt_cv_locale_zh_CN" >&6; } 27161 LOCALE_ZH_CN=$gt_cv_locale_zh_CN 27162 27163 27164 27165 GNULIB_NL_LANGINFO=0; 27166 HAVE_NL_LANGINFO=1; 27167 REPLACE_NL_LANGINFO=0; 27168 27169 27170 27171 27172 GNULIB_LOCALECONV=0; 27173 GNULIB_SETLOCALE=0; 27174 GNULIB_SETLOCALE_NULL=0; 27175 GNULIB_DUPLOCALE=0; 27176 GNULIB_LOCALENAME=0; 27177 HAVE_NEWLOCALE=1; 27178 HAVE_DUPLOCALE=1; 27179 HAVE_FREELOCALE=1; 27180 REPLACE_LOCALECONV=0; 27181 REPLACE_SETLOCALE=0; 27182 REPLACE_NEWLOCALE=0; 27183 REPLACE_DUPLOCALE=0; 27184 REPLACE_FREELOCALE=0; 27185 REPLACE_STRUCT_LCONV=0; 27186 27187 27188 REPLACE_NULL=0; 27189 HAVE_MAX_ALIGN_T=1; 27190 HAVE_WCHAR_T=1; 27191 27192 27193 27194 27195 STDDEF_H= 27196 27197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5 27198$as_echo_n "checking for good max_align_t... " >&6; } 27199if ${gl_cv_type_max_align_t+:} false; then : 27200 $as_echo_n "(cached) " >&6 27201else 27202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27203/* end confdefs.h. */ 27204#include <stddef.h> 27205 unsigned int s = sizeof (max_align_t); 27206 #if defined __GNUC__ || defined __IBM__ALIGNOF__ 27207 int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1]; 27208 int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1]; 27209 #endif 27210 27211int 27212main () 27213{ 27214 27215 ; 27216 return 0; 27217} 27218_ACEOF 27219if ac_fn_c_try_compile "$LINENO"; then : 27220 gl_cv_type_max_align_t=yes 27221else 27222 gl_cv_type_max_align_t=no 27223fi 27224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27225 27226fi 27227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5 27228$as_echo "$gl_cv_type_max_align_t" >&6; } 27229 if test $gl_cv_type_max_align_t = no; then 27230 HAVE_MAX_ALIGN_T=0 27231 STDDEF_H=stddef.h 27232 fi 27233 27234 if test $gt_cv_c_wchar_t = no; then 27235 HAVE_WCHAR_T=0 27236 STDDEF_H=stddef.h 27237 fi 27238 27239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5 27240$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; } 27241if ${gl_cv_decl_null_works+:} false; then : 27242 $as_echo_n "(cached) " >&6 27243else 27244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27245/* end confdefs.h. */ 27246#include <stddef.h> 27247 int test[2 * (sizeof NULL == sizeof (void *)) -1]; 27248 27249int 27250main () 27251{ 27252 27253 ; 27254 return 0; 27255} 27256_ACEOF 27257if ac_fn_c_try_compile "$LINENO"; then : 27258 gl_cv_decl_null_works=yes 27259else 27260 gl_cv_decl_null_works=no 27261fi 27262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27263fi 27264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5 27265$as_echo "$gl_cv_decl_null_works" >&6; } 27266 if test $gl_cv_decl_null_works = no; then 27267 REPLACE_NULL=1 27268 STDDEF_H=stddef.h 27269 fi 27270 27271 27272 if test -n "$STDDEF_H"; then 27273 GL_GENERATE_STDDEF_H_TRUE= 27274 GL_GENERATE_STDDEF_H_FALSE='#' 27275else 27276 GL_GENERATE_STDDEF_H_TRUE='#' 27277 GL_GENERATE_STDDEF_H_FALSE= 27278fi 27279 27280 if test -n "$STDDEF_H"; then 27281 27282 27283 27284 27285 27286 27287 27288 27289 if test $gl_cv_have_include_next = yes; then 27290 gl_cv_next_stddef_h='<'stddef.h'>' 27291 else 27292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5 27293$as_echo_n "checking absolute name of <stddef.h>... " >&6; } 27294if ${gl_cv_next_stddef_h+:} false; then : 27295 $as_echo_n "(cached) " >&6 27296else 27297 27298 27299 27300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27301/* end confdefs.h. */ 27302#include <stddef.h> 27303_ACEOF 27304 case "$host_os" in 27305 aix*) gl_absname_cpp="$ac_cpp -C" ;; 27306 *) gl_absname_cpp="$ac_cpp" ;; 27307 esac 27308 27309 case "$host_os" in 27310 mingw*) 27311 gl_dirsep_regex='[/\\]' 27312 ;; 27313 *) 27314 gl_dirsep_regex='\/' 27315 ;; 27316 esac 27317 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 27318 gl_header_literal_regex=`echo 'stddef.h' \ 27319 | sed -e "$gl_make_literal_regex_sed"` 27320 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 27321 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 27322 s|^/[^/]|//&| 27323 p 27324 q 27325 }' 27326 27327 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 27328 sed -n "$gl_absolute_header_sed"` 27329 27330 gl_header=$gl_cv_absolute_stddef_h 27331 gl_cv_next_stddef_h='"'$gl_header'"' 27332 27333 27334fi 27335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5 27336$as_echo "$gl_cv_next_stddef_h" >&6; } 27337 fi 27338 NEXT_STDDEF_H=$gl_cv_next_stddef_h 27339 27340 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 27341 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 27342 gl_next_as_first_directive='<'stddef.h'>' 27343 else 27344 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 27345 gl_next_as_first_directive=$gl_cv_next_stddef_h 27346 fi 27347 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive 27348 27349 27350 27351 27352 fi 27353 27354 27355 27356 27357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h defines locale_t" >&5 27358$as_echo_n "checking whether locale.h defines locale_t... " >&6; } 27359if ${gl_cv_header_locale_has_locale_t+:} false; then : 27360 $as_echo_n "(cached) " >&6 27361else 27362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27363/* end confdefs.h. */ 27364#include <locale.h> 27365 locale_t x; 27366int 27367main () 27368{ 27369 27370 ; 27371 return 0; 27372} 27373_ACEOF 27374if ac_fn_c_try_compile "$LINENO"; then : 27375 gl_cv_header_locale_has_locale_t=yes 27376else 27377 gl_cv_header_locale_has_locale_t=no 27378fi 27379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27380 27381fi 27382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_has_locale_t" >&5 27383$as_echo "$gl_cv_header_locale_has_locale_t" >&6; } 27384 27385 27386 if test $ac_cv_header_xlocale_h = yes; then 27387 HAVE_XLOCALE_H=1 27388 if test $gl_cv_header_locale_has_locale_t = yes; then 27389 gl_cv_header_locale_h_needs_xlocale_h=no 27390 else 27391 gl_cv_header_locale_h_needs_xlocale_h=yes 27392 fi 27393 HAVE_LOCALE_T=1 27394 else 27395 HAVE_XLOCALE_H=0 27396 gl_cv_header_locale_h_needs_xlocale_h=no 27397 if test $gl_cv_header_locale_has_locale_t = yes; then 27398 HAVE_LOCALE_T=1 27399 else 27400 HAVE_LOCALE_T=0 27401 fi 27402 fi 27403 27404 27405 27406 27407 27408 27409 27410 27411 27412 27413 27414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 27415$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } 27416if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false; then : 27417 $as_echo_n "(cached) " >&6 27418else 27419 rm -f conftest.sym conftest.file 27420 echo >conftest.file 27421 if test "$cross_compiling" = yes; then : 27422 case "$host_os" in 27423 linux-* | linux) 27424 # Guess yes on Linux systems. 27425 gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;; 27426 *-gnu* | gnu*) 27427 # Guess yes on glibc systems. 27428 gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;; 27429 mingw*) 27430 # Guess no on native Windows. 27431 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;; 27432 *) 27433 # If we don't know, obey --enable-cross-guesses. 27434 gl_cv_func_lstat_dereferences_slashed_symlink="$gl_cross_guess_normal" ;; 27435 esac 27436 27437else 27438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27439/* end confdefs.h. */ 27440$ac_includes_default 27441int 27442main () 27443{ 27444struct stat sbuf; 27445 if (symlink ("conftest.file", "conftest.sym") != 0) 27446 return 1; 27447 /* Linux will dereference the symlink and fail, as required by 27448 POSIX. That is better in the sense that it means we will not 27449 have to compile and use the lstat wrapper. */ 27450 return lstat ("conftest.sym/", &sbuf) == 0; 27451 27452 ; 27453 return 0; 27454} 27455_ACEOF 27456if ac_fn_c_try_run "$LINENO"; then : 27457 gl_cv_func_lstat_dereferences_slashed_symlink=yes 27458else 27459 gl_cv_func_lstat_dereferences_slashed_symlink=no 27460fi 27461rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 27462 conftest.$ac_objext conftest.beam conftest.$ac_ext 27463fi 27464 27465 rm -f conftest.sym conftest.file 27466 27467fi 27468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5 27469$as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; } 27470 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in 27471 *yes) 27472 27473cat >>confdefs.h <<_ACEOF 27474#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 27475_ACEOF 27476 27477 ;; 27478 esac 27479 27480 27481 for ac_header in stdlib.h 27482do : 27483 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 27484if test "x$ac_cv_header_stdlib_h" = xyes; then : 27485 cat >>confdefs.h <<_ACEOF 27486#define HAVE_STDLIB_H 1 27487_ACEOF 27488 27489fi 27490 27491done 27492 27493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 27494$as_echo_n "checking for GNU libc compatible malloc... " >&6; } 27495if ${ac_cv_func_malloc_0_nonnull+:} false; then : 27496 $as_echo_n "(cached) " >&6 27497else 27498 if test "$cross_compiling" = yes; then : 27499 ac_cv_func_malloc_0_nonnull=no 27500else 27501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27502/* end confdefs.h. */ 27503#if defined STDC_HEADERS || defined HAVE_STDLIB_H 27504# include <stdlib.h> 27505#else 27506char *malloc (); 27507#endif 27508 27509int 27510main () 27511{ 27512return ! malloc (0); 27513 ; 27514 return 0; 27515} 27516_ACEOF 27517if ac_fn_c_try_run "$LINENO"; then : 27518 ac_cv_func_malloc_0_nonnull=yes 27519else 27520 ac_cv_func_malloc_0_nonnull=no 27521fi 27522rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 27523 conftest.$ac_objext conftest.beam conftest.$ac_ext 27524fi 27525 27526fi 27527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 27528$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } 27529if test $ac_cv_func_malloc_0_nonnull = yes; then : 27530 gl_cv_func_malloc_0_nonnull=1 27531else 27532 gl_cv_func_malloc_0_nonnull=0 27533fi 27534 27535 27536cat >>confdefs.h <<_ACEOF 27537#define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull 27538_ACEOF 27539 27540 27541 27542 27543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 27544$as_echo_n "checking for mbstate_t... " >&6; } 27545if ${ac_cv_type_mbstate_t+:} false; then : 27546 $as_echo_n "(cached) " >&6 27547else 27548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27549/* end confdefs.h. */ 27550$ac_includes_default 27551/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 27552 <wchar.h>. 27553 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 27554 included before <wchar.h>. */ 27555#include <stddef.h> 27556#include <stdio.h> 27557#include <time.h> 27558#include <wchar.h> 27559int 27560main () 27561{ 27562mbstate_t x; return sizeof x; 27563 ; 27564 return 0; 27565} 27566_ACEOF 27567if ac_fn_c_try_compile "$LINENO"; then : 27568 ac_cv_type_mbstate_t=yes 27569else 27570 ac_cv_type_mbstate_t=no 27571fi 27572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27573fi 27574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 27575$as_echo "$ac_cv_type_mbstate_t" >&6; } 27576 if test $ac_cv_type_mbstate_t = yes; then 27577 27578$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h 27579 27580 else 27581 27582$as_echo "#define mbstate_t int" >>confdefs.h 27583 27584 fi 27585 27586 27587 GNULIB_BTOWC=0; 27588 GNULIB_WCTOB=0; 27589 GNULIB_MBSINIT=0; 27590 GNULIB_MBRTOWC=0; 27591 GNULIB_MBRLEN=0; 27592 GNULIB_MBSRTOWCS=0; 27593 GNULIB_MBSNRTOWCS=0; 27594 GNULIB_WCRTOMB=0; 27595 GNULIB_WCSRTOMBS=0; 27596 GNULIB_WCSNRTOMBS=0; 27597 GNULIB_WCWIDTH=0; 27598 GNULIB_WMEMCHR=0; 27599 GNULIB_WMEMCMP=0; 27600 GNULIB_WMEMCPY=0; 27601 GNULIB_WMEMMOVE=0; 27602 GNULIB_WMEMPCPY=0; 27603 GNULIB_WMEMSET=0; 27604 GNULIB_WCSLEN=0; 27605 GNULIB_WCSNLEN=0; 27606 GNULIB_WCSCPY=0; 27607 GNULIB_WCPCPY=0; 27608 GNULIB_WCSNCPY=0; 27609 GNULIB_WCPNCPY=0; 27610 GNULIB_WCSCAT=0; 27611 GNULIB_WCSNCAT=0; 27612 GNULIB_WCSCMP=0; 27613 GNULIB_WCSNCMP=0; 27614 GNULIB_WCSCASECMP=0; 27615 GNULIB_WCSNCASECMP=0; 27616 GNULIB_WCSCOLL=0; 27617 GNULIB_WCSXFRM=0; 27618 GNULIB_WCSDUP=0; 27619 GNULIB_WCSCHR=0; 27620 GNULIB_WCSRCHR=0; 27621 GNULIB_WCSCSPN=0; 27622 GNULIB_WCSSPN=0; 27623 GNULIB_WCSPBRK=0; 27624 GNULIB_WCSSTR=0; 27625 GNULIB_WCSTOK=0; 27626 GNULIB_WCSWIDTH=0; 27627 GNULIB_WCSFTIME=0; 27628 HAVE_BTOWC=1; 27629 HAVE_MBSINIT=1; 27630 HAVE_MBRTOWC=1; 27631 HAVE_MBRLEN=1; 27632 HAVE_MBSRTOWCS=1; 27633 HAVE_MBSNRTOWCS=1; 27634 HAVE_WCRTOMB=1; 27635 HAVE_WCSRTOMBS=1; 27636 HAVE_WCSNRTOMBS=1; 27637 HAVE_WMEMCHR=1; 27638 HAVE_WMEMCMP=1; 27639 HAVE_WMEMCPY=1; 27640 HAVE_WMEMMOVE=1; 27641 HAVE_WMEMPCPY=1; 27642 HAVE_WMEMSET=1; 27643 HAVE_WCSLEN=1; 27644 HAVE_WCSNLEN=1; 27645 HAVE_WCSCPY=1; 27646 HAVE_WCPCPY=1; 27647 HAVE_WCSNCPY=1; 27648 HAVE_WCPNCPY=1; 27649 HAVE_WCSCAT=1; 27650 HAVE_WCSNCAT=1; 27651 HAVE_WCSCMP=1; 27652 HAVE_WCSNCMP=1; 27653 HAVE_WCSCASECMP=1; 27654 HAVE_WCSNCASECMP=1; 27655 HAVE_WCSCOLL=1; 27656 HAVE_WCSXFRM=1; 27657 HAVE_WCSDUP=1; 27658 HAVE_WCSCHR=1; 27659 HAVE_WCSRCHR=1; 27660 HAVE_WCSCSPN=1; 27661 HAVE_WCSSPN=1; 27662 HAVE_WCSPBRK=1; 27663 HAVE_WCSSTR=1; 27664 HAVE_WCSTOK=1; 27665 HAVE_WCSWIDTH=1; 27666 HAVE_WCSFTIME=1; 27667 HAVE_DECL_WCTOB=1; 27668 HAVE_DECL_WCWIDTH=1; 27669 REPLACE_MBSTATE_T=0; 27670 REPLACE_BTOWC=0; 27671 REPLACE_WCTOB=0; 27672 REPLACE_MBSINIT=0; 27673 REPLACE_MBRTOWC=0; 27674 REPLACE_MBRLEN=0; 27675 REPLACE_MBSRTOWCS=0; 27676 REPLACE_MBSNRTOWCS=0; 27677 REPLACE_WCRTOMB=0; 27678 REPLACE_WCSRTOMBS=0; 27679 REPLACE_WCSNRTOMBS=0; 27680 REPLACE_WCWIDTH=0; 27681 REPLACE_WCSWIDTH=0; 27682 REPLACE_WCSFTIME=0; 27683 REPLACE_WCSTOK=0; 27684 27685 27686 27687 27688 27689 27690 GNULIB_EXPLICIT_BZERO=0; 27691 GNULIB_FFSL=0; 27692 GNULIB_FFSLL=0; 27693 GNULIB_MEMCHR=0; 27694 GNULIB_MEMMEM=0; 27695 GNULIB_MEMPCPY=0; 27696 GNULIB_MEMRCHR=0; 27697 GNULIB_RAWMEMCHR=0; 27698 GNULIB_STPCPY=0; 27699 GNULIB_STPNCPY=0; 27700 GNULIB_STRCHRNUL=0; 27701 GNULIB_STRDUP=0; 27702 GNULIB_STRNCAT=0; 27703 GNULIB_STRNDUP=0; 27704 GNULIB_STRNLEN=0; 27705 GNULIB_STRPBRK=0; 27706 GNULIB_STRSEP=0; 27707 GNULIB_STRSTR=0; 27708 GNULIB_STRCASESTR=0; 27709 GNULIB_STRTOK_R=0; 27710 GNULIB_MBSLEN=0; 27711 GNULIB_MBSNLEN=0; 27712 GNULIB_MBSCHR=0; 27713 GNULIB_MBSRCHR=0; 27714 GNULIB_MBSSTR=0; 27715 GNULIB_MBSCASECMP=0; 27716 GNULIB_MBSNCASECMP=0; 27717 GNULIB_MBSPCASECMP=0; 27718 GNULIB_MBSCASESTR=0; 27719 GNULIB_MBSCSPN=0; 27720 GNULIB_MBSPBRK=0; 27721 GNULIB_MBSSPN=0; 27722 GNULIB_MBSSEP=0; 27723 GNULIB_MBSTOK_R=0; 27724 GNULIB_STRERROR=0; 27725 GNULIB_STRERROR_R=0; 27726 GNULIB_STRSIGNAL=0; 27727 GNULIB_STRVERSCMP=0; 27728 HAVE_MBSLEN=0; 27729 HAVE_EXPLICIT_BZERO=1; 27730 HAVE_FFSL=1; 27731 HAVE_FFSLL=1; 27732 HAVE_DECL_MEMMEM=1; 27733 HAVE_MEMPCPY=1; 27734 HAVE_DECL_MEMRCHR=1; 27735 HAVE_RAWMEMCHR=1; 27736 HAVE_STPCPY=1; 27737 HAVE_STPNCPY=1; 27738 HAVE_STRCHRNUL=1; 27739 HAVE_DECL_STRDUP=1; 27740 HAVE_DECL_STRNDUP=1; 27741 HAVE_DECL_STRNLEN=1; 27742 HAVE_STRPBRK=1; 27743 HAVE_STRSEP=1; 27744 HAVE_STRCASESTR=1; 27745 HAVE_DECL_STRTOK_R=1; 27746 HAVE_DECL_STRERROR_R=1; 27747 HAVE_DECL_STRSIGNAL=1; 27748 HAVE_STRVERSCMP=1; 27749 REPLACE_MEMCHR=0; 27750 REPLACE_MEMMEM=0; 27751 REPLACE_STPNCPY=0; 27752 REPLACE_STRCHRNUL=0; 27753 REPLACE_STRDUP=0; 27754 REPLACE_STRNCAT=0; 27755 REPLACE_STRNDUP=0; 27756 REPLACE_STRNLEN=0; 27757 REPLACE_STRSTR=0; 27758 REPLACE_STRCASESTR=0; 27759 REPLACE_STRTOK_R=0; 27760 REPLACE_STRERROR=0; 27761 REPLACE_STRERROR_R=0; 27762 REPLACE_STRSIGNAL=0; 27763 UNDEFINE_STRTOK_R=0; 27764 27765 27766 27767 27768 27769 27770 27771 27772 27773 27774 27775 27776 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it 27777 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is 27778 # irrelevant for anonymous mappings. 27779 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" 27780if test "x$ac_cv_func_mmap" = xyes; then : 27781 gl_have_mmap=yes 27782else 27783 gl_have_mmap=no 27784fi 27785 27786 27787 # Try to allow MAP_ANONYMOUS. 27788 gl_have_mmap_anonymous=no 27789 if test $gl_have_mmap = yes; then 27790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5 27791$as_echo_n "checking for MAP_ANONYMOUS... " >&6; } 27792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27793/* end confdefs.h. */ 27794 27795#include <sys/mman.h> 27796#ifdef MAP_ANONYMOUS 27797 I cannot identify this map 27798#endif 27799 27800_ACEOF 27801if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 27802 $EGREP "I cannot identify this map" >/dev/null 2>&1; then : 27803 gl_have_mmap_anonymous=yes 27804fi 27805rm -f conftest* 27806 27807 if test $gl_have_mmap_anonymous != yes; then 27808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27809/* end confdefs.h. */ 27810 27811#include <sys/mman.h> 27812#ifdef MAP_ANON 27813 I cannot identify this map 27814#endif 27815 27816_ACEOF 27817if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 27818 $EGREP "I cannot identify this map" >/dev/null 2>&1; then : 27819 27820$as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h 27821 27822 gl_have_mmap_anonymous=yes 27823fi 27824rm -f conftest* 27825 27826 fi 27827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5 27828$as_echo "$gl_have_mmap_anonymous" >&6; } 27829 if test $gl_have_mmap_anonymous = yes; then 27830 27831$as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h 27832 27833 fi 27834 fi 27835 27836 27837 27838 27839 27840 # Detect platform-specific bugs in some versions of glibc: 27841 # memchr should not dereference anything with length 0 27842 # https://bugzilla.redhat.com/show_bug.cgi?id=499689 27843 # memchr should not dereference overestimated length after a match 27844 # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737 27845 # https://sourceware.org/bugzilla/show_bug.cgi?id=10162 27846 # memchr should cast the second argument to 'unsigned char'. 27847 # This bug exists in Android 4.3. 27848 # Assume that memchr works on platforms that lack mprotect. 27849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5 27850$as_echo_n "checking whether memchr works... " >&6; } 27851if ${gl_cv_func_memchr_works+:} false; then : 27852 $as_echo_n "(cached) " >&6 27853else 27854 if test "$cross_compiling" = yes; then : 27855 case "$host_os" in 27856 # Guess no on Android. 27857 linux*-android*) gl_cv_func_memchr_works="guessing no" ;; 27858 # Guess yes on native Windows. 27859 mingw*) gl_cv_func_memchr_works="guessing yes" ;; 27860 # If we don't know, obey --enable-cross-guesses. 27861 *) gl_cv_func_memchr_works="$gl_cross_guess_normal" ;; 27862 esac 27863 27864else 27865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27866/* end confdefs.h. */ 27867 27868#include <string.h> 27869#if HAVE_SYS_MMAN_H 27870# include <fcntl.h> 27871# include <unistd.h> 27872# include <sys/types.h> 27873# include <sys/mman.h> 27874# ifndef MAP_FILE 27875# define MAP_FILE 0 27876# endif 27877#endif 27878 27879int 27880main () 27881{ 27882 27883 int result = 0; 27884 char *fence = NULL; 27885#if HAVE_SYS_MMAN_H && HAVE_MPROTECT 27886# if HAVE_MAP_ANONYMOUS 27887 const int flags = MAP_ANONYMOUS | MAP_PRIVATE; 27888 const int fd = -1; 27889# else /* !HAVE_MAP_ANONYMOUS */ 27890 const int flags = MAP_FILE | MAP_PRIVATE; 27891 int fd = open ("/dev/zero", O_RDONLY, 0666); 27892 if (fd >= 0) 27893# endif 27894 { 27895 int pagesize = getpagesize (); 27896 char *two_pages = 27897 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE, 27898 flags, fd, 0); 27899 if (two_pages != (char *)(-1) 27900 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0) 27901 fence = two_pages + pagesize; 27902 } 27903#endif 27904 if (fence) 27905 { 27906 if (memchr (fence, 0, 0)) 27907 result |= 1; 27908 strcpy (fence - 9, "12345678"); 27909 if (memchr (fence - 9, 0, 79) != fence - 1) 27910 result |= 2; 27911 if (memchr (fence - 1, 0, 3) != fence - 1) 27912 result |= 4; 27913 } 27914 /* Test against bug on Android 4.3. */ 27915 { 27916 char input[3]; 27917 input[0] = 'a'; 27918 input[1] = 'b'; 27919 input[2] = 'c'; 27920 if (memchr (input, 0x789abc00 | 'b', 3) != input + 1) 27921 result |= 8; 27922 } 27923 return result; 27924 27925 ; 27926 return 0; 27927} 27928_ACEOF 27929if ac_fn_c_try_run "$LINENO"; then : 27930 gl_cv_func_memchr_works=yes 27931else 27932 gl_cv_func_memchr_works=no 27933fi 27934rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 27935 conftest.$ac_objext conftest.beam conftest.$ac_ext 27936fi 27937 27938 27939fi 27940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5 27941$as_echo "$gl_cv_func_memchr_works" >&6; } 27942 case "$gl_cv_func_memchr_works" in 27943 *yes) ;; 27944 *) REPLACE_MEMCHR=1 ;; 27945 esac 27946 27947 27948 27949 27950 27951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5 27952$as_echo_n "checking for O_CLOEXEC... " >&6; } 27953if ${gl_cv_macro_O_CLOEXEC+:} false; then : 27954 $as_echo_n "(cached) " >&6 27955else 27956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27957/* end confdefs.h. */ 27958#include <fcntl.h> 27959 #ifndef O_CLOEXEC 27960 choke me; 27961 #endif 27962 27963int 27964main () 27965{ 27966return O_CLOEXEC; 27967 ; 27968 return 0; 27969} 27970_ACEOF 27971if ac_fn_c_try_compile "$LINENO"; then : 27972 gl_cv_macro_O_CLOEXEC=yes 27973else 27974 gl_cv_macro_O_CLOEXEC=no 27975fi 27976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27977fi 27978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_macro_O_CLOEXEC" >&5 27979$as_echo "$gl_cv_macro_O_CLOEXEC" >&6; } 27980 27981 27982 27983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5 27984$as_echo_n "checking for promoted mode_t type... " >&6; } 27985if ${gl_cv_promoted_mode_t+:} false; then : 27986 $as_echo_n "(cached) " >&6 27987else 27988 27989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27990/* end confdefs.h. */ 27991#include <sys/types.h> 27992int 27993main () 27994{ 27995typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1]; 27996 ; 27997 return 0; 27998} 27999_ACEOF 28000if ac_fn_c_try_compile "$LINENO"; then : 28001 gl_cv_promoted_mode_t='int' 28002else 28003 gl_cv_promoted_mode_t='mode_t' 28004fi 28005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28006 28007fi 28008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5 28009$as_echo "$gl_cv_promoted_mode_t" >&6; } 28010 28011cat >>confdefs.h <<_ACEOF 28012#define PROMOTED_MODE_T $gl_cv_promoted_mode_t 28013_ACEOF 28014 28015 28016 28017 GNULIB_PTHREAD_SIGMASK=0; 28018 GNULIB_RAISE=0; 28019 GNULIB_SIGNAL_H_SIGPIPE=0; 28020 GNULIB_SIGPROCMASK=0; 28021 GNULIB_SIGACTION=0; 28022 HAVE_POSIX_SIGNALBLOCKING=1; 28023 HAVE_PTHREAD_SIGMASK=1; 28024 HAVE_RAISE=1; 28025 HAVE_SIGSET_T=1; 28026 HAVE_SIGINFO_T=1; 28027 HAVE_SIGACTION=1; 28028 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1; 28029 28030 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1; 28031 28032 HAVE_SIGHANDLER_T=1; 28033 REPLACE_PTHREAD_SIGMASK=0; 28034 REPLACE_RAISE=0; 28035 28036 28037 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" " 28038 #include <signal.h> 28039 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */ 28040 #include <sys/types.h> 28041 28042" 28043if test "x$ac_cv_type_sigset_t" = xyes; then : 28044 28045cat >>confdefs.h <<_ACEOF 28046#define HAVE_SIGSET_T 1 28047_ACEOF 28048 28049gl_cv_type_sigset_t=yes 28050else 28051 gl_cv_type_sigset_t=no 28052fi 28053 28054 if test $gl_cv_type_sigset_t != yes; then 28055 HAVE_SIGSET_T=0 28056 fi 28057 28058 28059 28060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPIPE" >&5 28061$as_echo_n "checking for SIGPIPE... " >&6; } 28062if ${gl_cv_header_signal_h_SIGPIPE+:} false; then : 28063 $as_echo_n "(cached) " >&6 28064else 28065 28066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28067/* end confdefs.h. */ 28068 28069#include <signal.h> 28070#if !defined SIGPIPE 28071booboo 28072#endif 28073 28074_ACEOF 28075if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 28076 $EGREP "booboo" >/dev/null 2>&1; then : 28077 gl_cv_header_signal_h_SIGPIPE=no 28078else 28079 gl_cv_header_signal_h_SIGPIPE=yes 28080fi 28081rm -f conftest* 28082 28083 28084fi 28085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_signal_h_SIGPIPE" >&5 28086$as_echo "$gl_cv_header_signal_h_SIGPIPE" >&6; } 28087 28088 28089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library path variable" >&5 28090$as_echo_n "checking for shared library path variable... " >&6; } 28091if ${acl_cv_libpath+:} false; then : 28092 $as_echo_n "(cached) " >&6 28093else 28094 28095 LD="$LD" \ 28096 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh 28097 . ./conftest.sh 28098 rm -f ./conftest.sh 28099 acl_cv_libpath=${acl_cv_shlibpath_var:-none} 28100 28101fi 28102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libpath" >&5 28103$as_echo "$acl_cv_libpath" >&6; } 28104 shlibpath_var="$acl_cv_shlibpath_var" 28105 28106 28107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate relocatable installation" >&5 28108$as_echo_n "checking whether to activate relocatable installation... " >&6; } 28109 # Check whether --enable-relocatable was given. 28110if test "${enable_relocatable+set}" = set; then : 28111 enableval=$enable_relocatable; if test "$enableval" != no; then 28112 RELOCATABLE=yes 28113 else 28114 RELOCATABLE=no 28115 fi 28116 28117else 28118 RELOCATABLE=no 28119fi 28120 28121 28122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RELOCATABLE" >&5 28123$as_echo "$RELOCATABLE" >&6; } 28124 28125 28126 28127 if test "X$prefix" = "XNONE"; then 28128 reloc_final_prefix="$ac_default_prefix" 28129 else 28130 reloc_final_prefix="$prefix" 28131 fi 28132 28133cat >>confdefs.h <<_ACEOF 28134#define INSTALLPREFIX "${reloc_final_prefix}" 28135_ACEOF 28136 28137 if test $RELOCATABLE = yes; then 28138 28139$as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h 28140 28141 fi 28142 28143 28144 28145 28146 28147 28148 28149 28150 is_noop=no 28151 use_elf_origin_trick=no 28152 use_macos_tools=no 28153 use_wrapper=no 28154 if test $RELOCATABLE = yes; then 28155 # --enable-relocatable implies --disable-rpath 28156 enable_rpath=no 28157 for ac_header in mach-o/dyld.h 28158do : 28159 ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default" 28160if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then : 28161 cat >>confdefs.h <<_ACEOF 28162#define HAVE_MACH_O_DYLD_H 1 28163_ACEOF 28164 28165fi 28166 28167done 28168 28169 for ac_func in _NSGetExecutablePath 28170do : 28171 ac_fn_c_check_func "$LINENO" "_NSGetExecutablePath" "ac_cv_func__NSGetExecutablePath" 28172if test "x$ac_cv_func__NSGetExecutablePath" = xyes; then : 28173 cat >>confdefs.h <<_ACEOF 28174#define HAVE__NSGETEXECUTABLEPATH 1 28175_ACEOF 28176 28177fi 28178done 28179 28180 case "$host_os" in 28181 mingw*) is_noop=yes ;; 28182 # For the platforms that support $ORIGIN, see 28183 # <https://lekensteyn.nl/rpath.html>. 28184 # glibc systems, Linux with musl libc: yes. Android: no. 28185 linux*-android*) ;; 28186 linux* | kfreebsd*) use_elf_origin_trick=yes ;; 28187 # Hurd: <https://lists.gnu.org/r/bug-hurd/2019-02/msg00049.html> 28188 # only after the glibc commit from 2018-01-08 28189 # <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=311ba8dc4416467947eff2ab327854f124226309> 28190 gnu*) 28191 # Test for a glibc version >= 2.27. 28192 for ac_func in copy_file_range 28193do : 28194 ac_fn_c_check_func "$LINENO" "copy_file_range" "ac_cv_func_copy_file_range" 28195if test "x$ac_cv_func_copy_file_range" = xyes; then : 28196 cat >>confdefs.h <<_ACEOF 28197#define HAVE_COPY_FILE_RANGE 1 28198_ACEOF 28199 28200fi 28201done 28202 28203 if test $ac_cv_func_copy_file_range = yes; then 28204 use_elf_origin_trick=yes 28205 fi 28206 ;; 28207 # FreeBSD >= 7.3, DragonFly >= 3.0: yes. 28208 freebsd | freebsd[1-7] | freebsd[1-6].* | freebsd7.[0-2]) ;; 28209 dragonfly | dragonfly[1-2] | dragonfly[1-2].*) ;; 28210 freebsd* | dragonfly*) use_elf_origin_trick=yes ;; 28211 # NetBSD >= 8.0: yes. 28212 netbsd | netbsd[1-7] | netbsd[1-7].*) ;; 28213 netbsdelf | netbsdelf[1-7] | netbsdelf[1-7].*) ;; 28214 netbsd*) use_elf_origin_trick=yes ;; 28215 # OpenBSD >= 5.4: yes. 28216 openbsd | openbsd[1-5] | openbsd[1-4].* | openbsd5.[0-3]) ;; 28217 openbsd*) use_elf_origin_trick=yes ;; 28218 # Solaris >= 10: yes. 28219 solaris | solaris2.[1-9] | solaris2.[1-9].*) ;; 28220 solaris*) use_elf_origin_trick=yes ;; 28221 # Haiku: yes. 28222 haiku*) use_elf_origin_trick=yes ;; 28223 # On Mac OS X 10.4 or newer, use Mac OS X tools. See 28224 # <https://wincent.com/wiki/@executable_path,_@load_path_and_@rpath>. 28225 darwin | darwin[1-7].*) ;; 28226 darwin*) use_macos_tools=yes ;; 28227 esac 28228 if test $is_noop = yes; then 28229 RELOCATABLE_LDFLAGS=: 28230 28231 else 28232 if test $use_elf_origin_trick = yes || test $use_macos_tools = yes; then 28233 case "$ac_aux_dir" in 28234 /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;; 28235 *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;; 28236 esac 28237 RELOCATABLE_LDFLAGS="\"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\"" 28238 28239 if test $use_macos_tools = yes; then 28240 case "$ac_aux_dir" in 28241 /*) LIBTOOL="${CONFIG_SHELL-$SHELL} $ac_aux_dir/libtool-reloc $LIBTOOL" ;; 28242 *) LIBTOOL="${CONFIG_SHELL-$SHELL} \$(top_builddir)/$ac_aux_dir/libtool-reloc $LIBTOOL" ;; 28243 esac 28244 fi 28245 else 28246 use_wrapper=yes 28247 INSTALL_PROGRAM_ENV="RELOC_LIBRARY_PATH_VAR=\"$shlibpath_var\" RELOC_LIBRARY_PATH_VALUE=\"\$(RELOCATABLE_LIBRARY_PATH)\" RELOC_PREFIX=\"\$(prefix)\" RELOC_DESTDIR=\"\$(DESTDIR)\" RELOC_COMPILE_COMMAND=\"\$(CC) \$(CPPFLAGS) \$(CFLAGS) \$(LDFLAGS)\" RELOC_SRCDIR=\"\$(RELOCATABLE_SRC_DIR)\" RELOC_BUILDDIR=\"\$(RELOCATABLE_BUILD_DIR)\" RELOC_CONFIG_H_DIR=\"\$(RELOCATABLE_CONFIG_H_DIR)\" RELOC_EXEEXT=\"\$(EXEEXT)\" RELOC_STRIP_PROG=\"\$(RELOCATABLE_STRIP)\" RELOC_INSTALL_PROG=\"$INSTALL_PROGRAM\"" 28248 28249 case "$ac_aux_dir" in 28250 /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;; 28251 *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;; 28252 esac 28253 fi 28254 fi 28255 fi 28256 if test $is_noop = yes || test $use_elf_origin_trick = yes || test $use_macos_tools = yes; then 28257 RELOCATABLE_VIA_LD_TRUE= 28258 RELOCATABLE_VIA_LD_FALSE='#' 28259else 28260 RELOCATABLE_VIA_LD_TRUE='#' 28261 RELOCATABLE_VIA_LD_FALSE= 28262fi 28263 28264 if test $use_wrapper = yes; then 28265 RELOCATABLE_VIA_WRAPPER_TRUE= 28266 RELOCATABLE_VIA_WRAPPER_FALSE='#' 28267else 28268 RELOCATABLE_VIA_WRAPPER_TRUE='#' 28269 RELOCATABLE_VIA_WRAPPER_FALSE= 28270fi 28271 28272 28273 28274 28275 28276 28277 28278 28279 RELOCATABLE_STRIP=':' 28280 28281 28282ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default" 28283if test "x$ac_cv_have_decl_setenv" = xyes; then : 28284 ac_have_decl=1 28285else 28286 ac_have_decl=0 28287fi 28288 28289cat >>confdefs.h <<_ACEOF 28290#define HAVE_DECL_SETENV $ac_have_decl 28291_ACEOF 28292 28293 28294 28295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 28296$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 28297if ${ac_cv_type_uid_t+:} false; then : 28298 $as_echo_n "(cached) " >&6 28299else 28300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28301/* end confdefs.h. */ 28302#include <sys/types.h> 28303 28304_ACEOF 28305if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 28306 $EGREP "uid_t" >/dev/null 2>&1; then : 28307 ac_cv_type_uid_t=yes 28308else 28309 ac_cv_type_uid_t=no 28310fi 28311rm -f conftest* 28312 28313fi 28314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 28315$as_echo "$ac_cv_type_uid_t" >&6; } 28316if test $ac_cv_type_uid_t = no; then 28317 28318$as_echo "#define uid_t int" >>confdefs.h 28319 28320 28321$as_echo "#define gid_t int" >>confdefs.h 28322 28323fi 28324 28325 28326 GNULIB_DPRINTF=0; 28327 GNULIB_FCLOSE=0; 28328 GNULIB_FDOPEN=0; 28329 GNULIB_FFLUSH=0; 28330 GNULIB_FGETC=0; 28331 GNULIB_FGETS=0; 28332 GNULIB_FOPEN=0; 28333 GNULIB_FPRINTF=0; 28334 GNULIB_FPRINTF_POSIX=0; 28335 GNULIB_FPURGE=0; 28336 GNULIB_FPUTC=0; 28337 GNULIB_FPUTS=0; 28338 GNULIB_FREAD=0; 28339 GNULIB_FREOPEN=0; 28340 GNULIB_FSCANF=0; 28341 GNULIB_FSEEK=0; 28342 GNULIB_FSEEKO=0; 28343 GNULIB_FTELL=0; 28344 GNULIB_FTELLO=0; 28345 GNULIB_FWRITE=0; 28346 GNULIB_GETC=0; 28347 GNULIB_GETCHAR=0; 28348 GNULIB_GETDELIM=0; 28349 GNULIB_GETLINE=0; 28350 GNULIB_OBSTACK_PRINTF=0; 28351 GNULIB_OBSTACK_PRINTF_POSIX=0; 28352 GNULIB_PCLOSE=0; 28353 GNULIB_PERROR=0; 28354 GNULIB_POPEN=0; 28355 GNULIB_PRINTF=0; 28356 GNULIB_PRINTF_POSIX=0; 28357 GNULIB_PUTC=0; 28358 GNULIB_PUTCHAR=0; 28359 GNULIB_PUTS=0; 28360 GNULIB_REMOVE=0; 28361 GNULIB_RENAME=0; 28362 GNULIB_RENAMEAT=0; 28363 GNULIB_SCANF=0; 28364 GNULIB_SNPRINTF=0; 28365 GNULIB_SPRINTF_POSIX=0; 28366 GNULIB_STDIO_H_NONBLOCKING=0; 28367 GNULIB_STDIO_H_SIGPIPE=0; 28368 GNULIB_TMPFILE=0; 28369 GNULIB_VASPRINTF=0; 28370 GNULIB_VFSCANF=0; 28371 GNULIB_VSCANF=0; 28372 GNULIB_VDPRINTF=0; 28373 GNULIB_VFPRINTF=0; 28374 GNULIB_VFPRINTF_POSIX=0; 28375 GNULIB_VPRINTF=0; 28376 GNULIB_VPRINTF_POSIX=0; 28377 GNULIB_VSNPRINTF=0; 28378 GNULIB_VSPRINTF_POSIX=0; 28379 HAVE_DECL_FPURGE=1; 28380 HAVE_DECL_FSEEKO=1; 28381 HAVE_DECL_FTELLO=1; 28382 HAVE_DECL_GETDELIM=1; 28383 HAVE_DECL_GETLINE=1; 28384 HAVE_DECL_OBSTACK_PRINTF=1; 28385 HAVE_DECL_SNPRINTF=1; 28386 HAVE_DECL_VSNPRINTF=1; 28387 HAVE_DPRINTF=1; 28388 HAVE_FSEEKO=1; 28389 HAVE_FTELLO=1; 28390 HAVE_PCLOSE=1; 28391 HAVE_POPEN=1; 28392 HAVE_RENAMEAT=1; 28393 HAVE_VASPRINTF=1; 28394 HAVE_VDPRINTF=1; 28395 REPLACE_DPRINTF=0; 28396 REPLACE_FCLOSE=0; 28397 REPLACE_FDOPEN=0; 28398 REPLACE_FFLUSH=0; 28399 REPLACE_FOPEN=0; 28400 REPLACE_FPRINTF=0; 28401 REPLACE_FPURGE=0; 28402 REPLACE_FREOPEN=0; 28403 REPLACE_FSEEK=0; 28404 REPLACE_FSEEKO=0; 28405 REPLACE_FTELL=0; 28406 REPLACE_FTELLO=0; 28407 REPLACE_GETDELIM=0; 28408 REPLACE_GETLINE=0; 28409 REPLACE_OBSTACK_PRINTF=0; 28410 REPLACE_PERROR=0; 28411 REPLACE_POPEN=0; 28412 REPLACE_PRINTF=0; 28413 REPLACE_REMOVE=0; 28414 REPLACE_RENAME=0; 28415 REPLACE_RENAMEAT=0; 28416 REPLACE_SNPRINTF=0; 28417 REPLACE_SPRINTF=0; 28418 REPLACE_STDIO_READ_FUNCS=0; 28419 REPLACE_STDIO_WRITE_FUNCS=0; 28420 REPLACE_TMPFILE=0; 28421 REPLACE_VASPRINTF=0; 28422 REPLACE_VDPRINTF=0; 28423 REPLACE_VFPRINTF=0; 28424 REPLACE_VPRINTF=0; 28425 REPLACE_VSNPRINTF=0; 28426 REPLACE_VSPRINTF=0; 28427 28428 28429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28430/* end confdefs.h. */ 28431 28432#ifdef _MSC_VER 28433MicrosoftCompiler 28434#endif 28435 28436_ACEOF 28437if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 28438 $EGREP "MicrosoftCompiler" >/dev/null 2>&1; then : 28439 gl_asmext='asm' 28440 gl_c_asm_opt='-c -Fa' 28441 28442else 28443 gl_asmext='s' 28444 gl_c_asm_opt='-S' 28445 28446fi 28447rm -f conftest* 28448 28449 28450 28451 28452 28453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C symbols are prefixed with underscore at the linker level" >&5 28454$as_echo_n "checking whether C symbols are prefixed with underscore at the linker level... " >&6; } 28455if ${gl_cv_prog_as_underscore+:} false; then : 28456 $as_echo_n "(cached) " >&6 28457else 28458 cat > conftest.c <<EOF 28459#ifdef __cplusplus 28460extern "C" int foo (void); 28461#endif 28462int foo(void) { return 0; } 28463EOF 28464 # Look for the assembly language name in the .s file. 28465 { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $gl_c_asm_opt conftest.c' 28466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 28467 (eval $ac_try) 2>&5 28468 ac_status=$? 28469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28470 test $ac_status = 0; }; } >/dev/null 2>&1 28471 if LC_ALL=C $EGREP '(^|[^a-zA-Z0-9_])_foo([^a-zA-Z0-9_]|$)' conftest.$gl_asmext >/dev/null; then 28472 gl_cv_prog_as_underscore=yes 28473 else 28474 gl_cv_prog_as_underscore=no 28475 fi 28476 rm -f conftest* 28477 28478fi 28479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_as_underscore" >&5 28480$as_echo "$gl_cv_prog_as_underscore" >&6; } 28481 if test $gl_cv_prog_as_underscore = yes; then 28482 USER_LABEL_PREFIX=_ 28483 else 28484 USER_LABEL_PREFIX= 28485 fi 28486 28487cat >>confdefs.h <<_ACEOF 28488#define USER_LABEL_PREFIX $USER_LABEL_PREFIX 28489_ACEOF 28490 28491 ASM_SYMBOL_PREFIX='"'${USER_LABEL_PREFIX}'"' 28492 28493 28494 28495 28496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 28497$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 28498if ${ac_cv_header_stdbool_h+:} false; then : 28499 $as_echo_n "(cached) " >&6 28500else 28501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28502/* end confdefs.h. */ 28503 28504 #include <stdbool.h> 28505 28506 #ifdef __cplusplus 28507 typedef bool Bool; 28508 #else 28509 typedef _Bool Bool; 28510 #ifndef bool 28511 "error: bool is not defined" 28512 #endif 28513 #ifndef false 28514 "error: false is not defined" 28515 #endif 28516 #if false 28517 "error: false is not 0" 28518 #endif 28519 #ifndef true 28520 "error: true is not defined" 28521 #endif 28522 #if true != 1 28523 "error: true is not 1" 28524 #endif 28525 #endif 28526 28527 #ifndef __bool_true_false_are_defined 28528 "error: __bool_true_false_are_defined is not defined" 28529 #endif 28530 28531 struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s; 28532 28533 char a[true == 1 ? 1 : -1]; 28534 char b[false == 0 ? 1 : -1]; 28535 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 28536 char d[(bool) 0.5 == true ? 1 : -1]; 28537 /* See body of main program for 'e'. */ 28538 char f[(Bool) 0.0 == false ? 1 : -1]; 28539 char g[true]; 28540 char h[sizeof (Bool)]; 28541 char i[sizeof s.t]; 28542 enum { j = false, k = true, l = false * true, m = true * 256 }; 28543 /* The following fails for 28544 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 28545 Bool n[m]; 28546 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 28547 char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 28548 /* Catch a bug in an HP-UX C compiler. See 28549 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 28550 https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html 28551 */ 28552 Bool q = true; 28553 Bool *pq = &q; 28554 bool *qq = &q; 28555 28556int 28557main () 28558{ 28559 28560 bool e = &s; 28561 *pq |= q; *pq |= ! q; 28562 *qq |= q; *qq |= ! q; 28563 /* Refer to every declared value, to avoid compiler optimizations. */ 28564 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 28565 + !m + !n + !o + !p + !q + !pq + !qq); 28566 28567 ; 28568 return 0; 28569} 28570_ACEOF 28571if ac_fn_c_try_compile "$LINENO"; then : 28572 ac_cv_header_stdbool_h=yes 28573else 28574 ac_cv_header_stdbool_h=no 28575fi 28576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28577fi 28578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 28579$as_echo "$ac_cv_header_stdbool_h" >&6; } 28580 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 28581if test "x$ac_cv_type__Bool" = xyes; then : 28582 28583cat >>confdefs.h <<_ACEOF 28584#define HAVE__BOOL 1 28585_ACEOF 28586 28587 28588fi 28589 28590 28591 28592 REPLACE_STRERROR_0=0 28593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5 28594$as_echo_n "checking whether strerror(0) succeeds... " >&6; } 28595if ${gl_cv_func_strerror_0_works+:} false; then : 28596 $as_echo_n "(cached) " >&6 28597else 28598 if test "$cross_compiling" = yes; then : 28599 case "$host_os" in 28600 # Guess yes on glibc systems. 28601 *-gnu* | gnu*) gl_cv_func_strerror_0_works="guessing yes" ;; 28602 # Guess yes on musl systems. 28603 *-musl*) gl_cv_func_strerror_0_works="guessing yes" ;; 28604 # Guess yes on native Windows. 28605 mingw*) gl_cv_func_strerror_0_works="guessing yes" ;; 28606 # If we don't know, obey --enable-cross-guesses. 28607 *) gl_cv_func_strerror_0_works="$gl_cross_guess_normal" ;; 28608 esac 28609 28610else 28611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28612/* end confdefs.h. */ 28613#include <string.h> 28614 #include <errno.h> 28615 28616int 28617main () 28618{ 28619int result = 0; 28620 char *str; 28621 errno = 0; 28622 str = strerror (0); 28623 if (!*str) result |= 1; 28624 if (errno) result |= 2; 28625 if (strstr (str, "nknown") || strstr (str, "ndefined")) 28626 result |= 4; 28627 return result; 28628 ; 28629 return 0; 28630} 28631_ACEOF 28632if ac_fn_c_try_run "$LINENO"; then : 28633 gl_cv_func_strerror_0_works=yes 28634else 28635 gl_cv_func_strerror_0_works=no 28636fi 28637rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 28638 conftest.$ac_objext conftest.beam conftest.$ac_ext 28639fi 28640 28641 28642fi 28643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5 28644$as_echo "$gl_cv_func_strerror_0_works" >&6; } 28645 case "$gl_cv_func_strerror_0_works" in 28646 *yes) ;; 28647 *) 28648 REPLACE_STRERROR_0=1 28649 28650$as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h 28651 28652 ;; 28653 esac 28654 28655 28656 28657 28658 28659 28660 28661 28662 28663 28664 28665 if test $gl_cv_have_include_next = yes; then 28666 gl_cv_next_string_h='<'string.h'>' 28667 else 28668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5 28669$as_echo_n "checking absolute name of <string.h>... " >&6; } 28670if ${gl_cv_next_string_h+:} false; then : 28671 $as_echo_n "(cached) " >&6 28672else 28673 28674 28675 28676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28677/* end confdefs.h. */ 28678#include <string.h> 28679_ACEOF 28680 case "$host_os" in 28681 aix*) gl_absname_cpp="$ac_cpp -C" ;; 28682 *) gl_absname_cpp="$ac_cpp" ;; 28683 esac 28684 28685 case "$host_os" in 28686 mingw*) 28687 gl_dirsep_regex='[/\\]' 28688 ;; 28689 *) 28690 gl_dirsep_regex='\/' 28691 ;; 28692 esac 28693 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 28694 gl_header_literal_regex=`echo 'string.h' \ 28695 | sed -e "$gl_make_literal_regex_sed"` 28696 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 28697 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 28698 s|^/[^/]|//&| 28699 p 28700 q 28701 }' 28702 28703 gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 28704 sed -n "$gl_absolute_header_sed"` 28705 28706 gl_header=$gl_cv_absolute_string_h 28707 gl_cv_next_string_h='"'$gl_header'"' 28708 28709 28710fi 28711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5 28712$as_echo "$gl_cv_next_string_h" >&6; } 28713 fi 28714 NEXT_STRING_H=$gl_cv_next_string_h 28715 28716 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 28717 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 28718 gl_next_as_first_directive='<'string.h'>' 28719 else 28720 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 28721 gl_next_as_first_directive=$gl_cv_next_string_h 28722 fi 28723 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive 28724 28725 28726 28727 28728 28729 28730 28731 28732 28733 28734 28735ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default" 28736if test "x$ac_cv_have_decl_strnlen" = xyes; then : 28737 ac_have_decl=1 28738else 28739 ac_have_decl=0 28740fi 28741 28742cat >>confdefs.h <<_ACEOF 28743#define HAVE_DECL_STRNLEN $ac_have_decl 28744_ACEOF 28745 28746 28747 28748 28749 28750 28751 28752 28753 28754 28755 28756$as_echo "#define _USE_STD_STAT 1" >>confdefs.h 28757 28758 28759 28760 28761 28762 28763 28764 28765 28766 28767 28768 if test $gl_cv_have_include_next = yes; then 28769 gl_cv_next_sys_types_h='<'sys/types.h'>' 28770 else 28771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5 28772$as_echo_n "checking absolute name of <sys/types.h>... " >&6; } 28773if ${gl_cv_next_sys_types_h+:} false; then : 28774 $as_echo_n "(cached) " >&6 28775else 28776 28777 28778 28779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28780/* end confdefs.h. */ 28781#include <sys/types.h> 28782_ACEOF 28783 case "$host_os" in 28784 aix*) gl_absname_cpp="$ac_cpp -C" ;; 28785 *) gl_absname_cpp="$ac_cpp" ;; 28786 esac 28787 28788 case "$host_os" in 28789 mingw*) 28790 gl_dirsep_regex='[/\\]' 28791 ;; 28792 *) 28793 gl_dirsep_regex='\/' 28794 ;; 28795 esac 28796 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 28797 gl_header_literal_regex=`echo 'sys/types.h' \ 28798 | sed -e "$gl_make_literal_regex_sed"` 28799 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 28800 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 28801 s|^/[^/]|//&| 28802 p 28803 q 28804 }' 28805 28806 gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 28807 sed -n "$gl_absolute_header_sed"` 28808 28809 gl_header=$gl_cv_absolute_sys_types_h 28810 gl_cv_next_sys_types_h='"'$gl_header'"' 28811 28812 28813fi 28814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5 28815$as_echo "$gl_cv_next_sys_types_h" >&6; } 28816 fi 28817 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h 28818 28819 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 28820 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 28821 gl_next_as_first_directive='<'sys/types.h'>' 28822 else 28823 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 28824 gl_next_as_first_directive=$gl_cv_next_sys_types_h 28825 fi 28826 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive 28827 28828 28829 28830 28831 28832 28833 28834 28835 28836 28837 28838 28839 WINDOWS_STAT_INODES=0 28840 28841 28842 28843 28844 GNULIB_CTIME=0; 28845 GNULIB_MKTIME=0; 28846 GNULIB_LOCALTIME=0; 28847 GNULIB_NANOSLEEP=0; 28848 GNULIB_STRFTIME=0; 28849 GNULIB_STRPTIME=0; 28850 GNULIB_TIMEGM=0; 28851 GNULIB_TIME_R=0; 28852 GNULIB_TIME_RZ=0; 28853 GNULIB_TZSET=0; 28854 HAVE_DECL_LOCALTIME_R=1; 28855 HAVE_NANOSLEEP=1; 28856 HAVE_STRPTIME=1; 28857 HAVE_TIMEGM=1; 28858 HAVE_TZSET=1; 28859 HAVE_TIMEZONE_T=0; 28860 REPLACE_CTIME=GNULIB_PORTCHECK; 28861 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK; 28862 REPLACE_MKTIME=GNULIB_PORTCHECK; 28863 REPLACE_NANOSLEEP=GNULIB_PORTCHECK; 28864 REPLACE_STRFTIME=GNULIB_PORTCHECK; 28865 REPLACE_TIMEGM=GNULIB_PORTCHECK; 28866 REPLACE_TZSET=GNULIB_PORTCHECK; 28867 28868 : ${GNULIB_GETTIMEOFDAY=0}; 28869 REPLACE_GMTIME=0; 28870 REPLACE_LOCALTIME=0; 28871 28872 28873 28874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5 28875$as_echo_n "checking for struct timespec in <time.h>... " >&6; } 28876if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then : 28877 $as_echo_n "(cached) " >&6 28878else 28879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28880/* end confdefs.h. */ 28881#include <time.h> 28882 28883int 28884main () 28885{ 28886static struct timespec x; x.tv_sec = x.tv_nsec; 28887 ; 28888 return 0; 28889} 28890_ACEOF 28891if ac_fn_c_try_compile "$LINENO"; then : 28892 gl_cv_sys_struct_timespec_in_time_h=yes 28893else 28894 gl_cv_sys_struct_timespec_in_time_h=no 28895fi 28896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28897fi 28898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5 28899$as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; } 28900 28901 TIME_H_DEFINES_STRUCT_TIMESPEC=0 28902 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0 28903 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0 28904 UNISTD_H_DEFINES_STRUCT_TIMESPEC=0 28905 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then 28906 TIME_H_DEFINES_STRUCT_TIMESPEC=1 28907 else 28908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5 28909$as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; } 28910if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then : 28911 $as_echo_n "(cached) " >&6 28912else 28913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28914/* end confdefs.h. */ 28915#include <sys/time.h> 28916 28917int 28918main () 28919{ 28920static struct timespec x; x.tv_sec = x.tv_nsec; 28921 ; 28922 return 0; 28923} 28924_ACEOF 28925if ac_fn_c_try_compile "$LINENO"; then : 28926 gl_cv_sys_struct_timespec_in_sys_time_h=yes 28927else 28928 gl_cv_sys_struct_timespec_in_sys_time_h=no 28929fi 28930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28931fi 28932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5 28933$as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; } 28934 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then 28935 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1 28936 else 28937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5 28938$as_echo_n "checking for struct timespec in <pthread.h>... " >&6; } 28939if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then : 28940 $as_echo_n "(cached) " >&6 28941else 28942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28943/* end confdefs.h. */ 28944#include <pthread.h> 28945 28946int 28947main () 28948{ 28949static struct timespec x; x.tv_sec = x.tv_nsec; 28950 ; 28951 return 0; 28952} 28953_ACEOF 28954if ac_fn_c_try_compile "$LINENO"; then : 28955 gl_cv_sys_struct_timespec_in_pthread_h=yes 28956else 28957 gl_cv_sys_struct_timespec_in_pthread_h=no 28958fi 28959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28960fi 28961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5 28962$as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; } 28963 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then 28964 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1 28965 else 28966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5 28967$as_echo_n "checking for struct timespec in <unistd.h>... " >&6; } 28968if ${gl_cv_sys_struct_timespec_in_unistd_h+:} false; then : 28969 $as_echo_n "(cached) " >&6 28970else 28971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28972/* end confdefs.h. */ 28973#include <unistd.h> 28974 28975int 28976main () 28977{ 28978static struct timespec x; x.tv_sec = x.tv_nsec; 28979 ; 28980 return 0; 28981} 28982_ACEOF 28983if ac_fn_c_try_compile "$LINENO"; then : 28984 gl_cv_sys_struct_timespec_in_unistd_h=yes 28985else 28986 gl_cv_sys_struct_timespec_in_unistd_h=no 28987fi 28988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28989fi 28990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5 28991$as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; } 28992 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then 28993 UNISTD_H_DEFINES_STRUCT_TIMESPEC=1 28994 fi 28995 fi 28996 fi 28997 fi 28998 28999 29000 29001 29002 29003 29004 29005 29006 29007 29008 29009 29010 29011 29012 29013 29014 if test $gl_cv_have_include_next = yes; then 29015 gl_cv_next_time_h='<'time.h'>' 29016 else 29017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5 29018$as_echo_n "checking absolute name of <time.h>... " >&6; } 29019if ${gl_cv_next_time_h+:} false; then : 29020 $as_echo_n "(cached) " >&6 29021else 29022 29023 29024 29025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29026/* end confdefs.h. */ 29027#include <time.h> 29028_ACEOF 29029 case "$host_os" in 29030 aix*) gl_absname_cpp="$ac_cpp -C" ;; 29031 *) gl_absname_cpp="$ac_cpp" ;; 29032 esac 29033 29034 case "$host_os" in 29035 mingw*) 29036 gl_dirsep_regex='[/\\]' 29037 ;; 29038 *) 29039 gl_dirsep_regex='\/' 29040 ;; 29041 esac 29042 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 29043 gl_header_literal_regex=`echo 'time.h' \ 29044 | sed -e "$gl_make_literal_regex_sed"` 29045 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 29046 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 29047 s|^/[^/]|//&| 29048 p 29049 q 29050 }' 29051 29052 gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 29053 sed -n "$gl_absolute_header_sed"` 29054 29055 gl_header=$gl_cv_absolute_time_h 29056 gl_cv_next_time_h='"'$gl_header'"' 29057 29058 29059fi 29060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5 29061$as_echo "$gl_cv_next_time_h" >&6; } 29062 fi 29063 NEXT_TIME_H=$gl_cv_next_time_h 29064 29065 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 29066 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 29067 gl_next_as_first_directive='<'time.h'>' 29068 else 29069 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 29070 gl_next_as_first_directive=$gl_cv_next_time_h 29071 fi 29072 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive 29073 29074 29075 29076 29077 29078 29079 29080 29081 29082 29083 29084 29085 29086 29087gl_libunistring_sed_extract_major='/^[0-9]/{s/^\([0-9]*\).*/\1/p;q;} 29088i\ 290890 29090q 29091' 29092gl_libunistring_sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{s/^[0-9]*[.]\([0-9]*\).*/\1/p;q;} 29093i\ 290940 29095q 29096' 29097gl_libunistring_sed_extract_subminor='/^[0-9][0-9]*[.][0-9][0-9]*[.][0-9]/{s/^[0-9]*[.][0-9]*[.]\([0-9]*\).*/\1/p;q;} 29098i\ 290990 29100q 29101' 29102 29103 29104 if test "$HAVE_LIBUNISTRING" = yes; then 29105 LIBUNISTRING_VERSION_MAJOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_major"` 29106 LIBUNISTRING_VERSION_MINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_minor"` 29107 LIBUNISTRING_VERSION_SUBMINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_subminor"` 29108 fi 29109 29110ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default" 29111if test "x$ac_cv_have_decl_clearerr_unlocked" = xyes; then : 29112 ac_have_decl=1 29113else 29114 ac_have_decl=0 29115fi 29116 29117cat >>confdefs.h <<_ACEOF 29118#define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl 29119_ACEOF 29120 29121ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default" 29122if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then : 29123 ac_have_decl=1 29124else 29125 ac_have_decl=0 29126fi 29127 29128cat >>confdefs.h <<_ACEOF 29129#define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl 29130_ACEOF 29131 29132ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default" 29133if test "x$ac_cv_have_decl_ferror_unlocked" = xyes; then : 29134 ac_have_decl=1 29135else 29136 ac_have_decl=0 29137fi 29138 29139cat >>confdefs.h <<_ACEOF 29140#define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl 29141_ACEOF 29142 29143ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default" 29144if test "x$ac_cv_have_decl_fflush_unlocked" = xyes; then : 29145 ac_have_decl=1 29146else 29147 ac_have_decl=0 29148fi 29149 29150cat >>confdefs.h <<_ACEOF 29151#define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl 29152_ACEOF 29153 29154ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default" 29155if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then : 29156 ac_have_decl=1 29157else 29158 ac_have_decl=0 29159fi 29160 29161cat >>confdefs.h <<_ACEOF 29162#define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl 29163_ACEOF 29164 29165ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default" 29166if test "x$ac_cv_have_decl_fputc_unlocked" = xyes; then : 29167 ac_have_decl=1 29168else 29169 ac_have_decl=0 29170fi 29171 29172cat >>confdefs.h <<_ACEOF 29173#define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl 29174_ACEOF 29175 29176ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default" 29177if test "x$ac_cv_have_decl_fputs_unlocked" = xyes; then : 29178 ac_have_decl=1 29179else 29180 ac_have_decl=0 29181fi 29182 29183cat >>confdefs.h <<_ACEOF 29184#define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl 29185_ACEOF 29186 29187ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default" 29188if test "x$ac_cv_have_decl_fread_unlocked" = xyes; then : 29189 ac_have_decl=1 29190else 29191 ac_have_decl=0 29192fi 29193 29194cat >>confdefs.h <<_ACEOF 29195#define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl 29196_ACEOF 29197 29198ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default" 29199if test "x$ac_cv_have_decl_fwrite_unlocked" = xyes; then : 29200 ac_have_decl=1 29201else 29202 ac_have_decl=0 29203fi 29204 29205cat >>confdefs.h <<_ACEOF 29206#define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl 29207_ACEOF 29208 29209ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default" 29210if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then : 29211 ac_have_decl=1 29212else 29213 ac_have_decl=0 29214fi 29215 29216cat >>confdefs.h <<_ACEOF 29217#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl 29218_ACEOF 29219 29220ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default" 29221if test "x$ac_cv_have_decl_getchar_unlocked" = xyes; then : 29222 ac_have_decl=1 29223else 29224 ac_have_decl=0 29225fi 29226 29227cat >>confdefs.h <<_ACEOF 29228#define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl 29229_ACEOF 29230 29231ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default" 29232if test "x$ac_cv_have_decl_putc_unlocked" = xyes; then : 29233 ac_have_decl=1 29234else 29235 ac_have_decl=0 29236fi 29237 29238cat >>confdefs.h <<_ACEOF 29239#define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl 29240_ACEOF 29241 29242ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default" 29243if test "x$ac_cv_have_decl_putchar_unlocked" = xyes; then : 29244 ac_have_decl=1 29245else 29246 ac_have_decl=0 29247fi 29248 29249cat >>confdefs.h <<_ACEOF 29250#define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl 29251_ACEOF 29252 29253 29254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5 29255$as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; } 29256if ${gl_cv_header_wchar_h_correct_inline+:} false; then : 29257 $as_echo_n "(cached) " >&6 29258else 29259 gl_cv_header_wchar_h_correct_inline=yes 29260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29261/* end confdefs.h. */ 29262 29263 #define wcstod renamed_wcstod 29264/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 29265 <wchar.h>. 29266 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 29267 included before <wchar.h>. */ 29268#include <stddef.h> 29269#include <stdio.h> 29270#include <time.h> 29271#include <wchar.h> 29272extern int zero (void); 29273int main () { return zero(); } 29274 29275_ACEOF 29276 save_ac_compile="$ac_compile" 29277 ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest1/` 29278 if echo '#include "conftest.c"' >conftest1.c && 29279 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 29280 (eval $ac_compile) 2>&5 29281 ac_status=$? 29282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29283 test $ac_status = 0; }; then 29284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29285/* end confdefs.h. */ 29286 29287 #define wcstod renamed_wcstod 29288/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 29289 <wchar.h>. 29290 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 29291 included before <wchar.h>. */ 29292#include <stddef.h> 29293#include <stdio.h> 29294#include <time.h> 29295#include <wchar.h> 29296int zero (void) { return 0; } 29297 29298_ACEOF 29299 ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest2/` 29300 if echo '#include "conftest.c"' >conftest2.c && 29301 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 29302 (eval $ac_compile) 2>&5 29303 ac_status=$? 29304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29305 test $ac_status = 0; }; then 29306 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then 29307 : 29308 else 29309 gl_cv_header_wchar_h_correct_inline=no 29310 fi 29311 fi 29312 fi 29313 ac_compile="$save_ac_compile" 29314 rm -f conftest12.c conftest12.$ac_objext conftest$ac_exeext 29315 29316fi 29317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5 29318$as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; } 29319 if test $gl_cv_header_wchar_h_correct_inline = no; then 29320 as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS). 29321This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in 29322C99 mode. You have four options: 29323 - Add the flag -fgnu89-inline to CC and reconfigure, or 29324 - Fix your include files, using parts of 29325 <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or 29326 - Use a gcc version older than 4.3, or 29327 - Don't use the flags -std=c99 or -std=gnu99. 29328Configuration aborted." "$LINENO" 5 29329 fi 29330 29331 29332 29333 29334 29335 if test $ac_cv_header_features_h = yes; then 29336 HAVE_FEATURES_H=1 29337 else 29338 HAVE_FEATURES_H=0 29339 fi 29340 29341 29342 29343 29344 29345 if false; then 29346 GL_COND_LIBTOOL_TRUE= 29347 GL_COND_LIBTOOL_FALSE='#' 29348else 29349 GL_COND_LIBTOOL_TRUE='#' 29350 GL_COND_LIBTOOL_FALSE= 29351fi 29352 29353 gl_cond_libtool=false 29354 gl_libdeps= 29355 gl_ltlibdeps= 29356 gl_m4_base='gnulib-m4' 29357 29358 29359 29360 29361 29362 29363 29364 29365 29366 29367 gl_source_base='gnulib-lib' 29368 29369 29370 if test $ac_cv_func_alloca_works = no; then 29371 : 29372 fi 29373 29374 # Define an additional variable used in the Makefile substitution. 29375 if test $ac_cv_working_alloca_h = yes; then 29376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5 29377$as_echo_n "checking for alloca as a compiler built-in... " >&6; } 29378if ${gl_cv_rpl_alloca+:} false; then : 29379 $as_echo_n "(cached) " >&6 29380else 29381 29382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29383/* end confdefs.h. */ 29384 29385#if defined __GNUC__ || defined _AIX || defined _MSC_VER 29386 Need own alloca 29387#endif 29388 29389_ACEOF 29390if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 29391 $EGREP "Need own alloca" >/dev/null 2>&1; then : 29392 gl_cv_rpl_alloca=yes 29393else 29394 gl_cv_rpl_alloca=no 29395fi 29396rm -f conftest* 29397 29398 29399fi 29400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5 29401$as_echo "$gl_cv_rpl_alloca" >&6; } 29402 if test $gl_cv_rpl_alloca = yes; then 29403 29404$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 29405 29406 ALLOCA_H=alloca.h 29407 else 29408 ALLOCA_H= 29409 fi 29410 else 29411 ALLOCA_H=alloca.h 29412 fi 29413 29414 if test -n "$ALLOCA_H"; then 29415 GL_GENERATE_ALLOCA_H_TRUE= 29416 GL_GENERATE_ALLOCA_H_FALSE='#' 29417else 29418 GL_GENERATE_ALLOCA_H_TRUE='#' 29419 GL_GENERATE_ALLOCA_H_FALSE= 29420fi 29421 29422 29423 if test $ac_cv_working_alloca_h = yes; then 29424 HAVE_ALLOCA_H=1 29425 else 29426 HAVE_ALLOCA_H=0 29427 fi 29428 29429 29430 29431 29432 for ac_func in atexit 29433do : 29434 ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit" 29435if test "x$ac_cv_func_atexit" = xyes; then : 29436 cat >>confdefs.h <<_ACEOF 29437#define HAVE_ATEXIT 1 29438_ACEOF 29439 29440fi 29441done 29442 29443 29444 if test $ac_cv_func_atexit = no; then 29445 29446 29447 29448 29449 29450 29451 29452 29453 gl_LIBOBJS="$gl_LIBOBJS atexit.$ac_objext" 29454 29455 29456 : 29457 29458 fi 29459 # See the comments in bison.m4. 29460 29461 29462 29463 if test $ac_cv_func_canonicalize_file_name = no; then 29464 HAVE_CANONICALIZE_FILE_NAME=0 29465 if test $ac_cv_func_realpath = no; then 29466 HAVE_REALPATH=0 29467 else 29468 case "$gl_cv_func_realpath_works" in 29469 *yes) ;; 29470 *) REPLACE_REALPATH=1 ;; 29471 esac 29472 fi 29473 else 29474 case "$gl_cv_func_realpath_works" in 29475 *yes) 29476 ;; 29477 *) 29478 REPLACE_CANONICALIZE_FILE_NAME=1 29479 REPLACE_REALPATH=1 29480 ;; 29481 esac 29482 fi 29483 29484 if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then 29485 29486 29487 29488 29489 29490 29491 29492 29493 gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext" 29494 29495 fi 29496 29497 29498cat >>confdefs.h <<_ACEOF 29499#define GNULIB_CANONICALIZE_LGPL 1 29500_ACEOF 29501 29502 29503 29504 29505 29506 29507 29508 GNULIB_CANONICALIZE_FILE_NAME=1 29509 29510 29511 29512 29513 29514$as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h 29515 29516 29517 29518 29519 29520 29521 29522 29523 GNULIB_REALPATH=1 29524 29525 29526 29527 29528 29529$as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h 29530 29531 29532 29533 29534 29535 29536 29537$as_echo "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h 29538 29539 29540 29541 29542 29543 29544 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then 29545 REPLACE_CLOSE=1 29546 fi 29547 29548 29549 29550 29551 29552 29553 if test $ac_cv_header_sys_socket_h != yes; then 29554 for ac_header in winsock2.h 29555do : 29556 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 29557if test "x$ac_cv_header_winsock2_h" = xyes; then : 29558 cat >>confdefs.h <<_ACEOF 29559#define HAVE_WINSOCK2_H 1 29560_ACEOF 29561 29562fi 29563 29564done 29565 29566 fi 29567 if test "$ac_cv_header_winsock2_h" = yes; then 29568 HAVE_WINSOCK2_H=1 29569 UNISTD_H_HAVE_WINSOCK2_H=1 29570 SYS_IOCTL_H_HAVE_WINSOCK2_H=1 29571 else 29572 HAVE_WINSOCK2_H=0 29573 fi 29574 29575 29576 if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then 29577 REPLACE_CLOSE=1 29578 fi 29579 29580 29581 29582 if test $REPLACE_CLOSE = 1; then 29583 29584 29585 29586 29587 29588 29589 29590 29591 gl_LIBOBJS="$gl_LIBOBJS close.$ac_objext" 29592 29593 fi 29594 29595 29596 29597 29598 29599 GNULIB_CLOSE=1 29600 29601 29602 29603 29604 29605$as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h 29606 29607 29608 29609 29610 ac_config_files="$ac_config_files csharpcomp.sh:../build-aux/csharpcomp.sh.in" 29611 29612 29613 29614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5 29615$as_echo_n "checking whether // is distinct from /... " >&6; } 29616if ${gl_cv_double_slash_root+:} false; then : 29617 $as_echo_n "(cached) " >&6 29618else 29619 if test x"$cross_compiling" = xyes ; then 29620 # When cross-compiling, there is no way to tell whether // is special 29621 # short of a list of hosts. However, the only known hosts to date 29622 # that have a distinct // are Apollo DomainOS (too old to port to), 29623 # Cygwin, and z/OS. If anyone knows of another system for which // has 29624 # special semantics and is distinct from /, please report it to 29625 # <bug-gnulib@gnu.org>. 29626 case $host in 29627 *-cygwin | i370-ibm-openedition) 29628 gl_cv_double_slash_root=yes ;; 29629 *) 29630 # Be optimistic and assume that / and // are the same when we 29631 # don't know. 29632 gl_cv_double_slash_root='unknown, assuming no' ;; 29633 esac 29634 else 29635 set x `ls -di / // 2>/dev/null` 29636 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then 29637 gl_cv_double_slash_root=no 29638 else 29639 gl_cv_double_slash_root=yes 29640 fi 29641 fi 29642fi 29643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5 29644$as_echo "$gl_cv_double_slash_root" >&6; } 29645 if test "$gl_cv_double_slash_root" = yes; then 29646 29647$as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h 29648 29649 fi 29650 29651 29652 29653 29654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5 29655$as_echo_n "checking whether dup2 works... " >&6; } 29656if ${gl_cv_func_dup2_works+:} false; then : 29657 $as_echo_n "(cached) " >&6 29658else 29659 if test "$cross_compiling" = yes; then : 29660 case "$host_os" in 29661 mingw*) # on this platform, dup2 always returns 0 for success 29662 gl_cv_func_dup2_works="guessing no" ;; 29663 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0 29664 gl_cv_func_dup2_works="guessing no" ;; 29665 aix* | freebsd*) 29666 # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE, 29667 # not EBADF. 29668 gl_cv_func_dup2_works="guessing no" ;; 29669 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC. 29670 gl_cv_func_dup2_works="guessing no" ;; 29671 *-android*) # implemented using dup3(), which fails if oldfd == newfd 29672 gl_cv_func_dup2_works="guessing no" ;; 29673 os2*) # on OS/2 kLIBC, dup2() does not work on a directory fd. 29674 gl_cv_func_dup2_works="guessing no" ;; 29675 *) gl_cv_func_dup2_works="guessing yes" ;; 29676 esac 29677else 29678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29679/* end confdefs.h. */ 29680 29681 #include <errno.h> 29682 #include <fcntl.h> 29683 #include <limits.h> 29684 #include <sys/resource.h> 29685 #include <unistd.h> 29686 #ifndef RLIM_SAVED_CUR 29687 # define RLIM_SAVED_CUR RLIM_INFINITY 29688 #endif 29689 #ifndef RLIM_SAVED_MAX 29690 # define RLIM_SAVED_MAX RLIM_INFINITY 29691 #endif 29692 29693int 29694main () 29695{ 29696int result = 0; 29697 int bad_fd = INT_MAX; 29698 struct rlimit rlim; 29699 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0 29700 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX 29701 && rlim.rlim_cur != RLIM_INFINITY 29702 && rlim.rlim_cur != RLIM_SAVED_MAX 29703 && rlim.rlim_cur != RLIM_SAVED_CUR) 29704 bad_fd = rlim.rlim_cur; 29705 #ifdef FD_CLOEXEC 29706 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1) 29707 result |= 1; 29708 #endif 29709 if (dup2 (1, 1) != 1) 29710 result |= 2; 29711 #ifdef FD_CLOEXEC 29712 if (fcntl (1, F_GETFD) != FD_CLOEXEC) 29713 result |= 4; 29714 #endif 29715 close (0); 29716 if (dup2 (0, 0) != -1) 29717 result |= 8; 29718 /* Many gnulib modules require POSIX conformance of EBADF. */ 29719 if (dup2 (2, bad_fd) == -1 && errno != EBADF) 29720 result |= 16; 29721 /* Flush out some cygwin core dumps. */ 29722 if (dup2 (2, -1) != -1 || errno != EBADF) 29723 result |= 32; 29724 dup2 (2, 255); 29725 dup2 (2, 256); 29726 /* On OS/2 kLIBC, dup2() does not work on a directory fd. */ 29727 { 29728 int fd = open (".", O_RDONLY); 29729 if (fd == -1) 29730 result |= 64; 29731 else if (dup2 (fd, fd + 1) == -1) 29732 result |= 128; 29733 close (fd); 29734 } 29735 return result; 29736 ; 29737 return 0; 29738} 29739 29740_ACEOF 29741if ac_fn_c_try_run "$LINENO"; then : 29742 gl_cv_func_dup2_works=yes 29743else 29744 gl_cv_func_dup2_works=no 29745fi 29746rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 29747 conftest.$ac_objext conftest.beam conftest.$ac_ext 29748fi 29749 29750 29751fi 29752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5 29753$as_echo "$gl_cv_func_dup2_works" >&6; } 29754 case "$gl_cv_func_dup2_works" in 29755 *yes) ;; 29756 *) 29757 REPLACE_DUP2=1 29758 for ac_func in setdtablesize 29759do : 29760 ac_fn_c_check_func "$LINENO" "setdtablesize" "ac_cv_func_setdtablesize" 29761if test "x$ac_cv_func_setdtablesize" = xyes; then : 29762 cat >>confdefs.h <<_ACEOF 29763#define HAVE_SETDTABLESIZE 1 29764_ACEOF 29765 29766fi 29767done 29768 29769 ;; 29770 esac 29771 29772 29773 if test $REPLACE_DUP2 = 1; then 29774 29775 29776 29777 29778 29779 29780 29781 29782 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext" 29783 29784 29785 fi 29786 29787 29788 29789 29790 29791 GNULIB_DUP2=1 29792 29793 29794 29795 29796 29797$as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h 29798 29799 29800 29801 29802 29803 29804 29805 29806 29807 GNULIB_ENVIRON=1 29808 29809 29810 29811 29812 29813$as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h 29814 29815 29816 29817 29818 29819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5 29820$as_echo_n "checking for error_at_line... " >&6; } 29821if ${ac_cv_lib_error_at_line+:} false; then : 29822 $as_echo_n "(cached) " >&6 29823else 29824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29825/* end confdefs.h. */ 29826#include <error.h> 29827int 29828main () 29829{ 29830error_at_line (0, 0, "", 0, "an error occurred"); 29831 ; 29832 return 0; 29833} 29834_ACEOF 29835if ac_fn_c_try_link "$LINENO"; then : 29836 ac_cv_lib_error_at_line=yes 29837else 29838 ac_cv_lib_error_at_line=no 29839fi 29840rm -f core conftest.err conftest.$ac_objext \ 29841 conftest$ac_exeext conftest.$ac_ext 29842fi 29843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5 29844$as_echo "$ac_cv_lib_error_at_line" >&6; } 29845 29846 if test $ac_cv_lib_error_at_line = no; then 29847 29848 29849 29850 29851 29852 29853 29854 29855 gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext" 29856 29857 29858 29859 : 29860 29861 fi 29862 29863 29864 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format" 29865 29866 29867 29868 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format" 29869 29870 29871 29872 29873 29874 29875 29876 if test $ac_cv_func_fcntl = no; then 29877 29878 29879 29880 if test $ac_cv_func_fcntl = no; then 29881 HAVE_FCNTL=0 29882 else 29883 REPLACE_FCNTL=1 29884 fi 29885 29886 else 29887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5 29888$as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; } 29889if ${gl_cv_func_fcntl_f_dupfd_works+:} false; then : 29890 $as_echo_n "(cached) " >&6 29891else 29892 if test "$cross_compiling" = yes; then : 29893 case $host_os in 29894 aix* | cygwin* | haiku*) 29895 gl_cv_func_fcntl_f_dupfd_works="guessing no" ;; 29896 *) gl_cv_func_fcntl_f_dupfd_works="guessing yes" ;; 29897 esac 29898else 29899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29900/* end confdefs.h. */ 29901#include <errno.h> 29902 #include <fcntl.h> 29903 #include <limits.h> 29904 #include <sys/resource.h> 29905 #include <unistd.h> 29906 #ifndef RLIM_SAVED_CUR 29907 # define RLIM_SAVED_CUR RLIM_INFINITY 29908 #endif 29909 #ifndef RLIM_SAVED_MAX 29910 # define RLIM_SAVED_MAX RLIM_INFINITY 29911 #endif 29912 29913int 29914main () 29915{ 29916int result = 0; 29917 int bad_fd = INT_MAX; 29918 struct rlimit rlim; 29919 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0 29920 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX 29921 && rlim.rlim_cur != RLIM_INFINITY 29922 && rlim.rlim_cur != RLIM_SAVED_MAX 29923 && rlim.rlim_cur != RLIM_SAVED_CUR) 29924 bad_fd = rlim.rlim_cur; 29925 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1; 29926 if (errno != EINVAL) result |= 2; 29927 if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4; 29928 if (errno != EINVAL) result |= 8; 29929 /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */ 29930 { 29931 int fd; 29932 fd = open (".", O_RDONLY); 29933 if (fd == -1) 29934 result |= 16; 29935 else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1) 29936 result |= 32; 29937 29938 close (fd); 29939 } 29940 return result; 29941 ; 29942 return 0; 29943} 29944_ACEOF 29945if ac_fn_c_try_run "$LINENO"; then : 29946 gl_cv_func_fcntl_f_dupfd_works=yes 29947else 29948 gl_cv_func_fcntl_f_dupfd_works=no 29949fi 29950rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 29951 conftest.$ac_objext conftest.beam conftest.$ac_ext 29952fi 29953 29954fi 29955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5 29956$as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; } 29957 case $gl_cv_func_fcntl_f_dupfd_works in 29958 *yes) ;; 29959 *) 29960 29961 29962 if test $ac_cv_func_fcntl = no; then 29963 HAVE_FCNTL=0 29964 else 29965 REPLACE_FCNTL=1 29966 fi 29967 29968 29969$as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h 29970 ;; 29971 esac 29972 29973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5 29974$as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; } 29975if ${gl_cv_func_fcntl_f_dupfd_cloexec+:} false; then : 29976 $as_echo_n "(cached) " >&6 29977else 29978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29979/* end confdefs.h. */ 29980 29981#include <fcntl.h> 29982#ifndef F_DUPFD_CLOEXEC 29983choke me 29984#endif 29985 29986int 29987main () 29988{ 29989 29990 ; 29991 return 0; 29992} 29993_ACEOF 29994if ac_fn_c_try_compile "$LINENO"; then : 29995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29996/* end confdefs.h. */ 29997 29998#ifdef __linux__ 29999/* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace 30000 it to support the semantics on older kernels that failed with EINVAL. */ 30001choke me 30002#endif 30003 30004int 30005main () 30006{ 30007 30008 ; 30009 return 0; 30010} 30011_ACEOF 30012if ac_fn_c_try_compile "$LINENO"; then : 30013 gl_cv_func_fcntl_f_dupfd_cloexec=yes 30014else 30015 gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check" 30016fi 30017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30018else 30019 gl_cv_func_fcntl_f_dupfd_cloexec=no 30020fi 30021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30022fi 30023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5 30024$as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; } 30025 if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then 30026 30027 30028 30029 if test $ac_cv_func_fcntl = no; then 30030 HAVE_FCNTL=0 30031 else 30032 REPLACE_FCNTL=1 30033 fi 30034 30035 fi 30036 fi 30037 30038 30039 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then 30040 30041 30042 30043 30044 30045 30046 30047 30048 gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext" 30049 30050 fi 30051 30052 30053 30054 30055 30056 GNULIB_FCNTL=1 30057 30058 30059 30060 30061 30062$as_echo "#define GNULIB_TEST_FCNTL 1" >>confdefs.h 30063 30064 30065 30066 30067 30068 30069 30070 30071 30072 30073 30074 30075 30076 30077 if test $gl_cv_have_include_next = yes; then 30078 gl_cv_next_fcntl_h='<'fcntl.h'>' 30079 else 30080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5 30081$as_echo_n "checking absolute name of <fcntl.h>... " >&6; } 30082if ${gl_cv_next_fcntl_h+:} false; then : 30083 $as_echo_n "(cached) " >&6 30084else 30085 30086 30087 30088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30089/* end confdefs.h. */ 30090#include <fcntl.h> 30091_ACEOF 30092 case "$host_os" in 30093 aix*) gl_absname_cpp="$ac_cpp -C" ;; 30094 *) gl_absname_cpp="$ac_cpp" ;; 30095 esac 30096 30097 case "$host_os" in 30098 mingw*) 30099 gl_dirsep_regex='[/\\]' 30100 ;; 30101 *) 30102 gl_dirsep_regex='\/' 30103 ;; 30104 esac 30105 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 30106 gl_header_literal_regex=`echo 'fcntl.h' \ 30107 | sed -e "$gl_make_literal_regex_sed"` 30108 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 30109 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 30110 s|^/[^/]|//&| 30111 p 30112 q 30113 }' 30114 30115 gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 30116 sed -n "$gl_absolute_header_sed"` 30117 30118 gl_header=$gl_cv_absolute_fcntl_h 30119 gl_cv_next_fcntl_h='"'$gl_header'"' 30120 30121 30122fi 30123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5 30124$as_echo "$gl_cv_next_fcntl_h" >&6; } 30125 fi 30126 NEXT_FCNTL_H=$gl_cv_next_fcntl_h 30127 30128 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 30129 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 30130 gl_next_as_first_directive='<'fcntl.h'>' 30131 else 30132 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 30133 gl_next_as_first_directive=$gl_cv_next_fcntl_h 30134 fi 30135 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive 30136 30137 30138 30139 30140 30141 30142 30143 30144 30145 30146 30147 30148 30149 30150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array member" >&5 30151$as_echo_n "checking for flexible array member... " >&6; } 30152if ${ac_cv_c_flexmember+:} false; then : 30153 $as_echo_n "(cached) " >&6 30154else 30155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30156/* end confdefs.h. */ 30157#include <stdlib.h> 30158 #include <stdio.h> 30159 #include <stddef.h> 30160 struct m { struct m *next, **list; char name[]; }; 30161 struct s { struct s *p; struct m *m; int n; double d[]; }; 30162int 30163main () 30164{ 30165int m = getchar (); 30166 size_t nbytes = offsetof (struct s, d) + m * sizeof (double); 30167 nbytes += sizeof (struct s) - 1; 30168 nbytes -= nbytes % sizeof (struct s); 30169 struct s *p = malloc (nbytes); 30170 p->p = p; 30171 p->m = NULL; 30172 p->d[0] = 0.0; 30173 return p->d != (double *) NULL; 30174 ; 30175 return 0; 30176} 30177_ACEOF 30178if ac_fn_c_try_compile "$LINENO"; then : 30179 ac_cv_c_flexmember=yes 30180else 30181 ac_cv_c_flexmember=no 30182fi 30183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30184fi 30185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5 30186$as_echo "$ac_cv_c_flexmember" >&6; } 30187 if test $ac_cv_c_flexmember = yes; then 30188 30189$as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h 30190 30191 else 30192 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h 30193 30194 fi 30195 30196 30197 30198 30199 30200 case "$host_os" in 30201 mingw* | solaris*) 30202 REPLACE_FSTAT=1 30203 ;; 30204 esac 30205 30206 30207 30208 if test $REPLACE_FSTAT = 1; then 30209 30210 30211 30212 30213 30214 30215 30216 30217 gl_LIBOBJS="$gl_LIBOBJS fstat.$ac_objext" 30218 30219 case "$host_os" in 30220 mingw*) 30221 30222 30223 30224 30225 30226 30227 30228 30229 gl_LIBOBJS="$gl_LIBOBJS stat-w32.$ac_objext" 30230 30231 ;; 30232 esac 30233 30234 30235 : 30236 30237 fi 30238 30239 30240 30241 30242 30243 GNULIB_FSTAT=1 30244 30245 30246 30247 30248 30249$as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h 30250 30251 30252 30253 30254 30255cat >>confdefs.h <<_ACEOF 30256#define GNULIB_FWRITEERROR 1 30257_ACEOF 30258 30259 30260 30261 30262 30263 30264 30265 if test $ac_cv_func_getdtablesize = yes && 30266 test $ac_cv_have_decl_getdtablesize = yes; then 30267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5 30268$as_echo_n "checking whether getdtablesize works... " >&6; } 30269if ${gl_cv_func_getdtablesize_works+:} false; then : 30270 $as_echo_n "(cached) " >&6 30271else 30272 case "$host_os" in 30273 vms*) gl_cv_func_getdtablesize_works="no (limitation)" ;; 30274 *) 30275 if test "$cross_compiling" = yes; then : 30276 case "$host_os" in 30277 cygwin*) # on cygwin 1.5.25, getdtablesize() automatically grows 30278 gl_cv_func_getdtablesize_works="guessing no" ;; 30279 *) gl_cv_func_getdtablesize_works="guessing yes" ;; 30280 esac 30281 30282else 30283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30284/* end confdefs.h. */ 30285 30286 #include <unistd.h> 30287int 30288main () 30289{ 30290int size = getdtablesize(); 30291 if (dup2 (0, getdtablesize()) != -1) 30292 return 1; 30293 if (size != getdtablesize()) 30294 return 2; 30295 30296 ; 30297 return 0; 30298} 30299_ACEOF 30300if ac_fn_c_try_run "$LINENO"; then : 30301 gl_cv_func_getdtablesize_works=yes 30302else 30303 gl_cv_func_getdtablesize_works=no 30304fi 30305rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 30306 conftest.$ac_objext conftest.beam conftest.$ac_ext 30307fi 30308 30309 ;; 30310 esac 30311 30312fi 30313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5 30314$as_echo "$gl_cv_func_getdtablesize_works" >&6; } 30315 case "$gl_cv_func_getdtablesize_works" in 30316 *yes | "no (limitation)") ;; 30317 *) REPLACE_GETDTABLESIZE=1 ;; 30318 esac 30319 else 30320 HAVE_GETDTABLESIZE=0 30321 fi 30322 30323 if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then 30324 30325 30326 30327 30328 30329 30330 30331 30332 gl_LIBOBJS="$gl_LIBOBJS getdtablesize.$ac_objext" 30333 30334 : 30335 fi 30336 30337 30338 30339 30340 30341 GNULIB_GETDTABLESIZE=1 30342 30343 30344 30345 30346 30347$as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h 30348 30349 30350 30351 30352 30353 30354 30355 30356 30357 30358 30359 30360 REPLACE_GETOPT=0 30361 if test -n "$gl_replace_getopt"; then 30362 REPLACE_GETOPT=1 30363 fi 30364 30365 if test $REPLACE_GETOPT = 1; then 30366 30367 30368 if test $ac_cv_header_sys_cdefs_h = yes; then 30369 HAVE_SYS_CDEFS_H=1 30370 else 30371 HAVE_SYS_CDEFS_H=0 30372 fi 30373 30374 30375 30376$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h 30377 30378 GETOPT_H=getopt.h 30379 GETOPT_CDEFS_H=getopt-cdefs.h 30380 30381 30382 30383 fi 30384 30385 if test $REPLACE_GETOPT = 1; then 30386 30387 30388 30389 30390 30391 30392 30393 30394 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext" 30395 30396 30397 30398 30399 30400 30401 30402 30403 30404 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext" 30405 30406 GNULIB_GL_UNISTD_H_GETOPT=1 30407 fi 30408 30409 30410 30411 30412 30413 30414 GNULIB_GETOPT_POSIX=1 30415 30416 30417 30418 30419 30420$as_echo "#define GNULIB_TEST_GETOPT_POSIX 1" >>confdefs.h 30421 30422 30423 30424 30425 30426 30427 ac_found=0 30428 ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h> 30429" 30430if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then : 30431 ac_have_decl=1 30432else 30433 ac_have_decl=0 30434fi 30435 30436cat >>confdefs.h <<_ACEOF 30437#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl 30438_ACEOF 30439if test $ac_have_decl = 1; then : 30440 ac_found=1 30441fi 30442 30443 ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h> 30444" 30445if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then : 30446 ac_have_decl=1 30447else 30448 ac_have_decl=0 30449fi 30450 30451cat >>confdefs.h <<_ACEOF 30452#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl 30453_ACEOF 30454if test $ac_have_decl = 1; then : 30455 ac_found=1 30456fi 30457 30458 ac_fn_c_check_decl "$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h> 30459" 30460if test "x$ac_cv_have_decl___argv" = xyes; then : 30461 ac_have_decl=1 30462else 30463 ac_have_decl=0 30464fi 30465 30466cat >>confdefs.h <<_ACEOF 30467#define HAVE_DECL___ARGV $ac_have_decl 30468_ACEOF 30469if test $ac_have_decl = 1; then : 30470 ac_found=1 30471fi 30472 30473 30474 # Incur the cost of this test only if none of the above worked. 30475 if test $ac_found = 0; then 30476 # On OpenBSD 5.1, using the global __progname variable appears to be 30477 # the only way to implement getprogname. 30478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5 30479$as_echo_n "checking whether __progname is defined in default libraries... " >&6; } 30480if ${gl_cv_var___progname+:} false; then : 30481 $as_echo_n "(cached) " >&6 30482else 30483 30484 gl_cv_var___progname= 30485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30486/* end confdefs.h. */ 30487extern char *__progname; 30488int 30489main () 30490{ 30491return *__progname; 30492 30493 ; 30494 return 0; 30495} 30496_ACEOF 30497if ac_fn_c_try_link "$LINENO"; then : 30498 gl_cv_var___progname=yes 30499 30500fi 30501rm -f core conftest.err conftest.$ac_objext \ 30502 conftest$ac_exeext conftest.$ac_ext 30503 30504 30505fi 30506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5 30507$as_echo "$gl_cv_var___progname" >&6; } 30508 if test "$gl_cv_var___progname" = yes; then 30509 30510$as_echo "#define HAVE_VAR___PROGNAME 1" >>confdefs.h 30511 30512 fi 30513 fi 30514 30515 30516 30517 30518 LIB_HARD_LOCALE="$LIB_SETLOCALE_NULL" 30519 30520 30521 30522 30523 30524 30525 30526 GNULIB_ICONV=1 30527 30528 30529 30530 30531 30532 30533 30534 30535 30536 30537 30538 30539 30540 30541 30542 30543 if test $gl_cv_have_include_next = yes; then 30544 gl_cv_next_iconv_h='<'iconv.h'>' 30545 else 30546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <iconv.h>" >&5 30547$as_echo_n "checking absolute name of <iconv.h>... " >&6; } 30548if ${gl_cv_next_iconv_h+:} false; then : 30549 $as_echo_n "(cached) " >&6 30550else 30551 30552 if test $ac_cv_header_iconv_h = yes; then 30553 30554 30555 30556 30557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30558/* end confdefs.h. */ 30559#include <iconv.h> 30560_ACEOF 30561 case "$host_os" in 30562 aix*) gl_absname_cpp="$ac_cpp -C" ;; 30563 *) gl_absname_cpp="$ac_cpp" ;; 30564 esac 30565 30566 case "$host_os" in 30567 mingw*) 30568 gl_dirsep_regex='[/\\]' 30569 ;; 30570 *) 30571 gl_dirsep_regex='\/' 30572 ;; 30573 esac 30574 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 30575 gl_header_literal_regex=`echo 'iconv.h' \ 30576 | sed -e "$gl_make_literal_regex_sed"` 30577 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 30578 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 30579 s|^/[^/]|//&| 30580 p 30581 q 30582 }' 30583 30584 gl_cv_absolute_iconv_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 30585 sed -n "$gl_absolute_header_sed"` 30586 30587 gl_header=$gl_cv_absolute_iconv_h 30588 gl_cv_next_iconv_h='"'$gl_header'"' 30589 else 30590 gl_cv_next_iconv_h='<'iconv.h'>' 30591 fi 30592 30593 30594fi 30595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_iconv_h" >&5 30596$as_echo "$gl_cv_next_iconv_h" >&6; } 30597 fi 30598 NEXT_ICONV_H=$gl_cv_next_iconv_h 30599 30600 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 30601 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 30602 gl_next_as_first_directive='<'iconv.h'>' 30603 else 30604 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 30605 gl_next_as_first_directive=$gl_cv_next_iconv_h 30606 fi 30607 NEXT_AS_FIRST_DIRECTIVE_ICONV_H=$gl_next_as_first_directive 30608 30609 30610 30611 30612 30613 30614 30615 30616 30617 30618 30619 30620 30621 30622 30623 if test "$am_cv_func_iconv" = yes; then 30624 30625 30626 ICONV_H='iconv.h' 30627 if test -n "$ICONV_H"; then 30628 GL_GENERATE_ICONV_H_TRUE= 30629 GL_GENERATE_ICONV_H_FALSE='#' 30630else 30631 GL_GENERATE_ICONV_H_TRUE='#' 30632 GL_GENERATE_ICONV_H_FALSE= 30633fi 30634 30635 30636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30637/* end confdefs.h. */ 30638 30639 #include <iconv.h> 30640 #if defined _LIBICONV_VERSION || (defined __GLIBC__ && !defined __UCLIBC__) 30641 gnu_iconv 30642 #endif 30643 30644_ACEOF 30645if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 30646 $EGREP "gnu_iconv" >/dev/null 2>&1; then : 30647 gl_func_iconv_gnu=yes 30648else 30649 gl_func_iconv_gnu=no 30650fi 30651rm -f conftest* 30652 30653 if test $gl_func_iconv_gnu = no; then 30654 iconv_flavor= 30655 case "$host_os" in 30656 aix*) iconv_flavor=ICONV_FLAVOR_AIX ;; 30657 irix*) iconv_flavor=ICONV_FLAVOR_IRIX ;; 30658 hpux*) iconv_flavor=ICONV_FLAVOR_HPUX ;; 30659 osf*) iconv_flavor=ICONV_FLAVOR_OSF ;; 30660 solaris*) iconv_flavor=ICONV_FLAVOR_SOLARIS ;; 30661 openedition*) iconv_flavor=ICONV_FLAVOR_ZOS ;; 30662 esac 30663 if test -n "$iconv_flavor"; then 30664 30665cat >>confdefs.h <<_ACEOF 30666#define ICONV_FLAVOR $iconv_flavor 30667_ACEOF 30668 30669 30670 30671 30672 ICONV_H='iconv.h' 30673 if test -n "$ICONV_H"; then 30674 GL_GENERATE_ICONV_H_TRUE= 30675 GL_GENERATE_ICONV_H_FALSE='#' 30676else 30677 GL_GENERATE_ICONV_H_TRUE='#' 30678 GL_GENERATE_ICONV_H_FALSE= 30679fi 30680 30681 30682 REPLACE_ICONV_OPEN=1 30683 30684 fi 30685 fi 30686 30687 fi 30688 30689 if test $REPLACE_ICONV_OPEN = 1; then 30690 30691 30692 30693 30694 30695 30696 30697 30698 gl_LIBOBJS="$gl_LIBOBJS iconv_open.$ac_objext" 30699 30700 fi 30701 if test $REPLACE_ICONV = 1; then 30702 30703 30704 30705 30706 30707 30708 30709 30710 gl_LIBOBJS="$gl_LIBOBJS iconv.$ac_objext" 30711 30712 30713 30714 30715 30716 30717 30718 30719 30720 gl_LIBOBJS="$gl_LIBOBJS iconv_close.$ac_objext" 30721 30722 fi 30723 30724 30725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler generally respects inline" >&5 30726$as_echo_n "checking whether the compiler generally respects inline... " >&6; } 30727if ${gl_cv_c_inline_effective+:} false; then : 30728 $as_echo_n "(cached) " >&6 30729else 30730 if test $ac_cv_c_inline = no; then 30731 gl_cv_c_inline_effective=no 30732 else 30733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30734/* end confdefs.h. */ 30735 30736int 30737main () 30738{ 30739#ifdef __NO_INLINE__ 30740 #error "inline is not effective" 30741 #endif 30742 ; 30743 return 0; 30744} 30745_ACEOF 30746if ac_fn_c_try_compile "$LINENO"; then : 30747 gl_cv_c_inline_effective=yes 30748else 30749 gl_cv_c_inline_effective=no 30750fi 30751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30752 fi 30753 30754fi 30755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_inline_effective" >&5 30756$as_echo "$gl_cv_c_inline_effective" >&6; } 30757 if test $gl_cv_c_inline_effective = yes; then 30758 30759$as_echo "#define HAVE_INLINE 1" >>confdefs.h 30760 30761 fi 30762 30763 30764 30765 30766 30767 30768 30769 ac_fn_c_check_decl "$LINENO" "iswblank" "ac_cv_have_decl_iswblank" " 30770/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 30771 <wchar.h>. 30772 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included 30773 before <wchar.h>. */ 30774#include <stddef.h> 30775#include <stdio.h> 30776#include <time.h> 30777#include <wchar.h> 30778#include <wctype.h> 30779 30780" 30781if test "x$ac_cv_have_decl_iswblank" = xyes; then : 30782 ac_have_decl=1 30783else 30784 ac_have_decl=0 30785fi 30786 30787cat >>confdefs.h <<_ACEOF 30788#define HAVE_DECL_ISWBLANK $ac_have_decl 30789_ACEOF 30790 30791 if test $ac_cv_func_iswblank = no; then 30792 HAVE_ISWBLANK=0 30793 if test $ac_cv_have_decl_iswblank = yes; then 30794 REPLACE_ISWBLANK=1 30795 fi 30796 fi 30797 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then 30798 : 30799 else 30800 if test $HAVE_ISWBLANK = 0 || test $REPLACE_ISWBLANK = 1; then 30801 : 30802 fi 30803 fi 30804 30805 30806 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then 30807 : 30808 else 30809 if test $HAVE_ISWBLANK = 0 || test $REPLACE_ISWBLANK = 1; then 30810 30811 30812 30813 30814 30815 30816 30817 30818 gl_LIBOBJS="$gl_LIBOBJS iswblank.$ac_objext" 30819 30820 fi 30821 fi 30822 30823 30824 30825 30826 30827 GNULIB_ISWBLANK=1 30828 30829 30830 30831 30832 30833$as_echo "#define GNULIB_TEST_ISWBLANK 1" >>confdefs.h 30834 30835 30836 30837 30838 30839 30840 30841 30842 30843 30844 30845 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then 30846 REPLACE_ISWDIGIT="$REPLACE_ISWCNTRL" 30847 else 30848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswdigit is ISO C compliant" >&5 30849$as_echo_n "checking whether iswdigit is ISO C compliant... " >&6; } 30850if ${gl_cv_func_iswdigit_works+:} false; then : 30851 $as_echo_n "(cached) " >&6 30852else 30853 30854 case "$host_os" in 30855 # Guess no on FreeBSD, NetBSD, Solaris, native Windows. 30856 freebsd* | dragonfly* | netbsd* | solaris* | mingw*) 30857 gl_cv_func_iswdigit_works="guessing no" ;; 30858 # Guess yes otherwise. 30859 *) gl_cv_func_iswdigit_works="guessing yes" ;; 30860 esac 30861 if test $LOCALE_FR != none || test $LOCALE_JA != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_ZH_CN != none; then 30862 if test "$cross_compiling" = yes; then : 30863 : 30864else 30865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30866/* end confdefs.h. */ 30867 30868#include <locale.h> 30869#include <stdlib.h> 30870#include <string.h> 30871/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 30872 <wchar.h>. 30873 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 30874 included before <wchar.h>. */ 30875#include <stddef.h> 30876#include <stdio.h> 30877#include <time.h> 30878#include <wchar.h> 30879#include <wctype.h> 30880 30881/* Returns the value of iswdigit for the multibyte character s[0..n-1]. */ 30882static int 30883for_character (const char *s, size_t n) 30884{ 30885 mbstate_t state; 30886 wchar_t wc; 30887 size_t ret; 30888 30889 memset (&state, '\0', sizeof (mbstate_t)); 30890 wc = (wchar_t) 0xBADFACE; 30891 ret = mbrtowc (&wc, s, n, &state); 30892 if (ret != n) 30893 abort (); 30894 30895 return iswdigit (wc); 30896} 30897 30898int 30899main (int argc, char *argv[]) 30900{ 30901 int is; 30902 int result = 0; 30903 30904 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL) 30905 { 30906 /* This fails on mingw, MSVC 14. */ 30907 /* U+00B2 SUPERSCRIPT TWO */ 30908 is = for_character ("\262", 1); 30909 if (!(is == 0)) 30910 result |= 1; 30911 } 30912 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) 30913 { 30914 /* This fails on NetBSD 8.0. */ 30915 /* U+FF11 FULLWIDTH DIGIT ONE */ 30916 is = for_character ("\243\261", 2); 30917 if (!(is == 0)) 30918 result |= 2; 30919 } 30920 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) 30921 { 30922 /* This fails on FreeBSD 12, NetBSD 8.0, MSVC 14. */ 30923 /* U+0663 ARABIC-INDIC DIGIT THREE */ 30924 is = for_character ("\331\243", 2); 30925 if (!(is == 0)) 30926 result |= 4; 30927 /* This fails on FreeBSD 12, NetBSD 8.0, MSVC 14. */ 30928 /* U+FF11 FULLWIDTH DIGIT ONE */ 30929 is = for_character ("\357\274\221", 3); 30930 if (!(is == 0)) 30931 result |= 8; 30932 } 30933 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) 30934 { 30935 /* This fails on NetBSD 8.0, Solaris 10, Solaris 11.4. */ 30936 /* U+FF11 FULLWIDTH DIGIT ONE */ 30937 is = for_character ("\243\261", 2); 30938 if (!(is == 0)) 30939 result |= 16; 30940 } 30941 return result; 30942} 30943_ACEOF 30944if ac_fn_c_try_run "$LINENO"; then : 30945 gl_cv_func_iswdigit_works=yes 30946else 30947 gl_cv_func_iswdigit_works=no 30948fi 30949rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 30950 conftest.$ac_objext conftest.beam conftest.$ac_ext 30951fi 30952 30953 fi 30954 30955fi 30956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswdigit_works" >&5 30957$as_echo "$gl_cv_func_iswdigit_works" >&6; } 30958 case "$gl_cv_func_iswdigit_works" in 30959 *yes) ;; 30960 *) REPLACE_ISWDIGIT=1 ;; 30961 esac 30962 fi 30963 30964 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then 30965 : 30966 else 30967 if test $REPLACE_ISWDIGIT = 1; then 30968 30969 30970 30971 30972 30973 30974 30975 30976 gl_LIBOBJS="$gl_LIBOBJS iswdigit.$ac_objext" 30977 30978 fi 30979 fi 30980 30981 30982 30983 30984 30985 GNULIB_ISWDIGIT=1 30986 30987 30988 30989 30990 30991$as_echo "#define GNULIB_TEST_ISWDIGIT 1" >>confdefs.h 30992 30993 30994 30995 30996 30997 30998 30999 31000 31001 31002 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then 31003 REPLACE_ISWXDIGIT="$REPLACE_ISWCNTRL" 31004 else 31005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswxdigit is ISO C compliant" >&5 31006$as_echo_n "checking whether iswxdigit is ISO C compliant... " >&6; } 31007if ${gl_cv_func_iswxdigit_works+:} false; then : 31008 $as_echo_n "(cached) " >&6 31009else 31010 31011 case "$host_os" in 31012 # Guess no on FreeBSD, NetBSD, Solaris, native Windows. 31013 freebsd* | dragonfly* | netbsd* | solaris* | mingw*) 31014 gl_cv_func_iswxdigit_works="guessing no" ;; 31015 # Guess yes otherwise. 31016 *) gl_cv_func_iswxdigit_works="guessing yes" ;; 31017 esac 31018 if test $LOCALE_JA != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_ZH_CN != none; then 31019 if test "$cross_compiling" = yes; then : 31020 : 31021else 31022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31023/* end confdefs.h. */ 31024 31025#include <locale.h> 31026#include <stdlib.h> 31027#include <string.h> 31028/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 31029 <wchar.h>. 31030 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 31031 included before <wchar.h>. */ 31032#include <stddef.h> 31033#include <stdio.h> 31034#include <time.h> 31035#include <wchar.h> 31036#include <wctype.h> 31037 31038/* Returns the value of iswxdigit for the multibyte character s[0..n-1]. */ 31039static int 31040for_character (const char *s, size_t n) 31041{ 31042 mbstate_t state; 31043 wchar_t wc; 31044 size_t ret; 31045 31046 memset (&state, '\0', sizeof (mbstate_t)); 31047 wc = (wchar_t) 0xBADFACE; 31048 ret = mbrtowc (&wc, s, n, &state); 31049 if (ret != n) 31050 abort (); 31051 31052 return iswxdigit (wc); 31053} 31054 31055int 31056main (int argc, char *argv[]) 31057{ 31058 int is; 31059 int result = 0; 31060 31061 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) 31062 { 31063 /* This fails on NetBSD 8.0. */ 31064 /* U+FF21 FULLWIDTH LATIN CAPITAL LETTER A */ 31065 is = for_character ("\243\301", 2); 31066 if (!(is == 0)) 31067 result |= 1; 31068 } 31069 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) 31070 { 31071 /* This fails on FreeBSD 12. */ 31072 /* U+0663 ARABIC-INDIC DIGIT THREE */ 31073 is = for_character ("\331\243", 2); 31074 if (!(is == 0)) 31075 result |= 2; 31076 /* This fails on MSVC 14. */ 31077 /* U+FF21 FULLWIDTH LATIN CAPITAL LETTER A */ 31078 is = for_character ("\357\274\241", 3); 31079 if (!(is == 0)) 31080 result |= 4; 31081 } 31082 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) 31083 { 31084 /* This fails on Solaris 10, Solaris 11.4. */ 31085 /* U+FF11 FULLWIDTH DIGIT ONE */ 31086 is = for_character ("\243\261", 2); 31087 if (!(is == 0)) 31088 result |= 8; 31089 } 31090 return result; 31091} 31092_ACEOF 31093if ac_fn_c_try_run "$LINENO"; then : 31094 gl_cv_func_iswxdigit_works=yes 31095else 31096 gl_cv_func_iswxdigit_works=no 31097fi 31098rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 31099 conftest.$ac_objext conftest.beam conftest.$ac_ext 31100fi 31101 31102 fi 31103 31104fi 31105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswxdigit_works" >&5 31106$as_echo "$gl_cv_func_iswxdigit_works" >&6; } 31107 case "$gl_cv_func_iswxdigit_works" in 31108 *yes) ;; 31109 *) REPLACE_ISWXDIGIT=1 ;; 31110 esac 31111 fi 31112 31113 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then 31114 : 31115 else 31116 if test $REPLACE_ISWXDIGIT = 1; then 31117 31118 31119 31120 31121 31122 31123 31124 31125 gl_LIBOBJS="$gl_LIBOBJS iswxdigit.$ac_objext" 31126 31127 fi 31128 fi 31129 31130 31131 31132 31133 31134 GNULIB_ISWXDIGIT=1 31135 31136 31137 31138 31139 31140$as_echo "#define GNULIB_TEST_ISWXDIGIT 1" >>confdefs.h 31141 31142 31143 31144 31145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use Java" >&5 31146$as_echo_n "checking whether to use Java... " >&6; } 31147 # Check whether --enable-java was given. 31148if test "${enable_java+set}" = set; then : 31149 enableval=$enable_java; JAVA_CHOICE="$enableval" 31150else 31151 JAVA_CHOICE=yes 31152fi 31153 31154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHOICE" >&5 31155$as_echo "$JAVA_CHOICE" >&6; } 31156 31157 31158 # You need to invoke gt_JAVACOMP yourself, possibly with arguments. 31159 ac_config_files="$ac_config_files javacomp.sh:../build-aux/javacomp.sh.in" 31160 31161 31162 31163 31164 31165 31166 31167 31168 31169 31170 31171 31172 31173 31174 31175 if test $gl_cv_have_include_next = yes; then 31176 gl_cv_next_langinfo_h='<'langinfo.h'>' 31177 else 31178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <langinfo.h>" >&5 31179$as_echo_n "checking absolute name of <langinfo.h>... " >&6; } 31180if ${gl_cv_next_langinfo_h+:} false; then : 31181 $as_echo_n "(cached) " >&6 31182else 31183 31184 if test $ac_cv_header_langinfo_h = yes; then 31185 31186 31187 31188 31189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31190/* end confdefs.h. */ 31191#include <langinfo.h> 31192_ACEOF 31193 case "$host_os" in 31194 aix*) gl_absname_cpp="$ac_cpp -C" ;; 31195 *) gl_absname_cpp="$ac_cpp" ;; 31196 esac 31197 31198 case "$host_os" in 31199 mingw*) 31200 gl_dirsep_regex='[/\\]' 31201 ;; 31202 *) 31203 gl_dirsep_regex='\/' 31204 ;; 31205 esac 31206 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 31207 gl_header_literal_regex=`echo 'langinfo.h' \ 31208 | sed -e "$gl_make_literal_regex_sed"` 31209 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 31210 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 31211 s|^/[^/]|//&| 31212 p 31213 q 31214 }' 31215 31216 gl_cv_absolute_langinfo_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 31217 sed -n "$gl_absolute_header_sed"` 31218 31219 gl_header=$gl_cv_absolute_langinfo_h 31220 gl_cv_next_langinfo_h='"'$gl_header'"' 31221 else 31222 gl_cv_next_langinfo_h='<'langinfo.h'>' 31223 fi 31224 31225 31226fi 31227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_langinfo_h" >&5 31228$as_echo "$gl_cv_next_langinfo_h" >&6; } 31229 fi 31230 NEXT_LANGINFO_H=$gl_cv_next_langinfo_h 31231 31232 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 31233 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 31234 gl_next_as_first_directive='<'langinfo.h'>' 31235 else 31236 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 31237 gl_next_as_first_directive=$gl_cv_next_langinfo_h 31238 fi 31239 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H=$gl_next_as_first_directive 31240 31241 31242 31243 31244 31245 HAVE_LANGINFO_CODESET=0 31246 HAVE_LANGINFO_T_FMT_AMPM=0 31247 HAVE_LANGINFO_ALTMON=0 31248 HAVE_LANGINFO_ERA=0 31249 HAVE_LANGINFO_YESEXPR=0 31250 31251 if test $ac_cv_header_langinfo_h = yes; then 31252 HAVE_LANGINFO_H=1 31253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines CODESET" >&5 31254$as_echo_n "checking whether langinfo.h defines CODESET... " >&6; } 31255if ${gl_cv_header_langinfo_codeset+:} false; then : 31256 $as_echo_n "(cached) " >&6 31257else 31258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31259/* end confdefs.h. */ 31260#include <langinfo.h> 31261int a = CODESET; 31262 31263int 31264main () 31265{ 31266 31267 ; 31268 return 0; 31269} 31270_ACEOF 31271if ac_fn_c_try_compile "$LINENO"; then : 31272 gl_cv_header_langinfo_codeset=yes 31273else 31274 gl_cv_header_langinfo_codeset=no 31275fi 31276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31277 31278fi 31279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_codeset" >&5 31280$as_echo "$gl_cv_header_langinfo_codeset" >&6; } 31281 if test $gl_cv_header_langinfo_codeset = yes; then 31282 HAVE_LANGINFO_CODESET=1 31283 fi 31284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines T_FMT_AMPM" >&5 31285$as_echo_n "checking whether langinfo.h defines T_FMT_AMPM... " >&6; } 31286if ${gl_cv_header_langinfo_t_fmt_ampm+:} false; then : 31287 $as_echo_n "(cached) " >&6 31288else 31289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31290/* end confdefs.h. */ 31291#include <langinfo.h> 31292int a = T_FMT_AMPM; 31293 31294int 31295main () 31296{ 31297 31298 ; 31299 return 0; 31300} 31301_ACEOF 31302if ac_fn_c_try_compile "$LINENO"; then : 31303 gl_cv_header_langinfo_t_fmt_ampm=yes 31304else 31305 gl_cv_header_langinfo_t_fmt_ampm=no 31306fi 31307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31308 31309fi 31310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_t_fmt_ampm" >&5 31311$as_echo "$gl_cv_header_langinfo_t_fmt_ampm" >&6; } 31312 if test $gl_cv_header_langinfo_t_fmt_ampm = yes; then 31313 HAVE_LANGINFO_T_FMT_AMPM=1 31314 fi 31315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ALTMON_1" >&5 31316$as_echo_n "checking whether langinfo.h defines ALTMON_1... " >&6; } 31317if ${gl_cv_header_langinfo_altmon+:} false; then : 31318 $as_echo_n "(cached) " >&6 31319else 31320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31321/* end confdefs.h. */ 31322#include <langinfo.h> 31323int a = ALTMON_1; 31324 31325int 31326main () 31327{ 31328 31329 ; 31330 return 0; 31331} 31332_ACEOF 31333if ac_fn_c_try_compile "$LINENO"; then : 31334 gl_cv_header_langinfo_altmon=yes 31335else 31336 gl_cv_header_langinfo_altmon=no 31337fi 31338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31339 31340fi 31341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_altmon" >&5 31342$as_echo "$gl_cv_header_langinfo_altmon" >&6; } 31343 if test $gl_cv_header_langinfo_altmon = yes; then 31344 HAVE_LANGINFO_ALTMON=1 31345 fi 31346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ERA" >&5 31347$as_echo_n "checking whether langinfo.h defines ERA... " >&6; } 31348if ${gl_cv_header_langinfo_era+:} false; then : 31349 $as_echo_n "(cached) " >&6 31350else 31351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31352/* end confdefs.h. */ 31353#include <langinfo.h> 31354int a = ERA; 31355 31356int 31357main () 31358{ 31359 31360 ; 31361 return 0; 31362} 31363_ACEOF 31364if ac_fn_c_try_compile "$LINENO"; then : 31365 gl_cv_header_langinfo_era=yes 31366else 31367 gl_cv_header_langinfo_era=no 31368fi 31369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31370 31371fi 31372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_era" >&5 31373$as_echo "$gl_cv_header_langinfo_era" >&6; } 31374 if test $gl_cv_header_langinfo_era = yes; then 31375 HAVE_LANGINFO_ERA=1 31376 fi 31377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines YESEXPR" >&5 31378$as_echo_n "checking whether langinfo.h defines YESEXPR... " >&6; } 31379if ${gl_cv_header_langinfo_yesexpr+:} false; then : 31380 $as_echo_n "(cached) " >&6 31381else 31382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31383/* end confdefs.h. */ 31384#include <langinfo.h> 31385int a = YESEXPR; 31386 31387int 31388main () 31389{ 31390 31391 ; 31392 return 0; 31393} 31394_ACEOF 31395if ac_fn_c_try_compile "$LINENO"; then : 31396 gl_cv_header_langinfo_yesexpr=yes 31397else 31398 gl_cv_header_langinfo_yesexpr=no 31399fi 31400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31401 31402fi 31403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_yesexpr" >&5 31404$as_echo "$gl_cv_header_langinfo_yesexpr" >&6; } 31405 if test $gl_cv_header_langinfo_yesexpr = yes; then 31406 HAVE_LANGINFO_YESEXPR=1 31407 fi 31408 else 31409 HAVE_LANGINFO_H=0 31410 fi 31411 31412 31413 31414 31415 31416 31417 31418 31419 31420 31421 31422 31423 31424 31425 31426 31427 LOCALCHARSET_TESTS_ENVIRONMENT= 31428 31429 31430 31431 31432 31433 31434 31435 31436 31437 31438 31439 case "$host_os" in 31440 solaris*) 31441 31442$as_echo "#define _LCONV_C99 1" >>confdefs.h 31443 31444 ;; 31445 esac 31446 31447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h conforms to POSIX:2001" >&5 31448$as_echo_n "checking whether locale.h conforms to POSIX:2001... " >&6; } 31449if ${gl_cv_header_locale_h_posix2001+:} false; then : 31450 $as_echo_n "(cached) " >&6 31451else 31452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31453/* end confdefs.h. */ 31454#include <locale.h> 31455 int x = LC_MESSAGES; 31456 int y = sizeof (((struct lconv *) 0)->decimal_point); 31457int 31458main () 31459{ 31460 31461 ; 31462 return 0; 31463} 31464_ACEOF 31465if ac_fn_c_try_compile "$LINENO"; then : 31466 gl_cv_header_locale_h_posix2001=yes 31467else 31468 gl_cv_header_locale_h_posix2001=no 31469fi 31470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31471fi 31472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_h_posix2001" >&5 31473$as_echo "$gl_cv_header_locale_h_posix2001" >&6; } 31474 31475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct lconv is properly defined" >&5 31476$as_echo_n "checking whether struct lconv is properly defined... " >&6; } 31477if ${gl_cv_sys_struct_lconv_ok+:} false; then : 31478 $as_echo_n "(cached) " >&6 31479else 31480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31481/* end confdefs.h. */ 31482#include <locale.h> 31483 struct lconv l; 31484 int x = sizeof (l.decimal_point); 31485 int y = sizeof (l.int_p_cs_precedes); 31486int 31487main () 31488{ 31489 31490 ; 31491 return 0; 31492} 31493_ACEOF 31494if ac_fn_c_try_compile "$LINENO"; then : 31495 gl_cv_sys_struct_lconv_ok=yes 31496else 31497 gl_cv_sys_struct_lconv_ok=no 31498fi 31499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31500 31501fi 31502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_lconv_ok" >&5 31503$as_echo "$gl_cv_sys_struct_lconv_ok" >&6; } 31504 if test $gl_cv_sys_struct_lconv_ok = no; then 31505 case "$host_os" in 31506 mingw*) 31507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31508/* end confdefs.h. */ 31509 31510#ifdef _MSC_VER 31511 Special 31512#endif 31513 31514_ACEOF 31515if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 31516 $EGREP "Special" >/dev/null 2>&1; then : 31517 31518else 31519 REPLACE_STRUCT_LCONV=1 31520fi 31521rm -f conftest* 31522 31523 ;; 31524 *) REPLACE_STRUCT_LCONV=1 ;; 31525 esac 31526 fi 31527 31528 31529 31530 31531 31532 31533 31534 31535 31536 if test $gl_cv_have_include_next = yes; then 31537 gl_cv_next_locale_h='<'locale.h'>' 31538 else 31539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <locale.h>" >&5 31540$as_echo_n "checking absolute name of <locale.h>... " >&6; } 31541if ${gl_cv_next_locale_h+:} false; then : 31542 $as_echo_n "(cached) " >&6 31543else 31544 31545 31546 31547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31548/* end confdefs.h. */ 31549#include <locale.h> 31550_ACEOF 31551 case "$host_os" in 31552 aix*) gl_absname_cpp="$ac_cpp -C" ;; 31553 *) gl_absname_cpp="$ac_cpp" ;; 31554 esac 31555 31556 case "$host_os" in 31557 mingw*) 31558 gl_dirsep_regex='[/\\]' 31559 ;; 31560 *) 31561 gl_dirsep_regex='\/' 31562 ;; 31563 esac 31564 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 31565 gl_header_literal_regex=`echo 'locale.h' \ 31566 | sed -e "$gl_make_literal_regex_sed"` 31567 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 31568 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 31569 s|^/[^/]|//&| 31570 p 31571 q 31572 }' 31573 31574 gl_cv_absolute_locale_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 31575 sed -n "$gl_absolute_header_sed"` 31576 31577 gl_header=$gl_cv_absolute_locale_h 31578 gl_cv_next_locale_h='"'$gl_header'"' 31579 31580 31581fi 31582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_locale_h" >&5 31583$as_echo "$gl_cv_next_locale_h" >&6; } 31584 fi 31585 NEXT_LOCALE_H=$gl_cv_next_locale_h 31586 31587 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 31588 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 31589 gl_next_as_first_directive='<'locale.h'>' 31590 else 31591 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 31592 gl_next_as_first_directive=$gl_cv_next_locale_h 31593 fi 31594 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H=$gl_next_as_first_directive 31595 31596 31597 31598 31599 31600 31601 31602 31603 31604 31605 31606 31607 31608 31609 31610 31611 if test $HAVE_LOCALE_T = 1; then 31612 31613 gl_func_newlocale="$ac_cv_func_newlocale" 31614 gl_func_duplocale="$ac_cv_func_duplocale" 31615 gl_func_freelocale="$ac_cv_func_freelocale" 31616 else 31617 gl_func_newlocale=no 31618 gl_func_duplocale=no 31619 gl_func_freelocale=no 31620 fi 31621 if test $gl_func_newlocale != yes; then 31622 HAVE_NEWLOCALE=0 31623 fi 31624 if test $gl_func_duplocale != yes; then 31625 HAVE_DUPLOCALE=0 31626 fi 31627 if test $gl_func_freelocale != yes; then 31628 HAVE_FREELOCALE=0 31629 fi 31630 if test $gt_nameless_locales = yes; then 31631 REPLACE_NEWLOCALE=1 31632 REPLACE_DUPLOCALE=1 31633 REPLACE_FREELOCALE=1 31634 fi 31635 31636 31637 31638 31639 31640 31641 GNULIB_LOCALENAME=1 31642 31643 31644 31645 31646 31647$as_echo "#define GNULIB_TEST_LOCALENAME 1" >>confdefs.h 31648 31649 31650 31651 31652 31653 if test "$gl_threads_api" = posix; then 31654 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the 31655 # pthread_rwlock_* functions. 31656 has_rwlock=false 31657 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h> 31658" 31659if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then : 31660 has_rwlock=true 31661 31662$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h 31663 31664fi 31665 31666 if $has_rwlock; then 31667 31668 31669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_rwlock_rdlock prefers a writer to a reader" >&5 31670$as_echo_n "checking whether pthread_rwlock_rdlock prefers a writer to a reader... " >&6; } 31671if ${gl_cv_pthread_rwlock_rdlock_prefer_writer+:} false; then : 31672 $as_echo_n "(cached) " >&6 31673else 31674 save_LIBS="$LIBS" 31675 LIBS="$LIBS $LIBMULTITHREAD" 31676 if test "$cross_compiling" = yes; then : 31677 case "$host_os" in 31678 # Guess no on glibc systems. 31679 *-gnu* | gnu*) gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" ;; 31680 # Guess no on musl systems. 31681 *-musl*) gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" ;; 31682 # Guess no on bionic systems. 31683 *-android*) gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" ;; 31684 # Guess yes on native Windows with the mingw-w64 winpthreads library. 31685 # Guess no on native Windows with the gnulib windows-rwlock module. 31686 mingw*) if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then 31687 gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing yes" 31688 else 31689 gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" 31690 fi 31691 ;; 31692 # If we don't know, obey --enable-cross-guesses. 31693 *) gl_cv_pthread_rwlock_rdlock_prefer_writer="$gl_cross_guess_normal" ;; 31694 esac 31695 31696else 31697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31698/* end confdefs.h. */ 31699 31700#include <errno.h> 31701#include <pthread.h> 31702#include <stdlib.h> 31703#include <unistd.h> 31704 31705#define SUCCEED() exit (0) 31706#define FAILURE() exit (1) 31707#define UNEXPECTED(n) (exit (10 + (n))) 31708 31709/* The main thread creates the waiting writer and the requesting reader threads 31710 in the default way; this guarantees that they have the same priority. 31711 We can reuse the main thread as first reader thread. */ 31712 31713static pthread_rwlock_t lock; 31714static pthread_t reader1; 31715static pthread_t writer; 31716static pthread_t reader2; 31717static pthread_t timer; 31718/* Used to pass control from writer to reader2 and from reader2 to timer, 31719 as in a relay race. 31720 Passing control from one running thread to another running thread 31721 is most likely faster than to create the second thread. */ 31722static pthread_mutex_t baton; 31723 31724static void * 31725timer_func (void *ignored) 31726{ 31727 /* Step 13 (can be before or after step 12): 31728 The timer thread takes the baton, then waits a moment to make sure 31729 it can tell whether the second reader thread is blocked at step 12. */ 31730 if (pthread_mutex_lock (&baton)) 31731 UNEXPECTED (13); 31732 usleep (100000); 31733 /* By the time we get here, it's clear that the second reader thread is 31734 blocked at step 12. This is the desired behaviour. */ 31735 SUCCEED (); 31736} 31737 31738static void * 31739reader2_func (void *ignored) 31740{ 31741 int err; 31742 31743 /* Step 8 (can be before or after step 7): 31744 The second reader thread takes the baton, then waits a moment to make sure 31745 the writer thread has reached step 7. */ 31746 if (pthread_mutex_lock (&baton)) 31747 UNEXPECTED (8); 31748 usleep (100000); 31749 /* Step 9: The second reader thread requests the lock. */ 31750 err = pthread_rwlock_tryrdlock (&lock); 31751 if (err == 0) 31752 FAILURE (); 31753 else if (err != EBUSY) 31754 UNEXPECTED (9); 31755 /* Step 10: Launch a timer, to test whether the next call blocks. */ 31756 if (pthread_create (&timer, NULL, timer_func, NULL)) 31757 UNEXPECTED (10); 31758 /* Step 11: Release the baton. */ 31759 if (pthread_mutex_unlock (&baton)) 31760 UNEXPECTED (11); 31761 /* Step 12: The second reader thread requests the lock. */ 31762 err = pthread_rwlock_rdlock (&lock); 31763 if (err == 0) 31764 FAILURE (); 31765 else 31766 UNEXPECTED (12); 31767} 31768 31769static void * 31770writer_func (void *ignored) 31771{ 31772 /* Step 4: Take the baton, so that the second reader thread does not go ahead 31773 too early. */ 31774 if (pthread_mutex_lock (&baton)) 31775 UNEXPECTED (4); 31776 /* Step 5: Create the second reader thread. */ 31777 if (pthread_create (&reader2, NULL, reader2_func, NULL)) 31778 UNEXPECTED (5); 31779 /* Step 6: Release the baton. */ 31780 if (pthread_mutex_unlock (&baton)) 31781 UNEXPECTED (6); 31782 /* Step 7: The writer thread requests the lock. */ 31783 if (pthread_rwlock_wrlock (&lock)) 31784 UNEXPECTED (7); 31785 return NULL; 31786} 31787 31788int 31789main () 31790{ 31791 reader1 = pthread_self (); 31792 31793 /* Step 1: The main thread initializes the lock and the baton. */ 31794 if (pthread_rwlock_init (&lock, NULL)) 31795 UNEXPECTED (1); 31796 if (pthread_mutex_init (&baton, NULL)) 31797 UNEXPECTED (1); 31798 /* Step 2: The main thread acquires the lock as a reader. */ 31799 if (pthread_rwlock_rdlock (&lock)) 31800 UNEXPECTED (2); 31801 /* Step 3: Create the writer thread. */ 31802 if (pthread_create (&writer, NULL, writer_func, NULL)) 31803 UNEXPECTED (3); 31804 /* Job done. Go to sleep. */ 31805 for (;;) 31806 { 31807 sleep (1); 31808 } 31809} 31810 31811_ACEOF 31812if ac_fn_c_try_run "$LINENO"; then : 31813 gl_cv_pthread_rwlock_rdlock_prefer_writer=yes 31814else 31815 gl_cv_pthread_rwlock_rdlock_prefer_writer=no 31816fi 31817rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 31818 conftest.$ac_objext conftest.beam conftest.$ac_ext 31819fi 31820 31821 LIBS="$save_LIBS" 31822 31823fi 31824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pthread_rwlock_rdlock_prefer_writer" >&5 31825$as_echo "$gl_cv_pthread_rwlock_rdlock_prefer_writer" >&6; } 31826 case "$gl_cv_pthread_rwlock_rdlock_prefer_writer" in 31827 *yes) 31828 31829$as_echo "#define HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER 1" >>confdefs.h 31830 31831 ;; 31832 esac 31833 31834 fi 31835 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro. 31836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31837/* end confdefs.h. */ 31838 31839 #include <pthread.h> 31840int 31841main () 31842{ 31843 31844#if __FreeBSD__ == 4 31845error "No, in FreeBSD 4.0 recursive mutexes actually don't work." 31846#elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \ 31847 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070) 31848error "No, in Mac OS X < 10.7 recursive mutexes actually don't work." 31849#else 31850int x = (int)PTHREAD_MUTEX_RECURSIVE; 31851return !x; 31852#endif 31853 31854 ; 31855 return 0; 31856} 31857_ACEOF 31858if ac_fn_c_try_compile "$LINENO"; then : 31859 31860$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h 31861 31862fi 31863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31864 fi 31865 : 31866 31867 31868 31869cat >>confdefs.h <<_ACEOF 31870#define GNULIB_LOCK 1 31871_ACEOF 31872 31873 31874 31875 31876 31877 31878 if test $ac_cv_func_lstat = yes; then 31879 31880 case $host_os,$gl_cv_func_lstat_dereferences_slashed_symlink in 31881 solaris* | *no) 31882 REPLACE_LSTAT=1 31883 ;; 31884 esac 31885 else 31886 HAVE_LSTAT=0 31887 fi 31888 31889 if test $REPLACE_LSTAT = 1; then 31890 31891 31892 31893 31894 31895 31896 31897 31898 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext" 31899 31900 : 31901 fi 31902 31903 31904 31905 31906 31907 GNULIB_LSTAT=1 31908 31909 31910 31911 31912 31913$as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h 31914 31915 31916 31917 31918 31919 31920 31921 31922 31923 31924 31925 : 31926 31927 31928 31929 31930 31931 31932 31933 31934 31935 31936 31937 31938 31939 31940 if case "$host_os" in 31941 mingw*) true ;; 31942 *) test $ac_cv_func_mbsinit = yes ;; 31943 esac \ 31944 && test $ac_cv_func_mbrtowc = yes; then 31945 31946 31947 31948 31949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5 31950$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; } 31951if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then : 31952 $as_echo_n "(cached) " >&6 31953else 31954 31955 case "$host_os" in 31956 # Guess no on AIX and OSF/1. 31957 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;; 31958 # Guess yes otherwise. 31959 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;; 31960 esac 31961 if test $LOCALE_JA != none; then 31962 if test "$cross_compiling" = yes; then : 31963 : 31964else 31965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31966/* end confdefs.h. */ 31967 31968#include <locale.h> 31969#include <string.h> 31970/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 31971 <wchar.h>. 31972 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 31973 included before <wchar.h>. */ 31974#include <stddef.h> 31975#include <stdio.h> 31976#include <time.h> 31977#include <wchar.h> 31978int main () 31979{ 31980 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) 31981 { 31982 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */ 31983 mbstate_t state; 31984 wchar_t wc; 31985 31986 memset (&state, '\0', sizeof (mbstate_t)); 31987 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) 31988 if (mbsinit (&state)) 31989 return 2; 31990 } 31991 return 0; 31992} 31993_ACEOF 31994if ac_fn_c_try_run "$LINENO"; then : 31995 gl_cv_func_mbrtowc_incomplete_state=yes 31996else 31997 gl_cv_func_mbrtowc_incomplete_state=no 31998fi 31999rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 32000 conftest.$ac_objext conftest.beam conftest.$ac_ext 32001fi 32002 32003 else 32004 if test $LOCALE_FR_UTF8 != none; then 32005 if test "$cross_compiling" = yes; then : 32006 : 32007else 32008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32009/* end confdefs.h. */ 32010 32011#include <locale.h> 32012#include <string.h> 32013/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 32014 <wchar.h>. 32015 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 32016 included before <wchar.h>. */ 32017#include <stddef.h> 32018#include <stdio.h> 32019#include <time.h> 32020#include <wchar.h> 32021int main () 32022{ 32023 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) 32024 { 32025 const char input[] = "B\303\274\303\237er"; /* "Büßer" */ 32026 mbstate_t state; 32027 wchar_t wc; 32028 32029 memset (&state, '\0', sizeof (mbstate_t)); 32030 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) 32031 if (mbsinit (&state)) 32032 return 2; 32033 } 32034 return 0; 32035} 32036_ACEOF 32037if ac_fn_c_try_run "$LINENO"; then : 32038 gl_cv_func_mbrtowc_incomplete_state=yes 32039else 32040 gl_cv_func_mbrtowc_incomplete_state=no 32041fi 32042rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 32043 conftest.$ac_objext conftest.beam conftest.$ac_ext 32044fi 32045 32046 fi 32047 fi 32048 32049fi 32050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5 32051$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; } 32052 32053 32054 32055 32056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5 32057$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; } 32058if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then : 32059 $as_echo_n "(cached) " >&6 32060else 32061 32062 case "$host_os" in 32063 # Guess no on Solaris 8. 32064 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;; 32065 # Guess yes otherwise. 32066 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;; 32067 esac 32068 if test $LOCALE_ZH_CN != none; then 32069 if test "$cross_compiling" = yes; then : 32070 : 32071else 32072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32073/* end confdefs.h. */ 32074 32075#include <locale.h> 32076#include <stdlib.h> 32077#include <string.h> 32078/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 32079 <wchar.h>. 32080 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 32081 included before <wchar.h>. */ 32082#include <stddef.h> 32083#include <stdio.h> 32084#include <time.h> 32085#include <wchar.h> 32086int main () 32087{ 32088 /* This fails on Solaris 8: 32089 mbrtowc returns 2, and sets wc to 0x00F0. 32090 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */ 32091 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) 32092 { 32093 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */ 32094 mbstate_t state; 32095 wchar_t wc; 32096 32097 memset (&state, '\0', sizeof (mbstate_t)); 32098 if (mbrtowc (&wc, input + 3, 6, &state) != 4 32099 && mbtowc (&wc, input + 3, 6) == 4) 32100 return 2; 32101 } 32102 return 0; 32103} 32104_ACEOF 32105if ac_fn_c_try_run "$LINENO"; then : 32106 gl_cv_func_mbrtowc_sanitycheck=yes 32107else 32108 gl_cv_func_mbrtowc_sanitycheck=no 32109fi 32110rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 32111 conftest.$ac_objext conftest.beam conftest.$ac_ext 32112fi 32113 32114 fi 32115 32116fi 32117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5 32118$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; } 32119 32120 REPLACE_MBSTATE_T=0 32121 case "$gl_cv_func_mbrtowc_incomplete_state" in 32122 *yes) ;; 32123 *) REPLACE_MBSTATE_T=1 ;; 32124 esac 32125 case "$gl_cv_func_mbrtowc_sanitycheck" in 32126 *yes) ;; 32127 *) REPLACE_MBSTATE_T=1 ;; 32128 esac 32129 else 32130 REPLACE_MBSTATE_T=1 32131 fi 32132 32133 32134 32135 if test $ac_cv_func_mbrtowc = no; then 32136 HAVE_MBRTOWC=0 32137 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" " 32138/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 32139 <wchar.h>. 32140 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 32141 included before <wchar.h>. */ 32142#include <stddef.h> 32143#include <stdio.h> 32144#include <time.h> 32145#include <wchar.h> 32146 32147" 32148if test "x$ac_cv_have_decl_mbrtowc" = xyes; then : 32149 ac_have_decl=1 32150else 32151 ac_have_decl=0 32152fi 32153 32154cat >>confdefs.h <<_ACEOF 32155#define HAVE_DECL_MBRTOWC $ac_have_decl 32156_ACEOF 32157 32158 if test $ac_cv_have_decl_mbrtowc = yes; then 32159 REPLACE_MBRTOWC=1 32160 fi 32161 else 32162 if test $REPLACE_MBSTATE_T = 1; then 32163 REPLACE_MBRTOWC=1 32164 else 32165 32166 32167 32168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5 32169$as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; } 32170if ${gl_cv_func_mbrtowc_null_arg1+:} false; then : 32171 $as_echo_n "(cached) " >&6 32172else 32173 32174 case "$host_os" in 32175 # Guess no on Solaris. 32176 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;; 32177 # Guess yes otherwise. 32178 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;; 32179 esac 32180 if test $LOCALE_FR_UTF8 != none; then 32181 if test "$cross_compiling" = yes; then : 32182 : 32183else 32184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32185/* end confdefs.h. */ 32186 32187#include <locale.h> 32188#include <stdlib.h> 32189#include <string.h> 32190/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 32191 <wchar.h>. 32192 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 32193 included before <wchar.h>. */ 32194#include <stddef.h> 32195#include <stdio.h> 32196#include <time.h> 32197#include <wchar.h> 32198int main () 32199{ 32200 int result = 0; 32201 32202 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) 32203 { 32204 char input[] = "\303\237er"; 32205 mbstate_t state; 32206 wchar_t wc; 32207 size_t ret; 32208 32209 memset (&state, '\0', sizeof (mbstate_t)); 32210 wc = (wchar_t) 0xBADFACE; 32211 ret = mbrtowc (&wc, input, 5, &state); 32212 if (ret != 2) 32213 result |= 1; 32214 if (!mbsinit (&state)) 32215 result |= 2; 32216 32217 memset (&state, '\0', sizeof (mbstate_t)); 32218 ret = mbrtowc (NULL, input, 5, &state); 32219 if (ret != 2) /* Solaris 7 fails here: ret is -1. */ 32220 result |= 4; 32221 if (!mbsinit (&state)) 32222 result |= 8; 32223 } 32224 return result; 32225} 32226_ACEOF 32227if ac_fn_c_try_run "$LINENO"; then : 32228 gl_cv_func_mbrtowc_null_arg1=yes 32229else 32230 gl_cv_func_mbrtowc_null_arg1=no 32231fi 32232rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 32233 conftest.$ac_objext conftest.beam conftest.$ac_ext 32234fi 32235 32236 fi 32237 32238fi 32239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5 32240$as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; } 32241 32242 32243 32244 32245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5 32246$as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; } 32247if ${gl_cv_func_mbrtowc_null_arg2+:} false; then : 32248 $as_echo_n "(cached) " >&6 32249else 32250 32251 case "$host_os" in 32252 # Guess no on OSF/1. 32253 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;; 32254 # Guess yes otherwise. 32255 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;; 32256 esac 32257 if test $LOCALE_FR_UTF8 != none; then 32258 if test "$cross_compiling" = yes; then : 32259 : 32260else 32261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32262/* end confdefs.h. */ 32263 32264#include <locale.h> 32265#include <string.h> 32266/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 32267 <wchar.h>. 32268 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 32269 included before <wchar.h>. */ 32270#include <stddef.h> 32271#include <stdio.h> 32272#include <time.h> 32273#include <wchar.h> 32274int main () 32275{ 32276 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) 32277 { 32278 mbstate_t state; 32279 wchar_t wc; 32280 int ret; 32281 32282 memset (&state, '\0', sizeof (mbstate_t)); 32283 wc = (wchar_t) 0xBADFACE; 32284 mbrtowc (&wc, NULL, 5, &state); 32285 /* Check that wc was not modified. */ 32286 if (wc != (wchar_t) 0xBADFACE) 32287 return 2; 32288 } 32289 return 0; 32290} 32291_ACEOF 32292if ac_fn_c_try_run "$LINENO"; then : 32293 gl_cv_func_mbrtowc_null_arg2=yes 32294else 32295 gl_cv_func_mbrtowc_null_arg2=no 32296fi 32297rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 32298 conftest.$ac_objext conftest.beam conftest.$ac_ext 32299fi 32300 32301 fi 32302 32303fi 32304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5 32305$as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; } 32306 32307 32308 32309 32310 32311 32312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5 32313$as_echo_n "checking whether mbrtowc has a correct return value... " >&6; } 32314if ${gl_cv_func_mbrtowc_retval+:} false; then : 32315 $as_echo_n "(cached) " >&6 32316else 32317 32318 case "$host_os" in 32319 # Guess no on HP-UX, Solaris, native Windows. 32320 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;; 32321 # Guess yes otherwise. 32322 *) gl_cv_func_mbrtowc_retval="guessing yes" ;; 32323 esac 32324 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \ 32325 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then 32326 if test "$cross_compiling" = yes; then : 32327 : 32328else 32329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32330/* end confdefs.h. */ 32331 32332#include <locale.h> 32333#include <string.h> 32334/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 32335 <wchar.h>. 32336 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 32337 included before <wchar.h>. */ 32338#include <stddef.h> 32339#include <stdio.h> 32340#include <time.h> 32341#include <wchar.h> 32342int main () 32343{ 32344 int result = 0; 32345 int found_some_locale = 0; 32346 /* This fails on Solaris. */ 32347 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) 32348 { 32349 char input[] = "B\303\274\303\237er"; /* "Büßer" */ 32350 mbstate_t state; 32351 wchar_t wc; 32352 32353 memset (&state, '\0', sizeof (mbstate_t)); 32354 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) 32355 { 32356 input[1] = '\0'; 32357 if (mbrtowc (&wc, input + 2, 5, &state) != 1) 32358 result |= 1; 32359 } 32360 found_some_locale = 1; 32361 } 32362 /* This fails on HP-UX 11.11. */ 32363 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) 32364 { 32365 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */ 32366 mbstate_t state; 32367 wchar_t wc; 32368 32369 memset (&state, '\0', sizeof (mbstate_t)); 32370 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) 32371 { 32372 input[1] = '\0'; 32373 if (mbrtowc (&wc, input + 2, 5, &state) != 2) 32374 result |= 2; 32375 } 32376 found_some_locale = 1; 32377 } 32378 /* This fails on native Windows. */ 32379 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL) 32380 { 32381 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */ 32382 mbstate_t state; 32383 wchar_t wc; 32384 32385 memset (&state, '\0', sizeof (mbstate_t)); 32386 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2)) 32387 { 32388 input[3] = '\0'; 32389 if (mbrtowc (&wc, input + 4, 4, &state) != 1) 32390 result |= 4; 32391 } 32392 found_some_locale = 1; 32393 } 32394 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL) 32395 { 32396 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */ 32397 mbstate_t state; 32398 wchar_t wc; 32399 32400 memset (&state, '\0', sizeof (mbstate_t)); 32401 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2)) 32402 { 32403 input[3] = '\0'; 32404 if (mbrtowc (&wc, input + 4, 4, &state) != 1) 32405 result |= 8; 32406 } 32407 found_some_locale = 1; 32408 } 32409 if (setlocale (LC_ALL, "Chinese_China.936") != NULL) 32410 { 32411 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */ 32412 mbstate_t state; 32413 wchar_t wc; 32414 32415 memset (&state, '\0', sizeof (mbstate_t)); 32416 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2)) 32417 { 32418 input[3] = '\0'; 32419 if (mbrtowc (&wc, input + 4, 4, &state) != 1) 32420 result |= 16; 32421 } 32422 found_some_locale = 1; 32423 } 32424 return (found_some_locale ? result : 77); 32425} 32426_ACEOF 32427if ac_fn_c_try_run "$LINENO"; then : 32428 gl_cv_func_mbrtowc_retval=yes 32429else 32430 if test $? != 77; then 32431 gl_cv_func_mbrtowc_retval=no 32432 fi 32433 32434fi 32435rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 32436 conftest.$ac_objext conftest.beam conftest.$ac_ext 32437fi 32438 32439 fi 32440 32441fi 32442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5 32443$as_echo "$gl_cv_func_mbrtowc_retval" >&6; } 32444 32445 32446 32447 32448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5 32449$as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; } 32450if ${gl_cv_func_mbrtowc_nul_retval+:} false; then : 32451 $as_echo_n "(cached) " >&6 32452else 32453 32454 case "$host_os" in 32455 # Guess no on Solaris 8 and 9. 32456 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;; 32457 # Guess yes otherwise. 32458 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;; 32459 esac 32460 if test $LOCALE_ZH_CN != none; then 32461 if test "$cross_compiling" = yes; then : 32462 : 32463else 32464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32465/* end confdefs.h. */ 32466 32467#include <locale.h> 32468#include <string.h> 32469/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 32470 <wchar.h>. 32471 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 32472 included before <wchar.h>. */ 32473#include <stddef.h> 32474#include <stdio.h> 32475#include <time.h> 32476#include <wchar.h> 32477int main () 32478{ 32479 /* This fails on Solaris 8 and 9. */ 32480 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) 32481 { 32482 mbstate_t state; 32483 wchar_t wc; 32484 32485 memset (&state, '\0', sizeof (mbstate_t)); 32486 if (mbrtowc (&wc, "", 1, &state) != 0) 32487 return 2; 32488 } 32489 return 0; 32490} 32491_ACEOF 32492if ac_fn_c_try_run "$LINENO"; then : 32493 gl_cv_func_mbrtowc_nul_retval=yes 32494else 32495 gl_cv_func_mbrtowc_nul_retval=no 32496fi 32497rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 32498 conftest.$ac_objext conftest.beam conftest.$ac_ext 32499fi 32500 32501 fi 32502 32503fi 32504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5 32505$as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; } 32506 32507 32508 32509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc stores incomplete characters" >&5 32510$as_echo_n "checking whether mbrtowc stores incomplete characters... " >&6; } 32511if ${gl_cv_func_mbrtowc_stores_incomplete+:} false; then : 32512 $as_echo_n "(cached) " >&6 32513else 32514 32515 case "$host_os" in 32516 # Guess yes on native Windows. 32517 mingw*) gl_cv_func_mbrtowc_stores_incomplete="guessing yes" ;; 32518 *) gl_cv_func_mbrtowc_stores_incomplete="guessing no" ;; 32519 esac 32520 case "$host_os" in 32521 mingw*) 32522 if test "$cross_compiling" = yes; then : 32523 : 32524else 32525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32526/* end confdefs.h. */ 32527 32528#include <locale.h> 32529#include <string.h> 32530/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 32531 <wchar.h>. 32532 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 32533 included before <wchar.h>. */ 32534#include <stddef.h> 32535#include <stdio.h> 32536#include <time.h> 32537#include <wchar.h> 32538int main () 32539{ 32540 int result = 0; 32541 if (setlocale (LC_ALL, "French_France.65001") != NULL) 32542 { 32543 wchar_t wc = (wchar_t) 0xBADFACE; 32544 mbstate_t state; 32545 32546 memset (&state, '\0', sizeof (mbstate_t)); 32547 if (mbrtowc (&wc, "\303", 1, &state) == (size_t)(-2) 32548 && wc != (wchar_t) 0xBADFACE) 32549 result |= 1; 32550 } 32551 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL) 32552 { 32553 wchar_t wc = (wchar_t) 0xBADFACE; 32554 mbstate_t state; 32555 32556 memset (&state, '\0', sizeof (mbstate_t)); 32557 if (mbrtowc (&wc, "\226", 1, &state) == (size_t)(-2) 32558 && wc != (wchar_t) 0xBADFACE) 32559 result |= 2; 32560 } 32561 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL) 32562 { 32563 wchar_t wc = (wchar_t) 0xBADFACE; 32564 mbstate_t state; 32565 32566 memset (&state, '\0', sizeof (mbstate_t)); 32567 if (mbrtowc (&wc, "\245", 1, &state) == (size_t)(-2) 32568 && wc != (wchar_t) 0xBADFACE) 32569 result |= 4; 32570 } 32571 if (setlocale (LC_ALL, "Chinese_China.936") != NULL) 32572 { 32573 wchar_t wc = (wchar_t) 0xBADFACE; 32574 mbstate_t state; 32575 32576 memset (&state, '\0', sizeof (mbstate_t)); 32577 if (mbrtowc (&wc, "\261", 1, &state) == (size_t)(-2) 32578 && wc != (wchar_t) 0xBADFACE) 32579 result |= 8; 32580 } 32581 return result; 32582} 32583_ACEOF 32584if ac_fn_c_try_run "$LINENO"; then : 32585 gl_cv_func_mbrtowc_stores_incomplete=no 32586else 32587 gl_cv_func_mbrtowc_stores_incomplete=yes 32588fi 32589rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 32590 conftest.$ac_objext conftest.beam conftest.$ac_ext 32591fi 32592 32593 ;; 32594 *) 32595 32596 if test $LOCALE_FR_UTF8 != none; then 32597 if test "$cross_compiling" = yes; then : 32598 : 32599else 32600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32601/* end confdefs.h. */ 32602 32603#include <locale.h> 32604#include <string.h> 32605/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 32606 <wchar.h>. 32607 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 32608 included before <wchar.h>. */ 32609#include <stddef.h> 32610#include <stdio.h> 32611#include <time.h> 32612#include <wchar.h> 32613int main () 32614{ 32615 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) 32616 { 32617 wchar_t wc = (wchar_t) 0xBADFACE; 32618 mbstate_t state; 32619 32620 memset (&state, '\0', sizeof (mbstate_t)); 32621 if (mbrtowc (&wc, "\303", 1, &state) == (size_t)(-2) 32622 && wc != (wchar_t) 0xBADFACE) 32623 return 1; 32624 } 32625 return 0; 32626} 32627_ACEOF 32628if ac_fn_c_try_run "$LINENO"; then : 32629 gl_cv_func_mbrtowc_stores_incomplete=no 32630else 32631 gl_cv_func_mbrtowc_stores_incomplete=yes 32632fi 32633rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 32634 conftest.$ac_objext conftest.beam conftest.$ac_ext 32635fi 32636 32637 fi 32638 ;; 32639 esac 32640 32641fi 32642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_stores_incomplete" >&5 32643$as_echo "$gl_cv_func_mbrtowc_stores_incomplete" >&6; } 32644 32645 32646 32647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5 32648$as_echo_n "checking whether mbrtowc works on empty input... " >&6; } 32649if ${gl_cv_func_mbrtowc_empty_input+:} false; then : 32650 $as_echo_n "(cached) " >&6 32651else 32652 32653 case "$host_os" in 32654 # Guess no on AIX and glibc systems. 32655 aix* | *-gnu* | gnu*) gl_cv_func_mbrtowc_empty_input="guessing no" ;; 32656 # Guess yes on native Windows. 32657 mingw*) gl_cv_func_mbrtowc_empty_input="guessing yes" ;; 32658 *) gl_cv_func_mbrtowc_empty_input="guessing yes" ;; 32659 esac 32660 if test "$cross_compiling" = yes; then : 32661 : 32662else 32663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32664/* end confdefs.h. */ 32665 32666 #include <wchar.h> 32667 static wchar_t wc; 32668 static mbstate_t mbs; 32669 int 32670 main (void) 32671 { 32672 return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2; 32673 } 32674_ACEOF 32675if ac_fn_c_try_run "$LINENO"; then : 32676 gl_cv_func_mbrtowc_empty_input=yes 32677else 32678 gl_cv_func_mbrtowc_empty_input=no 32679fi 32680rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 32681 conftest.$ac_objext conftest.beam conftest.$ac_ext 32682fi 32683 32684 32685fi 32686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5 32687$as_echo "$gl_cv_func_mbrtowc_empty_input" >&6; } 32688 32689 32690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C locale is free of encoding errors" >&5 32691$as_echo_n "checking whether the C locale is free of encoding errors... " >&6; } 32692if ${gl_cv_func_mbrtowc_C_locale_sans_EILSEQ+:} false; then : 32693 $as_echo_n "(cached) " >&6 32694else 32695 32696 gl_cv_func_mbrtowc_C_locale_sans_EILSEQ="$gl_cross_guess_normal" 32697 32698 if test "$cross_compiling" = yes; then : 32699 case "$host_os" in 32700 # Guess yes on native Windows. 32701 mingw*) gl_cv_func_mbrtowc_C_locale_sans_EILSEQ="guessing yes" ;; 32702 esac 32703 32704else 32705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32706/* end confdefs.h. */ 32707#include <limits.h> 32708 #include <locale.h> 32709 #include <wchar.h> 32710 32711int 32712main () 32713{ 32714 32715 int i; 32716 char *locale = setlocale (LC_ALL, "C"); 32717 if (! locale) 32718 return 2; 32719 for (i = CHAR_MIN; i <= CHAR_MAX; i++) 32720 { 32721 char c = i; 32722 wchar_t wc; 32723 mbstate_t mbs = { 0, }; 32724 size_t ss = mbrtowc (&wc, &c, 1, &mbs); 32725 if (1 < ss) 32726 return 3; 32727 } 32728 return 0; 32729 32730 ; 32731 return 0; 32732} 32733_ACEOF 32734if ac_fn_c_try_run "$LINENO"; then : 32735 gl_cv_func_mbrtowc_C_locale_sans_EILSEQ=yes 32736else 32737 gl_cv_func_mbrtowc_C_locale_sans_EILSEQ=no 32738fi 32739rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 32740 conftest.$ac_objext conftest.beam conftest.$ac_ext 32741fi 32742 32743 32744fi 32745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" >&5 32746$as_echo "$gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" >&6; } 32747 32748 case "$gl_cv_func_mbrtowc_null_arg1" in 32749 *yes) ;; 32750 *) 32751$as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h 32752 32753 REPLACE_MBRTOWC=1 32754 ;; 32755 esac 32756 case "$gl_cv_func_mbrtowc_null_arg2" in 32757 *yes) ;; 32758 *) 32759$as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h 32760 32761 REPLACE_MBRTOWC=1 32762 ;; 32763 esac 32764 case "$gl_cv_func_mbrtowc_retval" in 32765 *yes) ;; 32766 *) 32767$as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h 32768 32769 REPLACE_MBRTOWC=1 32770 ;; 32771 esac 32772 case "$gl_cv_func_mbrtowc_nul_retval" in 32773 *yes) ;; 32774 *) 32775$as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h 32776 32777 REPLACE_MBRTOWC=1 32778 ;; 32779 esac 32780 case "$gl_cv_func_mbrtowc_stores_incomplete" in 32781 *no) ;; 32782 *) 32783$as_echo "#define MBRTOWC_STORES_INCOMPLETE_BUG 1" >>confdefs.h 32784 32785 REPLACE_MBRTOWC=1 32786 ;; 32787 esac 32788 case "$gl_cv_func_mbrtowc_empty_input" in 32789 *yes) ;; 32790 *) 32791$as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h 32792 32793 REPLACE_MBRTOWC=1 32794 ;; 32795 esac 32796 case "$gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" in 32797 *yes) ;; 32798 *) 32799$as_echo "#define MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ 1" >>confdefs.h 32800 32801 REPLACE_MBRTOWC=1 32802 ;; 32803 esac 32804 fi 32805 fi 32806 if test $REPLACE_MBSTATE_T = 1; then 32807 case "$host_os" in 32808 mingw*) LIB_MBRTOWC= ;; 32809 *) 32810 32811 32812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5 32813$as_echo_n "checking whether imported symbols can be declared weak... " >&6; } 32814if ${gl_cv_have_weak+:} false; then : 32815 $as_echo_n "(cached) " >&6 32816else 32817 gl_cv_have_weak=no 32818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32819/* end confdefs.h. */ 32820extern void xyzzy (); 32821#pragma weak xyzzy 32822int 32823main () 32824{ 32825xyzzy(); 32826 ; 32827 return 0; 32828} 32829_ACEOF 32830if ac_fn_c_try_link "$LINENO"; then : 32831 gl_cv_have_weak=maybe 32832fi 32833rm -f core conftest.err conftest.$ac_objext \ 32834 conftest$ac_exeext conftest.$ac_ext 32835 if test $gl_cv_have_weak = maybe; then 32836 if test "$cross_compiling" = yes; then : 32837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32838/* end confdefs.h. */ 32839#ifdef __ELF__ 32840 Extensible Linking Format 32841 #endif 32842 32843_ACEOF 32844if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 32845 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then : 32846 gl_cv_have_weak="guessing yes" 32847else 32848 gl_cv_have_weak="guessing no" 32849fi 32850rm -f conftest* 32851 32852 32853else 32854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32855/* end confdefs.h. */ 32856 32857#include <stdio.h> 32858#pragma weak fputs 32859int main () 32860{ 32861 return (fputs == NULL); 32862} 32863_ACEOF 32864if ac_fn_c_try_run "$LINENO"; then : 32865 gl_cv_have_weak=yes 32866else 32867 gl_cv_have_weak=no 32868fi 32869rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 32870 conftest.$ac_objext conftest.beam conftest.$ac_ext 32871fi 32872 32873 fi 32874 case " $LDFLAGS " in 32875 *" -static "*) gl_cv_have_weak=no ;; 32876 esac 32877 case "$gl_cv_have_weak" in 32878 *yes) 32879 case "$host_os" in 32880 freebsd* | dragonfly*) 32881 : > conftest1.c 32882 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c -lpthread >&5 2>&1 32883 cat <<EOF > conftest2.c 32884#include <pthread.h> 32885#pragma weak pthread_mutexattr_gettype 32886int main () 32887{ 32888 return (pthread_mutexattr_gettype != NULL); 32889} 32890EOF 32891 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so >&5 2>&1 \ 32892 || gl_cv_have_weak=no 32893 rm -f conftest1.c libempty.so conftest2.c conftest 32894 ;; 32895 esac 32896 ;; 32897 esac 32898 32899fi 32900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5 32901$as_echo "$gl_cv_have_weak" >&6; } 32902 case "$gl_cv_have_weak" in 32903 *yes) 32904 32905$as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h 32906 32907 ;; 32908 esac 32909 32910 case "$gl_cv_have_weak" in 32911 *yes) LIB_MBRTOWC= ;; 32912 *) LIB_MBRTOWC="$LIBPTHREAD" ;; 32913 esac 32914 ;; 32915 esac 32916 else 32917 LIB_MBRTOWC= 32918 fi 32919 32920 32921 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then 32922 32923 32924 32925 32926 32927 32928 32929 32930 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext" 32931 32932 if test $REPLACE_MBSTATE_T = 1; then 32933 32934 32935 32936 32937 32938 32939 32940 32941 gl_LIBOBJS="$gl_LIBOBJS lc-charset-dispatch.$ac_objext" 32942 32943 32944 32945 32946 32947 32948 32949 32950 32951 gl_LIBOBJS="$gl_LIBOBJS mbtowc-lock.$ac_objext" 32952 32953 32954 32955 32956 CFLAG_VISIBILITY= 32957 HAVE_VISIBILITY=0 32958 if test -n "$GCC"; then 32959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5 32960$as_echo_n "checking whether the -Werror option is usable... " >&6; } 32961if ${gl_cv_cc_vis_werror+:} false; then : 32962 $as_echo_n "(cached) " >&6 32963else 32964 gl_save_CFLAGS="$CFLAGS" 32965 CFLAGS="$CFLAGS -Werror" 32966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32967/* end confdefs.h. */ 32968 32969int 32970main () 32971{ 32972 32973 ; 32974 return 0; 32975} 32976_ACEOF 32977if ac_fn_c_try_compile "$LINENO"; then : 32978 gl_cv_cc_vis_werror=yes 32979else 32980 gl_cv_cc_vis_werror=no 32981fi 32982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32983 CFLAGS="$gl_save_CFLAGS" 32984 32985fi 32986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5 32987$as_echo "$gl_cv_cc_vis_werror" >&6; } 32988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 32989$as_echo_n "checking for simple visibility declarations... " >&6; } 32990if ${gl_cv_cc_visibility+:} false; then : 32991 $as_echo_n "(cached) " >&6 32992else 32993 gl_save_CFLAGS="$CFLAGS" 32994 CFLAGS="$CFLAGS -fvisibility=hidden" 32995 if test $gl_cv_cc_vis_werror = yes; then 32996 CFLAGS="$CFLAGS -Werror" 32997 fi 32998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32999/* end confdefs.h. */ 33000extern __attribute__((__visibility__("hidden"))) int hiddenvar; 33001 extern __attribute__((__visibility__("default"))) int exportedvar; 33002 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); 33003 extern __attribute__((__visibility__("default"))) int exportedfunc (void); 33004 void dummyfunc (void) {} 33005 33006int 33007main () 33008{ 33009 33010 ; 33011 return 0; 33012} 33013_ACEOF 33014if ac_fn_c_try_compile "$LINENO"; then : 33015 gl_cv_cc_visibility=yes 33016else 33017 gl_cv_cc_visibility=no 33018fi 33019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33020 CFLAGS="$gl_save_CFLAGS" 33021 33022fi 33023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 33024$as_echo "$gl_cv_cc_visibility" >&6; } 33025 if test $gl_cv_cc_visibility = yes; then 33026 CFLAG_VISIBILITY="-fvisibility=hidden" 33027 HAVE_VISIBILITY=1 33028 fi 33029 fi 33030 33031 33032 33033cat >>confdefs.h <<_ACEOF 33034#define HAVE_VISIBILITY $HAVE_VISIBILITY 33035_ACEOF 33036 33037 33038 33039 fi 33040 33041 33042 : 33043 33044 fi 33045 33046 33047 33048 33049 33050 GNULIB_MBRTOWC=1 33051 33052 33053 33054 33055 33056$as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h 33057 33058 33059 33060 33061 33062 33063 33064 33065 33066 33067 33068 33069 33070 33071 33072 if case "$host_os" in 33073 mingw*) true ;; 33074 *) test $ac_cv_func_mbsinit = yes ;; 33075 esac \ 33076 && test $ac_cv_func_mbrtowc = yes; then 33077 33078 33079 33080 33081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5 33082$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; } 33083if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then : 33084 $as_echo_n "(cached) " >&6 33085else 33086 33087 case "$host_os" in 33088 # Guess no on AIX and OSF/1. 33089 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;; 33090 # Guess yes otherwise. 33091 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;; 33092 esac 33093 if test $LOCALE_JA != none; then 33094 if test "$cross_compiling" = yes; then : 33095 : 33096else 33097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33098/* end confdefs.h. */ 33099 33100#include <locale.h> 33101#include <string.h> 33102/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 33103 <wchar.h>. 33104 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 33105 included before <wchar.h>. */ 33106#include <stddef.h> 33107#include <stdio.h> 33108#include <time.h> 33109#include <wchar.h> 33110int main () 33111{ 33112 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) 33113 { 33114 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */ 33115 mbstate_t state; 33116 wchar_t wc; 33117 33118 memset (&state, '\0', sizeof (mbstate_t)); 33119 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) 33120 if (mbsinit (&state)) 33121 return 2; 33122 } 33123 return 0; 33124} 33125_ACEOF 33126if ac_fn_c_try_run "$LINENO"; then : 33127 gl_cv_func_mbrtowc_incomplete_state=yes 33128else 33129 gl_cv_func_mbrtowc_incomplete_state=no 33130fi 33131rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 33132 conftest.$ac_objext conftest.beam conftest.$ac_ext 33133fi 33134 33135 else 33136 if test $LOCALE_FR_UTF8 != none; then 33137 if test "$cross_compiling" = yes; then : 33138 : 33139else 33140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33141/* end confdefs.h. */ 33142 33143#include <locale.h> 33144#include <string.h> 33145/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 33146 <wchar.h>. 33147 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 33148 included before <wchar.h>. */ 33149#include <stddef.h> 33150#include <stdio.h> 33151#include <time.h> 33152#include <wchar.h> 33153int main () 33154{ 33155 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) 33156 { 33157 const char input[] = "B\303\274\303\237er"; /* "Büßer" */ 33158 mbstate_t state; 33159 wchar_t wc; 33160 33161 memset (&state, '\0', sizeof (mbstate_t)); 33162 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) 33163 if (mbsinit (&state)) 33164 return 2; 33165 } 33166 return 0; 33167} 33168_ACEOF 33169if ac_fn_c_try_run "$LINENO"; then : 33170 gl_cv_func_mbrtowc_incomplete_state=yes 33171else 33172 gl_cv_func_mbrtowc_incomplete_state=no 33173fi 33174rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 33175 conftest.$ac_objext conftest.beam conftest.$ac_ext 33176fi 33177 33178 fi 33179 fi 33180 33181fi 33182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5 33183$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; } 33184 33185 33186 33187 33188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5 33189$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; } 33190if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then : 33191 $as_echo_n "(cached) " >&6 33192else 33193 33194 case "$host_os" in 33195 # Guess no on Solaris 8. 33196 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;; 33197 # Guess yes otherwise. 33198 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;; 33199 esac 33200 if test $LOCALE_ZH_CN != none; then 33201 if test "$cross_compiling" = yes; then : 33202 : 33203else 33204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33205/* end confdefs.h. */ 33206 33207#include <locale.h> 33208#include <stdlib.h> 33209#include <string.h> 33210/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 33211 <wchar.h>. 33212 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 33213 included before <wchar.h>. */ 33214#include <stddef.h> 33215#include <stdio.h> 33216#include <time.h> 33217#include <wchar.h> 33218int main () 33219{ 33220 /* This fails on Solaris 8: 33221 mbrtowc returns 2, and sets wc to 0x00F0. 33222 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */ 33223 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) 33224 { 33225 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */ 33226 mbstate_t state; 33227 wchar_t wc; 33228 33229 memset (&state, '\0', sizeof (mbstate_t)); 33230 if (mbrtowc (&wc, input + 3, 6, &state) != 4 33231 && mbtowc (&wc, input + 3, 6) == 4) 33232 return 2; 33233 } 33234 return 0; 33235} 33236_ACEOF 33237if ac_fn_c_try_run "$LINENO"; then : 33238 gl_cv_func_mbrtowc_sanitycheck=yes 33239else 33240 gl_cv_func_mbrtowc_sanitycheck=no 33241fi 33242rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 33243 conftest.$ac_objext conftest.beam conftest.$ac_ext 33244fi 33245 33246 fi 33247 33248fi 33249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5 33250$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; } 33251 33252 REPLACE_MBSTATE_T=0 33253 case "$gl_cv_func_mbrtowc_incomplete_state" in 33254 *yes) ;; 33255 *) REPLACE_MBSTATE_T=1 ;; 33256 esac 33257 case "$gl_cv_func_mbrtowc_sanitycheck" in 33258 *yes) ;; 33259 *) REPLACE_MBSTATE_T=1 ;; 33260 esac 33261 else 33262 REPLACE_MBSTATE_T=1 33263 fi 33264 33265 33266 33267 if test $ac_cv_func_mbsinit = no; then 33268 HAVE_MBSINIT=0 33269 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" " 33270/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 33271 <wchar.h>. 33272 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 33273 included before <wchar.h>. */ 33274#include <stddef.h> 33275#include <stdio.h> 33276#include <time.h> 33277#include <wchar.h> 33278 33279" 33280if test "x$ac_cv_have_decl_mbsinit" = xyes; then : 33281 ac_have_decl=1 33282else 33283 ac_have_decl=0 33284fi 33285 33286cat >>confdefs.h <<_ACEOF 33287#define HAVE_DECL_MBSINIT $ac_have_decl 33288_ACEOF 33289 33290 if test $ac_cv_have_decl_mbsinit = yes; then 33291 REPLACE_MBSINIT=1 33292 fi 33293 else 33294 if test $REPLACE_MBSTATE_T = 1; then 33295 REPLACE_MBSINIT=1 33296 else 33297 case "$host_os" in 33298 mingw*) REPLACE_MBSINIT=1 ;; 33299 esac 33300 fi 33301 fi 33302 33303 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then 33304 33305 33306 33307 33308 33309 33310 33311 33312 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext" 33313 33314 33315 : 33316 33317 fi 33318 33319 33320 33321 33322 33323 GNULIB_MBSINIT=1 33324 33325 33326 33327 33328 33329$as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h 33330 33331 33332 33333 33334 33335 33336 if test $ac_cv_func_mbslen = yes; then 33337 HAVE_MBSLEN=1 33338 else 33339 HAVE_MBSLEN=0 33340 fi 33341 33342 33343 33344 33345 33346 33347 GNULIB_MBSLEN=1 33348 33349 33350 33351 33352 33353$as_echo "#define GNULIB_TEST_MBSLEN 1" >>confdefs.h 33354 33355 33356 33357 33358 33359 33360 33361 33362 GNULIB_MBSSTR=1 33363 33364 33365 33366 33367 33368$as_echo "#define GNULIB_TEST_MBSSTR 1" >>confdefs.h 33369 33370 33371 33372 33373 33374 : 33375 33376 33377 if test $REPLACE_MEMCHR = 1; then 33378 33379 33380 33381 33382 33383 33384 33385 33386 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext" 33387 33388 33389 for ac_header in bp-sym.h 33390do : 33391 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default" 33392if test "x$ac_cv_header_bp_sym_h" = xyes; then : 33393 cat >>confdefs.h <<_ACEOF 33394#define HAVE_BP_SYM_H 1 33395_ACEOF 33396 33397fi 33398 33399done 33400 33401 33402 fi 33403 33404 33405 33406 33407 33408 GNULIB_MEMCHR=1 33409 33410 33411 33412 33413 33414$as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h 33415 33416 33417 33418 33419 for ac_func in memmove 33420do : 33421 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" 33422if test "x$ac_cv_func_memmove" = xyes; then : 33423 cat >>confdefs.h <<_ACEOF 33424#define HAVE_MEMMOVE 1 33425_ACEOF 33426 33427fi 33428done 33429 33430 33431 if test $ac_cv_func_memmove = no; then 33432 33433 33434 33435 33436 33437 33438 33439 33440 gl_LIBOBJS="$gl_LIBOBJS memmove.$ac_objext" 33441 33442 33443 : 33444 33445 fi 33446 33447 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then 33448 33449 33450 33451 33452 33453 33454 33455 33456 gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext" 33457 33458 fi 33459 33460 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then 33461 33462 33463 33464 33465 33466 33467 33468 33469 gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext" 33470 33471 fi 33472 33473 33474cat >>confdefs.h <<_ACEOF 33475#define GNULIB_MSVC_NOTHROW 1 33476_ACEOF 33477 33478 33479 33480 33481 33482 33483 case "$host_os" in 33484 mingw* | pw*) 33485 REPLACE_OPEN=1 33486 ;; 33487 *) 33488 33489 if test "$gl_cv_macro_O_CLOEXEC" != yes; then 33490 REPLACE_OPEN=1 33491 fi 33492 33493 33494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5 33495$as_echo_n "checking whether open recognizes a trailing slash... " >&6; } 33496if ${gl_cv_func_open_slash+:} false; then : 33497 $as_echo_n "(cached) " >&6 33498else 33499 # Assume that if we have lstat, we can also check symlinks. 33500 if test $ac_cv_func_lstat = yes; then 33501 touch conftest.tmp 33502 ln -s conftest.tmp conftest.lnk 33503 fi 33504 if test "$cross_compiling" = yes; then : 33505 33506 case "$host_os" in 33507 freebsd* | aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*) 33508 gl_cv_func_open_slash="guessing no" ;; 33509 *) 33510 gl_cv_func_open_slash="guessing yes" ;; 33511 esac 33512 33513else 33514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33515/* end confdefs.h. */ 33516 33517#include <fcntl.h> 33518#if HAVE_UNISTD_H 33519# include <unistd.h> 33520#endif 33521int main () 33522{ 33523 int result = 0; 33524#if HAVE_LSTAT 33525 if (open ("conftest.lnk/", O_RDONLY) != -1) 33526 result |= 1; 33527#endif 33528 if (open ("conftest.sl/", O_CREAT, 0600) >= 0) 33529 result |= 2; 33530 return result; 33531} 33532_ACEOF 33533if ac_fn_c_try_run "$LINENO"; then : 33534 gl_cv_func_open_slash=yes 33535else 33536 gl_cv_func_open_slash=no 33537fi 33538rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 33539 conftest.$ac_objext conftest.beam conftest.$ac_ext 33540fi 33541 33542 rm -f conftest.sl conftest.tmp conftest.lnk 33543 33544fi 33545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5 33546$as_echo "$gl_cv_func_open_slash" >&6; } 33547 case "$gl_cv_func_open_slash" in 33548 *no) 33549 33550$as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h 33551 33552 ;; 33553 esac 33554 33555 case "$gl_cv_func_open_slash" in 33556 *no) 33557 REPLACE_OPEN=1 33558 ;; 33559 esac 33560 ;; 33561 esac 33562 33563 33564 33565 if test $REPLACE_OPEN = 1; then 33566 33567 33568 33569 33570 33571 33572 33573 33574 gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext" 33575 33576 33577 33578 : 33579 33580 fi 33581 33582 33583 33584 33585 33586 GNULIB_OPEN=1 33587 33588 33589 33590 33591 33592$as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h 33593 33594 33595 33596 33597 33598 33599 ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h> 33600" 33601if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then : 33602 ac_have_decl=1 33603else 33604 ac_have_decl=0 33605fi 33606 33607cat >>confdefs.h <<_ACEOF 33608#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl 33609_ACEOF 33610 33611 ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h> 33612" 33613if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then : 33614 ac_have_decl=1 33615else 33616 ac_have_decl=0 33617fi 33618 33619cat >>confdefs.h <<_ACEOF 33620#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl 33621_ACEOF 33622 33623 33624 33625 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --keyword='proper_name:1,\"This is a proper name. See the gettext manual, section Names.\"'" 33626 33627 33628 33629 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --keyword='proper_name_utf8:1,\"This is a proper name. See the gettext manual, section Names.\"'" 33630 33631 33632 33633 33634 for ac_func in raise 33635do : 33636 ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise" 33637if test "x$ac_cv_func_raise" = xyes; then : 33638 cat >>confdefs.h <<_ACEOF 33639#define HAVE_RAISE 1 33640_ACEOF 33641 33642fi 33643done 33644 33645 if test $ac_cv_func_raise = no; then 33646 HAVE_RAISE=0 33647 else 33648 33649 33650 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then 33651 REPLACE_RAISE=1 33652 fi 33653 33654 33655 33656 33657 33658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigprocmask" >&5 33659$as_echo_n "checking for sigprocmask... " >&6; } 33660if ${gl_cv_func_sigprocmask+:} false; then : 33661 $as_echo_n "(cached) " >&6 33662else 33663 if test $gl_cv_type_sigset_t = yes; then 33664 33665 { 33666 33667 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask" 33668if test "x$ac_cv_func_sigprocmask" = xyes; then : 33669 gl_cv_func_sigprocmask=yes 33670else 33671 gl_cv_func_sigprocmask=no 33672fi 33673 33674 33675 } 6>/dev/null 33676 33677 else 33678 gl_cv_func_sigprocmask=no 33679 fi 33680 33681fi 33682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_sigprocmask" >&5 33683$as_echo "$gl_cv_func_sigprocmask" >&6; } 33684 if test $gl_cv_func_sigprocmask != yes; then 33685 HAVE_POSIX_SIGNALBLOCKING=0 33686 fi 33687 33688 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then 33689 33690 33691 33692 33693 if test $gl_cv_header_signal_h_SIGPIPE != yes; then 33694 REPLACE_RAISE=1 33695 fi 33696 33697 fi 33698 33699 fi 33700 33701 if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then 33702 33703 33704 33705 33706 33707 33708 33709 33710 gl_LIBOBJS="$gl_LIBOBJS raise.$ac_objext" 33711 33712 : 33713 fi 33714 33715 33716 33717 33718 33719 GNULIB_RAISE=1 33720 33721 33722 33723 33724 33725$as_echo "#define GNULIB_TEST_RAISE 1" >>confdefs.h 33726 33727 33728 33729 33730 33731 33732 if test $ac_cv_func_readlink = no; then 33733 HAVE_READLINK=0 33734 else 33735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5 33736$as_echo_n "checking whether readlink signature is correct... " >&6; } 33737if ${gl_cv_decl_readlink_works+:} false; then : 33738 $as_echo_n "(cached) " >&6 33739else 33740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33741/* end confdefs.h. */ 33742#include <unistd.h> 33743 /* Cause compilation failure if original declaration has wrong type. */ 33744 ssize_t readlink (const char *, char *, size_t); 33745int 33746main () 33747{ 33748 33749 ; 33750 return 0; 33751} 33752_ACEOF 33753if ac_fn_c_try_compile "$LINENO"; then : 33754 gl_cv_decl_readlink_works=yes 33755else 33756 gl_cv_decl_readlink_works=no 33757fi 33758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33759fi 33760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5 33761$as_echo "$gl_cv_decl_readlink_works" >&6; } 33762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5 33763$as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; } 33764if ${gl_cv_func_readlink_works+:} false; then : 33765 $as_echo_n "(cached) " >&6 33766else 33767 # We have readlink, so assume ln -s works. 33768 ln -s conftest.no-such conftest.link 33769 ln -s conftest.link conftest.lnk2 33770 if test "$cross_compiling" = yes; then : 33771 case "$host_os" in 33772 # Guess yes on Linux systems. 33773 linux-* | linux) gl_cv_func_readlink_works="guessing yes" ;; 33774 # Guess yes on glibc systems. 33775 *-gnu* | gnu*) gl_cv_func_readlink_works="guessing yes" ;; 33776 # If we don't know, obey --enable-cross-guesses. 33777 *) gl_cv_func_readlink_works="$gl_cross_guess_normal" ;; 33778 esac 33779 33780else 33781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33782/* end confdefs.h. */ 33783#include <unistd.h> 33784 33785int 33786main () 33787{ 33788char buf[20]; 33789 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1; 33790 ; 33791 return 0; 33792} 33793_ACEOF 33794if ac_fn_c_try_run "$LINENO"; then : 33795 gl_cv_func_readlink_works=yes 33796else 33797 gl_cv_func_readlink_works=no 33798fi 33799rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 33800 conftest.$ac_objext conftest.beam conftest.$ac_ext 33801fi 33802 33803 rm -f conftest.link conftest.lnk2 33804fi 33805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5 33806$as_echo "$gl_cv_func_readlink_works" >&6; } 33807 case "$gl_cv_func_readlink_works" in 33808 *yes) 33809 if test "$gl_cv_decl_readlink_works" != yes; then 33810 REPLACE_READLINK=1 33811 fi 33812 ;; 33813 *) 33814 33815$as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h 33816 33817 REPLACE_READLINK=1 33818 ;; 33819 esac 33820 fi 33821 33822 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then 33823 33824 33825 33826 33827 33828 33829 33830 33831 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext" 33832 33833 33834 : 33835 33836 fi 33837 33838 33839 33840 33841 33842 GNULIB_READLINK=1 33843 33844 33845 33846 33847 33848$as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h 33849 33850 33851 33852 33853 33854 33855 33856 33857 : ${RELOCATABLE_CONFIG_H_DIR='$(top_builddir)'} 33858 RELOCATABLE_SRC_DIR="\$(top_srcdir)/$gl_source_base" 33859 RELOCATABLE_BUILD_DIR="\$(top_builddir)/$gl_source_base" 33860 33861 if test $RELOCATABLE = yes; then 33862 33863 33864 33865 33866 33867 33868 33869 33870 gl_LIBOBJS="$gl_LIBOBJS progreloc.$ac_objext" 33871 33872 33873 33874 33875 33876 33877 33878 33879 33880 gl_LIBOBJS="$gl_LIBOBJS relocatable.$ac_objext" 33881 33882 fi 33883 33884 33885 33886 33887 : 33888 33889 33890 33891 33892 33893 33894 33895 33896 33897 33898 33899 33900 33901 33902 33903 33904 33905 33906 if test $ac_cv_have_decl_setenv = no; then 33907 HAVE_DECL_SETENV=0 33908 fi 33909 33910 33911 33912 33913 33914 for ac_header in search.h 33915do : 33916 ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default" 33917if test "x$ac_cv_header_search_h" = xyes; then : 33918 cat >>confdefs.h <<_ACEOF 33919#define HAVE_SEARCH_H 1 33920_ACEOF 33921 33922fi 33923 33924done 33925 33926 for ac_func in tsearch 33927do : 33928 ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch" 33929if test "x$ac_cv_func_tsearch" = xyes; then : 33930 cat >>confdefs.h <<_ACEOF 33931#define HAVE_TSEARCH 1 33932_ACEOF 33933 33934fi 33935done 33936 33937 33938 33939 33940 33941 33942 33943 33944 NEED_SETLOCALE_IMPROVED=0 33945 case "$host_os" in 33946 mingw*) NEED_SETLOCALE_IMPROVED=1 ;; 33947 cygwin*) 33948 case `uname -r` in 33949 1.5.*) NEED_SETLOCALE_IMPROVED=1 ;; 33950 esac 33951 ;; 33952 *) 33953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale supports the C locale" >&5 33954$as_echo_n "checking whether setlocale supports the C locale... " >&6; } 33955if ${gl_cv_func_setlocale_works+:} false; then : 33956 $as_echo_n "(cached) " >&6 33957else 33958 if test "$cross_compiling" = yes; then : 33959 case "$host_os" in 33960 # Guess no on Android. 33961 linux*-android*) gl_cv_func_setlocale_works="guessing no";; 33962 # Guess yes otherwise. 33963 *) gl_cv_func_setlocale_works="guessing yes";; 33964 esac 33965 33966else 33967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33968/* end confdefs.h. */ 33969 33970#include <locale.h> 33971int main () 33972{ 33973 return setlocale (LC_ALL, "C") == NULL; 33974} 33975_ACEOF 33976if ac_fn_c_try_run "$LINENO"; then : 33977 gl_cv_func_setlocale_works=yes 33978else 33979 gl_cv_func_setlocale_works=no 33980fi 33981rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 33982 conftest.$ac_objext conftest.beam conftest.$ac_ext 33983fi 33984 33985 33986fi 33987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_works" >&5 33988$as_echo "$gl_cv_func_setlocale_works" >&6; } 33989 case "$gl_cv_func_setlocale_works" in 33990 *yes) ;; 33991 *) NEED_SETLOCALE_IMPROVED=1 ;; 33992 esac 33993 ;; 33994 esac 33995 33996cat >>confdefs.h <<_ACEOF 33997#define NEED_SETLOCALE_IMPROVED $NEED_SETLOCALE_IMPROVED 33998_ACEOF 33999 34000 34001 NEED_SETLOCALE_MTSAFE=0 34002 if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then 34003 NEED_SETLOCALE_MTSAFE=1 34004 fi 34005 34006cat >>confdefs.h <<_ACEOF 34007#define NEED_SETLOCALE_MTSAFE $NEED_SETLOCALE_MTSAFE 34008_ACEOF 34009 34010 34011 if test $NEED_SETLOCALE_IMPROVED = 1 || test $NEED_SETLOCALE_MTSAFE = 1; then 34012 REPLACE_SETLOCALE=1 34013 fi 34014 34015 if test $NEED_SETLOCALE_MTSAFE = 1; then 34016 LIB_SETLOCALE="$LIB_SETLOCALE_NULL" 34017 else 34018 LIB_SETLOCALE= 34019 fi 34020 34021 34022 if test $REPLACE_SETLOCALE = 1; then 34023 34024 34025 34026 34027 34028 34029 34030 34031 gl_LIBOBJS="$gl_LIBOBJS setlocale.$ac_objext" 34032 34033 34034 : 34035 34036 fi 34037 34038 34039 34040 34041 34042 GNULIB_SETLOCALE=1 34043 34044 34045 34046 34047 34048$as_echo "#define GNULIB_TEST_SETLOCALE 1" >>confdefs.h 34049 34050 34051 34052 34053 34054 34055 34056 34057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (LC_ALL, NULL) is multithread-safe" >&5 34058$as_echo_n "checking whether setlocale (LC_ALL, NULL) is multithread-safe... " >&6; } 34059if ${gl_cv_func_setlocale_null_all_mtsafe+:} false; then : 34060 $as_echo_n "(cached) " >&6 34061else 34062 case "$host_os" in 34063 # Guess no on musl libc, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Haiku, Cygwin. 34064 *-musl* | darwin* | freebsd* | netbsd* | openbsd* | aix* | haiku* | cygwin*) 34065 gl_cv_func_setlocale_null_all_mtsafe=no ;; 34066 # Guess yes on glibc, HP-UX, IRIX, Solaris, native Windows. 34067 *-gnu* | gnu* | hpux* | irix* | solaris* | mingw*) 34068 gl_cv_func_setlocale_null_all_mtsafe=yes ;; 34069 # If we don't know, obey --enable-cross-guesses. 34070 *) 34071 gl_cv_func_setlocale_null_all_mtsafe="$gl_cross_guess_normal" ;; 34072 esac 34073 34074fi 34075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_all_mtsafe" >&5 34076$as_echo "$gl_cv_func_setlocale_null_all_mtsafe" >&6; } 34077 case "$host_os" in 34078 mingw*) ;; 34079 *) 34080 if test $gl_pthread_api = no && test $ac_cv_header_threads_h = no; then 34081 gl_cv_func_setlocale_null_all_mtsafe="trivially yes" 34082 fi 34083 ;; 34084 esac 34085 case "$gl_cv_func_setlocale_null_all_mtsafe" in 34086 *yes) SETLOCALE_NULL_ALL_MTSAFE=1 ;; 34087 *) SETLOCALE_NULL_ALL_MTSAFE=0 ;; 34088 esac 34089 34090cat >>confdefs.h <<_ACEOF 34091#define SETLOCALE_NULL_ALL_MTSAFE $SETLOCALE_NULL_ALL_MTSAFE 34092_ACEOF 34093 34094 34095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (category, NULL) is multithread-safe" >&5 34096$as_echo_n "checking whether setlocale (category, NULL) is multithread-safe... " >&6; } 34097if ${gl_cv_func_setlocale_null_one_mtsafe+:} false; then : 34098 $as_echo_n "(cached) " >&6 34099else 34100 case "$host_os" in 34101 # Guess no on OpenBSD, AIX. 34102 openbsd* | aix*) 34103 gl_cv_func_setlocale_null_one_mtsafe=no ;; 34104 # Guess yes on glibc, musl libc, macOS, FreeBSD, NetBSD, HP-UX, IRIX, Solaris, Haiku, Cygwin, native Windows. 34105 *-gnu* | gnu* | *-musl* | darwin* | freebsd* | netbsd* | hpux* | irix* | solaris* | haiku* | cygwin* | mingw*) 34106 gl_cv_func_setlocale_null_one_mtsafe=yes ;; 34107 # If we don't know, obey --enable-cross-guesses. 34108 *) 34109 gl_cv_func_setlocale_null_one_mtsafe="$gl_cross_guess_normal" ;; 34110 esac 34111 34112fi 34113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_one_mtsafe" >&5 34114$as_echo "$gl_cv_func_setlocale_null_one_mtsafe" >&6; } 34115 case "$host_os" in 34116 mingw*) ;; 34117 *) 34118 if test $gl_pthread_api = no && test $ac_cv_header_threads_h = no; then 34119 gl_cv_func_setlocale_null_one_mtsafe="trivially yes" 34120 fi 34121 ;; 34122 esac 34123 case "$gl_cv_func_setlocale_null_one_mtsafe" in 34124 *yes) SETLOCALE_NULL_ONE_MTSAFE=1 ;; 34125 *) SETLOCALE_NULL_ONE_MTSAFE=0 ;; 34126 esac 34127 34128cat >>confdefs.h <<_ACEOF 34129#define SETLOCALE_NULL_ONE_MTSAFE $SETLOCALE_NULL_ONE_MTSAFE 34130_ACEOF 34131 34132 34133 if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then 34134 case "$host_os" in 34135 mingw*) LIB_SETLOCALE_NULL= ;; 34136 *) 34137 34138 34139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5 34140$as_echo_n "checking whether imported symbols can be declared weak... " >&6; } 34141if ${gl_cv_have_weak+:} false; then : 34142 $as_echo_n "(cached) " >&6 34143else 34144 gl_cv_have_weak=no 34145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34146/* end confdefs.h. */ 34147extern void xyzzy (); 34148#pragma weak xyzzy 34149int 34150main () 34151{ 34152xyzzy(); 34153 ; 34154 return 0; 34155} 34156_ACEOF 34157if ac_fn_c_try_link "$LINENO"; then : 34158 gl_cv_have_weak=maybe 34159fi 34160rm -f core conftest.err conftest.$ac_objext \ 34161 conftest$ac_exeext conftest.$ac_ext 34162 if test $gl_cv_have_weak = maybe; then 34163 if test "$cross_compiling" = yes; then : 34164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34165/* end confdefs.h. */ 34166#ifdef __ELF__ 34167 Extensible Linking Format 34168 #endif 34169 34170_ACEOF 34171if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 34172 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then : 34173 gl_cv_have_weak="guessing yes" 34174else 34175 gl_cv_have_weak="guessing no" 34176fi 34177rm -f conftest* 34178 34179 34180else 34181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34182/* end confdefs.h. */ 34183 34184#include <stdio.h> 34185#pragma weak fputs 34186int main () 34187{ 34188 return (fputs == NULL); 34189} 34190_ACEOF 34191if ac_fn_c_try_run "$LINENO"; then : 34192 gl_cv_have_weak=yes 34193else 34194 gl_cv_have_weak=no 34195fi 34196rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 34197 conftest.$ac_objext conftest.beam conftest.$ac_ext 34198fi 34199 34200 fi 34201 case " $LDFLAGS " in 34202 *" -static "*) gl_cv_have_weak=no ;; 34203 esac 34204 case "$gl_cv_have_weak" in 34205 *yes) 34206 case "$host_os" in 34207 freebsd* | dragonfly*) 34208 : > conftest1.c 34209 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c -lpthread >&5 2>&1 34210 cat <<EOF > conftest2.c 34211#include <pthread.h> 34212#pragma weak pthread_mutexattr_gettype 34213int main () 34214{ 34215 return (pthread_mutexattr_gettype != NULL); 34216} 34217EOF 34218 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so >&5 2>&1 \ 34219 || gl_cv_have_weak=no 34220 rm -f conftest1.c libempty.so conftest2.c conftest 34221 ;; 34222 esac 34223 ;; 34224 esac 34225 34226fi 34227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5 34228$as_echo "$gl_cv_have_weak" >&6; } 34229 case "$gl_cv_have_weak" in 34230 *yes) 34231 34232$as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h 34233 34234 ;; 34235 esac 34236 34237 case "$gl_cv_have_weak" in 34238 *yes) LIB_SETLOCALE_NULL= ;; 34239 *) LIB_SETLOCALE_NULL="$LIBPTHREAD" ;; 34240 esac 34241 ;; 34242 esac 34243 else 34244 LIB_SETLOCALE_NULL= 34245 fi 34246 34247 34248 if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then 34249 34250 34251 34252 34253 34254 34255 34256 34257 gl_LIBOBJS="$gl_LIBOBJS setlocale-lock.$ac_objext" 34258 34259 34260 34261 34262 CFLAG_VISIBILITY= 34263 HAVE_VISIBILITY=0 34264 if test -n "$GCC"; then 34265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5 34266$as_echo_n "checking whether the -Werror option is usable... " >&6; } 34267if ${gl_cv_cc_vis_werror+:} false; then : 34268 $as_echo_n "(cached) " >&6 34269else 34270 gl_save_CFLAGS="$CFLAGS" 34271 CFLAGS="$CFLAGS -Werror" 34272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34273/* end confdefs.h. */ 34274 34275int 34276main () 34277{ 34278 34279 ; 34280 return 0; 34281} 34282_ACEOF 34283if ac_fn_c_try_compile "$LINENO"; then : 34284 gl_cv_cc_vis_werror=yes 34285else 34286 gl_cv_cc_vis_werror=no 34287fi 34288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34289 CFLAGS="$gl_save_CFLAGS" 34290 34291fi 34292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5 34293$as_echo "$gl_cv_cc_vis_werror" >&6; } 34294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 34295$as_echo_n "checking for simple visibility declarations... " >&6; } 34296if ${gl_cv_cc_visibility+:} false; then : 34297 $as_echo_n "(cached) " >&6 34298else 34299 gl_save_CFLAGS="$CFLAGS" 34300 CFLAGS="$CFLAGS -fvisibility=hidden" 34301 if test $gl_cv_cc_vis_werror = yes; then 34302 CFLAGS="$CFLAGS -Werror" 34303 fi 34304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34305/* end confdefs.h. */ 34306extern __attribute__((__visibility__("hidden"))) int hiddenvar; 34307 extern __attribute__((__visibility__("default"))) int exportedvar; 34308 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); 34309 extern __attribute__((__visibility__("default"))) int exportedfunc (void); 34310 void dummyfunc (void) {} 34311 34312int 34313main () 34314{ 34315 34316 ; 34317 return 0; 34318} 34319_ACEOF 34320if ac_fn_c_try_compile "$LINENO"; then : 34321 gl_cv_cc_visibility=yes 34322else 34323 gl_cv_cc_visibility=no 34324fi 34325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34326 CFLAGS="$gl_save_CFLAGS" 34327 34328fi 34329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 34330$as_echo "$gl_cv_cc_visibility" >&6; } 34331 if test $gl_cv_cc_visibility = yes; then 34332 CFLAG_VISIBILITY="-fvisibility=hidden" 34333 HAVE_VISIBILITY=1 34334 fi 34335 fi 34336 34337 34338 34339cat >>confdefs.h <<_ACEOF 34340#define HAVE_VISIBILITY $HAVE_VISIBILITY 34341_ACEOF 34342 34343 34344 34345 fi 34346 34347 34348 34349 34350 34351 GNULIB_SETLOCALE_NULL=1 34352 34353 34354 34355 34356 34357$as_echo "#define GNULIB_TEST_SETLOCALE_NULL 1" >>confdefs.h 34358 34359 34360 34361 34362 34363 34364 34365 34366 34367 34368 34369 34370 34371 34372 if test $gl_cv_have_include_next = yes; then 34373 gl_cv_next_signal_h='<'signal.h'>' 34374 else 34375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5 34376$as_echo_n "checking absolute name of <signal.h>... " >&6; } 34377if ${gl_cv_next_signal_h+:} false; then : 34378 $as_echo_n "(cached) " >&6 34379else 34380 34381 34382 34383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34384/* end confdefs.h. */ 34385#include <signal.h> 34386_ACEOF 34387 case "$host_os" in 34388 aix*) gl_absname_cpp="$ac_cpp -C" ;; 34389 *) gl_absname_cpp="$ac_cpp" ;; 34390 esac 34391 34392 case "$host_os" in 34393 mingw*) 34394 gl_dirsep_regex='[/\\]' 34395 ;; 34396 *) 34397 gl_dirsep_regex='\/' 34398 ;; 34399 esac 34400 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 34401 gl_header_literal_regex=`echo 'signal.h' \ 34402 | sed -e "$gl_make_literal_regex_sed"` 34403 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 34404 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 34405 s|^/[^/]|//&| 34406 p 34407 q 34408 }' 34409 34410 gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 34411 sed -n "$gl_absolute_header_sed"` 34412 34413 gl_header=$gl_cv_absolute_signal_h 34414 gl_cv_next_signal_h='"'$gl_header'"' 34415 34416 34417fi 34418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5 34419$as_echo "$gl_cv_next_signal_h" >&6; } 34420 fi 34421 NEXT_SIGNAL_H=$gl_cv_next_signal_h 34422 34423 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 34424 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 34425 gl_next_as_first_directive='<'signal.h'>' 34426 else 34427 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 34428 gl_next_as_first_directive=$gl_cv_next_signal_h 34429 fi 34430 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive 34431 34432 34433 34434 34435 34436# AIX declares sig_atomic_t to already include volatile, and C89 compilers 34437# then choke on 'volatile sig_atomic_t'. C99 requires that it compile. 34438 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" " 34439#include <signal.h> 34440 34441" 34442if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then : 34443 34444else 34445 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0 34446fi 34447 34448 34449 34450 34451 34452 34453 34454 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" " 34455#include <signal.h> 34456 34457" 34458if test "x$ac_cv_type_sighandler_t" = xyes; then : 34459 34460else 34461 HAVE_SIGHANDLER_T=0 34462fi 34463 34464 34465 34466 34467 34468 34469 34470 34471 34472 34473 34474 34475 34476cat >>confdefs.h <<_ACEOF 34477#define GNULIB_SIGPIPE 1 34478_ACEOF 34479 34480 34481 34482 GNULIB_SIGNAL_H_SIGPIPE=1 34483 34484 34485 GNULIB_STDIO_H_SIGPIPE=1 34486 34487 GNULIB_UNISTD_H_SIGPIPE=1 34488 34489 34490 34491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigprocmask" >&5 34492$as_echo_n "checking for sigprocmask... " >&6; } 34493if ${gl_cv_func_sigprocmask+:} false; then : 34494 $as_echo_n "(cached) " >&6 34495else 34496 if test $gl_cv_type_sigset_t = yes; then 34497 34498 { 34499 34500 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask" 34501if test "x$ac_cv_func_sigprocmask" = xyes; then : 34502 gl_cv_func_sigprocmask=yes 34503else 34504 gl_cv_func_sigprocmask=no 34505fi 34506 34507 34508 } 6>/dev/null 34509 34510 else 34511 gl_cv_func_sigprocmask=no 34512 fi 34513 34514fi 34515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_sigprocmask" >&5 34516$as_echo "$gl_cv_func_sigprocmask" >&6; } 34517 if test $gl_cv_func_sigprocmask != yes; then 34518 HAVE_POSIX_SIGNALBLOCKING=0 34519 fi 34520 34521 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then 34522 34523 34524 34525 34526 34527 34528 34529 34530 gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext" 34531 34532 : 34533 fi 34534 34535 34536 34537 34538 34539 GNULIB_SIGPROCMASK=1 34540 34541 34542 34543 34544 34545$as_echo "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h 34546 34547 34548 34549 34550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5 34551$as_echo_n "checking for ssize_t... " >&6; } 34552if ${gt_cv_ssize_t+:} false; then : 34553 $as_echo_n "(cached) " >&6 34554else 34555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34556/* end confdefs.h. */ 34557#include <sys/types.h> 34558int 34559main () 34560{ 34561int x = sizeof (ssize_t *) + sizeof (ssize_t); 34562 return !x; 34563 ; 34564 return 0; 34565} 34566_ACEOF 34567if ac_fn_c_try_compile "$LINENO"; then : 34568 gt_cv_ssize_t=yes 34569else 34570 gt_cv_ssize_t=no 34571fi 34572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34573fi 34574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5 34575$as_echo "$gt_cv_ssize_t" >&6; } 34576 if test $gt_cv_ssize_t = no; then 34577 34578$as_echo "#define ssize_t int" >>confdefs.h 34579 34580 fi 34581 34582 34583 34584 34585 34586 case "$host_os" in 34587 mingw*) 34588 REPLACE_STAT=1 34589 ;; 34590 *) 34591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5 34592$as_echo_n "checking whether stat handles trailing slashes on files... " >&6; } 34593if ${gl_cv_func_stat_file_slash+:} false; then : 34594 $as_echo_n "(cached) " >&6 34595else 34596 touch conftest.tmp 34597 # Assume that if we have lstat, we can also check symlinks. 34598 if test $ac_cv_func_lstat = yes; then 34599 ln -s conftest.tmp conftest.lnk 34600 fi 34601 if test "$cross_compiling" = yes; then : 34602 case "$host_os" in 34603 # Guess yes on Linux systems. 34604 linux-* | linux) gl_cv_func_stat_file_slash="guessing yes" ;; 34605 # Guess yes on glibc systems. 34606 *-gnu* | gnu*) gl_cv_func_stat_file_slash="guessing yes" ;; 34607 # If we don't know, obey --enable-cross-guesses. 34608 *) gl_cv_func_stat_file_slash="$gl_cross_guess_normal" ;; 34609 esac 34610 34611else 34612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34613/* end confdefs.h. */ 34614#include <sys/stat.h> 34615 34616int 34617main () 34618{ 34619int result = 0; 34620 struct stat st; 34621 if (!stat ("conftest.tmp/", &st)) 34622 result |= 1; 34623#if HAVE_LSTAT 34624 if (!stat ("conftest.lnk/", &st)) 34625 result |= 2; 34626#endif 34627 return result; 34628 34629 ; 34630 return 0; 34631} 34632_ACEOF 34633if ac_fn_c_try_run "$LINENO"; then : 34634 gl_cv_func_stat_file_slash=yes 34635else 34636 gl_cv_func_stat_file_slash=no 34637fi 34638rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 34639 conftest.$ac_objext conftest.beam conftest.$ac_ext 34640fi 34641 34642 rm -f conftest.tmp conftest.lnk 34643fi 34644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5 34645$as_echo "$gl_cv_func_stat_file_slash" >&6; } 34646 case $gl_cv_func_stat_file_slash in 34647 *no) 34648 REPLACE_STAT=1 34649 34650$as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h 34651;; 34652 esac 34653 case $host_os in 34654 solaris*) 34655 REPLACE_FSTAT=1 ;; 34656 esac 34657 ;; 34658 esac 34659 34660 if test $REPLACE_STAT = 1; then 34661 34662 34663 34664 34665 34666 34667 34668 34669 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext" 34670 34671 case "$host_os" in 34672 mingw*) 34673 34674 34675 34676 34677 34678 34679 34680 34681 gl_LIBOBJS="$gl_LIBOBJS stat-w32.$ac_objext" 34682 34683 ;; 34684 esac 34685 34686 34687 : 34688 34689 fi 34690 34691 34692 34693 34694 34695 GNULIB_STAT=1 34696 34697 34698 34699 34700 34701$as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h 34702 34703 34704 34705 34706 34707 34708 34709 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> 34710 #include <sys/stat.h> 34711" 34712if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then : 34713 34714cat >>confdefs.h <<_ACEOF 34715#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1 34716_ACEOF 34717 34718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5 34719$as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; } 34720if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false; then : 34721 $as_echo_n "(cached) " >&6 34722else 34723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34724/* end confdefs.h. */ 34725 34726 #include <sys/types.h> 34727 #include <sys/stat.h> 34728 #if HAVE_SYS_TIME_H 34729 # include <sys/time.h> 34730 #endif 34731 #include <time.h> 34732 struct timespec ts; 34733 struct stat st; 34734 34735int 34736main () 34737{ 34738 34739 st.st_atim = ts; 34740 34741 ; 34742 return 0; 34743} 34744_ACEOF 34745if ac_fn_c_try_compile "$LINENO"; then : 34746 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes 34747else 34748 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no 34749fi 34750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34751fi 34752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5 34753$as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; } 34754 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then 34755 34756$as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h 34757 34758 fi 34759else 34760 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> 34761 #include <sys/stat.h> 34762" 34763if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes; then : 34764 34765cat >>confdefs.h <<_ACEOF 34766#define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1 34767_ACEOF 34768 34769 34770else 34771 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h> 34772 #include <sys/stat.h> 34773" 34774if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then : 34775 34776cat >>confdefs.h <<_ACEOF 34777#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1 34778_ACEOF 34779 34780 34781else 34782 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> 34783 #include <sys/stat.h> 34784" 34785if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes; then : 34786 34787cat >>confdefs.h <<_ACEOF 34788#define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1 34789_ACEOF 34790 34791 34792fi 34793 34794fi 34795 34796fi 34797 34798fi 34799 34800 34801 34802 34803 34804 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> 34805 #include <sys/stat.h> 34806" 34807if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes; then : 34808 34809cat >>confdefs.h <<_ACEOF 34810#define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1 34811_ACEOF 34812 34813 34814else 34815 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h> 34816 #include <sys/stat.h> 34817" 34818if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes; then : 34819 34820cat >>confdefs.h <<_ACEOF 34821#define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1 34822_ACEOF 34823 34824 34825else 34826 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> 34827 #include <sys/stat.h> 34828" 34829if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes; then : 34830 34831cat >>confdefs.h <<_ACEOF 34832#define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1 34833_ACEOF 34834 34835 34836fi 34837 34838fi 34839 34840fi 34841 34842 34843 34844 34845 34846 34847 if test "$ac_cv_header_stdbool_h" = yes; then 34848 case "$host_os" in 34849 solaris*) 34850 if test -z "$GCC"; then 34851 STDBOOL_H='stdbool.h' 34852 else 34853 STDBOOL_H='' 34854 fi 34855 ;; 34856 *) 34857 STDBOOL_H='' 34858 ;; 34859 esac 34860 else 34861 STDBOOL_H='stdbool.h' 34862 fi 34863 34864 if test -n "$STDBOOL_H"; then 34865 GL_GENERATE_STDBOOL_H_TRUE= 34866 GL_GENERATE_STDBOOL_H_FALSE='#' 34867else 34868 GL_GENERATE_STDBOOL_H_TRUE='#' 34869 GL_GENERATE_STDBOOL_H_FALSE= 34870fi 34871 34872 34873 if test "$ac_cv_type__Bool" = yes; then 34874 HAVE__BOOL=1 34875 else 34876 HAVE__BOOL=0 34877 fi 34878 34879 34880 34881 34882 34883 STDDEF_H= 34884 34885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5 34886$as_echo_n "checking for good max_align_t... " >&6; } 34887if ${gl_cv_type_max_align_t+:} false; then : 34888 $as_echo_n "(cached) " >&6 34889else 34890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34891/* end confdefs.h. */ 34892#include <stddef.h> 34893 unsigned int s = sizeof (max_align_t); 34894 #if defined __GNUC__ || defined __IBM__ALIGNOF__ 34895 int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1]; 34896 int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1]; 34897 #endif 34898 34899int 34900main () 34901{ 34902 34903 ; 34904 return 0; 34905} 34906_ACEOF 34907if ac_fn_c_try_compile "$LINENO"; then : 34908 gl_cv_type_max_align_t=yes 34909else 34910 gl_cv_type_max_align_t=no 34911fi 34912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34913 34914fi 34915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5 34916$as_echo "$gl_cv_type_max_align_t" >&6; } 34917 if test $gl_cv_type_max_align_t = no; then 34918 HAVE_MAX_ALIGN_T=0 34919 STDDEF_H=stddef.h 34920 fi 34921 34922 if test $gt_cv_c_wchar_t = no; then 34923 HAVE_WCHAR_T=0 34924 STDDEF_H=stddef.h 34925 fi 34926 34927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5 34928$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; } 34929if ${gl_cv_decl_null_works+:} false; then : 34930 $as_echo_n "(cached) " >&6 34931else 34932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34933/* end confdefs.h. */ 34934#include <stddef.h> 34935 int test[2 * (sizeof NULL == sizeof (void *)) -1]; 34936 34937int 34938main () 34939{ 34940 34941 ; 34942 return 0; 34943} 34944_ACEOF 34945if ac_fn_c_try_compile "$LINENO"; then : 34946 gl_cv_decl_null_works=yes 34947else 34948 gl_cv_decl_null_works=no 34949fi 34950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34951fi 34952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5 34953$as_echo "$gl_cv_decl_null_works" >&6; } 34954 if test $gl_cv_decl_null_works = no; then 34955 REPLACE_NULL=1 34956 STDDEF_H=stddef.h 34957 fi 34958 34959 34960 if test -n "$STDDEF_H"; then 34961 GL_GENERATE_STDDEF_H_TRUE= 34962 GL_GENERATE_STDDEF_H_FALSE='#' 34963else 34964 GL_GENERATE_STDDEF_H_TRUE='#' 34965 GL_GENERATE_STDDEF_H_FALSE= 34966fi 34967 34968 if test -n "$STDDEF_H"; then 34969 34970 34971 34972 34973 34974 34975 34976 34977 if test $gl_cv_have_include_next = yes; then 34978 gl_cv_next_stddef_h='<'stddef.h'>' 34979 else 34980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5 34981$as_echo_n "checking absolute name of <stddef.h>... " >&6; } 34982if ${gl_cv_next_stddef_h+:} false; then : 34983 $as_echo_n "(cached) " >&6 34984else 34985 34986 34987 34988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34989/* end confdefs.h. */ 34990#include <stddef.h> 34991_ACEOF 34992 case "$host_os" in 34993 aix*) gl_absname_cpp="$ac_cpp -C" ;; 34994 *) gl_absname_cpp="$ac_cpp" ;; 34995 esac 34996 34997 case "$host_os" in 34998 mingw*) 34999 gl_dirsep_regex='[/\\]' 35000 ;; 35001 *) 35002 gl_dirsep_regex='\/' 35003 ;; 35004 esac 35005 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 35006 gl_header_literal_regex=`echo 'stddef.h' \ 35007 | sed -e "$gl_make_literal_regex_sed"` 35008 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 35009 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 35010 s|^/[^/]|//&| 35011 p 35012 q 35013 }' 35014 35015 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 35016 sed -n "$gl_absolute_header_sed"` 35017 35018 gl_header=$gl_cv_absolute_stddef_h 35019 gl_cv_next_stddef_h='"'$gl_header'"' 35020 35021 35022fi 35023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5 35024$as_echo "$gl_cv_next_stddef_h" >&6; } 35025 fi 35026 NEXT_STDDEF_H=$gl_cv_next_stddef_h 35027 35028 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 35029 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 35030 gl_next_as_first_directive='<'stddef.h'>' 35031 else 35032 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 35033 gl_next_as_first_directive=$gl_cv_next_stddef_h 35034 fi 35035 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive 35036 35037 35038 35039 35040 fi 35041 35042 35043 35044 35045 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h 35046 35047 35048 35049 35050 35051 35052 35053 35054 35055 35056 if test $gl_cv_have_include_next = yes; then 35057 gl_cv_next_stdio_h='<'stdio.h'>' 35058 else 35059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5 35060$as_echo_n "checking absolute name of <stdio.h>... " >&6; } 35061if ${gl_cv_next_stdio_h+:} false; then : 35062 $as_echo_n "(cached) " >&6 35063else 35064 35065 35066 35067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35068/* end confdefs.h. */ 35069#include <stdio.h> 35070_ACEOF 35071 case "$host_os" in 35072 aix*) gl_absname_cpp="$ac_cpp -C" ;; 35073 *) gl_absname_cpp="$ac_cpp" ;; 35074 esac 35075 35076 case "$host_os" in 35077 mingw*) 35078 gl_dirsep_regex='[/\\]' 35079 ;; 35080 *) 35081 gl_dirsep_regex='\/' 35082 ;; 35083 esac 35084 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 35085 gl_header_literal_regex=`echo 'stdio.h' \ 35086 | sed -e "$gl_make_literal_regex_sed"` 35087 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 35088 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 35089 s|^/[^/]|//&| 35090 p 35091 q 35092 }' 35093 35094 gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 35095 sed -n "$gl_absolute_header_sed"` 35096 35097 gl_header=$gl_cv_absolute_stdio_h 35098 gl_cv_next_stdio_h='"'$gl_header'"' 35099 35100 35101fi 35102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5 35103$as_echo "$gl_cv_next_stdio_h" >&6; } 35104 fi 35105 NEXT_STDIO_H=$gl_cv_next_stdio_h 35106 35107 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 35108 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 35109 gl_next_as_first_directive='<'stdio.h'>' 35110 else 35111 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 35112 gl_next_as_first_directive=$gl_cv_next_stdio_h 35113 fi 35114 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive 35115 35116 35117 35118 35119 35120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5 35121$as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; } 35122if ${gl_cv_func_printf_attribute_flavor+:} false; then : 35123 $as_echo_n "(cached) " >&6 35124else 35125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35126/* end confdefs.h. */ 35127 35128 #define __STDC_FORMAT_MACROS 1 35129 #include <stdio.h> 35130 #include <inttypes.h> 35131 /* For non-mingw systems, compilation will trivially succeed. 35132 For mingw, compilation will succeed for older mingw (system 35133 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */ 35134 #if (defined _WIN32 && ! defined __CYGWIN__) && \ 35135 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) 35136 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1]; 35137 #endif 35138 35139int 35140main () 35141{ 35142 35143 ; 35144 return 0; 35145} 35146_ACEOF 35147if ac_fn_c_try_compile "$LINENO"; then : 35148 gl_cv_func_printf_attribute_flavor=system 35149else 35150 gl_cv_func_printf_attribute_flavor=gnu 35151fi 35152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35153fi 35154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5 35155$as_echo "$gl_cv_func_printf_attribute_flavor" >&6; } 35156 if test "$gl_cv_func_printf_attribute_flavor" = gnu; then 35157 35158$as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h 35159 35160 fi 35161 35162 GNULIB_FSCANF=1 35163 35164 35165cat >>confdefs.h <<_ACEOF 35166#define GNULIB_FSCANF 1 35167_ACEOF 35168 35169 35170 GNULIB_SCANF=1 35171 35172 35173cat >>confdefs.h <<_ACEOF 35174#define GNULIB_SCANF 1 35175_ACEOF 35176 35177 35178 GNULIB_FGETC=1 35179 GNULIB_GETC=1 35180 GNULIB_GETCHAR=1 35181 GNULIB_FGETS=1 35182 GNULIB_FREAD=1 35183 35184 35185 GNULIB_FPRINTF=1 35186 GNULIB_PRINTF=1 35187 GNULIB_VFPRINTF=1 35188 GNULIB_VPRINTF=1 35189 GNULIB_FPUTC=1 35190 GNULIB_PUTC=1 35191 GNULIB_PUTCHAR=1 35192 GNULIB_FPUTS=1 35193 GNULIB_PUTS=1 35194 GNULIB_FWRITE=1 35195 35196 35197 35198 35199 if test $gl_cv_header_signal_h_SIGPIPE != yes; then 35200 REPLACE_STDIO_WRITE_FUNCS=1 35201 35202 35203 35204 35205 35206 35207 35208 35209 gl_LIBOBJS="$gl_LIBOBJS stdio-write.$ac_objext" 35210 35211 fi 35212 35213 35214 35215 35216 35217 35218 35219 35220 35221 35222 35223 35224 35225 35226 35227 35228 35229 35230 35231 if test $gl_cv_have_include_next = yes; then 35232 gl_cv_next_stdlib_h='<'stdlib.h'>' 35233 else 35234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5 35235$as_echo_n "checking absolute name of <stdlib.h>... " >&6; } 35236if ${gl_cv_next_stdlib_h+:} false; then : 35237 $as_echo_n "(cached) " >&6 35238else 35239 35240 35241 35242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35243/* end confdefs.h. */ 35244#include <stdlib.h> 35245_ACEOF 35246 case "$host_os" in 35247 aix*) gl_absname_cpp="$ac_cpp -C" ;; 35248 *) gl_absname_cpp="$ac_cpp" ;; 35249 esac 35250 35251 case "$host_os" in 35252 mingw*) 35253 gl_dirsep_regex='[/\\]' 35254 ;; 35255 *) 35256 gl_dirsep_regex='\/' 35257 ;; 35258 esac 35259 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 35260 gl_header_literal_regex=`echo 'stdlib.h' \ 35261 | sed -e "$gl_make_literal_regex_sed"` 35262 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 35263 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 35264 s|^/[^/]|//&| 35265 p 35266 q 35267 }' 35268 35269 gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 35270 sed -n "$gl_absolute_header_sed"` 35271 35272 gl_header=$gl_cv_absolute_stdlib_h 35273 gl_cv_next_stdlib_h='"'$gl_header'"' 35274 35275 35276fi 35277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5 35278$as_echo "$gl_cv_next_stdlib_h" >&6; } 35279 fi 35280 NEXT_STDLIB_H=$gl_cv_next_stdlib_h 35281 35282 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 35283 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 35284 gl_next_as_first_directive='<'stdlib.h'>' 35285 else 35286 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 35287 gl_next_as_first_directive=$gl_cv_next_stdlib_h 35288 fi 35289 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive 35290 35291 35292 35293 35294 35295 35296 35297 35298 35299 35300 35301 35302 35303 35304 35305 35306 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then 35307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5 35308$as_echo_n "checking for working strerror function... " >&6; } 35309if ${gl_cv_func_working_strerror+:} false; then : 35310 $as_echo_n "(cached) " >&6 35311else 35312 if test "$cross_compiling" = yes; then : 35313 case "$host_os" in 35314 # Guess yes on glibc systems. 35315 *-gnu* | gnu*) gl_cv_func_working_strerror="guessing yes" ;; 35316 # Guess yes on musl systems. 35317 *-musl*) gl_cv_func_working_strerror="guessing yes" ;; 35318 # If we don't know, obey --enable-cross-guesses. 35319 *) gl_cv_func_working_strerror="$gl_cross_guess_normal" ;; 35320 esac 35321 35322else 35323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35324/* end confdefs.h. */ 35325#include <string.h> 35326 35327int 35328main () 35329{ 35330if (!*strerror (-2)) return 1; 35331 ; 35332 return 0; 35333} 35334_ACEOF 35335if ac_fn_c_try_run "$LINENO"; then : 35336 gl_cv_func_working_strerror=yes 35337else 35338 gl_cv_func_working_strerror=no 35339fi 35340rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 35341 conftest.$ac_objext conftest.beam conftest.$ac_ext 35342fi 35343 35344 35345fi 35346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5 35347$as_echo "$gl_cv_func_working_strerror" >&6; } 35348 case "$gl_cv_func_working_strerror" in 35349 *yes) ;; 35350 *) 35351 REPLACE_STRERROR=1 35352 ;; 35353 esac 35354 35355 else 35356 REPLACE_STRERROR=1 35357 fi 35358 35359 if test $REPLACE_STRERROR = 1; then 35360 35361 35362 35363 35364 35365 35366 35367 35368 gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext" 35369 35370 fi 35371 35372 35373cat >>confdefs.h <<_ACEOF 35374#define GNULIB_STRERROR 1 35375_ACEOF 35376 35377 35378 35379 35380 35381 35382 35383 GNULIB_STRERROR=1 35384 35385 35386 35387 35388 35389$as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h 35390 35391 35392 35393 35394 35395 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then 35396 35397 35398 35399 35400 35401 35402 35403 35404 gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext" 35405 35406 35407 35408 35409 35410 if test $ac_cv_header_sys_socket_h != yes; then 35411 for ac_header in winsock2.h 35412do : 35413 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 35414if test "x$ac_cv_header_winsock2_h" = xyes; then : 35415 cat >>confdefs.h <<_ACEOF 35416#define HAVE_WINSOCK2_H 1 35417_ACEOF 35418 35419fi 35420 35421done 35422 35423 fi 35424 if test "$ac_cv_header_winsock2_h" = yes; then 35425 HAVE_WINSOCK2_H=1 35426 UNISTD_H_HAVE_WINSOCK2_H=1 35427 SYS_IOCTL_H_HAVE_WINSOCK2_H=1 35428 else 35429 HAVE_WINSOCK2_H=0 35430 fi 35431 35432 35433 fi 35434 if test $gl_cond_libtool = false; then 35435 gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV" 35436 gl_libdeps="$gl_libdeps $LIBICONV" 35437 fi 35438 35439 35440 35441 35442 35443 35444 35445 35446 35447 if test $ac_cv_have_decl_strnlen = no; then 35448 HAVE_DECL_STRNLEN=0 35449 else 35450 35451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5 35452$as_echo_n "checking for working strnlen... " >&6; } 35453if ${ac_cv_func_strnlen_working+:} false; then : 35454 $as_echo_n "(cached) " >&6 35455else 35456 if test "$cross_compiling" = yes; then : 35457 # Guess no on AIX systems, yes otherwise. 35458 case "$host_os" in 35459 aix*) ac_cv_func_strnlen_working=no;; 35460 *) ac_cv_func_strnlen_working=yes;; 35461 esac 35462else 35463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35464/* end confdefs.h. */ 35465$ac_includes_default 35466int 35467main () 35468{ 35469 35470#define S "foobar" 35471#define S_LEN (sizeof S - 1) 35472 35473 /* At least one implementation is buggy: that of AIX 4.3 would 35474 give strnlen (S, 1) == 3. */ 35475 35476 int i; 35477 for (i = 0; i < S_LEN + 1; ++i) 35478 { 35479 int expected = i <= S_LEN ? i : S_LEN; 35480 if (strnlen (S, i) != expected) 35481 return 1; 35482 } 35483 return 0; 35484 35485 ; 35486 return 0; 35487} 35488_ACEOF 35489if ac_fn_c_try_run "$LINENO"; then : 35490 ac_cv_func_strnlen_working=yes 35491else 35492 ac_cv_func_strnlen_working=no 35493fi 35494rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 35495 conftest.$ac_objext conftest.beam conftest.$ac_ext 35496fi 35497 35498fi 35499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5 35500$as_echo "$ac_cv_func_strnlen_working" >&6; } 35501test $ac_cv_func_strnlen_working = no && : 35502 35503 35504 if test $ac_cv_func_strnlen_working = no; then 35505 REPLACE_STRNLEN=1 35506 fi 35507 fi 35508 35509 if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then 35510 35511 35512 35513 35514 35515 35516 35517 35518 gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext" 35519 35520 : 35521 fi 35522 35523 35524 35525 35526 35527 GNULIB_STRNLEN=1 35528 35529 35530 35531 35532 35533$as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h 35534 35535 35536 35537 35538 for ac_func in strtoul 35539do : 35540 ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul" 35541if test "x$ac_cv_func_strtoul" = xyes; then : 35542 cat >>confdefs.h <<_ACEOF 35543#define HAVE_STRTOUL 1 35544_ACEOF 35545 35546fi 35547done 35548 35549 35550 if test $ac_cv_func_strtoul = no; then 35551 35552 35553 35554 35555 35556 35557 35558 35559 gl_LIBOBJS="$gl_LIBOBJS strtoul.$ac_objext" 35560 35561 fi 35562 35563 35564 35565 35566 35567 35568 35569 35570 35571 35572 35573 35574 35575 35576 if test $gl_cv_have_include_next = yes; then 35577 gl_cv_next_sys_stat_h='<'sys/stat.h'>' 35578 else 35579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5 35580$as_echo_n "checking absolute name of <sys/stat.h>... " >&6; } 35581if ${gl_cv_next_sys_stat_h+:} false; then : 35582 $as_echo_n "(cached) " >&6 35583else 35584 35585 if test $ac_cv_header_sys_stat_h = yes; then 35586 35587 35588 35589 35590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35591/* end confdefs.h. */ 35592#include <sys/stat.h> 35593_ACEOF 35594 case "$host_os" in 35595 aix*) gl_absname_cpp="$ac_cpp -C" ;; 35596 *) gl_absname_cpp="$ac_cpp" ;; 35597 esac 35598 35599 case "$host_os" in 35600 mingw*) 35601 gl_dirsep_regex='[/\\]' 35602 ;; 35603 *) 35604 gl_dirsep_regex='\/' 35605 ;; 35606 esac 35607 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 35608 gl_header_literal_regex=`echo 'sys/stat.h' \ 35609 | sed -e "$gl_make_literal_regex_sed"` 35610 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 35611 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 35612 s|^/[^/]|//&| 35613 p 35614 q 35615 }' 35616 35617 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 35618 sed -n "$gl_absolute_header_sed"` 35619 35620 gl_header=$gl_cv_absolute_sys_stat_h 35621 gl_cv_next_sys_stat_h='"'$gl_header'"' 35622 else 35623 gl_cv_next_sys_stat_h='<'sys/stat.h'>' 35624 fi 35625 35626 35627fi 35628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5 35629$as_echo "$gl_cv_next_sys_stat_h" >&6; } 35630 fi 35631 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h 35632 35633 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 35634 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 35635 gl_next_as_first_directive='<'sys/stat.h'>' 35636 else 35637 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 35638 gl_next_as_first_directive=$gl_cv_next_sys_stat_h 35639 fi 35640 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive 35641 35642 35643 35644 35645 35646 35647 35648 35649 WINDOWS_STAT_TIMESPEC=0 35650 35651 35652 35653 35654 35655 35656 35657 35658 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h> 35659 #include <sys/stat.h> 35660" 35661if test "x$ac_cv_type_nlink_t" = xyes; then : 35662 35663else 35664 35665$as_echo "#define nlink_t int" >>confdefs.h 35666 35667fi 35668 35669 35670 35671 35672 35673 35674 35675 35676 35677 35678 35679 35680 35681 35682 35683 35684 35685 35686 35687 35688 35689 35690 35691 35692 35693 35694 35695 if test $gl_cv_have_include_next = yes; then 35696 gl_cv_next_unistd_h='<'unistd.h'>' 35697 else 35698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5 35699$as_echo_n "checking absolute name of <unistd.h>... " >&6; } 35700if ${gl_cv_next_unistd_h+:} false; then : 35701 $as_echo_n "(cached) " >&6 35702else 35703 35704 if test $ac_cv_header_unistd_h = yes; then 35705 35706 35707 35708 35709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35710/* end confdefs.h. */ 35711#include <unistd.h> 35712_ACEOF 35713 case "$host_os" in 35714 aix*) gl_absname_cpp="$ac_cpp -C" ;; 35715 *) gl_absname_cpp="$ac_cpp" ;; 35716 esac 35717 35718 case "$host_os" in 35719 mingw*) 35720 gl_dirsep_regex='[/\\]' 35721 ;; 35722 *) 35723 gl_dirsep_regex='\/' 35724 ;; 35725 esac 35726 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 35727 gl_header_literal_regex=`echo 'unistd.h' \ 35728 | sed -e "$gl_make_literal_regex_sed"` 35729 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 35730 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 35731 s|^/[^/]|//&| 35732 p 35733 q 35734 }' 35735 35736 gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 35737 sed -n "$gl_absolute_header_sed"` 35738 35739 gl_header=$gl_cv_absolute_unistd_h 35740 gl_cv_next_unistd_h='"'$gl_header'"' 35741 else 35742 gl_cv_next_unistd_h='<'unistd.h'>' 35743 fi 35744 35745 35746fi 35747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5 35748$as_echo "$gl_cv_next_unistd_h" >&6; } 35749 fi 35750 NEXT_UNISTD_H=$gl_cv_next_unistd_h 35751 35752 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 35753 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 35754 gl_next_as_first_directive='<'unistd.h'>' 35755 else 35756 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 35757 gl_next_as_first_directive=$gl_cv_next_unistd_h 35758 fi 35759 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive 35760 35761 35762 35763 35764 if test $ac_cv_header_unistd_h = yes; then 35765 HAVE_UNISTD_H=1 35766 else 35767 HAVE_UNISTD_H=0 35768 fi 35769 35770 35771 35772 35773 35774 35775 35776 35777 35778 35779 35780 35781 35782 35783 if { test "$HAVE_LIBUNISTRING" != yes \ 35784 || { 35785 35786 35787 35788 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ 35789 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ 35790 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ 35791 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ 35792 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4 35793 } 35794 } 35795 } 35796 35797 35798 35799 35800 } 35801 }; then 35802 LIBUNISTRING_UNISTR_H='unistr.h' 35803 else 35804 LIBUNISTRING_UNISTR_H= 35805 fi 35806 35807 35808 35809 35810cat >>confdefs.h <<_ACEOF 35811#define GNULIB_UNISTR_U8_MBTOUCR 1 35812_ACEOF 35813 35814 35815 35816 35817 if { test "$HAVE_LIBUNISTRING" != yes \ 35818 || { 35819 35820 35821 35822 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ 35823 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ 35824 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ 35825 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ 35826 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0 35827 } 35828 } 35829 } 35830 35831 35832 35833 35834 } 35835 }; then 35836 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE= 35837 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE='#' 35838else 35839 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE='#' 35840 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE= 35841fi 35842 35843 35844 35845 35846cat >>confdefs.h <<_ACEOF 35847#define GNULIB_UNISTR_U8_UCTOMB 1 35848_ACEOF 35849 35850 35851 35852 35853 if { test "$HAVE_LIBUNISTRING" != yes \ 35854 || { 35855 35856 35857 35858 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ 35859 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ 35860 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ 35861 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ 35862 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0 35863 } 35864 } 35865 } 35866 35867 35868 35869 35870 } 35871 }; then 35872 LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE= 35873 LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE='#' 35874else 35875 LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE='#' 35876 LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE= 35877fi 35878 35879 35880 35881 35882 if { test "$HAVE_LIBUNISTRING" != yes \ 35883 || { 35884 35885 35886 35887 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ 35888 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ 35889 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ 35890 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ 35891 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4 35892 } 35893 } 35894 } 35895 35896 35897 35898 35899 } 35900 }; then 35901 LIBUNISTRING_UNITYPES_H='unitypes.h' 35902 else 35903 LIBUNISTRING_UNITYPES_H= 35904 fi 35905 35906 35907 35908 35909 if { test "$HAVE_LIBUNISTRING" != yes \ 35910 || { 35911 35912 35913 35914 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ 35915 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ 35916 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ 35917 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ 35918 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4 35919 } 35920 } 35921 } 35922 35923 35924 35925 35926 } 35927 }; then 35928 LIBUNISTRING_UNIWIDTH_H='uniwidth.h' 35929 else 35930 LIBUNISTRING_UNIWIDTH_H= 35931 fi 35932 35933 35934 35935 35936 if { test "$HAVE_LIBUNISTRING" != yes \ 35937 || { 35938 35939 35940 35941 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ 35942 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ 35943 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ 35944 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ 35945 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8 35946 } 35947 } 35948 } 35949 35950 35951 35952 35953 } 35954 }; then 35955 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE= 35956 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE='#' 35957else 35958 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE='#' 35959 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE= 35960fi 35961 35962 35963 35964 35965$as_echo "#define USE_UNLOCKED_IO 1" >>confdefs.h 35966 35967 35968 35969 35970 35971 35972 35973 35974 35975 35976 35977 35978 35979 35980 35981 35982 35983 35984 35985 35986 35987 35988 35989 35990 35991 35992 35993 35994 35995 35996 if test $gl_cv_have_include_next = yes; then 35997 gl_cv_next_wchar_h='<'wchar.h'>' 35998 else 35999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5 36000$as_echo_n "checking absolute name of <wchar.h>... " >&6; } 36001if ${gl_cv_next_wchar_h+:} false; then : 36002 $as_echo_n "(cached) " >&6 36003else 36004 36005 if test $ac_cv_header_wchar_h = yes; then 36006 36007 36008 36009 36010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36011/* end confdefs.h. */ 36012#include <wchar.h> 36013_ACEOF 36014 case "$host_os" in 36015 aix*) gl_absname_cpp="$ac_cpp -C" ;; 36016 *) gl_absname_cpp="$ac_cpp" ;; 36017 esac 36018 36019 case "$host_os" in 36020 mingw*) 36021 gl_dirsep_regex='[/\\]' 36022 ;; 36023 *) 36024 gl_dirsep_regex='\/' 36025 ;; 36026 esac 36027 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 36028 gl_header_literal_regex=`echo 'wchar.h' \ 36029 | sed -e "$gl_make_literal_regex_sed"` 36030 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 36031 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 36032 s|^/[^/]|//&| 36033 p 36034 q 36035 }' 36036 36037 gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 36038 sed -n "$gl_absolute_header_sed"` 36039 36040 gl_header=$gl_cv_absolute_wchar_h 36041 gl_cv_next_wchar_h='"'$gl_header'"' 36042 else 36043 gl_cv_next_wchar_h='<'wchar.h'>' 36044 fi 36045 36046 36047fi 36048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5 36049$as_echo "$gl_cv_next_wchar_h" >&6; } 36050 fi 36051 NEXT_WCHAR_H=$gl_cv_next_wchar_h 36052 36053 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 36054 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 36055 gl_next_as_first_directive='<'wchar.h'>' 36056 else 36057 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 36058 gl_next_as_first_directive=$gl_cv_next_wchar_h 36059 fi 36060 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive 36061 36062 36063 36064 36065 if test $ac_cv_header_wchar_h = yes; then 36066 HAVE_WCHAR_H=1 36067 else 36068 HAVE_WCHAR_H=0 36069 fi 36070 36071 36072 36073 36074 36075 if test $gt_cv_c_wint_t = yes; then 36076 HAVE_WINT_T=1 36077 else 36078 HAVE_WINT_T=0 36079 fi 36080 36081 36082 36083 36084 36085 36086 36087 36088 36089 36090 36091 36092 36093 36094 36095 if test $ac_cv_func_iswcntrl = yes; then 36096 HAVE_ISWCNTRL=1 36097 else 36098 HAVE_ISWCNTRL=0 36099 fi 36100 36101 36102 36103 if test $gt_cv_c_wint_t = yes; then 36104 HAVE_WINT_T=1 36105 else 36106 HAVE_WINT_T=0 36107 fi 36108 36109 36110 36111 36112 36113 36114 36115 36116 36117 36118 36119 36120 36121 if test $gl_cv_have_include_next = yes; then 36122 gl_cv_next_wctype_h='<'wctype.h'>' 36123 else 36124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5 36125$as_echo_n "checking absolute name of <wctype.h>... " >&6; } 36126if ${gl_cv_next_wctype_h+:} false; then : 36127 $as_echo_n "(cached) " >&6 36128else 36129 36130 if test $ac_cv_header_wctype_h = yes; then 36131 36132 36133 36134 36135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36136/* end confdefs.h. */ 36137#include <wctype.h> 36138_ACEOF 36139 case "$host_os" in 36140 aix*) gl_absname_cpp="$ac_cpp -C" ;; 36141 *) gl_absname_cpp="$ac_cpp" ;; 36142 esac 36143 36144 case "$host_os" in 36145 mingw*) 36146 gl_dirsep_regex='[/\\]' 36147 ;; 36148 *) 36149 gl_dirsep_regex='\/' 36150 ;; 36151 esac 36152 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 36153 gl_header_literal_regex=`echo 'wctype.h' \ 36154 | sed -e "$gl_make_literal_regex_sed"` 36155 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 36156 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 36157 s|^/[^/]|//&| 36158 p 36159 q 36160 }' 36161 36162 gl_cv_absolute_wctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 36163 sed -n "$gl_absolute_header_sed"` 36164 36165 gl_header=$gl_cv_absolute_wctype_h 36166 gl_cv_next_wctype_h='"'$gl_header'"' 36167 else 36168 gl_cv_next_wctype_h='<'wctype.h'>' 36169 fi 36170 36171 36172fi 36173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5 36174$as_echo "$gl_cv_next_wctype_h" >&6; } 36175 fi 36176 NEXT_WCTYPE_H=$gl_cv_next_wctype_h 36177 36178 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 36179 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 36180 gl_next_as_first_directive='<'wctype.h'>' 36181 else 36182 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 36183 gl_next_as_first_directive=$gl_cv_next_wctype_h 36184 fi 36185 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive 36186 36187 36188 36189 36190 if test $ac_cv_header_wctype_h = yes; then 36191 if test $ac_cv_func_iswcntrl = yes; then 36192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5 36193$as_echo_n "checking whether iswcntrl works... " >&6; } 36194if ${gl_cv_func_iswcntrl_works+:} false; then : 36195 $as_echo_n "(cached) " >&6 36196else 36197 36198 if test "$cross_compiling" = yes; then : 36199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36200/* end confdefs.h. */ 36201#include <stdlib.h> 36202 #if __GNU_LIBRARY__ == 1 36203 Linux libc5 i18n is broken. 36204 #endif 36205int 36206main () 36207{ 36208 36209 ; 36210 return 0; 36211} 36212_ACEOF 36213if ac_fn_c_try_compile "$LINENO"; then : 36214 gl_cv_func_iswcntrl_works="guessing yes" 36215else 36216 gl_cv_func_iswcntrl_works="guessing no" 36217fi 36218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36219 36220else 36221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36222/* end confdefs.h. */ 36223 36224 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be 36225 included before <wchar.h>. 36226 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> 36227 must be included before <wchar.h>. */ 36228 #include <stddef.h> 36229 #include <stdio.h> 36230 #include <time.h> 36231 #include <wchar.h> 36232 #include <wctype.h> 36233 int main () { return iswprint ('x') == 0; } 36234 36235_ACEOF 36236if ac_fn_c_try_run "$LINENO"; then : 36237 gl_cv_func_iswcntrl_works=yes 36238else 36239 gl_cv_func_iswcntrl_works=no 36240fi 36241rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 36242 conftest.$ac_objext conftest.beam conftest.$ac_ext 36243fi 36244 36245 36246fi 36247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5 36248$as_echo "$gl_cv_func_iswcntrl_works" >&6; } 36249 fi 36250 HAVE_WCTYPE_H=1 36251 else 36252 HAVE_WCTYPE_H=0 36253 fi 36254 36255 36256 if test $GNULIB_OVERRIDES_WINT_T = 1; then 36257 REPLACE_ISWCNTRL=1 36258 else 36259 case "$gl_cv_func_iswcntrl_works" in 36260 *yes) REPLACE_ISWCNTRL=0 ;; 36261 *) REPLACE_ISWCNTRL=1 ;; 36262 esac 36263 fi 36264 36265 36266 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then 36267 : 36268 fi 36269 36270 if test $REPLACE_ISWCNTRL = 1; then 36271 REPLACE_TOWLOWER=1 36272 else 36273 for ac_func in towlower 36274do : 36275 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower" 36276if test "x$ac_cv_func_towlower" = xyes; then : 36277 cat >>confdefs.h <<_ACEOF 36278#define HAVE_TOWLOWER 1 36279_ACEOF 36280 36281fi 36282done 36283 36284 if test $ac_cv_func_towlower = yes; then 36285 REPLACE_TOWLOWER=0 36286 else 36287 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be 36288 included before <wchar.h>. 36289 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> 36290 must be included before <wchar.h>. */ 36291 #include <stddef.h> 36292 #include <stdio.h> 36293 #include <time.h> 36294 #include <wchar.h> 36295 #if HAVE_WCTYPE_H 36296 # include <wctype.h> 36297 #endif 36298 36299" 36300if test "x$ac_cv_have_decl_towlower" = xyes; then : 36301 ac_have_decl=1 36302else 36303 ac_have_decl=0 36304fi 36305 36306cat >>confdefs.h <<_ACEOF 36307#define HAVE_DECL_TOWLOWER $ac_have_decl 36308_ACEOF 36309 36310 if test $ac_cv_have_decl_towlower = yes; then 36311 REPLACE_TOWLOWER=1 36312 else 36313 REPLACE_TOWLOWER=0 36314 fi 36315 fi 36316 fi 36317 36318 36319 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then 36320 : 36321 fi 36322 36323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5 36324$as_echo_n "checking for wctype_t... " >&6; } 36325if ${gl_cv_type_wctype_t+:} false; then : 36326 $as_echo_n "(cached) " >&6 36327else 36328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36329/* end confdefs.h. */ 36330/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be 36331 included before <wchar.h>. 36332 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> 36333 must be included before <wchar.h>. */ 36334 #include <stddef.h> 36335 #include <stdio.h> 36336 #include <time.h> 36337 #include <wchar.h> 36338 #if HAVE_WCTYPE_H 36339 # include <wctype.h> 36340 #endif 36341 wctype_t a; 36342 36343int 36344main () 36345{ 36346 36347 ; 36348 return 0; 36349} 36350_ACEOF 36351if ac_fn_c_try_compile "$LINENO"; then : 36352 gl_cv_type_wctype_t=yes 36353else 36354 gl_cv_type_wctype_t=no 36355fi 36356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36357 36358fi 36359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5 36360$as_echo "$gl_cv_type_wctype_t" >&6; } 36361 if test $gl_cv_type_wctype_t = no; then 36362 HAVE_WCTYPE_T=0 36363 fi 36364 36365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5 36366$as_echo_n "checking for wctrans_t... " >&6; } 36367if ${gl_cv_type_wctrans_t+:} false; then : 36368 $as_echo_n "(cached) " >&6 36369else 36370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36371/* end confdefs.h. */ 36372/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be 36373 included before <wchar.h>. 36374 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> 36375 must be included before <wchar.h>. */ 36376 #include <stddef.h> 36377 #include <stdio.h> 36378 #include <time.h> 36379 #include <wchar.h> 36380 #include <wctype.h> 36381 wctrans_t a; 36382 36383int 36384main () 36385{ 36386 36387 ; 36388 return 0; 36389} 36390_ACEOF 36391if ac_fn_c_try_compile "$LINENO"; then : 36392 gl_cv_type_wctrans_t=yes 36393else 36394 gl_cv_type_wctrans_t=no 36395fi 36396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36397 36398fi 36399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5 36400$as_echo "$gl_cv_type_wctrans_t" >&6; } 36401 if test $gl_cv_type_wctrans_t = no; then 36402 HAVE_WCTRANS_T=0 36403 fi 36404 36405 36406 36407 36408 36409 36410 36411 36412 36413 36414 36415 36416 36417 36418 36419 36420 ac_fn_c_check_decl "$LINENO" "wcwidth" "ac_cv_have_decl_wcwidth" " 36421/* AIX 3.2.5 declares wcwidth in <string.h>. */ 36422#include <string.h> 36423/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 36424 <wchar.h>. 36425 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included 36426 before <wchar.h>. */ 36427#include <stddef.h> 36428#include <stdio.h> 36429#include <time.h> 36430#include <wchar.h> 36431 36432" 36433if test "x$ac_cv_have_decl_wcwidth" = xyes; then : 36434 ac_have_decl=1 36435else 36436 ac_have_decl=0 36437fi 36438 36439cat >>confdefs.h <<_ACEOF 36440#define HAVE_DECL_WCWIDTH $ac_have_decl 36441_ACEOF 36442 36443 if test $ac_cv_have_decl_wcwidth != yes; then 36444 HAVE_DECL_WCWIDTH=0 36445 fi 36446 36447 if test $ac_cv_func_wcwidth != yes; then 36448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcwidth is a macro" >&5 36449$as_echo_n "checking whether wcwidth is a macro... " >&6; } 36450if ${gl_cv_func_wcwidth_macro+:} false; then : 36451 $as_echo_n "(cached) " >&6 36452else 36453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36454/* end confdefs.h. */ 36455 36456#include <wchar.h> 36457#ifdef wcwidth 36458 wchar_header_defines_wcwidth 36459#endif 36460_ACEOF 36461if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 36462 $EGREP "wchar_header_defines_wcwidth" >/dev/null 2>&1; then : 36463 gl_cv_func_wcwidth_macro=yes 36464else 36465 gl_cv_func_wcwidth_macro=no 36466fi 36467rm -f conftest* 36468 36469 36470fi 36471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcwidth_macro" >&5 36472$as_echo "$gl_cv_func_wcwidth_macro" >&6; } 36473 fi 36474 36475 if test $ac_cv_func_wcwidth = yes || test $gl_cv_func_wcwidth_macro = yes; then 36476 HAVE_WCWIDTH=1 36477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcwidth works reasonably in UTF-8 locales" >&5 36478$as_echo_n "checking whether wcwidth works reasonably in UTF-8 locales... " >&6; } 36479if ${gl_cv_func_wcwidth_works+:} false; then : 36480 $as_echo_n "(cached) " >&6 36481else 36482 36483 if test "$cross_compiling" = yes; then : 36484 36485 case "$host_os" in 36486 # Guess yes on glibc systems. 36487 *-gnu* | gnu*) gl_cv_func_wcwidth_works="guessing yes";; 36488 # Guess yes on musl systems. 36489 *-musl*) gl_cv_func_wcwidth_works="guessing yes";; 36490 # Guess yes on AIX 7 systems. 36491 aix[7-9]*) gl_cv_func_wcwidth_works="guessing yes";; 36492 *) gl_cv_func_wcwidth_works="$gl_cross_guess_normal";; 36493 esac 36494 36495else 36496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36497/* end confdefs.h. */ 36498 36499#include <locale.h> 36500/* AIX 3.2.5 declares wcwidth in <string.h>. */ 36501#include <string.h> 36502/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 36503 <wchar.h>. 36504 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included 36505 before <wchar.h>. */ 36506#include <stddef.h> 36507#include <stdio.h> 36508#include <time.h> 36509#include <wchar.h> 36510#if !HAVE_DECL_WCWIDTH 36511extern 36512# ifdef __cplusplus 36513"C" 36514# endif 36515int wcwidth (int); 36516#endif 36517int main () 36518{ 36519 int result = 0; 36520 if (setlocale (LC_ALL, "en_US.UTF-8") != NULL) 36521 { 36522 if (wcwidth (0x0301) > 0) 36523 result |= 1; 36524 if (wcwidth (0x05B0) > 0) 36525 result |= 2; 36526 if (wcwidth (0x200B) > 0) 36527 result |= 4; 36528 if (wcwidth (0xFF1A) == 0) 36529 result |= 8; 36530 if (wcwidth (0x2202) > 1) 36531 result |= 16; 36532 } 36533 return result; 36534} 36535_ACEOF 36536if ac_fn_c_try_run "$LINENO"; then : 36537 gl_cv_func_wcwidth_works=yes 36538else 36539 gl_cv_func_wcwidth_works=no 36540fi 36541rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 36542 conftest.$ac_objext conftest.beam conftest.$ac_ext 36543fi 36544 36545 36546fi 36547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcwidth_works" >&5 36548$as_echo "$gl_cv_func_wcwidth_works" >&6; } 36549 case "$gl_cv_func_wcwidth_works" in 36550 *yes) ;; 36551 *no) REPLACE_WCWIDTH=1 ;; 36552 esac 36553 else 36554 HAVE_WCWIDTH=0 36555 fi 36556 36557 if test $HAVE_WCWIDTH = 0 || test $REPLACE_WCWIDTH = 1; then 36558 36559 36560 36561 36562 36563 36564 36565 36566 gl_LIBOBJS="$gl_LIBOBJS wcwidth.$ac_objext" 36567 36568 36569 36570 : 36571 36572 fi 36573 36574 36575 36576 36577 36578 GNULIB_WCWIDTH=1 36579 36580 36581 36582 36583 36584$as_echo "#define GNULIB_TEST_WCWIDTH 1" >>confdefs.h 36585 36586 36587 36588 36589 case "$host_os" in 36590 mingw*) 36591 36592 36593 36594 36595 36596 36597 36598 36599 gl_LIBOBJS="$gl_LIBOBJS windows-mutex.$ac_objext" 36600 36601 ;; 36602 esac 36603 36604 case "$host_os" in 36605 mingw*) 36606 36607 36608 36609 36610 36611 36612 36613 36614 gl_LIBOBJS="$gl_LIBOBJS windows-once.$ac_objext" 36615 36616 ;; 36617 esac 36618 36619 case "$host_os" in 36620 mingw*) 36621 36622 36623 36624 36625 36626 36627 36628 36629 gl_LIBOBJS="$gl_LIBOBJS windows-recmutex.$ac_objext" 36630 36631 ;; 36632 esac 36633 36634 case "$host_os" in 36635 mingw*) 36636 36637 36638 36639 36640 36641 36642 36643 36644 gl_LIBOBJS="$gl_LIBOBJS windows-rwlock.$ac_objext" 36645 36646 ;; 36647 esac 36648 36649 # End of code from modules 36650 36651 36652 36653 36654 36655 36656 36657 36658 36659 gltests_libdeps= 36660 gltests_ltlibdeps= 36661 36662 36663 36664 36665 36666 36667 36668 36669 36670 36671 gl_source_base='tests' 36672 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 36673 36674 gl_module_indicator_condition=$gltests_WITNESS 36675 36676 36677 36678 36679 36680 36681 36682 36683 36684 LIBGRT_LIBDEPS="$gl_libdeps" 36685 36686 LIBGRT_LTLIBDEPS="$gl_ltlibdeps" 36687 36688 36689ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 36690if test "x$ac_cv_type_size_t" = xyes; then : 36691 36692else 36693 36694cat >>confdefs.h <<_ACEOF 36695#define size_t unsigned int 36696_ACEOF 36697 36698fi 36699 36700for ac_func in setlocale 36701do : 36702 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" 36703if test "x$ac_cv_func_setlocale" = xyes; then : 36704 cat >>confdefs.h <<_ACEOF 36705#define HAVE_SETLOCALE 1 36706_ACEOF 36707 36708fi 36709done 36710 36711 36712if test "$enable_shared" = yes; then 36713 case "$host_os" in 36714 mingw* | cygwin*) is_woe32dll=yes ;; 36715 *) is_woe32dll=no ;; 36716 esac 36717else 36718 is_woe32dll=no 36719fi 36720 if test $is_woe32dll = yes; then 36721 WOE32DLL_TRUE= 36722 WOE32DLL_FALSE='#' 36723else 36724 WOE32DLL_TRUE='#' 36725 WOE32DLL_FALSE= 36726fi 36727 36728if test $is_woe32dll = yes; then 36729 36730$as_echo "#define WOE32DLL 1" >>confdefs.h 36731 36732fi 36733 36734INTL_EXPORTS_FLAGS= 36735if test "$USER_LABEL_PREFIX" = _; then 36736 INTL_EXPORTS_FLAGS="-DUSER_LABEL_PREFIX_UNDERSCORE $INTL_EXPORTS_FLAGS" 36737fi 36738 36739 36740 36741 36742ac_aux_dir_abs=`cd $ac_aux_dir && pwd` 36743# Extract the first word of "perl", so it can be a program name with args. 36744set dummy perl; ac_word=$2 36745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36746$as_echo_n "checking for $ac_word... " >&6; } 36747if ${ac_cv_path_PERL+:} false; then : 36748 $as_echo_n "(cached) " >&6 36749else 36750 case $PERL in 36751 [\\/]* | ?:[\\/]*) 36752 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 36753 ;; 36754 *) 36755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36756for as_dir in $PATH 36757do 36758 IFS=$as_save_IFS 36759 test -z "$as_dir" && as_dir=. 36760 for ac_exec_ext in '' $ac_executable_extensions; do 36761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36762 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 36763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36764 break 2 36765 fi 36766done 36767 done 36768IFS=$as_save_IFS 36769 36770 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="$ac_aux_dir_abs/missing perl" 36771 ;; 36772esac 36773fi 36774PERL=$ac_cv_path_PERL 36775if test -n "$PERL"; then 36776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 36777$as_echo "$PERL" >&6; } 36778else 36779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36780$as_echo "no" >&6; } 36781fi 36782 36783 36784 36785CROSS_COMPILING=$cross_compiling 36786 36787 36788 36789 36790 36791 if test "$CXX_CHOICE" = no; then 36792 CXX=no 36793 fi 36794 if test -z "$CXX"; then 36795 if test -n "$CCC"; then 36796 CXX="$CCC" 36797 else 36798 if test -n "$ac_tool_prefix"; then 36799 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 36800 do 36801 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 36802set dummy $ac_tool_prefix$ac_prog; ac_word=$2 36803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36804$as_echo_n "checking for $ac_word... " >&6; } 36805if ${ac_cv_prog_CXX+:} false; then : 36806 $as_echo_n "(cached) " >&6 36807else 36808 if test -n "$CXX"; then 36809 ac_cv_prog_CXX="$CXX" # Let the user override the test. 36810else 36811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36812for as_dir in $PATH 36813do 36814 IFS=$as_save_IFS 36815 test -z "$as_dir" && as_dir=. 36816 for ac_exec_ext in '' $ac_executable_extensions; do 36817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36818 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 36819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36820 break 2 36821 fi 36822done 36823 done 36824IFS=$as_save_IFS 36825 36826fi 36827fi 36828CXX=$ac_cv_prog_CXX 36829if test -n "$CXX"; then 36830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 36831$as_echo "$CXX" >&6; } 36832else 36833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36834$as_echo "no" >&6; } 36835fi 36836 36837 36838 test -n "$CXX" && break 36839 done 36840fi 36841if test -z "$CXX"; then 36842 ac_ct_CXX=$CXX 36843 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 36844do 36845 # Extract the first word of "$ac_prog", so it can be a program name with args. 36846set dummy $ac_prog; ac_word=$2 36847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36848$as_echo_n "checking for $ac_word... " >&6; } 36849if ${ac_cv_prog_ac_ct_CXX+:} false; then : 36850 $as_echo_n "(cached) " >&6 36851else 36852 if test -n "$ac_ct_CXX"; then 36853 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 36854else 36855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36856for as_dir in $PATH 36857do 36858 IFS=$as_save_IFS 36859 test -z "$as_dir" && as_dir=. 36860 for ac_exec_ext in '' $ac_executable_extensions; do 36861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36862 ac_cv_prog_ac_ct_CXX="$ac_prog" 36863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36864 break 2 36865 fi 36866done 36867 done 36868IFS=$as_save_IFS 36869 36870fi 36871fi 36872ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 36873if test -n "$ac_ct_CXX"; then 36874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 36875$as_echo "$ac_ct_CXX" >&6; } 36876else 36877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36878$as_echo "no" >&6; } 36879fi 36880 36881 36882 test -n "$ac_ct_CXX" && break 36883done 36884 36885 if test "x$ac_ct_CXX" = x; then 36886 CXX=":" 36887 else 36888 case $cross_compiling:$ac_tool_warned in 36889yes:) 36890{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 36891$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 36892ac_tool_warned=yes ;; 36893esac 36894 CXX=$ac_ct_CXX 36895 fi 36896fi 36897 36898 fi 36899 fi 36900 if test "$CXX" != no; then 36901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 36902$as_echo_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works... " >&6; } 36903 ac_ext=cpp 36904ac_cpp='$CXXCPP $CPPFLAGS' 36905ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36906ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36907ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 36908 36909 36910 36911 echo 'int main () { return 0; }' > conftest.$ac_ext 36912 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 36913 (eval $ac_link) 2>&5 36914 ac_status=$? 36915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 36916 test $ac_status = 0; } && test -s conftest$ac_exeext; then 36917 gl_cv_prog_ansicxx_works=yes 36918 if (./conftest; exit) 2>/dev/null; then 36919 gl_cv_prog_ansicxx_cross=no 36920 else 36921 gl_cv_prog_ansicxx_cross=yes 36922 fi 36923 else 36924 gl_cv_prog_ansicxx_works=no 36925 fi 36926 rm -fr conftest* 36927 ac_ext=c 36928ac_cpp='$CPP $CPPFLAGS' 36929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36931ac_compiler_gnu=$ac_cv_c_compiler_gnu 36932 36933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_ansicxx_works" >&5 36934$as_echo "$gl_cv_prog_ansicxx_works" >&6; } 36935 if test $gl_cv_prog_ansicxx_works = no; then 36936 CXX=no 36937 else 36938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler supports namespaces" >&5 36939$as_echo_n "checking whether the C++ compiler supports namespaces... " >&6; } 36940 ac_ext=cpp 36941ac_cpp='$CXXCPP $CPPFLAGS' 36942ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36943ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36944ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 36945 36946 cat <<EOF > conftest.$ac_ext 36947#include <iostream> 36948namespace test { using namespace std; } 36949std::ostream* ptr; 36950int main () { return 0; } 36951EOF 36952 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 36953 (eval $ac_link) 2>&5 36954 ac_status=$? 36955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 36956 test $ac_status = 0; } && test -s conftest$ac_exeext; then 36957 gl_cv_prog_ansicxx_namespaces=yes 36958 else 36959 gl_cv_prog_ansicxx_namespaces=no 36960 fi 36961 rm -fr conftest* 36962 ac_ext=c 36963ac_cpp='$CPP $CPPFLAGS' 36964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36966ac_compiler_gnu=$ac_cv_c_compiler_gnu 36967 36968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_ansicxx_namespaces" >&5 36969$as_echo "$gl_cv_prog_ansicxx_namespaces" >&6; } 36970 if test $gl_cv_prog_ansicxx_namespaces = no; then 36971 CXX=no 36972 fi 36973 fi 36974 fi 36975 36976 36977 36978 if test "$CXX" != no; then 36979 ANSICXX_TRUE= 36980 ANSICXX_FALSE='#' 36981else 36982 ANSICXX_TRUE='#' 36983 ANSICXX_FALSE= 36984fi 36985 36986 36987 if test "$CXX" != no; then 36988 36989depcc="$CXX" am_compiler_list= 36990 36991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 36992$as_echo_n "checking dependency style of $depcc... " >&6; } 36993if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 36994 $as_echo_n "(cached) " >&6 36995else 36996 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 36997 # We make a subdir and do the tests there. Otherwise we can end up 36998 # making bogus files that we don't know about and never remove. For 36999 # instance it was reported that on HP-UX the gcc test will end up 37000 # making a dummy file named 'D' -- because '-MD' means "put the output 37001 # in D". 37002 rm -rf conftest.dir 37003 mkdir conftest.dir 37004 # Copy depcomp to subdir because otherwise we won't find it if we're 37005 # using a relative directory. 37006 cp "$am_depcomp" conftest.dir 37007 cd conftest.dir 37008 # We will build objects and dependencies in a subdirectory because 37009 # it helps to detect inapplicable dependency modes. For instance 37010 # both Tru64's cc and ICC support -MD to output dependencies as a 37011 # side effect of compilation, but ICC will put the dependencies in 37012 # the current directory while Tru64 will put them in the object 37013 # directory. 37014 mkdir sub 37015 37016 am_cv_CXX_dependencies_compiler_type=none 37017 if test "$am_compiler_list" = ""; then 37018 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 37019 fi 37020 am__universal=false 37021 case " $depcc " in #( 37022 *\ -arch\ *\ -arch\ *) am__universal=true ;; 37023 esac 37024 37025 for depmode in $am_compiler_list; do 37026 # Setup a source with many dependencies, because some compilers 37027 # like to wrap large dependency lists on column 80 (with \), and 37028 # we should not choose a depcomp mode which is confused by this. 37029 # 37030 # We need to recreate these files for each test, as the compiler may 37031 # overwrite some of them when testing with obscure command lines. 37032 # This happens at least with the AIX C compiler. 37033 : > sub/conftest.c 37034 for i in 1 2 3 4 5 6; do 37035 echo '#include "conftst'$i'.h"' >> sub/conftest.c 37036 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 37037 # Solaris 10 /bin/sh. 37038 echo '/* dummy */' > sub/conftst$i.h 37039 done 37040 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 37041 37042 # We check with '-c' and '-o' for the sake of the "dashmstdout" 37043 # mode. It turns out that the SunPro C++ compiler does not properly 37044 # handle '-M -o', and we need to detect this. Also, some Intel 37045 # versions had trouble with output in subdirs. 37046 am__obj=sub/conftest.${OBJEXT-o} 37047 am__minus_obj="-o $am__obj" 37048 case $depmode in 37049 gcc) 37050 # This depmode causes a compiler race in universal mode. 37051 test "$am__universal" = false || continue 37052 ;; 37053 nosideeffect) 37054 # After this tag, mechanisms are not by side-effect, so they'll 37055 # only be used when explicitly requested. 37056 if test "x$enable_dependency_tracking" = xyes; then 37057 continue 37058 else 37059 break 37060 fi 37061 ;; 37062 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 37063 # This compiler won't grok '-c -o', but also, the minuso test has 37064 # not run yet. These depmodes are late enough in the game, and 37065 # so weak that their functioning should not be impacted. 37066 am__obj=conftest.${OBJEXT-o} 37067 am__minus_obj= 37068 ;; 37069 none) break ;; 37070 esac 37071 if depmode=$depmode \ 37072 source=sub/conftest.c object=$am__obj \ 37073 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 37074 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 37075 >/dev/null 2>conftest.err && 37076 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 37077 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 37078 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 37079 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 37080 # icc doesn't choke on unknown options, it will just issue warnings 37081 # or remarks (even with -Werror). So we grep stderr for any message 37082 # that says an option was ignored or not supported. 37083 # When given -MP, icc 7.0 and 7.1 complain thusly: 37084 # icc: Command line warning: ignoring option '-M'; no argument required 37085 # The diagnosis changed in icc 8.0: 37086 # icc: Command line remark: option '-MP' not supported 37087 if (grep 'ignoring option' conftest.err || 37088 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 37089 am_cv_CXX_dependencies_compiler_type=$depmode 37090 break 37091 fi 37092 fi 37093 done 37094 37095 cd .. 37096 rm -rf conftest.dir 37097else 37098 am_cv_CXX_dependencies_compiler_type=none 37099fi 37100 37101fi 37102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 37103$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 37104CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 37105 37106 if 37107 test "x$enable_dependency_tracking" != xno \ 37108 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 37109 am__fastdepCXX_TRUE= 37110 am__fastdepCXX_FALSE='#' 37111else 37112 am__fastdepCXX_TRUE='#' 37113 am__fastdepCXX_FALSE= 37114fi 37115 37116 37117 ac_ext=cpp 37118ac_cpp='$CXXCPP $CPPFLAGS' 37119ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 37120ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 37121ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 37122 37123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 37124$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 37125if ${ac_cv_cxx_compiler_gnu+:} false; then : 37126 $as_echo_n "(cached) " >&6 37127else 37128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37129/* end confdefs.h. */ 37130 37131int 37132main () 37133{ 37134#ifndef __GNUC__ 37135 choke me 37136#endif 37137 37138 ; 37139 return 0; 37140} 37141_ACEOF 37142if ac_fn_cxx_try_compile "$LINENO"; then : 37143 ac_compiler_gnu=yes 37144else 37145 ac_compiler_gnu=no 37146fi 37147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 37148ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 37149 37150fi 37151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 37152$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 37153 if test $ac_compiler_gnu = yes; then 37154 GXX=yes 37155 else 37156 GXX= 37157 fi 37158 ac_test_CXXFLAGS=${CXXFLAGS+set} 37159ac_save_CXXFLAGS=$CXXFLAGS 37160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 37161$as_echo_n "checking whether $CXX accepts -g... " >&6; } 37162if ${ac_cv_prog_cxx_g+:} false; then : 37163 $as_echo_n "(cached) " >&6 37164else 37165 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 37166 ac_cxx_werror_flag=yes 37167 ac_cv_prog_cxx_g=no 37168 CXXFLAGS="-g" 37169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37170/* end confdefs.h. */ 37171 37172int 37173main () 37174{ 37175 37176 ; 37177 return 0; 37178} 37179_ACEOF 37180if ac_fn_cxx_try_compile "$LINENO"; then : 37181 ac_cv_prog_cxx_g=yes 37182else 37183 CXXFLAGS="" 37184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37185/* end confdefs.h. */ 37186 37187int 37188main () 37189{ 37190 37191 ; 37192 return 0; 37193} 37194_ACEOF 37195if ac_fn_cxx_try_compile "$LINENO"; then : 37196 37197else 37198 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 37199 CXXFLAGS="-g" 37200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37201/* end confdefs.h. */ 37202 37203int 37204main () 37205{ 37206 37207 ; 37208 return 0; 37209} 37210_ACEOF 37211if ac_fn_cxx_try_compile "$LINENO"; then : 37212 ac_cv_prog_cxx_g=yes 37213fi 37214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 37215fi 37216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 37217fi 37218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 37219 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 37220fi 37221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 37222$as_echo "$ac_cv_prog_cxx_g" >&6; } 37223if test "$ac_test_CXXFLAGS" = set; then 37224 CXXFLAGS=$ac_save_CXXFLAGS 37225elif test $ac_cv_prog_cxx_g = yes; then 37226 if test "$GXX" = yes; then 37227 CXXFLAGS="-g -O2" 37228 else 37229 CXXFLAGS="-g" 37230 fi 37231else 37232 if test "$GXX" = yes; then 37233 CXXFLAGS="-O2" 37234 else 37235 CXXFLAGS= 37236 fi 37237fi 37238 ac_ext=c 37239ac_cpp='$CPP $CPPFLAGS' 37240ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 37241ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 37242ac_compiler_gnu=$ac_cv_c_compiler_gnu 37243 37244 else 37245 if false; then 37246 am__fastdepCXX_TRUE= 37247 am__fastdepCXX_FALSE='#' 37248else 37249 am__fastdepCXX_TRUE='#' 37250 am__fastdepCXX_FALSE= 37251fi 37252 37253 fi 37254 37255 37256LIBSCHED= 37257if test $gl_threads_api = posix; then 37258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5 37259$as_echo_n "checking for sched_yield in -lrt... " >&6; } 37260if ${ac_cv_lib_rt_sched_yield+:} false; then : 37261 $as_echo_n "(cached) " >&6 37262else 37263 ac_check_lib_save_LIBS=$LIBS 37264LIBS="-lrt $LIBS" 37265cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37266/* end confdefs.h. */ 37267 37268/* Override any GCC internal prototype to avoid an error. 37269 Use char because int might match the return type of a GCC 37270 builtin and then its argument prototype would still apply. */ 37271#ifdef __cplusplus 37272extern "C" 37273#endif 37274char sched_yield (); 37275int 37276main () 37277{ 37278return sched_yield (); 37279 ; 37280 return 0; 37281} 37282_ACEOF 37283if ac_fn_c_try_link "$LINENO"; then : 37284 ac_cv_lib_rt_sched_yield=yes 37285else 37286 ac_cv_lib_rt_sched_yield=no 37287fi 37288rm -f core conftest.err conftest.$ac_objext \ 37289 conftest$ac_exeext conftest.$ac_ext 37290LIBS=$ac_check_lib_save_LIBS 37291fi 37292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5 37293$as_echo "$ac_cv_lib_rt_sched_yield" >&6; } 37294if test "x$ac_cv_lib_rt_sched_yield" = xyes; then : 37295 LIBSCHED=-lrt 37296else 37297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5 37298$as_echo_n "checking for sched_yield in -lposix4... " >&6; } 37299if ${ac_cv_lib_posix4_sched_yield+:} false; then : 37300 $as_echo_n "(cached) " >&6 37301else 37302 ac_check_lib_save_LIBS=$LIBS 37303LIBS="-lposix4 $LIBS" 37304cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37305/* end confdefs.h. */ 37306 37307/* Override any GCC internal prototype to avoid an error. 37308 Use char because int might match the return type of a GCC 37309 builtin and then its argument prototype would still apply. */ 37310#ifdef __cplusplus 37311extern "C" 37312#endif 37313char sched_yield (); 37314int 37315main () 37316{ 37317return sched_yield (); 37318 ; 37319 return 0; 37320} 37321_ACEOF 37322if ac_fn_c_try_link "$LINENO"; then : 37323 ac_cv_lib_posix4_sched_yield=yes 37324else 37325 ac_cv_lib_posix4_sched_yield=no 37326fi 37327rm -f core conftest.err conftest.$ac_objext \ 37328 conftest$ac_exeext conftest.$ac_ext 37329LIBS=$ac_check_lib_save_LIBS 37330fi 37331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5 37332$as_echo "$ac_cv_lib_posix4_sched_yield" >&6; } 37333if test "x$ac_cv_lib_posix4_sched_yield" = xyes; then : 37334 LIBSCHED=-lposix4 37335fi 37336 37337fi 37338 37339fi 37340 37341 37342# Check whether --enable-libasprintf was given. 37343if test "${enable_libasprintf+set}" = set; then : 37344 enableval=$enable_libasprintf; if test "$enableval" != no; then 37345 SUBDIR_libasprintf=libasprintf 37346 else 37347 SUBDIR_libasprintf= 37348 fi 37349 37350else 37351 SUBDIR_libasprintf=libasprintf 37352fi 37353 37354if test "$CXX" = "no"; then 37355 SUBDIR_libasprintf= 37356fi 37357 if test -n "$SUBDIR_libasprintf"; then 37358 ENABLE_LIBASPRINTF_TRUE= 37359 ENABLE_LIBASPRINTF_FALSE='#' 37360else 37361 ENABLE_LIBASPRINTF_TRUE='#' 37362 ENABLE_LIBASPRINTF_FALSE= 37363fi 37364 37365 37366 37367 37368subdirs="$subdirs libasprintf" 37369 37370 37371ac_config_files="$ac_config_files Makefile" 37372 37373 37374ac_config_files="$ac_config_files doc/Makefile" 37375 37376 37377ac_config_files="$ac_config_files intl/Makefile" 37378 37379 37380ac_config_files="$ac_config_files intl-java/Makefile" 37381 37382 37383ac_config_files="$ac_config_files intl-csharp/Makefile" 37384 37385 37386ac_config_files="$ac_config_files gnulib-lib/Makefile" 37387 37388 37389ac_config_files="$ac_config_files src/Makefile" 37390 37391ac_config_files="$ac_config_files src/gettext.sh" 37392 37393 37394ac_config_files="$ac_config_files po/Makefile.in" 37395 37396 37397ac_config_files="$ac_config_files man/Makefile" 37398 37399ac_config_files="$ac_config_files man/x-to-1" 37400 37401 37402ac_config_files="$ac_config_files m4/Makefile" 37403 37404 37405ac_config_files="$ac_config_files tests/Makefile" 37406 37407 37408cat >confcache <<\_ACEOF 37409# This file is a shell script that caches the results of configure 37410# tests run on this system so they can be shared between configure 37411# scripts and configure runs, see configure's option --config-cache. 37412# It is not useful on other systems. If it contains results you don't 37413# want to keep, you may remove or edit it. 37414# 37415# config.status only pays attention to the cache file if you give it 37416# the --recheck option to rerun configure. 37417# 37418# `ac_cv_env_foo' variables (set or unset) will be overridden when 37419# loading this file, other *unset* `ac_cv_foo' will be assigned the 37420# following values. 37421 37422_ACEOF 37423 37424# The following way of writing the cache mishandles newlines in values, 37425# but we know of no workaround that is simple, portable, and efficient. 37426# So, we kill variables containing newlines. 37427# Ultrix sh set writes to stderr and can't be redirected directly, 37428# and sets the high bit in the cache file unless we assign to the vars. 37429( 37430 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 37431 eval ac_val=\$$ac_var 37432 case $ac_val in #( 37433 *${as_nl}*) 37434 case $ac_var in #( 37435 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 37436$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 37437 esac 37438 case $ac_var in #( 37439 _ | IFS | as_nl) ;; #( 37440 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 37441 *) { eval $ac_var=; unset $ac_var;} ;; 37442 esac ;; 37443 esac 37444 done 37445 37446 (set) 2>&1 | 37447 case $as_nl`(ac_space=' '; set) 2>&1` in #( 37448 *${as_nl}ac_space=\ *) 37449 # `set' does not quote correctly, so add quotes: double-quote 37450 # substitution turns \\\\ into \\, and sed turns \\ into \. 37451 sed -n \ 37452 "s/'/'\\\\''/g; 37453 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 37454 ;; #( 37455 *) 37456 # `set' quotes correctly as required by POSIX, so do not add quotes. 37457 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 37458 ;; 37459 esac | 37460 sort 37461) | 37462 sed ' 37463 /^ac_cv_env_/b end 37464 t clear 37465 :clear 37466 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 37467 t end 37468 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 37469 :end' >>confcache 37470if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 37471 if test -w "$cache_file"; then 37472 if test "x$cache_file" != "x/dev/null"; then 37473 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 37474$as_echo "$as_me: updating cache $cache_file" >&6;} 37475 if test ! -f "$cache_file" || test -h "$cache_file"; then 37476 cat confcache >"$cache_file" 37477 else 37478 case $cache_file in #( 37479 */* | ?:*) 37480 mv -f confcache "$cache_file"$$ && 37481 mv -f "$cache_file"$$ "$cache_file" ;; #( 37482 *) 37483 mv -f confcache "$cache_file" ;; 37484 esac 37485 fi 37486 fi 37487 else 37488 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 37489$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 37490 fi 37491fi 37492rm -f confcache 37493 37494test "x$prefix" = xNONE && prefix=$ac_default_prefix 37495# Let make expand exec_prefix. 37496test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 37497 37498DEFS=-DHAVE_CONFIG_H 37499 37500ac_libobjs= 37501ac_ltlibobjs= 37502U= 37503for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 37504 # 1. Remove the extension, and $U if already installed. 37505 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 37506 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 37507 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 37508 # will be set to the directory where LIBOBJS objects are built. 37509 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 37510 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 37511done 37512LIBOBJS=$ac_libobjs 37513 37514LTLIBOBJS=$ac_ltlibobjs 37515 37516 37517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 37518$as_echo_n "checking that generated files are newer than configure... " >&6; } 37519 if test -n "$am_sleep_pid"; then 37520 # Hide warnings about reused PIDs. 37521 wait $am_sleep_pid 2>/dev/null 37522 fi 37523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 37524$as_echo "done" >&6; } 37525 if test -n "$EXEEXT"; then 37526 am__EXEEXT_TRUE= 37527 am__EXEEXT_FALSE='#' 37528else 37529 am__EXEEXT_TRUE='#' 37530 am__EXEEXT_FALSE= 37531fi 37532 37533if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 37534 as_fn_error $? "conditional \"AMDEP\" was never defined. 37535Usually this means the macro was only invoked conditionally." "$LINENO" 5 37536fi 37537if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 37538 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 37539Usually this means the macro was only invoked conditionally." "$LINENO" 5 37540fi 37541if test -z "${WOE32_TRUE}" && test -z "${WOE32_FALSE}"; then 37542 as_fn_error $? "conditional \"WOE32\" was never defined. 37543Usually this means the macro was only invoked conditionally." "$LINENO" 5 37544fi 37545if test -z "${WINDOWS_NATIVE_TRUE}" && test -z "${WINDOWS_NATIVE_FALSE}"; then 37546 as_fn_error $? "conditional \"WINDOWS_NATIVE\" was never defined. 37547Usually this means the macro was only invoked conditionally." "$LINENO" 5 37548fi 37549if test -z "${ANSICXX_TRUE}" && test -z "${ANSICXX_FALSE}"; then 37550 as_fn_error $? "conditional \"ANSICXX\" was never defined. 37551Usually this means the macro was only invoked conditionally." "$LINENO" 5 37552fi 37553if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 37554 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 37555Usually this means the macro was only invoked conditionally." "$LINENO" 5 37556fi 37557if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 37558 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 37559Usually this means the macro was only invoked conditionally." "$LINENO" 5 37560fi 37561if test -z "${GL_GENERATE_ICONV_H_TRUE}" && test -z "${GL_GENERATE_ICONV_H_FALSE}"; then 37562 as_fn_error $? "conditional \"GL_GENERATE_ICONV_H\" was never defined. 37563Usually this means the macro was only invoked conditionally." "$LINENO" 5 37564fi 37565if test -z "${USE_INCLUDED_LIBINTL_TRUE}" && test -z "${USE_INCLUDED_LIBINTL_FALSE}"; then 37566 as_fn_error $? "conditional \"USE_INCLUDED_LIBINTL\" was never defined. 37567Usually this means the macro was only invoked conditionally." "$LINENO" 5 37568fi 37569if test -z "${BUILD_INCLUDED_LIBINTL_TRUE}" && test -z "${BUILD_INCLUDED_LIBINTL_FALSE}"; then 37570 as_fn_error $? "conditional \"BUILD_INCLUDED_LIBINTL\" was never defined. 37571Usually this means the macro was only invoked conditionally." "$LINENO" 5 37572fi 37573if test -z "${PACKAGE_IS_GETTEXT_TOOLS_TRUE}" && test -z "${PACKAGE_IS_GETTEXT_TOOLS_FALSE}"; then 37574 as_fn_error $? "conditional \"PACKAGE_IS_GETTEXT_TOOLS\" was never defined. 37575Usually this means the macro was only invoked conditionally." "$LINENO" 5 37576fi 37577if test -z "${PRELOADABLE_LIBINTL_TRUE}" && test -z "${PRELOADABLE_LIBINTL_FALSE}"; then 37578 as_fn_error $? "conditional \"PRELOADABLE_LIBINTL\" was never defined. 37579Usually this means the macro was only invoked conditionally." "$LINENO" 5 37580fi 37581if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then 37582 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined. 37583Usually this means the macro was only invoked conditionally." "$LINENO" 5 37584fi 37585if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then 37586 as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined. 37587Usually this means the macro was only invoked conditionally." "$LINENO" 5 37588fi 37589if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then 37590 as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined. 37591Usually this means the macro was only invoked conditionally." "$LINENO" 5 37592fi 37593if test -z "${GL_GENERATE_ICONV_H_TRUE}" && test -z "${GL_GENERATE_ICONV_H_FALSE}"; then 37594 as_fn_error $? "conditional \"GL_GENERATE_ICONV_H\" was never defined. 37595Usually this means the macro was only invoked conditionally." "$LINENO" 5 37596fi 37597if test -z "${GL_GENERATE_ICONV_H_TRUE}" && test -z "${GL_GENERATE_ICONV_H_FALSE}"; then 37598 as_fn_error $? "conditional \"GL_GENERATE_ICONV_H\" was never defined. 37599Usually this means the macro was only invoked conditionally." "$LINENO" 5 37600fi 37601if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then 37602 as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined. 37603Usually this means the macro was only invoked conditionally." "$LINENO" 5 37604fi 37605if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then 37606 as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined. 37607Usually this means the macro was only invoked conditionally." "$LINENO" 5 37608fi 37609if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then 37610 as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined. 37611Usually this means the macro was only invoked conditionally." "$LINENO" 5 37612fi 37613if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then 37614 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined. 37615Usually this means the macro was only invoked conditionally." "$LINENO" 5 37616fi 37617if test -z "${RELOCATABLE_VIA_LD_TRUE}" && test -z "${RELOCATABLE_VIA_LD_FALSE}"; then 37618 as_fn_error $? "conditional \"RELOCATABLE_VIA_LD\" was never defined. 37619Usually this means the macro was only invoked conditionally." "$LINENO" 5 37620fi 37621if test -z "${RELOCATABLE_VIA_WRAPPER_TRUE}" && test -z "${RELOCATABLE_VIA_WRAPPER_FALSE}"; then 37622 as_fn_error $? "conditional \"RELOCATABLE_VIA_WRAPPER\" was never defined. 37623Usually this means the macro was only invoked conditionally." "$LINENO" 5 37624fi 37625if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then 37626 as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined. 37627Usually this means the macro was only invoked conditionally." "$LINENO" 5 37628fi 37629if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then 37630 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined. 37631Usually this means the macro was only invoked conditionally." "$LINENO" 5 37632fi 37633if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE}"; then 37634 as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR\" was never defined. 37635Usually this means the macro was only invoked conditionally." "$LINENO" 5 37636fi 37637if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE}"; then 37638 as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB\" was never defined. 37639Usually this means the macro was only invoked conditionally." "$LINENO" 5 37640fi 37641if test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE}"; then 37642 as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH\" was never defined. 37643Usually this means the macro was only invoked conditionally." "$LINENO" 5 37644fi 37645 37646 gl_libobjs= 37647 gl_ltlibobjs= 37648 if test -n "$gl_LIBOBJS"; then 37649 # Remove the extension. 37650 sed_drop_objext='s/\.o$//;s/\.obj$//' 37651 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do 37652 gl_libobjs="$gl_libobjs $i.$ac_objext" 37653 gl_ltlibobjs="$gl_ltlibobjs $i.lo" 37654 done 37655 fi 37656 gl_LIBOBJS=$gl_libobjs 37657 37658 gl_LTLIBOBJS=$gl_ltlibobjs 37659 37660 37661 37662 gltests_libobjs= 37663 gltests_ltlibobjs= 37664 if test -n "$gltests_LIBOBJS"; then 37665 # Remove the extension. 37666 sed_drop_objext='s/\.o$//;s/\.obj$//' 37667 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do 37668 gltests_libobjs="$gltests_libobjs $i.$ac_objext" 37669 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo" 37670 done 37671 fi 37672 gltests_LIBOBJS=$gltests_libobjs 37673 37674 gltests_LTLIBOBJS=$gltests_ltlibobjs 37675 37676 37677if test -z "${WOE32DLL_TRUE}" && test -z "${WOE32DLL_FALSE}"; then 37678 as_fn_error $? "conditional \"WOE32DLL\" was never defined. 37679Usually this means the macro was only invoked conditionally." "$LINENO" 5 37680fi 37681if test -z "${ANSICXX_TRUE}" && test -z "${ANSICXX_FALSE}"; then 37682 as_fn_error $? "conditional \"ANSICXX\" was never defined. 37683Usually this means the macro was only invoked conditionally." "$LINENO" 5 37684fi 37685if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 37686 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 37687Usually this means the macro was only invoked conditionally." "$LINENO" 5 37688fi 37689if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 37690 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 37691Usually this means the macro was only invoked conditionally." "$LINENO" 5 37692fi 37693if test -z "${ENABLE_LIBASPRINTF_TRUE}" && test -z "${ENABLE_LIBASPRINTF_FALSE}"; then 37694 as_fn_error $? "conditional \"ENABLE_LIBASPRINTF\" was never defined. 37695Usually this means the macro was only invoked conditionally." "$LINENO" 5 37696fi 37697 37698: "${CONFIG_STATUS=./config.status}" 37699ac_write_fail=0 37700ac_clean_files_save=$ac_clean_files 37701ac_clean_files="$ac_clean_files $CONFIG_STATUS" 37702{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 37703$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 37704as_write_fail=0 37705cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 37706#! $SHELL 37707# Generated by $as_me. 37708# Run this file to recreate the current configuration. 37709# Compiler output produced by configure, useful for debugging 37710# configure, is in config.log if it exists. 37711 37712debug=false 37713ac_cs_recheck=false 37714ac_cs_silent=false 37715 37716SHELL=\${CONFIG_SHELL-$SHELL} 37717export SHELL 37718_ASEOF 37719cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 37720## -------------------- ## 37721## M4sh Initialization. ## 37722## -------------------- ## 37723 37724# Be more Bourne compatible 37725DUALCASE=1; export DUALCASE # for MKS sh 37726if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 37727 emulate sh 37728 NULLCMD=: 37729 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 37730 # is contrary to our usage. Disable this feature. 37731 alias -g '${1+"$@"}'='"$@"' 37732 setopt NO_GLOB_SUBST 37733else 37734 case `(set -o) 2>/dev/null` in #( 37735 *posix*) : 37736 set -o posix ;; #( 37737 *) : 37738 ;; 37739esac 37740fi 37741 37742 37743as_nl=' 37744' 37745export as_nl 37746# Printing a long string crashes Solaris 7 /usr/bin/printf. 37747as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 37748as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 37749as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 37750# Prefer a ksh shell builtin over an external printf program on Solaris, 37751# but without wasting forks for bash or zsh. 37752if test -z "$BASH_VERSION$ZSH_VERSION" \ 37753 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 37754 as_echo='print -r --' 37755 as_echo_n='print -rn --' 37756elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 37757 as_echo='printf %s\n' 37758 as_echo_n='printf %s' 37759else 37760 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 37761 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 37762 as_echo_n='/usr/ucb/echo -n' 37763 else 37764 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 37765 as_echo_n_body='eval 37766 arg=$1; 37767 case $arg in #( 37768 *"$as_nl"*) 37769 expr "X$arg" : "X\\(.*\\)$as_nl"; 37770 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 37771 esac; 37772 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 37773 ' 37774 export as_echo_n_body 37775 as_echo_n='sh -c $as_echo_n_body as_echo' 37776 fi 37777 export as_echo_body 37778 as_echo='sh -c $as_echo_body as_echo' 37779fi 37780 37781# The user is always right. 37782if test "${PATH_SEPARATOR+set}" != set; then 37783 PATH_SEPARATOR=: 37784 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 37785 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 37786 PATH_SEPARATOR=';' 37787 } 37788fi 37789 37790 37791# IFS 37792# We need space, tab and new line, in precisely that order. Quoting is 37793# there to prevent editors from complaining about space-tab. 37794# (If _AS_PATH_WALK were called with IFS unset, it would disable word 37795# splitting by setting IFS to empty value.) 37796IFS=" "" $as_nl" 37797 37798# Find who we are. Look in the path if we contain no directory separator. 37799as_myself= 37800case $0 in #(( 37801 *[\\/]* ) as_myself=$0 ;; 37802 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37803for as_dir in $PATH 37804do 37805 IFS=$as_save_IFS 37806 test -z "$as_dir" && as_dir=. 37807 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 37808 done 37809IFS=$as_save_IFS 37810 37811 ;; 37812esac 37813# We did not find ourselves, most probably we were run as `sh COMMAND' 37814# in which case we are not to be found in the path. 37815if test "x$as_myself" = x; then 37816 as_myself=$0 37817fi 37818if test ! -f "$as_myself"; then 37819 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 37820 exit 1 37821fi 37822 37823# Unset variables that we do not need and which cause bugs (e.g. in 37824# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 37825# suppresses any "Segmentation fault" message there. '((' could 37826# trigger a bug in pdksh 5.2.14. 37827for as_var in BASH_ENV ENV MAIL MAILPATH 37828do eval test x\${$as_var+set} = xset \ 37829 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 37830done 37831PS1='$ ' 37832PS2='> ' 37833PS4='+ ' 37834 37835# NLS nuisances. 37836LC_ALL=C 37837export LC_ALL 37838LANGUAGE=C 37839export LANGUAGE 37840 37841# CDPATH. 37842(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 37843 37844 37845# as_fn_error STATUS ERROR [LINENO LOG_FD] 37846# ---------------------------------------- 37847# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 37848# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 37849# script with STATUS, using 1 if that was 0. 37850as_fn_error () 37851{ 37852 as_status=$1; test $as_status -eq 0 && as_status=1 37853 if test "$4"; then 37854 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 37855 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 37856 fi 37857 $as_echo "$as_me: error: $2" >&2 37858 as_fn_exit $as_status 37859} # as_fn_error 37860 37861 37862# as_fn_set_status STATUS 37863# ----------------------- 37864# Set $? to STATUS, without forking. 37865as_fn_set_status () 37866{ 37867 return $1 37868} # as_fn_set_status 37869 37870# as_fn_exit STATUS 37871# ----------------- 37872# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 37873as_fn_exit () 37874{ 37875 set +e 37876 as_fn_set_status $1 37877 exit $1 37878} # as_fn_exit 37879 37880# as_fn_unset VAR 37881# --------------- 37882# Portably unset VAR. 37883as_fn_unset () 37884{ 37885 { eval $1=; unset $1;} 37886} 37887as_unset=as_fn_unset 37888# as_fn_append VAR VALUE 37889# ---------------------- 37890# Append the text in VALUE to the end of the definition contained in VAR. Take 37891# advantage of any shell optimizations that allow amortized linear growth over 37892# repeated appends, instead of the typical quadratic growth present in naive 37893# implementations. 37894if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 37895 eval 'as_fn_append () 37896 { 37897 eval $1+=\$2 37898 }' 37899else 37900 as_fn_append () 37901 { 37902 eval $1=\$$1\$2 37903 } 37904fi # as_fn_append 37905 37906# as_fn_arith ARG... 37907# ------------------ 37908# Perform arithmetic evaluation on the ARGs, and store the result in the 37909# global $as_val. Take advantage of shells that can avoid forks. The arguments 37910# must be portable across $(()) and expr. 37911if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 37912 eval 'as_fn_arith () 37913 { 37914 as_val=$(( $* )) 37915 }' 37916else 37917 as_fn_arith () 37918 { 37919 as_val=`expr "$@" || test $? -eq 1` 37920 } 37921fi # as_fn_arith 37922 37923 37924if expr a : '\(a\)' >/dev/null 2>&1 && 37925 test "X`expr 00001 : '.*\(...\)'`" = X001; then 37926 as_expr=expr 37927else 37928 as_expr=false 37929fi 37930 37931if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 37932 as_basename=basename 37933else 37934 as_basename=false 37935fi 37936 37937if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 37938 as_dirname=dirname 37939else 37940 as_dirname=false 37941fi 37942 37943as_me=`$as_basename -- "$0" || 37944$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 37945 X"$0" : 'X\(//\)$' \| \ 37946 X"$0" : 'X\(/\)' \| . 2>/dev/null || 37947$as_echo X/"$0" | 37948 sed '/^.*\/\([^/][^/]*\)\/*$/{ 37949 s//\1/ 37950 q 37951 } 37952 /^X\/\(\/\/\)$/{ 37953 s//\1/ 37954 q 37955 } 37956 /^X\/\(\/\).*/{ 37957 s//\1/ 37958 q 37959 } 37960 s/.*/./; q'` 37961 37962# Avoid depending upon Character Ranges. 37963as_cr_letters='abcdefghijklmnopqrstuvwxyz' 37964as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 37965as_cr_Letters=$as_cr_letters$as_cr_LETTERS 37966as_cr_digits='0123456789' 37967as_cr_alnum=$as_cr_Letters$as_cr_digits 37968 37969ECHO_C= ECHO_N= ECHO_T= 37970case `echo -n x` in #((((( 37971-n*) 37972 case `echo 'xy\c'` in 37973 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 37974 xy) ECHO_C='\c';; 37975 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 37976 ECHO_T=' ';; 37977 esac;; 37978*) 37979 ECHO_N='-n';; 37980esac 37981 37982rm -f conf$$ conf$$.exe conf$$.file 37983if test -d conf$$.dir; then 37984 rm -f conf$$.dir/conf$$.file 37985else 37986 rm -f conf$$.dir 37987 mkdir conf$$.dir 2>/dev/null 37988fi 37989if (echo >conf$$.file) 2>/dev/null; then 37990 if ln -s conf$$.file conf$$ 2>/dev/null; then 37991 as_ln_s='ln -s' 37992 # ... but there are two gotchas: 37993 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 37994 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 37995 # In both cases, we have to default to `cp -pR'. 37996 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 37997 as_ln_s='cp -pR' 37998 elif ln conf$$.file conf$$ 2>/dev/null; then 37999 as_ln_s=ln 38000 else 38001 as_ln_s='cp -pR' 38002 fi 38003else 38004 as_ln_s='cp -pR' 38005fi 38006rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 38007rmdir conf$$.dir 2>/dev/null 38008 38009 38010# as_fn_mkdir_p 38011# ------------- 38012# Create "$as_dir" as a directory, including parents if necessary. 38013as_fn_mkdir_p () 38014{ 38015 38016 case $as_dir in #( 38017 -*) as_dir=./$as_dir;; 38018 esac 38019 test -d "$as_dir" || eval $as_mkdir_p || { 38020 as_dirs= 38021 while :; do 38022 case $as_dir in #( 38023 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 38024 *) as_qdir=$as_dir;; 38025 esac 38026 as_dirs="'$as_qdir' $as_dirs" 38027 as_dir=`$as_dirname -- "$as_dir" || 38028$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 38029 X"$as_dir" : 'X\(//\)[^/]' \| \ 38030 X"$as_dir" : 'X\(//\)$' \| \ 38031 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 38032$as_echo X"$as_dir" | 38033 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 38034 s//\1/ 38035 q 38036 } 38037 /^X\(\/\/\)[^/].*/{ 38038 s//\1/ 38039 q 38040 } 38041 /^X\(\/\/\)$/{ 38042 s//\1/ 38043 q 38044 } 38045 /^X\(\/\).*/{ 38046 s//\1/ 38047 q 38048 } 38049 s/.*/./; q'` 38050 test -d "$as_dir" && break 38051 done 38052 test -z "$as_dirs" || eval "mkdir $as_dirs" 38053 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 38054 38055 38056} # as_fn_mkdir_p 38057if mkdir -p . 2>/dev/null; then 38058 as_mkdir_p='mkdir -p "$as_dir"' 38059else 38060 test -d ./-p && rmdir ./-p 38061 as_mkdir_p=false 38062fi 38063 38064 38065# as_fn_executable_p FILE 38066# ----------------------- 38067# Test if FILE is an executable regular file. 38068as_fn_executable_p () 38069{ 38070 test -f "$1" && test -x "$1" 38071} # as_fn_executable_p 38072as_test_x='test -x' 38073as_executable_p=as_fn_executable_p 38074 38075# Sed expression to map a string onto a valid CPP name. 38076as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 38077 38078# Sed expression to map a string onto a valid variable name. 38079as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 38080 38081 38082exec 6>&1 38083## ----------------------------------- ## 38084## Main body of $CONFIG_STATUS script. ## 38085## ----------------------------------- ## 38086_ASEOF 38087test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 38088 38089cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 38090# Save the log message, to keep $0 and so on meaningful, and to 38091# report actual input values of CONFIG_FILES etc. instead of their 38092# values after options handling. 38093ac_log=" 38094This file was extended by gettext-runtime $as_me 0.21, which was 38095generated by GNU Autoconf 2.69. Invocation command line was 38096 38097 CONFIG_FILES = $CONFIG_FILES 38098 CONFIG_HEADERS = $CONFIG_HEADERS 38099 CONFIG_LINKS = $CONFIG_LINKS 38100 CONFIG_COMMANDS = $CONFIG_COMMANDS 38101 $ $0 $@ 38102 38103on `(hostname || uname -n) 2>/dev/null | sed 1q` 38104" 38105 38106_ACEOF 38107 38108case $ac_config_files in *" 38109"*) set x $ac_config_files; shift; ac_config_files=$*;; 38110esac 38111 38112case $ac_config_headers in *" 38113"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 38114esac 38115 38116 38117cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 38118# Files that config.status was made for. 38119config_files="$ac_config_files" 38120config_headers="$ac_config_headers" 38121config_commands="$ac_config_commands" 38122 38123_ACEOF 38124 38125cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 38126ac_cs_usage="\ 38127\`$as_me' instantiates files and other configuration actions 38128from templates according to the current configuration. Unless the files 38129and actions are specified as TAGs, all are instantiated by default. 38130 38131Usage: $0 [OPTION]... [TAG]... 38132 38133 -h, --help print this help, then exit 38134 -V, --version print version number and configuration settings, then exit 38135 --config print configuration, then exit 38136 -q, --quiet, --silent 38137 do not print progress messages 38138 -d, --debug don't remove temporary files 38139 --recheck update $as_me by reconfiguring in the same conditions 38140 --file=FILE[:TEMPLATE] 38141 instantiate the configuration file FILE 38142 --header=FILE[:TEMPLATE] 38143 instantiate the configuration header FILE 38144 38145Configuration files: 38146$config_files 38147 38148Configuration headers: 38149$config_headers 38150 38151Configuration commands: 38152$config_commands 38153 38154Report bugs to <bug-gettext@gnu.org>." 38155 38156_ACEOF 38157cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 38158ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 38159ac_cs_version="\\ 38160gettext-runtime config.status 0.21 38161configured by $0, generated by GNU Autoconf 2.69, 38162 with options \\"\$ac_cs_config\\" 38163 38164Copyright (C) 2012 Free Software Foundation, Inc. 38165This config.status script is free software; the Free Software Foundation 38166gives unlimited permission to copy, distribute and modify it." 38167 38168ac_pwd='$ac_pwd' 38169srcdir='$srcdir' 38170INSTALL='$INSTALL' 38171MKDIR_P='$MKDIR_P' 38172AWK='$AWK' 38173test -n "\$AWK" || AWK=awk 38174_ACEOF 38175 38176cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 38177# The default lists apply if the user does not specify any file. 38178ac_need_defaults=: 38179while test $# != 0 38180do 38181 case $1 in 38182 --*=?*) 38183 ac_option=`expr "X$1" : 'X\([^=]*\)='` 38184 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 38185 ac_shift=: 38186 ;; 38187 --*=) 38188 ac_option=`expr "X$1" : 'X\([^=]*\)='` 38189 ac_optarg= 38190 ac_shift=: 38191 ;; 38192 *) 38193 ac_option=$1 38194 ac_optarg=$2 38195 ac_shift=shift 38196 ;; 38197 esac 38198 38199 case $ac_option in 38200 # Handling of the options. 38201 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 38202 ac_cs_recheck=: ;; 38203 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 38204 $as_echo "$ac_cs_version"; exit ;; 38205 --config | --confi | --conf | --con | --co | --c ) 38206 $as_echo "$ac_cs_config"; exit ;; 38207 --debug | --debu | --deb | --de | --d | -d ) 38208 debug=: ;; 38209 --file | --fil | --fi | --f ) 38210 $ac_shift 38211 case $ac_optarg in 38212 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 38213 '') as_fn_error $? "missing file argument" ;; 38214 esac 38215 as_fn_append CONFIG_FILES " '$ac_optarg'" 38216 ac_need_defaults=false;; 38217 --header | --heade | --head | --hea ) 38218 $ac_shift 38219 case $ac_optarg in 38220 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 38221 esac 38222 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 38223 ac_need_defaults=false;; 38224 --he | --h) 38225 # Conflict between --help and --header 38226 as_fn_error $? "ambiguous option: \`$1' 38227Try \`$0 --help' for more information.";; 38228 --help | --hel | -h ) 38229 $as_echo "$ac_cs_usage"; exit ;; 38230 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 38231 | -silent | --silent | --silen | --sile | --sil | --si | --s) 38232 ac_cs_silent=: ;; 38233 38234 # This is an error. 38235 -*) as_fn_error $? "unrecognized option: \`$1' 38236Try \`$0 --help' for more information." ;; 38237 38238 *) as_fn_append ac_config_targets " $1" 38239 ac_need_defaults=false ;; 38240 38241 esac 38242 shift 38243done 38244 38245ac_configure_extra_args= 38246 38247if $ac_cs_silent; then 38248 exec 6>/dev/null 38249 ac_configure_extra_args="$ac_configure_extra_args --silent" 38250fi 38251 38252_ACEOF 38253cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 38254if \$ac_cs_recheck; then 38255 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 38256 shift 38257 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 38258 CONFIG_SHELL='$SHELL' 38259 export CONFIG_SHELL 38260 exec "\$@" 38261fi 38262 38263_ACEOF 38264cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 38265exec 5>>config.log 38266{ 38267 echo 38268 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 38269## Running $as_me. ## 38270_ASBOX 38271 $as_echo "$ac_log" 38272} >&5 38273 38274_ACEOF 38275cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 38276# 38277# INIT-COMMANDS 38278# 38279AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 38280 38281 38282# The HP-UX ksh and POSIX shell print the target directory to stdout 38283# if CDPATH is set. 38284(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 38285 38286sed_quote_subst='$sed_quote_subst' 38287double_quote_subst='$double_quote_subst' 38288delay_variable_subst='$delay_variable_subst' 38289macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 38290macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 38291AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 38292DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 38293OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 38294enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 38295enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 38296pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 38297enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 38298shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 38299SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 38300ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 38301PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 38302host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 38303host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 38304host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 38305build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 38306build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 38307build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 38308SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 38309Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 38310GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 38311EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 38312FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 38313LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 38314NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 38315LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 38316max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 38317ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 38318exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 38319lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 38320lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 38321lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 38322lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 38323lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 38324reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 38325reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 38326deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 38327file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 38328file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 38329want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 38330sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 38331AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 38332AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 38333archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 38334STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 38335RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 38336old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 38337old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 38338old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 38339lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 38340CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 38341CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 38342compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 38343GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 38344lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 38345lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 38346lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 38347lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 38348lt_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"`' 38349lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 38350nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 38351lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 38352lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 38353objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 38354MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 38355lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 38356lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 38357lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 38358lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 38359lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 38360need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 38361MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 38362DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 38363NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 38364LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 38365OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 38366OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 38367libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 38368shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 38369extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 38370archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 38371enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 38372export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 38373whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 38374compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 38375old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 38376old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 38377archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 38378archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 38379module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 38380module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 38381with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 38382allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 38383no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 38384hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 38385hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 38386hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 38387hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 38388hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 38389hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 38390hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 38391inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 38392link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 38393always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 38394export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 38395exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 38396include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 38397prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 38398postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 38399file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 38400variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 38401need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 38402need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 38403version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 38404runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 38405shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 38406shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 38407libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 38408library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 38409soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 38410install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 38411postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 38412postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 38413finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 38414finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 38415hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 38416sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 38417configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 38418configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 38419hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 38420enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 38421enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 38422enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 38423old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 38424striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 38425LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`' 38426reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`' 38427reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`' 38428old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`' 38429compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`' 38430GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`' 38431lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`' 38432lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`' 38433lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`' 38434lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`' 38435lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`' 38436archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`' 38437enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`' 38438export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`' 38439whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`' 38440compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`' 38441old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`' 38442old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`' 38443archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`' 38444archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`' 38445module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`' 38446module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`' 38447with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`' 38448allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`' 38449no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`' 38450hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`' 38451hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`' 38452hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`' 38453hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`' 38454hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`' 38455hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`' 38456hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`' 38457inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`' 38458link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`' 38459always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`' 38460export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`' 38461exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`' 38462include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`' 38463prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`' 38464postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`' 38465file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`' 38466hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`' 38467 38468LTCC='$LTCC' 38469LTCFLAGS='$LTCFLAGS' 38470compiler='$compiler_DEFAULT' 38471 38472# A function that is used when there is no print builtin or printf. 38473func_fallback_echo () 38474{ 38475 eval 'cat <<_LTECHO_EOF 38476\$1 38477_LTECHO_EOF' 38478} 38479 38480# Quote evaled strings. 38481for var in AS \ 38482DLLTOOL \ 38483OBJDUMP \ 38484SHELL \ 38485ECHO \ 38486PATH_SEPARATOR \ 38487SED \ 38488GREP \ 38489EGREP \ 38490FGREP \ 38491LD \ 38492NM \ 38493LN_S \ 38494lt_SP2NL \ 38495lt_NL2SP \ 38496reload_flag \ 38497deplibs_check_method \ 38498file_magic_cmd \ 38499file_magic_glob \ 38500want_nocaseglob \ 38501sharedlib_from_linklib_cmd \ 38502AR \ 38503AR_FLAGS \ 38504archiver_list_spec \ 38505STRIP \ 38506RANLIB \ 38507CC \ 38508CFLAGS \ 38509compiler \ 38510lt_cv_sys_global_symbol_pipe \ 38511lt_cv_sys_global_symbol_to_cdecl \ 38512lt_cv_sys_global_symbol_to_import \ 38513lt_cv_sys_global_symbol_to_c_name_address \ 38514lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 38515lt_cv_nm_interface \ 38516nm_file_list_spec \ 38517lt_cv_truncate_bin \ 38518lt_prog_compiler_no_builtin_flag \ 38519lt_prog_compiler_pic \ 38520lt_prog_compiler_wl \ 38521lt_prog_compiler_static \ 38522lt_cv_prog_compiler_c_o \ 38523need_locks \ 38524MANIFEST_TOOL \ 38525DSYMUTIL \ 38526NMEDIT \ 38527LIPO \ 38528OTOOL \ 38529OTOOL64 \ 38530shrext_cmds \ 38531export_dynamic_flag_spec \ 38532whole_archive_flag_spec \ 38533compiler_needs_object \ 38534with_gnu_ld \ 38535allow_undefined_flag \ 38536no_undefined_flag \ 38537hardcode_libdir_flag_spec \ 38538hardcode_libdir_separator \ 38539exclude_expsyms \ 38540include_expsyms \ 38541file_list_spec \ 38542variables_saved_for_relink \ 38543libname_spec \ 38544library_names_spec \ 38545soname_spec \ 38546install_override_mode \ 38547finish_eval \ 38548old_striplib \ 38549striplib \ 38550LD_RC \ 38551reload_flag_RC \ 38552compiler_RC \ 38553lt_prog_compiler_no_builtin_flag_RC \ 38554lt_prog_compiler_pic_RC \ 38555lt_prog_compiler_wl_RC \ 38556lt_prog_compiler_static_RC \ 38557lt_cv_prog_compiler_c_o_RC \ 38558export_dynamic_flag_spec_RC \ 38559whole_archive_flag_spec_RC \ 38560compiler_needs_object_RC \ 38561with_gnu_ld_RC \ 38562allow_undefined_flag_RC \ 38563no_undefined_flag_RC \ 38564hardcode_libdir_flag_spec_RC \ 38565hardcode_libdir_separator_RC \ 38566exclude_expsyms_RC \ 38567include_expsyms_RC \ 38568file_list_spec_RC; do 38569 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 38570 *[\\\\\\\`\\"\\\$]*) 38571 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 38572 ;; 38573 *) 38574 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 38575 ;; 38576 esac 38577done 38578 38579# Double-quote double-evaled strings. 38580for var in reload_cmds \ 38581old_postinstall_cmds \ 38582old_postuninstall_cmds \ 38583old_archive_cmds \ 38584extract_expsyms_cmds \ 38585old_archive_from_new_cmds \ 38586old_archive_from_expsyms_cmds \ 38587archive_cmds \ 38588archive_expsym_cmds \ 38589module_cmds \ 38590module_expsym_cmds \ 38591export_symbols_cmds \ 38592prelink_cmds \ 38593postlink_cmds \ 38594postinstall_cmds \ 38595postuninstall_cmds \ 38596finish_cmds \ 38597sys_lib_search_path_spec \ 38598configure_time_dlsearch_path \ 38599configure_time_lt_sys_library_path \ 38600reload_cmds_RC \ 38601old_archive_cmds_RC \ 38602old_archive_from_new_cmds_RC \ 38603old_archive_from_expsyms_cmds_RC \ 38604archive_cmds_RC \ 38605archive_expsym_cmds_RC \ 38606module_cmds_RC \ 38607module_expsym_cmds_RC \ 38608export_symbols_cmds_RC \ 38609prelink_cmds_RC \ 38610postlink_cmds_RC; do 38611 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 38612 *[\\\\\\\`\\"\\\$]*) 38613 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 38614 ;; 38615 *) 38616 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 38617 ;; 38618 esac 38619done 38620 38621ac_aux_dir='$ac_aux_dir' 38622 38623# See if we are running on zsh, and set the options that allow our 38624# commands through without removal of \ escapes INIT. 38625if test -n "\${ZSH_VERSION+set}"; then 38626 setopt NO_GLOB_SUBST 38627fi 38628 38629 38630 PACKAGE='$PACKAGE' 38631 VERSION='$VERSION' 38632 RM='$RM' 38633 ofile='$ofile' 38634 38635 38636 38637 38638 38639# Capture the value of obsolete ALL_LINGUAS because we need it to compute 38640 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. 38641 OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS" 38642 # Capture the value of LINGUAS because we need it to compute CATALOGS. 38643 LINGUAS="${LINGUAS-%UNSET%}" 38644 38645 38646_ACEOF 38647 38648cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 38649 38650# Handling of arguments. 38651for ac_config_target in $ac_config_targets 38652do 38653 case $ac_config_target in 38654 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 38655 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 38656 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 38657 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; 38658 "csharpcomp.sh") CONFIG_FILES="$CONFIG_FILES csharpcomp.sh:../build-aux/csharpcomp.sh.in" ;; 38659 "javacomp.sh") CONFIG_FILES="$CONFIG_FILES javacomp.sh:../build-aux/javacomp.sh.in" ;; 38660 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 38661 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 38662 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;; 38663 "intl-java/Makefile") CONFIG_FILES="$CONFIG_FILES intl-java/Makefile" ;; 38664 "intl-csharp/Makefile") CONFIG_FILES="$CONFIG_FILES intl-csharp/Makefile" ;; 38665 "gnulib-lib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib-lib/Makefile" ;; 38666 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 38667 "src/gettext.sh") CONFIG_FILES="$CONFIG_FILES src/gettext.sh" ;; 38668 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 38669 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 38670 "man/x-to-1") CONFIG_FILES="$CONFIG_FILES man/x-to-1" ;; 38671 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; 38672 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 38673 38674 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 38675 esac 38676done 38677 38678 38679# If the user did not use the arguments to specify the items to instantiate, 38680# then the envvar interface is used. Set only those that are not. 38681# We use the long form for the default assignment because of an extremely 38682# bizarre bug on SunOS 4.1.3. 38683if $ac_need_defaults; then 38684 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 38685 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 38686 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 38687fi 38688 38689# Have a temporary directory for convenience. Make it in the build tree 38690# simply because there is no reason against having it here, and in addition, 38691# creating and moving files from /tmp can sometimes cause problems. 38692# Hook for its removal unless debugging. 38693# Note that there is a small window in which the directory will not be cleaned: 38694# after its creation but before its name has been assigned to `$tmp'. 38695$debug || 38696{ 38697 tmp= ac_tmp= 38698 trap 'exit_status=$? 38699 : "${ac_tmp:=$tmp}" 38700 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 38701' 0 38702 trap 'as_fn_exit 1' 1 2 13 15 38703} 38704# Create a (secure) tmp directory for tmp files. 38705 38706{ 38707 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 38708 test -d "$tmp" 38709} || 38710{ 38711 tmp=./conf$$-$RANDOM 38712 (umask 077 && mkdir "$tmp") 38713} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 38714ac_tmp=$tmp 38715 38716# Set up the scripts for CONFIG_FILES section. 38717# No need to generate them if there are no CONFIG_FILES. 38718# This happens for instance with `./config.status config.h'. 38719if test -n "$CONFIG_FILES"; then 38720 38721 38722ac_cr=`echo X | tr X '\015'` 38723# On cygwin, bash can eat \r inside `` if the user requested igncr. 38724# But we know of no other shell where ac_cr would be empty at this 38725# point, so we can use a bashism as a fallback. 38726if test "x$ac_cr" = x; then 38727 eval ac_cr=\$\'\\r\' 38728fi 38729ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 38730if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 38731 ac_cs_awk_cr='\\r' 38732else 38733 ac_cs_awk_cr=$ac_cr 38734fi 38735 38736echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 38737_ACEOF 38738 38739 38740{ 38741 echo "cat >conf$$subs.awk <<_ACEOF" && 38742 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 38743 echo "_ACEOF" 38744} >conf$$subs.sh || 38745 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 38746ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 38747ac_delim='%!_!# ' 38748for ac_last_try in false false false false false :; do 38749 . ./conf$$subs.sh || 38750 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 38751 38752 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 38753 if test $ac_delim_n = $ac_delim_num; then 38754 break 38755 elif $ac_last_try; then 38756 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 38757 else 38758 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 38759 fi 38760done 38761rm -f conf$$subs.sh 38762 38763cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 38764cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 38765_ACEOF 38766sed -n ' 38767h 38768s/^/S["/; s/!.*/"]=/ 38769p 38770g 38771s/^[^!]*!// 38772:repl 38773t repl 38774s/'"$ac_delim"'$// 38775t delim 38776:nl 38777h 38778s/\(.\{148\}\)..*/\1/ 38779t more1 38780s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 38781p 38782n 38783b repl 38784:more1 38785s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 38786p 38787g 38788s/.\{148\}// 38789t nl 38790:delim 38791h 38792s/\(.\{148\}\)..*/\1/ 38793t more2 38794s/["\\]/\\&/g; s/^/"/; s/$/"/ 38795p 38796b 38797:more2 38798s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 38799p 38800g 38801s/.\{148\}// 38802t delim 38803' <conf$$subs.awk | sed ' 38804/^[^""]/{ 38805 N 38806 s/\n// 38807} 38808' >>$CONFIG_STATUS || ac_write_fail=1 38809rm -f conf$$subs.awk 38810cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 38811_ACAWK 38812cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 38813 for (key in S) S_is_set[key] = 1 38814 FS = "" 38815 38816} 38817{ 38818 line = $ 0 38819 nfields = split(line, field, "@") 38820 substed = 0 38821 len = length(field[1]) 38822 for (i = 2; i < nfields; i++) { 38823 key = field[i] 38824 keylen = length(key) 38825 if (S_is_set[key]) { 38826 value = S[key] 38827 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 38828 len += length(value) + length(field[++i]) 38829 substed = 1 38830 } else 38831 len += 1 + keylen 38832 } 38833 38834 print line 38835} 38836 38837_ACAWK 38838_ACEOF 38839cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 38840if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 38841 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 38842else 38843 cat 38844fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 38845 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 38846_ACEOF 38847 38848# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 38849# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 38850# trailing colons and then remove the whole line if VPATH becomes empty 38851# (actually we leave an empty line to preserve line numbers). 38852if test "x$srcdir" = x.; then 38853 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 38854h 38855s/// 38856s/^/:/ 38857s/[ ]*$/:/ 38858s/:\$(srcdir):/:/g 38859s/:\${srcdir}:/:/g 38860s/:@srcdir@:/:/g 38861s/^:*// 38862s/:*$// 38863x 38864s/\(=[ ]*\).*/\1/ 38865G 38866s/\n// 38867s/^[^=]*=[ ]*$// 38868}' 38869fi 38870 38871cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 38872fi # test -n "$CONFIG_FILES" 38873 38874# Set up the scripts for CONFIG_HEADERS section. 38875# No need to generate them if there are no CONFIG_HEADERS. 38876# This happens for instance with `./config.status Makefile'. 38877if test -n "$CONFIG_HEADERS"; then 38878cat >"$ac_tmp/defines.awk" <<\_ACAWK || 38879BEGIN { 38880_ACEOF 38881 38882# Transform confdefs.h into an awk script `defines.awk', embedded as 38883# here-document in config.status, that substitutes the proper values into 38884# config.h.in to produce config.h. 38885 38886# Create a delimiter string that does not exist in confdefs.h, to ease 38887# handling of long lines. 38888ac_delim='%!_!# ' 38889for ac_last_try in false false :; do 38890 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 38891 if test -z "$ac_tt"; then 38892 break 38893 elif $ac_last_try; then 38894 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 38895 else 38896 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 38897 fi 38898done 38899 38900# For the awk script, D is an array of macro values keyed by name, 38901# likewise P contains macro parameters if any. Preserve backslash 38902# newline sequences. 38903 38904ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 38905sed -n ' 38906s/.\{148\}/&'"$ac_delim"'/g 38907t rset 38908:rset 38909s/^[ ]*#[ ]*define[ ][ ]*/ / 38910t def 38911d 38912:def 38913s/\\$// 38914t bsnl 38915s/["\\]/\\&/g 38916s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 38917D["\1"]=" \3"/p 38918s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 38919d 38920:bsnl 38921s/["\\]/\\&/g 38922s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 38923D["\1"]=" \3\\\\\\n"\\/p 38924t cont 38925s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 38926t cont 38927d 38928:cont 38929n 38930s/.\{148\}/&'"$ac_delim"'/g 38931t clear 38932:clear 38933s/\\$// 38934t bsnlc 38935s/["\\]/\\&/g; s/^/"/; s/$/"/p 38936d 38937:bsnlc 38938s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 38939b cont 38940' <confdefs.h | sed ' 38941s/'"$ac_delim"'/"\\\ 38942"/g' >>$CONFIG_STATUS || ac_write_fail=1 38943 38944cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 38945 for (key in D) D_is_set[key] = 1 38946 FS = "" 38947} 38948/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 38949 line = \$ 0 38950 split(line, arg, " ") 38951 if (arg[1] == "#") { 38952 defundef = arg[2] 38953 mac1 = arg[3] 38954 } else { 38955 defundef = substr(arg[1], 2) 38956 mac1 = arg[2] 38957 } 38958 split(mac1, mac2, "(") #) 38959 macro = mac2[1] 38960 prefix = substr(line, 1, index(line, defundef) - 1) 38961 if (D_is_set[macro]) { 38962 # Preserve the white space surrounding the "#". 38963 print prefix "define", macro P[macro] D[macro] 38964 next 38965 } else { 38966 # Replace #undef with comments. This is necessary, for example, 38967 # in the case of _POSIX_SOURCE, which is predefined and required 38968 # on some systems where configure will not decide to define it. 38969 if (defundef == "undef") { 38970 print "/*", prefix defundef, macro, "*/" 38971 next 38972 } 38973 } 38974} 38975{ print } 38976_ACAWK 38977_ACEOF 38978cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 38979 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 38980fi # test -n "$CONFIG_HEADERS" 38981 38982 38983eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 38984shift 38985for ac_tag 38986do 38987 case $ac_tag in 38988 :[FHLC]) ac_mode=$ac_tag; continue;; 38989 esac 38990 case $ac_mode$ac_tag in 38991 :[FHL]*:*);; 38992 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 38993 :[FH]-) ac_tag=-:-;; 38994 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 38995 esac 38996 ac_save_IFS=$IFS 38997 IFS=: 38998 set x $ac_tag 38999 IFS=$ac_save_IFS 39000 shift 39001 ac_file=$1 39002 shift 39003 39004 case $ac_mode in 39005 :L) ac_source=$1;; 39006 :[FH]) 39007 ac_file_inputs= 39008 for ac_f 39009 do 39010 case $ac_f in 39011 -) ac_f="$ac_tmp/stdin";; 39012 *) # Look for the file first in the build tree, then in the source tree 39013 # (if the path is not absolute). The absolute path cannot be DOS-style, 39014 # because $ac_f cannot contain `:'. 39015 test -f "$ac_f" || 39016 case $ac_f in 39017 [\\/$]*) false;; 39018 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 39019 esac || 39020 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 39021 esac 39022 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 39023 as_fn_append ac_file_inputs " '$ac_f'" 39024 done 39025 39026 # Let's still pretend it is `configure' which instantiates (i.e., don't 39027 # use $as_me), people would be surprised to read: 39028 # /* config.h. Generated by config.status. */ 39029 configure_input='Generated from '` 39030 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 39031 `' by configure.' 39032 if test x"$ac_file" != x-; then 39033 configure_input="$ac_file. $configure_input" 39034 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 39035$as_echo "$as_me: creating $ac_file" >&6;} 39036 fi 39037 # Neutralize special characters interpreted by sed in replacement strings. 39038 case $configure_input in #( 39039 *\&* | *\|* | *\\* ) 39040 ac_sed_conf_input=`$as_echo "$configure_input" | 39041 sed 's/[\\\\&|]/\\\\&/g'`;; #( 39042 *) ac_sed_conf_input=$configure_input;; 39043 esac 39044 39045 case $ac_tag in 39046 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 39047 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 39048 esac 39049 ;; 39050 esac 39051 39052 ac_dir=`$as_dirname -- "$ac_file" || 39053$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 39054 X"$ac_file" : 'X\(//\)[^/]' \| \ 39055 X"$ac_file" : 'X\(//\)$' \| \ 39056 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 39057$as_echo X"$ac_file" | 39058 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 39059 s//\1/ 39060 q 39061 } 39062 /^X\(\/\/\)[^/].*/{ 39063 s//\1/ 39064 q 39065 } 39066 /^X\(\/\/\)$/{ 39067 s//\1/ 39068 q 39069 } 39070 /^X\(\/\).*/{ 39071 s//\1/ 39072 q 39073 } 39074 s/.*/./; q'` 39075 as_dir="$ac_dir"; as_fn_mkdir_p 39076 ac_builddir=. 39077 39078case "$ac_dir" in 39079.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 39080*) 39081 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 39082 # A ".." for each directory in $ac_dir_suffix. 39083 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 39084 case $ac_top_builddir_sub in 39085 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 39086 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 39087 esac ;; 39088esac 39089ac_abs_top_builddir=$ac_pwd 39090ac_abs_builddir=$ac_pwd$ac_dir_suffix 39091# for backward compatibility: 39092ac_top_builddir=$ac_top_build_prefix 39093 39094case $srcdir in 39095 .) # We are building in place. 39096 ac_srcdir=. 39097 ac_top_srcdir=$ac_top_builddir_sub 39098 ac_abs_top_srcdir=$ac_pwd ;; 39099 [\\/]* | ?:[\\/]* ) # Absolute name. 39100 ac_srcdir=$srcdir$ac_dir_suffix; 39101 ac_top_srcdir=$srcdir 39102 ac_abs_top_srcdir=$srcdir ;; 39103 *) # Relative name. 39104 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 39105 ac_top_srcdir=$ac_top_build_prefix$srcdir 39106 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 39107esac 39108ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 39109 39110 39111 case $ac_mode in 39112 :F) 39113 # 39114 # CONFIG_FILE 39115 # 39116 39117 case $INSTALL in 39118 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 39119 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 39120 esac 39121 ac_MKDIR_P=$MKDIR_P 39122 case $MKDIR_P in 39123 [\\/$]* | ?:[\\/]* ) ;; 39124 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 39125 esac 39126_ACEOF 39127 39128cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 39129# If the template does not know about datarootdir, expand it. 39130# FIXME: This hack should be removed a few years after 2.60. 39131ac_datarootdir_hack=; ac_datarootdir_seen= 39132ac_sed_dataroot=' 39133/datarootdir/ { 39134 p 39135 q 39136} 39137/@datadir@/p 39138/@docdir@/p 39139/@infodir@/p 39140/@localedir@/p 39141/@mandir@/p' 39142case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 39143*datarootdir*) ac_datarootdir_seen=yes;; 39144*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 39145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 39146$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 39147_ACEOF 39148cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 39149 ac_datarootdir_hack=' 39150 s&@datadir@&$datadir&g 39151 s&@docdir@&$docdir&g 39152 s&@infodir@&$infodir&g 39153 s&@localedir@&$localedir&g 39154 s&@mandir@&$mandir&g 39155 s&\\\${datarootdir}&$datarootdir&g' ;; 39156esac 39157_ACEOF 39158 39159# Neutralize VPATH when `$srcdir' = `.'. 39160# Shell code in configure.ac might set extrasub. 39161# FIXME: do we really want to maintain this feature? 39162cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 39163ac_sed_extra="$ac_vpsub 39164$extrasub 39165_ACEOF 39166cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 39167:t 39168/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 39169s|@configure_input@|$ac_sed_conf_input|;t t 39170s&@top_builddir@&$ac_top_builddir_sub&;t t 39171s&@top_build_prefix@&$ac_top_build_prefix&;t t 39172s&@srcdir@&$ac_srcdir&;t t 39173s&@abs_srcdir@&$ac_abs_srcdir&;t t 39174s&@top_srcdir@&$ac_top_srcdir&;t t 39175s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 39176s&@builddir@&$ac_builddir&;t t 39177s&@abs_builddir@&$ac_abs_builddir&;t t 39178s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 39179s&@INSTALL@&$ac_INSTALL&;t t 39180s&@MKDIR_P@&$ac_MKDIR_P&;t t 39181$ac_datarootdir_hack 39182" 39183eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 39184 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 39185 39186test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 39187 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 39188 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 39189 "$ac_tmp/out"`; test -z "$ac_out"; } && 39190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 39191which seems to be undefined. Please make sure it is defined" >&5 39192$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 39193which seems to be undefined. Please make sure it is defined" >&2;} 39194 39195 rm -f "$ac_tmp/stdin" 39196 case $ac_file in 39197 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 39198 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 39199 esac \ 39200 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 39201 ;; 39202 :H) 39203 # 39204 # CONFIG_HEADER 39205 # 39206 if test x"$ac_file" != x-; then 39207 { 39208 $as_echo "/* $configure_input */" \ 39209 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 39210 } >"$ac_tmp/config.h" \ 39211 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 39212 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 39213 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 39214$as_echo "$as_me: $ac_file is unchanged" >&6;} 39215 else 39216 rm -f "$ac_file" 39217 mv "$ac_tmp/config.h" "$ac_file" \ 39218 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 39219 fi 39220 else 39221 $as_echo "/* $configure_input */" \ 39222 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 39223 || as_fn_error $? "could not create -" "$LINENO" 5 39224 fi 39225# Compute "$ac_file"'s index in $config_headers. 39226_am_arg="$ac_file" 39227_am_stamp_count=1 39228for _am_header in $config_headers :; do 39229 case $_am_header in 39230 $_am_arg | $_am_arg:* ) 39231 break ;; 39232 * ) 39233 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 39234 esac 39235done 39236echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 39237$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 39238 X"$_am_arg" : 'X\(//\)[^/]' \| \ 39239 X"$_am_arg" : 'X\(//\)$' \| \ 39240 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 39241$as_echo X"$_am_arg" | 39242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 39243 s//\1/ 39244 q 39245 } 39246 /^X\(\/\/\)[^/].*/{ 39247 s//\1/ 39248 q 39249 } 39250 /^X\(\/\/\)$/{ 39251 s//\1/ 39252 q 39253 } 39254 /^X\(\/\).*/{ 39255 s//\1/ 39256 q 39257 } 39258 s/.*/./; q'`/stamp-h$_am_stamp_count 39259 ;; 39260 39261 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 39262$as_echo "$as_me: executing $ac_file commands" >&6;} 39263 ;; 39264 esac 39265 39266 39267 case $ac_file$ac_mode in 39268 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 39269 # Older Autoconf quotes --file arguments for eval, but not when files 39270 # are listed without --file. Let's play safe and only enable the eval 39271 # if we detect the quoting. 39272 # TODO: see whether this extra hack can be removed once we start 39273 # requiring Autoconf 2.70 or later. 39274 case $CONFIG_FILES in #( 39275 *\'*) : 39276 eval set x "$CONFIG_FILES" ;; #( 39277 *) : 39278 set x $CONFIG_FILES ;; #( 39279 *) : 39280 ;; 39281esac 39282 shift 39283 # Used to flag and report bootstrapping failures. 39284 am_rc=0 39285 for am_mf 39286 do 39287 # Strip MF so we end up with the name of the file. 39288 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 39289 # Check whether this is an Automake generated Makefile which includes 39290 # dependency-tracking related rules and includes. 39291 # Grep'ing the whole file directly is not great: AIX grep has a line 39292 # limit of 2048, but all sed's we know have understand at least 4000. 39293 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 39294 || continue 39295 am_dirpart=`$as_dirname -- "$am_mf" || 39296$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 39297 X"$am_mf" : 'X\(//\)[^/]' \| \ 39298 X"$am_mf" : 'X\(//\)$' \| \ 39299 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 39300$as_echo X"$am_mf" | 39301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 39302 s//\1/ 39303 q 39304 } 39305 /^X\(\/\/\)[^/].*/{ 39306 s//\1/ 39307 q 39308 } 39309 /^X\(\/\/\)$/{ 39310 s//\1/ 39311 q 39312 } 39313 /^X\(\/\).*/{ 39314 s//\1/ 39315 q 39316 } 39317 s/.*/./; q'` 39318 am_filepart=`$as_basename -- "$am_mf" || 39319$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 39320 X"$am_mf" : 'X\(//\)$' \| \ 39321 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 39322$as_echo X/"$am_mf" | 39323 sed '/^.*\/\([^/][^/]*\)\/*$/{ 39324 s//\1/ 39325 q 39326 } 39327 /^X\/\(\/\/\)$/{ 39328 s//\1/ 39329 q 39330 } 39331 /^X\/\(\/\).*/{ 39332 s//\1/ 39333 q 39334 } 39335 s/.*/./; q'` 39336 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 39337 && sed -e '/# am--include-marker/d' "$am_filepart" \ 39338 | $MAKE -f - am--depfiles" >&5 39339 (cd "$am_dirpart" \ 39340 && sed -e '/# am--include-marker/d' "$am_filepart" \ 39341 | $MAKE -f - am--depfiles) >&5 2>&5 39342 ac_status=$? 39343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39344 (exit $ac_status); } || am_rc=$? 39345 done 39346 if test $am_rc -ne 0; then 39347 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 39348$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 39349as_fn_error $? "Something went wrong bootstrapping makefile fragments 39350 for automatic dependency tracking. If GNU make was not used, consider 39351 re-running the configure script with MAKE=\"gmake\" (or whatever is 39352 necessary). You can also try re-running configure with the 39353 '--disable-dependency-tracking' option to at least be able to build 39354 the package (albeit without support for automatic dependency tracking). 39355See \`config.log' for more details" "$LINENO" 5; } 39356 fi 39357 { am_dirpart=; unset am_dirpart;} 39358 { am_filepart=; unset am_filepart;} 39359 { am_mf=; unset am_mf;} 39360 { am_rc=; unset am_rc;} 39361 rm -f conftest-deps.mk 39362} 39363 ;; 39364 "libtool":C) 39365 39366 # See if we are running on zsh, and set the options that allow our 39367 # commands through without removal of \ escapes. 39368 if test -n "${ZSH_VERSION+set}"; then 39369 setopt NO_GLOB_SUBST 39370 fi 39371 39372 cfgfile=${ofile}T 39373 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 39374 $RM "$cfgfile" 39375 39376 cat <<_LT_EOF >> "$cfgfile" 39377#! $SHELL 39378# Generated automatically by $as_me ($PACKAGE) $VERSION 39379# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 39380# NOTE: Changes made to this file will be lost: look at ltmain.sh. 39381 39382# Provide generalized library-building support services. 39383# Written by Gordon Matzigkeit, 1996 39384 39385# Copyright (C) 2014 Free Software Foundation, Inc. 39386# This is free software; see the source for copying conditions. There is NO 39387# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 39388 39389# GNU Libtool is free software; you can redistribute it and/or modify 39390# it under the terms of the GNU General Public License as published by 39391# the Free Software Foundation; either version 2 of of the License, or 39392# (at your option) any later version. 39393# 39394# As a special exception to the GNU General Public License, if you 39395# distribute this file as part of a program or library that is built 39396# using GNU Libtool, you may include this file under the same 39397# distribution terms that you use for the rest of that program. 39398# 39399# GNU Libtool is distributed in the hope that it will be useful, but 39400# WITHOUT ANY WARRANTY; without even the implied warranty of 39401# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 39402# GNU General Public License for more details. 39403# 39404# You should have received a copy of the GNU General Public License 39405# along with this program. If not, see <https://www.gnu.org/licenses/>. 39406 39407 39408# The names of the tagged configurations supported by this script. 39409available_tags='RC ' 39410 39411# Configured defaults for sys_lib_dlsearch_path munging. 39412: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 39413 39414# ### BEGIN LIBTOOL CONFIG 39415 39416# Which release of libtool.m4 was used? 39417macro_version=$macro_version 39418macro_revision=$macro_revision 39419 39420# Assembler program. 39421AS=$lt_AS 39422 39423# DLL creation program. 39424DLLTOOL=$lt_DLLTOOL 39425 39426# Object dumper program. 39427OBJDUMP=$lt_OBJDUMP 39428 39429# Whether or not to build shared libraries. 39430build_libtool_libs=$enable_shared 39431 39432# Whether or not to build static libraries. 39433build_old_libs=$enable_static 39434 39435# What type of objects to build. 39436pic_mode=$pic_mode 39437 39438# Whether or not to optimize for fast installation. 39439fast_install=$enable_fast_install 39440 39441# Shared archive member basename,for filename based shared library versioning on AIX. 39442shared_archive_member_spec=$shared_archive_member_spec 39443 39444# Shell to use when invoking shell scripts. 39445SHELL=$lt_SHELL 39446 39447# An echo program that protects backslashes. 39448ECHO=$lt_ECHO 39449 39450# The PATH separator for the build system. 39451PATH_SEPARATOR=$lt_PATH_SEPARATOR 39452 39453# The host system. 39454host_alias=$host_alias 39455host=$host 39456host_os=$host_os 39457 39458# The build system. 39459build_alias=$build_alias 39460build=$build 39461build_os=$build_os 39462 39463# A sed program that does not truncate output. 39464SED=$lt_SED 39465 39466# Sed that helps us avoid accidentally triggering echo(1) options like -n. 39467Xsed="\$SED -e 1s/^X//" 39468 39469# A grep program that handles long lines. 39470GREP=$lt_GREP 39471 39472# An ERE matcher. 39473EGREP=$lt_EGREP 39474 39475# A literal string matcher. 39476FGREP=$lt_FGREP 39477 39478# A BSD- or MS-compatible name lister. 39479NM=$lt_NM 39480 39481# Whether we need soft or hard links. 39482LN_S=$lt_LN_S 39483 39484# What is the maximum length of a command? 39485max_cmd_len=$max_cmd_len 39486 39487# Object file suffix (normally "o"). 39488objext=$ac_objext 39489 39490# Executable file suffix (normally ""). 39491exeext=$exeext 39492 39493# whether the shell understands "unset". 39494lt_unset=$lt_unset 39495 39496# turn spaces into newlines. 39497SP2NL=$lt_lt_SP2NL 39498 39499# turn newlines into spaces. 39500NL2SP=$lt_lt_NL2SP 39501 39502# convert \$build file names to \$host format. 39503to_host_file_cmd=$lt_cv_to_host_file_cmd 39504 39505# convert \$build files to toolchain format. 39506to_tool_file_cmd=$lt_cv_to_tool_file_cmd 39507 39508# Method to check whether dependent libraries are shared objects. 39509deplibs_check_method=$lt_deplibs_check_method 39510 39511# Command to use when deplibs_check_method = "file_magic". 39512file_magic_cmd=$lt_file_magic_cmd 39513 39514# How to find potential files when deplibs_check_method = "file_magic". 39515file_magic_glob=$lt_file_magic_glob 39516 39517# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 39518want_nocaseglob=$lt_want_nocaseglob 39519 39520# Command to associate shared and link libraries. 39521sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 39522 39523# The archiver. 39524AR=$lt_AR 39525 39526# Flags to create an archive. 39527AR_FLAGS=$lt_AR_FLAGS 39528 39529# How to feed a file listing to the archiver. 39530archiver_list_spec=$lt_archiver_list_spec 39531 39532# A symbol stripping program. 39533STRIP=$lt_STRIP 39534 39535# Commands used to install an old-style archive. 39536RANLIB=$lt_RANLIB 39537old_postinstall_cmds=$lt_old_postinstall_cmds 39538old_postuninstall_cmds=$lt_old_postuninstall_cmds 39539 39540# Whether to use a lock for old archive extraction. 39541lock_old_archive_extraction=$lock_old_archive_extraction 39542 39543# A C compiler. 39544LTCC=$lt_CC 39545 39546# LTCC compiler flags. 39547LTCFLAGS=$lt_CFLAGS 39548 39549# Take the output of nm and produce a listing of raw symbols and C names. 39550global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 39551 39552# Transform the output of nm in a proper C declaration. 39553global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 39554 39555# Transform the output of nm into a list of symbols to manually relocate. 39556global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 39557 39558# Transform the output of nm in a C name address pair. 39559global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 39560 39561# Transform the output of nm in a C name address pair when lib prefix is needed. 39562global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 39563 39564# The name lister interface. 39565nm_interface=$lt_lt_cv_nm_interface 39566 39567# Specify filename containing input files for \$NM. 39568nm_file_list_spec=$lt_nm_file_list_spec 39569 39570# The root where to search for dependent libraries,and where our libraries should be installed. 39571lt_sysroot=$lt_sysroot 39572 39573# Command to truncate a binary pipe. 39574lt_truncate_bin=$lt_lt_cv_truncate_bin 39575 39576# The name of the directory that contains temporary libtool files. 39577objdir=$objdir 39578 39579# Used to examine libraries when file_magic_cmd begins with "file". 39580MAGIC_CMD=$MAGIC_CMD 39581 39582# Must we lock files when doing compilation? 39583need_locks=$lt_need_locks 39584 39585# Manifest tool. 39586MANIFEST_TOOL=$lt_MANIFEST_TOOL 39587 39588# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 39589DSYMUTIL=$lt_DSYMUTIL 39590 39591# Tool to change global to local symbols on Mac OS X. 39592NMEDIT=$lt_NMEDIT 39593 39594# Tool to manipulate fat objects and archives on Mac OS X. 39595LIPO=$lt_LIPO 39596 39597# ldd/readelf like tool for Mach-O binaries on Mac OS X. 39598OTOOL=$lt_OTOOL 39599 39600# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 39601OTOOL64=$lt_OTOOL64 39602 39603# Old archive suffix (normally "a"). 39604libext=$libext 39605 39606# Shared library suffix (normally ".so"). 39607shrext_cmds=$lt_shrext_cmds 39608 39609# The commands to extract the exported symbol list from a shared archive. 39610extract_expsyms_cmds=$lt_extract_expsyms_cmds 39611 39612# Variables whose values should be saved in libtool wrapper scripts and 39613# restored at link time. 39614variables_saved_for_relink=$lt_variables_saved_for_relink 39615 39616# Do we need the "lib" prefix for modules? 39617need_lib_prefix=$need_lib_prefix 39618 39619# Do we need a version for libraries? 39620need_version=$need_version 39621 39622# Library versioning type. 39623version_type=$version_type 39624 39625# Shared library runtime path variable. 39626runpath_var=$runpath_var 39627 39628# Shared library path variable. 39629shlibpath_var=$shlibpath_var 39630 39631# Is shlibpath searched before the hard-coded library search path? 39632shlibpath_overrides_runpath=$shlibpath_overrides_runpath 39633 39634# Format of library name prefix. 39635libname_spec=$lt_libname_spec 39636 39637# List of archive names. First name is the real one, the rest are links. 39638# The last name is the one that the linker finds with -lNAME 39639library_names_spec=$lt_library_names_spec 39640 39641# The coded name of the library, if different from the real name. 39642soname_spec=$lt_soname_spec 39643 39644# Permission mode override for installation of shared libraries. 39645install_override_mode=$lt_install_override_mode 39646 39647# Command to use after installation of a shared archive. 39648postinstall_cmds=$lt_postinstall_cmds 39649 39650# Command to use after uninstallation of a shared archive. 39651postuninstall_cmds=$lt_postuninstall_cmds 39652 39653# Commands used to finish a libtool library installation in a directory. 39654finish_cmds=$lt_finish_cmds 39655 39656# As "finish_cmds", except a single script fragment to be evaled but 39657# not shown. 39658finish_eval=$lt_finish_eval 39659 39660# Whether we should hardcode library paths into libraries. 39661hardcode_into_libs=$hardcode_into_libs 39662 39663# Compile-time system search path for libraries. 39664sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 39665 39666# Detected run-time system search path for libraries. 39667sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 39668 39669# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 39670configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 39671 39672# Whether dlopen is supported. 39673dlopen_support=$enable_dlopen 39674 39675# Whether dlopen of programs is supported. 39676dlopen_self=$enable_dlopen_self 39677 39678# Whether dlopen of statically linked programs is supported. 39679dlopen_self_static=$enable_dlopen_self_static 39680 39681# Commands to strip libraries. 39682old_striplib=$lt_old_striplib 39683striplib=$lt_striplib 39684 39685 39686# The linker used to build libraries. 39687LD=$lt_LD 39688 39689# How to create reloadable object files. 39690reload_flag=$lt_reload_flag 39691reload_cmds=$lt_reload_cmds 39692 39693# Commands used to build an old-style archive. 39694old_archive_cmds=$lt_old_archive_cmds 39695 39696# A language specific compiler. 39697CC=$lt_compiler 39698 39699# Is the compiler the GNU compiler? 39700with_gcc=$GCC 39701 39702# Compiler flag to turn off builtin functions. 39703no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 39704 39705# Additional compiler flags for building library objects. 39706pic_flag=$lt_lt_prog_compiler_pic 39707 39708# How to pass a linker flag through the compiler. 39709wl=$lt_lt_prog_compiler_wl 39710 39711# Compiler flag to prevent dynamic linking. 39712link_static_flag=$lt_lt_prog_compiler_static 39713 39714# Does compiler simultaneously support -c and -o options? 39715compiler_c_o=$lt_lt_cv_prog_compiler_c_o 39716 39717# Whether or not to add -lc for building shared libraries. 39718build_libtool_need_lc=$archive_cmds_need_lc 39719 39720# Whether or not to disallow shared libs when runtime libs are static. 39721allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 39722 39723# Compiler flag to allow reflexive dlopens. 39724export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 39725 39726# Compiler flag to generate shared objects directly from archives. 39727whole_archive_flag_spec=$lt_whole_archive_flag_spec 39728 39729# Whether the compiler copes with passing no objects directly. 39730compiler_needs_object=$lt_compiler_needs_object 39731 39732# Create an old-style archive from a shared archive. 39733old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 39734 39735# Create a temporary old-style archive to link instead of a shared archive. 39736old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 39737 39738# Commands used to build a shared archive. 39739archive_cmds=$lt_archive_cmds 39740archive_expsym_cmds=$lt_archive_expsym_cmds 39741 39742# Commands used to build a loadable module if different from building 39743# a shared archive. 39744module_cmds=$lt_module_cmds 39745module_expsym_cmds=$lt_module_expsym_cmds 39746 39747# Whether we are building with GNU ld or not. 39748with_gnu_ld=$lt_with_gnu_ld 39749 39750# Flag that allows shared libraries with undefined symbols to be built. 39751allow_undefined_flag=$lt_allow_undefined_flag 39752 39753# Flag that enforces no undefined symbols. 39754no_undefined_flag=$lt_no_undefined_flag 39755 39756# Flag to hardcode \$libdir into a binary during linking. 39757# This must work even if \$libdir does not exist 39758hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 39759 39760# Whether we need a single "-rpath" flag with a separated argument. 39761hardcode_libdir_separator=$lt_hardcode_libdir_separator 39762 39763# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 39764# DIR into the resulting binary. 39765hardcode_direct=$hardcode_direct 39766 39767# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 39768# DIR into the resulting binary and the resulting library dependency is 39769# "absolute",i.e impossible to change by setting \$shlibpath_var if the 39770# library is relocated. 39771hardcode_direct_absolute=$hardcode_direct_absolute 39772 39773# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 39774# into the resulting binary. 39775hardcode_minus_L=$hardcode_minus_L 39776 39777# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 39778# into the resulting binary. 39779hardcode_shlibpath_var=$hardcode_shlibpath_var 39780 39781# Set to "yes" if building a shared library automatically hardcodes DIR 39782# into the library and all subsequent libraries and executables linked 39783# against it. 39784hardcode_automatic=$hardcode_automatic 39785 39786# Set to yes if linker adds runtime paths of dependent libraries 39787# to runtime path list. 39788inherit_rpath=$inherit_rpath 39789 39790# Whether libtool must link a program against all its dependency libraries. 39791link_all_deplibs=$link_all_deplibs 39792 39793# Set to "yes" if exported symbols are required. 39794always_export_symbols=$always_export_symbols 39795 39796# The commands to list exported symbols. 39797export_symbols_cmds=$lt_export_symbols_cmds 39798 39799# Symbols that should not be listed in the preloaded symbols. 39800exclude_expsyms=$lt_exclude_expsyms 39801 39802# Symbols that must always be exported. 39803include_expsyms=$lt_include_expsyms 39804 39805# Commands necessary for linking programs (against libraries) with templates. 39806prelink_cmds=$lt_prelink_cmds 39807 39808# Commands necessary for finishing linking programs. 39809postlink_cmds=$lt_postlink_cmds 39810 39811# Specify filename containing input files. 39812file_list_spec=$lt_file_list_spec 39813 39814# How to hardcode a shared library path into an executable. 39815hardcode_action=$hardcode_action 39816 39817# ### END LIBTOOL CONFIG 39818 39819_LT_EOF 39820 39821 cat <<'_LT_EOF' >> "$cfgfile" 39822 39823# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 39824 39825# func_munge_path_list VARIABLE PATH 39826# ----------------------------------- 39827# VARIABLE is name of variable containing _space_ separated list of 39828# directories to be munged by the contents of PATH, which is string 39829# having a format: 39830# "DIR[:DIR]:" 39831# string "DIR[ DIR]" will be prepended to VARIABLE 39832# ":DIR[:DIR]" 39833# string "DIR[ DIR]" will be appended to VARIABLE 39834# "DIRP[:DIRP]::[DIRA:]DIRA" 39835# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 39836# "DIRA[ DIRA]" will be appended to VARIABLE 39837# "DIR[:DIR]" 39838# VARIABLE will be replaced by "DIR[ DIR]" 39839func_munge_path_list () 39840{ 39841 case x$2 in 39842 x) 39843 ;; 39844 *:) 39845 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 39846 ;; 39847 x:*) 39848 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 39849 ;; 39850 *::*) 39851 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 39852 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 39853 ;; 39854 *) 39855 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 39856 ;; 39857 esac 39858} 39859 39860 39861# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 39862func_cc_basename () 39863{ 39864 for cc_temp in $*""; do 39865 case $cc_temp in 39866 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 39867 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 39868 \-*) ;; 39869 *) break;; 39870 esac 39871 done 39872 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 39873} 39874 39875 39876# ### END FUNCTIONS SHARED WITH CONFIGURE 39877 39878_LT_EOF 39879 39880 case $host_os in 39881 aix3*) 39882 cat <<\_LT_EOF >> "$cfgfile" 39883# AIX sometimes has problems with the GCC collect2 program. For some 39884# reason, if we set the COLLECT_NAMES environment variable, the problems 39885# vanish in a puff of smoke. 39886if test set != "${COLLECT_NAMES+set}"; then 39887 COLLECT_NAMES= 39888 export COLLECT_NAMES 39889fi 39890_LT_EOF 39891 ;; 39892 esac 39893 39894 39895ltmain=$ac_aux_dir/ltmain.sh 39896 39897 39898 # We use sed instead of cat because bash on DJGPP gets confused if 39899 # if finds mixed CR/LF and LF-only lines. Since sed operates in 39900 # text mode, it properly converts lines to CR/LF. This bash problem 39901 # is reportedly fixed, but why not run on old versions too? 39902 sed '$q' "$ltmain" >> "$cfgfile" \ 39903 || (rm -f "$cfgfile"; exit 1) 39904 39905 mv -f "$cfgfile" "$ofile" || 39906 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 39907 chmod +x "$ofile" 39908 39909 39910 cat <<_LT_EOF >> "$ofile" 39911 39912# ### BEGIN LIBTOOL TAG CONFIG: RC 39913 39914# The linker used to build libraries. 39915LD=$lt_LD_RC 39916 39917# How to create reloadable object files. 39918reload_flag=$lt_reload_flag_RC 39919reload_cmds=$lt_reload_cmds_RC 39920 39921# Commands used to build an old-style archive. 39922old_archive_cmds=$lt_old_archive_cmds_RC 39923 39924# A language specific compiler. 39925CC=$lt_compiler_RC 39926 39927# Is the compiler the GNU compiler? 39928with_gcc=$GCC_RC 39929 39930# Compiler flag to turn off builtin functions. 39931no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 39932 39933# Additional compiler flags for building library objects. 39934pic_flag=$lt_lt_prog_compiler_pic_RC 39935 39936# How to pass a linker flag through the compiler. 39937wl=$lt_lt_prog_compiler_wl_RC 39938 39939# Compiler flag to prevent dynamic linking. 39940link_static_flag=$lt_lt_prog_compiler_static_RC 39941 39942# Does compiler simultaneously support -c and -o options? 39943compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 39944 39945# Whether or not to add -lc for building shared libraries. 39946build_libtool_need_lc=$archive_cmds_need_lc_RC 39947 39948# Whether or not to disallow shared libs when runtime libs are static. 39949allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 39950 39951# Compiler flag to allow reflexive dlopens. 39952export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 39953 39954# Compiler flag to generate shared objects directly from archives. 39955whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 39956 39957# Whether the compiler copes with passing no objects directly. 39958compiler_needs_object=$lt_compiler_needs_object_RC 39959 39960# Create an old-style archive from a shared archive. 39961old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 39962 39963# Create a temporary old-style archive to link instead of a shared archive. 39964old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 39965 39966# Commands used to build a shared archive. 39967archive_cmds=$lt_archive_cmds_RC 39968archive_expsym_cmds=$lt_archive_expsym_cmds_RC 39969 39970# Commands used to build a loadable module if different from building 39971# a shared archive. 39972module_cmds=$lt_module_cmds_RC 39973module_expsym_cmds=$lt_module_expsym_cmds_RC 39974 39975# Whether we are building with GNU ld or not. 39976with_gnu_ld=$lt_with_gnu_ld_RC 39977 39978# Flag that allows shared libraries with undefined symbols to be built. 39979allow_undefined_flag=$lt_allow_undefined_flag_RC 39980 39981# Flag that enforces no undefined symbols. 39982no_undefined_flag=$lt_no_undefined_flag_RC 39983 39984# Flag to hardcode \$libdir into a binary during linking. 39985# This must work even if \$libdir does not exist 39986hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 39987 39988# Whether we need a single "-rpath" flag with a separated argument. 39989hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 39990 39991# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 39992# DIR into the resulting binary. 39993hardcode_direct=$hardcode_direct_RC 39994 39995# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 39996# DIR into the resulting binary and the resulting library dependency is 39997# "absolute",i.e impossible to change by setting \$shlibpath_var if the 39998# library is relocated. 39999hardcode_direct_absolute=$hardcode_direct_absolute_RC 40000 40001# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 40002# into the resulting binary. 40003hardcode_minus_L=$hardcode_minus_L_RC 40004 40005# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 40006# into the resulting binary. 40007hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 40008 40009# Set to "yes" if building a shared library automatically hardcodes DIR 40010# into the library and all subsequent libraries and executables linked 40011# against it. 40012hardcode_automatic=$hardcode_automatic_RC 40013 40014# Set to yes if linker adds runtime paths of dependent libraries 40015# to runtime path list. 40016inherit_rpath=$inherit_rpath_RC 40017 40018# Whether libtool must link a program against all its dependency libraries. 40019link_all_deplibs=$link_all_deplibs_RC 40020 40021# Set to "yes" if exported symbols are required. 40022always_export_symbols=$always_export_symbols_RC 40023 40024# The commands to list exported symbols. 40025export_symbols_cmds=$lt_export_symbols_cmds_RC 40026 40027# Symbols that should not be listed in the preloaded symbols. 40028exclude_expsyms=$lt_exclude_expsyms_RC 40029 40030# Symbols that must always be exported. 40031include_expsyms=$lt_include_expsyms_RC 40032 40033# Commands necessary for linking programs (against libraries) with templates. 40034prelink_cmds=$lt_prelink_cmds_RC 40035 40036# Commands necessary for finishing linking programs. 40037postlink_cmds=$lt_postlink_cmds_RC 40038 40039# Specify filename containing input files. 40040file_list_spec=$lt_file_list_spec_RC 40041 40042# How to hardcode a shared library path into an executable. 40043hardcode_action=$hardcode_action_RC 40044 40045# ### END LIBTOOL TAG CONFIG: RC 40046_LT_EOF 40047 40048 ;; 40049 "po-directories":C) 40050 for ac_file in $CONFIG_FILES; do 40051 # Support "outfile[:infile[:infile...]]" 40052 case "$ac_file" in 40053 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 40054 esac 40055 # PO directories have a Makefile.in generated from Makefile.in.in. 40056 case "$ac_file" in */Makefile.in) 40057 # Adjust a relative srcdir. 40058 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 40059 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` 40060 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 40061 # In autoconf-2.13 it is called $ac_given_srcdir. 40062 # In autoconf-2.50 it is called $srcdir. 40063 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 40064 case "$ac_given_srcdir" in 40065 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 40066 /*) top_srcdir="$ac_given_srcdir" ;; 40067 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 40068 esac 40069 # Treat a directory as a PO directory if and only if it has a 40070 # POTFILES.in file. This allows packages to have multiple PO 40071 # directories under different names or in different locations. 40072 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 40073 rm -f "$ac_dir/POTFILES" 40074 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 40075 gt_tab=`printf '\t'` 40076 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" 40077 POMAKEFILEDEPS="POTFILES.in" 40078 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 40079 # on $ac_dir but don't depend on user-specified configuration 40080 # parameters. 40081 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 40082 # The LINGUAS file contains the set of available languages. 40083 if test -n "$OBSOLETE_ALL_LINGUAS"; then 40084 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 40085 fi 40086 ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` 40087 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 40088 else 40089 # The set of available languages was given in configure.in. 40090 ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS 40091 fi 40092 # Compute POFILES 40093 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 40094 # Compute UPDATEPOFILES 40095 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 40096 # Compute DUMMYPOFILES 40097 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 40098 # Compute GMOFILES 40099 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 40100 case "$ac_given_srcdir" in 40101 .) srcdirpre= ;; 40102 *) srcdirpre='$(srcdir)/' ;; 40103 esac 40104 POFILES= 40105 UPDATEPOFILES= 40106 DUMMYPOFILES= 40107 GMOFILES= 40108 for lang in $ALL_LINGUAS; do 40109 POFILES="$POFILES $srcdirpre$lang.po" 40110 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 40111 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 40112 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 40113 done 40114 # CATALOGS depends on both $ac_dir and the user's LINGUAS 40115 # environment variable. 40116 INST_LINGUAS= 40117 if test -n "$ALL_LINGUAS"; then 40118 for presentlang in $ALL_LINGUAS; do 40119 useit=no 40120 if test "%UNSET%" != "$LINGUAS"; then 40121 desiredlanguages="$LINGUAS" 40122 else 40123 desiredlanguages="$ALL_LINGUAS" 40124 fi 40125 for desiredlang in $desiredlanguages; do 40126 # Use the presentlang catalog if desiredlang is 40127 # a. equal to presentlang, or 40128 # b. a variant of presentlang (because in this case, 40129 # presentlang can be used as a fallback for messages 40130 # which are not translated in the desiredlang catalog). 40131 case "$desiredlang" in 40132 "$presentlang"*) useit=yes;; 40133 esac 40134 done 40135 if test $useit = yes; then 40136 INST_LINGUAS="$INST_LINGUAS $presentlang" 40137 fi 40138 done 40139 fi 40140 CATALOGS= 40141 if test -n "$INST_LINGUAS"; then 40142 for lang in $INST_LINGUAS; do 40143 CATALOGS="$CATALOGS $lang.gmo" 40144 done 40145 fi 40146 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 40147 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" 40148 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 40149 if test -f "$f"; then 40150 case "$f" in 40151 *.orig | *.bak | *~) ;; 40152 *) cat "$f" >> "$ac_dir/Makefile" ;; 40153 esac 40154 fi 40155 done 40156 fi 40157 ;; 40158 esac 40159 done ;; 40160 "src/gettext.sh":F) chmod a+x src/gettext.sh ;; 40161 "man/Makefile":F) 40162 sed -e 's,^#distdir:,distdir:,' < $ac_file > $ac_file.tmp 40163 mv $ac_file.tmp $ac_file 40164 ;; 40165 40166 esac 40167done # for ac_tag 40168 40169 40170as_fn_exit 0 40171_ACEOF 40172ac_clean_files=$ac_clean_files_save 40173 40174test $ac_write_fail = 0 || 40175 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 40176 40177 40178# configure is writing to config.log, and then calls config.status. 40179# config.status does its own redirection, appending to config.log. 40180# Unfortunately, on DOS this fails, as config.log is still kept open 40181# by configure, so config.status won't be able to write to it; its 40182# output is simply discarded. So we exec the FD to /dev/null, 40183# effectively closing config.log, so it can be properly (re)opened and 40184# appended to by config.status. When coming back to configure, we 40185# need to make the FD available again. 40186if test "$no_create" != yes; then 40187 ac_cs_success=: 40188 ac_config_status_args= 40189 test "$silent" = yes && 40190 ac_config_status_args="$ac_config_status_args --quiet" 40191 exec 5>/dev/null 40192 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 40193 exec 5>>config.log 40194 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 40195 # would make configure fail if this is the last instruction. 40196 $ac_cs_success || as_fn_exit 1 40197fi 40198 40199# 40200# CONFIG_SUBDIRS section. 40201# 40202if test "$no_recursion" != yes; then 40203 40204 # Remove --cache-file, --srcdir, and --disable-option-checking arguments 40205 # so they do not pile up. 40206 ac_sub_configure_args= 40207 ac_prev= 40208 eval "set x $ac_configure_args" 40209 shift 40210 for ac_arg 40211 do 40212 if test -n "$ac_prev"; then 40213 ac_prev= 40214 continue 40215 fi 40216 case $ac_arg in 40217 -cache-file | --cache-file | --cache-fil | --cache-fi \ 40218 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 40219 ac_prev=cache_file ;; 40220 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 40221 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 40222 | --c=*) 40223 ;; 40224 --config-cache | -C) 40225 ;; 40226 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 40227 ac_prev=srcdir ;; 40228 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 40229 ;; 40230 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 40231 ac_prev=prefix ;; 40232 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 40233 ;; 40234 --disable-option-checking) 40235 ;; 40236 *) 40237 case $ac_arg in 40238 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 40239 esac 40240 as_fn_append ac_sub_configure_args " '$ac_arg'" ;; 40241 esac 40242 done 40243 40244 # Always prepend --prefix to ensure using the same prefix 40245 # in subdir configurations. 40246 ac_arg="--prefix=$prefix" 40247 case $ac_arg in 40248 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 40249 esac 40250 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" 40251 40252 # Pass --silent 40253 if test "$silent" = yes; then 40254 ac_sub_configure_args="--silent $ac_sub_configure_args" 40255 fi 40256 40257 # Always prepend --disable-option-checking to silence warnings, since 40258 # different subdirs can have different --enable and --with options. 40259 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" 40260 40261 ac_popdir=`pwd` 40262 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 40263 40264 # Do not complain, so a configure script can configure whichever 40265 # parts of a large source tree are present. 40266 test -d "$srcdir/$ac_dir" || continue 40267 40268 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 40269 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 40270 $as_echo "$ac_msg" >&6 40271 as_dir="$ac_dir"; as_fn_mkdir_p 40272 ac_builddir=. 40273 40274case "$ac_dir" in 40275.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 40276*) 40277 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 40278 # A ".." for each directory in $ac_dir_suffix. 40279 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 40280 case $ac_top_builddir_sub in 40281 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 40282 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 40283 esac ;; 40284esac 40285ac_abs_top_builddir=$ac_pwd 40286ac_abs_builddir=$ac_pwd$ac_dir_suffix 40287# for backward compatibility: 40288ac_top_builddir=$ac_top_build_prefix 40289 40290case $srcdir in 40291 .) # We are building in place. 40292 ac_srcdir=. 40293 ac_top_srcdir=$ac_top_builddir_sub 40294 ac_abs_top_srcdir=$ac_pwd ;; 40295 [\\/]* | ?:[\\/]* ) # Absolute name. 40296 ac_srcdir=$srcdir$ac_dir_suffix; 40297 ac_top_srcdir=$srcdir 40298 ac_abs_top_srcdir=$srcdir ;; 40299 *) # Relative name. 40300 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 40301 ac_top_srcdir=$ac_top_build_prefix$srcdir 40302 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 40303esac 40304ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 40305 40306 40307 cd "$ac_dir" 40308 40309 # Check for guested configure; otherwise get Cygnus style configure. 40310 if test -f "$ac_srcdir/configure.gnu"; then 40311 ac_sub_configure=$ac_srcdir/configure.gnu 40312 elif test -f "$ac_srcdir/configure"; then 40313 ac_sub_configure=$ac_srcdir/configure 40314 elif test -f "$ac_srcdir/configure.in"; then 40315 # This should be Cygnus configure. 40316 ac_sub_configure=$ac_aux_dir/configure 40317 else 40318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 40319$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 40320 ac_sub_configure= 40321 fi 40322 40323 # The recursion is here. 40324 if test -n "$ac_sub_configure"; then 40325 # Make the cache file name correct relative to the subdirectory. 40326 case $cache_file in 40327 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 40328 *) # Relative name. 40329 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 40330 esac 40331 40332 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 40333$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 40334 # The eval makes quoting arguments work. 40335 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 40336 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 40337 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 40338 fi 40339 40340 cd "$ac_popdir" 40341 done 40342fi 40343if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 40344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 40345$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 40346fi 40347 40348