~nova-coresec/ubuntu/maverick/libvirt/nova-ppa

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Guido Günther
  • Date: 2010-05-09 14:25:00 UTC
  • mto: (1.2.5 upstream) (3.4.15 squeeze)
  • mto: This revision was merged to the branch mainline in revision 92.
  • Revision ID: james.westby@ubuntu.com-20100509142500-1aracjxxmac2zx33
Import upstream version 0.8.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.63 for libvirt 0.8.0.
 
3
# Generated by GNU Autoconf 2.63 for libvirt 0.8.1.
4
4
#
5
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
6
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
743
743
# Identity of this package.
744
744
PACKAGE_NAME='libvirt'
745
745
PACKAGE_TARNAME='libvirt'
746
 
PACKAGE_VERSION='0.8.0'
747
 
PACKAGE_STRING='libvirt 0.8.0'
 
746
PACKAGE_VERSION='0.8.1'
 
747
PACKAGE_STRING='libvirt 0.8.1'
748
748
PACKAGE_BUGREPORT=''
749
749
 
750
750
ac_unique_file="src/libvirt.c"
994
994
DLOPEN_LIBS
995
995
WITH_OPENVZ_FALSE
996
996
WITH_OPENVZ_TRUE
997
 
GAWK_PATH
998
 
GREP_PATH
999
997
EBTABLES_PATH
1000
 
IP6TABLES_PATH
1001
998
IPTABLES_PATH
1002
 
BASH_PATH
1003
999
LIBVIRT_INIT_SCRIPT_RED_HAT_FALSE
1004
1000
LIBVIRT_INIT_SCRIPT_RED_HAT_TRUE
1005
1001
REMOTE_PID_FILE
1157
1153
NEXT_NETINET_IN_H
1158
1154
APPLE_UNIVERSAL_BUILD
1159
1155
REPLACE_TIMEGM
1160
 
REPLACE_STRPTIME
1161
1156
REPLACE_NANOSLEEP
1162
1157
REPLACE_MKTIME
1163
1158
REPLACE_LOCALTIME_R
 
1159
HAVE_TIMEGM
 
1160
HAVE_STRPTIME
 
1161
HAVE_NANOSLEEP
 
1162
HAVE_LOCALTIME_R
1164
1163
GNULIB_TIME_R
1165
1164
GNULIB_TIMEGM
1166
1165
GNULIB_STRPTIME
1169
1168
UNDEFINE_STRTOK_R
1170
1169
REPLACE_STRTOK_R
1171
1170
REPLACE_STRSIGNAL
 
1171
REPLACE_STRNLEN
1172
1172
REPLACE_STRNDUP
 
1173
REPLACE_STRNCAT
1173
1174
REPLACE_STRERROR
1174
1175
REPLACE_STRCASESTR
1175
1176
REPLACE_STRSTR
1176
1177
REPLACE_STRDUP
 
1178
REPLACE_STPNCPY
1177
1179
REPLACE_MEMMEM
1178
1180
REPLACE_MEMCHR
1179
1181
HAVE_STRVERSCMP
1180
1182
HAVE_DECL_STRSIGNAL
1181
 
HAVE_DECL_STRERROR
1182
1183
HAVE_DECL_STRTOK_R
1183
1184
HAVE_STRCASESTR
1184
1185
HAVE_STRSEP
1193
1194
HAVE_DECL_MEMRCHR
1194
1195
HAVE_MEMPCPY
1195
1196
HAVE_DECL_MEMMEM
 
1197
HAVE_MEMCHR
1196
1198
HAVE_MBSLEN
1197
1199
GNULIB_STRVERSCMP
1198
1200
GNULIB_STRSIGNAL
1218
1220
GNULIB_STRPBRK
1219
1221
GNULIB_STRNLEN
1220
1222
GNULIB_STRNDUP
 
1223
GNULIB_STRNCAT
1221
1224
GNULIB_STRDUP
1222
1225
GNULIB_STRCHRNUL
1223
1226
GNULIB_STPNCPY
1324
1327
REPLACE_VFPRINTF
1325
1328
REPLACE_VDPRINTF
1326
1329
REPLACE_VASPRINTF
 
1330
REPLACE_TMPFILE
1327
1331
REPLACE_STDIO_WRITE_FUNCS
1328
1332
REPLACE_SPRINTF
1329
1333
REPLACE_SNPRINTF
1350
1354
HAVE_VDPRINTF
1351
1355
HAVE_VASPRINTF
1352
1356
HAVE_RENAMEAT
 
1357
HAVE_FTELLO
 
1358
HAVE_FSEEKO
1353
1359
HAVE_DPRINTF
1354
1360
HAVE_DECL_VSNPRINTF
1355
1361
HAVE_DECL_SNPRINTF
1365
1371
GNULIB_VFPRINTF
1366
1372
GNULIB_VDPRINTF
1367
1373
GNULIB_VASPRINTF
 
1374
GNULIB_TMPFILE
1368
1375
GNULIB_STDIO_H_SIGPIPE
1369
1376
GNULIB_SPRINTF_POSIX
1370
1377
GNULIB_SNPRINTF
1421
1428
REPLACE_GETGROUPS
1422
1429
REPLACE_GETCWD
1423
1430
REPLACE_FCHOWNAT
1424
 
REPLACE_FCHDIR
1425
1431
REPLACE_DUP2
1426
1432
REPLACE_DUP
1427
1433
REPLACE_CLOSE
1429
1435
HAVE_SYS_PARAM_H
1430
1436
HAVE_OS_H
1431
1437
HAVE_DECL_GETUSERSHELL
 
1438
HAVE_DECL_GETPAGESIZE
1432
1439
HAVE_DECL_GETLOGIN_R
1433
1440
HAVE_DECL_ENVIRON
1434
1441
HAVE_USLEEP
1453
1460
HAVE_FTRUNCATE
1454
1461
HAVE_FSYNC
1455
1462
HAVE_FCHOWNAT
 
1463
HAVE_FCHDIR
1456
1464
HAVE_FACCESSAT
1457
1465
HAVE_EUIDACCESS
1458
1466
HAVE_DUP3
1518
1526
HAVE_RANDOM_R
1519
1527
HAVE_PTSNAME
1520
1528
HAVE_MKSTEMPS
 
1529
HAVE_MKSTEMP
1521
1530
HAVE_MKOSTEMPS
1522
1531
HAVE_MKOSTEMP
1523
1532
HAVE_MKDTEMP
2320
2329
  # Omit some internal or obsolete options to make the list less imposing.
2321
2330
  # This message is too long to be a string in the A/UX 3.1 sh.
2322
2331
  cat <<_ACEOF
2323
 
\`configure' configures libvirt 0.8.0 to adapt to many kinds of systems.
 
2332
\`configure' configures libvirt 0.8.1 to adapt to many kinds of systems.
2324
2333
 
2325
2334
Usage: $0 [OPTION]... [VAR=VALUE]...
2326
2335
 
2390
2399
 
2391
2400
if test -n "$ac_init_help"; then
2392
2401
  case $ac_init_help in
2393
 
     short | recursive ) echo "Configuration of libvirt 0.8.0:";;
 
2402
     short | recursive ) echo "Configuration of libvirt 0.8.1:";;
2394
2403
   esac
2395
2404
  cat <<\_ACEOF
2396
2405
 
2610
2619
test -n "$ac_init_help" && exit $ac_status
2611
2620
if $ac_init_version; then
2612
2621
  cat <<\_ACEOF
2613
 
libvirt configure 0.8.0
 
2622
libvirt configure 0.8.1
2614
2623
generated by GNU Autoconf 2.63
2615
2624
 
2616
2625
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2624
2633
This file contains any messages produced by compilers while
2625
2634
running configure, to aid debugging if configure makes a mistake.
2626
2635
 
2627
 
It was created by libvirt $as_me 0.8.0, which was
 
2636
It was created by libvirt $as_me 0.8.1, which was
2628
2637
generated by GNU Autoconf 2.63.  Invocation command line was
2629
2638
 
2630
2639
  $ $0 $@
2923
2932
gl_func_list="$gl_func_list lstat"
2924
2933
gl_header_list="$gl_header_list sys/mman.h"
2925
2934
gl_func_list="$gl_func_list mprotect"
 
2935
gl_func_list="$gl_func_list memchr"
 
2936
gl_func_list="$gl_func_list mkstemp"
2926
2937
gl_header_list="$gl_header_list unistd.h"
2927
2938
gl_func_list="$gl_func_list alarm"
2928
2939
gl_func_list="$gl_func_list pathconf"
2929
2940
gl_header_list="$gl_header_list sys/ioctl.h"
2930
2941
gl_header_list="$gl_header_list sys/filio.h"
2931
2942
gl_header_list="$gl_header_list sys/select.h"
 
2943
gl_func_list="$gl_func_list sleep"
2932
2944
gl_header_list="$gl_header_list stddef.h"
2933
2945
gl_header_list="$gl_header_list stdint.h"
2934
2946
gl_header_list="$gl_header_list wchar.h"
2935
2947
gl_header_list="$gl_header_list stdio.h"
2936
2948
gl_header_list="$gl_header_list stdlib.h"
 
2949
gl_func_list="$gl_func_list strdup"
2937
2950
gl_header_list="$gl_header_list string.h"
2938
2951
gl_header_list="$gl_header_list strings.h"
2939
2952
gl_func_list="$gl_func_list strndup"
 
2953
gl_func_list="$gl_func_list strptime"
2940
2954
gl_header_list="$gl_header_list sys/stat.h"
2941
2955
gl_header_list="$gl_header_list time.h"
 
2956
gl_func_list="$gl_func_list localtime_r"
 
2957
gl_func_list="$gl_func_list timegm"
 
2958
gl_func_list="$gl_func_list usleep"
2942
2959
gl_func_list="$gl_func_list vasnprintf"
2943
2960
gl_header_list="$gl_header_list sys/wait.h"
2944
2961
gl_func_list="$gl_func_list symlink"
3520
3537
 
3521
3538
# Define the identity of the package.
3522
3539
 PACKAGE='libvirt'
3523
 
 VERSION='0.8.0'
 
3540
 VERSION='0.8.1'
3524
3541
 
3525
3542
 
3526
3543
cat >>confdefs.h <<_ACEOF
6106
6123
  # Code from module servent:
6107
6124
  # Code from module setsockopt:
6108
6125
  # Code from module size_max:
 
6126
  # Code from module sleep:
 
6127
  # Code from module sleep-tests:
6109
6128
  # Code from module snprintf:
6110
6129
  # Code from module snprintf-tests:
6111
6130
  # Code from module socket:
6140
6159
  # Code from module strnlen:
6141
6160
  # Code from module strptime:
6142
6161
  # Code from module strsep:
 
6162
  # Code from module strtok_r:
6143
6163
  # Code from module symlink:
6144
6164
  # Code from module symlink-tests:
6145
6165
  # Code from module sys_ioctl:
6160
6180
  # Code from module unistd:
6161
6181
  # Code from module unistd-tests:
6162
6182
  # Code from module useless-if-before-free:
 
6183
  # Code from module usleep:
 
6184
  # Code from module usleep-tests:
6163
6185
  # Code from module vasnprintf:
6164
6186
  # Code from module vasnprintf-tests:
6165
6187
  # Code from module vasprintf:
6929
6951
cat >>conftest.$ac_ext <<_ACEOF
6930
6952
/* end confdefs.h.  */
6931
6953
typedef int * int_ptr;
6932
 
        int foo (int_ptr $ac_kw ip) {
6933
 
        return ip[0];
 
6954
        int foo (int_ptr $ac_kw ip) {
 
6955
        return ip[0];
6934
6956
       }
6935
6957
int
6936
6958
main ()
6937
6959
{
6938
6960
int s[1];
6939
 
        int * $ac_kw t = s;
6940
 
        t[0] = 0;
6941
 
        return foo(t)
 
6961
        int * $ac_kw t = s;
 
6962
        t[0] = 0;
 
6963
        return foo(t)
6942
6964
  ;
6943
6965
  return 0;
6944
6966
}
7315
7337
  HAVE_MKDTEMP=1;
7316
7338
  HAVE_MKOSTEMP=1;
7317
7339
  HAVE_MKOSTEMPS=1;
 
7340
  HAVE_MKSTEMP=1;
7318
7341
  HAVE_MKSTEMPS=1;
7319
7342
  HAVE_PTSNAME=1;
7320
7343
  HAVE_RANDOM_R=1;
7382
7405
  HAVE_DUP3=1;
7383
7406
  HAVE_EUIDACCESS=1;
7384
7407
  HAVE_FACCESSAT=1;
 
7408
  HAVE_FCHDIR=1;
7385
7409
  HAVE_FCHOWNAT=1;
7386
7410
  HAVE_FSYNC=1;
7387
7411
  HAVE_FTRUNCATE=1;
7406
7430
  HAVE_USLEEP=1;
7407
7431
  HAVE_DECL_ENVIRON=1;
7408
7432
  HAVE_DECL_GETLOGIN_R=1;
 
7433
  HAVE_DECL_GETPAGESIZE=1;
7409
7434
  HAVE_DECL_GETUSERSHELL=1;
7410
7435
  HAVE_OS_H=0;
7411
7436
  HAVE_SYS_PARAM_H=0;
7413
7438
  REPLACE_CLOSE=0;
7414
7439
  REPLACE_DUP=0;
7415
7440
  REPLACE_DUP2=0;
7416
 
  REPLACE_FCHDIR=0;
7417
7441
  REPLACE_FCHOWNAT=0;
7418
7442
  REPLACE_GETCWD=0;
7419
7443
  REPLACE_GETGROUPS=0;
7481
7505
  GNULIB_SNPRINTF=0;
7482
7506
  GNULIB_SPRINTF_POSIX=0;
7483
7507
  GNULIB_STDIO_H_SIGPIPE=0;
 
7508
  GNULIB_TMPFILE=0;
7484
7509
  GNULIB_VASPRINTF=0;
7485
7510
  GNULIB_VDPRINTF=0;
7486
7511
  GNULIB_VFPRINTF=0;
7496
7521
  HAVE_DECL_SNPRINTF=1;
7497
7522
  HAVE_DECL_VSNPRINTF=1;
7498
7523
  HAVE_DPRINTF=1;
 
7524
  HAVE_FSEEKO=1;
 
7525
  HAVE_FTELLO=1;
7499
7526
  HAVE_RENAMEAT=1;
7500
7527
  HAVE_VASPRINTF=1;
7501
7528
  HAVE_VDPRINTF=1;
7522
7549
  REPLACE_SNPRINTF=0;
7523
7550
  REPLACE_SPRINTF=0;
7524
7551
  REPLACE_STDIO_WRITE_FUNCS=0;
 
7552
  REPLACE_TMPFILE=0;
7525
7553
  REPLACE_VASPRINTF=0;
7526
7554
  REPLACE_VDPRINTF=0;
7527
7555
  REPLACE_VFPRINTF=0;
10149
10177
 
10150
10178
 
10151
10179
 
 
10180
 
 
10181
 
 
10182
 
 
10183
 
 
10184
  { $as_echo "$as_me:$LINENO: checking for fseeko" >&5
 
10185
$as_echo_n "checking for fseeko... " >&6; }
 
10186
if test "${gl_cv_func_fseeko+set}" = set; then
 
10187
  $as_echo_n "(cached) " >&6
 
10188
else
 
10189
 
 
10190
      cat >conftest.$ac_ext <<_ACEOF
 
10191
/* confdefs.h.  */
 
10192
_ACEOF
 
10193
cat confdefs.h >>conftest.$ac_ext
 
10194
cat >>conftest.$ac_ext <<_ACEOF
 
10195
/* end confdefs.h.  */
 
10196
#include <stdio.h>
 
10197
 
 
10198
int
 
10199
main ()
 
10200
{
 
10201
fseeko (stdin, 0, 0);
 
10202
  ;
 
10203
  return 0;
 
10204
}
 
10205
_ACEOF
 
10206
rm -f conftest.$ac_objext conftest$ac_exeext
 
10207
if { (ac_try="$ac_link"
 
10208
case "(($ac_try" in
 
10209
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10210
  *) ac_try_echo=$ac_try;;
 
10211
esac
 
10212
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10213
$as_echo "$ac_try_echo") >&5
 
10214
  (eval "$ac_link") 2>conftest.er1
 
10215
  ac_status=$?
 
10216
  grep -v '^ *+' conftest.er1 >conftest.err
 
10217
  rm -f conftest.er1
 
10218
  cat conftest.err >&5
 
10219
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10220
  (exit $ac_status); } && {
 
10221
         test -z "$ac_c_werror_flag" ||
 
10222
         test ! -s conftest.err
 
10223
       } && test -s conftest$ac_exeext && {
 
10224
         test "$cross_compiling" = yes ||
 
10225
         $as_test_x conftest$ac_exeext
 
10226
       }; then
 
10227
  gl_cv_func_fseeko=yes
 
10228
else
 
10229
  $as_echo "$as_me: failed program was:" >&5
 
10230
sed 's/^/| /' conftest.$ac_ext >&5
 
10231
 
 
10232
        gl_cv_func_fseeko=no
 
10233
fi
 
10234
 
 
10235
rm -rf conftest.dSYM
 
10236
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10237
      conftest$ac_exeext conftest.$ac_ext
 
10238
 
 
10239
fi
 
10240
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_fseeko" >&5
 
10241
$as_echo "$gl_cv_func_fseeko" >&6; }
 
10242
 
 
10243
 
10152
10244
    { $as_echo "$as_me:$LINENO: checking whether stdin defaults to large file offsets" >&5
10153
10245
$as_echo_n "checking whether stdin defaults to large file offsets... " >&6; }
10154
10246
if test "${gl_cv_var_stdin_large_offset+set}" = set; then
12776
12868
  GNULIB_STPNCPY=0;
12777
12869
  GNULIB_STRCHRNUL=0;
12778
12870
  GNULIB_STRDUP=0;
 
12871
  GNULIB_STRNCAT=0;
12779
12872
  GNULIB_STRNDUP=0;
12780
12873
  GNULIB_STRNLEN=0;
12781
12874
  GNULIB_STRPBRK=0;
12801
12894
  GNULIB_STRSIGNAL=0;
12802
12895
  GNULIB_STRVERSCMP=0;
12803
12896
  HAVE_MBSLEN=0;
12804
 
    HAVE_DECL_MEMMEM=1;
 
12897
    HAVE_MEMCHR=1;
 
12898
  HAVE_DECL_MEMMEM=1;
12805
12899
  HAVE_MEMPCPY=1;
12806
12900
  HAVE_DECL_MEMRCHR=1;
12807
12901
  HAVE_RAWMEMCHR=1;
12815
12909
  HAVE_STRSEP=1;
12816
12910
  HAVE_STRCASESTR=1;
12817
12911
  HAVE_DECL_STRTOK_R=1;
12818
 
  HAVE_DECL_STRERROR=1;
12819
12912
  HAVE_DECL_STRSIGNAL=1;
12820
12913
  HAVE_STRVERSCMP=1;
12821
12914
  REPLACE_MEMCHR=0;
12822
12915
  REPLACE_MEMMEM=0;
 
12916
  REPLACE_STPNCPY=0;
12823
12917
  REPLACE_STRDUP=0;
12824
12918
  REPLACE_STRSTR=0;
12825
12919
  REPLACE_STRCASESTR=0;
12826
12920
  REPLACE_STRERROR=0;
 
12921
  REPLACE_STRNCAT=0;
12827
12922
  REPLACE_STRNDUP=0;
 
12923
  REPLACE_STRNLEN=0;
12828
12924
  REPLACE_STRSIGNAL=0;
12829
12925
  REPLACE_STRTOK_R=0;
12830
12926
  UNDEFINE_STRTOK_R=0;
12836
12932
 
12837
12933
 
12838
12934
 
 
12935
 
 
12936
 
 
12937
 
 
12938
 
 
12939
 
 
12940
 
12839
12941
  # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
12840
12942
  # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
12841
12943
  # irrelevant for anonymous mappings.
13009
13111
 
13010
13112
 
13011
13113
 
13012
 
 
13013
 
 
13014
 
 
13015
 
 
13016
 
 
13017
 
 
13018
 
 
13019
 
 
13020
 
for ac_func in memchr
13021
 
do
13022
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13023
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13024
 
$as_echo_n "checking for $ac_func... " >&6; }
13025
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13026
 
  $as_echo_n "(cached) " >&6
13027
 
else
13028
 
  cat >conftest.$ac_ext <<_ACEOF
13029
 
/* confdefs.h.  */
13030
 
_ACEOF
13031
 
cat confdefs.h >>conftest.$ac_ext
13032
 
cat >>conftest.$ac_ext <<_ACEOF
13033
 
/* end confdefs.h.  */
13034
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13035
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13036
 
#define $ac_func innocuous_$ac_func
13037
 
 
13038
 
/* System header to define __stub macros and hopefully few prototypes,
13039
 
    which can conflict with char $ac_func (); below.
13040
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13041
 
    <limits.h> exists even on freestanding compilers.  */
13042
 
 
13043
 
#ifdef __STDC__
13044
 
# include <limits.h>
13045
 
#else
13046
 
# include <assert.h>
13047
 
#endif
13048
 
 
13049
 
#undef $ac_func
13050
 
 
13051
 
/* Override any GCC internal prototype to avoid an error.
13052
 
   Use char because int might match the return type of a GCC
13053
 
   builtin and then its argument prototype would still apply.  */
13054
 
#ifdef __cplusplus
13055
 
extern "C"
13056
 
#endif
13057
 
char $ac_func ();
13058
 
/* The GNU C library defines this for functions which it implements
13059
 
    to always fail with ENOSYS.  Some functions are actually named
13060
 
    something starting with __ and the normal name is an alias.  */
13061
 
#if defined __stub_$ac_func || defined __stub___$ac_func
13062
 
choke me
13063
 
#endif
13064
 
 
13065
 
int
13066
 
main ()
13067
 
{
13068
 
return $ac_func ();
13069
 
  ;
13070
 
  return 0;
13071
 
}
13072
 
_ACEOF
13073
 
rm -f conftest.$ac_objext conftest$ac_exeext
13074
 
if { (ac_try="$ac_link"
13075
 
case "(($ac_try" in
13076
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13077
 
  *) ac_try_echo=$ac_try;;
13078
 
esac
13079
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13080
 
$as_echo "$ac_try_echo") >&5
13081
 
  (eval "$ac_link") 2>conftest.er1
13082
 
  ac_status=$?
13083
 
  grep -v '^ *+' conftest.er1 >conftest.err
13084
 
  rm -f conftest.er1
13085
 
  cat conftest.err >&5
13086
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087
 
  (exit $ac_status); } && {
13088
 
         test -z "$ac_c_werror_flag" ||
13089
 
         test ! -s conftest.err
13090
 
       } && test -s conftest$ac_exeext && {
13091
 
         test "$cross_compiling" = yes ||
13092
 
         $as_test_x conftest$ac_exeext
13093
 
       }; then
13094
 
  eval "$as_ac_var=yes"
13095
 
else
13096
 
  $as_echo "$as_me: failed program was:" >&5
13097
 
sed 's/^/| /' conftest.$ac_ext >&5
13098
 
 
13099
 
        eval "$as_ac_var=no"
13100
 
fi
13101
 
 
13102
 
rm -rf conftest.dSYM
13103
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13104
 
      conftest$ac_exeext conftest.$ac_ext
13105
 
fi
13106
 
ac_res=`eval 'as_val=${'$as_ac_var'}
13107
 
                 $as_echo "$as_val"'`
