4717
if test -n "$ac_tool_prefix"; then
4718
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4719
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4720
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4721
$as_echo_n "checking for $ac_word... " >&6; }
4722
if test "${ac_cv_prog_RANLIB+set}" = set; then :
4723
$as_echo_n "(cached) " >&6
4725
if test -n "$RANLIB"; then
4726
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4728
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732
test -z "$as_dir" && as_dir=.
4733
for ac_exec_ext in '' $ac_executable_extensions; do
4734
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4735
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4736
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4745
RANLIB=$ac_cv_prog_RANLIB
4746
if test -n "$RANLIB"; then
4747
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4748
$as_echo "$RANLIB" >&6; }
4750
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4751
$as_echo "no" >&6; }
4756
if test -z "$ac_cv_prog_RANLIB"; then
4757
ac_ct_RANLIB=$RANLIB
4758
# Extract the first word of "ranlib", so it can be a program name with args.
4759
set dummy ranlib; ac_word=$2
4760
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4761
$as_echo_n "checking for $ac_word... " >&6; }
4762
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4763
$as_echo_n "(cached) " >&6
4765
if test -n "$ac_ct_RANLIB"; then
4766
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4768
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772
test -z "$as_dir" && as_dir=.
4773
for ac_exec_ext in '' $ac_executable_extensions; do
4774
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4775
ac_cv_prog_ac_ct_RANLIB="ranlib"
4776
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4785
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4786
if test -n "$ac_ct_RANLIB"; then
4787
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4788
$as_echo "$ac_ct_RANLIB" >&6; }
4790
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4791
$as_echo "no" >&6; }
4794
if test "x$ac_ct_RANLIB" = x; then
4797
case $cross_compiling:$ac_tool_warned in
4799
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4800
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4801
ac_tool_warned=yes ;;
4803
RANLIB=$ac_ct_RANLIB
4806
RANLIB="$ac_cv_prog_RANLIB"
4809
# Make sure we can run config.sub.
4810
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4811
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4813
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4814
$as_echo_n "checking build system type... " >&6; }
4815
if test "${ac_cv_build+set}" = set; then :
4816
$as_echo_n "(cached) " >&6
4818
ac_build_alias=$build_alias
4819
test "x$ac_build_alias" = x &&
4820
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4821
test "x$ac_build_alias" = x &&
4822
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4823
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4824
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4827
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4828
$as_echo "$ac_cv_build" >&6; }
4829
case $ac_cv_build in
4831
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
4834
ac_save_IFS=$IFS; IFS='-'
4840
# Remember, the first character of IFS is used to create $*,
4841
# except with old shells:
4844
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4847
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4848
$as_echo_n "checking host system type... " >&6; }
4849
if test "${ac_cv_host+set}" = set; then :
4850
$as_echo_n "(cached) " >&6
4852
if test "x$host_alias" = x; then
4853
ac_cv_host=$ac_cv_build
4855
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4856
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4860
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4861
$as_echo "$ac_cv_host" >&6; }
4864
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
4867
ac_save_IFS=$IFS; IFS='-'
4873
# Remember, the first character of IFS is used to create $*,
4874
# except with old shells:
4877
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4882
4999
ac_cpp='$CPP $CPPFLAGS'
5146
5263
EGREP="$ac_cv_path_EGREP"
5268
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269
/* end confdefs.h. */
5276
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5277
$EGREP "Amsterdam" >/dev/null 2>&1; then :
5285
if test -n "$ac_tool_prefix"; then
5286
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5287
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5288
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5289
$as_echo_n "checking for $ac_word... " >&6; }
5290
if ${ac_cv_prog_RANLIB+:} false; then :
5291
$as_echo_n "(cached) " >&6
5293
if test -n "$RANLIB"; then
5294
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5296
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5300
test -z "$as_dir" && as_dir=.
5301
for ac_exec_ext in '' $ac_executable_extensions; do
5302
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5303
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5304
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5313
RANLIB=$ac_cv_prog_RANLIB
5314
if test -n "$RANLIB"; then
5315
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5316
$as_echo "$RANLIB" >&6; }
5318
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5319
$as_echo "no" >&6; }
5324
if test -z "$ac_cv_prog_RANLIB"; then
5325
ac_ct_RANLIB=$RANLIB
5326
# Extract the first word of "ranlib", so it can be a program name with args.
5327
set dummy ranlib; ac_word=$2
5328
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5329
$as_echo_n "checking for $ac_word... " >&6; }
5330
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5331
$as_echo_n "(cached) " >&6
5333
if test -n "$ac_ct_RANLIB"; then
5334
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5336
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5340
test -z "$as_dir" && as_dir=.
5341
for ac_exec_ext in '' $ac_executable_extensions; do
5342
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5343
ac_cv_prog_ac_ct_RANLIB="ranlib"
5344
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5353
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5354
if test -n "$ac_ct_RANLIB"; then
5355
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5356
$as_echo "$ac_ct_RANLIB" >&6; }
5358
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5359
$as_echo "no" >&6; }
5362
if test "x$ac_ct_RANLIB" = x; then
5365
case $cross_compiling:$ac_tool_warned in
5367
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5368
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5369
ac_tool_warned=yes ;;
5371
RANLIB=$ac_ct_RANLIB
5374
RANLIB="$ac_cv_prog_RANLIB"
5384
# Make sure we can run config.sub.
5385
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5386
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5388
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5389
$as_echo_n "checking build system type... " >&6; }
5390
if ${ac_cv_build+:} false; then :
5391
$as_echo_n "(cached) " >&6
5393
ac_build_alias=$build_alias
5394
test "x$ac_build_alias" = x &&
5395
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5396
test "x$ac_build_alias" = x &&
5397
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5398
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5399
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5402
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5403
$as_echo "$ac_cv_build" >&6; }
5404
case $ac_cv_build in
5406
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5409
ac_save_IFS=$IFS; IFS='-'
5415
# Remember, the first character of IFS is used to create $*,
5416
# except with old shells:
5419
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5422
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5423
$as_echo_n "checking host system type... " >&6; }
5424
if ${ac_cv_host+:} false; then :
5425
$as_echo_n "(cached) " >&6
5427
if test "x$host_alias" = x; then
5428
ac_cv_host=$ac_cv_build
5430
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5431
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5435
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5436
$as_echo "$ac_cv_host" >&6; }
5439
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5442
ac_save_IFS=$IFS; IFS='-'
5448
# Remember, the first character of IFS is used to create $*,
5449
# except with old shells:
5452
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5149
5455
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5150
5456
$as_echo_n "checking for ANSI C header files... " >&6; }
5151
if test "${ac_cv_header_stdc+set}" = set; then :
5457
if ${ac_cv_header_stdc+:} false; then :
5152
5458
$as_echo_n "(cached) " >&6
5154
5460
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5758
# Check whether --enable-largefile was given.
5759
if test "${enable_largefile+set}" = set; then :
5760
enableval=$enable_largefile;
5763
if test "$enable_largefile" != no; then
5765
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5766
$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5767
if ${ac_cv_sys_largefile_CC+:} false; then :
5768
$as_echo_n "(cached) " >&6
5770
ac_cv_sys_largefile_CC=no
5771
if test "$GCC" != yes; then
5774
# IRIX 6.2 and later do not support large files by default,
5775
# so use the C compiler's -n32 option if that helps.
5776
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5777
/* end confdefs.h. */
5778
#include <sys/types.h>
5779
/* Check that off_t can represent 2**63 - 1 correctly.
5780
We can't simply define LARGE_OFF_T to be 9223372036854775807,
5781
since some C++ compilers masquerading as C compilers
5782
incorrectly reject 9223372036854775807. */
5783
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5784
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5785
&& LARGE_OFF_T % 2147483647 == 1)
5795
if ac_fn_c_try_compile "$LINENO"; then :
5798
rm -f core conftest.err conftest.$ac_objext
5800
if ac_fn_c_try_compile "$LINENO"; then :
5801
ac_cv_sys_largefile_CC=' -n32'; break
5803
rm -f core conftest.err conftest.$ac_objext
5807
rm -f conftest.$ac_ext
5810
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5811
$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5812
if test "$ac_cv_sys_largefile_CC" != no; then
5813
CC=$CC$ac_cv_sys_largefile_CC
5816
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5817
$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5818
if ${ac_cv_sys_file_offset_bits+:} false; then :
5819
$as_echo_n "(cached) " >&6
5822
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5823
/* end confdefs.h. */
5824
#include <sys/types.h>
5825
/* Check that off_t can represent 2**63 - 1 correctly.
5826
We can't simply define LARGE_OFF_T to be 9223372036854775807,
5827
since some C++ compilers masquerading as C compilers
5828
incorrectly reject 9223372036854775807. */
5829
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5830
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5831
&& LARGE_OFF_T % 2147483647 == 1)
5841
if ac_fn_c_try_compile "$LINENO"; then :
5842
ac_cv_sys_file_offset_bits=no; break
5844
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5845
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5846
/* end confdefs.h. */
5847
#define _FILE_OFFSET_BITS 64
5848
#include <sys/types.h>
5849
/* Check that off_t can represent 2**63 - 1 correctly.
5850
We can't simply define LARGE_OFF_T to be 9223372036854775807,
5851
since some C++ compilers masquerading as C compilers
5852
incorrectly reject 9223372036854775807. */
5853
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5854
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5855
&& LARGE_OFF_T % 2147483647 == 1)
5865
if ac_fn_c_try_compile "$LINENO"; then :
5866
ac_cv_sys_file_offset_bits=64; break
5868
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5869
ac_cv_sys_file_offset_bits=unknown
5873
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5874
$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5875
case $ac_cv_sys_file_offset_bits in #(
5878
cat >>confdefs.h <<_ACEOF
5879
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5884
if test $ac_cv_sys_file_offset_bits = unknown; then
5885
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5886
$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5887
if ${ac_cv_sys_large_files+:} false; then :
5888
$as_echo_n "(cached) " >&6
5891
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5892
/* end confdefs.h. */
5893
#include <sys/types.h>
5894
/* Check that off_t can represent 2**63 - 1 correctly.
5895
We can't simply define LARGE_OFF_T to be 9223372036854775807,
5896
since some C++ compilers masquerading as C compilers
5897
incorrectly reject 9223372036854775807. */
5898
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5899
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5900
&& LARGE_OFF_T % 2147483647 == 1)
5910
if ac_fn_c_try_compile "$LINENO"; then :
5911
ac_cv_sys_large_files=no; break
5913
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5914
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5915
/* end confdefs.h. */
5916
#define _LARGE_FILES 1
5917
#include <sys/types.h>
5918
/* Check that off_t can represent 2**63 - 1 correctly.
5919
We can't simply define LARGE_OFF_T to be 9223372036854775807,
5920
since some C++ compilers masquerading as C compilers
5921
incorrectly reject 9223372036854775807. */
5922
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5923
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5924
&& LARGE_OFF_T % 2147483647 == 1)
5934
if ac_fn_c_try_compile "$LINENO"; then :
5935
ac_cv_sys_large_files=1; break
5937
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5938
ac_cv_sys_large_files=unknown
5942
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5943
$as_echo "$ac_cv_sys_large_files" >&6; }
5944
case $ac_cv_sys_large_files in #(
5947
cat >>confdefs.h <<_ACEOF
5948
#define _LARGE_FILES $ac_cv_sys_large_files
5425
5960
# Code from module alignof:
5426
5961
# Code from module alloca-opt:
5427
5962
# Code from module alloca-opt-tests:
5428
# Code from module arg-nonnull:
5963
# Code from module binary-io:
5964
# Code from module binary-io-tests:
5429
5965
# Code from module byteswap:
5430
5966
# Code from module byteswap-tests:
5431
# Code from module c++defs:
5432
5967
# Code from module c-ctype:
5433
5968
# Code from module c-ctype-tests:
5434
# Code from module close-hook:
5435
5969
# Code from module errno:
5436
5970
# Code from module errno-tests:
5437
5971
# Code from module extensions:
5973
# Code from module fcntl-h:
5974
# Code from module fcntl-h-tests:
5975
# Code from module fd-hook:
5439
5976
# Code from module float:
5977
# Code from module float-tests:
5978
# Code from module fpieee:
5980
# Code from module fpucw:
5981
# Code from module fseek:
5982
# Code from module fseek-tests:
5440
5983
# Code from module fseeko:
5442
5985
# Code from module fseeko-tests:
5986
# Code from module ftell:
5987
# Code from module ftell-tests:
5988
# Code from module ftello:
5990
# Code from module ftello-tests:
5443
5991
# Code from module func:
5444
5992
# Code from module func-tests:
5993
# Code from module getpagesize:
5445
5994
# Code from module gettext:
5446
5995
# Code from module gettext-h:
5447
5996
# Code from module havelib:
5448
5997
# Code from module include_next:
5449
5998
# Code from module intprops:
5999
# Code from module intprops-tests:
6000
# Code from module inttypes:
6001
# Code from module inttypes-incomplete:
6002
# Code from module inttypes-tests:
6003
# Code from module largefile:
5450
6005
# Code from module lib-msvc-compat:
5451
6006
# Code from module lib-symbol-versions:
5452
6007
# Code from module lseek:
6008
# Code from module malloc-posix:
5453
6009
# Code from module memchr:
5454
6010
# Code from module memchr-tests:
5455
6011
# Code from module memmem-simple:
6948
if test -n "$ac_tool_prefix"; then
6949
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6950
set dummy ${ac_tool_prefix}ar; ac_word=$2
6951
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6952
$as_echo_n "checking for $ac_word... " >&6; }
6953
if test "${ac_cv_prog_AR+set}" = set; then :
7614
if test -n "$ac_tool_prefix"; then
7615
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7616
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7617
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7618
$as_echo_n "checking for $ac_word... " >&6; }
7619
if ${ac_cv_prog_DLLTOOL+:} false; then :
7620
$as_echo_n "(cached) " >&6
7622
if test -n "$DLLTOOL"; then
7623
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7625
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7629
test -z "$as_dir" && as_dir=.
7630
for ac_exec_ext in '' $ac_executable_extensions; do
7631
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7632
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7633
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7642
DLLTOOL=$ac_cv_prog_DLLTOOL
7643
if test -n "$DLLTOOL"; then
7644
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7645
$as_echo "$DLLTOOL" >&6; }
7647
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7648
$as_echo "no" >&6; }
7653
if test -z "$ac_cv_prog_DLLTOOL"; then
7654
ac_ct_DLLTOOL=$DLLTOOL
7655
# Extract the first word of "dlltool", so it can be a program name with args.
7656
set dummy dlltool; ac_word=$2
7657
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7658
$as_echo_n "checking for $ac_word... " >&6; }
7659
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7660
$as_echo_n "(cached) " >&6
7662
if test -n "$ac_ct_DLLTOOL"; then
7663
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7665
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7669
test -z "$as_dir" && as_dir=.
7670
for ac_exec_ext in '' $ac_executable_extensions; do
7671
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7672
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7673
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7682
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7683
if test -n "$ac_ct_DLLTOOL"; then
7684
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7685
$as_echo "$ac_ct_DLLTOOL" >&6; }
7687
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7688
$as_echo "no" >&6; }
7691
if test "x$ac_ct_DLLTOOL" = x; then
7694
case $cross_compiling:$ac_tool_warned in
7696
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7697
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7698
ac_tool_warned=yes ;;
7700
DLLTOOL=$ac_ct_DLLTOOL
7703
DLLTOOL="$ac_cv_prog_DLLTOOL"
7706
test -z "$DLLTOOL" && DLLTOOL=dlltool
7714
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7715
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7716
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7717
$as_echo_n "(cached) " >&6
7719
lt_cv_sharedlib_from_linklib_cmd='unknown'
7722
cygwin* | mingw* | pw32* | cegcc*)
7723
# two different shell functions defined in ltmain.sh
7724
# decide which to use based on capabilities of $DLLTOOL
7725
case `$DLLTOOL --help 2>&1` in
7726
*--identify-strict*)
7727
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7730
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7735
# fallback: assume linklib IS sharedlib
7736
lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7741
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7742
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7743
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7744
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7752
if test -n "$ac_tool_prefix"; then
7755
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7756
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7757
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7758
$as_echo_n "checking for $ac_word... " >&6; }
7759
if ${ac_cv_prog_AR+:} false; then :
6954
7760
$as_echo_n "(cached) " >&6
6956
7762
if test -n "$AR"; then
7763
8695
need_locks="$enable_libtool_lock"
8697
if test -n "$ac_tool_prefix"; then
8698
# Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8699
set dummy ${ac_tool_prefix}mt; ac_word=$2
8700
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8701
$as_echo_n "checking for $ac_word... " >&6; }
8702
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8703
$as_echo_n "(cached) " >&6
8705
if test -n "$MANIFEST_TOOL"; then
8706
ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8708
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8712
test -z "$as_dir" && as_dir=.
8713
for ac_exec_ext in '' $ac_executable_extensions; do
8714
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8715
ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8716
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8725
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8726
if test -n "$MANIFEST_TOOL"; then
8727
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8728
$as_echo "$MANIFEST_TOOL" >&6; }
8730
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8731
$as_echo "no" >&6; }
8736
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8737
ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8738
# Extract the first word of "mt", so it can be a program name with args.
8739
set dummy mt; ac_word=$2
8740
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8741
$as_echo_n "checking for $ac_word... " >&6; }
8742
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8743
$as_echo_n "(cached) " >&6
8745
if test -n "$ac_ct_MANIFEST_TOOL"; then
8746
ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8748
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8752
test -z "$as_dir" && as_dir=.
8753
for ac_exec_ext in '' $ac_executable_extensions; do
8754
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8755
ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8756
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8765
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8766
if test -n "$ac_ct_MANIFEST_TOOL"; then
8767
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8768
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8770
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8771
$as_echo "no" >&6; }
8774
if test "x$ac_ct_MANIFEST_TOOL" = x; then
8777
case $cross_compiling:$ac_tool_warned in
8779
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8780
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8781
ac_tool_warned=yes ;;
8783
MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8786
MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8789
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8790
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8791
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8792
if ${lt_cv_path_mainfest_tool+:} false; then :
8793
$as_echo_n "(cached) " >&6
8795
lt_cv_path_mainfest_tool=no
8796
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8797
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8798
cat conftest.err >&5
8799
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8800
lt_cv_path_mainfest_tool=yes
8804
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8805
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8806
if test "x$lt_cv_path_mainfest_tool" != xyes; then
7766
8815
case $host_os in
7767
8816
rhapsody* | darwin*)
12941
if test "$ac_cv_libgcrypt" != yes; then
14191
if test "$ac_cv_libgcrypt" != yes; then
12944
*** libgcrypt was not found. You may want to get it from
14194
*** Libgcrypt v1.4.0 or later was not found. You may want to get it from
12945
14195
*** ftp://ftp.gnupg.org/gcrypt/libgcrypt/
12947
14197
" "$LINENO" 5
14201
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use nettle" >&5
14202
$as_echo_n "checking whether to use nettle... " >&6; }
14203
if test "$cryptolib" = "nettle";then
14204
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14205
$as_echo "yes" >&6; }
14218
acl_save_prefix="$prefix"
14219
prefix="$acl_final_prefix"
14220
acl_save_exec_prefix="$exec_prefix"
14221
exec_prefix="$acl_final_exec_prefix"
14223
eval additional_includedir=\"$includedir\"
14224
eval additional_libdir=\"$libdir\"
14226
exec_prefix="$acl_save_exec_prefix"
14227
prefix="$acl_save_prefix"
14230
# Check whether --with-libnettle-prefix was given.
14231
if test "${with_libnettle_prefix+set}" = set; then :
14232
withval=$with_libnettle_prefix;
14233
if test "X$withval" = "Xno"; then
14236
if test "X$withval" = "X"; then
14238
acl_save_prefix="$prefix"
14239
prefix="$acl_final_prefix"
14240
acl_save_exec_prefix="$exec_prefix"
14241
exec_prefix="$acl_final_exec_prefix"
14243
eval additional_includedir=\"$includedir\"
14244
eval additional_libdir=\"$libdir\"
14246
exec_prefix="$acl_save_exec_prefix"
14247
prefix="$acl_save_prefix"
14250
additional_includedir="$withval/include"
14251
additional_libdir="$withval/$acl_libdirstem"
14263
names_already_handled=
14264
names_next_round='nettle '
14265
while test -n "$names_next_round"; do
14266
names_this_round="$names_next_round"
14268
for name in $names_this_round; do
14270
for n in $names_already_handled; do
14271
if test "$n" = "$name"; then
14272
already_handled=yes
14276
if test -z "$already_handled"; then
14277
names_already_handled="$names_already_handled $name"
14278
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14279
eval value=\"\$HAVE_LIB$uppername\"
14280
if test -n "$value"; then
14281
if test "$value" = yes; then
14282
eval value=\"\$LIB$uppername\"
14283
test -z "$value" || LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$value"
14284
eval value=\"\$LTLIB$uppername\"
14285
test -z "$value" || LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }$value"
14294
eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
14295
if test -n "$acl_shlibext"; then
14296
shrext=".$acl_shlibext" # typically: shrext=.so
14300
if test $use_additional = yes; then
14301
dir="$additional_libdir"
14302
if test -n "$acl_shlibext"; then
14303
if test -f "$dir/$libname$shrext"; then
14305
found_so="$dir/$libname$shrext"
14307
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14308
ver=`(cd "$dir" && \
14309
for f in "$libname$shrext".*; do echo "$f"; done \
14310
| sed -e "s,^$libname$shrext\\\\.,," \
14311
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14312
| sed 1q ) 2>/dev/null`
14313
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14315
found_so="$dir/$libname$shrext.$ver"
14318
eval library_names=\"$acl_library_names_spec\"
14319
for f in $library_names; do
14320
if test -f "$dir/$f"; then
14329
if test "X$found_dir" = "X"; then
14330
if test -f "$dir/$libname.$acl_libext"; then
14332
found_a="$dir/$libname.$acl_libext"
14335
if test "X$found_dir" != "X"; then
14336
if test -f "$dir/$libname.la"; then
14337
found_la="$dir/$libname.la"
14341
if test "X$found_dir" = "X"; then
14342
for x in $LDFLAGS $LTLIBNETTLE; do
14344
acl_save_prefix="$prefix"
14345
prefix="$acl_final_prefix"
14346
acl_save_exec_prefix="$exec_prefix"
14347
exec_prefix="$acl_final_exec_prefix"
14349
exec_prefix="$acl_save_exec_prefix"
14350
prefix="$acl_save_prefix"
14354
dir=`echo "X$x" | sed -e 's/^X-L//'`
14355
if test -n "$acl_shlibext"; then
14356
if test -f "$dir/$libname$shrext"; then
14358
found_so="$dir/$libname$shrext"
14360
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14361
ver=`(cd "$dir" && \
14362
for f in "$libname$shrext".*; do echo "$f"; done \
14363
| sed -e "s,^$libname$shrext\\\\.,," \
14364
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14365
| sed 1q ) 2>/dev/null`
14366
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14368
found_so="$dir/$libname$shrext.$ver"
14371
eval library_names=\"$acl_library_names_spec\"
14372
for f in $library_names; do
14373
if test -f "$dir/$f"; then
14382
if test "X$found_dir" = "X"; then
14383
if test -f "$dir/$libname.$acl_libext"; then
14385
found_a="$dir/$libname.$acl_libext"
14388
if test "X$found_dir" != "X"; then
14389
if test -f "$dir/$libname.la"; then
14390
found_la="$dir/$libname.la"
14395
if test "X$found_dir" != "X"; then
14400
if test "X$found_dir" != "X"; then
14401
LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }-L$found_dir -l$name"
14402
if test "X$found_so" != "X"; then
14403
if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
14404
LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$found_so"
14407
for x in $ltrpathdirs; do
14408
if test "X$x" = "X$found_dir"; then
14413
if test -z "$haveit"; then
14414
ltrpathdirs="$ltrpathdirs $found_dir"
14416
if test "$acl_hardcode_direct" = yes; then
14417
LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$found_so"
14419
if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14420
LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$found_so"
14422
for x in $rpathdirs; do
14423
if test "X$x" = "X$found_dir"; then
14428
if test -z "$haveit"; then
14429
rpathdirs="$rpathdirs $found_dir"
14433
for x in $LDFLAGS $LIBNETTLE; do
14435
acl_save_prefix="$prefix"
14436
prefix="$acl_final_prefix"
14437
acl_save_exec_prefix="$exec_prefix"
14438
exec_prefix="$acl_final_exec_prefix"
14440
exec_prefix="$acl_save_exec_prefix"
14441
prefix="$acl_save_prefix"
14443
if test "X$x" = "X-L$found_dir"; then
14448
if test -z "$haveit"; then
14449
LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }-L$found_dir"
14451
if test "$acl_hardcode_minus_L" != no; then
14452
LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$found_so"
14454
LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }-l$name"
14460
if test "X$found_a" != "X"; then
14461
LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$found_a"
14463
LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }-L$found_dir -l$name"
14466
additional_includedir=
14467
case "$found_dir" in
14468
*/$acl_libdirstem | */$acl_libdirstem/)
14469
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14470
LIBNETTLE_PREFIX="$basedir"
14471
additional_includedir="$basedir/include"
14474
if test "X$additional_includedir" != "X"; then
14475
if test "X$additional_includedir" != "X/usr/include"; then
14477
if test "X$additional_includedir" = "X/usr/local/include"; then
14478
if test -n "$GCC"; then
14480
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14484
if test -z "$haveit"; then
14485
for x in $CPPFLAGS $INCNETTLE; do
14487
acl_save_prefix="$prefix"
14488
prefix="$acl_final_prefix"
14489
acl_save_exec_prefix="$exec_prefix"
14490
exec_prefix="$acl_final_exec_prefix"
14492
exec_prefix="$acl_save_exec_prefix"
14493
prefix="$acl_save_prefix"
14495
if test "X$x" = "X-I$additional_includedir"; then
14500
if test -z "$haveit"; then
14501
if test -d "$additional_includedir"; then
14502
INCNETTLE="${INCNETTLE}${INCNETTLE:+ }-I$additional_includedir"
14508
if test -n "$found_la"; then
14509
save_libdir="$libdir"
14510
case "$found_la" in
14511
*/* | *\\*) . "$found_la" ;;
14512
*) . "./$found_la" ;;
14514
libdir="$save_libdir"
14515
for dep in $dependency_libs; do
14518
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14519
if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
14521
if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
14522
if test -n "$GCC"; then
14524
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14528
if test -z "$haveit"; then
14530
for x in $LDFLAGS $LIBNETTLE; do
14532
acl_save_prefix="$prefix"
14533
prefix="$acl_final_prefix"
14534
acl_save_exec_prefix="$exec_prefix"
14535
exec_prefix="$acl_final_exec_prefix"
14537
exec_prefix="$acl_save_exec_prefix"
14538
prefix="$acl_save_prefix"
14540
if test "X$x" = "X-L$additional_libdir"; then
14545
if test -z "$haveit"; then
14546
if test -d "$additional_libdir"; then
14547
LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }-L$additional_libdir"
14551
for x in $LDFLAGS $LTLIBNETTLE; do
14553
acl_save_prefix="$prefix"
14554
prefix="$acl_final_prefix"
14555
acl_save_exec_prefix="$exec_prefix"
14556
exec_prefix="$acl_final_exec_prefix"
14558
exec_prefix="$acl_save_exec_prefix"
14559
prefix="$acl_save_prefix"
14561
if test "X$x" = "X-L$additional_libdir"; then
14566
if test -z "$haveit"; then
14567
if test -d "$additional_libdir"; then
14568
LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }-L$additional_libdir"
14575
dir=`echo "X$dep" | sed -e 's/^X-R//'`
14576
if test "$enable_rpath" != no; then
14578
for x in $rpathdirs; do
14579
if test "X$x" = "X$dir"; then
14584
if test -z "$haveit"; then
14585
rpathdirs="$rpathdirs $dir"
14588
for x in $ltrpathdirs; do
14589
if test "X$x" = "X$dir"; then
14594
if test -z "$haveit"; then
14595
ltrpathdirs="$ltrpathdirs $dir"
14600
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14603
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14606
LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$dep"
14607
LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }$dep"
14613
LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }-l$name"
14614
LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }-l$name"
14620
if test "X$rpathdirs" != "X"; then
14621
if test -n "$acl_hardcode_libdir_separator"; then
14623
for found_dir in $rpathdirs; do
14624
alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14626
acl_save_libdir="$libdir"
14628
eval flag=\"$acl_hardcode_libdir_flag_spec\"
14629
libdir="$acl_save_libdir"
14630
LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$flag"
14632
for found_dir in $rpathdirs; do
14633
acl_save_libdir="$libdir"
14634
libdir="$found_dir"
14635
eval flag=\"$acl_hardcode_libdir_flag_spec\"
14636
libdir="$acl_save_libdir"
14637
LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$flag"
14641
if test "X$ltrpathdirs" != "X"; then
14642
for found_dir in $ltrpathdirs; do
14643
LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }-R$found_dir"
14648
ac_save_CPPFLAGS="$CPPFLAGS"
14650
for element in $INCNETTLE; do
14652
for x in $CPPFLAGS; do
14654
acl_save_prefix="$prefix"
14655
prefix="$acl_final_prefix"
14656
acl_save_exec_prefix="$exec_prefix"
14657
exec_prefix="$acl_final_exec_prefix"
14659
exec_prefix="$acl_save_exec_prefix"
14660
prefix="$acl_save_prefix"
14662
if test "X$x" = "X$element"; then
14667
if test -z "$haveit"; then
14668
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14673
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnettle" >&5
14674
$as_echo_n "checking for libnettle... " >&6; }
14675
if ${ac_cv_libnettle+:} false; then :
14676
$as_echo_n "(cached) " >&6
14679
ac_save_LIBS="$LIBS"
14680
LIBS="$LIBS $LIBNETTLE"
14681
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14682
/* end confdefs.h. */
14683
#include <nettle/aes.h>
14687
nettle_aes_invert_key (0, 0)
14692
if ac_fn_c_try_link "$LINENO"; then :
14693
ac_cv_libnettle=yes
14697
rm -f core conftest.err conftest.$ac_objext \
14698
conftest$ac_exeext conftest.$ac_ext
14699
LIBS="$ac_save_LIBS"
14702
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libnettle" >&5
14703
$as_echo "$ac_cv_libnettle" >&6; }
14704
if test "$ac_cv_libnettle" = yes; then
14707
$as_echo "#define HAVE_LIBNETTLE 1" >>confdefs.h
14709
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libnettle" >&5
14710
$as_echo_n "checking how to link with libnettle... " >&6; }
14711
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBNETTLE" >&5
14712
$as_echo "$LIBNETTLE" >&6; }
14715
CPPFLAGS="$ac_save_CPPFLAGS"
14727
if test "$ac_cv_libnettle" != yes; then
14730
*** Libnettle 2.1 was not found.
14733
NETTLE_LIBS="-lgmp -lhogweed"
14735
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14736
$as_echo "no" >&6; }
14739
if test "$cryptolib" = "nettle"; then
14740
ENABLE_NETTLE_TRUE=
14741
ENABLE_NETTLE_FALSE='#'
14743
ENABLE_NETTLE_TRUE='#'
14744
ENABLE_NETTLE_FALSE=
12951
14749
# Check whether --with-included-libtasn1 was given.
16642
18446
$as_echo "no" >&6; }
18456
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18457
if test -n "$ac_tool_prefix"; then
18458
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18459
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18460
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18461
$as_echo_n "checking for $ac_word... " >&6; }
18462
if ${ac_cv_path_PKG_CONFIG+:} false; then :
18463
$as_echo_n "(cached) " >&6
18465
case $PKG_CONFIG in
18467
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18470
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18471
for as_dir in $PATH
18474
test -z "$as_dir" && as_dir=.
18475
for ac_exec_ext in '' $ac_executable_extensions; do
18476
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18477
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18478
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18488
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18489
if test -n "$PKG_CONFIG"; then
18490
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18491
$as_echo "$PKG_CONFIG" >&6; }
18493
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18494
$as_echo "no" >&6; }
18499
if test -z "$ac_cv_path_PKG_CONFIG"; then
18500
ac_pt_PKG_CONFIG=$PKG_CONFIG
18501
# Extract the first word of "pkg-config", so it can be a program name with args.
18502
set dummy pkg-config; ac_word=$2
18503
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18504
$as_echo_n "checking for $ac_word... " >&6; }
18505
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18506
$as_echo_n "(cached) " >&6
18508
case $ac_pt_PKG_CONFIG in
18510
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18513
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18514
for as_dir in $PATH
18517
test -z "$as_dir" && as_dir=.
18518
for ac_exec_ext in '' $ac_executable_extensions; do
18519
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18520
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18521
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18531
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18532
if test -n "$ac_pt_PKG_CONFIG"; then
18533
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18534
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
18536
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18537
$as_echo "no" >&6; }
18540
if test "x$ac_pt_PKG_CONFIG" = x; then
18543
case $cross_compiling:$ac_tool_warned in
18545
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18546
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18547
ac_tool_warned=yes ;;
18549
PKG_CONFIG=$ac_pt_PKG_CONFIG
18552
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18556
if test -n "$PKG_CONFIG"; then
18557
_pkg_min_version=0.9.0
18558
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18559
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18560
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18561
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18562
$as_echo "yes" >&6; }
18564
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18565
$as_echo "no" >&6; }
18569
if test -n "$PKG_CONFIG" && \
18570
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
18571
($PKG_CONFIG --exists --print-errors "zlib") 2>&5
18573
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18574
test $ac_status = 0; }; then
18575
ZLIB_HAS_PKGCONFIG=y
18577
ZLIB_HAS_PKGCONFIG=n
16645
18580
if test x$ac_zlib != xno; then
16646
if test "$GNUTLS_REQUIRES_PRIVATE" = ""; then
16647
GNUTLS_REQUIRES_PRIVATE="Requires.private: zlib"
18581
if test "$ZLIB_HAS_PKGCONFIG" = "y" ; then
18582
if test "x$GNUTLS_REQUIRES_PRIVATE" = "x"; then
18583
GNUTLS_REQUIRES_PRIVATE="Requires.private: zlib"
18585
GNUTLS_REQUIRES_PRIVATE="$GNUTLS_REQUIRES_PRIVATE , zlib"
16649
GNUTLS_REQUIRES_PRIVATE="$GNUTLS_REQUIRES_PRIVATE , zlib"
18588
GNUTLS_ZLIB_LIBS_PRIVATE="$LTLIBZ"
18595
# Check whether --with-p11-kit was given.
18596
if test "${with_p11_kit+set}" = set; then :
18597
withval=$with_p11_kit;
18600
if test "$with_p11_kit" != "no"; then
18601
ENABLE_PKCS11_TRUE=
18602
ENABLE_PKCS11_FALSE='#'
18604
ENABLE_PKCS11_TRUE='#'
18605
ENABLE_PKCS11_FALSE=
18608
if test "$with_p11_kit" != "no"; then
18611
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for P11_KIT" >&5
18612
$as_echo_n "checking for P11_KIT... " >&6; }
18614
if test -n "$P11_KIT_CFLAGS"; then
18615
pkg_cv_P11_KIT_CFLAGS="$P11_KIT_CFLAGS"
18616
elif test -n "$PKG_CONFIG"; then
18617
if test -n "$PKG_CONFIG" && \
18618
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"p11-kit-1 >= 0.4\""; } >&5
18619
($PKG_CONFIG --exists --print-errors "p11-kit-1 >= 0.4") 2>&5
18621
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18622
test $ac_status = 0; }; then
18623
pkg_cv_P11_KIT_CFLAGS=`$PKG_CONFIG --cflags "p11-kit-1 >= 0.4" 2>/dev/null`
18624
test "x$?" != "x0" && pkg_failed=yes
18631
if test -n "$P11_KIT_LIBS"; then
18632
pkg_cv_P11_KIT_LIBS="$P11_KIT_LIBS"
18633
elif test -n "$PKG_CONFIG"; then
18634
if test -n "$PKG_CONFIG" && \
18635
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"p11-kit-1 >= 0.4\""; } >&5
18636
($PKG_CONFIG --exists --print-errors "p11-kit-1 >= 0.4") 2>&5
18638
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18639
test $ac_status = 0; }; then
18640
pkg_cv_P11_KIT_LIBS=`$PKG_CONFIG --libs "p11-kit-1 >= 0.4" 2>/dev/null`
18641
test "x$?" != "x0" && pkg_failed=yes
18651
if test $pkg_failed = yes; then
18652
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18653
$as_echo "no" >&6; }
18655
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18656
_pkg_short_errors_supported=yes
18658
_pkg_short_errors_supported=no
18660
if test $_pkg_short_errors_supported = yes; then
18661
P11_KIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "p11-kit-1 >= 0.4" 2>&1`
18663
P11_KIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "p11-kit-1 >= 0.4" 2>&1`
18665
# Put the nasty error message in config.log where it belongs
18666
echo "$P11_KIT_PKG_ERRORS" >&5
18669
elif test $pkg_failed = untried; then
18670
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18671
$as_echo "no" >&6; }
18674
P11_KIT_CFLAGS=$pkg_cv_P11_KIT_CFLAGS
18675
P11_KIT_LIBS=$pkg_cv_P11_KIT_LIBS
18676
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18677
$as_echo "yes" >&6; }
18680
if test "$with_p11_kit" != "no";then
18682
$as_echo "#define ENABLE_PKCS11 1" >>confdefs.h
18684
CFLAGS="$CFLAGS $P11_KIT_CFLAGS"
18685
LIBS="$LIBS $P11_KIT_LIBS"
18686
if test "x$GNUTLS_REQUIRES_PRIVATE" = "x"; then
18687
GNUTLS_REQUIRES_PRIVATE="Requires.private: p11-kit-1"
18689
GNUTLS_REQUIRES_PRIVATE="${GNUTLS_REQUIRES_PRIVATE}, p11-kit-1"
18692
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18694
*** p11-kit was not found. PKCS #11 support will be disabled.
18695
*** You may get it from http://p11-glue.freedesktop.org/p11-kit.html
18697
$as_echo "$as_me: WARNING:
18699
*** p11-kit was not found. PKCS #11 support will be disabled.
18700
*** You may get it from http://p11-glue.freedesktop.org/p11-kit.html
16658
18710
LIBC_FATAL_STDERR_=1
16659
18711
export LIBC_FATAL_STDERR_
18713
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18714
if test "x$ac_cv_type_size_t" = xyes; then :
18718
cat >>confdefs.h <<_ACEOF
18719
#define size_t unsigned int
16661
18724
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16662
18725
# for constant arguments. Useless!
16663
18726
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16664
18727
$as_echo_n "checking for working alloca.h... " >&6; }
16665
if test "${ac_cv_working_alloca_h+set}" = set; then :
18728
if ${ac_cv_working_alloca_h+:} false; then :
16666
18729
$as_echo_n "(cached) " >&6
16668
18731
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17440
19506
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var_stdin_large_offset" >&5
17441
19507
$as_echo "$gl_cv_var_stdin_large_offset" >&6; }
19509
ac_fn_c_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "$ac_includes_default"
19510
if test "x$ac_cv_have_decl_fseeko" = xyes; then :
19516
cat >>confdefs.h <<_ACEOF
19517
#define HAVE_DECL_FSEEKO $ac_have_decl
19527
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5
19528
$as_echo_n "checking for fseeko... " >&6; }
19529
if ${gl_cv_func_fseeko+:} false; then :
19530
$as_echo_n "(cached) " >&6
19533
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19534
/* end confdefs.h. */
19540
fseeko (stdin, 0, 0);
19545
if ac_fn_c_try_link "$LINENO"; then :
19546
gl_cv_func_fseeko=yes
19548
gl_cv_func_fseeko=no
19550
rm -f core conftest.err conftest.$ac_objext \
19551
conftest$ac_exeext conftest.$ac_ext
19554
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fseeko" >&5
19555
$as_echo "$gl_cv_func_fseeko" >&6; }
19558
if test $ac_cv_have_decl_fseeko = no; then
19562
if test $gl_cv_func_fseeko = no; then
19565
if test $gl_cv_var_stdin_large_offset = no; then
19571
ac_fn_c_check_decl "$LINENO" "ftello" "ac_cv_have_decl_ftello" "$ac_includes_default"
19572
if test "x$ac_cv_have_decl_ftello" = xyes; then :
19578
cat >>confdefs.h <<_ACEOF
19579
#define HAVE_DECL_FTELLO $ac_have_decl
19590
if test $ac_cv_have_decl_ftello = no; then
19594
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
19595
$as_echo_n "checking for ftello... " >&6; }
19596
if ${gl_cv_func_ftello+:} false; then :
19597
$as_echo_n "(cached) " >&6
19600
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19601
/* end confdefs.h. */
19611
if ac_fn_c_try_link "$LINENO"; then :
19612
gl_cv_func_ftello=yes
19614
gl_cv_func_ftello=no
19616
rm -f core conftest.err conftest.$ac_objext \
19617
conftest$ac_exeext conftest.$ac_ext
19620
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
19621
$as_echo "$gl_cv_func_ftello" >&6; }
19622
if test $gl_cv_func_ftello = no; then
19625
if test $gl_cv_var_stdin_large_offset = no; then
19629
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
19630
$as_echo_n "checking whether ftello works... " >&6; }
19631
if ${gl_cv_func_ftello_works+:} false; then :
19632
$as_echo_n "(cached) " >&6
19636
# Guess no on Solaris.
19637
solaris*) gl_cv_func_ftello_works="guessing no" ;;
19638
# Guess yes otherwise.
19639
*) gl_cv_func_ftello_works="guessing yes" ;;
19641
if test "$cross_compiling" = yes; then :
19644
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19645
/* end confdefs.h. */
19648
#include <stdlib.h>
19649
#include <string.h>
19650
#define TESTFILE "conftest.tmp"
19656
/* Create a file with some contents. */
19657
fp = fopen (TESTFILE, "w");
19660
if (fwrite ("foogarsh", 1, 8, fp) < 8)
19665
/* The file's contents is now "foogarsh". */
19667
/* Try writing after reading to EOF. */
19668
fp = fopen (TESTFILE, "r+");
19671
if (fseek (fp, -1, SEEK_END))
19673
if (!(getc (fp) == 'h'))
19675
if (!(getc (fp) == EOF))
19677
if (!(ftell (fp) == 8))
19679
if (!(ftell (fp) == 8))
19681
if (!(putc ('!', fp) == '!'))
19683
if (!(ftell (fp) == 9))
19685
if (!(fclose (fp) == 0))
19687
fp = fopen (TESTFILE, "r");
19692
if (!(fread (buf, 1, 10, fp) == 9))
19694
if (!(memcmp (buf, "foogarsh!", 9) == 0))
19697
if (!(fclose (fp) == 0))
19700
/* The file's contents is now "foogarsh!". */
19705
if ac_fn_c_try_run "$LINENO"; then :
19706
gl_cv_func_ftello_works=yes
19708
gl_cv_func_ftello_works=no
19710
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19711
conftest.$ac_objext conftest.beam conftest.$ac_ext
19716
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
19717
$as_echo "$gl_cv_func_ftello_works" >&6; }
19718
case "$gl_cv_func_ftello_works" in
19723
$as_echo "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
17444
19731
GNULIB_CHOWN=0;
17445
19732
GNULIB_CLOSE=0;
17955
20343
HAVE_DECL_GAI_STRERROR=1;
17956
20344
HAVE_DECL_GETADDRINFO=1;
17957
20345
HAVE_DECL_GETNAMEINFO=1;
17962
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
17963
$as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
17964
if test "${gl_cv_func_malloc_posix+set}" = set; then :
20346
REPLACE_GAI_STRERROR=0;
20352
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
20353
$as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
20354
if ${gl_cv_func_snprintf_retval_c99+:} false; then :
17965
20355
$as_echo_n "(cached) " >&6
17968
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20358
if test "$cross_compiling" = yes; then :
20361
# Guess yes on glibc systems.
20362
*-gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";;
20363
# Guess yes on FreeBSD >= 5.
20364
freebsd[1-4]*) gl_cv_func_snprintf_retval_c99="guessing no";;
20365
freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
20366
# Guess yes on MacOS X >= 10.3.
20367
darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";;
20368
darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";;
20369
# Guess yes on OpenBSD >= 3.9.
20370
openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
20371
gl_cv_func_snprintf_retval_c99="guessing no";;
20372
openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
20373
# Guess yes on Solaris >= 2.10.
20374
solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
20375
solaris*) gl_cv_func_printf_sizes_c99="guessing no";;
20376
# Guess yes on AIX >= 4.
20377
aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";;
20378
aix*) gl_cv_func_snprintf_retval_c99="guessing yes";;
20379
# Guess yes on NetBSD >= 3.
20380
netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
20381
gl_cv_func_snprintf_retval_c99="guessing no";;
20382
netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
20383
# Guess yes on BeOS.
20384
beos*) gl_cv_func_snprintf_retval_c99="guessing yes";;
20385
# If we don't know, assume the worst.
20386
*) gl_cv_func_snprintf_retval_c99="guessing no";;
20390
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17969
20391
/* end confdefs.h. */
20394
#include <string.h>
20395
static char buf[100];
17974
#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
20398
strcpy (buf, "ABCDEF");
20399
if (snprintf (buf, 3, "%d %d", 4567, 89) != 7)
20401
if (snprintf (buf, 0, "%d %d", 4567, 89) != 7)
20403
if (snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
17982
if ac_fn_c_try_compile "$LINENO"; then :
17983
gl_cv_func_malloc_posix=yes
20408
if ac_fn_c_try_run "$LINENO"; then :
20409
gl_cv_func_snprintf_retval_c99=yes
17985
gl_cv_func_malloc_posix=no
17987
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17990
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
17991
$as_echo "$gl_cv_func_malloc_posix" >&6; }
17995
GNULIB_CALLOC_POSIX=0;
17996
GNULIB_CANONICALIZE_FILE_NAME=0;
17997
GNULIB_GETLOADAVG=0;
17998
GNULIB_GETSUBOPT=0;
18000
GNULIB_MALLOC_POSIX=0;
18003
GNULIB_MKOSTEMPS=0;
18009
GNULIB_REALLOC_POSIX=0;
18019
HAVE_CALLOC_POSIX=1;
18020
HAVE_CANONICALIZE_FILE_NAME=1;
18021
HAVE_DECL_GETLOADAVG=1;
18024
HAVE_MALLOC_POSIX=1;
18032
HAVE_REALLOC_POSIX=1;
18039
HAVE_STRUCT_RANDOM_DATA=1;
18040
HAVE_SYS_LOADAVG_H=0;
18043
REPLACE_CANONICALIZE_FILE_NAME=0;
18046
REPLACE_REALPATH=0;
18049
REPLACE_UNSETENV=0;
20411
gl_cv_func_snprintf_retval_c99=no
20413
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20414
conftest.$ac_objext conftest.beam conftest.$ac_ext
20419
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
20420
$as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
18051
20422
ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
18052
if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
20423
if test "x$ac_cv_have_decl_snprintf" = xyes; then :
18053
20424
ac_have_decl=1
18055
20426
ac_have_decl=0
18111
GNULIB_GETPEERNAME=0;
18112
GNULIB_GETSOCKNAME=0;
18113
GNULIB_GETSOCKOPT=0;
18119
GNULIB_SETSOCKOPT=0;
18122
HAVE_STRUCT_SOCKADDR_STORAGE=1;
18123
HAVE_SA_FAMILY_T=1;
18130
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
18131
$as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
18132
if test "${gl_cv_header_sys_socket_h_selfcontained+set}" = set; then :
18133
$as_echo_n "(cached) " >&6
18136
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18137
/* end confdefs.h. */
18138
#include <sys/socket.h>
18147
if ac_fn_c_try_compile "$LINENO"; then :
18148
gl_cv_header_sys_socket_h_selfcontained=yes
18150
gl_cv_header_sys_socket_h_selfcontained=no
18152
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18155
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
18156
$as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
18157
if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
18158
for ac_func in shutdown
18160
ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
18161
if test "x$ac_cv_func_shutdown" = x""yes; then :
18162
cat >>confdefs.h <<_ACEOF
18163
#define HAVE_SHUTDOWN 1
18169
if test $ac_cv_func_shutdown = yes; then
18170
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
18171
$as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
18172
if test "${gl_cv_header_sys_socket_h_shut+set}" = set; then :
18173
$as_echo_n "(cached) " >&6
18176
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18177
/* end confdefs.h. */
18178
#include <sys/socket.h>
18182
int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
18187
if ac_fn_c_try_compile "$LINENO"; then :
18188
gl_cv_header_sys_socket_h_shut=yes
18190
gl_cv_header_sys_socket_h_shut=no
18192
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18195
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
18196
$as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
18197
if test $gl_cv_header_sys_socket_h_shut = no; then
18198
SYS_SOCKET_H='sys/socket.h'
18202
# We need to check for ws2tcpip.h now.
18210
if test $gl_cv_have_include_next = yes; then
18211
gl_cv_next_sys_socket_h='<'sys/socket.h'>'
18213
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
18214
$as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
18215
if test "${gl_cv_next_sys_socket_h+set}" = set; then :
18216
$as_echo_n "(cached) " >&6
18219
if test $ac_cv_header_sys_socket_h = yes; then
18220
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18221
/* end confdefs.h. */
18222
#include <sys/socket.h>
18226
aix*) gl_absname_cpp="$ac_cpp -C" ;;
18227
*) gl_absname_cpp="$ac_cpp" ;;
18229
gl_cv_next_sys_socket_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18230
sed -n '\#/sys/socket.h#{
18231
s#.*"\(.*/sys/socket.h\)".*#\1#
18237
gl_cv_next_sys_socket_h='<'sys/socket.h'>'
18241
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
18242
$as_echo "$gl_cv_next_sys_socket_h" >&6; }
18244
NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
18246
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18247
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18248
gl_next_as_first_directive='<'sys/socket.h'>'
18250
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18251
gl_next_as_first_directive=$gl_cv_next_sys_socket_h
18253
NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
18257
if test $ac_cv_header_sys_socket_h = yes; then
18258
HAVE_SYS_SOCKET_H=1
18261
HAVE_SYS_SOCKET_H=0
18262
for ac_header in ws2tcpip.h
20478
if test $ac_cv_header_sys_socket_h = no; then
20479
for ac_header in ws2tcpip.h
18264
20481
ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
18265
if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
20482
if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
18266
20483
cat >>confdefs.h <<_ACEOF
18267
20484
#define HAVE_WS2TCPIP_H 1
18274
if test $ac_cv_header_ws2tcpip_h = yes; then
18283
ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
18284
/* sys/types.h is not needed according to POSIX, but the
18285
sys/socket.h in i386-unknown-freebsd4.10 and
18286
powerpc-apple-darwin5.5 required it. */
18287
#include <sys/types.h>
18288
#ifdef HAVE_SYS_SOCKET_H
18289
#include <sys/socket.h>
18291
#ifdef HAVE_WS2TCPIP_H
18292
#include <ws2tcpip.h>
18296
if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then :
18298
cat >>confdefs.h <<_ACEOF
18299
#define HAVE_STRUCT_SOCKADDR_STORAGE 1
18304
ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
18305
/* sys/types.h is not needed according to POSIX, but the
18306
sys/socket.h in i386-unknown-freebsd4.10 and
18307
powerpc-apple-darwin5.5 required it. */
18308
#include <sys/types.h>
18309
#ifdef HAVE_SYS_SOCKET_H
18310
#include <sys/socket.h>
18312
#ifdef HAVE_WS2TCPIP_H
18313
#include <ws2tcpip.h>
18317
if test "x$ac_cv_type_sa_family_t" = x""yes; then :
18319
cat >>confdefs.h <<_ACEOF
18320
#define HAVE_SA_FAMILY_T 1
18326
if test $ac_cv_type_struct_sockaddr_storage = no; then
18327
HAVE_STRUCT_SOCKADDR_STORAGE=0
18329
if test $ac_cv_type_sa_family_t = no; then
18336
if test $ac_cv_header_sys_socket_h != yes; then
18337
for ac_header in winsock2.h
18339
ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
18340
if test "x$ac_cv_header_winsock2_h" = x""yes; then :
18341
cat >>confdefs.h <<_ACEOF
18342
#define HAVE_WINSOCK2_H 1
18350
if test "$ac_cv_header_winsock2_h" = yes; then
18352
UNISTD_H_HAVE_WINSOCK2_H=1
18353
SYS_IOCTL_H_HAVE_WINSOCK2_H=1
18361
for gl_func in socket connect accept bind getpeername getsockname getsockopt listen recv send recvfrom sendto setsockopt shutdown accept4; do
18362
as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18363
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18364
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18365
if eval "test \"\${$as_gl_Symbol+set}\"" = set; then :
18366
$as_echo_n "(cached) " >&6
18368
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18369
/* end confdefs.h. */
18371
/* Some systems require prerequisite headers. */
18372
#include <sys/types.h>
18373
#if !defined __GLIBC__ && HAVE_SYS_TIME_H
18374
# include <sys/time.h>
18376
#include <sys/select.h>
18387
if ac_fn_c_try_compile "$LINENO"; then :
18388
eval "$as_gl_Symbol=yes"
18390
eval "$as_gl_Symbol=no"
18392
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18394
eval ac_res=\$$as_gl_Symbol
18395
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18396
$as_echo "$ac_res" >&6; }
18397
if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
18398
cat >>confdefs.h <<_ACEOF
18399
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18402
eval ac_cv_have_decl_$gl_func=yes
18407
20493
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
18408
20494
$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
18409
if test "${ac_cv_header_stdbool_h+set}" = set; then :
20495
if ${ac_cv_header_stdbool_h+:} false; then :
18410
20496
$as_echo_n "(cached) " >&6
18412
20498
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18413
20499
/* end confdefs.h. */
18415
#include <stdbool.h>
18417
"error: bool is not defined"
18420
"error: false is not defined"
18423
"error: false is not 0"
18426
"error: true is not defined"
18429
"error: true is not 1"
18431
#ifndef __bool_true_false_are_defined
18432
"error: __bool_true_false_are_defined is not defined"
18435
struct s { _Bool s: 1; _Bool t; } s;
18437
char a[true == 1 ? 1 : -1];
18438
char b[false == 0 ? 1 : -1];
18439
char c[__bool_true_false_are_defined == 1 ? 1 : -1];
18440
char d[(bool) 0.5 == true ? 1 : -1];
18442
char f[(_Bool) 0.0 == false ? 1 : -1];
18444
char h[sizeof (_Bool)];
18445
char i[sizeof s.t];
18446
enum { j = false, k = true, l = false * true, m = true * 256 };
18448
char o[sizeof n == m * sizeof n[0] ? 1 : -1];
18449
char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
18450
#if defined __xlc__ || defined __GNUC__
18451
/* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
18452
reported by James Lemley on 2005-10-05; see
18453
http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
18454
This test is not quite right, since xlc is allowed to
18455
reject this program, as the initializer for xlcbug is
18456
not one of the forms that C requires support for.
18457
However, doing the test right would require a run-time
18458
test, and that would make cross-compilation harder.
18459
Let us hope that IBM fixes the xlc bug, and also adds
18460
support for this kind of constant expression. In the
18461
meantime, this test will reject xlc, which is OK, since
18462
our stdbool.h substitute should suffice. We also test
18463
this with GCC, where it should work, to detect more
18464
quickly whether someone messes up the test in the
18466
char digs[] = "0123456789";
18467
int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
18469
/* Catch a bug in an HP-UX C compiler. See
18470
http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
18471
http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20501
#include <stdbool.h>
20503
"error: bool is not defined"
20506
"error: false is not defined"
20509
"error: false is not 0"
20512
"error: true is not defined"
20515
"error: true is not 1"
20517
#ifndef __bool_true_false_are_defined
20518
"error: __bool_true_false_are_defined is not defined"
20521
struct s { _Bool s: 1; _Bool t; } s;
20523
char a[true == 1 ? 1 : -1];
20524
char b[false == 0 ? 1 : -1];
20525
char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20526
char d[(bool) 0.5 == true ? 1 : -1];
20527
/* See body of main program for 'e'. */
20528
char f[(_Bool) 0.0 == false ? 1 : -1];
20530
char h[sizeof (_Bool)];
20531
char i[sizeof s.t];
20532
enum { j = false, k = true, l = false * true, m = true * 256 };
20533
/* The following fails for
20534
HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20536
char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20537
char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20538
/* Catch a bug in an HP-UX C compiler. See
20539
http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20540
http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
18482
/* Refer to every declared value, to avoid compiler optimizations. */
18483
return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
18484
+ !m + !n + !o + !p + !q + !pq);
20552
/* Refer to every declared value, to avoid compiler optimizations. */
20553
return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20554
+ !m + !n + !o + !p + !q + !pq);
18710
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C symbols are prefixed with underscore at the linker level" >&5
18711
$as_echo_n "checking whether C symbols are prefixed with underscore at the linker level... " >&6; }
18712
if test "${gl_cv_prog_as_underscore+set}" = set; then :
18713
$as_echo_n "(cached) " >&6
18715
cat > conftest.c <<EOF
18717
extern "C" int foo (void);
18719
int foo(void) { return 0; }
18721
# Look for the assembly language name in the .s file.
18722
{ ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S conftest.c'
18723
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18724
(eval $ac_try) 2>&5
18726
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18727
test $ac_status = 0; }; } >/dev/null 2>&1
18728
if grep _foo conftest.s >/dev/null ; then
18729
gl_cv_prog_as_underscore=yes
18731
gl_cv_prog_as_underscore=no
18736
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_as_underscore" >&5
18737
$as_echo "$gl_cv_prog_as_underscore" >&6; }
18738
if test $gl_cv_prog_as_underscore = yes; then
18739
USER_LABEL_PREFIX=_
18744
cat >>confdefs.h <<_ACEOF
18745
#define USER_LABEL_PREFIX $USER_LABEL_PREFIX
18748
ASM_SYMBOL_PREFIX='"'${USER_LABEL_PREFIX}'"'
20775
if test $ac_cv_type_long_long_int = yes; then
20776
HAVE_LONG_LONG_INT=1
20778
HAVE_LONG_LONG_INT=0
20782
if test $ac_cv_type_unsigned_long_long_int = yes; then
20783
HAVE_UNSIGNED_LONG_LONG_INT=1
20785
HAVE_UNSIGNED_LONG_LONG_INT=0
20790
if test $ac_cv_header_wchar_h = yes; then
20797
if test $ac_cv_header_inttypes_h = yes; then
20804
if test $ac_cv_header_sys_types_h = yes; then
20820
if test $gl_cv_have_include_next = yes; then
20821
gl_cv_next_stdint_h='<'stdint.h'>'
20823
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
20824
$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
20825
if ${gl_cv_next_stdint_h+:} false; then :
20826
$as_echo_n "(cached) " >&6
20829
if test $ac_cv_header_stdint_h = yes; then
20832
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20833
/* end confdefs.h. */
20834
#include <stdint.h>
20838
aix*) gl_absname_cpp="$ac_cpp -C" ;;
20839
*) gl_absname_cpp="$ac_cpp" ;;
20841
gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20842
sed -n '\#/stdint.h#{
20843
s#.*"\(.*/stdint.h\)".*#\1#
20849
gl_cv_next_stdint_h='<'stdint.h'>'
20854
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
20855
$as_echo "$gl_cv_next_stdint_h" >&6; }
20857
NEXT_STDINT_H=$gl_cv_next_stdint_h
20859
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20860
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20861
gl_next_as_first_directive='<'stdint.h'>'
20863
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20864
gl_next_as_first_directive=$gl_cv_next_stdint_h
20866
NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
20871
if test $ac_cv_header_stdint_h = yes; then
20878
if test $ac_cv_header_stdint_h = yes; then
20879
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
20880
$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
20881
if ${gl_cv_header_working_stdint_h+:} false; then :
20882
$as_echo_n "(cached) " >&6
20884
gl_cv_header_working_stdint_h=no
20885
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20886
/* end confdefs.h. */
20889
#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
20890
#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
20891
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
20892
#include <stdint.h>
20893
/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
20894
#if !(defined WCHAR_MIN && defined WCHAR_MAX)
20895
#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
20899
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20900
included before <wchar.h>. */
20901
#include <stddef.h>
20902
#include <signal.h>
20904
# include <stdio.h>
20906
# include <wchar.h>
20911
int8_t a1 = INT8_MAX;
20912
int8_t a1min = INT8_MIN;
20915
int16_t a2 = INT16_MAX;
20916
int16_t a2min = INT16_MIN;
20919
int32_t a3 = INT32_MAX;
20920
int32_t a3min = INT32_MIN;
20923
int64_t a4 = INT64_MAX;
20924
int64_t a4min = INT64_MIN;
20927
uint8_t b1 = UINT8_MAX;
20929
typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
20932
uint16_t b2 = UINT16_MAX;
20935
uint32_t b3 = UINT32_MAX;
20938
uint64_t b4 = UINT64_MAX;
20940
int_least8_t c1 = INT8_C (0x7f);
20941
int_least8_t c1max = INT_LEAST8_MAX;
20942
int_least8_t c1min = INT_LEAST8_MIN;
20943
int_least16_t c2 = INT16_C (0x7fff);
20944
int_least16_t c2max = INT_LEAST16_MAX;
20945
int_least16_t c2min = INT_LEAST16_MIN;
20946
int_least32_t c3 = INT32_C (0x7fffffff);
20947
int_least32_t c3max = INT_LEAST32_MAX;
20948
int_least32_t c3min = INT_LEAST32_MIN;
20949
int_least64_t c4 = INT64_C (0x7fffffffffffffff);
20950
int_least64_t c4max = INT_LEAST64_MAX;
20951
int_least64_t c4min = INT_LEAST64_MIN;
20952
uint_least8_t d1 = UINT8_C (0xff);
20953
uint_least8_t d1max = UINT_LEAST8_MAX;
20954
uint_least16_t d2 = UINT16_C (0xffff);
20955
uint_least16_t d2max = UINT_LEAST16_MAX;
20956
uint_least32_t d3 = UINT32_C (0xffffffff);
20957
uint_least32_t d3max = UINT_LEAST32_MAX;
20958
uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
20959
uint_least64_t d4max = UINT_LEAST64_MAX;
20960
int_fast8_t e1 = INT_FAST8_MAX;
20961
int_fast8_t e1min = INT_FAST8_MIN;
20962
int_fast16_t e2 = INT_FAST16_MAX;
20963
int_fast16_t e2min = INT_FAST16_MIN;
20964
int_fast32_t e3 = INT_FAST32_MAX;
20965
int_fast32_t e3min = INT_FAST32_MIN;
20966
int_fast64_t e4 = INT_FAST64_MAX;
20967
int_fast64_t e4min = INT_FAST64_MIN;
20968
uint_fast8_t f1 = UINT_FAST8_MAX;
20969
uint_fast16_t f2 = UINT_FAST16_MAX;
20970
uint_fast32_t f3 = UINT_FAST32_MAX;
20971
uint_fast64_t f4 = UINT_FAST64_MAX;
20973
intptr_t g = INTPTR_MAX;
20974
intptr_t gmin = INTPTR_MIN;
20977
uintptr_t h = UINTPTR_MAX;
20979
intmax_t i = INTMAX_MAX;
20980
uintmax_t j = UINTMAX_MAX;
20982
#include <limits.h> /* for CHAR_BIT */
20983
#define TYPE_MINIMUM(t) \
20984
((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
20985
#define TYPE_MAXIMUM(t) \
20986
((t) ((t) 0 < (t) -1 \
20988
: ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
20991
PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
20992
&& PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
20994
/* Detect bug in FreeBSD 6.0 / ia64. */
20995
int check_SIG_ATOMIC:
20996
SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
20997
&& SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
20999
int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
21001
WCHAR_MIN == TYPE_MINIMUM (wchar_t)
21002
&& WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
21004
/* Detect bug in mingw. */
21006
WINT_MIN == TYPE_MINIMUM (wint_t)
21007
&& WINT_MAX == TYPE_MAXIMUM (wint_t)
21010
/* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
21012
(-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
21013
int check_UINT16_C:
21014
(-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
21016
/* Detect bugs in OpenBSD 3.9 stdint.h. */
21018
int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
21021
int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
21024
int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
21027
int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
21029
int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
21030
int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
21031
int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
21032
int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
21033
int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
21034
int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
21035
int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
21036
int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
21037
int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
21038
int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
21039
int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
21050
if ac_fn_c_try_compile "$LINENO"; then :
21051
if test "$cross_compiling" = yes; then :
21052
gl_cv_header_working_stdint_h=yes
21055
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21056
/* end confdefs.h. */
21059
#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
21060
#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
21061
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
21062
#include <stdint.h>
21065
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21066
included before <wchar.h>. */
21067
#include <stddef.h>
21068
#include <signal.h>
21070
# include <stdio.h>
21072
# include <wchar.h>
21077
#include <string.h>
21078
#define MVAL(macro) MVAL1(macro)
21079
#define MVAL1(expression) #expression
21080
static const char *macro_values[] =
21114
for (mv = macro_values; *mv != NULL; mv++)
21116
const char *value = *mv;
21117
/* Test whether it looks like a cast expression. */
21118
if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
21119
|| strncmp (value, "((unsigned short)"/*)*/, 17) == 0
21120
|| strncmp (value, "((unsigned char)"/*)*/, 16) == 0
21121
|| strncmp (value, "((int)"/*)*/, 6) == 0
21122
|| strncmp (value, "((signed short)"/*)*/, 15) == 0
21123
|| strncmp (value, "((signed char)"/*)*/, 14) == 0)
21124
return mv - macro_values + 1;
21132
if ac_fn_c_try_run "$LINENO"; then :
21133
gl_cv_header_working_stdint_h=yes
21135
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21136
conftest.$ac_objext conftest.beam conftest.$ac_ext
21141
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21144
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
21145
$as_echo "$gl_cv_header_working_stdint_h" >&6; }
21147
if test "$gl_cv_header_working_stdint_h" = yes; then
21150
for ac_header in sys/inttypes.h sys/bitypes.h
21152
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21153
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21154
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21155
cat >>confdefs.h <<_ACEOF
21156
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21163
if test $ac_cv_header_sys_inttypes_h = yes; then
21164
HAVE_SYS_INTTYPES_H=1
21166
HAVE_SYS_INTTYPES_H=0
21169
if test $ac_cv_header_sys_bitypes_h = yes; then
21170
HAVE_SYS_BITYPES_H=1
21172
HAVE_SYS_BITYPES_H=0
21178
if test $APPLE_UNIVERSAL_BUILD = 0; then
21181
for gltype in ptrdiff_t size_t ; do
21182
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
21183
$as_echo_n "checking for bit size of $gltype... " >&6; }
21184
if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
21185
$as_echo_n "(cached) " >&6
21187
if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
21188
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21189
included before <wchar.h>. */
21190
#include <stddef.h>
21191
#include <signal.h>
21193
# include <stdio.h>
21195
# include <wchar.h>
21198
#include <limits.h>"; then :
21204
eval gl_cv_bitsizeof_${gltype}=\$result
21207
eval ac_res=\$gl_cv_bitsizeof_${gltype}
21208
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21209
$as_echo "$ac_res" >&6; }
21210
eval result=\$gl_cv_bitsizeof_${gltype}
21211
if test $result = unknown; then
21214
GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21215
cat >>confdefs.h <<_ACEOF
21216
#define BITSIZEOF_${GLTYPE} $result
21219
eval BITSIZEOF_${GLTYPE}=\$result
21226
for gltype in sig_atomic_t wchar_t wint_t ; do
21227
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
21228
$as_echo_n "checking for bit size of $gltype... " >&6; }
21229
if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
21230
$as_echo_n "(cached) " >&6
21232
if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
21233
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21234
included before <wchar.h>. */
21235
#include <stddef.h>
21236
#include <signal.h>
21238
# include <stdio.h>
21240
# include <wchar.h>
21243
#include <limits.h>"; then :
21249
eval gl_cv_bitsizeof_${gltype}=\$result
21252
eval ac_res=\$gl_cv_bitsizeof_${gltype}
21253
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21254
$as_echo "$ac_res" >&6; }
21255
eval result=\$gl_cv_bitsizeof_${gltype}
21256
if test $result = unknown; then
21259
GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21260
cat >>confdefs.h <<_ACEOF
21261
#define BITSIZEOF_${GLTYPE} $result
21264
eval BITSIZEOF_${GLTYPE}=\$result
21270
for gltype in sig_atomic_t wchar_t wint_t ; do
21271
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
21272
$as_echo_n "checking whether $gltype is signed... " >&6; }
21273
if eval \${gl_cv_type_${gltype}_signed+:} false; then :
21274
$as_echo_n "(cached) " >&6
21276
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21277
/* end confdefs.h. */
21279
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21280
included before <wchar.h>. */
21281
#include <stddef.h>
21282
#include <signal.h>
21284
# include <stdio.h>
21286
# include <wchar.h>
21289
int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
21298
if ac_fn_c_try_compile "$LINENO"; then :
21303
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21304
eval gl_cv_type_${gltype}_signed=\$result
21307
eval ac_res=\$gl_cv_type_${gltype}_signed
21308
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21309
$as_echo "$ac_res" >&6; }
21310
eval result=\$gl_cv_type_${gltype}_signed
21311
GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21312
if test "$result" = yes; then
21313
cat >>confdefs.h <<_ACEOF
21314
#define HAVE_SIGNED_${GLTYPE} 1
21317
eval HAVE_SIGNED_${GLTYPE}=1
21319
eval HAVE_SIGNED_${GLTYPE}=0
21324
gl_cv_type_ptrdiff_t_signed=yes
21325
gl_cv_type_size_t_signed=no
21326
if test $APPLE_UNIVERSAL_BUILD = 0; then
21329
for gltype in ptrdiff_t size_t ; do
21330
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
21331
$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
21332
if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
21333
$as_echo_n "(cached) " >&6
21335
eval gl_cv_type_${gltype}_suffix=no
21336
eval result=\$gl_cv_type_${gltype}_signed
21337
if test "$result" = yes; then
21342
for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
21344
'') gltype1='int';;
21345
l) gltype1='long int';;
21346
ll) gltype1='long long int';;
21347
i64) gltype1='__int64';;
21348
u) gltype1='unsigned int';;
21349
ul) gltype1='unsigned long int';;
21350
ull) gltype1='unsigned long long int';;
21351
ui64)gltype1='unsigned __int64';;
21353
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21354
/* end confdefs.h. */
21356
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21357
included before <wchar.h>. */
21358
#include <stddef.h>
21359
#include <signal.h>
21361
# include <stdio.h>
21363
# include <wchar.h>
21366
extern $gltype foo;
21367
extern $gltype1 foo;
21376
if ac_fn_c_try_compile "$LINENO"; then :
21377
eval gl_cv_type_${gltype}_suffix=\$glsuf
21379
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21380
eval result=\$gl_cv_type_${gltype}_suffix
21381
test "$result" != no && break
21384
eval ac_res=\$gl_cv_type_${gltype}_suffix
21385
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21386
$as_echo "$ac_res" >&6; }
21387
GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21388
eval result=\$gl_cv_type_${gltype}_suffix
21389
test "$result" = no && result=
21390
eval ${GLTYPE}_SUFFIX=\$result
21391
cat >>confdefs.h <<_ACEOF
21392
#define ${GLTYPE}_SUFFIX $result
21401
for gltype in sig_atomic_t wchar_t wint_t ; do
21402
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
21403
$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
21404
if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
21405
$as_echo_n "(cached) " >&6
21407
eval gl_cv_type_${gltype}_suffix=no
21408
eval result=\$gl_cv_type_${gltype}_signed
21409
if test "$result" = yes; then
21414
for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
21416
'') gltype1='int';;
21417
l) gltype1='long int';;
21418
ll) gltype1='long long int';;
21419
i64) gltype1='__int64';;
21420
u) gltype1='unsigned int';;
21421
ul) gltype1='unsigned long int';;
21422
ull) gltype1='unsigned long long int';;
21423
ui64)gltype1='unsigned __int64';;
21425
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21426
/* end confdefs.h. */
21428
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21429
included before <wchar.h>. */
21430
#include <stddef.h>
21431
#include <signal.h>
21433
# include <stdio.h>
21435
# include <wchar.h>
21438
extern $gltype foo;
21439
extern $gltype1 foo;
21448
if ac_fn_c_try_compile "$LINENO"; then :
21449
eval gl_cv_type_${gltype}_suffix=\$glsuf
21451
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21452
eval result=\$gl_cv_type_${gltype}_suffix
21453
test "$result" != no && break
21456
eval ac_res=\$gl_cv_type_${gltype}_suffix
21457
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21458
$as_echo "$ac_res" >&6; }
21459
GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21460
eval result=\$gl_cv_type_${gltype}_suffix
21461
test "$result" = no && result=
21462
eval ${GLTYPE}_SUFFIX=\$result
21463
cat >>confdefs.h <<_ACEOF
21464
#define ${GLTYPE}_SUFFIX $result
21474
if test -n "$STDINT_H"; then
21475
GL_GENERATE_STDINT_H_TRUE=
21476
GL_GENERATE_STDINT_H_FALSE='#'
21478
GL_GENERATE_STDINT_H_TRUE='#'
21479
GL_GENERATE_STDINT_H_FALSE=
18757
21487
HAVE_DECL_STRNCASECMP=1;
18759
21489
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
18760
21490
$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
18761
if test "${ac_cv_c_restrict+set}" = set; then :
21491
if ${ac_cv_c_restrict+:} false; then :
18762
21492
$as_echo_n "(cached) " >&6
18764
21494
ac_cv_c_restrict=no
22629
GNULIB_STRTOIMAX=0;
22630
GNULIB_STRTOUMAX=0;
22631
HAVE_DECL_IMAXABS=1;
22632
HAVE_DECL_IMAXDIV=1;
22633
HAVE_DECL_STRTOIMAX=1;
22634
HAVE_DECL_STRTOUMAX=1;
22635
INT32_MAX_LT_INTMAX_MAX=1;
22636
INT64_MAX_EQ_LONG_MAX='defined _LP64';
22637
PRI_MACROS_BROKEN=0;
22638
PRIPTR_PREFIX=__PRIPTR_PREFIX;
22639
UINT32_MAX_LT_UINTMAX_MAX=1;
22640
UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
22656
if test $gl_cv_have_include_next = yes; then
22657
gl_cv_next_inttypes_h='<'inttypes.h'>'
22659
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
22660
$as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
22661
if ${gl_cv_next_inttypes_h+:} false; then :
22662
$as_echo_n "(cached) " >&6
22665
if test $ac_cv_header_inttypes_h = yes; then
22668
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22669
/* end confdefs.h. */
22670
#include <inttypes.h>
22674
aix*) gl_absname_cpp="$ac_cpp -C" ;;
22675
*) gl_absname_cpp="$ac_cpp" ;;
22677
gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22678
sed -n '\#/inttypes.h#{
22679
s#.*"\(.*/inttypes.h\)".*#\1#
22685
gl_cv_next_inttypes_h='<'inttypes.h'>'
22690
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
22691
$as_echo "$gl_cv_next_inttypes_h" >&6; }
22693
NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
22695
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22696
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22697
gl_next_as_first_directive='<'inttypes.h'>'
22699
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22700
gl_next_as_first_directive=$gl_cv_next_inttypes_h
22702
NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
22711
$as_echo "#define GL_TRIGGER_STDC_LIMIT_MACROS 1" >>confdefs.h
22716
for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
22717
as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22718
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22719
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22720
if eval \${$as_gl_Symbol+:} false; then :
22721
$as_echo_n "(cached) " >&6
22723
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22724
/* end confdefs.h. */
22725
#include <inttypes.h>
22736
if ac_fn_c_try_compile "$LINENO"; then :
22737
eval "$as_gl_Symbol=yes"
22739
eval "$as_gl_Symbol=no"
22741
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22743
eval ac_res=\$$as_gl_Symbol
22744
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22745
$as_echo "$ac_res" >&6; }
22746
if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
22747
cat >>confdefs.h <<_ACEOF
22748
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22751
eval ac_cv_have_decl_$gl_func=yes
22757
for ac_header in inttypes.h
22759
ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
22760
if test "x$ac_cv_header_inttypes_h" = xyes; then :
22761
cat >>confdefs.h <<_ACEOF
22762
#define HAVE_INTTYPES_H 1
22769
if test $ac_cv_header_inttypes_h = yes; then
22770
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
22771
$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
22772
if ${gt_cv_inttypes_pri_broken+:} false; then :
22773
$as_echo_n "(cached) " >&6
22776
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22777
/* end confdefs.h. */
22778
#include <inttypes.h>
22791
if ac_fn_c_try_compile "$LINENO"; then :
22792
gt_cv_inttypes_pri_broken=no
22794
gt_cv_inttypes_pri_broken=yes
22796
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22799
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
22800
$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
22802
if test "$gt_cv_inttypes_pri_broken" = yes; then
22804
cat >>confdefs.h <<_ACEOF
22805
#define PRI_MACROS_BROKEN 1
22808
PRI_MACROS_BROKEN=1
22810
PRI_MACROS_BROKEN=0
19715
22817
if true; then
19716
22818
GL_COND_LIBTOOL_TRUE=
19717
22819
GL_COND_LIBTOOL_FALSE='#'
20936
# Code from module stdint:
20940
if test $ac_cv_type_long_long_int = yes; then
20941
HAVE_LONG_LONG_INT=1
20943
HAVE_LONG_LONG_INT=0
20947
if test $ac_cv_type_unsigned_long_long_int = yes; then
20948
HAVE_UNSIGNED_LONG_LONG_INT=1
20950
HAVE_UNSIGNED_LONG_LONG_INT=0
20954
if test $ac_cv_header_inttypes_h = yes; then
20961
if test $ac_cv_header_sys_types_h = yes; then
20974
if test $gl_cv_have_include_next = yes; then
20975
gl_cv_next_stdint_h='<'stdint.h'>'
20977
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
20978
$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
20979
if test "${gl_cv_next_stdint_h+set}" = set; then :
20980
$as_echo_n "(cached) " >&6
20983
if test $ac_cv_header_stdint_h = yes; then
20984
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20985
/* end confdefs.h. */
20986
#include <stdint.h>
20990
aix*) gl_absname_cpp="$ac_cpp -C" ;;
20991
*) gl_absname_cpp="$ac_cpp" ;;
20993
gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20994
sed -n '\#/stdint.h#{
20995
s#.*"\(.*/stdint.h\)".*#\1#
21001
gl_cv_next_stdint_h='<'stdint.h'>'
21005
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
21006
$as_echo "$gl_cv_next_stdint_h" >&6; }
21008
NEXT_STDINT_H=$gl_cv_next_stdint_h
21010
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21011
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21012
gl_next_as_first_directive='<'stdint.h'>'
21014
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21015
gl_next_as_first_directive=$gl_cv_next_stdint_h
21017
NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
21021
if test $ac_cv_header_stdint_h = yes; then
21028
if test $ac_cv_header_stdint_h = yes; then
21029
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
21030
$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
21031
if test "${gl_cv_header_working_stdint_h+set}" = set; then :
21032
$as_echo_n "(cached) " >&6
21034
gl_cv_header_working_stdint_h=no
21035
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21036
/* end confdefs.h. */
21039
#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
21040
#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
21041
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
21042
#include <stdint.h>
21043
/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
21044
#if !(defined WCHAR_MIN && defined WCHAR_MAX)
21045
#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
21049
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21050
included before <wchar.h>. */
21051
#include <stddef.h>
21052
#include <signal.h>
21054
# include <stdio.h>
21056
# include <wchar.h>
21061
int8_t a1 = INT8_MAX;
21062
int8_t a1min = INT8_MIN;
21065
int16_t a2 = INT16_MAX;
21066
int16_t a2min = INT16_MIN;
21069
int32_t a3 = INT32_MAX;
21070
int32_t a3min = INT32_MIN;
21073
int64_t a4 = INT64_MAX;
21074
int64_t a4min = INT64_MIN;
21077
uint8_t b1 = UINT8_MAX;
21079
typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
21082
uint16_t b2 = UINT16_MAX;
21085
uint32_t b3 = UINT32_MAX;
21088
uint64_t b4 = UINT64_MAX;
21090
int_least8_t c1 = INT8_C (0x7f);
21091
int_least8_t c1max = INT_LEAST8_MAX;
21092
int_least8_t c1min = INT_LEAST8_MIN;
21093
int_least16_t c2 = INT16_C (0x7fff);
21094
int_least16_t c2max = INT_LEAST16_MAX;
21095
int_least16_t c2min = INT_LEAST16_MIN;
21096
int_least32_t c3 = INT32_C (0x7fffffff);
21097
int_least32_t c3max = INT_LEAST32_MAX;
21098
int_least32_t c3min = INT_LEAST32_MIN;
21099
int_least64_t c4 = INT64_C (0x7fffffffffffffff);
21100
int_least64_t c4max = INT_LEAST64_MAX;
21101
int_least64_t c4min = INT_LEAST64_MIN;
21102
uint_least8_t d1 = UINT8_C (0xff);
21103
uint_least8_t d1max = UINT_LEAST8_MAX;
21104
uint_least16_t d2 = UINT16_C (0xffff);
21105
uint_least16_t d2max = UINT_LEAST16_MAX;
21106
uint_least32_t d3 = UINT32_C (0xffffffff);
21107
uint_least32_t d3max = UINT_LEAST32_MAX;
21108
uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
21109
uint_least64_t d4max = UINT_LEAST64_MAX;
21110
int_fast8_t e1 = INT_FAST8_MAX;
21111
int_fast8_t e1min = INT_FAST8_MIN;
21112
int_fast16_t e2 = INT_FAST16_MAX;
21113
int_fast16_t e2min = INT_FAST16_MIN;
21114
int_fast32_t e3 = INT_FAST32_MAX;
21115
int_fast32_t e3min = INT_FAST32_MIN;
21116
int_fast64_t e4 = INT_FAST64_MAX;
21117
int_fast64_t e4min = INT_FAST64_MIN;
21118
uint_fast8_t f1 = UINT_FAST8_MAX;
21119
uint_fast16_t f2 = UINT_FAST16_MAX;
21120
uint_fast32_t f3 = UINT_FAST32_MAX;
21121
uint_fast64_t f4 = UINT_FAST64_MAX;
21123
intptr_t g = INTPTR_MAX;
21124
intptr_t gmin = INTPTR_MIN;
21127
uintptr_t h = UINTPTR_MAX;
21129
intmax_t i = INTMAX_MAX;
21130
uintmax_t j = UINTMAX_MAX;
21132
#include <limits.h> /* for CHAR_BIT */
21133
#define TYPE_MINIMUM(t) \
21134
((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
21135
#define TYPE_MAXIMUM(t) \
21136
((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
21139
PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
21140
&& PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
21142
/* Detect bug in FreeBSD 6.0 / ia64. */
21143
int check_SIG_ATOMIC:
21144
SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
21145
&& SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
21147
int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
21149
WCHAR_MIN == TYPE_MINIMUM (wchar_t)
21150
&& WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
21152
/* Detect bug in mingw. */
21154
WINT_MIN == TYPE_MINIMUM (wint_t)
21155
&& WINT_MAX == TYPE_MAXIMUM (wint_t)
21158
/* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
21160
(-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
21161
int check_UINT16_C:
21162
(-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
21164
/* Detect bugs in OpenBSD 3.9 stdint.h. */
21166
int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
21169
int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
21172
int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
21175
int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
21177
int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
21178
int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
21179
int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
21180
int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
21181
int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
21182
int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
21183
int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
21184
int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
21185
int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
21186
int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
21187
int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
21198
if ac_fn_c_try_compile "$LINENO"; then :
21199
if test "$cross_compiling" = yes; then :
21200
gl_cv_header_working_stdint_h=yes
21203
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21204
/* end confdefs.h. */
21207
#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
21208
#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
21209
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
21210
#include <stdint.h>
21213
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21214
included before <wchar.h>. */
21215
#include <stddef.h>
21216
#include <signal.h>
21218
# include <stdio.h>
21220
# include <wchar.h>
21225
#include <string.h>
21226
#define MVAL(macro) MVAL1(macro)
21227
#define MVAL1(expression) #expression
21228
static const char *macro_values[] =
21262
for (mv = macro_values; *mv != NULL; mv++)
21264
const char *value = *mv;
21265
/* Test whether it looks like a cast expression. */
21266
if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
21267
|| strncmp (value, "((unsigned short)"/*)*/, 17) == 0
21268
|| strncmp (value, "((unsigned char)"/*)*/, 16) == 0
21269
|| strncmp (value, "((int)"/*)*/, 6) == 0
21270
|| strncmp (value, "((signed short)"/*)*/, 15) == 0
21271
|| strncmp (value, "((signed char)"/*)*/, 14) == 0)
21280
if ac_fn_c_try_run "$LINENO"; then :
21281
gl_cv_header_working_stdint_h=yes
21283
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21284
conftest.$ac_objext conftest.beam conftest.$ac_ext
21289
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21292
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
21293
$as_echo "$gl_cv_header_working_stdint_h" >&6; }
21295
if test "$gl_cv_header_working_stdint_h" = yes; then
21298
for ac_header in sys/inttypes.h sys/bitypes.h
21300
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21301
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21302
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21303
cat >>confdefs.h <<_ACEOF
21304
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21311
if test $ac_cv_header_sys_inttypes_h = yes; then
21312
HAVE_SYS_INTTYPES_H=1
21314
HAVE_SYS_INTTYPES_H=0
21317
if test $ac_cv_header_sys_bitypes_h = yes; then
21318
HAVE_SYS_BITYPES_H=1
21320
HAVE_SYS_BITYPES_H=0
21328
if test $APPLE_UNIVERSAL_BUILD = 0; then
21331
for gltype in ptrdiff_t size_t ; do
21332
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
21333
$as_echo_n "checking for bit size of $gltype... " >&6; }
21334
if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\"" = set; then :
21335
$as_echo_n "(cached) " >&6
21337
if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
21338
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21339
included before <wchar.h>. */
21340
#include <stddef.h>
21341
#include <signal.h>
21343
# include <stdio.h>
21345
# include <wchar.h>
21348
#include <limits.h>"; then :
21354
eval gl_cv_bitsizeof_${gltype}=\$result
21357
eval ac_res=\$gl_cv_bitsizeof_${gltype}
21358
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21359
$as_echo "$ac_res" >&6; }
21360
eval result=\$gl_cv_bitsizeof_${gltype}
21361
if test $result = unknown; then
21364
GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21365
cat >>confdefs.h <<_ACEOF
21366
#define BITSIZEOF_${GLTYPE} $result
21369
eval BITSIZEOF_${GLTYPE}=\$result
21376
for gltype in sig_atomic_t wchar_t wint_t ; do
21377
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
21378
$as_echo_n "checking for bit size of $gltype... " >&6; }
21379
if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\"" = set; then :
21380
$as_echo_n "(cached) " >&6
21382
if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
21383
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21384
included before <wchar.h>. */
21385
#include <stddef.h>
21386
#include <signal.h>
21388
# include <stdio.h>
21390
# include <wchar.h>
21393
#include <limits.h>"; then :
21399
eval gl_cv_bitsizeof_${gltype}=\$result
21402
eval ac_res=\$gl_cv_bitsizeof_${gltype}
21403
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21404
$as_echo "$ac_res" >&6; }
21405
eval result=\$gl_cv_bitsizeof_${gltype}
21406
if test $result = unknown; then
21409
GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21410
cat >>confdefs.h <<_ACEOF
21411
#define BITSIZEOF_${GLTYPE} $result
21414
eval BITSIZEOF_${GLTYPE}=\$result
21420
for gltype in sig_atomic_t wchar_t wint_t ; do
21421
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
21422
$as_echo_n "checking whether $gltype is signed... " >&6; }
21423
if eval "test \"\${gl_cv_type_${gltype}_signed+set}\"" = set; then :
21424
$as_echo_n "(cached) " >&6
21426
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21427
/* end confdefs.h. */
21429
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21430
included before <wchar.h>. */
21431
#include <stddef.h>
21432
#include <signal.h>
21434
# include <stdio.h>
21436
# include <wchar.h>
21439
int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
21448
if ac_fn_c_try_compile "$LINENO"; then :
21453
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21454
eval gl_cv_type_${gltype}_signed=\$result
21457
eval ac_res=\$gl_cv_type_${gltype}_signed
21458
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21459
$as_echo "$ac_res" >&6; }
21460
eval result=\$gl_cv_type_${gltype}_signed
21461
GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21462
if test "$result" = yes; then
21463
cat >>confdefs.h <<_ACEOF
21464
#define HAVE_SIGNED_${GLTYPE} 1
21467
eval HAVE_SIGNED_${GLTYPE}=1
21469
eval HAVE_SIGNED_${GLTYPE}=0
21474
gl_cv_type_ptrdiff_t_signed=yes
21475
gl_cv_type_size_t_signed=no
21476
if test $APPLE_UNIVERSAL_BUILD = 0; then
21479
for gltype in ptrdiff_t size_t ; do
21480
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
21481
$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
21482
if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\"" = set; then :
21483
$as_echo_n "(cached) " >&6
21485
eval gl_cv_type_${gltype}_suffix=no
21486
eval result=\$gl_cv_type_${gltype}_signed
21487
if test "$result" = yes; then
21492
for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
21494
'') gltype1='int';;
21495
l) gltype1='long int';;
21496
ll) gltype1='long long int';;
21497
i64) gltype1='__int64';;
21498
u) gltype1='unsigned int';;
21499
ul) gltype1='unsigned long int';;
21500
ull) gltype1='unsigned long long int';;
21501
ui64)gltype1='unsigned __int64';;
21503
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21504
/* end confdefs.h. */
21506
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21507
included before <wchar.h>. */
21508
#include <stddef.h>
21509
#include <signal.h>
21511
# include <stdio.h>
21513
# include <wchar.h>
21516
extern $gltype foo;
21517
extern $gltype1 foo;
21526
if ac_fn_c_try_compile "$LINENO"; then :
21527
eval gl_cv_type_${gltype}_suffix=\$glsuf
21529
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21530
eval result=\$gl_cv_type_${gltype}_suffix
21531
test "$result" != no && break
21534
eval ac_res=\$gl_cv_type_${gltype}_suffix
21535
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21536
$as_echo "$ac_res" >&6; }
21537
GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21538
eval result=\$gl_cv_type_${gltype}_suffix
21539
test "$result" = no && result=
21540
eval ${GLTYPE}_SUFFIX=\$result
21541
cat >>confdefs.h <<_ACEOF
21542
#define ${GLTYPE}_SUFFIX $result
21551
for gltype in sig_atomic_t wchar_t wint_t ; do
21552
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
21553
$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
21554
if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\"" = set; then :
21555
$as_echo_n "(cached) " >&6
21557
eval gl_cv_type_${gltype}_suffix=no
21558
eval result=\$gl_cv_type_${gltype}_signed
21559
if test "$result" = yes; then
21564
for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
21566
'') gltype1='int';;
21567
l) gltype1='long int';;
21568
ll) gltype1='long long int';;
21569
i64) gltype1='__int64';;
21570
u) gltype1='unsigned int';;
21571
ul) gltype1='unsigned long int';;
21572
ull) gltype1='unsigned long long int';;
21573
ui64)gltype1='unsigned __int64';;
21575
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21576
/* end confdefs.h. */
21578
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21579
included before <wchar.h>. */
21580
#include <stddef.h>
21581
#include <signal.h>
21583
# include <stdio.h>
21585
# include <wchar.h>
21588
extern $gltype foo;
21589
extern $gltype1 foo;
21598
if ac_fn_c_try_compile "$LINENO"; then :
21599
eval gl_cv_type_${gltype}_suffix=\$glsuf
21601
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21602
eval result=\$gl_cv_type_${gltype}_suffix
21603
test "$result" != no && break
21606
eval ac_res=\$gl_cv_type_${gltype}_suffix
21607
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21608
$as_echo "$ac_res" >&6; }
21609
GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21610
eval result=\$gl_cv_type_${gltype}_suffix
21611
test "$result" = no && result=
21612
eval ${GLTYPE}_SUFFIX=\$result
21613
cat >>confdefs.h <<_ACEOF
21614
#define ${GLTYPE}_SUFFIX $result
21625
# Code from module stdio:
26157
if test $gl_cv_have_include_next = yes; then
26158
gl_cv_next_fcntl_h='<'fcntl.h'>'
26160
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
26161
$as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
26162
if ${gl_cv_next_fcntl_h+:} false; then :
26163
$as_echo_n "(cached) " >&6
26166
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26167
/* end confdefs.h. */
26172
aix*) gl_absname_cpp="$ac_cpp -C" ;;
26173
*) gl_absname_cpp="$ac_cpp" ;;
26175
gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26176
sed -n '\#/fcntl.h#{
26177
s#.*"\(.*/fcntl.h\)".*#\1#
26185
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
26186
$as_echo "$gl_cv_next_fcntl_h" >&6; }
26188
NEXT_FCNTL_H=$gl_cv_next_fcntl_h
26190
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26191
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26192
gl_next_as_first_directive='<'fcntl.h'>'
26194
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26195
gl_next_as_first_directive=$gl_cv_next_fcntl_h
26197
NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
26204
for gl_func in fcntl openat; do
26205
as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
26206
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
26207
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
26208
if eval \${$as_gl_Symbol+:} false; then :
26209
$as_echo_n "(cached) " >&6
26211
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26212
/* end confdefs.h. */
26224
if ac_fn_c_try_compile "$LINENO"; then :
26225
eval "$as_gl_Symbol=yes"
26227
eval "$as_gl_Symbol=no"
26229
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26231
eval ac_res=\$$as_gl_Symbol
26232
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26233
$as_echo "$ac_res" >&6; }
26234
if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
26235
cat >>confdefs.h <<_ACEOF
26236
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
26239
eval ac_cv_have_decl_$gl_func=yes
26251
for ac_func in getpagesize
26253
ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
26254
if test "x$ac_cv_func_getpagesize" = xyes; then :
26255
cat >>confdefs.h <<_ACEOF
26256
#define HAVE_GETPAGESIZE 1
26262
if test $ac_cv_func_getpagesize = no; then
26264
for ac_header in OS.h
26266
ac_fn_c_check_header_mongrel "$LINENO" "OS.h" "ac_cv_header_OS_h" "$ac_includes_default"
26267
if test "x$ac_cv_header_OS_h" = xyes; then :
26268
cat >>confdefs.h <<_ACEOF
26269
#define HAVE_OS_H 1
26276
if test $ac_cv_header_OS_h = yes; then
26279
for ac_header in sys/param.h
26281
ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
26282
if test "x$ac_cv_header_sys_param_h" = xyes; then :
26283
cat >>confdefs.h <<_ACEOF
26284
#define HAVE_SYS_PARAM_H 1
26291
if test $ac_cv_header_sys_param_h = yes; then
26297
REPLACE_GETPAGESIZE=1
26300
ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default"
26301
if test "x$ac_cv_have_decl_getpagesize" = xyes; then :
26304
HAVE_DECL_GETPAGESIZE=0
26308
if test $REPLACE_GETPAGESIZE = 1; then
26317
lgltests_LIBOBJS="$lgltests_LIBOBJS getpagesize.$ac_objext"
26325
if test "$GNULIB_GETPAGESIZE" != 1; then
26326
if test "$GNULIB_GETPAGESIZE" = 0; then
26327
GNULIB_GETPAGESIZE=$gl_module_indicator_condition
26329
GNULIB_GETPAGESIZE="($GNULIB_GETPAGESIZE || $gl_module_indicator_condition)"
26337
$as_echo "#define GNULIB_TEST_GETPAGESIZE 1" >>confdefs.h
26347
if test -n "$STDINT_H"; then
26348
PRIPTR_PREFIX='"l"'
26350
for glpfx in '' l ll I64; do
26352
'') gltype1='int';;
26353
l) gltype1='long int';;
26354
ll) gltype1='long long int';;
26355
I64) gltype1='__int64';;
26357
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26358
/* end confdefs.h. */
26359
#include <stdint.h>
26360
extern intptr_t foo;
26361
extern $gltype1 foo;
26370
if ac_fn_c_try_compile "$LINENO"; then :
26371
PRIPTR_PREFIX='"'$glpfx'"'
26373
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26374
test -n "$PRIPTR_PREFIX" && break
26380
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
26381
$as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
26382
if ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+:} false; then :
26383
$as_echo_n "(cached) " >&6
26385
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26386
/* end confdefs.h. */
26387
/* Work also in C++ mode. */
26388
#define __STDC_LIMIT_MACROS 1
26390
/* Work if build is not clean. */
26391
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
26393
#include <limits.h>
26395
#include <stdint.h>
26398
#if defined INT32_MAX && defined INTMAX_MAX
26399
#define CONDITION (INT32_MAX < INTMAX_MAX)
26400
#elif HAVE_LONG_LONG_INT
26401
#define CONDITION (sizeof (int) < sizeof (long long int))
26403
#define CONDITION 0
26405
int test[CONDITION ? 1 : -1];
26414
if ac_fn_c_try_compile "$LINENO"; then :
26415
gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
26417
gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
26419
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26421
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
26422
$as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
26423
if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
26424
INT32_MAX_LT_INTMAX_MAX=1;
26426
INT32_MAX_LT_INTMAX_MAX=0;
26430
if test $APPLE_UNIVERSAL_BUILD = 0; then
26432
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
26433
$as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
26434
if ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+:} false; then :
26435
$as_echo_n "(cached) " >&6
26437
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26438
/* end confdefs.h. */
26439
/* Work also in C++ mode. */
26440
#define __STDC_LIMIT_MACROS 1
26442
/* Work if build is not clean. */
26443
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
26445
#include <limits.h>
26447
#include <stdint.h>
26450
#if defined INT64_MAX
26451
#define CONDITION (INT64_MAX == LONG_MAX)
26452
#elif HAVE_LONG_LONG_INT
26453
#define CONDITION (sizeof (long long int) == sizeof (long int))
26455
#define CONDITION 0
26457
int test[CONDITION ? 1 : -1];
26466
if ac_fn_c_try_compile "$LINENO"; then :
26467
gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
26469
gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
26471
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26473
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
26474
$as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
26475
if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
26476
INT64_MAX_EQ_LONG_MAX=1;
26478
INT64_MAX_EQ_LONG_MAX=0;
26483
INT64_MAX_EQ_LONG_MAX=-1
26486
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
26487
$as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
26488
if ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+:} false; then :
26489
$as_echo_n "(cached) " >&6
26491
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26492
/* end confdefs.h. */
26493
/* Work also in C++ mode. */
26494
#define __STDC_LIMIT_MACROS 1
26496
/* Work if build is not clean. */
26497
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
26499
#include <limits.h>
26501
#include <stdint.h>
26504
#if defined UINT32_MAX && defined UINTMAX_MAX
26505
#define CONDITION (UINT32_MAX < UINTMAX_MAX)
26506
#elif HAVE_LONG_LONG_INT
26507
#define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
26509
#define CONDITION 0
26511
int test[CONDITION ? 1 : -1];
26520
if ac_fn_c_try_compile "$LINENO"; then :
26521
gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
26523
gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
26525
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26527
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
26528
$as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
26529
if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
26530
UINT32_MAX_LT_UINTMAX_MAX=1;
26532
UINT32_MAX_LT_UINTMAX_MAX=0;
26536
if test $APPLE_UNIVERSAL_BUILD = 0; then
26538
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
26539
$as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
26540
if ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+:} false; then :
26541
$as_echo_n "(cached) " >&6
26543
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26544
/* end confdefs.h. */
26545
/* Work also in C++ mode. */
26546
#define __STDC_LIMIT_MACROS 1
26548
/* Work if build is not clean. */
26549
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
26551
#include <limits.h>
26553
#include <stdint.h>
26556
#if defined UINT64_MAX
26557
#define CONDITION (UINT64_MAX == ULONG_MAX)
26558
#elif HAVE_LONG_LONG_INT
26559
#define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
26561
#define CONDITION 0
26563
int test[CONDITION ? 1 : -1];
26572
if ac_fn_c_try_compile "$LINENO"; then :
26573
gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
26575
gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
26577
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26579
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
26580
$as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
26581
if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
26582
UINT64_MAX_EQ_ULONG_MAX=1;
26584
UINT64_MAX_EQ_ULONG_MAX=0;
26589
UINT64_MAX_EQ_ULONG_MAX=-1
26597
# Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
26598
# fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
26599
# irrelevant for anonymous mappings.
26600
ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
26601
if test "x$ac_cv_func_mmap" = xyes; then :
26608
# Try to allow MAP_ANONYMOUS.
26609
gl_have_mmap_anonymous=no
26610
if test $gl_have_mmap = yes; then
26611
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
26612
$as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
26613
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26614
/* end confdefs.h. */
26616
#include <sys/mman.h>
26617
#ifdef MAP_ANONYMOUS
26618
I cant identify this map
26622
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26623
$EGREP "I cant identify this map" >/dev/null 2>&1; then :
26624
gl_have_mmap_anonymous=yes
26628
if test $gl_have_mmap_anonymous != yes; then
26629
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26630
/* end confdefs.h. */
26632
#include <sys/mman.h>
26634
I cant identify this map
26638
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26639
$EGREP "I cant identify this map" >/dev/null 2>&1; then :
26641
$as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
26643
gl_have_mmap_anonymous=yes
26648
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
26649
$as_echo "$gl_have_mmap_anonymous" >&6; }
26650
if test $gl_have_mmap_anonymous = yes; then
26652
$as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
23020
26660
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
23021
26661
$as_echo_n "checking for wchar_t... " >&6; }
23022
if test "${gt_cv_c_wchar_t+set}" = set; then :
26662
if ${gt_cv_c_wchar_t+:} false; then :
23023
26663
$as_echo_n "(cached) " >&6
23025
26665
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23102
26744
LIBTESTS_LIBDEPS="$gltests_libdeps"
26748
for ac_func in getrusage
26750
ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
26751
if test "x$ac_cv_func_getrusage" = xyes; then :
26752
cat >>confdefs.h <<_ACEOF
26753
#define HAVE_GETRUSAGE 1
26771
acl_save_prefix="$prefix"
26772
prefix="$acl_final_prefix"
26773
acl_save_exec_prefix="$exec_prefix"
26774
exec_prefix="$acl_final_exec_prefix"
26776
eval additional_includedir=\"$includedir\"
26777
eval additional_libdir=\"$libdir\"
26779
exec_prefix="$acl_save_exec_prefix"
26780
prefix="$acl_save_prefix"
26783
# Check whether --with-libpthread-prefix was given.
26784
if test "${with_libpthread_prefix+set}" = set; then :
26785
withval=$with_libpthread_prefix;
26786
if test "X$withval" = "Xno"; then
26789
if test "X$withval" = "X"; then
26791
acl_save_prefix="$prefix"
26792
prefix="$acl_final_prefix"
26793
acl_save_exec_prefix="$exec_prefix"
26794
exec_prefix="$acl_final_exec_prefix"
26796
eval additional_includedir=\"$includedir\"
26797
eval additional_libdir=\"$libdir\"
26799
exec_prefix="$acl_save_exec_prefix"
26800
prefix="$acl_save_prefix"
26803
additional_includedir="$withval/include"
26804
additional_libdir="$withval/$acl_libdirstem"
26816
names_already_handled=
26817
names_next_round='pthread '
26818
while test -n "$names_next_round"; do
26819
names_this_round="$names_next_round"
26821
for name in $names_this_round; do
26823
for n in $names_already_handled; do
26824
if test "$n" = "$name"; then
26825
already_handled=yes
26829
if test -z "$already_handled"; then
26830
names_already_handled="$names_already_handled $name"
26831
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
26832
eval value=\"\$HAVE_LIB$uppername\"
26833
if test -n "$value"; then
26834
if test "$value" = yes; then
26835
eval value=\"\$LIB$uppername\"
26836
test -z "$value" || LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$value"
26837
eval value=\"\$LTLIB$uppername\"
26838
test -z "$value" || LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }$value"
26847
eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
26848
if test -n "$acl_shlibext"; then
26849
shrext=".$acl_shlibext" # typically: shrext=.so
26853
if test $use_additional = yes; then
26854
dir="$additional_libdir"
26855
if test -n "$acl_shlibext"; then
26856
if test -f "$dir/$libname$shrext"; then
26858
found_so="$dir/$libname$shrext"
26860
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
26861
ver=`(cd "$dir" && \
26862
for f in "$libname$shrext".*; do echo "$f"; done \
26863
| sed -e "s,^$libname$shrext\\\\.,," \
26864
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
26865
| sed 1q ) 2>/dev/null`
26866
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
26868
found_so="$dir/$libname$shrext.$ver"
26871
eval library_names=\"$acl_library_names_spec\"
26872
for f in $library_names; do
26873
if test -f "$dir/$f"; then
26882
if test "X$found_dir" = "X"; then
26883
if test -f "$dir/$libname.$acl_libext"; then
26885
found_a="$dir/$libname.$acl_libext"
26888
if test "X$found_dir" != "X"; then
26889
if test -f "$dir/$libname.la"; then
26890
found_la="$dir/$libname.la"
26894
if test "X$found_dir" = "X"; then
26895
for x in $LDFLAGS $LTLIBPTHREAD; do
26897
acl_save_prefix="$prefix"
26898
prefix="$acl_final_prefix"
26899
acl_save_exec_prefix="$exec_prefix"
26900
exec_prefix="$acl_final_exec_prefix"
26902
exec_prefix="$acl_save_exec_prefix"
26903
prefix="$acl_save_prefix"
26907
dir=`echo "X$x" | sed -e 's/^X-L//'`
26908
if test -n "$acl_shlibext"; then
26909
if test -f "$dir/$libname$shrext"; then
26911
found_so="$dir/$libname$shrext"
26913
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
26914
ver=`(cd "$dir" && \
26915
for f in "$libname$shrext".*; do echo "$f"; done \
26916
| sed -e "s,^$libname$shrext\\\\.,," \
26917
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
26918
| sed 1q ) 2>/dev/null`
26919
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
26921
found_so="$dir/$libname$shrext.$ver"
26924
eval library_names=\"$acl_library_names_spec\"
26925
for f in $library_names; do
26926
if test -f "$dir/$f"; then
26935
if test "X$found_dir" = "X"; then
26936
if test -f "$dir/$libname.$acl_libext"; then
26938
found_a="$dir/$libname.$acl_libext"
26941
if test "X$found_dir" != "X"; then
26942
if test -f "$dir/$libname.la"; then
26943
found_la="$dir/$libname.la"
26948
if test "X$found_dir" != "X"; then
26953
if test "X$found_dir" != "X"; then
26954
LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }-L$found_dir -l$name"
26955
if test "X$found_so" != "X"; then
26956
if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
26957
LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$found_so"
26960
for x in $ltrpathdirs; do
26961
if test "X$x" = "X$found_dir"; then
26966
if test -z "$haveit"; then
26967
ltrpathdirs="$ltrpathdirs $found_dir"
26969
if test "$acl_hardcode_direct" = yes; then
26970
LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$found_so"
26972
if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
26973
LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$found_so"
26975
for x in $rpathdirs; do
26976
if test "X$x" = "X$found_dir"; then
26981
if test -z "$haveit"; then
26982
rpathdirs="$rpathdirs $found_dir"
26986
for x in $LDFLAGS $LIBPTHREAD; do
26988
acl_save_prefix="$prefix"
26989
prefix="$acl_final_prefix"
26990
acl_save_exec_prefix="$exec_prefix"
26991
exec_prefix="$acl_final_exec_prefix"
26993
exec_prefix="$acl_save_exec_prefix"
26994
prefix="$acl_save_prefix"
26996
if test "X$x" = "X-L$found_dir"; then
27001
if test -z "$haveit"; then
27002
LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }-L$found_dir"
27004
if test "$acl_hardcode_minus_L" != no; then
27005
LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$found_so"
27007
LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }-l$name"
27013
if test "X$found_a" != "X"; then
27014
LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$found_a"
27016
LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }-L$found_dir -l$name"
27019
additional_includedir=
27020
case "$found_dir" in
27021
*/$acl_libdirstem | */$acl_libdirstem/)
27022
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
27023
LIBPTHREAD_PREFIX="$basedir"
27024
additional_includedir="$basedir/include"
27027
if test "X$additional_includedir" != "X"; then
27028
if test "X$additional_includedir" != "X/usr/include"; then
27030
if test "X$additional_includedir" = "X/usr/local/include"; then
27031
if test -n "$GCC"; then
27033
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
27037
if test -z "$haveit"; then
27038
for x in $CPPFLAGS $INCPTHREAD; do
27040
acl_save_prefix="$prefix"
27041
prefix="$acl_final_prefix"
27042
acl_save_exec_prefix="$exec_prefix"
27043
exec_prefix="$acl_final_exec_prefix"
27045
exec_prefix="$acl_save_exec_prefix"
27046
prefix="$acl_save_prefix"
27048
if test "X$x" = "X-I$additional_includedir"; then
27053
if test -z "$haveit"; then
27054
if test -d "$additional_includedir"; then
27055
INCPTHREAD="${INCPTHREAD}${INCPTHREAD:+ }-I$additional_includedir"
27061
if test -n "$found_la"; then
27062
save_libdir="$libdir"
27063
case "$found_la" in
27064
*/* | *\\*) . "$found_la" ;;
27065
*) . "./$found_la" ;;
27067
libdir="$save_libdir"
27068
for dep in $dependency_libs; do
27071
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
27072
if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
27074
if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
27075
if test -n "$GCC"; then
27077
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
27081
if test -z "$haveit"; then
27083
for x in $LDFLAGS $LIBPTHREAD; do
27085
acl_save_prefix="$prefix"
27086
prefix="$acl_final_prefix"
27087
acl_save_exec_prefix="$exec_prefix"
27088
exec_prefix="$acl_final_exec_prefix"
27090
exec_prefix="$acl_save_exec_prefix"
27091
prefix="$acl_save_prefix"
27093
if test "X$x" = "X-L$additional_libdir"; then
27098
if test -z "$haveit"; then
27099
if test -d "$additional_libdir"; then
27100
LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }-L$additional_libdir"
27104
for x in $LDFLAGS $LTLIBPTHREAD; do
27106
acl_save_prefix="$prefix"
27107
prefix="$acl_final_prefix"
27108
acl_save_exec_prefix="$exec_prefix"
27109
exec_prefix="$acl_final_exec_prefix"
27111
exec_prefix="$acl_save_exec_prefix"
27112
prefix="$acl_save_prefix"
27114
if test "X$x" = "X-L$additional_libdir"; then
27119
if test -z "$haveit"; then
27120
if test -d "$additional_libdir"; then
27121
LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }-L$additional_libdir"
27128
dir=`echo "X$dep" | sed -e 's/^X-R//'`
27129
if test "$enable_rpath" != no; then
27131
for x in $rpathdirs; do
27132
if test "X$x" = "X$dir"; then
27137
if test -z "$haveit"; then
27138
rpathdirs="$rpathdirs $dir"
27141
for x in $ltrpathdirs; do
27142
if test "X$x" = "X$dir"; then
27147
if test -z "$haveit"; then
27148
ltrpathdirs="$ltrpathdirs $dir"
27153
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
27156
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
27159
LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$dep"
27160
LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }$dep"
27166
LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }-l$name"
27167
LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }-l$name"
27173
if test "X$rpathdirs" != "X"; then
27174
if test -n "$acl_hardcode_libdir_separator"; then
27176
for found_dir in $rpathdirs; do
27177
alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
27179
acl_save_libdir="$libdir"
27181
eval flag=\"$acl_hardcode_libdir_flag_spec\"
27182
libdir="$acl_save_libdir"
27183
LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$flag"
27185
for found_dir in $rpathdirs; do
27186
acl_save_libdir="$libdir"
27187
libdir="$found_dir"
27188
eval flag=\"$acl_hardcode_libdir_flag_spec\"
27189
libdir="$acl_save_libdir"
27190
LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$flag"
27194
if test "X$ltrpathdirs" != "X"; then
27195
for found_dir in $ltrpathdirs; do
27196
LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }-R$found_dir"
27201
ac_save_CPPFLAGS="$CPPFLAGS"
27203
for element in $INCPTHREAD; do
27205
for x in $CPPFLAGS; do
27207
acl_save_prefix="$prefix"
27208
prefix="$acl_final_prefix"
27209
acl_save_exec_prefix="$exec_prefix"
27210
exec_prefix="$acl_final_exec_prefix"
27212
exec_prefix="$acl_save_exec_prefix"
27213
prefix="$acl_save_prefix"
27215
if test "X$x" = "X$element"; then
27220
if test -z "$haveit"; then
27221
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
27226
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpthread" >&5
27227
$as_echo_n "checking for libpthread... " >&6; }
27228
if ${ac_cv_libpthread+:} false; then :
27229
$as_echo_n "(cached) " >&6
27232
ac_save_LIBS="$LIBS"
27233
LIBS="$LIBS $LIBPTHREAD"
27234
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27235
/* end confdefs.h. */
27236
#include <pthread.h>
27240
pthread_mutex_lock (0);
27245
if ac_fn_c_try_link "$LINENO"; then :
27246
ac_cv_libpthread=yes
27248
ac_cv_libpthread=no
27250
rm -f core conftest.err conftest.$ac_objext \
27251
conftest$ac_exeext conftest.$ac_ext
27252
LIBS="$ac_save_LIBS"
27255
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpthread" >&5
27256
$as_echo "$ac_cv_libpthread" >&6; }
27257
if test "$ac_cv_libpthread" = yes; then
27258
HAVE_LIBPTHREAD=yes
27260
$as_echo "#define HAVE_LIBPTHREAD 1" >>confdefs.h
27262
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpthread" >&5
27263
$as_echo_n "checking how to link with libpthread... " >&6; }
27264
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPTHREAD" >&5
27265
$as_echo "$LIBPTHREAD" >&6; }
27268
CPPFLAGS="$ac_save_CPPFLAGS"
23106
27281
LIBGNUTLS_LIBS="-L${libdir} -lgnutls $LIBS"
23107
27282
LIBGNUTLS_CFLAGS="-I${includedir}"
24131
28344
cygwin* | mingw* | pw32* | cegcc*)
24132
# _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
24133
# as there is no search path for DLLs.
24134
hardcode_libdir_flag_spec_CXX='-L$libdir'
24135
export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
24136
allow_undefined_flag_CXX=unsupported
24137
always_export_symbols_CXX=no
24138
enable_shared_with_static_runtimes_CXX=yes
28345
case $GXX,$cc_basename in
28348
# hardcode_libdir_flag_spec is actually meaningless, as there is
28349
# no search path for DLLs.
28350
hardcode_libdir_flag_spec_CXX=' '
28351
allow_undefined_flag_CXX=unsupported
28352
always_export_symbols_CXX=yes
28353
file_list_spec_CXX='@'
28354
# Tell ltmain to make .lib files, not .a files.
28356
# Tell ltmain to make .dll files, not .so files.
28358
# FIXME: Setting linknames here is a bad hack.
28359
archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
28360
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
28361
$SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
28363
$SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
28365
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
28367
# The linker will not automatically build a static lib if we build a DLL.
28368
# _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
28369
enable_shared_with_static_runtimes_CXX=yes
28371
old_postinstall_cmds_CXX='chmod 644 $oldlib'
28372
postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
28373
lt_tool_outputfile="@TOOL_OUTPUT@"~
28374
case $lt_outputfile in
28377
lt_outputfile="$lt_outputfile.exe"
28378
lt_tool_outputfile="$lt_tool_outputfile.exe"
28381
func_to_tool_file "$lt_outputfile"~
28382
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
28383
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
28384
$RM "$lt_outputfile.manifest";
28389
# _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
28390
# as there is no search path for DLLs.
28391
hardcode_libdir_flag_spec_CXX='-L$libdir'
28392
export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
28393
allow_undefined_flag_CXX=unsupported
28394
always_export_symbols_CXX=no
28395
enable_shared_with_static_runtimes_CXX=yes
24140
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
24141
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24142
# If the export-symbols file already is a .def file (1st line
24143
# is EXPORTS), use it as is; otherwise, prepend...
24144
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24145
cp $export_symbols $output_objdir/$soname.def;
24147
echo EXPORTS > $output_objdir/$soname.def;
24148
cat $export_symbols >> $output_objdir/$soname.def;
24150
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
28397
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
28398
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
28399
# If the export-symbols file already is a .def file (1st line
28400
# is EXPORTS), use it as is; otherwise, prepend...
28401
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
28402
cp $export_symbols $output_objdir/$soname.def;
28404
echo EXPORTS > $output_objdir/$soname.def;
28405
cat $export_symbols >> $output_objdir/$soname.def;
28407
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24155
28414
darwin* | rhapsody*)
28862
33331
# if finds mixed CR/LF and LF-only lines. Since sed operates in
28863
33332
# text mode, it properly converts lines to CR/LF. This bash problem
28864
33333
# is reportedly fixed, but why not run on old versions too?
28865
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
28866
|| (rm -f "$cfgfile"; exit 1)
28870
cat << \_LT_EOF >> "$cfgfile"
28872
# func_dirname file append nondir_replacement
28873
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
28874
# otherwise set result to NONDIR_REPLACEMENT.
28878
*/*) func_dirname_result="${1%/*}${2}" ;;
28879
* ) func_dirname_result="${3}" ;;
28883
# func_basename file
28886
func_basename_result="${1##*/}"
28889
# func_dirname_and_basename file append nondir_replacement
28890
# perform func_basename and func_dirname in a single function
28892
# dirname: Compute the dirname of FILE. If nonempty,
28893
# add APPEND to the result, otherwise set result
28894
# to NONDIR_REPLACEMENT.
28895
# value returned in "$func_dirname_result"
28896
# basename: Compute filename of FILE.
28897
# value retuned in "$func_basename_result"
28898
# Implementation must be kept synchronized with func_dirname
28899
# and func_basename. For efficiency, we do not delegate to
28900
# those functions but instead duplicate the functionality here.
28901
func_dirname_and_basename ()
28904
*/*) func_dirname_result="${1%/*}${2}" ;;
28905
* ) func_dirname_result="${3}" ;;
28907
func_basename_result="${1##*/}"
28910
# func_stripname prefix suffix name
28911
# strip PREFIX and SUFFIX off of NAME.
28912
# PREFIX and SUFFIX must not contain globbing or regex special
28913
# characters, hashes, percent signs, but SUFFIX may contain a leading
28914
# dot (in which case that matches only a dot).
28917
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
28918
# positional parameters, so assign one to ordinary parameter first.
28919
func_stripname_result=${3}
28920
func_stripname_result=${func_stripname_result#"${1}"}
28921
func_stripname_result=${func_stripname_result%"${2}"}
28927
func_opt_split_opt=${1%%=*}
28928
func_opt_split_arg=${1#*=}
28935
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
28936
*) func_lo2o_result=${1} ;;
28940
# func_xform libobj-or-source
28943
func_xform_result=${1%.*}.lo
28946
# func_arith arithmetic-term...
28949
func_arith_result=$(( $* ))
28953
# STRING may not start with a hyphen.
28956
func_len_result=${#1}
28961
*) # Bourne compatible functions.
28962
cat << \_LT_EOF >> "$cfgfile"
28964
# func_dirname file append nondir_replacement
28965
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
28966
# otherwise set result to NONDIR_REPLACEMENT.
28969
# Extract subdirectory from the argument.
28970
func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
28971
if test "X$func_dirname_result" = "X${1}"; then
28972
func_dirname_result="${3}"
28974
func_dirname_result="$func_dirname_result${2}"
28978
# func_basename file
28981
func_basename_result=`$ECHO "${1}" | $SED "$basename"`
28985
# func_stripname prefix suffix name
28986
# strip PREFIX and SUFFIX off of NAME.
28987
# PREFIX and SUFFIX must not contain globbing or regex special
28988
# characters, hashes, percent signs, but SUFFIX may contain a leading
28989
# dot (in which case that matches only a dot).
28990
# func_strip_suffix prefix name
28994
.*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
28995
*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
29000
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
29001
my_sed_long_arg='1s/^-[^=]*=//'
29006
func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
29007
func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
29013
func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
29016
# func_xform libobj-or-source
29019
func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
29022
# func_arith arithmetic-term...
29025
func_arith_result=`expr "$@"`
29029
# STRING may not start with a hyphen.
29032
func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
29038
case $lt_shell_append in
29040
cat << \_LT_EOF >> "$cfgfile"
29042
# func_append var value
29043
# Append VALUE to the end of shell variable VAR.
29051
cat << \_LT_EOF >> "$cfgfile"
29053
# func_append var value
29054
# Append VALUE to the end of shell variable VAR.
29065
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
29066
|| (rm -f "$cfgfile"; exit 1)
29068
mv -f "$cfgfile" "$ofile" ||
33334
sed '$q' "$ltmain" >> "$cfgfile" \
33335
|| (rm -f "$cfgfile"; exit 1)
33337
if test x"$xsi_shell" = xyes; then
33338
sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
33342
\ */*) func_dirname_result="${1%/*}${2}" ;;\
33343
\ * ) func_dirname_result="${3}" ;;\
33345
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
33346
&& mv -f "$cfgfile.tmp" "$cfgfile" \
33347
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33348
test 0 -eq $? || _lt_function_replace_fail=:
33351
sed -e '/^func_basename ()$/,/^} # func_basename /c\
33354
\ func_basename_result="${1##*/}"\
33355
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
33356
&& mv -f "$cfgfile.tmp" "$cfgfile" \
33357
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33358
test 0 -eq $? || _lt_function_replace_fail=:
33361
sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
33362
func_dirname_and_basename ()\
33365
\ */*) func_dirname_result="${1%/*}${2}" ;;\
33366
\ * ) func_dirname_result="${3}" ;;\
33368
\ func_basename_result="${1##*/}"\
33369
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
33370
&& mv -f "$cfgfile.tmp" "$cfgfile" \
33371
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33372
test 0 -eq $? || _lt_function_replace_fail=:
33375
sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
33378
\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
33379
\ # positional parameters, so assign one to ordinary parameter first.\
33380
\ func_stripname_result=${3}\
33381
\ func_stripname_result=${func_stripname_result#"${1}"}\
33382
\ func_stripname_result=${func_stripname_result%"${2}"}\
33383
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
33384
&& mv -f "$cfgfile.tmp" "$cfgfile" \
33385
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33386
test 0 -eq $? || _lt_function_replace_fail=:
33389
sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
33390
func_split_long_opt ()\
33392
\ func_split_long_opt_name=${1%%=*}\
33393
\ func_split_long_opt_arg=${1#*=}\
33394
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
33395
&& mv -f "$cfgfile.tmp" "$cfgfile" \
33396
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33397
test 0 -eq $? || _lt_function_replace_fail=:
33400
sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
33401
func_split_short_opt ()\
33403
\ func_split_short_opt_arg=${1#??}\
33404
\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
33405
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
33406
&& mv -f "$cfgfile.tmp" "$cfgfile" \
33407
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33408
test 0 -eq $? || _lt_function_replace_fail=:
33411
sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
33415
\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
33416
\ *) func_lo2o_result=${1} ;;\
33418
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
33419
&& mv -f "$cfgfile.tmp" "$cfgfile" \
33420
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33421
test 0 -eq $? || _lt_function_replace_fail=:
33424
sed -e '/^func_xform ()$/,/^} # func_xform /c\
33427
func_xform_result=${1%.*}.lo\
33428
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
33429
&& mv -f "$cfgfile.tmp" "$cfgfile" \
33430
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33431
test 0 -eq $? || _lt_function_replace_fail=:
33434
sed -e '/^func_arith ()$/,/^} # func_arith /c\
33437
func_arith_result=$(( $* ))\
33438
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
33439
&& mv -f "$cfgfile.tmp" "$cfgfile" \
33440
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33441
test 0 -eq $? || _lt_function_replace_fail=:
33444
sed -e '/^func_len ()$/,/^} # func_len /c\
33447
func_len_result=${#1}\
33448
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
33449
&& mv -f "$cfgfile.tmp" "$cfgfile" \
33450
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33451
test 0 -eq $? || _lt_function_replace_fail=:
33455
if test x"$lt_shell_append" = xyes; then
33456
sed -e '/^func_append ()$/,/^} # func_append /c\
33459
eval "${1}+=\\${2}"\
33460
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
33461
&& mv -f "$cfgfile.tmp" "$cfgfile" \
33462
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33463
test 0 -eq $? || _lt_function_replace_fail=:
33466
sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
33467
func_append_quoted ()\
33469
\ func_quote_for_eval "${2}"\
33470
\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
33471
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
33472
&& mv -f "$cfgfile.tmp" "$cfgfile" \
33473
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33474
test 0 -eq $? || _lt_function_replace_fail=:
33477
# Save a `func_append' function call where possible by direct use of '+='
33478
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
33479
&& mv -f "$cfgfile.tmp" "$cfgfile" \
33480
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33481
test 0 -eq $? || _lt_function_replace_fail=:
33483
# Save a `func_append' function call even when '+=' is not available
33484
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
33485
&& mv -f "$cfgfile.tmp" "$cfgfile" \
33486
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33487
test 0 -eq $? || _lt_function_replace_fail=:
33490
if test x"$_lt_function_replace_fail" = x":"; then
33491
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
33492
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
33496
mv -f "$cfgfile" "$ofile" ||
29069
33497
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
29070
33498
chmod +x "$ofile"