13108
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13109
 
$as_echo "$ac_res" >&6; }
13110
 
as_val=`eval 'as_val=${'$as_ac_var'}
13111
 
                 $as_echo "$as_val"'`
13112
 
   if test "x$as_val" = x""yes; then
13113
 
  cat >>confdefs.h <<_ACEOF
13114
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13115
 
_ACEOF
13116
 
 
13117
 
else
13118
 
 
13119
 
    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
13120
 
 
13121
 
fi
13122
 
done
13123
 
 
13124
 
 
13125
 
  if test $ac_cv_func_memchr = no; then
13126
 
 
13127
 
 
13128
 
for ac_header in bp-sym.h
13129
 
do
13130
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13131
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13132
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13133
 
$as_echo_n "checking for $ac_header... " >&6; }
13134
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13135
 
  $as_echo_n "(cached) " >&6
13136
 
fi
13137
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
13138
 
                 $as_echo "$as_val"'`
13139
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13140
 
$as_echo "$ac_res" >&6; }
13141
 
else
13142
 
  # Is the header compilable?
13143
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13144
 
$as_echo_n "checking $ac_header usability... " >&6; }
13145
 
cat >conftest.$ac_ext <<_ACEOF
13146
 
/* confdefs.h.  */
13147
 
_ACEOF
13148
 
cat confdefs.h >>conftest.$ac_ext
13149
 
cat >>conftest.$ac_ext <<_ACEOF
13150
 
/* end confdefs.h.  */
13151
 
$ac_includes_default
13152
 
#include <$ac_header>
13153
 
_ACEOF
13154
 
rm -f conftest.$ac_objext
13155
 
if { (ac_try="$ac_compile"
13156
 
case "(($ac_try" in
13157
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13158
 
  *) ac_try_echo=$ac_try;;
13159
 
esac
13160
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13161
 
$as_echo "$ac_try_echo") >&5
13162
 
  (eval "$ac_compile") 2>conftest.er1
13163
 
  ac_status=$?
13164
 
  grep -v '^ *+' conftest.er1 >conftest.err
13165
 
  rm -f conftest.er1
13166
 
  cat conftest.err >&5
13167
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168
 
  (exit $ac_status); } && {
13169
 
         test -z "$ac_c_werror_flag" ||
13170
 
         test ! -s conftest.err
13171
 
       } && test -s conftest.$ac_objext; then
13172
 
  ac_header_compiler=yes
13173
 
else
13174
 
  $as_echo "$as_me: failed program was:" >&5
13175
 
sed 's/^/| /' conftest.$ac_ext >&5
13176
 
 
13177
 
        ac_header_compiler=no
13178
 
fi
13179
 
 
13180
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13181
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13182
 
$as_echo "$ac_header_compiler" >&6; }
13183
 
 
13184
 
# Is the header present?
13185
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13186
 
$as_echo_n "checking $ac_header presence... " >&6; }
13187
 
cat >conftest.$ac_ext <<_ACEOF
13188
 
/* confdefs.h.  */
13189
 
_ACEOF
13190
 
cat confdefs.h >>conftest.$ac_ext
13191
 
cat >>conftest.$ac_ext <<_ACEOF
13192
 
/* end confdefs.h.  */
13193
 
#include <$ac_header>
13194
 
_ACEOF
13195
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
13196
 
case "(($ac_try" in
13197
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13198
 
  *) ac_try_echo=$ac_try;;
13199
 
esac
13200
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13201
 
$as_echo "$ac_try_echo") >&5
13202
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13203
 
  ac_status=$?
13204
 
  grep -v '^ *+' conftest.er1 >conftest.err
13205
 
  rm -f conftest.er1
13206
 
  cat conftest.err >&5
13207
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208
 
  (exit $ac_status); } >/dev/null && {
13209
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13210
 
         test ! -s conftest.err
13211
 
       }; then
13212
 
  ac_header_preproc=yes
13213
 
else
13214
 
  $as_echo "$as_me: failed program was:" >&5
13215
 
sed 's/^/| /' conftest.$ac_ext >&5
13216
 
 
13217
 
  ac_header_preproc=no
13218
 
fi
13219
 
 
13220
 
rm -f conftest.err conftest.$ac_ext
13221
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13222
 
$as_echo "$ac_header_preproc" >&6; }
13223
 
 
13224
 
# So?  What about this header?
13225
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13226
 
  yes:no: )
13227
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13228
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13229
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13230
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13231
 
    ac_header_preproc=yes
13232
 
    ;;
13233
 
  no:yes:* )
13234
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13235
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13236
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13237
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13238
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13239
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13240
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13241
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13242
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13243
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13244
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13245
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13246
 
 
13247
 
    ;;
13248
 
esac
13249
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13250
 
$as_echo_n "checking for $ac_header... " >&6; }
13251
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13252
 
  $as_echo_n "(cached) " >&6
13253
 
else
13254
 
  eval "$as_ac_Header=\$ac_header_preproc"
13255
 
fi
13256
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
13257
 
                 $as_echo "$as_val"'`
13258
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13259
 
$as_echo "$ac_res" >&6; }
13260
 
 
13261
 
fi
13262
 
as_val=`eval 'as_val=${'$as_ac_Header'}
13263
 
                 $as_echo "$as_val"'`
13264
 
   if test "x$as_val" = x""yes; then
13265
 
  cat >>confdefs.h <<_ACEOF
13266
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13267
 
_ACEOF
13268
 
 
13269
 
fi
13270
 
 
13271
 
done
13272
 
 
13273
 
 
13274
 
    REPLACE_MEMCHR=1
13275
 
  fi
 
13114
  :
 
13115
 
 
13116
 
 
13117
 
 
13118
 
13276
13119
 
13277
13120
  if test $ac_cv_func_memchr = yes; then
13278
13121
    # Detect platform-specific bugs in some versions of glibc:
13386
13229
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_memchr_works" >&5
13387
13230
$as_echo "$gl_cv_func_memchr_works" >&6; }
13388
13231
    if test "$gl_cv_func_memchr_works" != yes; then
13389
 
 
13390
 
 
13391
 
for ac_header in bp-sym.h
13392
 
do
13393
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13394
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13395
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13396
 
$as_echo_n "checking for $ac_header... " >&6; }
13397
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13398
 
  $as_echo_n "(cached) " >&6
13399
 
fi
13400
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
13401
 
                 $as_echo "$as_val"'`
13402
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13403
 
$as_echo "$ac_res" >&6; }
13404
 
else
13405
 
  # Is the header compilable?
13406
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13407
 
$as_echo_n "checking $ac_header usability... " >&6; }
13408
 
cat >conftest.$ac_ext <<_ACEOF
13409
 
/* confdefs.h.  */
13410
 
_ACEOF
13411
 
cat confdefs.h >>conftest.$ac_ext
13412
 
cat >>conftest.$ac_ext <<_ACEOF
13413
 
/* end confdefs.h.  */
13414
 
$ac_includes_default
13415
 
#include <$ac_header>
13416
 
_ACEOF
13417
 
rm -f conftest.$ac_objext
13418
 
if { (ac_try="$ac_compile"
13419
 
case "(($ac_try" in
13420
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13421
 
  *) ac_try_echo=$ac_try;;
13422
 
esac
13423
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13424
 
$as_echo "$ac_try_echo") >&5
13425
 
  (eval "$ac_compile") 2>conftest.er1
13426
 
  ac_status=$?
13427
 
  grep -v '^ *+' conftest.er1 >conftest.err
13428
 
  rm -f conftest.er1
13429
 
  cat conftest.err >&5
13430
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431
 
  (exit $ac_status); } && {
13432
 
         test -z "$ac_c_werror_flag" ||
13433
 
         test ! -s conftest.err
13434
 
       } && test -s conftest.$ac_objext; then
13435
 
  ac_header_compiler=yes
13436
 
else
13437
 
  $as_echo "$as_me: failed program was:" >&5
13438
 
sed 's/^/| /' conftest.$ac_ext >&5
13439
 
 
13440
 
        ac_header_compiler=no
13441
 
fi
13442
 
 
13443
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13444
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13445
 
$as_echo "$ac_header_compiler" >&6; }
13446
 
 
13447
 
# Is the header present?
13448
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13449
 
$as_echo_n "checking $ac_header presence... " >&6; }
13450
 
cat >conftest.$ac_ext <<_ACEOF
13451
 
/* confdefs.h.  */
13452
 
_ACEOF
13453
 
cat confdefs.h >>conftest.$ac_ext
13454
 
cat >>conftest.$ac_ext <<_ACEOF
13455
 
/* end confdefs.h.  */
13456
 
#include <$ac_header>
13457
 
_ACEOF
13458
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
13459
 
case "(($ac_try" in
13460
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13461
 
  *) ac_try_echo=$ac_try;;
13462
 
esac
13463
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13464
 
$as_echo "$ac_try_echo") >&5
13465
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13466
 
  ac_status=$?
13467
 
  grep -v '^ *+' conftest.er1 >conftest.err
13468
 
  rm -f conftest.er1
13469
 
  cat conftest.err >&5
13470
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471
 
  (exit $ac_status); } >/dev/null && {
13472
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13473
 
         test ! -s conftest.err
13474
 
       }; then
13475
 
  ac_header_preproc=yes
13476
 
else
13477
 
  $as_echo "$as_me: failed program was:" >&5
13478
 
sed 's/^/| /' conftest.$ac_ext >&5
13479
 
 
13480
 
  ac_header_preproc=no
13481
 
fi
13482
 
 
13483
 
rm -f conftest.err conftest.$ac_ext
13484
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13485
 
$as_echo "$ac_header_preproc" >&6; }
13486
 
 
13487
 
# So?  What about this header?
13488
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13489
 
  yes:no: )
13490
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13491
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13492
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13493
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13494
 
    ac_header_preproc=yes
13495
 
    ;;
13496
 
  no:yes:* )
13497
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13498
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13499
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13500
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13501
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13502
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13503
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13504
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13505
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13506
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13507
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13508
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13509
 
 
13510
 
    ;;
13511
 
esac
13512
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13513
 
$as_echo_n "checking for $ac_header... " >&6; }
13514
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13515
 
  $as_echo_n "(cached) " >&6
13516
 
else
13517
 
  eval "$as_ac_Header=\$ac_header_preproc"
13518
 
fi
13519
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
13520
 
                 $as_echo "$as_val"'`
13521
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13522
 
$as_echo "$ac_res" >&6; }
13523
 
 
13524
 
fi
13525
 
as_val=`eval 'as_val=${'$as_ac_Header'}
13526
 
                 $as_echo "$as_val"'`
13527
 
   if test "x$as_val" = x""yes; then
13528
 
  cat >>confdefs.h <<_ACEOF
13529
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13530
 
_ACEOF
13531
 
 
13532
 
fi
13533
 
 
13534
 
done
13535
 
 
13536
 
 
13537
13232
      REPLACE_MEMCHR=1
 
13233
    fi
 
13234
  else
 
13235
    HAVE_MEMCHR=0
 
13236
  fi
 
13237
  if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
13538
13238
 
13539
13239
 
13540
13240
 
13545
13245
 
13546
13246
  gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
13547
13247
 
13548
 
    fi
 
13248
 
 
13249
 
 
13250
for ac_header in bp-sym.h
 
13251
do
 
13252
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
13253
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
13254
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
13255
$as_echo_n "checking for $ac_header... " >&6; }
 
13256
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
13257
  $as_echo_n "(cached) " >&6
 
13258
fi
 
13259
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
13260
                 $as_echo "$as_val"'`
 
13261
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
13262
$as_echo "$ac_res" >&6; }
 
13263
else
 
13264
  # Is the header compilable?
 
13265
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
13266
$as_echo_n "checking $ac_header usability... " >&6; }
 
13267
cat >conftest.$ac_ext <<_ACEOF
 
13268
/* confdefs.h.  */
 
13269
_ACEOF
 
13270
cat confdefs.h >>conftest.$ac_ext
 
13271
cat >>conftest.$ac_ext <<_ACEOF
 
13272
/* end confdefs.h.  */
 
13273
$ac_includes_default
 
13274
#include <$ac_header>
 
13275
_ACEOF
 
13276
rm -f conftest.$ac_objext
 
13277
if { (ac_try="$ac_compile"
 
13278
case "(($ac_try" in
 
13279
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13280
  *) ac_try_echo=$ac_try;;
 
13281
esac
 
13282
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13283
$as_echo "$ac_try_echo") >&5
 
13284
  (eval "$ac_compile") 2>conftest.er1
 
13285
  ac_status=$?
 
13286
  grep -v '^ *+' conftest.er1 >conftest.err
 
13287
  rm -f conftest.er1
 
13288
  cat conftest.err >&5
 
13289
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13290
  (exit $ac_status); } && {
 
13291
         test -z "$ac_c_werror_flag" ||
 
13292
         test ! -s conftest.err
 
13293
       } && test -s conftest.$ac_objext; then
 
13294
  ac_header_compiler=yes
 
13295
else
 
13296
  $as_echo "$as_me: failed program was:" >&5
 
13297
sed 's/^/| /' conftest.$ac_ext >&5
 
13298
 
 
13299
        ac_header_compiler=no
 
13300
fi
 
13301
 
 
13302
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13303
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
13304
$as_echo "$ac_header_compiler" >&6; }
 
13305
 
 
13306
# Is the header present?
 
13307
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
13308
$as_echo_n "checking $ac_header presence... " >&6; }
 
13309
cat >conftest.$ac_ext <<_ACEOF
 
13310
/* confdefs.h.  */
 
13311
_ACEOF
 
13312
cat confdefs.h >>conftest.$ac_ext
 
13313
cat >>conftest.$ac_ext <<_ACEOF
 
13314
/* end confdefs.h.  */
 
13315
#include <$ac_header>
 
13316
_ACEOF
 
13317
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
13318
case "(($ac_try" in
 
13319
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13320
  *) ac_try_echo=$ac_try;;
 
13321
esac
 
13322
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13323
$as_echo "$ac_try_echo") >&5
 
13324
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
13325
  ac_status=$?
 
13326
  grep -v '^ *+' conftest.er1 >conftest.err
 
13327
  rm -f conftest.er1
 
13328
  cat conftest.err >&5
 
13329
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13330
  (exit $ac_status); } >/dev/null && {
 
13331
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
13332
         test ! -s conftest.err
 
13333
       }; then
 
13334
  ac_header_preproc=yes
 
13335
else
 
13336
  $as_echo "$as_me: failed program was:" >&5
 
13337
sed 's/^/| /' conftest.$ac_ext >&5
 
13338
 
 
13339
  ac_header_preproc=no
 
13340
fi
 
13341
 
 
13342
rm -f conftest.err conftest.$ac_ext
 
13343
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
13344
$as_echo "$ac_header_preproc" >&6; }
 
13345
 
 
13346
# So?  What about this header?
 
13347
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
13348
  yes:no: )
 
13349
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
13350
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
13351
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
13352
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
13353
    ac_header_preproc=yes
 
13354
    ;;
 
13355
  no:yes:* )
 
13356
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
13357
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
13358
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
13359
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
13360
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
13361
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
13362
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
13363
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
13364
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
13365
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
13366
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
13367
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
13368
 
 
13369
    ;;
 
13370
esac
 
13371
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
13372
$as_echo_n "checking for $ac_header... " >&6; }
 
13373
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
13374
  $as_echo_n "(cached) " >&6
 
13375
else
 
13376
  eval "$as_ac_Header=\$ac_header_preproc"
 
13377
fi
 
13378
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
13379
                 $as_echo "$as_val"'`
 
13380
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
13381
$as_echo "$ac_res" >&6; }
 
13382
 
 
13383
fi
 
13384
as_val=`eval 'as_val=${'$as_ac_Header'}
 
13385
                 $as_echo "$as_val"'`
 
13386
   if test "x$as_val" = x""yes; then
 
13387
  cat >>confdefs.h <<_ACEOF
 
13388
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
13389
_ACEOF
 
13390
 
 
13391
fi
 
13392
 
 
13393
done
 
13394
 
 
13395
 
13549
13396
  fi
13550
13397
 
13551
13398
# Check whether --enable-largefile was given.
13905
13752
fi
13906
13753
 
13907
13754
 
 
13755
 
 
13756
 
 
13757
 
 
13758
 
 
13759
 
 
13760
 
13908
13761
  GNULIB_MKTIME=0;
13909
13762
  GNULIB_NANOSLEEP=0;
13910
13763
  GNULIB_STRPTIME=0;
13911
13764
  GNULIB_TIMEGM=0;
13912
13765
  GNULIB_TIME_R=0;
 
13766
    HAVE_LOCALTIME_R=1;
 
13767
  HAVE_NANOSLEEP=1;
 
13768
  HAVE_STRPTIME=1;
 
13769
  HAVE_TIMEGM=1;
13913
13770
        REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
13914
13771
  REPLACE_MKTIME=GNULIB_PORTCHECK;
13915
13772
  REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
13916
 
  REPLACE_STRPTIME=GNULIB_PORTCHECK;
13917
13773
  REPLACE_TIMEGM=GNULIB_PORTCHECK;
13918
13774
 
13919
13775
 
15060
14916
 
15061
14917
 
15062
14918
 
 
14919
 
 
14920
 
 
14921
 
 
14922
 
 
14923
 
 
14924
 
15063
14925
      { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
15064
14926
$as_echo_n "checking whether snprintf is declared... " >&6; }
15065
14927
if test "${ac_cv_have_decl_snprintf+set}" = set; then
15457
15319
  HAVE_DECL_STRNCASECMP=1;
15458
15320
 
15459
15321
 
 
15322
 
 
15323
 
 
15324
 
 
15325
 
 
15326
 
 
15327
 
15460
15328
      { $as_echo "$as_me:$LINENO: checking whether strdup is declared" >&5
15461
15329
$as_echo_n "checking whether strdup is declared... " >&6; }
15462
15330
if test "${ac_cv_have_decl_strdup+set}" = set; then
15963
15831
 
15964
15832
 
15965
15833
 
15966
 
  for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup     strndup strnlen strpbrk strsep strcasestr strtok_r strsignal strverscmp; do
 
15834
 
 
15835
  for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup      strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal      strverscmp; do
15967
15836
    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15968
15837
    { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
15969
15838
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16325
16194
 
16326
16195
 
16327
16196
 
 
16197
 
 
16198
 
 
16199
 
 
16200
 
 
16201
 
 
16202
 
16328
16203
 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
16329
16204
$as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
16330
16205
if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
16431
16306
fi
16432
16307
 
16433
16308
 
 
16309
 
 
16310
      { $as_echo "$as_me:$LINENO: checking whether strtok_r is declared" >&5
 
16311
$as_echo_n "checking whether strtok_r is declared... " >&6; }
 
16312
if test "${ac_cv_have_decl_strtok_r+set}" = set; then
 
16313
  $as_echo_n "(cached) " >&6
 
16314
else
 
16315
  cat >conftest.$ac_ext <<_ACEOF
 
16316
/* confdefs.h.  */
 
16317
_ACEOF
 
16318
cat confdefs.h >>conftest.$ac_ext
 
16319
cat >>conftest.$ac_ext <<_ACEOF
 
16320
/* end confdefs.h.  */
 
16321
$ac_includes_default
 
16322
int
 
16323
main ()
 
16324
{
 
16325
#ifndef strtok_r
 
16326
  (void) strtok_r;
 
16327
#endif
 
16328
 
 
16329
  ;
 
16330
  return 0;
 
16331
}
 
16332
_ACEOF
 
16333
rm -f conftest.$ac_objext
 
16334
if { (ac_try="$ac_compile"
 
16335
case "(($ac_try" in
 
16336
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16337
  *) ac_try_echo=$ac_try;;
 
16338
esac
 
16339
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
16340
$as_echo "$ac_try_echo") >&5
 
16341
  (eval "$ac_compile") 2>conftest.er1
 
16342
  ac_status=$?
 
16343
  grep -v '^ *+' conftest.er1 >conftest.err
 
16344
  rm -f conftest.er1
 
16345
  cat conftest.err >&5
 
16346
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16347
  (exit $ac_status); } && {
 
16348
         test -z "$ac_c_werror_flag" ||
 
16349
         test ! -s conftest.err
 
16350
       } && test -s conftest.$ac_objext; then
 
16351
  ac_cv_have_decl_strtok_r=yes
 
16352
else
 
16353
  $as_echo "$as_me: failed program was:" >&5
 
16354
sed 's/^/| /' conftest.$ac_ext >&5
 
16355
 
 
16356
        ac_cv_have_decl_strtok_r=no
 
16357
fi
 
16358
 
 
16359
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16360
fi
 
16361
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtok_r" >&5
 
16362
$as_echo "$ac_cv_have_decl_strtok_r" >&6; }
 
16363
if test "x$ac_cv_have_decl_strtok_r" = x""yes; then
 
16364
 
 
16365
cat >>confdefs.h <<_ACEOF
 
16366
#define HAVE_DECL_STRTOK_R 1
 
16367
_ACEOF
 
16368
 
 
16369
 
 
16370
else
 
16371
  cat >>confdefs.h <<_ACEOF
 
16372
#define HAVE_DECL_STRTOK_R 0
 
16373
_ACEOF
 
16374
 
 
16375
 
 
16376
fi
 
16377
 
 
16378
 
 
16379
 
16434
16380
{ $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
16435
16381
$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
16436
16382
if test "${ac_cv_header_stat_broken+set}" = set; then
16710
16656
 
16711
16657
 
16712
16658
 
 
16659
 
 
16660
 
 
16661
 
 
16662
 
 
16663
 
 
16664
 
 
16665
 
 
16666
 
 
16667
 
 
16668
 
 
16669
 
 
16670
 
 
16671
 
 
16672
 
 
16673
 
 
16674
 
 
16675
 
 
16676
 
16713
16677
  { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
16714
16678
$as_echo_n "checking for wint_t... " >&6; }
16715
16679
if test "${gt_cv_c_wint_t+set}" = set; then
17075
17039
 
17076
17040
 
17077
17041
 
 
17042
     { $as_echo "$as_me:$LINENO: checking whether snprintf returns a byte count as in C99" >&5
 
17043
$as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
 
17044
if test "${gl_cv_func_snprintf_retval_c99+set}" = set; then
 
17045
  $as_echo_n "(cached) " >&6
 
17046
else
 
17047
 
 
17048
      if test "$cross_compiling" = yes; then
 
17049
 
 
17050
       case "$host_os" in
 
17051
                               # Guess yes on glibc systems.
 
17052
         *-gnu*)               gl_cv_func_snprintf_retval_c99="guessing yes";;
 
17053
                               # Guess yes on FreeBSD >= 5.
 
17054
         freebsd[1-4]*)        gl_cv_func_snprintf_retval_c99="guessing no";;
 
17055
         freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
 
17056
                               # Guess yes on MacOS X >= 10.3.
 
17057
         darwin[1-6].*)        gl_cv_func_snprintf_retval_c99="guessing no";;
 
17058
         darwin*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
 
17059
                               # Guess yes on OpenBSD >= 3.9.
 
17060
         openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
 
17061
                               gl_cv_func_snprintf_retval_c99="guessing no";;
 
17062
         openbsd*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
 
17063
                               # Guess yes on Solaris >= 2.6.
 
17064
         solaris2.[0-5]*)      gl_cv_func_snprintf_retval_c99="guessing no";;
 
17065
         solaris*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
 
17066
                               # Guess yes on AIX >= 4.
 
17067
         aix[1-3]*)            gl_cv_func_snprintf_retval_c99="guessing no";;
 
17068
         aix*)                 gl_cv_func_snprintf_retval_c99="guessing yes";;
 
17069
                               # Guess yes on NetBSD >= 3.
 
17070
         netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
 
17071
                               gl_cv_func_snprintf_retval_c99="guessing no";;
 
17072
         netbsd*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
 
17073
                               # Guess yes on BeOS.
 
17074
         beos*)                gl_cv_func_snprintf_retval_c99="guessing yes";;
 
17075
                               # If we don't know, assume the worst.
 
17076
         *)                    gl_cv_func_snprintf_retval_c99="guessing no";;
 
17077
       esac
 
17078
 
 
17079
else
 
17080
  cat >conftest.$ac_ext <<_ACEOF
 
17081
/* confdefs.h.  */
 
17082
_ACEOF
 
17083
cat confdefs.h >>conftest.$ac_ext
 
17084
cat >>conftest.$ac_ext <<_ACEOF
 
17085
/* end confdefs.h.  */
 
17086
 
 
17087
#include <stdio.h>
 
17088
#include <string.h>
 
17089
static char buf[100];
 
17090
int main ()
 
17091
{
 
17092
  strcpy (buf, "ABCDEF");
 
17093
  if (snprintf (buf, 3, "%d %d", 4567, 89) != 7)
 
17094
    return 1;
 
17095
  return 0;
 
17096
}
 
17097
_ACEOF
 
17098
rm -f conftest$ac_exeext
 
17099
if { (ac_try="$ac_link"
 
17100
case "(($ac_try" in
 
17101
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17102
  *) ac_try_echo=$ac_try;;
 
17103
esac
 
17104
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
17105
$as_echo "$ac_try_echo") >&5
 
17106
  (eval "$ac_link") 2>&5
 
17107
  ac_status=$?
 
17108
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17109
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
17110
  { (case "(($ac_try" in
 
17111
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17112
  *) ac_try_echo=$ac_try;;
 
17113
esac
 
17114
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
17115
$as_echo "$ac_try_echo") >&5
 
17116
  (eval "$ac_try") 2>&5
 
17117
  ac_status=$?
 
17118
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17119
  (exit $ac_status); }; }; then
 
17120
  gl_cv_func_snprintf_retval_c99=yes
 
17121
else
 
17122
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
17123
$as_echo "$as_me: failed program was:" >&5
 
17124
sed 's/^/| /' conftest.$ac_ext >&5
 
17125
 
 
17126
( exit $ac_status )
 
17127
gl_cv_func_snprintf_retval_c99=no
 
17128
fi
 
17129
rm -rf conftest.dSYM
 
17130
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
17131
fi
 
17132
 
 
17133
 
 
17134
 
 
17135
fi
 
17136
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_snprintf_retval_c99" >&5
 
17137
$as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
 
17138
 
 
17139
 
 
17140
 
 
17141
 
17078
17142
 
17079
17143
 
17080
17144
 
17255
17319
 
17256
17320
 
17257
17321
 
 
17322
  case "$gl_cv_func_snprintf_retval_c99" in
 
17323
    *yes)
 
17324
 
 
17325
cat >>confdefs.h <<\_ACEOF
 
17326
#define HAVE_SNPRINTF_RETVAL_C99 1
 
17327
_ACEOF
 
17328
 
 
17329
      ;;
 
17330
  esac
 
17331
 
17258
17332
 
17259
17333
  XGETTEXT_EXTRA_OPTIONS=
17260
17334
 
17468
17542
 
17469
17543
 
17470
17544
 
 
17545
      { $as_echo "$as_me:$LINENO: checking whether alarm is declared" >&5
 
17546
$as_echo_n "checking whether alarm is declared... " >&6; }
 
17547
if test "${ac_cv_have_decl_alarm+set}" = set; then
 
17548
  $as_echo_n "(cached) " >&6
 
17549
else
 
17550
  cat >conftest.$ac_ext <<_ACEOF
 
17551
/* confdefs.h.  */
 
17552
_ACEOF
 
17553
cat confdefs.h >>conftest.$ac_ext
 
17554
cat >>conftest.$ac_ext <<_ACEOF
 
17555
/* end confdefs.h.  */
 
17556
$ac_includes_default
 
17557
int
 
17558
main ()
 
17559
{
 
17560
#ifndef alarm
 
17561
  (void) alarm;
 
17562
#endif
 
17563
 
 
17564
  ;
 
17565
  return 0;
 
17566
}
 
17567
_ACEOF
 
17568
rm -f conftest.$ac_objext
 
17569
if { (ac_try="$ac_compile"
 
17570
case "(($ac_try" in
 
17571
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17572
  *) ac_try_echo=$ac_try;;
 
17573
esac
 
17574
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
17575
$as_echo "$ac_try_echo") >&5
 
17576
  (eval "$ac_compile") 2>conftest.er1
 
17577
  ac_status=$?
 
17578
  grep -v '^ *+' conftest.er1 >conftest.err
 
17579
  rm -f conftest.er1
 
17580
  cat conftest.err >&5
 
17581
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17582
  (exit $ac_status); } && {
 
17583
         test -z "$ac_c_werror_flag" ||
 
17584
         test ! -s conftest.err
 
17585
       } && test -s conftest.$ac_objext; then
 
17586
  ac_cv_have_decl_alarm=yes
 
17587
else
 
17588
  $as_echo "$as_me: failed program was:" >&5
 
17589
sed 's/^/| /' conftest.$ac_ext >&5
 
17590
 
 
17591
        ac_cv_have_decl_alarm=no
 
17592
fi
 
17593
 
 
17594
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17595
fi
 
17596
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_alarm" >&5
 
17597
$as_echo "$ac_cv_have_decl_alarm" >&6; }
 
17598
if test "x$ac_cv_have_decl_alarm" = x""yes; then
 
17599
 
 
17600
cat >>confdefs.h <<_ACEOF
 
17601
#define HAVE_DECL_ALARM 1
 
17602
_ACEOF
 
17603
 
 
17604
 
 
17605
else
 
17606
  cat >>confdefs.h <<_ACEOF
 
17607
#define HAVE_DECL_ALARM 0
 
17608
_ACEOF
 
17609
 
 
17610
 
 
17611
fi
 
17612
 
 
17613
 
 
17614
 
 
17615
 
17471
17616
 
17472
17617
 
17473
17618
 
18269
18414
 
18270
18415
 
18271
18416
 
18272
 
 
18273
 
 
18274
 
  { $as_echo "$as_me:$LINENO: checking for fseeko" >&5
18275
 
$as_echo_n "checking for fseeko... " >&6; }
18276
 
if test "${gl_cv_func_fseeko+set}" = set; then
18277
 
  $as_echo_n "(cached) " >&6
18278
 
else
18279
 
 
18280
 
      cat >conftest.$ac_ext <<_ACEOF
18281
 
/* confdefs.h.  */
18282
 
_ACEOF
18283
 
cat confdefs.h >>conftest.$ac_ext
18284
 
cat >>conftest.$ac_ext <<_ACEOF
18285
 
/* end confdefs.h.  */
18286
 
#include <stdio.h>
18287
 
 
18288
 
int
18289
 
main ()
18290
 
{
18291
 
fseeko (stdin, 0, 0);
18292
 
  ;
18293
 
  return 0;
18294
 
}
18295
 
_ACEOF
18296
 
rm -f conftest.$ac_objext conftest$ac_exeext
18297
 
if { (ac_try="$ac_link"
18298
 
case "(($ac_try" in
18299
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18300
 
  *) ac_try_echo=$ac_try;;
18301
 
esac
18302
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18303
 
$as_echo "$ac_try_echo") >&5
18304
 
  (eval "$ac_link") 2>conftest.er1
18305
 
  ac_status=$?
18306
 
  grep -v '^ *+' conftest.er1 >conftest.err
18307
 
  rm -f conftest.er1
18308
 
  cat conftest.err >&5
18309
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18310
 
  (exit $ac_status); } && {
18311
 
         test -z "$ac_c_werror_flag" ||
18312
 
         test ! -s conftest.err
18313
 
       } && test -s conftest$ac_exeext && {
18314
 
         test "$cross_compiling" = yes ||
18315
 
         $as_test_x conftest$ac_exeext
18316
 
       }; then
18317
 
  gl_cv_func_fseeko=yes
18318
 
else
18319
 
  $as_echo "$as_me: failed program was:" >&5
18320
 
sed 's/^/| /' conftest.$ac_ext >&5
18321
 
 
18322
 
        gl_cv_func_fseeko=no
18323
 
fi
18324
 
 
18325
 
rm -rf conftest.dSYM
18326
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18327
 
      conftest$ac_exeext conftest.$ac_ext
18328
 
 
18329
 
fi
18330
 
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_fseeko" >&5
18331
 
$as_echo "$gl_cv_func_fseeko" >&6; }
18332
 
  if test $gl_cv_func_fseeko = no \
18333
 
      || test $gl_cv_var_stdin_large_offset = no; then
18334
 
 
18335
 
 
18336
 
 
18337
 
 
18338
 
 
18339
 
 
18340
 
 
18341
 
 
18342
 
 
18343
 
  gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
18344
 
 
18345
 
 
18346
 
  REPLACE_FSEEKO=1
18347
 
 
18348
 
 
 
18417
  if test $gl_cv_func_fseeko = no; then
 
18418
    HAVE_FSEEKO=0
 
18419
 
 
18420
 
 
18421
 
 
18422
  if test $gl_cv_func_fseeko = yes; then
 
18423
    REPLACE_FSEEKO=1
 
18424
  fi
 
18425
 
 
18426
 
 
18427
 
 
18428
 
 
18429
 
 
18430
 
 
18431
 
 
18432
 
 
18433
  gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
 
18434
 
 
18435
 
 
18436
 
 
18437
  else
 
18438
    if test $gl_cv_var_stdin_large_offset = no; then
 
18439
 
 
18440
 
 
18441
 
 
18442
  if test $gl_cv_func_fseeko = yes; then
 
18443
    REPLACE_FSEEKO=1
 
18444
  fi
 
18445
 
 
18446
 
 
18447
 
 
18448
 
 
18449
 
 
18450
 
 
18451
 
 
18452
 
 
18453
  gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
 
18454
 
 
18455
 
 
18456
 
 
18457
    fi
18349
18458
  fi
18350
18459
 
18351
18460
 
23770
23879
 
23771
23880
 
23772
23881
 
23773
 
  { $as_echo "$as_me:$LINENO: checking for working mkstemp" >&5
 
23882
 
 
23883
  :
 
23884
 
 
23885
 
 
23886
 
 
23887
 
 
23888
 
 
23889
  if test $ac_cv_func_mkstemp = yes; then
 
23890
    { $as_echo "$as_me:$LINENO: checking for working mkstemp" >&5
23774
23891
$as_echo_n "checking for working mkstemp... " >&6; }
23775
23892
if test "${gl_cv_func_working_mkstemp+set}" = set; then
23776
23893
  $as_echo_n "(cached) " >&6
23777
23894
else
23778
23895
 
23779
 
      mkdir conftest.mkstemp
23780
 
      if test "$cross_compiling" = yes; then
 
23896
        mkdir conftest.mkstemp
 
23897
        if test "$cross_compiling" = yes; then
23781
23898
  gl_cv_func_working_mkstemp=no
23782
23899
else
23783
23900
  cat >conftest.$ac_ext <<_ACEOF
23791
23908
main ()
23792
23909
{
23793
23910
int i;
23794
 
            off_t large = (off_t) 4294967295u;
23795
 
            if (large < 0)
23796
 
              large = 2147483647;
23797
 
            for (i = 0; i < 70; i++)
23798
 
              {
23799
 
                char templ[] = "conftest.mkstemp/coXXXXXX";
23800
 
                int (*mkstemp_function) (char *) = mkstemp;
23801
 
                int fd = mkstemp_function (templ);
23802
 
                if (fd < 0 || lseek (fd, large, SEEK_SET) != large)
23803
 
                  return 1;
23804
 
                close (fd);
23805
 
              }
23806
 
            return 0;
 
23911
              off_t large = (off_t) 4294967295u;
 
23912
              if (large < 0)
 
23913
                large = 2147483647;
 
23914
              for (i = 0; i < 70; i++)
 
23915
                {
 
23916
                  char templ[] = "conftest.mkstemp/coXXXXXX";
 
23917
                  int (*mkstemp_function) (char *) = mkstemp;
 
23918
                  int fd = mkstemp_function (templ);
 
23919
                  if (fd < 0 || lseek (fd, large, SEEK_SET) != large)
 
23920
                    return 1;
 
23921
                  close (fd);
 
23922
                }
 
23923
              return 0;
23807
23924
  ;
23808
23925
  return 0;
23809
23926
}
23844
23961
fi
23845
23962
 
23846
23963
 
23847
 
      rm -rf conftest.mkstemp
 
23964
        rm -rf conftest.mkstemp
23848
23965
 
23849
23966
fi
23850
23967
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_mkstemp" >&5
23851
23968
$as_echo "$gl_cv_func_working_mkstemp" >&6; }
23852
 
 
23853
 
  if test $gl_cv_func_working_mkstemp != yes; then
23854
 
    REPLACE_MKSTEMP=1
 
23969
    if test $gl_cv_func_working_mkstemp != yes; then
 
23970
      REPLACE_MKSTEMP=1
 
23971
 
 
23972
 
 
23973
 
 
23974
 
 
23975
 
 
23976
 
 
23977
 
 
23978
 
 
23979
  gl_LIBOBJS="$gl_LIBOBJS mkstemp.$ac_objext"
 
23980
 
 
23981
 
 
23982
 
 
23983
    fi
 
23984
  else
 
23985
    HAVE_MKSTEMP=0
23855
23986
 
23856
23987
 
23857
23988
 
27543
27674
 
27544
27675
  fi
27545
27676
 
 
27677
  # Code from module sleep:
 
27678
 
 
27679
 
 
27680
            { $as_echo "$as_me:$LINENO: checking whether sleep is declared" >&5
 
27681
$as_echo_n "checking whether sleep is declared... " >&6; }
 
27682
if test "${ac_cv_have_decl_sleep+set}" = set; then
 
27683
  $as_echo_n "(cached) " >&6
 
27684
else
 
27685
  cat >conftest.$ac_ext <<_ACEOF
 
27686
/* confdefs.h.  */
 
27687
_ACEOF
 
27688
cat confdefs.h >>conftest.$ac_ext
 
27689
cat >>conftest.$ac_ext <<_ACEOF
 
27690
/* end confdefs.h.  */
 
27691
#include <unistd.h>
 
27692
 
 
27693
int
 
27694
main ()
 
27695
{
 
27696
#ifndef sleep
 
27697
  (void) sleep;
 
27698
#endif
 
27699
 
 
27700
  ;
 
27701
  return 0;
 
27702
}
 
27703
_ACEOF
 
27704
rm -f conftest.$ac_objext
 
27705
if { (ac_try="$ac_compile"
 
27706
case "(($ac_try" in
 
27707
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
27708
  *) ac_try_echo=$ac_try;;
 
27709
esac
 
27710
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
27711
$as_echo "$ac_try_echo") >&5
 
27712
  (eval "$ac_compile") 2>conftest.er1
 
27713
  ac_status=$?
 
27714
  grep -v '^ *+' conftest.er1 >conftest.err
 
27715
  rm -f conftest.er1
 
27716
  cat conftest.err >&5
 
27717
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27718
  (exit $ac_status); } && {
 
27719
         test -z "$ac_c_werror_flag" ||
 
27720
         test ! -s conftest.err
 
27721
       } && test -s conftest.$ac_objext; then
 
27722
  ac_cv_have_decl_sleep=yes
 
27723
else
 
27724
  $as_echo "$as_me: failed program was:" >&5
 
27725
sed 's/^/| /' conftest.$ac_ext >&5
 
27726
 
 
27727
        ac_cv_have_decl_sleep=no
 
27728
fi
 
27729
 
 
27730
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
27731
fi
 
27732
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sleep" >&5
 
27733
$as_echo "$ac_cv_have_decl_sleep" >&6; }
 
27734
if test "x$ac_cv_have_decl_sleep" = x""yes; then
 
27735
 
 
27736
cat >>confdefs.h <<_ACEOF
 
27737
#define HAVE_DECL_SLEEP 1
 
27738
_ACEOF
 
27739
 
 
27740
 
 
27741
else
 
27742
  cat >>confdefs.h <<_ACEOF
 
27743
#define HAVE_DECL_SLEEP 0
 
27744
_ACEOF
 
27745
 
 
27746
 
 
27747
fi
 
27748
 
 
27749
 
 
27750
 
 
27751
  :
 
27752
 
 
27753
 
 
27754
 
 
27755
 
 
27756
 
 
27757
  if test $ac_cv_have_decl_sleep != yes; then
 
27758
    HAVE_SLEEP=0
 
27759
 
 
27760
 
 
27761
 
 
27762
 
 
27763
 
 
27764
 
 
27765
 
 
27766
 
 
27767
  gl_LIBOBJS="$gl_LIBOBJS sleep.$ac_objext"
 
27768
 
 
27769
  else
 
27770
        { $as_echo "$as_me:$LINENO: checking for working sleep" >&5
 
27771
$as_echo_n "checking for working sleep... " >&6; }
 
27772
if test "${gl_cv_func_sleep_works+set}" = set; then
 
27773
  $as_echo_n "(cached) " >&6
 
27774
else
 
27775
  if test "$cross_compiling" = yes; then
 
27776
  gl_cv_func_sleep_works="guessing no"
 
27777
else
 
27778
  cat >conftest.$ac_ext <<_ACEOF
 
27779
/* confdefs.h.  */
 
27780
_ACEOF
 
27781
cat confdefs.h >>conftest.$ac_ext
 
27782
cat >>conftest.$ac_ext <<_ACEOF
 
27783
/* end confdefs.h.  */
 
27784
 
 
27785
#include <errno.h>
 
27786
#include <unistd.h>
 
27787
#include <signal.h>
 
27788
static void
 
27789
handle_alarm (int sig)
 
27790
{
 
27791
  if (sig != SIGALRM)
 
27792
    _exit (2);
 
27793
}
 
27794
 
 
27795
int
 
27796
main ()
 
27797
{
 
27798
 
 
27799
    /* Failure to compile this test due to missing alarm is okay,
 
27800
       since all such platforms (mingw) also lack sleep.  */
 
27801
    unsigned int pentecost = 50 * 24 * 60 * 60; /* 50 days.  */
 
27802
    unsigned int remaining;
 
27803
    signal (SIGALRM, handle_alarm);
 
27804
    alarm (1);
 
27805
    remaining = sleep (pentecost);
 
27806
    return !(pentecost - 10 < remaining && remaining <= pentecost);
 
27807
  ;
 
27808
  return 0;
 
27809
}
 
27810
_ACEOF
 
27811
rm -f conftest$ac_exeext
 
27812
if { (ac_try="$ac_link"
 
27813
case "(($ac_try" in
 
27814
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
27815
  *) ac_try_echo=$ac_try;;
 
27816
esac
 
27817
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
27818
$as_echo "$ac_try_echo") >&5
 
27819
  (eval "$ac_link") 2>&5
 
27820
  ac_status=$?
 
27821
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27822
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
27823
  { (case "(($ac_try" in
 
27824
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
27825
  *) ac_try_echo=$ac_try;;
 
27826
esac
 
27827
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
27828
$as_echo "$ac_try_echo") >&5
 
27829
  (eval "$ac_try") 2>&5
 
27830
  ac_status=$?
 
27831
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27832
  (exit $ac_status); }; }; then
 
27833
  gl_cv_func_sleep_works=yes
 
27834
else
 
27835
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
27836
$as_echo "$as_me: failed program was:" >&5
 
27837
sed 's/^/| /' conftest.$ac_ext >&5
 
27838
 
 
27839
( exit $ac_status )
 
27840
gl_cv_func_sleep_works=no
 
27841
fi
 
27842
rm -rf conftest.dSYM
 
27843
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
27844
fi
 
27845
 
 
27846
 
 
27847
fi
 
27848
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_sleep_works" >&5
 
27849
$as_echo "$gl_cv_func_sleep_works" >&6; }
 
27850
    if test "$gl_cv_func_sleep_works" != yes; then
 
27851
      REPLACE_SLEEP=1
 
27852
 
 
27853
 
 
27854
 
 
27855
 
 
27856
 
 
27857
 
 
27858
 
 
27859
 
 
27860
  gl_LIBOBJS="$gl_LIBOBJS sleep.$ac_objext"
 
27861
 
 
27862
    fi
 
27863
  fi
 
27864
 
 
27865
 
 
27866
 
 
27867
 
 
27868
  GNULIB_SLEEP=1
 
27869
 
 
27870
 
 
27871
 
 
27872
cat >>confdefs.h <<\_ACEOF
 
27873
#define GNULIB_TEST_SLEEP 1
 
27874
_ACEOF
 
27875
 
 
27876
 
 
27877
 
27546
27878
  # Code from module snprintf:
27547
27879
 
27548
27880
 
30698
31030
 
30699
31031
 
30700
31032
 
30701
 
  for gl_func in dprintf fpurge fseeko ftello getdelim getline popen renameat     snprintf vdprintf vsnprintf; do
 
31033
 
 
31034
  for gl_func in dprintf fpurge fseeko ftello getdelim getline popen renameat     snprintf tmpfile vdprintf vsnprintf; do
30702
31035
    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
30703
31036
    { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
30704
31037
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
31718
32051
 
31719
32052
 
31720
32053
 
31721
 
  if test $gl_cv_func_malloc_posix != yes; then
31722
 
    REPLACE_STRDUP=1
 
32054
 
 
32055
  :
 
32056
 
 
32057
 
 
32058
 
 
32059
 
 
32060
 
 
32061
  if test $ac_cv_func_strdup = yes; then
 
32062
    if test $gl_cv_func_malloc_posix != yes; then
 
32063
      REPLACE_STRDUP=1
31723
32064
 
31724
32065
 
31725
32066
 
31730
32071
 
31731
32072
  gl_LIBOBJS="$gl_LIBOBJS strdup.$ac_objext"
31732
32073
 
 
32074
      :
 
32075
    fi
31733
32076
  else
31734
32077
 
31735
32078
 
31739
32082
 
31740
32083
 
31741
32084
 
31742
 
 
31743
 
for ac_func in strdup
31744
 
do
31745
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31746
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
31747
 
$as_echo_n "checking for $ac_func... " >&6; }
31748
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31749
 
  $as_echo_n "(cached) " >&6
31750
 
else
31751
 
  cat >conftest.$ac_ext <<_ACEOF
31752
 
/* confdefs.h.  */
31753
 
_ACEOF
31754
 
cat confdefs.h >>conftest.$ac_ext
31755
 
cat >>conftest.$ac_ext <<_ACEOF
31756
 
/* end confdefs.h.  */
31757
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31758
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31759
 
#define $ac_func innocuous_$ac_func
31760
 
 
31761
 
/* System header to define __stub macros and hopefully few prototypes,
31762
 
    which can conflict with char $ac_func (); below.
31763
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31764
 
    <limits.h> exists even on freestanding compilers.  */
31765
 
 
31766
 
#ifdef __STDC__
31767
 
# include <limits.h>
31768
 
#else
31769
 
# include <assert.h>
31770
 
#endif
31771
 
 
31772
 
#undef $ac_func
31773
 
 
31774
 
/* Override any GCC internal prototype to avoid an error.
31775
 
   Use char because int might match the return type of a GCC
31776
 
   builtin and then its argument prototype would still apply.  */
31777
 
#ifdef __cplusplus
31778
 
extern "C"
31779
 
#endif
31780
 
char $ac_func ();
31781
 
/* The GNU C library defines this for functions which it implements
31782
 
    to always fail with ENOSYS.  Some functions are actually named
31783
 
    something starting with __ and the normal name is an alias.  */
31784
 
#if defined __stub_$ac_func || defined __stub___$ac_func
31785
 
choke me
31786
 
#endif
31787
 
 
31788
 
int
31789
 
main ()
31790
 
{
31791
 
return $ac_func ();
31792
 
  ;
31793
 
  return 0;
31794
 
}
31795
 
_ACEOF
31796
 
rm -f conftest.$ac_objext conftest$ac_exeext
31797
 
if { (ac_try="$ac_link"
31798
 
case "(($ac_try" in
31799
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31800
 
  *) ac_try_echo=$ac_try;;
31801
 
esac
31802
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31803
 
$as_echo "$ac_try_echo") >&5
31804
 
  (eval "$ac_link") 2>conftest.er1
31805
 
  ac_status=$?
31806
 
  grep -v '^ *+' conftest.er1 >conftest.err
31807
 
  rm -f conftest.er1
31808
 
  cat conftest.err >&5
31809
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31810
 
  (exit $ac_status); } && {
31811
 
         test -z "$ac_c_werror_flag" ||
31812
 
         test ! -s conftest.err
31813
 
       } && test -s conftest$ac_exeext && {
31814
 
         test "$cross_compiling" = yes ||
31815
 
         $as_test_x conftest$ac_exeext
31816
 
       }; then
31817
 
  eval "$as_ac_var=yes"
31818
 
else
31819
 
  $as_echo "$as_me: failed program was:" >&5
31820
 
sed 's/^/| /' conftest.$ac_ext >&5
31821
 
 
31822
 
        eval "$as_ac_var=no"
31823
 
fi
31824
 
 
31825
 
rm -rf conftest.dSYM
31826
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31827
 
      conftest$ac_exeext conftest.$ac_ext
31828
 
fi
31829
 
ac_res=`eval 'as_val=${'$as_ac_var'}
31830
 
                 $as_echo "$as_val"'`
31831
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31832
 
$as_echo "$ac_res" >&6; }
31833
 
as_val=`eval 'as_val=${'$as_ac_var'}
31834
 
                 $as_echo "$as_val"'`
31835
 
   if test "x$as_val" = x""yes; then
31836
 
  cat >>confdefs.h <<_ACEOF
31837
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31838
 
_ACEOF
31839
 
 
31840
 
else
31841
 
 
31842
 
    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
31843
 
 
31844
 
fi
31845
 
done
31846
 
 
31847
 
 
 
32085
  gl_LIBOBJS="$gl_LIBOBJS strdup.$ac_objext"
 
32086
 
 
32087
    :
31848
32088
  fi
31849
32089
 
31850
32090
  :
31856
32096
  if test $ac_cv_have_decl_strdup = no; then
31857
32097
    HAVE_DECL_STRDUP=0
31858
32098
  fi
31859
 
  :
31860
32099
 
31861
32100
 
31862
32101
 
32060
32299
 
32061
32300
 
32062
32301
 
 
32302
 
32063
32303
  :
32064
32304
 
32065
32305
 
32159
32399
 
32160
32400
 
32161
32401
  if test $ac_cv_func_strnlen_working = no; then
 
32402
    REPLACE_STRNLEN=1
32162
32403
    # This is necessary because automake-1.6.1 doesn't understand
32163
32404
    # that the above use of AC_FUNC_STRNLEN means we may have to use
32164
32405
    # lib/strnlen.c.
32165
32406
    #AC_LIBOBJ([strnlen])
32166
 
 
32167
 
cat >>confdefs.h <<\_ACEOF
32168
 
#define strnlen rpl_strnlen
32169
 
_ACEOF
32170
 
 
32171
32407
    :
32172
32408
  fi
32173
32409
 
32189
32425
 
32190
32426
 
32191
32427
 
32192
 
 
32193
 
 
32194
 
 
32195
 
 
32196
 
 
32197
 
 
32198
 
 
32199
 
 
32200
 
for ac_func in strptime
32201
 
do
32202
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32203
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
32204
 
$as_echo_n "checking for $ac_func... " >&6; }
32205
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32206
 
  $as_echo_n "(cached) " >&6
32207
 
else
32208
 
  cat >conftest.$ac_ext <<_ACEOF
32209
 
/* confdefs.h.  */
32210
 
_ACEOF
32211
 
cat confdefs.h >>conftest.$ac_ext
32212
 
cat >>conftest.$ac_ext <<_ACEOF
32213
 
/* end confdefs.h.  */
32214
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32215
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32216
 
#define $ac_func innocuous_$ac_func
32217
 
 
32218
 
/* System header to define __stub macros and hopefully few prototypes,
32219
 
    which can conflict with char $ac_func (); below.
32220
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32221
 
    <limits.h> exists even on freestanding compilers.  */
32222
 
 
32223
 
#ifdef __STDC__
32224
 
# include <limits.h>
32225
 
#else
32226
 
# include <assert.h>
32227
 
#endif
32228
 
 
32229
 
#undef $ac_func
32230
 
 
32231
 
/* Override any GCC internal prototype to avoid an error.
32232
 
   Use char because int might match the return type of a GCC
32233
 
   builtin and then its argument prototype would still apply.  */
32234
 
#ifdef __cplusplus
32235
 
extern "C"
32236
 
#endif
32237
 
char $ac_func ();
32238
 
/* The GNU C library defines this for functions which it implements
32239
 
    to always fail with ENOSYS.  Some functions are actually named
32240
 
    something starting with __ and the normal name is an alias.  */
32241
 
#if defined __stub_$ac_func || defined __stub___$ac_func
32242
 
choke me
32243
 
#endif
32244
 
 
32245
 
int
32246
 
main ()
32247
 
{
32248
 
return $ac_func ();
32249
 
  ;
32250
 
  return 0;
32251
 
}
32252
 
_ACEOF
32253
 
rm -f conftest.$ac_objext conftest$ac_exeext
32254
 
if { (ac_try="$ac_link"
32255
 
case "(($ac_try" in
32256
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32257
 
  *) ac_try_echo=$ac_try;;
32258
 
esac
32259
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32260
 
$as_echo "$ac_try_echo") >&5
32261
 
  (eval "$ac_link") 2>conftest.er1
32262
 
  ac_status=$?
32263
 
  grep -v '^ *+' conftest.er1 >conftest.err
32264
 
  rm -f conftest.er1
32265
 
  cat conftest.err >&5
32266
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32267
 
  (exit $ac_status); } && {
32268
 
         test -z "$ac_c_werror_flag" ||
32269
 
         test ! -s conftest.err
32270
 
       } && test -s conftest$ac_exeext && {
32271
 
         test "$cross_compiling" = yes ||
32272
 
         $as_test_x conftest$ac_exeext
32273
 
       }; then
32274
 
  eval "$as_ac_var=yes"
32275
 
else
32276
 
  $as_echo "$as_me: failed program was:" >&5
32277
 
sed 's/^/| /' conftest.$ac_ext >&5
32278
 
 
32279
 
        eval "$as_ac_var=no"
32280
 
fi
32281
 
 
32282
 
rm -rf conftest.dSYM
32283
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32284
 
      conftest$ac_exeext conftest.$ac_ext
32285
 
fi
32286
 
ac_res=`eval 'as_val=${'$as_ac_var'}
32287
 
                 $as_echo "$as_val"'`
32288
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32289
 
$as_echo "$ac_res" >&6; }
32290
 
as_val=`eval 'as_val=${'$as_ac_var'}
32291
 
                 $as_echo "$as_val"'`
32292
 
   if test "x$as_val" = x""yes; then
32293
 
  cat >>confdefs.h <<_ACEOF
32294
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32295
 
_ACEOF
32296
 
 
32297
 
else
32298
 
 
32299
 
    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
32300
 
 
32301
 
fi
32302
 
done
32303
 
 
32304
 
 
32305
 
 
32306
 
  if test $ac_cv_func_strptime = yes; then
32307
 
    REPLACE_STRPTIME=0
32308
 
  else
32309
 
    REPLACE_STRPTIME=1
 
32428
  :
 
32429
 
 
32430
 
 
32431
 
 
32432
 
 
32433
 
 
32434
  if test $ac_cv_func_strptime != yes; then
 
32435
    HAVE_STRPTIME=0
 
32436
 
 
32437
 
 
32438
 
 
32439
 
 
32440
 
 
32441
 
 
32442
 
 
32443
 
 
32444
  gl_LIBOBJS="$gl_LIBOBJS strptime.$ac_objext"
 
32445
 
 
32446
 
 
32447
 
 
32448
  :
 
32449
 
32310
32450
  fi
32311
32451
 
32312
32452
 
32461
32601
 
32462
32602
 
32463
32603
 
 
32604
  # Code from module strtok_r:
 
32605
 
 
32606
 
 
32607
 
 
32608
 
 
32609
 
 
32610
for ac_func in strtok_r
 
32611
do
 
32612
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
32613
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
32614
$as_echo_n "checking for $ac_func... " >&6; }
 
32615
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
32616
  $as_echo_n "(cached) " >&6
 
32617
else
 
32618
  cat >conftest.$ac_ext <<_ACEOF
 
32619
/* confdefs.h.  */
 
32620
_ACEOF
 
32621
cat confdefs.h >>conftest.$ac_ext
 
32622
cat >>conftest.$ac_ext <<_ACEOF
 
32623
/* end confdefs.h.  */
 
32624
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
32625
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
32626
#define $ac_func innocuous_$ac_func
 
32627
 
 
32628
/* System header to define __stub macros and hopefully few prototypes,
 
32629
    which can conflict with char $ac_func (); below.
 
32630
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
32631
    <limits.h> exists even on freestanding compilers.  */
 
32632
 
 
32633
#ifdef __STDC__
 
32634
# include <limits.h>
 
32635
#else
 
32636
# include <assert.h>
 
32637
#endif
 
32638
 
 
32639
#undef $ac_func
 
32640
 
 
32641
/* Override any GCC internal prototype to avoid an error.
 
32642
   Use char because int might match the return type of a GCC
 
32643
   builtin and then its argument prototype would still apply.  */
 
32644
#ifdef __cplusplus
 
32645
extern "C"
 
32646
#endif
 
32647
char $ac_func ();
 
32648
/* The GNU C library defines this for functions which it implements
 
32649
    to always fail with ENOSYS.  Some functions are actually named
 
32650
    something starting with __ and the normal name is an alias.  */
 
32651
#if defined __stub_$ac_func || defined __stub___$ac_func
 
32652
choke me
 
32653
#endif
 
32654
 
 
32655
int
 
32656
main ()
 
32657
{
 
32658
return $ac_func ();
 
32659
  ;
 
32660
  return 0;
 
32661
}
 
32662
_ACEOF
 
32663
rm -f conftest.$ac_objext conftest$ac_exeext
 
32664
if { (ac_try="$ac_link"
 
32665
case "(($ac_try" in
 
32666
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
32667
  *) ac_try_echo=$ac_try;;
 
32668
esac
 
32669
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
32670
$as_echo "$ac_try_echo") >&5
 
32671
  (eval "$ac_link") 2>conftest.er1
 
32672
  ac_status=$?
 
32673
  grep -v '^ *+' conftest.er1 >conftest.err
 
32674
  rm -f conftest.er1
 
32675
  cat conftest.err >&5
 
32676
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32677
  (exit $ac_status); } && {
 
32678
         test -z "$ac_c_werror_flag" ||
 
32679
         test ! -s conftest.err
 
32680
       } && test -s conftest$ac_exeext && {
 
32681
         test "$cross_compiling" = yes ||
 
32682
         $as_test_x conftest$ac_exeext
 
32683
       }; then
 
32684
  eval "$as_ac_var=yes"
 
32685
else
 
32686
  $as_echo "$as_me: failed program was:" >&5
 
32687
sed 's/^/| /' conftest.$ac_ext >&5
 
32688
 
 
32689
        eval "$as_ac_var=no"
 
32690
fi
 
32691
 
 
32692
rm -rf conftest.dSYM
 
32693
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
32694
      conftest$ac_exeext conftest.$ac_ext
 
32695
fi
 
32696
ac_res=`eval 'as_val=${'$as_ac_var'}
 
32697
                 $as_echo "$as_val"'`
 
32698
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
32699
$as_echo "$ac_res" >&6; }
 
32700
as_val=`eval 'as_val=${'$as_ac_var'}
 
32701
                 $as_echo "$as_val"'`
 
32702
   if test "x$as_val" = x""yes; then
 
32703
  cat >>confdefs.h <<_ACEOF
 
32704
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
32705
_ACEOF
 
32706
 
 
32707
fi
 
32708
done
 
32709
 
 
32710
  if test $ac_cv_func_strtok_r = yes; then
 
32711
                        { $as_echo "$as_me:$LINENO: checking whether strtok_r works" >&5
 
32712
$as_echo_n "checking whether strtok_r works... " >&6; }
 
32713
if test "${gl_cv_func_strtok_r_works+set}" = set; then
 
32714
  $as_echo_n "(cached) " >&6
 
32715
else
 
32716
  if test "$cross_compiling" = yes; then
 
32717
 
 
32718
          case "$host_os" in
 
32719
                    # Guess no on glibc systems.
 
32720
            *-gnu*) gl_cv_func_strtok_r_works="guessing no";;
 
32721
            *)      gl_cv_func_strtok_r_works="guessing yes";;
 
32722
          esac
 
32723
 
 
32724
else
 
32725
  cat >conftest.$ac_ext <<_ACEOF
 
32726
/* confdefs.h.  */
 
32727
_ACEOF
 
32728
cat confdefs.h >>conftest.$ac_ext
 
32729
cat >>conftest.$ac_ext <<_ACEOF
 
32730
/* end confdefs.h.  */
 
32731
 
 
32732
              #ifndef __OPTIMIZE__
 
32733
              # define __OPTIMIZE__ 1
 
32734
              #endif
 
32735
              #undef __OPTIMIZE_SIZE__
 
32736
              #undef __NO_INLINE__
 
32737
              #include <stdlib.h>
 
32738
              #include <string.h>
 
32739
 
 
32740
int
 
32741
main ()
 
32742
{
 
32743
char delimiters[] = "xxxxxxxx";
 
32744
              char *save_ptr = (char *) 0xd0d0;
 
32745
              strtok_r (delimiters, "x", &save_ptr);
 
32746
              strtok_r (NULL, "x", &save_ptr);
 
32747
              return 0;
 
32748
 
 
32749
  ;
 
32750
  return 0;
 
32751
}
 
32752
 
 
32753
_ACEOF
 
32754
rm -f conftest$ac_exeext
 
32755
if { (ac_try="$ac_link"
 
32756
case "(($ac_try" in
 
32757
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
32758
  *) ac_try_echo=$ac_try;;
 
32759
esac
 
32760
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
32761
$as_echo "$ac_try_echo") >&5
 
32762
  (eval "$ac_link") 2>&5
 
32763
  ac_status=$?
 
32764
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32765
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
32766
  { (case "(($ac_try" in
 
32767
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
32768
  *) ac_try_echo=$ac_try;;
 
32769
esac
 
32770
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
32771
$as_echo "$ac_try_echo") >&5
 
32772
  (eval "$ac_try") 2>&5
 
32773
  ac_status=$?
 
32774
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32775
  (exit $ac_status); }; }; then
 
32776
  gl_cv_func_strtok_r_works=yes
 
32777
else
 
32778
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
32779
$as_echo "$as_me: failed program was:" >&5
 
32780
sed 's/^/| /' conftest.$ac_ext >&5
 
32781
 
 
32782
( exit $ac_status )
 
32783
gl_cv_func_strtok_r_works=no
 
32784
fi
 
32785
rm -rf conftest.dSYM
 
32786
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
32787
fi
 
32788
 
 
32789
 
 
32790
 
 
32791
fi
 
32792
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_strtok_r_works" >&5
 
32793
$as_echo "$gl_cv_func_strtok_r_works" >&6; }
 
32794
    case "$gl_cv_func_strtok_r_works" in
 
32795
      *no)
 
32796
                                UNDEFINE_STRTOK_R=1
 
32797
        ;;
 
32798
    esac
 
32799
  else
 
32800
 
 
32801
 
 
32802
 
 
32803
 
 
32804
 
 
32805
 
 
32806
 
 
32807
 
 
32808
  gl_LIBOBJS="$gl_LIBOBJS strtok_r.$ac_objext"
 
32809
 
 
32810
 
 
32811
  :
 
32812
 
 
32813
  fi
 
32814
 
 
32815
  :
 
32816
 
 
32817
 
 
32818
 
 
32819
 
 
32820
 
 
32821
  if test $ac_cv_have_decl_strtok_r = no; then
 
32822
    HAVE_DECL_STRTOK_R=0
 
32823
  fi
 
32824
 
 
32825
 
 
32826
 
 
32827
 
 
32828
  GNULIB_STRTOK_R=1
 
32829
 
 
32830
 
 
32831
 
 
32832
cat >>confdefs.h <<\_ACEOF
 
32833
#define GNULIB_TEST_STRTOK_R 1
 
32834
_ACEOF
 
32835
 
 
32836
 
 
32837
 
32464
32838
  # Code from module sys_ioctl:
32465
32839
 
32466
32840
 
34619
34993
 
34620
34994
 
34621
34995
 
34622
 
  { $as_echo "$as_me:$LINENO: checking whether localtime_r is compatible with its POSIX signature" >&5
 
34996
 
 
34997
  :
 
34998
 
 
34999
 
 
35000
 
 
35001
 
 
35002
 
 
35003
  if test $ac_cv_func_localtime_r = yes; then
 
35004
    { $as_echo "$as_me:$LINENO: checking whether localtime_r is compatible with its POSIX signature" >&5
34623
35005
$as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
34624
35006
if test "${gl_cv_time_r_posix+set}" = set; then
34625
35007
  $as_echo_n "(cached) " >&6
34635
35017
main ()
34636
35018
{
34637
35019
/* We don't need to append 'restrict's to the argument types,
34638
 
              even though the POSIX signature has the 'restrict's,
34639
 
              since C99 says they can't affect type compatibility.  */
34640
 
           struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
34641
 
           if (ptr) return 0;
34642
 
           /* Check the return type is a pointer.  On HP-UX 10 it is 'int'.  */
34643
 
           *localtime_r (0, 0);
 
35020
                 even though the POSIX signature has the 'restrict's,
 
35021
                 since C99 says they can't affect type compatibility.  */
 
35022
              struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
 
35023
              if (ptr) return 0;
 
35024
              /* Check the return type is a pointer.
 
35025
                 On HP-UX 10 it is 'int'.  */
 
35026
              *localtime_r (0, 0);
34644
35027
  ;
34645
35028
  return 0;
34646
35029
}
 
35030
 
34647
35031
_ACEOF
34648
35032
rm -f conftest.$ac_objext
34649
35033
if { (ac_try="$ac_compile"
34672
35056
fi
34673
35057
 
34674
35058
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
35059
 
34675
35060
fi
34676
35061
{ $as_echo "$as_me:$LINENO: result: $gl_cv_time_r_posix" >&5
34677
35062
$as_echo "$gl_cv_time_r_posix" >&6; }
34678
 
  if test $gl_cv_time_r_posix = yes; then
34679
 
    REPLACE_LOCALTIME_R=0
 
35063
    if test $gl_cv_time_r_posix = yes; then
 
35064
      REPLACE_LOCALTIME_R=0
 
35065
    else
 
35066
      REPLACE_LOCALTIME_R=1
 
35067
    fi
34680
35068
  else
34681
 
    REPLACE_LOCALTIME_R=1
 
35069
    HAVE_LOCALTIME_R=0
 
35070
  fi
 
35071
  if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
34682
35072
 
34683
35073
 
34684
35074
 
34711
35101
 
34712
35102
 
34713
35103
 
34714
 
  if test $ac_cv_func_working_mktime = no; then
34715
 
    # Assume that timegm is buggy if mktime is.
 
35104
  REPLACE_TIMEGM=0
 
35105
 
 
35106
  :
 
35107
 
 
35108
 
 
35109
 
 
35110
 
 
35111
 
 
35112
  if test $ac_cv_func_timegm = yes; then
 
35113
    if test $ac_cv_func_working_mktime = no; then
 
35114
      # Assume that timegm is buggy if mktime is.
 
35115
      REPLACE_TIMEGM=1
 
35116
    fi
 
35117
  else
 
35118
    HAVE_TIMEGM=0
 
35119
  fi
 
35120
  if test $HAVE_TIMEGM = 0 || test $REPLACE_TIMEGM = 1; then
34716
35121
 
34717
35122
 
34718
35123
 
34723
35128
 
34724
35129
  gl_LIBOBJS="$gl_LIBOBJS timegm.$ac_objext"
34725
35130
 
34726
 
    ac_cv_func_timegm=no
34727
 
  else
34728
 
 
34729
 
 
34730
 
 
34731
 
 
34732
 
 
34733
 
 
34734
 
 
34735
 
 
34736
 
 
34737
 
for ac_func in timegm
34738
 
do
34739
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
34740
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
34741
 
$as_echo_n "checking for $ac_func... " >&6; }
34742
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34743
 
  $as_echo_n "(cached) " >&6
34744
 
else
34745
 
  cat >conftest.$ac_ext <<_ACEOF
34746
 
/* confdefs.h.  */
34747
 
_ACEOF
34748
 
cat confdefs.h >>conftest.$ac_ext
34749
 
cat >>conftest.$ac_ext <<_ACEOF
34750
 
/* end confdefs.h.  */
34751
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34752
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34753
 
#define $ac_func innocuous_$ac_func
34754
 
 
34755
 
/* System header to define __stub macros and hopefully few prototypes,
34756
 
    which can conflict with char $ac_func (); below.
34757
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34758
 
    <limits.h> exists even on freestanding compilers.  */
34759
 
 
34760
 
#ifdef __STDC__
34761
 
# include <limits.h>
34762
 
#else
34763
 
# include <assert.h>
34764
 
#endif
34765
 
 
34766
 
#undef $ac_func
34767
 
 
34768
 
/* Override any GCC internal prototype to avoid an error.
34769
 
   Use char because int might match the return type of a GCC
34770
 
   builtin and then its argument prototype would still apply.  */
34771
 
#ifdef __cplusplus
34772
 
extern "C"
34773
 
#endif
34774
 
char $ac_func ();
34775
 
/* The GNU C library defines this for functions which it implements
34776
 
    to always fail with ENOSYS.  Some functions are actually named
34777
 
    something starting with __ and the normal name is an alias.  */
34778
 
#if defined __stub_$ac_func || defined __stub___$ac_func
34779
 
choke me
34780
 
#endif
34781
 
 
34782
 
int
34783
 
main ()
34784
 
{
34785
 
return $ac_func ();
34786
 
  ;
34787
 
  return 0;
34788
 
}
34789
 
_ACEOF
34790
 
rm -f conftest.$ac_objext conftest$ac_exeext
34791
 
if { (ac_try="$ac_link"
34792
 
case "(($ac_try" in
34793
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34794
 
  *) ac_try_echo=$ac_try;;
34795
 
esac
34796
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34797
 
$as_echo "$ac_try_echo") >&5
34798
 
  (eval "$ac_link") 2>conftest.er1
34799
 
  ac_status=$?
34800
 
  grep -v '^ *+' conftest.er1 >conftest.err
34801
 
  rm -f conftest.er1
34802
 
  cat conftest.err >&5
34803
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34804
 
  (exit $ac_status); } && {
34805
 
         test -z "$ac_c_werror_flag" ||
34806
 
         test ! -s conftest.err
34807
 
       } && test -s conftest$ac_exeext && {
34808
 
         test "$cross_compiling" = yes ||
34809
 
         $as_test_x conftest$ac_exeext
34810
 
       }; then
34811
 
  eval "$as_ac_var=yes"
34812
 
else
34813
 
  $as_echo "$as_me: failed program was:" >&5
34814
 
sed 's/^/| /' conftest.$ac_ext >&5
34815
 
 
34816
 
        eval "$as_ac_var=no"
34817
 
fi
34818
 
 
34819
 
rm -rf conftest.dSYM
34820
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34821
 
      conftest$ac_exeext conftest.$ac_ext
34822
 
fi
34823
 
ac_res=`eval 'as_val=${'$as_ac_var'}
34824
 
                 $as_echo "$as_val"'`
34825
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34826
 
$as_echo "$ac_res" >&6; }
34827
 
as_val=`eval 'as_val=${'$as_ac_var'}
34828
 
                 $as_echo "$as_val"'`
34829
 
   if test "x$as_val" = x""yes; then
34830
 
  cat >>confdefs.h <<_ACEOF
34831
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
34832
 
_ACEOF
34833
 
 
34834
 
else
34835
 
 
34836
 
    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
34837
 
 
34838
 
fi
34839
 
done
34840
 
 
34841
 
 
34842
 
  fi
34843
 
  REPLACE_TIMEGM=1
34844
 
  if test $ac_cv_func_timegm = yes; then
34845
 
    { $as_echo "$as_me:$LINENO: checking whether timegm is declared" >&5
34846
 
$as_echo_n "checking whether timegm is declared... " >&6; }
34847
 
if test "${ac_cv_have_decl_timegm+set}" = set; then
34848
 
  $as_echo_n "(cached) " >&6
34849
 
else
34850
 
  cat >conftest.$ac_ext <<_ACEOF
34851
 
/* confdefs.h.  */
34852
 
_ACEOF
34853
 
cat confdefs.h >>conftest.$ac_ext
34854
 
cat >>conftest.$ac_ext <<_ACEOF
34855
 
/* end confdefs.h.  */
34856
 
#include <time.h>
34857
 
 
34858
 
int
34859
 
main ()
34860
 
{
34861
 
#ifndef timegm
34862
 
  (void) timegm;
34863
 
#endif
34864
 
 
34865
 
  ;
34866
 
  return 0;
34867
 
}
34868
 
_ACEOF
34869
 
rm -f conftest.$ac_objext
34870
 
if { (ac_try="$ac_compile"
34871
 
case "(($ac_try" in
34872
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34873
 
  *) ac_try_echo=$ac_try;;
34874
 
esac
34875
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34876
 
$as_echo "$ac_try_echo") >&5
34877
 
  (eval "$ac_compile") 2>conftest.er1
34878
 
  ac_status=$?
34879
 
  grep -v '^ *+' conftest.er1 >conftest.err
34880
 
  rm -f conftest.er1
34881
 
  cat conftest.err >&5
34882
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34883
 
  (exit $ac_status); } && {
34884
 
         test -z "$ac_c_werror_flag" ||
34885
 
         test ! -s conftest.err
34886
 
       } && test -s conftest.$ac_objext; then
34887
 
  ac_cv_have_decl_timegm=yes
34888
 
else
34889
 
  $as_echo "$as_me: failed program was:" >&5
34890
 
sed 's/^/| /' conftest.$ac_ext >&5
34891
 
 
34892
 
        ac_cv_have_decl_timegm=no
34893
 
fi
34894
 
 
34895
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34896
 
fi
34897
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_timegm" >&5
34898
 
$as_echo "$ac_cv_have_decl_timegm" >&6; }
34899
 
if test "x$ac_cv_have_decl_timegm" = x""yes; then
34900
 
 
34901
 
cat >>confdefs.h <<_ACEOF
34902
 
#define HAVE_DECL_TIMEGM 1
34903
 
_ACEOF
34904
 
 
34905
 
REPLACE_TIMEGM=0
34906
 
else
34907
 
  cat >>confdefs.h <<_ACEOF
34908
 
#define HAVE_DECL_TIMEGM 0
34909
 
_ACEOF
34910
 
 
34911
 
 
34912
 
fi
34913
 
 
34914
 
 
34915
 
  fi
34916
 
  if test $REPLACE_TIMEGM = 1; then
34917
35131
 
34918
35132
 
34919
35133
 
35245
35459
 
35246
35460
 
35247
35461
  # Code from module useless-if-before-free:
 
35462
  # Code from module usleep:
 
35463
 
 
35464
 
 
35465
 
 
35466
 
 
35467
  :
 
35468
 
 
35469
 
 
35470
 
 
35471
 
 
35472
 
 
35473
  { $as_echo "$as_me:$LINENO: checking for useconds_t" >&5
 
35474
$as_echo_n "checking for useconds_t... " >&6; }
 
35475
if test "${ac_cv_type_useconds_t+set}" = set; then
 
35476
  $as_echo_n "(cached) " >&6
 
35477
else
 
35478
  ac_cv_type_useconds_t=no
 
35479
cat >conftest.$ac_ext <<_ACEOF
 
35480
/* confdefs.h.  */
 
35481
_ACEOF
 
35482
cat confdefs.h >>conftest.$ac_ext
 
35483
cat >>conftest.$ac_ext <<_ACEOF
 
35484
/* end confdefs.h.  */
 
35485
$ac_includes_default
 
35486
int
 
35487
main ()
 
35488
{
 
35489
if (sizeof (useconds_t))
 
35490
       return 0;
 
35491
  ;
 
35492
  return 0;
 
35493
}
 
35494
_ACEOF
 
35495
rm -f conftest.$ac_objext
 
35496
if { (ac_try="$ac_compile"
 
35497
case "(($ac_try" in
 
35498
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
35499
  *) ac_try_echo=$ac_try;;
 
35500
esac
 
35501
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
35502
$as_echo "$ac_try_echo") >&5
 
35503
  (eval "$ac_compile") 2>conftest.er1
 
35504
  ac_status=$?
 
35505
  grep -v '^ *+' conftest.er1 >conftest.err
 
35506
  rm -f conftest.er1
 
35507
  cat conftest.err >&5
 
35508
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35509
  (exit $ac_status); } && {
 
35510
         test -z "$ac_c_werror_flag" ||
 
35511
         test ! -s conftest.err
 
35512
       } && test -s conftest.$ac_objext; then
 
35513
  cat >conftest.$ac_ext <<_ACEOF
 
35514
/* confdefs.h.  */
 
35515
_ACEOF
 
35516
cat confdefs.h >>conftest.$ac_ext
 
35517
cat >>conftest.$ac_ext <<_ACEOF
 
35518
/* end confdefs.h.  */
 
35519
$ac_includes_default
 
35520
int
 
35521
main ()
 
35522
{
 
35523
if (sizeof ((useconds_t)))
 
35524
          return 0;
 
35525
  ;
 
35526
  return 0;
 
35527
}
 
35528
_ACEOF
 
35529
rm -f conftest.$ac_objext
 
35530
if { (ac_try="$ac_compile"
 
35531
case "(($ac_try" in
 
35532
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
35533
  *) ac_try_echo=$ac_try;;
 
35534
esac
 
35535
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
35536
$as_echo "$ac_try_echo") >&5
 
35537
  (eval "$ac_compile") 2>conftest.er1
 
35538
  ac_status=$?
 
35539
  grep -v '^ *+' conftest.er1 >conftest.err
 
35540
  rm -f conftest.er1
 
35541
  cat conftest.err >&5
 
35542
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35543
  (exit $ac_status); } && {
 
35544
         test -z "$ac_c_werror_flag" ||
 
35545
         test ! -s conftest.err
 
35546
       } && test -s conftest.$ac_objext; then
 
35547
  :
 
35548
else
 
35549
  $as_echo "$as_me: failed program was:" >&5
 
35550
sed 's/^/| /' conftest.$ac_ext >&5
 
35551
 
 
35552
        ac_cv_type_useconds_t=yes
 
35553
fi
 
35554
 
 
35555
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
35556
else
 
35557
  $as_echo "$as_me: failed program was:" >&5
 
35558
sed 's/^/| /' conftest.$ac_ext >&5
 
35559
 
 
35560
 
 
35561
fi
 
35562
 
 
35563
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
35564
fi
 
35565
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_useconds_t" >&5
 
35566
$as_echo "$ac_cv_type_useconds_t" >&6; }
 
35567
if test "x$ac_cv_type_useconds_t" = x""yes; then
 
35568
  :
 
35569
else
 
35570
 
 
35571
cat >>confdefs.h <<\_ACEOF
 
35572
#define useconds_t unsigned int
 
35573
_ACEOF
 
35574
 
 
35575
fi
 
35576
 
 
35577
  if test $ac_cv_func_usleep = no; then
 
35578
    HAVE_USLEEP=0
 
35579
 
 
35580
 
 
35581
 
 
35582
 
 
35583
 
 
35584
 
 
35585
 
 
35586
 
 
35587
  gl_LIBOBJS="$gl_LIBOBJS usleep.$ac_objext"
 
35588
 
 
35589
  else
 
35590
            { $as_echo "$as_me:$LINENO: checking whether usleep allows large arguments" >&5
 
35591
$as_echo_n "checking whether usleep allows large arguments... " >&6; }
 
35592
if test "${gl_cv_func_usleep_works+set}" = set; then
 
35593
  $as_echo_n "(cached) " >&6
 
35594
else
 
35595
  if test "$cross_compiling" = yes; then
 
35596
  gl_cv_func_usleep_works="guessing no"
 
35597
else
 
35598
  cat >conftest.$ac_ext <<_ACEOF
 
35599
/* confdefs.h.  */
 
35600
_ACEOF
 
35601
cat confdefs.h >>conftest.$ac_ext
 
35602
cat >>conftest.$ac_ext <<_ACEOF
 
35603
/* end confdefs.h.  */
 
35604
 
 
35605
#include <unistd.h>
 
35606
 
 
35607
int
 
35608
main ()
 
35609
{
 
35610
return !!usleep (1000000);
 
35611
  ;
 
35612
  return 0;
 
35613
}
 
35614
_ACEOF
 
35615
rm -f conftest$ac_exeext
 
35616
if { (ac_try="$ac_link"
 
35617
case "(($ac_try" in
 
35618
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
35619
  *) ac_try_echo=$ac_try;;
 
35620
esac
 
35621
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
35622
$as_echo "$ac_try_echo") >&5
 
35623
  (eval "$ac_link") 2>&5
 
35624
  ac_status=$?
 
35625
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35626
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
35627
  { (case "(($ac_try" in
 
35628
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
35629
  *) ac_try_echo=$ac_try;;
 
35630
esac
 
35631
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
35632
$as_echo "$ac_try_echo") >&5
 
35633
  (eval "$ac_try") 2>&5
 
35634
  ac_status=$?
 
35635
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35636
  (exit $ac_status); }; }; then
 
35637
  gl_cv_func_usleep_works=yes
 
35638
else
 
35639
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
35640
$as_echo "$as_me: failed program was:" >&5
 
35641
sed 's/^/| /' conftest.$ac_ext >&5
 
35642
 
 
35643
( exit $ac_status )
 
35644
gl_cv_func_usleep_works=no
 
35645
fi
 
35646
rm -rf conftest.dSYM
 
35647
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
35648
fi
 
35649
 
 
35650
 
 
35651
fi
 
35652
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_usleep_works" >&5
 
35653
$as_echo "$gl_cv_func_usleep_works" >&6; }
 
35654
    if test "$gl_cv_func_usleep_works" != yes; then
 
35655
      REPLACE_USLEEP=1
 
35656
 
 
35657
 
 
35658
 
 
35659
 
 
35660
 
 
35661
 
 
35662
 
 
35663
 
 
35664
  gl_LIBOBJS="$gl_LIBOBJS usleep.$ac_objext"
 
35665
 
 
35666
    fi
 
35667
  fi
 
35668
 
 
35669
 
 
35670
 
 
35671
 
 
35672
  GNULIB_USLEEP=1
 
35673
 
 
35674
 
 
35675
 
 
35676
cat >>confdefs.h <<\_ACEOF
 
35677
#define GNULIB_TEST_USLEEP 1
 
35678
_ACEOF
 
35679
 
 
35680
 
 
35681
 
35248
35682
  # Code from module vasnprintf:
35249
35683
 
35250
35684
 
36863
37297
 
36864
37298
 
36865
37299
 
 
37300
  :
 
37301
 
 
37302
 
 
37303
 
 
37304
 
 
37305
 
 
37306
 
36866
37307
  { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
36867
37308
$as_echo_n "checking for wchar_t... " >&6; }
36868
37309
if test "${gt_cv_c_wchar_t+set}" = set; then
39048
39489
else
39049
39490
  lt_cv_nm_interface="BSD nm"
39050
39491
  echo "int some_variable = 0;" > conftest.$ac_ext
39051
 
  (eval echo "\"\$as_me:39051: $ac_compile\"" >&5)
 
39492
  (eval echo "\"\$as_me:39492: $ac_compile\"" >&5)
39052
39493
  (eval "$ac_compile" 2>conftest.err)
39053
39494
  cat conftest.err >&5
39054
 
  (eval echo "\"\$as_me:39054: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
39495
  (eval echo "\"\$as_me:39495: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
39055
39496
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
39056
39497
  cat conftest.err >&5
39057
 
  (eval echo "\"\$as_me:39057: output\"" >&5)
 
39498
  (eval echo "\"\$as_me:39498: output\"" >&5)
39058
39499
  cat conftest.out >&5
39059
39500
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
39060
39501
    lt_cv_nm_interface="MS dumpbin"
40256
40697
  ;;
40257
40698
*-*-irix6*)
40258
40699
  # Find out which ABI we are using.
40259
 
  echo '#line 40259 "configure"' > conftest.$ac_ext
 
40700
  echo '#line 40700 "configure"' > conftest.$ac_ext
40260
40701
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40261
40702
  (eval $ac_compile) 2>&5
40262
40703
  ac_status=$?
41623
42064
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
41624
42065
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
41625
42066
   -e 's:$: $lt_compiler_flag:'`
41626
 
   (eval echo "\"\$as_me:41626: $lt_compile\"" >&5)
 
42067
   (eval echo "\"\$as_me:42067: $lt_compile\"" >&5)
41627
42068
   (eval "$lt_compile" 2>conftest.err)
41628
42069
   ac_status=$?
41629
42070
   cat conftest.err >&5
41630
 
   echo "$as_me:41630: \$? = $ac_status" >&5
 
42071
   echo "$as_me:42071: \$? = $ac_status" >&5
41631
42072
   if (exit $ac_status) && test -s "$ac_outfile"; then
41632
42073
     # The compiler can only warn and ignore the option if not recognized
41633
42074
     # So say no if there are warnings other than the usual output.
41962
42403
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
41963
42404
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
41964
42405
   -e 's:$: $lt_compiler_flag:'`
41965
 
   (eval echo "\"\$as_me:41965: $lt_compile\"" >&5)
 
42406
   (eval echo "\"\$as_me:42406: $lt_compile\"" >&5)
41966
42407
   (eval "$lt_compile" 2>conftest.err)
41967
42408
   ac_status=$?
41968
42409
   cat conftest.err >&5
41969
 
   echo "$as_me:41969: \$? = $ac_status" >&5
 
42410
   echo "$as_me:42410: \$? = $ac_status" >&5
41970
42411
   if (exit $ac_status) && test -s "$ac_outfile"; then
41971
42412
     # The compiler can only warn and ignore the option if not recognized
41972
42413
     # So say no if there are warnings other than the usual output.
42067
42508
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
42068
42509
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
42069
42510
   -e 's:$: $lt_compiler_flag:'`
42070
 
   (eval echo "\"\$as_me:42070: $lt_compile\"" >&5)
 
42511
   (eval echo "\"\$as_me:42511: $lt_compile\"" >&5)
42071
42512
   (eval "$lt_compile" 2>out/conftest.err)
42072
42513
   ac_status=$?
42073
42514
   cat out/conftest.err >&5
42074
 
   echo "$as_me:42074: \$? = $ac_status" >&5
 
42515
   echo "$as_me:42515: \$? = $ac_status" >&5
42075
42516
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
42076
42517
   then
42077
42518
     # The compiler can only warn and ignore the option if not recognized
42122
42563
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
42123
42564
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
42124
42565
   -e 's:$: $lt_compiler_flag:'`
42125
 
   (eval echo "\"\$as_me:42125: $lt_compile\"" >&5)
 
42566
   (eval echo "\"\$as_me:42566: $lt_compile\"" >&5)
42126
42567
   (eval "$lt_compile" 2>out/conftest.err)
42127
42568
   ac_status=$?
42128
42569
   cat out/conftest.err >&5
42129
 
   echo "$as_me:42129: \$? = $ac_status" >&5
 
42570
   echo "$as_me:42570: \$? = $ac_status" >&5
42130
42571
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
42131
42572
   then
42132
42573
     # The compiler can only warn and ignore the option if not recognized
44925
45366
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
44926
45367
  lt_status=$lt_dlunknown
44927
45368
  cat > conftest.$ac_ext <<_LT_EOF
44928
 
#line 44928 "configure"
 
45369
#line 45369 "configure"
44929
45370
#include "confdefs.h"
44930
45371
 
44931
45372
#if HAVE_DLFCN_H
45021
45462
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
45022
45463
  lt_status=$lt_dlunknown
45023
45464
  cat > conftest.$ac_ext <<_LT_EOF
45024
 
#line 45024 "configure"
 
45465
#line 45465 "configure"
45025
45466
#include "confdefs.h"
45026
45467
 
45027
45468
#if HAVE_DLFCN_H
45381
45822
 
45382
45823
 
45383
45824
 
 
45825
 
 
45826
# Check whether --with-gnu-ld was given.
 
45827
if test "${with_gnu_ld+set}" = set; then
 
45828
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
45829
else
 
45830
  with_gnu_ld=no
 
45831
fi
 
45832
 
 
45833
ac_prog=ld
 
45834
if test "$GCC" = yes; then
 
45835
  # Check if gcc -print-prog-name=ld gives a path.
 
45836
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
45837
$as_echo_n "checking for ld used by $CC... " >&6; }
 
45838
  case $host in
 
45839
  *-*-mingw*)
 
45840
    # gcc leaves a trailing carriage return which upsets mingw
 
45841
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
45842
  *)
 
45843
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
45844
  esac
 
45845
  case $ac_prog in
 
45846
    # Accept absolute paths.
 
45847
    [\\/]* | ?:[\\/]*)
 
45848
      re_direlt='/[^/][^/]*/\.\./'
 
45849
      # Canonicalize the pathname of ld
 
45850
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
45851
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
45852
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
45853
      done
 
45854
      test -z "$LD" && LD="$ac_prog"
 
45855
      ;;
 
45856
  "")
 
45857
    # If it fails, then pretend we aren't using GCC.
 
45858
    ac_prog=ld
 
45859
    ;;
 
45860
  *)
 
45861
    # If it is relative, then search for the first ld in PATH.
 
45862
    with_gnu_ld=unknown
 
45863
    ;;
 
45864
  esac
 
45865
elif test "$with_gnu_ld" = yes; then
 
45866
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
 
45867
$as_echo_n "checking for GNU ld... " >&6; }
 
45868
else
 
45869
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
45870
$as_echo_n "checking for non-GNU ld... " >&6; }
 
45871
fi
 
45872
if test "${lt_cv_path_LD+set}" = set; then
 
45873
  $as_echo_n "(cached) " >&6
 
45874
else
 
45875
  if test -z "$LD"; then
 
45876
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
45877
  for ac_dir in $PATH; do
 
45878
    IFS="$lt_save_ifs"
 
45879
    test -z "$ac_dir" && ac_dir=.
 
45880
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
45881
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
45882
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
45883
      # but apparently some variants of GNU ld only accept -v.
 
45884
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
45885
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
45886
      *GNU* | *'with BFD'*)
 
45887
        test "$with_gnu_ld" != no && break
 
45888
        ;;
 
45889
      *)
 
45890
        test "$with_gnu_ld" != yes && break
 
45891
        ;;
 
45892
      esac
 
45893
    fi
 
45894
  done
 
45895
  IFS="$lt_save_ifs"
 
45896
else
 
45897
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
45898
fi
 
45899
fi
 
45900
 
 
45901
LD="$lt_cv_path_LD"
 
45902
if test -n "$LD"; then
 
45903
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
 
45904
$as_echo "$LD" >&6; }
 
45905
else
 
45906
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
45907
$as_echo "no" >&6; }
 
45908
fi
 
45909
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
45910
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
45911
   { (exit 1); exit 1; }; }
 
45912
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
45913
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
45914
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
45915
  $as_echo_n "(cached) " >&6
 
45916
else
 
45917
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
45918
case `$LD -v 2>&1 </dev/null` in
 
45919
*GNU* | *'with BFD'*)
 
45920
  lt_cv_prog_gnu_ld=yes
 
45921
  ;;
 
45922
*)
 
45923
  lt_cv_prog_gnu_ld=no
 
45924
  ;;
 
45925
esac
 
45926
fi
 
45927
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
45928
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
45929
with_gnu_ld=$lt_cv_prog_gnu_ld
 
45930
 
 
45931
 
 
45932
 
 
45933
 
 
45934
 
 
45935
 
 
45936
 
45384
45937
VERSION_SCRIPT_FLAGS=-Wl,--version-script=
45385
 
`/usr/bin/ld --help 2>&1 | grep -- --version-script >/dev/null` || \
 
45938
`$LD --help 2>&1 | grep -- --version-script >/dev/null` || \
45386
45939
    VERSION_SCRIPT_FLAGS="-Wl,-M -Wl,"
45387
45940
 
45388
45941
 
46257
46810
 
46258
46811
 
46259
46812
 
46260
 
 
46261
 
for ac_header in pwd.h paths.h regex.h sys/syslimits.h sys/utsname.h sys/wait.h winsock2.h sched.h termios.h sys/poll.h syslog.h mntent.h net/ethernet.h
 
46813
for ac_header in pwd.h paths.h regex.h sys/syslimits.h sys/utsname.h \
 
46814
  sys/wait.h sched.h termios.h sys/poll.h syslog.h mntent.h net/ethernet.h
46262
46815
do
46263
46816
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
46264
46817
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46575
47128
 
46576
47129
 
46577
47130
 
 
47131
for ac_func in xdr_u_int64_t
 
47132
do
 
47133
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
47134
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
47135
$as_echo_n "checking for $ac_func... " >&6; }
 
47136
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
47137
  $as_echo_n "(cached) " >&6
 
47138
else
 
47139
  cat >conftest.$ac_ext <<_ACEOF
 
47140
/* confdefs.h.  */
 
47141
_ACEOF
 
47142
cat confdefs.h >>conftest.$ac_ext
 
47143
cat >>conftest.$ac_ext <<_ACEOF
 
47144
/* end confdefs.h.  */
 
47145
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
47146
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
47147
#define $ac_func innocuous_$ac_func
 
47148
 
 
47149
/* System header to define __stub macros and hopefully few prototypes,
 
47150
    which can conflict with char $ac_func (); below.
 
47151
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
47152
    <limits.h> exists even on freestanding compilers.  */
 
47153
 
 
47154
#ifdef __STDC__
 
47155
# include <limits.h>
 
47156
#else
 
47157
# include <assert.h>
 
47158
#endif
 
47159
 
 
47160
#undef $ac_func
 
47161
 
 
47162
/* Override any GCC internal prototype to avoid an error.
 
47163
   Use char because int might match the return type of a GCC
 
47164
   builtin and then its argument prototype would still apply.  */
 
47165
#ifdef __cplusplus
 
47166
extern "C"
 
47167
#endif
 
47168
char $ac_func ();
 
47169
/* The GNU C library defines this for functions which it implements
 
47170
    to always fail with ENOSYS.  Some functions are actually named
 
47171
    something starting with __ and the normal name is an alias.  */
 
47172
#if defined __stub_$ac_func || defined __stub___$ac_func
 
47173
choke me
 
47174
#endif
 
47175
 
 
47176
int
 
47177
main ()
 
47178
{
 
47179
return $ac_func ();
 
47180
  ;
 
47181
  return 0;
 
47182
}
 
47183
_ACEOF
 
47184
rm -f conftest.$ac_objext conftest$ac_exeext
 
47185
if { (ac_try="$ac_link"
 
47186
case "(($ac_try" in
 
47187
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
47188
  *) ac_try_echo=$ac_try;;
 
47189
esac
 
47190
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
47191
$as_echo "$ac_try_echo") >&5
 
47192
  (eval "$ac_link") 2>conftest.er1
 
47193
  ac_status=$?
 
47194
  grep -v '^ *+' conftest.er1 >conftest.err
 
47195
  rm -f conftest.er1
 
47196
  cat conftest.err >&5
 
47197
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
47198
  (exit $ac_status); } && {
 
47199
         test -z "$ac_c_werror_flag" ||
 
47200
         test ! -s conftest.err
 
47201
       } && test -s conftest$ac_exeext && {
 
47202
         test "$cross_compiling" = yes ||
 
47203
         $as_test_x conftest$ac_exeext
 
47204
       }; then
 
47205
  eval "$as_ac_var=yes"
 
47206
else
 
47207
  $as_echo "$as_me: failed program was:" >&5
 
47208
sed 's/^/| /' conftest.$ac_ext >&5
 
47209
 
 
47210
        eval "$as_ac_var=no"
 
47211
fi
 
47212
 
 
47213
rm -rf conftest.dSYM
 
47214
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
47215
      conftest$ac_exeext conftest.$ac_ext
 
47216
fi
 
47217
ac_res=`eval 'as_val=${'$as_ac_var'}
 
47218
                 $as_echo "$as_val"'`
 
47219
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
47220
$as_echo "$ac_res" >&6; }
 
47221
as_val=`eval 'as_val=${'$as_ac_var'}
 
47222
                 $as_echo "$as_val"'`
 
47223
   if test "x$as_val" = x""yes; then
 
47224
  cat >>confdefs.h <<_ACEOF
 
47225
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
47226
_ACEOF
 
47227
 
 
47228
fi
 
47229
done
 
47230
 
 
47231
 
 
47232
 
46578
47233
{ $as_echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
46579
47234
$as_echo_n "checking for gettext in -lintl... " >&6; }
46580
47235
if test "${ac_cv_lib_intl_gettext+set}" = set; then
47520
48175
    sysconfdir='/etc'
47521
48176
fi
47522
48177
 
 
48178
if test `uname -s` != "Linux"
 
48179
then
 
48180
    if test "x$with_lxc" != "xyes"
 
48181
    then
 
48182
        with_lxc=no
 
48183
    fi
 
48184
    if test "x$with_qemu" != "xyes"
 
48185
    then
 
48186
        with_qemu=no
 
48187
    fi
 
48188
fi
47523
48189
 
47524
48190
 
47525
48191
# Check whether --with-xen was given.
47732
48398
 
47733
48399
fi
47734
48400
 
47735
 
# Extract the first word of "bash", so it can be a program name with args.
47736
 
set dummy bash; ac_word=$2
47737
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
47738
 
$as_echo_n "checking for $ac_word... " >&6; }
47739
 
if test "${ac_cv_path_BASH_PATH+set}" = set; then
47740
 
  $as_echo_n "(cached) " >&6
47741
 
else
47742
 
  case $BASH_PATH in
47743
 
  [\\/]* | ?:[\\/]*)
47744
 
  ac_cv_path_BASH_PATH="$BASH_PATH" # Let the user override the test with a path.
47745
 
  ;;
47746
 
  *)
47747
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47748
 
as_dummy="/bin:$PATH"
47749
 
for as_dir in $as_dummy
47750
 
do
47751
 
  IFS=$as_save_IFS
47752
 
  test -z "$as_dir" && as_dir=.
47753
 
  for ac_exec_ext in '' $ac_executable_extensions; do
47754
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47755
 
    ac_cv_path_BASH_PATH="$as_dir/$ac_word$ac_exec_ext"
47756
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47757
 
    break 2
47758
 
  fi
47759
 
done
47760
 
done
47761
 
IFS=$as_save_IFS
47762
 
 
47763
 
  test -z "$ac_cv_path_BASH_PATH" && ac_cv_path_BASH_PATH="/bin/bash"
47764
 
  ;;
47765
 
esac
47766
 
fi
47767
 
BASH_PATH=$ac_cv_path_BASH_PATH
47768
 
if test -n "$BASH_PATH"; then
47769
 
  { $as_echo "$as_me:$LINENO: result: $BASH_PATH" >&5
47770
 
$as_echo "$BASH_PATH" >&6; }
47771
 
else
47772
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
47773
 
$as_echo "no" >&6; }
47774
 
fi
47775
 
 
47776
 
 
47777
 
 
47778
 
cat >>confdefs.h <<_ACEOF
47779
 
#define BASH_PATH "$BASH_PATH"
47780
 
_ACEOF
47781
 
 
47782
 
 
47783
48401
# Extract the first word of "iptables", so it can be a program name with args.
47784
48402
set dummy iptables; ac_word=$2
47785
48403
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
47828
48446
_ACEOF
47829
48447
 
47830
48448
 
47831
 
# Extract the first word of "ip6tables", so it can be a program name with args.
47832
 
set dummy ip6tables; ac_word=$2
47833
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
47834
 
$as_echo_n "checking for $ac_word... " >&6; }
47835
 
if test "${ac_cv_path_IP6TABLES_PATH+set}" = set; then
47836
 
  $as_echo_n "(cached) " >&6
47837
 
else
47838
 
  case $IP6TABLES_PATH in
47839
 
  [\\/]* | ?:[\\/]*)
47840
 
  ac_cv_path_IP6TABLES_PATH="$IP6TABLES_PATH" # Let the user override the test with a path.
47841
 
  ;;
47842
 
  *)
47843
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47844
 
as_dummy="/usr/sbin:$PATH"
47845
 
for as_dir in $as_dummy
47846
 
do
47847
 
  IFS=$as_save_IFS
47848
 
  test -z "$as_dir" && as_dir=.
47849
 
  for ac_exec_ext in '' $ac_executable_extensions; do
47850
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47851
 
    ac_cv_path_IP6TABLES_PATH="$as_dir/$ac_word$ac_exec_ext"
47852
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47853
 
    break 2
47854
 
  fi
47855
 
done
47856
 
done
47857
 
IFS=$as_save_IFS
47858
 
 
47859
 
  test -z "$ac_cv_path_IP6TABLES_PATH" && ac_cv_path_IP6TABLES_PATH="/sbin/ip6tables"
47860
 
  ;;
47861
 
esac
47862
 
fi
47863
 
IP6TABLES_PATH=$ac_cv_path_IP6TABLES_PATH
47864
 
if test -n "$IP6TABLES_PATH"; then
47865
 
  { $as_echo "$as_me:$LINENO: result: $IP6TABLES_PATH" >&5
47866
 
$as_echo "$IP6TABLES_PATH" >&6; }
47867
 
else
47868
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
47869
 
$as_echo "no" >&6; }
47870
 
fi
47871
 
 
47872
 
 
47873
 
 
47874
 
cat >>confdefs.h <<_ACEOF
47875
 
#define IP6TABLES_PATH "$IP6TABLES_PATH"
47876
 
_ACEOF
47877
 
 
47878
 
 
47879
48449
# Extract the first word of "ebtables", so it can be a program name with args.
47880
48450
set dummy ebtables; ac_word=$2
47881
48451
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
47924
48494
_ACEOF
47925
48495
 
47926
48496
 
47927
 
# Extract the first word of "grep", so it can be a program name with args.
47928
 
set dummy grep; ac_word=$2
47929
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
47930
 
$as_echo_n "checking for $ac_word... " >&6; }
47931
 
if test "${ac_cv_path_GREP_PATH+set}" = set; then
47932
 
  $as_echo_n "(cached) " >&6
47933
 
else
47934
 
  case $GREP_PATH in
47935
 
  [\\/]* | ?:[\\/]*)
47936
 
  ac_cv_path_GREP_PATH="$GREP_PATH" # Let the user override the test with a path.
47937
 
  ;;
47938
 
  *)
47939
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47940
 
as_dummy="/bin:$PATH"
47941
 
for as_dir in $as_dummy
47942
 
do
47943
 
  IFS=$as_save_IFS
47944
 
  test -z "$as_dir" && as_dir=.
47945
 
  for ac_exec_ext in '' $ac_executable_extensions; do
47946
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47947
 
    ac_cv_path_GREP_PATH="$as_dir/$ac_word$ac_exec_ext"
47948
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47949
 
    break 2
47950
 
  fi
47951
 
done
47952
 
done
47953
 
IFS=$as_save_IFS
47954
 
 
47955
 
  test -z "$ac_cv_path_GREP_PATH" && ac_cv_path_GREP_PATH="/bin/grep"
47956
 
  ;;
47957
 
esac
47958
 
fi
47959
 
GREP_PATH=$ac_cv_path_GREP_PATH
47960
 
if test -n "$GREP_PATH"; then
47961
 
  { $as_echo "$as_me:$LINENO: result: $GREP_PATH" >&5
47962
 
$as_echo "$GREP_PATH" >&6; }
47963
 
else
47964
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
47965
 
$as_echo "no" >&6; }
47966
 
fi
47967
 
 
47968
 
 
47969
 
 
47970
 
cat >>confdefs.h <<_ACEOF
47971
 
#define GREP_PATH "$GREP_PATH"
47972
 
_ACEOF
47973
 
 
47974
 
 
47975
 
# Extract the first word of "gawk", so it can be a program name with args.
47976
 
set dummy gawk; ac_word=$2
47977
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
47978
 
$as_echo_n "checking for $ac_word... " >&6; }
47979
 
if test "${ac_cv_path_GAWK_PATH+set}" = set; then
47980
 
  $as_echo_n "(cached) " >&6
47981
 
else
47982
 
  case $GAWK_PATH in
47983
 
  [\\/]* | ?:[\\/]*)
47984
 
  ac_cv_path_GAWK_PATH="$GAWK_PATH" # Let the user override the test with a path.
47985
 
  ;;
47986
 
  *)
47987
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47988
 
as_dummy="/bin:$PATH"
47989
 
for as_dir in $as_dummy
47990
 
do
47991
 
  IFS=$as_save_IFS
47992
 
  test -z "$as_dir" && as_dir=.
47993
 
  for ac_exec_ext in '' $ac_executable_extensions; do
47994
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47995
 
    ac_cv_path_GAWK_PATH="$as_dir/$ac_word$ac_exec_ext"
47996
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47997
 
    break 2
47998
 
  fi
47999
 
done
48000
 
done
48001
 
IFS=$as_save_IFS
48002
 
 
48003
 
  test -z "$ac_cv_path_GAWK_PATH" && ac_cv_path_GAWK_PATH="/bin/gawk"
48004
 
  ;;
48005
 
esac
48006
 
fi
48007
 
GAWK_PATH=$ac_cv_path_GAWK_PATH
48008
 
if test -n "$GAWK_PATH"; then
48009
 
  { $as_echo "$as_me:$LINENO: result: $GAWK_PATH" >&5
48010
 
$as_echo "$GAWK_PATH" >&6; }
48011
 
else
48012
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
48013
 
$as_echo "no" >&6; }
48014
 
fi
48015
 
 
48016
 
 
48017
 
 
48018
 
cat >>confdefs.h <<_ACEOF
48019
 
#define GAWK_PATH "$GAWK_PATH"
48020
 
_ACEOF
48021
 
 
48022
 
 
48023
48497
 
48024
48498
if test "$with_openvz" = "yes"; then
48025
48499
 
48934
49408
done
48935
49409
 
48936
49410
 
 
49411
if test "$with_libvirtd" = "no" ; then
 
49412
  with_lxc=no
 
49413
fi
48937
49414
if test "$with_lxc" = "yes" || test "$with_lxc" = "check"; then
48938
49415
    if test "${ac_cv_header_sched_h+set}" = set; then
48939
49416
  { $as_echo "$as_me:$LINENO: checking for sched.h" >&5
49146
49623
 
49147
49624
 
49148
49625
fi
49149
 
if test "$with_libvirtd" = "no" ; then
49150
 
  with_lxc=no
49151
 
fi
49152
49626
if test "$with_lxc" = "yes" ; then
49153
49627
 
49154
49628
cat >>confdefs.h <<_ACEOF
49313
49787
_ACEOF
49314
49788
 
49315
49789
else
49316
 
  { { $as_echo "$as_me:$LINENO: error: You must install kernel-headers in order to compile libvirt" >&5
49317
 
$as_echo "$as_me: error: You must install kernel-headers in order to compile libvirt" >&2;}
 
49790
  { { $as_echo "$as_me:$LINENO: error: You must install kernel-headers in order to compile libvirt with QEMU or LXC support" >&5
 
49791
$as_echo "$as_me: error: You must install kernel-headers in order to compile libvirt with QEMU or LXC support" >&2;}
49318
49792
   { (exit 1); exit 1; }; }
49319
49793
fi
49320
49794
 
49441
49915
fi
49442
49916
 
49443
49917
 
 
49918
if test "$with_libvirtd" = "no" ; then
 
49919
  with_one=no
 
49920
fi
49444
49921
XMLRPC_CFLAGS=
49445
49922
XMLRPC_LIBS=
49446
49923
if test "x$with_one" = "xyes" || test "x$with_one" = "xcheck"; then
51719
52196
fi
51720
52197
 
51721
52198
    test $fail = 1 &&
51722
 
      { { $as_echo "$as_me:$LINENO: error: You must install the SELinux development package in order to compile libvirt" >&5
51723
 
$as_echo "$as_me: error: You must install the SELinux development package in order to compile libvirt" >&2;}
 
52199
      { { $as_echo "$as_me:$LINENO: error: You must install the libselinux development package in order to compile libvirt with basic SELinux support" >&5
 
52200
$as_echo "$as_me: error: You must install the libselinux development package in order to compile libvirt with basic SELinux support" >&2;}
51724
52201
   { (exit 1); exit 1; }; }
51725
52202
  fi
51726
52203
  CFLAGS="$old_cflags"
51758
52235
if test "$with_selinux" != "yes" ; then
51759
52236
  if test "$with_secdriver_selinux" = "check" ; then
51760
52237
    with_secdriver_selinux=no
51761
 
  else
51762
 
    { { $as_echo "$as_me:$LINENO: error: You must install the SELinux development package in order to compile libvirt" >&5
51763
 
$as_echo "$as_me: error: You must install the SELinux development package in order to compile libvirt" >&2;}
 
52238
  elif test "$with_secdriver_selinux" = "yes"; then
 
52239
        { { $as_echo "$as_me:$LINENO: error: You must install the libselinux development package and enable SELinux with the --with-selinux=yes in order to compile libvirt --with-secdriver-selinux=yes" >&5
 
52240
$as_echo "$as_me: error: You must install the libselinux development package and enable SELinux with the --with-selinux=yes in order to compile libvirt --with-secdriver-selinux=yes" >&2;}
51764
52241
   { (exit 1); exit 1; }; }
51765
52242
  fi
51766
52243
else
51959
52436
    if test "$with_secdriver_selinux" = "check" ; then
51960
52437
      with_secdriver_selinux=no
51961
52438
    else
51962
 
      { { $as_echo "$as_me:$LINENO: error: You must install the SELinux development package in order to compile libvirt" >&5
51963
 
$as_echo "$as_me: error: You must install the SELinux development package in order to compile libvirt" >&2;}
 
52439
      { { $as_echo "$as_me:$LINENO: error: You must install libselinux development package >= 2.0.82 in order to compile libvirt --with-secdriver-selinux=yes" >&5
 
52440
$as_echo "$as_me: error: You must install libselinux development package >= 2.0.82 in order to compile libvirt --with-secdriver-selinux=yes" >&2;}
51964
52441
   { (exit 1); exit 1; }; }
51965
52442
    fi
51966
52443
  else
53368
53845
 
53369
53846
 
53370
53847
 
 
53848
if test "$with_libvirtd" = "no" ; then
 
53849
  with_uml=no
 
53850
fi
53371
53851
if test "$with_uml" = "yes" || test "$with_uml" = "check"; then
53372
53852
    if test "${ac_cv_header_sys_inotify_h+set}" = set; then
53373
53853
  { $as_echo "$as_me:$LINENO: checking for sys/inotify.h" >&5
53516
53996
 
53517
53997
 
53518
53998
fi
53519
 
if test "$with_libvirtd" = "no" ; then
53520
 
  with_uml=no
53521
 
fi
53522
53999
if test "$with_uml" = "yes" ; then
53523
54000
 
53524
54001
cat >>confdefs.h <<_ACEOF
59565
60042
    if test "x$enable_shared" = "xno"; then
59566
60043
      WIN32_EXTRA_CFLAGS="-DLIBVIRT_STATIC"
59567
60044
    fi
 
60045
esac
 
60046
case "$host" in
 
60047
  *-*-mingw* | *-*-msvc* )
59568
60048
    # Also set the symbol file to .def, so src/Makefile generates libvirt.def
59569
60049
    # from libvirt.syms and passes libvirt.def instead of libvirt.syms to the linker
59570
60050
    LIBVIRT_SYMBOL_FILE=libvirt.def
 
60051
    # mingw's ld has the --version-script parameter, but it requires a .def file
 
60052
    # instead to work properly, therefore clear --version-script here
 
60053
    # cygwin's ld has the --version-script parameter too, but for some reason
 
60054
    # it's working there as expected
 
60055
    VERSION_SCRIPT_FLAGS=
59571
60056
    ;;
59572
60057
esac
59573
60058
 
60640
61125
test "x$srcdir" = x. && ! test -f COPYING &&
60641
61126
cp -f COPYING.LIB COPYING
60642
61127
 
 
61128
# Detect when running under the clang static analyzer's scan-build driver
 
61129
# or Coverity-prevent's cov-build.  Define STATIC_ANALYSIS accordingly.
 
61130
test -n "$CCC_ANALYZER_ANALYSIS$COVERITY_BUILD_COMMAND" && t=1 || t=0
 
61131
 
 
61132
cat >>confdefs.h <<_ACEOF
 
61133
#define STATIC_ANALYSIS $t
 
61134
_ACEOF
 
61135
 
 
61136
 
60643
61137
ac_config_files="$ac_config_files Makefile src/Makefile include/Makefile docs/Makefile docs/schemas/Makefile gnulib/lib/Makefile gnulib/tests/Makefile libvirt.pc libvirt.spec mingw32-libvirt.spec po/Makefile.in include/libvirt/Makefile include/libvirt/libvirt.h python/Makefile python/tests/Makefile daemon/Makefile tools/Makefile tests/Makefile proxy/Makefile tests/xml2sexprdata/Makefile tests/sexpr2xmldata/Makefile tests/xmconfigdata/Makefile tests/xencapsdata/Makefile tests/confdata/Makefile examples/apparmor/Makefile examples/domain-events/events-c/Makefile examples/domsuspend/Makefile examples/dominfo/Makefile examples/python/Makefile examples/hellolibvirt/Makefile examples/xml/nwfilter/Makefile"
60644
61138
 
60645
61139
cat >confcache <<\_ACEOF
61525
62019
# report actual input values of CONFIG_FILES etc. instead of their
61526
62020
# values after options handling.
61527
62021
ac_log="
61528
 
This file was extended by libvirt $as_me 0.8.0, which was
 
62022
This file was extended by libvirt $as_me 0.8.1, which was
61529
62023
generated by GNU Autoconf 2.63.  Invocation command line was
61530
62024
 
61531
62025
  CONFIG_FILES    = $CONFIG_FILES
61592
62086
_ACEOF
61593
62087
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
61594
62088
ac_cs_version="\\
61595
 
libvirt config.status 0.8.0
 
62089
libvirt config.status 0.8.1
61596
62090
configured by $0, generated by GNU Autoconf 2.63,
61597
62091
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
61598
62092