~ubuntu-branches/ubuntu/trusty/wget/trusty-updates

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Marc Deslauriers
  • Date: 2009-12-12 08:15:59 UTC
  • mfrom: (2.1.5 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091212081559-mvccl4kzdqb138y3
Tags: 1.12-1.1ubuntu1
* Merge from debian testing, remaining changes:
  - Add wget-udeb to ship wget.gnu as alternative to busybox wget
    implementation.
* Keep build dependencies in main:
  - debian/control: remove info2man build-dep
  - debian/patches/00list: disable wget-infopod_generated_manpage.dpatch

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.61.
 
3
# Generated by GNU Autoconf 2.63 for wget 1.12.
 
4
#
 
5
# Report bugs to <bug-wget@gnu.org>.
4
6
#
5
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
 
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
8
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7
9
# This configure script is free software; the Free Software Foundation
8
10
# gives unlimited permission to copy, distribute and modify it.
9
11
## --------------------- ##
15
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16
18
  emulate sh
17
19
  NULLCMD=:
18
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
20
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19
21
  # is contrary to our usage.  Disable this feature.
20
22
  alias -g '${1+"$@"}'='"$@"'
21
23
  setopt NO_GLOB_SUBST
37
39
as_cr_digits='0123456789'
38
40
as_cr_alnum=$as_cr_Letters$as_cr_digits
39
41
 
 
42
as_nl='
 
43
'
 
44
export as_nl
 
45
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
46
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
47
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
48
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
49
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
50
  as_echo='printf %s\n'
 
51
  as_echo_n='printf %s'
 
52
else
 
53
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
54
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
55
    as_echo_n='/usr/ucb/echo -n'
 
56
  else
 
57
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
58
    as_echo_n_body='eval
 
59
      arg=$1;
 
60
      case $arg in
 
61
      *"$as_nl"*)
 
62
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
63
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
64
      esac;
 
65
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
66
    '
 
67
    export as_echo_n_body
 
68
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
69
  fi
 
70
  export as_echo_body
 
71
  as_echo='sh -c $as_echo_body as_echo'
 
72
fi
 
73
 
40
74
# The user is always right.
41
75
if test "${PATH_SEPARATOR+set}" != set; then
42
 
  echo "#! /bin/sh" >conf$$.sh
43
 
  echo  "exit 0"   >>conf$$.sh
44
 
  chmod +x conf$$.sh
45
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46
 
    PATH_SEPARATOR=';'
47
 
  else
48
 
    PATH_SEPARATOR=:
49
 
  fi
50
 
  rm -f conf$$.sh
 
76
  PATH_SEPARATOR=:
 
77
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
78
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
79
      PATH_SEPARATOR=';'
 
80
  }
51
81
fi
52
82
 
53
83
# Support unset when possible.
63
93
# there to prevent editors from complaining about space-tab.
64
94
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65
95
# splitting by setting IFS to empty value.)
66
 
as_nl='
67
 
'
68
96
IFS=" ""        $as_nl"
69
97
 
70
98
# Find who we are.  Look in the path if we contain no directory separator.
87
115
  as_myself=$0
88
116
fi
89
117
if test ! -f "$as_myself"; then
90
 
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
118
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91
119
  { (exit 1); exit 1; }
92
120
fi
93
121
 
100
128
PS4='+ '
101
129
 
102
130
# NLS nuisances.
103
 
for as_var in \
104
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106
 
  LC_TELEPHONE LC_TIME
107
 
do
108
 
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109
 
    eval $as_var=C; export $as_var
110
 
  else
111
 
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112
 
  fi
113
 
done
 
131
LC_ALL=C
 
132
export LC_ALL
 
133
LANGUAGE=C
 
134
export LANGUAGE
114
135
 
115
136
# Required to use basename.
116
137
if expr a : '\(a\)' >/dev/null 2>&1 &&
132
153
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133
154
         X"$0" : 'X\(//\)$' \| \
134
155
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135
 
echo X/"$0" |
 
156
$as_echo X/"$0" |
136
157
    sed '/^.*\/\([^/][^/]*\)\/*$/{
137
158
            s//\1/
138
159
            q
158
179
  as_have_required=no
159
180
fi
160
181
 
161
 
  if test $as_have_required = yes &&     (eval ":
 
182
  if test $as_have_required = yes &&     (eval ":
162
183
(as_func_return () {
163
184
  (exit \$1)
164
185
}
240
261
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241
262
  emulate sh
242
263
  NULLCMD=:
243
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
264
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
244
265
  # is contrary to our usage.  Disable this feature.
245
266
  alias -g '${1+"$@"}'='"$@"'
246
267
  setopt NO_GLOB_SUBST
261
282
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262
283
  emulate sh
263
284
  NULLCMD=:
264
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
285
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265
286
  # is contrary to our usage.  Disable this feature.
266
287
  alias -g '${1+"$@"}'='"$@"'
267
288
  setopt NO_GLOB_SUBST
341
362
 
342
363
      if test "x$CONFIG_SHELL" != x; then
343
364
  for as_var in BASH_ENV ENV
344
 
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345
 
        done
346
 
        export CONFIG_SHELL
347
 
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
365
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
366
        done
 
367
        export CONFIG_SHELL
 
368
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348
369
fi
349
370
 
350
371
 
413
434
 
414
435
test \$exitcode = 0") || {
415
436
  echo No shell found that supports shell functions.
416
 
  echo Please tell autoconf@gnu.org about your system,
417
 
  echo including any error possibly output before this
418
 
  echo message
 
437
  echo Please tell bug-autoconf@gnu.org about your system,
 
438
  echo including any error possibly output before this message.
 
439
  echo This can help us improve future autoconf versions.
 
440
  echo Configuration will now proceed without shell functions.
419
441
}
420
442
 
421
443
 
451
473
      s/-\n.*//
452
474
    ' >$as_me.lineno &&
453
475
  chmod +x "$as_me.lineno" ||
454
 
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
476
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455
477
   { (exit 1); exit 1; }; }
456
478
 
457
479
  # Don't try to exec as it changes $[0], causing all sort of problems
479
501
*)
480
502
  ECHO_N='-n';;
481
503
esac
482
 
 
483
504
if expr a : '\(a\)' >/dev/null 2>&1 &&
484
505
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
485
506
  as_expr=expr
492
513
  rm -f conf$$.dir/conf$$.file
493
514
else
494
515
  rm -f conf$$.dir
495
 
  mkdir conf$$.dir
 
516
  mkdir conf$$.dir 2>/dev/null
496
517
fi
497
 
echo >conf$$.file
498
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
499
 
  as_ln_s='ln -s'
500
 
  # ... but there are two gotchas:
501
 
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502
 
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503
 
  # In both cases, we have to default to `cp -p'.
504
 
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
518
if (echo >conf$$.file) 2>/dev/null; then
 
519
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
520
    as_ln_s='ln -s'
 
521
    # ... but there are two gotchas:
 
522
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
523
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
524
    # In both cases, we have to default to `cp -p'.
 
525
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
526
      as_ln_s='cp -p'
 
527
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
528
    as_ln_s=ln
 
529
  else
505
530
    as_ln_s='cp -p'
506
 
elif ln conf$$.file conf$$ 2>/dev/null; then
507
 
  as_ln_s=ln
 
531
  fi
508
532
else
509
533
  as_ln_s='cp -p'
510
534
fi
529
553
  as_test_x='
530
554
    eval sh -c '\''
531
555
      if test -d "$1"; then
532
 
        test -d "$1/.";
 
556
        test -d "$1/.";
533
557
      else
534
558
        case $1 in
535
 
        -*)set "./$1";;
 
559
        -*)set "./$1";;
536
560
        esac;
537
561
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538
562
        ???[sx]*):;;*)false;;esac;fi
570
594
SHELL=${CONFIG_SHELL-/bin/sh}
571
595
 
572
596
# Identity of this package.
573
 
PACKAGE_NAME=
574
 
PACKAGE_TARNAME=
575
 
PACKAGE_VERSION=
576
 
PACKAGE_STRING=
577
 
PACKAGE_BUGREPORT=
 
597
PACKAGE_NAME='wget'
 
598
PACKAGE_TARNAME='wget'
 
599
PACKAGE_VERSION='1.12'
 
600
PACKAGE_STRING='wget 1.12'
 
601
PACKAGE_BUGREPORT='bug-wget@gnu.org'
578
602
 
579
 
ac_unique_file="src/version.c"
580
603
# Factoring default headers for most tests.
581
604
ac_includes_default="\
582
605
#include <stdio.h>
613
636
# include <unistd.h>
614
637
#endif"
615
638
 
616
 
ac_subst_vars='SHELL
617
 
PATH_SEPARATOR
618
 
PACKAGE_NAME
619
 
PACKAGE_TARNAME
620
 
PACKAGE_VERSION
621
 
PACKAGE_STRING
622
 
PACKAGE_BUGREPORT
623
 
exec_prefix
624
 
prefix
625
 
program_transform_name
626
 
bindir
627
 
sbindir
628
 
libexecdir
629
 
datarootdir
630
 
datadir
631
 
sysconfdir
632
 
sharedstatedir
633
 
localstatedir
634
 
includedir
635
 
oldincludedir
636
 
docdir
637
 
infodir
638
 
htmldir
639
 
dvidir
640
 
pdfdir
641
 
psdir
642
 
libdir
643
 
localedir
644
 
mandir
645
 
DEFS
646
 
ECHO_C
647
 
ECHO_N
648
 
ECHO_T
649
 
LIBS
650
 
build_alias
651
 
host_alias
652
 
target_alias
653
 
VERSION
654
 
PACKAGE
655
 
build
656
 
build_cpu
657
 
build_vendor
658
 
build_os
659
 
host
660
 
host_cpu
661
 
host_vendor
662
 
host_os
663
 
OPIE_OBJ
664
 
SET_MAKE
665
 
INSTALL_PROGRAM
666
 
INSTALL_SCRIPT
667
 
INSTALL_DATA
668
 
CC
669
 
CFLAGS
670
 
LDFLAGS
671
 
CPPFLAGS
672
 
ac_ct_CC
673
 
EXEEXT
674
 
OBJEXT
675
 
CPP
676
 
GREP
677
 
EGREP
 
639
gt_needs=
 
640
ac_header_list=
 
641
gl_getopt_required=POSIX
 
642
gl_getopt_required=POSIX
 
643
ac_func_list=
 
644
ac_subst_vars='md5tests_LTLIBOBJS
 
645
md5tests_LIBOBJS
 
646
md5_LTLIBOBJS
 
647
md5_LIBOBJS
 
648
gltests_LTLIBOBJS
 
649
gltests_LIBOBJS
 
650
gl_LTLIBOBJS
 
651
gl_LIBOBJS
 
652
LTLIBOBJS
 
653
IRI_IS_ENABLED_FALSE
 
654
IRI_IS_ENABLED_TRUE
 
655
COMMENT_IF_NO_POD2MAN
 
656
POD2MAN
 
657
PERL
 
658
LIBMD5_LTLIBDEPS
 
659
LIBMD5_LIBDEPS
 
660
MD5_SUBDIR
 
661
MD5_LDADD
 
662
MD5_CPPFLAGS
 
663
LIBSSL_PREFIX
 
664
LTLIBSSL
 
665
LIBSSL
 
666
HAVE_LIBSSL
 
667
LIBGNUTLS_PREFIX
 
668
LTLIBGNUTLS
 
669
LIBGNUTLS
 
670
HAVE_LIBGNUTLS
 
671
LIBOBJS
 
672
LIBGNU_LTLIBDEPS
 
673
LIBGNU_LIBDEPS
 
674
REPLACE_ISWCNTRL
 
675
WCTYPE_H
 
676
HAVE_WCTYPE_H
 
677
NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
 
678
NEXT_WCTYPE_H
 
679
HAVE_ISWCNTRL
 
680
NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
 
681
NEXT_WCHAR_H
 
682
HAVE_WCHAR_H
 
683
HAVE_WINT_T
 
684
HAVE_UNISTD_H
 
685
NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
 
686
NEXT_UNISTD_H
 
687
NEXT_AS_FIRST_DIRECTIVE_STRINGS_H
 
688
NEXT_STRINGS_H
 
689
NEXT_AS_FIRST_DIRECTIVE_STRING_H
 
690
NEXT_STRING_H
 
691
HAVE_DECL_STRNCASECMP
 
692
HAVE_STRCASECMP
 
693
HAVE_RANDOM_H
 
694
NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
 
695
NEXT_STDLIB_H
 
696
NEXT_AS_FIRST_DIRECTIVE_STDIO_H
 
697
NEXT_STDIO_H
 
698
STDINT_H
 
699
WINT_T_SUFFIX
 
700
WCHAR_T_SUFFIX
 
701
SIG_ATOMIC_T_SUFFIX
 
702
SIZE_T_SUFFIX
 
703
PTRDIFF_T_SUFFIX
 
704
HAVE_SIGNED_WINT_T
 
705
HAVE_SIGNED_WCHAR_T
 
706
HAVE_SIGNED_SIG_ATOMIC_T
 
707
BITSIZEOF_WINT_T
 
708
BITSIZEOF_WCHAR_T
 
709
BITSIZEOF_SIG_ATOMIC_T
 
710
BITSIZEOF_SIZE_T
 
711
BITSIZEOF_PTRDIFF_T
 
712
HAVE_SYS_BITYPES_H
 
713
HAVE_SYS_INTTYPES_H
 
714
HAVE_STDINT_H
 
715
NEXT_AS_FIRST_DIRECTIVE_STDINT_H
 
716
NEXT_STDINT_H
 
717
HAVE_SYS_TYPES_H
 
718
HAVE_INTTYPES_H
 
719
HAVE_UNSIGNED_LONG_LONG_INT
 
720
HAVE_LONG_LONG_INT
 
721
NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
 
722
NEXT_STDDEF_H
 
723
STDDEF_H
 
724
HAVE_WCHAR_T
 
725
REPLACE_NULL
 
726
HAVE__BOOL
 
727
STDBOOL_H
 
728
VOID_UNSETENV
 
729
REPLACE_STRTOD
 
730
REPLACE_PUTENV
 
731
REPLACE_MKSTEMP
 
732
HAVE_DECL_GETLOADAVG
 
733
HAVE_UNSETENV
 
734
HAVE_SYS_LOADAVG_H
 
735
HAVE_STRUCT_RANDOM_DATA
 
736
HAVE_STRTOULL
 
737
HAVE_STRTOLL
 
738
HAVE_STRTOD
 
739
HAVE_SETENV
 
740
HAVE_RPMATCH
 
741
HAVE_RANDOM_R
 
742
HAVE_MKOSTEMP
 
743
HAVE_MKDTEMP
 
744
HAVE_MALLOC_POSIX
 
745
HAVE_GETSUBOPT
 
746
HAVE_CALLOC_POSIX
 
747
HAVE_ATOLL
 
748
GNULIB_UNSETENV
 
749
GNULIB_STRTOULL
 
750
GNULIB_STRTOLL
 
751
GNULIB_STRTOD
 
752
GNULIB_SETENV
 
753
GNULIB_RPMATCH
 
754
GNULIB_RANDOM_R
 
755
GNULIB_PUTENV
 
756
GNULIB_MKSTEMP
 
757
GNULIB_MKOSTEMP
 
758
GNULIB_MKDTEMP
 
759
GNULIB_GETSUBOPT
 
760
GNULIB_GETLOADAVG
 
761
GNULIB_ATOLL
 
762
GNULIB_CALLOC_POSIX
 
763
GNULIB_REALLOC_POSIX
 
764
GNULIB_MALLOC_POSIX
 
765
HAVE_REALLOC_POSIX
 
766
APPLE_UNIVERSAL_BUILD
 
767
REPLACE_STRSIGNAL
 
768
REPLACE_STRERROR
 
769
REPLACE_STRCASESTR
 
770
REPLACE_STRSTR
 
771
REPLACE_STRDUP
 
772
REPLACE_MEMMEM
 
773
REPLACE_MEMCHR
 
774
HAVE_STRVERSCMP
 
775
HAVE_DECL_STRSIGNAL
 
776
HAVE_DECL_STRERROR
 
777
HAVE_DECL_STRTOK_R
 
778
HAVE_STRCASESTR
 
779
HAVE_STRSEP
 
780
HAVE_STRPBRK
 
781
HAVE_DECL_STRNLEN
 
782
HAVE_DECL_STRNDUP
 
783
HAVE_STRNDUP
 
784
HAVE_DECL_STRDUP
 
785
HAVE_STRCHRNUL
 
786
HAVE_STPNCPY
 
787
HAVE_STPCPY
 
788
HAVE_RAWMEMCHR
 
789
HAVE_DECL_MEMRCHR
 
790
HAVE_MEMPCPY
 
791
HAVE_DECL_MEMMEM
 
792
GNULIB_STRVERSCMP
 
793
GNULIB_STRSIGNAL
 
794
GNULIB_STRERROR
 
795
GNULIB_MBSTOK_R
 
796
GNULIB_MBSSEP
 
797
GNULIB_MBSSPN
 
798
GNULIB_MBSPBRK
 
799
GNULIB_MBSCSPN
 
800
GNULIB_MBSCASESTR
 
801
GNULIB_MBSPCASECMP
 
802
GNULIB_MBSNCASECMP
 
803
GNULIB_MBSCASECMP
 
804
GNULIB_MBSSTR
 
805
GNULIB_MBSRCHR
 
806
GNULIB_MBSCHR
 
807
GNULIB_MBSNLEN
 
808
GNULIB_MBSLEN
 
809
GNULIB_STRTOK_R
 
810
GNULIB_STRCASESTR
 
811
GNULIB_STRSTR
 
812
GNULIB_STRSEP
 
813
GNULIB_STRPBRK
 
814
GNULIB_STRNLEN
 
815
GNULIB_STRNDUP
 
816
GNULIB_STRDUP
 
817
GNULIB_STRCHRNUL
 
818
GNULIB_STPNCPY
 
819
GNULIB_STPCPY
 
820
GNULIB_RAWMEMCHR
 
821
GNULIB_MEMRCHR
 
822
GNULIB_MEMPCPY
 
823
GNULIB_MEMMEM
 
824
GNULIB_MEMCHR
 
825
LOCALE_FR_UTF8
 
826
LOCALE_ZH_CN
 
827
LOCALE_JA
 
828
WCHAR_H
 
829
REPLACE_WCWIDTH
 
830
REPLACE_WCSNRTOMBS
 
831
REPLACE_WCSRTOMBS
 
832
REPLACE_WCRTOMB
 
833
REPLACE_MBSNRTOWCS
 
834
REPLACE_MBSRTOWCS
 
835
REPLACE_MBRLEN
 
836
REPLACE_MBRTOWC
 
837
REPLACE_MBSINIT
 
838
REPLACE_WCTOB
 
839
REPLACE_BTOWC
 
840
REPLACE_MBSTATE_T
 
841
HAVE_DECL_WCWIDTH
 
842
HAVE_DECL_WCTOB
 
843
HAVE_WCSNRTOMBS
 
844
HAVE_WCSRTOMBS
 
845
HAVE_WCRTOMB
 
846
HAVE_MBSNRTOWCS
 
847
HAVE_MBSRTOWCS
 
848
HAVE_MBRLEN
 
849
HAVE_MBRTOWC
 
850
HAVE_MBSINIT
 
851
HAVE_BTOWC
 
852
GNULIB_WCWIDTH
 
853
GNULIB_WCSNRTOMBS
 
854
GNULIB_WCSRTOMBS
 
855
GNULIB_WCRTOMB
 
856
GNULIB_MBSNRTOWCS
 
857
GNULIB_MBSRTOWCS
 
858
GNULIB_MBRLEN
 
859
GNULIB_MBRTOWC
 
860
GNULIB_MBSINIT
 
861
GNULIB_WCTOB
 
862
GNULIB_BTOWC
 
863
LOCALCHARSET_TESTS_ENVIRONMENT
 
864
GLIBC21
 
865
GETOPT_H
 
866
UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
 
867
UNISTD_H_HAVE_WINSOCK2_H
 
868
REPLACE_WRITE
 
869
REPLACE_LSEEK
 
870
REPLACE_LCHOWN
 
871
REPLACE_GETPAGESIZE
 
872
REPLACE_GETCWD
 
873
REPLACE_FCHDIR
 
874
REPLACE_DUP2
 
875
REPLACE_CLOSE
 
876
REPLACE_CHOWN
 
877
HAVE_SYS_PARAM_H
 
878
HAVE_OS_H
 
879
HAVE_DECL_GETLOGIN_R
 
880
HAVE_DECL_ENVIRON
 
881
HAVE_SLEEP
 
882
HAVE_READLINK
 
883
HAVE_PIPE2
 
884
HAVE_LINK
 
885
HAVE_GETUSERSHELL
 
886
HAVE_GETPAGESIZE
 
887
HAVE_GETHOSTNAME
 
888
HAVE_GETDTABLESIZE
 
889
HAVE_GETDOMAINNAME
 
890
HAVE_FTRUNCATE
 
891
HAVE_FSYNC
 
892
HAVE_EUIDACCESS
 
893
HAVE_DUP3
 
894
HAVE_DUP2
 
895
GNULIB_WRITE
 
896
GNULIB_UNISTD_H_SIGPIPE
 
897
GNULIB_UNISTD_H_GETOPT
 
898
GNULIB_SLEEP
 
899
GNULIB_READLINK
 
900
GNULIB_PIPE2
 
901
GNULIB_LSEEK
 
902
GNULIB_LINK
 
903
GNULIB_LCHOWN
 
904
GNULIB_GETUSERSHELL
 
905
GNULIB_GETPAGESIZE
 
906
GNULIB_GETLOGIN_R
 
907
GNULIB_GETHOSTNAME
 
908
GNULIB_GETDTABLESIZE
 
909
GNULIB_GETDOMAINNAME
 
910
GNULIB_GETCWD
 
911
GNULIB_FTRUNCATE
 
912
GNULIB_FSYNC
 
913
GNULIB_FCHDIR
 
914
GNULIB_EUIDACCESS
 
915
GNULIB_ENVIRON
 
916
GNULIB_DUP3
 
917
GNULIB_DUP2
 
918
GNULIB_CLOSE
 
919
GNULIB_CHOWN
 
920
REPLACE_PERROR
 
921
REPLACE_GETLINE
 
922
HAVE_DECL_GETLINE
 
923
HAVE_DECL_GETDELIM
 
924
REPLACE_POPEN
 
925
REPLACE_FCLOSE
 
926
HAVE_DECL_FPURGE
 
927
REPLACE_FPURGE
 
928
REPLACE_FFLUSH
 
929
REPLACE_FTELL
 
930
REPLACE_FTELLO
 
931
HAVE_FTELLO
 
932
REPLACE_FSEEK
 
933
REPLACE_FSEEKO
 
934
HAVE_FSEEKO
 
935
REPLACE_FREOPEN
 
936
REPLACE_FOPEN
 
937
REPLACE_OBSTACK_PRINTF
 
938
HAVE_DECL_OBSTACK_PRINTF
 
939
REPLACE_VASPRINTF
 
940
HAVE_VASPRINTF
 
941
REPLACE_VDPRINTF
 
942
HAVE_VDPRINTF
 
943
REPLACE_DPRINTF
 
944
HAVE_DPRINTF
 
945
REPLACE_VSPRINTF
 
946
REPLACE_SPRINTF
 
947
HAVE_DECL_VSNPRINTF
 
948
REPLACE_VSNPRINTF
 
949
HAVE_DECL_SNPRINTF
 
950
REPLACE_SNPRINTF
 
951
REPLACE_VPRINTF
 
952
REPLACE_PRINTF
 
953
REPLACE_VFPRINTF
 
954
REPLACE_FPRINTF
 
955
REPLACE_STDIO_WRITE_FUNCS
 
956
GNULIB_STDIO_H_SIGPIPE
 
957
GNULIB_PERROR
 
958
GNULIB_GETLINE
 
959
GNULIB_GETDELIM
 
960
GNULIB_POPEN
 
961
GNULIB_FWRITE
 
962
GNULIB_PUTS
 
963
GNULIB_FPUTS
 
964
GNULIB_PUTCHAR
 
965
GNULIB_PUTC
 
966
GNULIB_FPUTC
 
967
GNULIB_FCLOSE
 
968
GNULIB_FPURGE
 
969
GNULIB_FFLUSH
 
970
GNULIB_FTELLO
 
971
GNULIB_FTELL
 
972
GNULIB_FSEEKO
 
973
GNULIB_FSEEK
 
974
GNULIB_FREOPEN
 
975
GNULIB_FOPEN
 
976
GNULIB_OBSTACK_PRINTF_POSIX
 
977
GNULIB_OBSTACK_PRINTF
 
978
GNULIB_VASPRINTF
 
979
GNULIB_VDPRINTF
 
980
GNULIB_DPRINTF
 
981
GNULIB_VSPRINTF_POSIX
 
982
GNULIB_VSNPRINTF
 
983
GNULIB_VPRINTF_POSIX
 
984
GNULIB_VPRINTF
 
985
GNULIB_VFPRINTF_POSIX
 
986
GNULIB_VFPRINTF
 
987
GNULIB_SPRINTF_POSIX
 
988
GNULIB_SNPRINTF
 
989
GNULIB_PRINTF_POSIX
 
990
GNULIB_PRINTF
 
991
GNULIB_FPRINTF_POSIX
 
992
GNULIB_FPRINTF
 
993
EOVERFLOW_VALUE
 
994
EOVERFLOW_HIDDEN
 
995
ENOLINK_VALUE
 
996
ENOLINK_HIDDEN
 
997
EMULTIHOP_VALUE
 
998
EMULTIHOP_HIDDEN
 
999
ERRNO_H
 
1000
NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
 
1001
NEXT_ERRNO_H
 
1002
PRAGMA_SYSTEM_HEADER
 
1003
INCLUDE_NEXT_AS_FIRST_DIRECTIVE
 
1004
INCLUDE_NEXT
 
1005
ALLOCA_H
678
1006
ALLOCA
679
 
GETOPT_OBJ
680
 
HAVE_LIBGNUTLS
681
 
LIBGNUTLS
682
 
LTLIBGNUTLS
683
 
HAVE_LIBSSL
684
 
LIBSSL
685
 
LTLIBSSL
686
 
SSL_OBJ
687
 
NTLM_OBJ
688
 
MD5_OBJ
689
 
MSGFMT
 
1007
GL_COND_LIBTOOL_FALSE
 
1008
GL_COND_LIBTOOL_TRUE
 
1009
LEXLIB
 
1010
LEX_OUTPUT_ROOT
 
1011
LEX
 
1012
POSUB
 
1013
LTLIBINTL
 
1014
LIBINTL
 
1015
INTLLIBS
 
1016
LTLIBICONV
 
1017
LIBICONV
 
1018
INTL_MACOSX_LIBS
 
1019
XGETTEXT_EXTRA_OPTIONS
 
1020
MSGMERGE
 
1021
XGETTEXT_015
690
1022
XGETTEXT
 
1023
GMSGFMT_015
 
1024
MSGFMT_015
691
1025
GMSGFMT
692
 
CATALOGS
693
 
CATOBJEXT
694
 
DATADIRNAME
695
 
GMOFILES
696
 
INSTOBJEXT
697
 
INTLLIBS
698
 
POFILES
699
 
HAVE_NLS
 
1026
MSGFMT
 
1027
GETTEXT_MACRO_VERSION
700
1028
USE_NLS
 
1029
RANLIB
 
1030
EGREP
 
1031
GREP
 
1032
CPP
 
1033
am__fastdepCC_FALSE
 
1034
am__fastdepCC_TRUE
 
1035
CCDEPMODE
 
1036
AMDEPBACKSLASH
 
1037
AMDEP_FALSE
 
1038
AMDEP_TRUE
 
1039
am__quote
 
1040
am__include
 
1041
DEPDIR
 
1042
OBJEXT
 
1043
EXEEXT
 
1044
ac_ct_CC
 
1045
CPPFLAGS
 
1046
LDFLAGS
 
1047
CFLAGS
 
1048
CC
 
1049
host_os
 
1050
host_vendor
 
1051
host_cpu
 
1052
host
 
1053
build_os
 
1054
build_vendor
 
1055
build_cpu
 
1056
build
 
1057
am__untar
 
1058
am__tar
 
1059
AMTAR
 
1060
am__leading_dot
 
1061
SET_MAKE
 
1062
AWK
 
1063
mkdir_p
 
1064
MKDIR_P
 
1065
INSTALL_STRIP_PROGRAM
 
1066
STRIP
 
1067
install_sh
701
1068
MAKEINFO
702
 
PERL
703
 
POD2MAN
704
 
COMMENT_IF_NO_POD2MAN
705
 
LIBOBJS
706
 
LTLIBOBJS'
 
1069
AUTOHEADER
 
1070
AUTOMAKE
 
1071
AUTOCONF
 
1072
ACLOCAL
 
1073
VERSION
 
1074
PACKAGE
 
1075
CYGPATH_W
 
1076
am__isrc
 
1077
INSTALL_DATA
 
1078
INSTALL_SCRIPT
 
1079
INSTALL_PROGRAM
 
1080
target_alias
 
1081
host_alias
 
1082
build_alias
 
1083
LIBS
 
1084
ECHO_T
 
1085
ECHO_N
 
1086
ECHO_C
 
1087
DEFS
 
1088
mandir
 
1089
localedir
 
1090
libdir
 
1091
psdir
 
1092
pdfdir
 
1093
dvidir
 
1094
htmldir
 
1095
infodir
 
1096
docdir
 
1097
oldincludedir
 
1098
includedir
 
1099
localstatedir
 
1100
sharedstatedir
 
1101
sysconfdir
 
1102
datadir
 
1103
datarootdir
 
1104
libexecdir
 
1105
sbindir
 
1106
bindir
 
1107
program_transform_name
 
1108
prefix
 
1109
exec_prefix
 
1110
PACKAGE_BUGREPORT
 
1111
PACKAGE_STRING
 
1112
PACKAGE_VERSION
 
1113
PACKAGE_TARNAME
 
1114
PACKAGE_NAME
 
1115
PATH_SEPARATOR
 
1116
SHELL'
707
1117
ac_subst_files=''
 
1118
ac_user_opts='
 
1119
enable_option_checking
 
1120
with_ssl
 
1121
enable_opie
 
1122
enable_digest
 
1123
enable_ntlm
 
1124
enable_debug
 
1125
enable_dependency_tracking
 
1126
enable_nls
 
1127
with_gnu_ld
 
1128
enable_rpath
 
1129
with_libiconv_prefix
 
1130
with_libintl_prefix
 
1131
enable_largefile
 
1132
with_libgnutls_prefix
 
1133
with_libssl_prefix
 
1134
enable_ipv6
 
1135
enable_iri
 
1136
with_libidn
 
1137
'
708
1138
      ac_precious_vars='build_alias
709
1139
host_alias
710
1140
target_alias
719
1149
# Initialize some variables set by options.
720
1150
ac_init_help=
721
1151
ac_init_version=false
 
1152
ac_unrecognized_opts=
 
1153
ac_unrecognized_sep=
722
1154
# The variables have the same names as the options, with
723
1155
# dashes changed to underlines.
724
1156
cache_file=/dev/null
752
1184
localstatedir='${prefix}/var'
753
1185
includedir='${prefix}/include'
754
1186
oldincludedir='/usr/include'
755
 
docdir='${datarootdir}/doc/${PACKAGE}'
 
1187
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
756
1188
infodir='${datarootdir}/info'
757
1189
htmldir='${docdir}'
758
1190
dvidir='${docdir}'
817
1249
    datarootdir=$ac_optarg ;;
818
1250
 
819
1251
  -disable-* | --disable-*)
820
 
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
1252
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
821
1253
    # Reject names that are not valid shell variable names.
822
 
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
823
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
1254
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1255
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
824
1256
   { (exit 1); exit 1; }; }
825
 
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
826
 
    eval enable_$ac_feature=no ;;
 
1257
    ac_useropt_orig=$ac_useropt
 
1258
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1259
    case $ac_user_opts in
 
1260
      *"
 
1261
"enable_$ac_useropt"
 
1262
"*) ;;
 
1263
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
1264
         ac_unrecognized_sep=', ';;
 
1265
    esac
 
1266
    eval enable_$ac_useropt=no ;;
827
1267
 
828
1268
  -docdir | --docdir | --docdi | --doc | --do)
829
1269
    ac_prev=docdir ;;
836
1276
    dvidir=$ac_optarg ;;
837
1277
 
838
1278
  -enable-* | --enable-*)
839
 
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
1279
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
840
1280
    # Reject names that are not valid shell variable names.
841
 
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
842
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
1281
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1282
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
843
1283
   { (exit 1); exit 1; }; }
844
 
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
845
 
    eval enable_$ac_feature=\$ac_optarg ;;
 
1284
    ac_useropt_orig=$ac_useropt
 
1285
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1286
    case $ac_user_opts in
 
1287
      *"
 
1288
"enable_$ac_useropt"
 
1289
"*) ;;
 
1290
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
1291
         ac_unrecognized_sep=', ';;
 
1292
    esac
 
1293
    eval enable_$ac_useropt=\$ac_optarg ;;
846
1294
 
847
1295
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
848
1296
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1033
1481
    ac_init_version=: ;;
1034
1482
 
1035
1483
  -with-* | --with-*)
1036
 
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1484
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1037
1485
    # Reject names that are not valid shell variable names.
1038
 
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1039
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1486
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1487
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1040
1488
   { (exit 1); exit 1; }; }
1041
 
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1042
 
    eval with_$ac_package=\$ac_optarg ;;
 
1489
    ac_useropt_orig=$ac_useropt
 
1490
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1491
    case $ac_user_opts in
 
1492
      *"
 
1493
"with_$ac_useropt"
 
1494
"*) ;;
 
1495
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1496
         ac_unrecognized_sep=', ';;
 
1497
    esac
 
1498
    eval with_$ac_useropt=\$ac_optarg ;;
1043
1499
 
1044
1500
  -without-* | --without-*)
1045
 
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1501
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1046
1502
    # Reject names that are not valid shell variable names.
1047
 
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1048
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1503
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1504
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1049
1505
   { (exit 1); exit 1; }; }
1050
 
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1051
 
    eval with_$ac_package=no ;;
 
1506
    ac_useropt_orig=$ac_useropt
 
1507
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1508
    case $ac_user_opts in
 
1509
      *"
 
1510
"with_$ac_useropt"
 
1511
"*) ;;
 
1512
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1513
         ac_unrecognized_sep=', ';;
 
1514
    esac
 
1515
    eval with_$ac_useropt=no ;;
1052
1516
 
1053
1517
  --x)
1054
1518
    # Obsolete; use --with-x.
1068
1532
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1069
1533
    x_libraries=$ac_optarg ;;
1070
1534
 
1071
 
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
1535
  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1072
1536
Try \`$0 --help' for more information." >&2
1073
1537
   { (exit 1); exit 1; }; }
1074
1538
    ;;
1077
1541
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1078
1542
    # Reject names that are not valid shell variable names.
1079
1543
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1080
 
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
1544
      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1081
1545
   { (exit 1); exit 1; }; }
1082
1546
    eval $ac_envvar=\$ac_optarg
1083
1547
    export $ac_envvar ;;
1084
1548
 
1085
1549
  *)
1086
1550
    # FIXME: should be removed in autoconf 3.0.
1087
 
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1551
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1088
1552
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1089
 
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1553
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1090
1554
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1091
1555
    ;;
1092
1556
 
1095
1559
 
1096
1560
if test -n "$ac_prev"; then
1097
1561
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1098
 
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
1562
  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1099
1563
   { (exit 1); exit 1; }; }
1100
1564
fi
1101
1565
 
1102
 
# Be sure to have absolute directory names.
 
1566
if test -n "$ac_unrecognized_opts"; then
 
1567
  case $enable_option_checking in
 
1568
    no) ;;
 
1569
    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
 
1570
   { (exit 1); exit 1; }; } ;;
 
1571
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1572
  esac
 
1573
fi
 
1574
 
 
1575
# Check all directory arguments for consistency.
1103
1576
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1104
1577
                datadir sysconfdir sharedstatedir localstatedir includedir \
1105
1578
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1106
1579
                libdir localedir mandir
1107
1580
do
1108
1581
  eval ac_val=\$$ac_var
 
1582
  # Remove trailing slashes.
 
1583
  case $ac_val in
 
1584
    */ )
 
1585
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1586
      eval $ac_var=\$ac_val;;
 
1587
  esac
 
1588
  # Be sure to have absolute directory names.
1109
1589
  case $ac_val in
1110
1590
    [\\/$]* | ?:[\\/]* )  continue;;
1111
1591
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1112
1592
  esac
1113
 
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
1593
  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1114
1594
   { (exit 1); exit 1; }; }
1115
1595
done
1116
1596
 
1125
1605
if test "x$host_alias" != x; then
1126
1606
  if test "x$build_alias" = x; then
1127
1607
    cross_compiling=maybe
1128
 
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1608
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1129
1609
    If a cross compiler is detected then cross compile mode will be used." >&2
1130
1610
  elif test "x$build_alias" != "x$host_alias"; then
1131
1611
    cross_compiling=yes
1141
1621
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1142
1622
ac_ls_di=`ls -di .` &&
1143
1623
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1144
 
  { echo "$as_me: error: Working directory cannot be determined" >&2
 
1624
  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1145
1625
   { (exit 1); exit 1; }; }
1146
1626
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1147
 
  { echo "$as_me: error: pwd does not report name of working directory" >&2
 
1627
  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1148
1628
   { (exit 1); exit 1; }; }
1149
1629
 
1150
1630
 
1152
1632
if test -z "$srcdir"; then
1153
1633
  ac_srcdir_defaulted=yes
1154
1634
  # Try the directory containing this script, then the parent directory.
1155
 
  ac_confdir=`$as_dirname -- "$0" ||
1156
 
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1157
 
         X"$0" : 'X\(//\)[^/]' \| \
1158
 
         X"$0" : 'X\(//\)$' \| \
1159
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1160
 
echo X"$0" |
 
1635
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1636
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1637
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1638
         X"$as_myself" : 'X\(//\)$' \| \
 
1639
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1640
$as_echo X"$as_myself" |
1161
1641
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1162
1642
            s//\1/
1163
1643
            q
1184
1664
fi
1185
1665
if test ! -r "$srcdir/$ac_unique_file"; then
1186
1666
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1187
 
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
1667
  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1188
1668
   { (exit 1); exit 1; }; }
1189
1669
fi
1190
1670
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1191
1671
ac_abs_confdir=`(
1192
 
        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
 
1672
        cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1193
1673
   { (exit 1); exit 1; }; }
1194
1674
        pwd)`
1195
1675
# When building in place, set srcdir=.
1216
1696
  # Omit some internal or obsolete options to make the list less imposing.
1217
1697
  # This message is too long to be a string in the A/UX 3.1 sh.
1218
1698
  cat <<_ACEOF
1219
 
\`configure' configures this package to adapt to many kinds of systems.
 
1699
\`configure' configures wget 1.12 to adapt to many kinds of systems.
1220
1700
 
1221
1701
Usage: $0 [OPTION]... [VAR=VALUE]...
1222
1702
 
1238
1718
 
1239
1719
Installation directories:
1240
1720
  --prefix=PREFIX         install architecture-independent files in PREFIX
1241
 
                          [$ac_default_prefix]
 
1721
                          [$ac_default_prefix]
1242
1722
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1243
 
                          [PREFIX]
 
1723
                          [PREFIX]
1244
1724
 
1245
1725
By default, \`make install' will install all the files in
1246
1726
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1250
1730
For better control, use the options below.
1251
1731
 
1252
1732
Fine tuning of the installation directories:
1253
 
  --bindir=DIR           user executables [EPREFIX/bin]
1254
 
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1255
 
  --libexecdir=DIR       program executables [EPREFIX/libexec]
1256
 
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1257
 
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1258
 
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1259
 
  --libdir=DIR           object code libraries [EPREFIX/lib]
1260
 
  --includedir=DIR       C header files [PREFIX/include]
1261
 
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1262
 
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1263
 
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1264
 
  --infodir=DIR          info documentation [DATAROOTDIR/info]
1265
 
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1266
 
  --mandir=DIR           man documentation [DATAROOTDIR/man]
1267
 
  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1268
 
  --htmldir=DIR          html documentation [DOCDIR]
1269
 
  --dvidir=DIR           dvi documentation [DOCDIR]
1270
 
  --pdfdir=DIR           pdf documentation [DOCDIR]
1271
 
  --psdir=DIR            ps documentation [DOCDIR]
 
1733
  --bindir=DIR            user executables [EPREFIX/bin]
 
1734
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1735
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1736
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1737
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1738
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1739
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1740
  --includedir=DIR        C header files [PREFIX/include]
 
1741
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1742
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1743
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1744
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1745
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1746
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1747
  --docdir=DIR            documentation root [DATAROOTDIR/doc/wget]
 
1748
  --htmldir=DIR           html documentation [DOCDIR]
 
1749
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1750
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1751
  --psdir=DIR             ps documentation [DOCDIR]
1272
1752
_ACEOF
1273
1753
 
1274
1754
  cat <<\_ACEOF
1275
1755
 
 
1756
Program names:
 
1757
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1758
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1759
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1760
 
1276
1761
System types:
1277
1762
  --build=BUILD     configure for building on BUILD [guessed]
1278
1763
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1280
1765
fi
1281
1766
 
1282
1767
if test -n "$ac_init_help"; then
1283
 
 
 
1768
  case $ac_init_help in
 
1769
     short | recursive ) echo "Configuration of wget 1.12:";;
 
1770
   esac
1284
1771
  cat <<\_ACEOF
1285
1772
 
1286
1773
Optional Features:
 
1774
  --disable-option-checking  ignore unrecognized --enable/--with options
1287
1775
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1288
1776
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1289
1777
  --disable-opie          disable support for opie or s/key FTP login
1290
1778
  --disable-digest        disable support for HTTP digest authorization
1291
1779
  --disable-ntlm          disable support for NTLM authorization
1292
1780
  --disable-debug         disable support for debugging output
 
1781
  --disable-dependency-tracking  speeds up one-time build
 
1782
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1783
  --disable-nls           do not use Native Language Support
 
1784
  --disable-rpath         do not hardcode runtime library paths
1293
1785
  --disable-largefile     omit support for large files
1294
 
  --disable-rpath         do not hardcode runtime library paths
1295
1786
  --disable-ipv6          disable IPv6 support
1296
 
  --disable-nls           do not use Native Language Support
 
1787
  --disable-iri           disable IDN/IRIs support
1297
1788
 
1298
1789
Optional Packages:
1299
1790
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1300
1791
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1301
1792
  --without-ssl           disable SSL autodetection
1302
1793
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
 
1794
  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
 
1795
  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
 
1796
  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
 
1797
  --without-libintl-prefix     don't search for libintl in includedir and libdir
1303
1798
  --with-libgnutls-prefix[=DIR]  search for libgnutls in DIR/include and DIR/lib
1304
1799
  --without-libgnutls-prefix     don't search for libgnutls in includedir and libdir
1305
1800
  --with-libssl-prefix[=DIR]  search for libssl in DIR/include and DIR/lib
1306
1801
  --without-libssl-prefix     don't search for libssl in includedir and libdir
 
1802
  --with-libidn=DIR       Support IDN/IRIs (needs GNU Libidn)
1307
1803
 
1308
1804
Some influential environment variables:
1309
1805
  CC          C compiler command
1318
1814
Use these variables to override the choices made by `configure' or to help
1319
1815
it to find libraries and programs with nonstandard names/locations.
1320
1816
 
 
1817
Report bugs to <bug-wget@gnu.org>.
1321
1818
_ACEOF
1322
1819
ac_status=$?
1323
1820
fi
1325
1822
if test "$ac_init_help" = "recursive"; then
1326
1823
  # If there are subdirs, report their specific --help.
1327
1824
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1328
 
    test -d "$ac_dir" || continue
 
1825
    test -d "$ac_dir" ||
 
1826
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1827
      continue
1329
1828
    ac_builddir=.
1330
1829
 
1331
1830
case "$ac_dir" in
1332
1831
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1333
1832
*)
1334
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1833
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1335
1834
  # A ".." for each directory in $ac_dir_suffix.
1336
 
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
1835
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1337
1836
  case $ac_top_builddir_sub in
1338
1837
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1339
1838
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1369
1868
      echo &&
1370
1869
      $SHELL "$ac_srcdir/configure" --help=recursive
1371
1870
    else
1372
 
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1871
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1373
1872
    fi || ac_status=$?
1374
1873
    cd "$ac_pwd" || { ac_status=$?; break; }
1375
1874
  done
1378
1877
test -n "$ac_init_help" && exit $ac_status
1379
1878
if $ac_init_version; then
1380
1879
  cat <<\_ACEOF
1381
 
configure
1382
 
generated by GNU Autoconf 2.61
 
1880
wget configure 1.12
 
1881
generated by GNU Autoconf 2.63
1383
1882
 
1384
1883
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1385
 
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
1884
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1386
1885
This configure script is free software; the Free Software Foundation
1387
1886
gives unlimited permission to copy, distribute and modify it.
1388
1887
_ACEOF
1392
1891
This file contains any messages produced by compilers while
1393
1892
running configure, to aid debugging if configure makes a mistake.
1394
1893
 
1395
 
It was created by $as_me, which was
1396
 
generated by GNU Autoconf 2.61.  Invocation command line was
 
1894
It was created by wget $as_me 1.12, which was
 
1895
generated by GNU Autoconf 2.63.  Invocation command line was
1397
1896
 
1398
1897
  $ $0 $@
1399
1898
 
1429
1928
do
1430
1929
  IFS=$as_save_IFS
1431
1930
  test -z "$as_dir" && as_dir=.
1432
 
  echo "PATH: $as_dir"
 
1931
  $as_echo "PATH: $as_dir"
1433
1932
done
1434
1933
IFS=$as_save_IFS
1435
1934
 
1464
1963
    | -silent | --silent | --silen | --sile | --sil)
1465
1964
      continue ;;
1466
1965
    *\'*)
1467
 
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1966
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1468
1967
    esac
1469
1968
    case $ac_pass in
1470
1969
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1516
2015
    case $ac_val in #(
1517
2016
    *${as_nl}*)
1518
2017
      case $ac_var in #(
1519
 
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1520
 
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
2018
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
 
2019
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1521
2020
      esac
1522
2021
      case $ac_var in #(
1523
2022
      _ | IFS | as_nl) ;; #(
 
2023
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1524
2024
      *) $as_unset $ac_var ;;
1525
2025
      esac ;;
1526
2026
    esac
1550
2050
    do
1551
2051
      eval ac_val=\$$ac_var
1552
2052
      case $ac_val in
1553
 
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2053
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1554
2054
      esac
1555
 
      echo "$ac_var='\''$ac_val'\''"
 
2055
      $as_echo "$ac_var='\''$ac_val'\''"
1556
2056
    done | sort
1557
2057
    echo
1558
2058
 
1567
2067
      do
1568
2068
        eval ac_val=\$$ac_var
1569
2069
        case $ac_val in
1570
 
        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2070
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1571
2071
        esac
1572
 
        echo "$ac_var='\''$ac_val'\''"
 
2072
        $as_echo "$ac_var='\''$ac_val'\''"
1573
2073
      done | sort
1574
2074
      echo
1575
2075
    fi
1585
2085
      echo
1586
2086
    fi
1587
2087
    test "$ac_signal" != 0 &&
1588
 
      echo "$as_me: caught signal $ac_signal"
1589
 
    echo "$as_me: exit $exit_status"
 
2088
      $as_echo "$as_me: caught signal $ac_signal"
 
2089
    $as_echo "$as_me: exit $exit_status"
1590
2090
  } >&5
1591
2091
  rm -f core *.core core.conftest.* &&
1592
2092
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1628
2128
 
1629
2129
 
1630
2130
# Let the site file select an alternate cache file if it wants to.
1631
 
# Prefer explicitly selected file to automatically selected ones.
 
2131
# Prefer an explicitly selected file to automatically selected ones.
 
2132
ac_site_file1=NONE
 
2133
ac_site_file2=NONE
1632
2134
if test -n "$CONFIG_SITE"; then
1633
 
  set x "$CONFIG_SITE"
 
2135
  ac_site_file1=$CONFIG_SITE
1634
2136
elif test "x$prefix" != xNONE; then
1635
 
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
 
2137
  ac_site_file1=$prefix/share/config.site
 
2138
  ac_site_file2=$prefix/etc/config.site
1636
2139
else
1637
 
  set x "$ac_default_prefix/share/config.site" \
1638
 
        "$ac_default_prefix/etc/config.site"
 
2140
  ac_site_file1=$ac_default_prefix/share/config.site
 
2141
  ac_site_file2=$ac_default_prefix/etc/config.site
1639
2142
fi
1640
 
shift
1641
 
for ac_site_file
 
2143
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1642
2144
do
 
2145
  test "x$ac_site_file" = xNONE && continue
1643
2146
  if test -r "$ac_site_file"; then
1644
 
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1645
 
echo "$as_me: loading site script $ac_site_file" >&6;}
 
2147
    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
2148
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1646
2149
    sed 's/^/| /' "$ac_site_file" >&5
1647
2150
    . "$ac_site_file"
1648
2151
  fi
1652
2155
  # Some versions of bash will fail to source /dev/null (special
1653
2156
  # files actually), so we avoid doing that.
1654
2157
  if test -f "$cache_file"; then
1655
 
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1656
 
echo "$as_me: loading cache $cache_file" >&6;}
 
2158
    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
2159
$as_echo "$as_me: loading cache $cache_file" >&6;}
1657
2160
    case $cache_file in
1658
2161
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1659
2162
      *)                      . "./$cache_file";;
1660
2163
    esac
1661
2164
  fi
1662
2165
else
1663
 
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1664
 
echo "$as_me: creating cache $cache_file" >&6;}
 
2166
  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
2167
$as_echo "$as_me: creating cache $cache_file" >&6;}
1665
2168
  >$cache_file
1666
2169
fi
1667
2170
 
 
2171
gt_needs="$gt_needs need-ngettext"
 
2172
ac_header_list="$ac_header_list errno.h"
 
2173
gl_getopt_required=GNU
 
2174
ac_header_list="$ac_header_list stdio_ext.h"
 
2175
ac_header_list="$ac_header_list termios.h"
 
2176
ac_func_list="$ac_func_list __fsetlocking"
 
2177
ac_func_list="$ac_func_list tcgetattr"
 
2178
ac_func_list="$ac_func_list tcsetattr"
 
2179
ac_func_list="$ac_func_list mbsinit"
 
2180
ac_func_list="$ac_func_list mbrtowc"
 
2181
ac_header_list="$ac_header_list sys/mman.h"
 
2182
ac_func_list="$ac_func_list mprotect"
 
2183
ac_header_list="$ac_header_list stddef.h"
 
2184
ac_header_list="$ac_header_list stdint.h"
 
2185
ac_header_list="$ac_header_list wchar.h"
 
2186
ac_header_list="$ac_header_list stdio.h"
 
2187
ac_header_list="$ac_header_list stdlib.h"
 
2188
ac_header_list="$ac_header_list sys/socket.h"
 
2189
ac_header_list="$ac_header_list string.h"
 
2190
ac_header_list="$ac_header_list strings.h"
 
2191
ac_header_list="$ac_header_list unistd.h"
 
2192
ac_func_list="$ac_func_list iswcntrl"
 
2193
ac_header_list="$ac_header_list wctype.h"
1668
2194
# Check that the precious variables saved in the cache have kept the same
1669
2195
# value.
1670
2196
ac_cache_corrupted=false
1675
2201
  eval ac_new_val=\$ac_env_${ac_var}_value
1676
2202
  case $ac_old_set,$ac_new_set in
1677
2203
    set,)
1678
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1679
 
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2204
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2205
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1680
2206
      ac_cache_corrupted=: ;;
1681
2207
    ,set)
1682
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1683
 
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2208
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
2209
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1684
2210
      ac_cache_corrupted=: ;;
1685
2211
    ,);;
1686
2212
    *)
1687
2213
      if test "x$ac_old_val" != "x$ac_new_val"; then
1688
 
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1689
 
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1690
 
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1691
 
echo "$as_me:   former value:  $ac_old_val" >&2;}
1692
 
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1693
 
echo "$as_me:   current value: $ac_new_val" >&2;}
1694
 
        ac_cache_corrupted=:
 
2214
        # differences in whitespace do not lead to failure.
 
2215
        ac_old_val_w=`echo x $ac_old_val`
 
2216
        ac_new_val_w=`echo x $ac_new_val`
 
2217
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
2218
          { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
2219
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2220
          ac_cache_corrupted=:
 
2221
        else
 
2222
          { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2223
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
2224
          eval $ac_var=\$ac_old_val
 
2225
        fi
 
2226
        { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
 
2227
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
2228
        { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
 
2229
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1695
2230
      fi;;
1696
2231
  esac
1697
2232
  # Pass precious variables to config.status.
1698
2233
  if test "$ac_new_set" = set; then
1699
2234
    case $ac_new_val in
1700
 
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2235
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1701
2236
    *) ac_arg=$ac_var=$ac_new_val ;;
1702
2237
    esac
1703
2238
    case " $ac_configure_args " in
1707
2242
  fi
1708
2243
done
1709
2244
if $ac_cache_corrupted; then
1710
 
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1711
 
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1712
 
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1713
 
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
2245
  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
2246
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2247
  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
2248
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2249
  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
2250
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1714
2251
   { (exit 1); exit 1; }; }
1715
2252
fi
1716
2253
 
1730
2267
 
1731
2268
 
1732
2269
 
 
2270
 
 
2271
 
 
2272
 
 
2273
 
 
2274
 
 
2275
 
 
2276
 
 
2277
 
1733
2278
ac_ext=c
1734
2279
ac_cpp='$CPP $CPPFLAGS'
1735
2280
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1739
2284
 
1740
2285
 
1741
2286
 
1742
 
 
1743
 
 
1744
 
 
1745
 
 
1746
 
 
1747
 
 
1748
 
 
1749
 
 
1750
 
 
1751
 
 
1752
 
 
1753
 
 
1754
 
 
1755
 
 
1756
 
 
1757
 
 
1758
 
 
1759
 
 
1760
 
 
1761
 
 
1762
 
 
1763
 
 
1764
 
 
1765
 
 
1766
 
 
1767
 
 
1768
 
 
1769
 
 
1770
 
 
1771
 
 
1772
 
 
1773
 
 
1774
 
 
1775
 
 
1776
 
 
1777
 
 
1778
 
 
1779
 
 
1780
 
# This code originates from Ulrich Drepper's AM_WITH_NLS.
1781
 
 
1782
 
 
1783
 
 
1784
 
 
1785
 
 
1786
 
# Search path for a program which passes the given test.
1787
 
# Ulrich Drepper <drepper@cygnus.com>, 1996.
1788
 
#
1789
 
# This file may be copied and used freely without restrictions.  It
1790
 
# can be used in projects which are not available under the GNU Public
1791
 
# License but which still want to provide support for the GNU gettext
1792
 
# functionality.  Please note that the actual code is *not* freely
1793
 
# available.
1794
 
 
1795
 
 
1796
 
 
1797
 
# lib-ld.m4 serial 3 (gettext-0.13)
1798
 
 
1799
 
 
1800
 
 
1801
 
 
1802
 
 
1803
 
# lib-link.m4 serial 6 (gettext-0.14.3)
1804
 
 
1805
 
 
1806
 
 
1807
 
 
1808
 
 
1809
 
 
1810
 
 
1811
 
 
1812
 
 
1813
 
 
1814
 
 
1815
 
 
1816
 
 
1817
 
# lib-prefix.m4 serial 4 (gettext-0.14.2)
1818
 
 
1819
 
 
1820
 
 
1821
 
 
1822
 
 
1823
 
 
1824
 
 
1825
 
 
1826
 
 
1827
 
 
1828
 
VERSION=`sed -e 's/^.*"\(.*\)";$/\1/' ${srcdir}/src/version.c`
1829
 
{ echo "$as_me:$LINENO: configuring for GNU Wget $VERSION" >&5
1830
 
echo "$as_me: configuring for GNU Wget $VERSION" >&6;}
1831
 
 
1832
 
PACKAGE=wget
 
2287
{ $as_echo "$as_me:$LINENO: configuring for GNU Wget $PACKAGE_VERSION" >&5
 
2288
$as_echo "$as_me: configuring for GNU Wget $PACKAGE_VERSION" >&6;}
1833
2289
 
1834
2290
 
1835
2291
ac_aux_dir=
1836
 
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 
2292
for ac_dir in build-aux "$srcdir"/build-aux; do
1837
2293
  if test -f "$ac_dir/install-sh"; then
1838
2294
    ac_aux_dir=$ac_dir
1839
2295
    ac_install_sh="$ac_aux_dir/install-sh -c"
1849
2305
  fi
1850
2306
done
1851
2307
if test -z "$ac_aux_dir"; then
1852
 
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1853
 
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
 
2308
  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
 
2309
$as_echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
1854
2310
   { (exit 1); exit 1; }; }
1855
2311
fi
1856
2312
 
1863
2319
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1864
2320
 
1865
2321
 
 
2322
 
 
2323
am__api_version='1.10'
 
2324
 
 
2325
# Find a good install program.  We prefer a C program (faster),
 
2326
# so one script is as good as another.  But avoid the broken or
 
2327
# incompatible versions:
 
2328
# SysV /etc/install, /usr/sbin/install
 
2329
# SunOS /usr/etc/install
 
2330
# IRIX /sbin/install
 
2331
# AIX /bin/install
 
2332
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2333
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2334
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2335
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2336
# OS/2's system install, which has a completely different semantic
 
2337
# ./install, which can be erroneously created by make from ./install.sh.
 
2338
# Reject install programs that cannot install multiple files.
 
2339
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
2340
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
2341
if test -z "$INSTALL"; then
 
2342
if test "${ac_cv_path_install+set}" = set; then
 
2343
  $as_echo_n "(cached) " >&6
 
2344
else
 
2345
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2346
for as_dir in $PATH
 
2347
do
 
2348
  IFS=$as_save_IFS
 
2349
  test -z "$as_dir" && as_dir=.
 
2350
  # Account for people who put trailing slashes in PATH elements.
 
2351
case $as_dir/ in
 
2352
  ./ | .// | /cC/* | \
 
2353
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2354
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
2355
  /usr/ucb/* ) ;;
 
2356
  *)
 
2357
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2358
    # Don't use installbsd from OSF since it installs stuff as root
 
2359
    # by default.
 
2360
    for ac_prog in ginstall scoinst install; do
 
2361
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2362
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
2363
          if test $ac_prog = install &&
 
2364
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2365
            # AIX install.  It has an incompatible calling convention.
 
2366
            :
 
2367
          elif test $ac_prog = install &&
 
2368
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2369
            # program-specific install script used by HP pwplus--don't use.
 
2370
            :
 
2371
          else
 
2372
            rm -rf conftest.one conftest.two conftest.dir
 
2373
            echo one > conftest.one
 
2374
            echo two > conftest.two
 
2375
            mkdir conftest.dir
 
2376
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
2377
              test -s conftest.one && test -s conftest.two &&
 
2378
              test -s conftest.dir/conftest.one &&
 
2379
              test -s conftest.dir/conftest.two
 
2380
            then
 
2381
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2382
              break 3
 
2383
            fi
 
2384
          fi
 
2385
        fi
 
2386
      done
 
2387
    done
 
2388
    ;;
 
2389
esac
 
2390
 
 
2391
done
 
2392
IFS=$as_save_IFS
 
2393
 
 
2394
rm -rf conftest.one conftest.two conftest.dir
 
2395
 
 
2396
fi
 
2397
  if test "${ac_cv_path_install+set}" = set; then
 
2398
    INSTALL=$ac_cv_path_install
 
2399
  else
 
2400
    # As a last resort, use the slow shell script.  Don't cache a
 
2401
    # value for INSTALL within a source directory, because that will
 
2402
    # break other packages using the cache if that directory is
 
2403
    # removed, or if the value is a relative name.
 
2404
    INSTALL=$ac_install_sh
 
2405
  fi
 
2406
fi
 
2407
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
 
2408
$as_echo "$INSTALL" >&6; }
 
2409
 
 
2410
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2411
# It thinks the first close brace ends the variable substitution.
 
2412
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2413
 
 
2414
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2415
 
 
2416
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2417
 
 
2418
{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
2419
$as_echo_n "checking whether build environment is sane... " >&6; }
 
2420
# Just in case
 
2421
sleep 1
 
2422
echo timestamp > conftest.file
 
2423
# Do `set' in a subshell so we don't clobber the current shell's
 
2424
# arguments.  Must try -L first in case configure is actually a
 
2425
# symlink; some systems play weird games with the mod time of symlinks
 
2426
# (eg FreeBSD returns the mod time of the symlink's containing
 
2427
# directory).
 
2428
if (
 
2429
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
2430
   if test "$*" = "X"; then
 
2431
      # -L didn't work.
 
2432
      set X `ls -t $srcdir/configure conftest.file`
 
2433
   fi
 
2434
   rm -f conftest.file
 
2435
   if test "$*" != "X $srcdir/configure conftest.file" \
 
2436
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
2437
 
 
2438
      # If neither matched, then we have a broken ls.  This can happen
 
2439
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2440
      # broken ls alias from the environment.  This has actually
 
2441
      # happened.  Such a system could not be considered "sane".
 
2442
      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
2443
alias in your environment" >&5
 
2444
$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
2445
alias in your environment" >&2;}
 
2446
   { (exit 1); exit 1; }; }
 
2447
   fi
 
2448
 
 
2449
   test "$2" = conftest.file
 
2450
   )
 
2451
then
 
2452
   # Ok.
 
2453
   :
 
2454
else
 
2455
   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
2456
Check your system clock" >&5
 
2457
$as_echo "$as_me: error: newly created file is older than distributed files!
 
2458
Check your system clock" >&2;}
 
2459
   { (exit 1); exit 1; }; }
 
2460
fi
 
2461
{ $as_echo "$as_me:$LINENO: result: yes" >&5
 
2462
$as_echo "yes" >&6; }
 
2463
test "$program_prefix" != NONE &&
 
2464
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
2465
# Use a double $ so make ignores it.
 
2466
test "$program_suffix" != NONE &&
 
2467
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
2468
# Double any \ or $.
 
2469
# By default was `s,x,x', remove it if useless.
 
2470
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
 
2471
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
 
2472
 
 
2473
# expand $ac_aux_dir to an absolute path
 
2474
am_aux_dir=`cd $ac_aux_dir && pwd`
 
2475
 
 
2476
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
2477
# Use eval to expand $SHELL
 
2478
if eval "$MISSING --run true"; then
 
2479
  am_missing_run="$MISSING --run "
 
2480
else
 
2481
  am_missing_run=
 
2482
  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
2483
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2484
fi
 
2485
 
 
2486
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
 
2487
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
 
2488
if test -z "$MKDIR_P"; then
 
2489
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2490
  $as_echo_n "(cached) " >&6
 
2491
else
 
2492
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2493
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
2494
do
 
2495
  IFS=$as_save_IFS
 
2496
  test -z "$as_dir" && as_dir=.
 
2497
  for ac_prog in mkdir gmkdir; do
 
2498
         for ac_exec_ext in '' $ac_executable_extensions; do
 
2499
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
2500
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
2501
             'mkdir (GNU coreutils) '* | \
 
2502
             'mkdir (coreutils) '* | \
 
2503
             'mkdir (fileutils) '4.1*)
 
2504
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
2505
               break 3;;
 
2506
           esac
 
2507
         done
 
2508
       done
 
2509
done
 
2510
IFS=$as_save_IFS
 
2511
 
 
2512
fi
 
2513
 
 
2514
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2515
    MKDIR_P="$ac_cv_path_mkdir -p"
 
2516
  else
 
2517
    # As a last resort, use the slow shell script.  Don't cache a
 
2518
    # value for MKDIR_P within a source directory, because that will
 
2519
    # break other packages using the cache if that directory is
 
2520
    # removed, or if the value is a relative name.
 
2521
    test -d ./--version && rmdir ./--version
 
2522
    MKDIR_P="$ac_install_sh -d"
 
2523
  fi
 
2524
fi
 
2525
{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
 
2526
$as_echo "$MKDIR_P" >&6; }
 
2527
 
 
2528
mkdir_p="$MKDIR_P"
 
2529
case $mkdir_p in
 
2530
  [\\/$]* | ?:[\\/]*) ;;
 
2531
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
2532
esac
 
2533
 
 
2534
for ac_prog in gawk mawk nawk awk
 
2535
do
 
2536
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2537
set dummy $ac_prog; ac_word=$2
 
2538
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2539
$as_echo_n "checking for $ac_word... " >&6; }
 
2540
if test "${ac_cv_prog_AWK+set}" = set; then
 
2541
  $as_echo_n "(cached) " >&6
 
2542
else
 
2543
  if test -n "$AWK"; then
 
2544
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2545
else
 
2546
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2547
for as_dir in $PATH
 
2548
do
 
2549
  IFS=$as_save_IFS
 
2550
  test -z "$as_dir" && as_dir=.
 
2551
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2552
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2553
    ac_cv_prog_AWK="$ac_prog"
 
2554
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2555
    break 2
 
2556
  fi
 
2557
done
 
2558
done
 
2559
IFS=$as_save_IFS
 
2560
 
 
2561
fi
 
2562
fi
 
2563
AWK=$ac_cv_prog_AWK
 
2564
if test -n "$AWK"; then
 
2565
  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
 
2566
$as_echo "$AWK" >&6; }
 
2567
else
 
2568
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2569
$as_echo "no" >&6; }
 
2570
fi
 
2571
 
 
2572
 
 
2573
  test -n "$AWK" && break
 
2574
done
 
2575
 
 
2576
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2577
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
2578
set x ${MAKE-make}
 
2579
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2580
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
 
2581
  $as_echo_n "(cached) " >&6
 
2582
else
 
2583
  cat >conftest.make <<\_ACEOF
 
2584
SHELL = /bin/sh
 
2585
all:
 
2586
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
2587
_ACEOF
 
2588
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
2589
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2590
  *@@@%%%=?*=@@@%%%*)
 
2591
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2592
  *)
 
2593
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2594
esac
 
2595
rm -f conftest.make
 
2596
fi
 
2597
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2598
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
2599
$as_echo "yes" >&6; }
 
2600
  SET_MAKE=
 
2601
else
 
2602
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2603
$as_echo "no" >&6; }
 
2604
  SET_MAKE="MAKE=${MAKE-make}"
 
2605
fi
 
2606
 
 
2607
rm -rf .tst 2>/dev/null
 
2608
mkdir .tst 2>/dev/null
 
2609
if test -d .tst; then
 
2610
  am__leading_dot=.
 
2611
else
 
2612
  am__leading_dot=_
 
2613
fi
 
2614
rmdir .tst 2>/dev/null
 
2615
 
 
2616
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
2617
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
2618
  # is not polluted with repeated "-I."
 
2619
  am__isrc=' -I$(srcdir)'
 
2620
  # test to see if srcdir already configured
 
2621
  if test -f $srcdir/config.status; then
 
2622
    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
2623
$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
2624
   { (exit 1); exit 1; }; }
 
2625
  fi
 
2626
fi
 
2627
 
 
2628
# test whether we have cygpath
 
2629
if test -z "$CYGPATH_W"; then
 
2630
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
2631
    CYGPATH_W='cygpath -w'
 
2632
  else
 
2633
    CYGPATH_W=echo
 
2634
  fi
 
2635
fi
 
2636
 
 
2637
 
 
2638
# Define the identity of the package.
 
2639
 PACKAGE='wget'
 
2640
 VERSION='1.12'
 
2641
 
 
2642
 
 
2643
cat >>confdefs.h <<_ACEOF
 
2644
#define PACKAGE "$PACKAGE"
 
2645
_ACEOF
 
2646
 
 
2647
 
 
2648
cat >>confdefs.h <<_ACEOF
 
2649
#define VERSION "$VERSION"
 
2650
_ACEOF
 
2651
 
 
2652
# Some tools Automake needs.
 
2653
 
 
2654
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
2655
 
 
2656
 
 
2657
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2658
 
 
2659
 
 
2660
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
2661
 
 
2662
 
 
2663
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2664
 
 
2665
 
 
2666
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2667
 
 
2668
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
 
2669
 
 
2670
# Installed binaries are usually stripped using `strip' when the user
 
2671
# run `make install-strip'.  However `strip' might not be the right
 
2672
# tool to use in cross-compilation environments, therefore Automake
 
2673
# will honor the `STRIP' environment variable to overrule this program.
 
2674
if test "$cross_compiling" != no; then
 
2675
  if test -n "$ac_tool_prefix"; then
 
2676
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2677
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2678
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2679
$as_echo_n "checking for $ac_word... " >&6; }
 
2680
if test "${ac_cv_prog_STRIP+set}" = set; then
 
2681
  $as_echo_n "(cached) " >&6
 
2682
else
 
2683
  if test -n "$STRIP"; then
 
2684
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2685
else
 
2686
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2687
for as_dir in $PATH
 
2688
do
 
2689
  IFS=$as_save_IFS
 
2690
  test -z "$as_dir" && as_dir=.
 
2691
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2692
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2693
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2694
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2695
    break 2
 
2696
  fi
 
2697
done
 
2698
done
 
2699
IFS=$as_save_IFS
 
2700
 
 
2701
fi
 
2702
fi
 
2703
STRIP=$ac_cv_prog_STRIP
 
2704
if test -n "$STRIP"; then
 
2705
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
 
2706
$as_echo "$STRIP" >&6; }
 
2707
else
 
2708
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2709
$as_echo "no" >&6; }
 
2710
fi
 
2711
 
 
2712
 
 
2713
fi
 
2714
if test -z "$ac_cv_prog_STRIP"; then
 
2715
  ac_ct_STRIP=$STRIP
 
2716
  # Extract the first word of "strip", so it can be a program name with args.
 
2717
set dummy strip; ac_word=$2
 
2718
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2719
$as_echo_n "checking for $ac_word... " >&6; }
 
2720
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
2721
  $as_echo_n "(cached) " >&6
 
2722
else
 
2723
  if test -n "$ac_ct_STRIP"; then
 
2724
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2725
else
 
2726
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2727
for as_dir in $PATH
 
2728
do
 
2729
  IFS=$as_save_IFS
 
2730
  test -z "$as_dir" && as_dir=.
 
2731
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2732
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2733
    ac_cv_prog_ac_ct_STRIP="strip"
 
2734
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2735
    break 2
 
2736
  fi
 
2737
done
 
2738
done
 
2739
IFS=$as_save_IFS
 
2740
 
 
2741
fi
 
2742
fi
 
2743
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2744
if test -n "$ac_ct_STRIP"; then
 
2745
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
2746
$as_echo "$ac_ct_STRIP" >&6; }
 
2747
else
 
2748
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2749
$as_echo "no" >&6; }
 
2750
fi
 
2751
 
 
2752
  if test "x$ac_ct_STRIP" = x; then
 
2753
    STRIP=":"
 
2754
  else
 
2755
    case $cross_compiling:$ac_tool_warned in
 
2756
yes:)
 
2757
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
2758
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2759
ac_tool_warned=yes ;;
 
2760
esac
 
2761
    STRIP=$ac_ct_STRIP
 
2762
  fi
 
2763
else
 
2764
  STRIP="$ac_cv_prog_STRIP"
 
2765
fi
 
2766
 
 
2767
fi
 
2768
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2769
 
 
2770
# We need awk for the "check" target.  The system "awk" is bad on
 
2771
# some platforms.
 
2772
# Always define AMTAR for backward compatibility.
 
2773
 
 
2774
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
2775
 
 
2776
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
2777
 
 
2778
 
 
2779
 
 
2780
 
 
2781
 
 
2782
 
1866
2783
# Make sure we can run config.sub.
1867
2784
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1868
 
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1869
 
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
 
2785
  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
 
2786
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1870
2787
   { (exit 1); exit 1; }; }
1871
2788
 
1872
 
{ echo "$as_me:$LINENO: checking build system type" >&5
1873
 
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
 
2789
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
 
2790
$as_echo_n "checking build system type... " >&6; }
1874
2791
if test "${ac_cv_build+set}" = set; then
1875
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2792
  $as_echo_n "(cached) " >&6
1876
2793
else
1877
2794
  ac_build_alias=$build_alias
1878
2795
test "x$ac_build_alias" = x &&
1879
2796
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1880
2797
test "x$ac_build_alias" = x &&
1881
 
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1882
 
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
2798
  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
2799
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1883
2800
   { (exit 1); exit 1; }; }
1884
2801
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1885
 
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1886
 
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
 
2802
  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
 
2803
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1887
2804
   { (exit 1); exit 1; }; }
1888
2805
 
1889
2806
fi
1890
 
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1891
 
echo "${ECHO_T}$ac_cv_build" >&6; }
 
2807
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
2808
$as_echo "$ac_cv_build" >&6; }
1892
2809
case $ac_cv_build in
1893
2810
*-*-*) ;;
1894
 
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1895
 
echo "$as_me: error: invalid value of canonical build" >&2;}
 
2811
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
 
2812
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
1896
2813
   { (exit 1); exit 1; }; };;
1897
2814
esac
1898
2815
build=$ac_cv_build
1909
2826
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1910
2827
 
1911
2828
 
1912
 
{ echo "$as_me:$LINENO: checking host system type" >&5
1913
 
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
 
2829
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
 
2830
$as_echo_n "checking host system type... " >&6; }
1914
2831
if test "${ac_cv_host+set}" = set; then
1915
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2832
  $as_echo_n "(cached) " >&6
1916
2833
else
1917
2834
  if test "x$host_alias" = x; then
1918
2835
  ac_cv_host=$ac_cv_build
1919
2836
else
1920
2837
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1921
 
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1922
 
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
 
2838
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
 
2839
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1923
2840
   { (exit 1); exit 1; }; }
1924
2841
fi
1925
2842
 
1926
2843
fi
1927
 
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1928
 
echo "${ECHO_T}$ac_cv_host" >&6; }
 
2844
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
2845
$as_echo "$ac_cv_host" >&6; }
1929
2846
case $ac_cv_host in
1930
2847
*-*-*) ;;
1931
 
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1932
 
echo "$as_me: error: invalid value of canonical host" >&2;}
 
2848
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
 
2849
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
1933
2850
   { (exit 1); exit 1; }; };;
1934
2851
esac
1935
2852
host=$ac_cv_host
2013
2930
*yes*)
2014
2931
        wget_need_md5=yes
2015
2932
esac
2016
 
if test x"$ENABLE_OPIE" = xyes; then
2017
 
  OPIE_OBJ='ftp-opie.o'
2018
 
fi
2019
 
 
2020
 
 
2021
 
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2022
 
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2023
 
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2024
 
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2025
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2026
 
else
2027
 
  cat >conftest.make <<\_ACEOF
2028
 
SHELL = /bin/sh
2029
 
all:
2030
 
        @echo '@@@%%%=$(MAKE)=@@@%%%'
2031
 
_ACEOF
2032
 
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2033
 
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2034
 
  *@@@%%%=?*=@@@%%%*)
2035
 
    eval ac_cv_prog_make_${ac_make}_set=yes;;
2036
 
  *)
2037
 
    eval ac_cv_prog_make_${ac_make}_set=no;;
2038
 
esac
2039
 
rm -f conftest.make
2040
 
fi
2041
 
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2042
 
  { echo "$as_me:$LINENO: result: yes" >&5
2043
 
echo "${ECHO_T}yes" >&6; }
2044
 
  SET_MAKE=
2045
 
else
2046
 
  { echo "$as_me:$LINENO: result: no" >&5
2047
 
echo "${ECHO_T}no" >&6; }
2048
 
  SET_MAKE="MAKE=${MAKE-make}"
2049
 
fi
2050
 
 
2051
 
 
2052
 
# Find a good install program.  We prefer a C program (faster),
2053
 
# so one script is as good as another.  But avoid the broken or
2054
 
# incompatible versions:
2055
 
# SysV /etc/install, /usr/sbin/install
2056
 
# SunOS /usr/etc/install
2057
 
# IRIX /sbin/install
2058
 
# AIX /bin/install
2059
 
# AmigaOS /C/install, which installs bootblocks on floppy discs
2060
 
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2061
 
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2062
 
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2063
 
# OS/2's system install, which has a completely different semantic
2064
 
# ./install, which can be erroneously created by make from ./install.sh.
2065
 
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2066
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2067
 
if test -z "$INSTALL"; then
2068
 
if test "${ac_cv_path_install+set}" = set; then
2069
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2070
 
else
2071
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2072
 
for as_dir in $PATH
2073
 
do
2074
 
  IFS=$as_save_IFS
2075
 
  test -z "$as_dir" && as_dir=.
2076
 
  # Account for people who put trailing slashes in PATH elements.
2077
 
case $as_dir/ in
2078
 
  ./ | .// | /cC/* | \
2079
 
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2080
 
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2081
 
  /usr/ucb/* ) ;;
2082
 
  *)
2083
 
    # OSF1 and SCO ODT 3.0 have their own names for install.
2084
 
    # Don't use installbsd from OSF since it installs stuff as root
2085
 
    # by default.
2086
 
    for ac_prog in ginstall scoinst install; do
2087
 
      for ac_exec_ext in '' $ac_executable_extensions; do
2088
 
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2089
 
          if test $ac_prog = install &&
2090
 
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2091
 
            # AIX install.  It has an incompatible calling convention.
2092
 
            :
2093
 
          elif test $ac_prog = install &&
2094
 
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2095
 
            # program-specific install script used by HP pwplus--don't use.
2096
 
            :
2097
 
          else
2098
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2099
 
            break 3
2100
 
          fi
2101
 
        fi
2102
 
      done
2103
 
    done
2104
 
    ;;
2105
 
esac
2106
 
done
2107
 
IFS=$as_save_IFS
2108
 
 
2109
 
 
2110
 
fi
2111
 
  if test "${ac_cv_path_install+set}" = set; then
2112
 
    INSTALL=$ac_cv_path_install
2113
 
  else
2114
 
    # As a last resort, use the slow shell script.  Don't cache a
2115
 
    # value for INSTALL within a source directory, because that will
2116
 
    # break other packages using the cache if that directory is
2117
 
    # removed, or if the value is a relative name.
2118
 
    INSTALL=$ac_install_sh
2119
 
  fi
2120
 
fi
2121
 
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2122
 
echo "${ECHO_T}$INSTALL" >&6; }
2123
 
 
2124
 
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2125
 
# It thinks the first close brace ends the variable substitution.
2126
 
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2127
 
 
2128
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2129
 
 
2130
 
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2131
 
 
2132
2933
 
2133
2934
 
2134
2935
test -z "$CFLAGS"  && CFLAGS= auto_cflags=1
2142
2943
if test -n "$ac_tool_prefix"; then
2143
2944
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2144
2945
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2145
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2146
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2946
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2947
$as_echo_n "checking for $ac_word... " >&6; }
2147
2948
if test "${ac_cv_prog_CC+set}" = set; then
2148
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2949
  $as_echo_n "(cached) " >&6
2149
2950
else
2150
2951
  if test -n "$CC"; then
2151
2952
  ac_cv_prog_CC="$CC" # Let the user override the test.
2158
2959
  for ac_exec_ext in '' $ac_executable_extensions; do
2159
2960
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2160
2961
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2161
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2962
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2162
2963
    break 2
2163
2964
  fi
2164
2965
done
2169
2970
fi
2170
2971
CC=$ac_cv_prog_CC
2171
2972
if test -n "$CC"; then
2172
 
  { echo "$as_me:$LINENO: result: $CC" >&5
2173
 
echo "${ECHO_T}$CC" >&6; }
 
2973
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
2974
$as_echo "$CC" >&6; }
2174
2975
else
2175
 
  { echo "$as_me:$LINENO: result: no" >&5
2176
 
echo "${ECHO_T}no" >&6; }
 
2976
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2977
$as_echo "no" >&6; }
2177
2978
fi
2178
2979
 
2179
2980
 
2182
2983
  ac_ct_CC=$CC
2183
2984
  # Extract the first word of "gcc", so it can be a program name with args.
2184
2985
set dummy gcc; ac_word=$2
2185
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2186
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2986
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2987
$as_echo_n "checking for $ac_word... " >&6; }
2187
2988
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2188
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2989
  $as_echo_n "(cached) " >&6
2189
2990
else
2190
2991
  if test -n "$ac_ct_CC"; then
2191
2992
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2198
2999
  for ac_exec_ext in '' $ac_executable_extensions; do
2199
3000
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2200
3001
    ac_cv_prog_ac_ct_CC="gcc"
2201
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3002
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2202
3003
    break 2
2203
3004
  fi
2204
3005
done
2209
3010
fi
2210
3011
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2211
3012
if test -n "$ac_ct_CC"; then
2212
 
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2213
 
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
3013
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3014
$as_echo "$ac_ct_CC" >&6; }
2214
3015
else
2215
 
  { echo "$as_me:$LINENO: result: no" >&5
2216
 
echo "${ECHO_T}no" >&6; }
 
3016
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3017
$as_echo "no" >&6; }
2217
3018
fi
2218
3019
 
2219
3020
  if test "x$ac_ct_CC" = x; then
2221
3022
  else
2222
3023
    case $cross_compiling:$ac_tool_warned in
2223
3024
yes:)
2224
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2225
 
whose name does not start with the host triplet.  If you think this
2226
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
2227
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2228
 
whose name does not start with the host triplet.  If you think this
2229
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
3025
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
3026
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2230
3027
ac_tool_warned=yes ;;
2231
3028
esac
2232
3029
    CC=$ac_ct_CC
2239
3036
          if test -n "$ac_tool_prefix"; then
2240
3037
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2241
3038
set dummy ${ac_tool_prefix}cc; ac_word=$2
2242
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2243
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3039
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3040
$as_echo_n "checking for $ac_word... " >&6; }
2244
3041
if test "${ac_cv_prog_CC+set}" = set; then
2245
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3042
  $as_echo_n "(cached) " >&6
2246
3043
else
2247
3044
  if test -n "$CC"; then
2248
3045
  ac_cv_prog_CC="$CC" # Let the user override the test.
2255
3052
  for ac_exec_ext in '' $ac_executable_extensions; do
2256
3053
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2257
3054
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2258
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3055
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2259
3056
    break 2
2260
3057
  fi
2261
3058
done
2266
3063
fi
2267
3064
CC=$ac_cv_prog_CC
2268
3065
if test -n "$CC"; then
2269
 
  { echo "$as_me:$LINENO: result: $CC" >&5
2270
 
echo "${ECHO_T}$CC" >&6; }
 
3066
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
3067
$as_echo "$CC" >&6; }
2271
3068
else
2272
 
  { echo "$as_me:$LINENO: result: no" >&5
2273
 
echo "${ECHO_T}no" >&6; }
 
3069
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3070
$as_echo "no" >&6; }
2274
3071
fi
2275
3072
 
2276
3073
 
2279
3076
if test -z "$CC"; then
2280
3077
  # Extract the first word of "cc", so it can be a program name with args.
2281
3078
set dummy cc; ac_word=$2
2282
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2283
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3079
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3080
$as_echo_n "checking for $ac_word... " >&6; }
2284
3081
if test "${ac_cv_prog_CC+set}" = set; then
2285
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3082
  $as_echo_n "(cached) " >&6
2286
3083
else
2287
3084
  if test -n "$CC"; then
2288
3085
  ac_cv_prog_CC="$CC" # Let the user override the test.
2300
3097
       continue
2301
3098
     fi
2302
3099
    ac_cv_prog_CC="cc"
2303
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3100
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2304
3101
    break 2
2305
3102
  fi
2306
3103
done
2323
3120
fi
2324
3121
CC=$ac_cv_prog_CC
2325
3122
if test -n "$CC"; then
2326
 
  { echo "$as_me:$LINENO: result: $CC" >&5
2327
 
echo "${ECHO_T}$CC" >&6; }
 
3123
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
3124
$as_echo "$CC" >&6; }
2328
3125
else
2329
 
  { echo "$as_me:$LINENO: result: no" >&5
2330
 
echo "${ECHO_T}no" >&6; }
 
3126
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3127
$as_echo "no" >&6; }
2331
3128
fi
2332
3129
 
2333
3130
 
2338
3135
  do
2339
3136
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2340
3137
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2341
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2342
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3138
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3139
$as_echo_n "checking for $ac_word... " >&6; }
2343
3140
if test "${ac_cv_prog_CC+set}" = set; then
2344
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3141
  $as_echo_n "(cached) " >&6
2345
3142
else
2346
3143
  if test -n "$CC"; then
2347
3144
  ac_cv_prog_CC="$CC" # Let the user override the test.
2354
3151
  for ac_exec_ext in '' $ac_executable_extensions; do
2355
3152
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2356
3153
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2357
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3154
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2358
3155
    break 2
2359
3156
  fi
2360
3157
done
2365
3162
fi
2366
3163
CC=$ac_cv_prog_CC
2367
3164
if test -n "$CC"; then
2368
 
  { echo "$as_me:$LINENO: result: $CC" >&5
2369
 
echo "${ECHO_T}$CC" >&6; }
 
3165
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
3166
$as_echo "$CC" >&6; }
2370
3167
else
2371
 
  { echo "$as_me:$LINENO: result: no" >&5
2372
 
echo "${ECHO_T}no" >&6; }
 
3168
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3169
$as_echo "no" >&6; }
2373
3170
fi
2374
3171
 
2375
3172
 
2382
3179
do
2383
3180
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2384
3181
set dummy $ac_prog; ac_word=$2
2385
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2386
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3182
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3183
$as_echo_n "checking for $ac_word... " >&6; }
2387
3184
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2388
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3185
  $as_echo_n "(cached) " >&6
2389
3186
else
2390
3187
  if test -n "$ac_ct_CC"; then
2391
3188
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2398
3195
  for ac_exec_ext in '' $ac_executable_extensions; do
2399
3196
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2400
3197
    ac_cv_prog_ac_ct_CC="$ac_prog"
2401
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3198
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2402
3199
    break 2
2403
3200
  fi
2404
3201
done
2409
3206
fi
2410
3207
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2411
3208
if test -n "$ac_ct_CC"; then
2412
 
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2413
 
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
3209
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3210
$as_echo "$ac_ct_CC" >&6; }
2414
3211
else
2415
 
  { echo "$as_me:$LINENO: result: no" >&5
2416
 
echo "${ECHO_T}no" >&6; }
 
3212
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3213
$as_echo "no" >&6; }
2417
3214
fi
2418
3215
 
2419
3216
 
2425
3222
  else
2426
3223
    case $cross_compiling:$ac_tool_warned in
2427
3224
yes:)
2428
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2429
 
whose name does not start with the host triplet.  If you think this
2430
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
2431
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2432
 
whose name does not start with the host triplet.  If you think this
2433
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
3225
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
3226
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2434
3227
ac_tool_warned=yes ;;
2435
3228
esac
2436
3229
    CC=$ac_ct_CC
2440
3233
fi
2441
3234
 
2442
3235
 
2443
 
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
3236
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3237
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3238
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2444
3239
See \`config.log' for more details." >&5
2445
 
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
3240
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2446
3241
See \`config.log' for more details." >&2;}
2447
 
   { (exit 1); exit 1; }; }
 
3242
   { (exit 1); exit 1; }; }; }
2448
3243
 
2449
3244
# Provide some information about the compiler.
2450
 
echo "$as_me:$LINENO: checking for C compiler version" >&5
2451
 
ac_compiler=`set X $ac_compile; echo $2`
 
3245
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
 
3246
set X $ac_compile
 
3247
ac_compiler=$2
2452
3248
{ (ac_try="$ac_compiler --version >&5"
2453
3249
case "(($ac_try" in
2454
3250
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2455
3251
  *) ac_try_echo=$ac_try;;
2456
3252
esac
2457
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3253
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3254
$as_echo "$ac_try_echo") >&5
2458
3255
  (eval "$ac_compiler --version >&5") 2>&5
2459
3256
  ac_status=$?
2460
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3257
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461
3258
  (exit $ac_status); }
2462
3259
{ (ac_try="$ac_compiler -v >&5"
2463
3260
case "(($ac_try" in
2464
3261
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2465
3262
  *) ac_try_echo=$ac_try;;
2466
3263
esac
2467
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3264
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3265
$as_echo "$ac_try_echo") >&5
2468
3266
  (eval "$ac_compiler -v >&5") 2>&5
2469
3267
  ac_status=$?
2470
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3268
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471
3269
  (exit $ac_status); }
2472
3270
{ (ac_try="$ac_compiler -V >&5"
2473
3271
case "(($ac_try" in
2474
3272
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2475
3273
  *) ac_try_echo=$ac_try;;
2476
3274
esac
2477
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3275
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3276
$as_echo "$ac_try_echo") >&5
2478
3277
  (eval "$ac_compiler -V >&5") 2>&5
2479
3278
  ac_status=$?
2480
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3279
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481
3280
  (exit $ac_status); }
2482
3281
 
2483
3282
cat >conftest.$ac_ext <<_ACEOF
2496
3295
}
2497
3296
_ACEOF
2498
3297
ac_clean_files_save=$ac_clean_files
2499
 
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
3298
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2500
3299
# Try to create an executable without -o first, disregard a.out.
2501
3300
# It will help us diagnose broken compilers, and finding out an intuition
2502
3301
# of exeext.
2503
 
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2504
 
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2505
 
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2506
 
#
2507
 
# List of possible output files, starting from the most likely.
2508
 
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2509
 
# only as a last resort.  b.out is created by i960 compilers.
2510
 
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2511
 
#
2512
 
# The IRIX 6 linker writes into existing files which may not be
2513
 
# executable, retaining their permissions.  Remove them first so a
2514
 
# subsequent execution test works.
 
3302
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
3303
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
3304
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3305
 
 
3306
# The possible output files:
 
3307
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
3308
 
2515
3309
ac_rmfiles=
2516
3310
for ac_file in $ac_files
2517
3311
do
2518
3312
  case $ac_file in
2519
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
3313
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2520
3314
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2521
3315
  esac
2522
3316
done
2527
3321
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2528
3322
  *) ac_try_echo=$ac_try;;
2529
3323
esac
2530
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3324
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3325
$as_echo "$ac_try_echo") >&5
2531
3326
  (eval "$ac_link_default") 2>&5
2532
3327
  ac_status=$?
2533
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3328
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534
3329
  (exit $ac_status); }; then
2535
3330
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2536
3331
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2541
3336
do
2542
3337
  test -f "$ac_file" || continue
2543
3338
  case $ac_file in
2544
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
 
3339
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2545
3340
        ;;
2546
3341
    [ab].out )
2547
3342
        # We found the default executable, but exeext='' is most
2568
3363
  ac_file=''
2569
3364
fi
2570
3365
 
2571
 
{ echo "$as_me:$LINENO: result: $ac_file" >&5
2572
 
echo "${ECHO_T}$ac_file" >&6; }
 
3366
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
 
3367
$as_echo "$ac_file" >&6; }
2573
3368
if test -z "$ac_file"; then
2574
 
  echo "$as_me: failed program was:" >&5
 
3369
  $as_echo "$as_me: failed program was:" >&5
2575
3370
sed 's/^/| /' conftest.$ac_ext >&5
2576
3371
 
2577
 
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
3372
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3373
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3374
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2578
3375
See \`config.log' for more details." >&5
2579
 
echo "$as_me: error: C compiler cannot create executables
 
3376
$as_echo "$as_me: error: C compiler cannot create executables
2580
3377
See \`config.log' for more details." >&2;}
2581
 
   { (exit 77); exit 77; }; }
 
3378
   { (exit 77); exit 77; }; }; }
2582
3379
fi
2583
3380
 
2584
3381
ac_exeext=$ac_cv_exeext
2585
3382
 
2586
3383
# Check that the compiler produces executables we can run.  If not, either
2587
3384
# the compiler is broken, or we cross compile.
2588
 
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2589
 
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
 
3385
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
3386
$as_echo_n "checking whether the C compiler works... " >&6; }
2590
3387
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2591
3388
# If not cross compiling, check that we can run a simple program.
2592
3389
if test "$cross_compiling" != yes; then
2595
3392
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2596
3393
  *) ac_try_echo=$ac_try;;
2597
3394
esac
2598
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3395
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3396
$as_echo "$ac_try_echo") >&5
2599
3397
  (eval "$ac_try") 2>&5
2600
3398
  ac_status=$?
2601
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3399
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602
3400
  (exit $ac_status); }; }; then
2603
3401
    cross_compiling=no
2604
3402
  else
2605
3403
    if test "$cross_compiling" = maybe; then
2606
3404
        cross_compiling=yes
2607
3405
    else
2608
 
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
3406
        { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3407
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3408
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2609
3409
If you meant to cross compile, use \`--host'.
2610
3410
See \`config.log' for more details." >&5
2611
 
echo "$as_me: error: cannot run C compiled programs.
 
3411
$as_echo "$as_me: error: cannot run C compiled programs.
2612
3412
If you meant to cross compile, use \`--host'.
2613
3413
See \`config.log' for more details." >&2;}
2614
 
   { (exit 1); exit 1; }; }
 
3414
   { (exit 1); exit 1; }; }; }
2615
3415
    fi
2616
3416
  fi
2617
3417
fi
2618
 
{ echo "$as_me:$LINENO: result: yes" >&5
2619
 
echo "${ECHO_T}yes" >&6; }
 
3418
{ $as_echo "$as_me:$LINENO: result: yes" >&5
 
3419
$as_echo "yes" >&6; }
2620
3420
 
2621
 
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
3421
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2622
3422
ac_clean_files=$ac_clean_files_save
2623
3423
# Check that the compiler produces executables we can run.  If not, either
2624
3424
# the compiler is broken, or we cross compile.
2625
 
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2626
 
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2627
 
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2628
 
echo "${ECHO_T}$cross_compiling" >&6; }
 
3425
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
3426
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
3427
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
3428
$as_echo "$cross_compiling" >&6; }
2629
3429
 
2630
 
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2631
 
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
 
3430
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
3431
$as_echo_n "checking for suffix of executables... " >&6; }
2632
3432
if { (ac_try="$ac_link"
2633
3433
case "(($ac_try" in
2634
3434
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2635
3435
  *) ac_try_echo=$ac_try;;
2636
3436
esac
2637
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3437
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3438
$as_echo "$ac_try_echo") >&5
2638
3439
  (eval "$ac_link") 2>&5
2639
3440
  ac_status=$?
2640
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3441
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641
3442
  (exit $ac_status); }; then
2642
3443
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2643
3444
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2646
3447
for ac_file in conftest.exe conftest conftest.*; do
2647
3448
  test -f "$ac_file" || continue
2648
3449
  case $ac_file in
2649
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
3450
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2650
3451
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2651
3452
          break;;
2652
3453
    * ) break;;
2653
3454
  esac
2654
3455
done
2655
3456
else
2656
 
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
3457
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3458
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3459
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2657
3460
See \`config.log' for more details." >&5
2658
 
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
3461
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2659
3462
See \`config.log' for more details." >&2;}
2660
 
   { (exit 1); exit 1; }; }
 
3463
   { (exit 1); exit 1; }; }; }
2661
3464
fi
2662
3465
 
2663
3466
rm -f conftest$ac_cv_exeext
2664
 
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2665
 
echo "${ECHO_T}$ac_cv_exeext" >&6; }
 
3467
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
3468
$as_echo "$ac_cv_exeext" >&6; }
2666
3469
 
2667
3470
rm -f conftest.$ac_ext
2668
3471
EXEEXT=$ac_cv_exeext
2669
3472
ac_exeext=$EXEEXT
2670
 
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2671
 
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
 
3473
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
3474
$as_echo_n "checking for suffix of object files... " >&6; }
2672
3475
if test "${ac_cv_objext+set}" = set; then
2673
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3476
  $as_echo_n "(cached) " >&6
2674
3477
else
2675
3478
  cat >conftest.$ac_ext <<_ACEOF
2676
3479
/* confdefs.h.  */
2693
3496
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2694
3497
  *) ac_try_echo=$ac_try;;
2695
3498
esac
2696
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3499
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3500
$as_echo "$ac_try_echo") >&5
2697
3501
  (eval "$ac_compile") 2>&5
2698
3502
  ac_status=$?
2699
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3503
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700
3504
  (exit $ac_status); }; then
2701
3505
  for ac_file in conftest.o conftest.obj conftest.*; do
2702
3506
  test -f "$ac_file" || continue;
2703
3507
  case $ac_file in
2704
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
 
3508
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2705
3509
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2706
3510
       break;;
2707
3511
  esac
2708
3512
done
2709
3513
else
2710
 
  echo "$as_me: failed program was:" >&5
 
3514
  $as_echo "$as_me: failed program was:" >&5
2711
3515
sed 's/^/| /' conftest.$ac_ext >&5
2712
3516
 
2713
 
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
3517
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3518
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3519
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2714
3520
See \`config.log' for more details." >&5
2715
 
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
3521
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2716
3522
See \`config.log' for more details." >&2;}
2717
 
   { (exit 1); exit 1; }; }
 
3523
   { (exit 1); exit 1; }; }; }
2718
3524
fi
2719
3525
 
2720
3526
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2721
3527
fi
2722
 
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2723
 
echo "${ECHO_T}$ac_cv_objext" >&6; }
 
3528
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
3529
$as_echo "$ac_cv_objext" >&6; }
2724
3530
OBJEXT=$ac_cv_objext
2725
3531
ac_objext=$OBJEXT
2726
 
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2727
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
 
3532
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
3533
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2728
3534
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2729
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3535
  $as_echo_n "(cached) " >&6
2730
3536
else
2731
3537
  cat >conftest.$ac_ext <<_ACEOF
2732
3538
/* confdefs.h.  */
2752
3558
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2753
3559
  *) ac_try_echo=$ac_try;;
2754
3560
esac
2755
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3561
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3562
$as_echo "$ac_try_echo") >&5
2756
3563
  (eval "$ac_compile") 2>conftest.er1
2757
3564
  ac_status=$?
2758
3565
  grep -v '^ *+' conftest.er1 >conftest.err
2759
3566
  rm -f conftest.er1
2760
3567
  cat conftest.err >&5
2761
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3568
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762
3569
  (exit $ac_status); } && {
2763
3570
         test -z "$ac_c_werror_flag" ||
2764
3571
         test ! -s conftest.err
2765
3572
       } && test -s conftest.$ac_objext; then
2766
3573
  ac_compiler_gnu=yes
2767
3574
else
2768
 
  echo "$as_me: failed program was:" >&5
 
3575
  $as_echo "$as_me: failed program was:" >&5
2769
3576
sed 's/^/| /' conftest.$ac_ext >&5
2770
3577
 
2771
3578
        ac_compiler_gnu=no
2775
3582
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2776
3583
 
2777
3584
fi
2778
 
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2779
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2780
 
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
3585
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
3586
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
3587
if test $ac_compiler_gnu = yes; then
 
3588
  GCC=yes
 
3589
else
 
3590
  GCC=
 
3591
fi
2781
3592
ac_test_CFLAGS=${CFLAGS+set}
2782
3593
ac_save_CFLAGS=$CFLAGS
2783
 
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2784
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
 
3594
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
3595
$as_echo_n "checking whether $CC accepts -g... " >&6; }
2785
3596
if test "${ac_cv_prog_cc_g+set}" = set; then
2786
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3597
  $as_echo_n "(cached) " >&6
2787
3598
else
2788
3599
  ac_save_c_werror_flag=$ac_c_werror_flag
2789
3600
   ac_c_werror_flag=yes
2810
3621
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2811
3622
  *) ac_try_echo=$ac_try;;
2812
3623
esac
2813
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3624
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3625
$as_echo "$ac_try_echo") >&5
2814
3626
  (eval "$ac_compile") 2>conftest.er1
2815
3627
  ac_status=$?
2816
3628
  grep -v '^ *+' conftest.er1 >conftest.err
2817
3629
  rm -f conftest.er1
2818
3630
  cat conftest.err >&5
2819
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3631
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820
3632
  (exit $ac_status); } && {
2821
3633
         test -z "$ac_c_werror_flag" ||
2822
3634
         test ! -s conftest.err
2823
3635
       } && test -s conftest.$ac_objext; then
2824
3636
  ac_cv_prog_cc_g=yes
2825
3637
else
2826
 
  echo "$as_me: failed program was:" >&5
 
3638
  $as_echo "$as_me: failed program was:" >&5
2827
3639
sed 's/^/| /' conftest.$ac_ext >&5
2828
3640
 
2829
3641
        CFLAGS=""
2848
3660
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2849
3661
  *) ac_try_echo=$ac_try;;
2850
3662
esac
2851
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3663
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3664
$as_echo "$ac_try_echo") >&5
2852
3665
  (eval "$ac_compile") 2>conftest.er1
2853
3666
  ac_status=$?
2854
3667
  grep -v '^ *+' conftest.er1 >conftest.err
2855
3668
  rm -f conftest.er1
2856
3669
  cat conftest.err >&5
2857
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3670
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858
3671
  (exit $ac_status); } && {
2859
3672
         test -z "$ac_c_werror_flag" ||
2860
3673
         test ! -s conftest.err
2861
3674
       } && test -s conftest.$ac_objext; then
2862
3675
  :
2863
3676
else
2864
 
  echo "$as_me: failed program was:" >&5
 
3677
  $as_echo "$as_me: failed program was:" >&5
2865
3678
sed 's/^/| /' conftest.$ac_ext >&5
2866
3679
 
2867
3680
        ac_c_werror_flag=$ac_save_c_werror_flag
2887
3700
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2888
3701
  *) ac_try_echo=$ac_try;;
2889
3702
esac
2890
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3703
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3704
$as_echo "$ac_try_echo") >&5
2891
3705
  (eval "$ac_compile") 2>conftest.er1
2892
3706
  ac_status=$?
2893
3707
  grep -v '^ *+' conftest.er1 >conftest.err
2894
3708
  rm -f conftest.er1
2895
3709
  cat conftest.err >&5
2896
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3710
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897
3711
  (exit $ac_status); } && {
2898
3712
         test -z "$ac_c_werror_flag" ||
2899
3713
         test ! -s conftest.err
2900
3714
       } && test -s conftest.$ac_objext; then
2901
3715
  ac_cv_prog_cc_g=yes
2902
3716
else
2903
 
  echo "$as_me: failed program was:" >&5
 
3717
  $as_echo "$as_me: failed program was:" >&5
2904
3718
sed 's/^/| /' conftest.$ac_ext >&5
2905
3719
 
2906
3720
 
2915
3729
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2916
3730
   ac_c_werror_flag=$ac_save_c_werror_flag
2917
3731
fi
2918
 
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2919
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
 
3732
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
3733
$as_echo "$ac_cv_prog_cc_g" >&6; }
2920
3734
if test "$ac_test_CFLAGS" = set; then
2921
3735
  CFLAGS=$ac_save_CFLAGS
2922
3736
elif test $ac_cv_prog_cc_g = yes; then
2932
3746
    CFLAGS=
2933
3747
  fi
2934
3748
fi
2935
 
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2936
 
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
 
3749
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
3750
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2937
3751
if test "${ac_cv_prog_cc_c89+set}" = set; then
2938
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3752
  $as_echo_n "(cached) " >&6
2939
3753
else
2940
3754
  ac_cv_prog_cc_c89=no
2941
3755
ac_save_CC=$CC
3006
3820
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3007
3821
  *) ac_try_echo=$ac_try;;
3008
3822
esac
3009
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3823
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3824
$as_echo "$ac_try_echo") >&5
3010
3825
  (eval "$ac_compile") 2>conftest.er1
3011
3826
  ac_status=$?
3012
3827
  grep -v '^ *+' conftest.er1 >conftest.err
3013
3828
  rm -f conftest.er1
3014
3829
  cat conftest.err >&5
3015
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3830
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016
3831
  (exit $ac_status); } && {
3017
3832
         test -z "$ac_c_werror_flag" ||
3018
3833
         test ! -s conftest.err
3019
3834
       } && test -s conftest.$ac_objext; then
3020
3835
  ac_cv_prog_cc_c89=$ac_arg
3021
3836
else
3022
 
  echo "$as_me: failed program was:" >&5
 
3837
  $as_echo "$as_me: failed program was:" >&5
3023
3838
sed 's/^/| /' conftest.$ac_ext >&5
3024
3839
 
3025
3840
 
3035
3850
# AC_CACHE_VAL
3036
3851
case "x$ac_cv_prog_cc_c89" in
3037
3852
  x)
3038
 
    { echo "$as_me:$LINENO: result: none needed" >&5
3039
 
echo "${ECHO_T}none needed" >&6; } ;;
 
3853
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
 
3854
$as_echo "none needed" >&6; } ;;
3040
3855
  xno)
3041
 
    { echo "$as_me:$LINENO: result: unsupported" >&5
3042
 
echo "${ECHO_T}unsupported" >&6; } ;;
 
3856
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
 
3857
$as_echo "unsupported" >&6; } ;;
3043
3858
  *)
3044
3859
    CC="$CC $ac_cv_prog_cc_c89"
3045
 
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3046
 
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3047
 
esac
3048
 
 
3049
 
 
3050
 
ac_ext=c
3051
 
ac_cpp='$CPP $CPPFLAGS'
3052
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3053
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3054
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3055
 
 
3056
 
 
3057
 
ac_ext=c
3058
 
ac_cpp='$CPP $CPPFLAGS'
3059
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3060
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3061
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3062
 
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3063
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
 
3860
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
3861
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
3862
esac
 
3863
 
 
3864
 
 
3865
ac_ext=c
 
3866
ac_cpp='$CPP $CPPFLAGS'
 
3867
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3868
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3869
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3870
DEPDIR="${am__leading_dot}deps"
 
3871
 
 
3872
ac_config_commands="$ac_config_commands depfiles"
 
3873
 
 
3874
 
 
3875
am_make=${MAKE-make}
 
3876
cat > confinc << 'END'
 
3877
am__doit:
 
3878
        @echo done
 
3879
.PHONY: am__doit
 
3880
END
 
3881
# If we don't find an include directive, just comment out the code.
 
3882
{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
3883
$as_echo_n "checking for style of include used by $am_make... " >&6; }
 
3884
am__include="#"
 
3885
am__quote=
 
3886
_am_result=none
 
3887
# First try GNU make style include.
 
3888
echo "include confinc" > confmf
 
3889
# We grep out `Entering directory' and `Leaving directory'
 
3890
# messages which can occur if `w' ends up in MAKEFLAGS.
 
3891
# In particular we don't look at `^make:' because GNU make might
 
3892
# be invoked under some other name (usually "gmake"), in which
 
3893
# case it prints its new name instead of `make'.
 
3894
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
3895
   am__include=include
 
3896
   am__quote=
 
3897
   _am_result=GNU
 
3898
fi
 
3899
# Now try BSD make style include.
 
3900
if test "$am__include" = "#"; then
 
3901
   echo '.include "confinc"' > confmf
 
3902
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
3903
      am__include=.include
 
3904
      am__quote="\""
 
3905
      _am_result=BSD
 
3906
   fi
 
3907
fi
 
3908
 
 
3909
 
 
3910
{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
 
3911
$as_echo "$_am_result" >&6; }
 
3912
rm -f confinc confmf
 
3913
 
 
3914
# Check whether --enable-dependency-tracking was given.
 
3915
if test "${enable_dependency_tracking+set}" = set; then
 
3916
  enableval=$enable_dependency_tracking;
 
3917
fi
 
3918
 
 
3919
if test "x$enable_dependency_tracking" != xno; then
 
3920
  am_depcomp="$ac_aux_dir/depcomp"
 
3921
  AMDEPBACKSLASH='\'
 
3922
fi
 
3923
 if test "x$enable_dependency_tracking" != xno; then
 
3924
  AMDEP_TRUE=
 
3925
  AMDEP_FALSE='#'
 
3926
else
 
3927
  AMDEP_TRUE='#'
 
3928
  AMDEP_FALSE=
 
3929
fi
 
3930
 
 
3931
 
 
3932
 
 
3933
depcc="$CC"   am_compiler_list=
 
3934
 
 
3935
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3936
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
3937
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
3938
  $as_echo_n "(cached) " >&6
 
3939
else
 
3940
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3941
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3942
  # making bogus files that we don't know about and never remove.  For
 
3943
  # instance it was reported that on HP-UX the gcc test will end up
 
3944
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3945
  # in D'.
 
3946
  mkdir conftest.dir
 
3947
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3948
  # using a relative directory.
 
3949
  cp "$am_depcomp" conftest.dir
 
3950
  cd conftest.dir
 
3951
  # We will build objects and dependencies in a subdirectory because
 
3952
  # it helps to detect inapplicable dependency modes.  For instance
 
3953
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3954
  # side effect of compilation, but ICC will put the dependencies in
 
3955
  # the current directory while Tru64 will put them in the object
 
3956
  # directory.
 
3957
  mkdir sub
 
3958
 
 
3959
  am_cv_CC_dependencies_compiler_type=none
 
3960
  if test "$am_compiler_list" = ""; then
 
3961
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3962
  fi
 
3963
  for depmode in $am_compiler_list; do
 
3964
    # Setup a source with many dependencies, because some compilers
 
3965
    # like to wrap large dependency lists on column 80 (with \), and
 
3966
    # we should not choose a depcomp mode which is confused by this.
 
3967
    #
 
3968
    # We need to recreate these files for each test, as the compiler may
 
3969
    # overwrite some of them when testing with obscure command lines.
 
3970
    # This happens at least with the AIX C compiler.
 
3971
    : > sub/conftest.c
 
3972
    for i in 1 2 3 4 5 6; do
 
3973
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3974
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3975
      # Solaris 8's {/usr,}/bin/sh.
 
3976
      touch sub/conftst$i.h
 
3977
    done
 
3978
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3979
 
 
3980
    case $depmode in
 
3981
    nosideeffect)
 
3982
      # after this tag, mechanisms are not by side-effect, so they'll
 
3983
      # only be used when explicitly requested
 
3984
      if test "x$enable_dependency_tracking" = xyes; then
 
3985
        continue
 
3986
      else
 
3987
        break
 
3988
      fi
 
3989
      ;;
 
3990
    none) break ;;
 
3991
    esac
 
3992
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3993
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3994
    # handle `-M -o', and we need to detect this.
 
3995
    if depmode=$depmode \
 
3996
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3997
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3998
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3999
         >/dev/null 2>conftest.err &&
 
4000
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
4001
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
4002
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
4003
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
4004
      # icc doesn't choke on unknown options, it will just issue warnings
 
4005
      # or remarks (even with -Werror).  So we grep stderr for any message
 
4006
      # that says an option was ignored or not supported.
 
4007
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
4008
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
4009
      # The diagnosis changed in icc 8.0:
 
4010
      #   icc: Command line remark: option '-MP' not supported
 
4011
      if (grep 'ignoring option' conftest.err ||
 
4012
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
4013
        am_cv_CC_dependencies_compiler_type=$depmode
 
4014
        break
 
4015
      fi
 
4016
    fi
 
4017
  done
 
4018
 
 
4019
  cd ..
 
4020
  rm -rf conftest.dir
 
4021
else
 
4022
  am_cv_CC_dependencies_compiler_type=none
 
4023
fi
 
4024
 
 
4025
fi
 
4026
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
4027
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
4028
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
4029
 
 
4030
 if
 
4031
  test "x$enable_dependency_tracking" != xno \
 
4032
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
4033
  am__fastdepCC_TRUE=
 
4034
  am__fastdepCC_FALSE='#'
 
4035
else
 
4036
  am__fastdepCC_TRUE='#'
 
4037
  am__fastdepCC_FALSE=
 
4038
fi
 
4039
 
 
4040
 
 
4041
if test "x$CC" != xcc; then
 
4042
  { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
 
4043
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
 
4044
else
 
4045
  { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
 
4046
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
 
4047
fi
 
4048
set dummy $CC; ac_cc=`$as_echo "$2" |
 
4049
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
4050
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
 
4051
  $as_echo_n "(cached) " >&6
 
4052
else
 
4053
  cat >conftest.$ac_ext <<_ACEOF
 
4054
/* confdefs.h.  */
 
4055
_ACEOF
 
4056
cat confdefs.h >>conftest.$ac_ext
 
4057
cat >>conftest.$ac_ext <<_ACEOF
 
4058
/* end confdefs.h.  */
 
4059
 
 
4060
int
 
4061
main ()
 
4062
{
 
4063
 
 
4064
  ;
 
4065
  return 0;
 
4066
}
 
4067
_ACEOF
 
4068
# Make sure it works both with $CC and with simple cc.
 
4069
# We do the test twice because some compilers refuse to overwrite an
 
4070
# existing .o file with -o, though they will create one.
 
4071
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 
4072
rm -f conftest2.*
 
4073
if { (case "(($ac_try" in
 
4074
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4075
  *) ac_try_echo=$ac_try;;
 
4076
esac
 
4077
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4078
$as_echo "$ac_try_echo") >&5
 
4079
  (eval "$ac_try") 2>&5
 
4080
  ac_status=$?
 
4081
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4082
  (exit $ac_status); } &&
 
4083
   test -f conftest2.$ac_objext && { (case "(($ac_try" in
 
4084
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4085
  *) ac_try_echo=$ac_try;;
 
4086
esac
 
4087
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4088
$as_echo "$ac_try_echo") >&5
 
4089
  (eval "$ac_try") 2>&5
 
4090
  ac_status=$?
 
4091
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4092
  (exit $ac_status); };
 
4093
then
 
4094
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
 
4095
  if test "x$CC" != xcc; then
 
4096
    # Test first that cc exists at all.
 
4097
    if { ac_try='cc -c conftest.$ac_ext >&5'
 
4098
  { (case "(($ac_try" in
 
4099
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4100
  *) ac_try_echo=$ac_try;;
 
4101
esac
 
4102
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4103
$as_echo "$ac_try_echo") >&5
 
4104
  (eval "$ac_try") 2>&5
 
4105
  ac_status=$?
 
4106
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4107
  (exit $ac_status); }; }; then
 
4108
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 
4109
      rm -f conftest2.*
 
4110
      if { (case "(($ac_try" in
 
4111
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4112
  *) ac_try_echo=$ac_try;;
 
4113
esac
 
4114
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4115
$as_echo "$ac_try_echo") >&5
 
4116
  (eval "$ac_try") 2>&5
 
4117
  ac_status=$?
 
4118
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4119
  (exit $ac_status); } &&
 
4120
         test -f conftest2.$ac_objext && { (case "(($ac_try" in
 
4121
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4122
  *) ac_try_echo=$ac_try;;
 
4123
esac
 
4124
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4125
$as_echo "$ac_try_echo") >&5
 
4126
  (eval "$ac_try") 2>&5
 
4127
  ac_status=$?
 
4128
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4129
  (exit $ac_status); };
 
4130
      then
 
4131
        # cc works too.
 
4132
        :
 
4133
      else
 
4134
        # cc exists but doesn't like -o.
 
4135
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
4136
      fi
 
4137
    fi
 
4138
  fi
 
4139
else
 
4140
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
4141
fi
 
4142
rm -f core conftest*
 
4143
 
 
4144
fi
 
4145
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
 
4146
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
4147
$as_echo "yes" >&6; }
 
4148
else
 
4149
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4150
$as_echo "no" >&6; }
 
4151
 
 
4152
cat >>confdefs.h <<\_ACEOF
 
4153
#define NO_MINUS_C_MINUS_O 1
 
4154
_ACEOF
 
4155
 
 
4156
fi
 
4157
 
 
4158
# FIXME: we rely on the cache variable name because
 
4159
# there is no other way.
 
4160
set dummy $CC
 
4161
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
4162
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
 
4163
if test "$am_t" != yes; then
 
4164
   # Losing compiler, so override with the script.
 
4165
   # FIXME: It is wrong to rewrite CC.
 
4166
   # But if we don't then we get into trouble of one sort or another.
 
4167
   # A longer-term fix would be to have automake use am__CC in this case,
 
4168
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
4169
   CC="$am_aux_dir/compile $CC"
 
4170
fi
 
4171
 
 
4172
 
 
4173
 
 
4174
ac_ext=c
 
4175
ac_cpp='$CPP $CPPFLAGS'
 
4176
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4177
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4178
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4179
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
4180
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3064
4181
# On Suns, sometimes $CPP names a directory.
3065
4182
if test -n "$CPP" && test -d "$CPP"; then
3066
4183
  CPP=
3067
4184
fi
3068
4185
if test -z "$CPP"; then
3069
4186
  if test "${ac_cv_prog_CPP+set}" = set; then
3070
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4187
  $as_echo_n "(cached) " >&6
3071
4188
else
3072
4189
      # Double quotes because CPP needs to be expanded
3073
4190
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3099
4216
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100
4217
  *) ac_try_echo=$ac_try;;
3101
4218
esac
3102
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4219
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4220
$as_echo "$ac_try_echo") >&5
3103
4221
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3104
4222
  ac_status=$?
3105
4223
  grep -v '^ *+' conftest.er1 >conftest.err
3106
4224
  rm -f conftest.er1
3107
4225
  cat conftest.err >&5
3108
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4226
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109
4227
  (exit $ac_status); } >/dev/null && {
3110
4228
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3111
4229
         test ! -s conftest.err
3112
4230
       }; then
3113
4231
  :
3114
4232
else
3115
 
  echo "$as_me: failed program was:" >&5
 
4233
  $as_echo "$as_me: failed program was:" >&5
3116
4234
sed 's/^/| /' conftest.$ac_ext >&5
3117
4235
 
3118
4236
  # Broken: fails on valid input.
3136
4254
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137
4255
  *) ac_try_echo=$ac_try;;
3138
4256
esac
3139
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4257
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4258
$as_echo "$ac_try_echo") >&5
3140
4259
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3141
4260
  ac_status=$?
3142
4261
  grep -v '^ *+' conftest.er1 >conftest.err
3143
4262
  rm -f conftest.er1
3144
4263
  cat conftest.err >&5
3145
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4264
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146
4265
  (exit $ac_status); } >/dev/null && {
3147
4266
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3148
4267
         test ! -s conftest.err
3150
4269
  # Broken: success on invalid input.
3151
4270
continue
3152
4271
else
3153
 
  echo "$as_me: failed program was:" >&5
 
4272
  $as_echo "$as_me: failed program was:" >&5
3154
4273
sed 's/^/| /' conftest.$ac_ext >&5
3155
4274
 
3156
4275
  # Passes both tests.
3175
4294
else
3176
4295
  ac_cv_prog_CPP=$CPP
3177
4296
fi
3178
 
{ echo "$as_me:$LINENO: result: $CPP" >&5
3179
 
echo "${ECHO_T}$CPP" >&6; }
 
4297
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
 
4298
$as_echo "$CPP" >&6; }
3180
4299
ac_preproc_ok=false
3181
4300
for ac_c_preproc_warn_flag in '' yes
3182
4301
do
3204
4323
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205
4324
  *) ac_try_echo=$ac_try;;
3206
4325
esac
3207
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4326
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4327
$as_echo "$ac_try_echo") >&5
3208
4328
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3209
4329
  ac_status=$?
3210
4330
  grep -v '^ *+' conftest.er1 >conftest.err
3211
4331
  rm -f conftest.er1
3212
4332
  cat conftest.err >&5
3213
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4333
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214
4334
  (exit $ac_status); } >/dev/null && {
3215
4335
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3216
4336
         test ! -s conftest.err
3217
4337
       }; then
3218
4338
  :
3219
4339
else
3220
 
  echo "$as_me: failed program was:" >&5
 
4340
  $as_echo "$as_me: failed program was:" >&5
3221
4341
sed 's/^/| /' conftest.$ac_ext >&5
3222
4342
 
3223
4343
  # Broken: fails on valid input.
3241
4361
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242
4362
  *) ac_try_echo=$ac_try;;
3243
4363
esac
3244
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4364
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4365
$as_echo "$ac_try_echo") >&5
3245
4366
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3246
4367
  ac_status=$?
3247
4368
  grep -v '^ *+' conftest.er1 >conftest.err
3248
4369
  rm -f conftest.er1
3249
4370
  cat conftest.err >&5
3250
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4371
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251
4372
  (exit $ac_status); } >/dev/null && {
3252
4373
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3253
4374
         test ! -s conftest.err
3255
4376
  # Broken: success on invalid input.
3256
4377
continue
3257
4378
else
3258
 
  echo "$as_me: failed program was:" >&5
 
4379
  $as_echo "$as_me: failed program was:" >&5
3259
4380
sed 's/^/| /' conftest.$ac_ext >&5
3260
4381
 
3261
4382
  # Passes both tests.
3271
4392
if $ac_preproc_ok; then
3272
4393
  :
3273
4394
else
3274
 
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
4395
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
4396
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4397
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3275
4398
See \`config.log' for more details." >&5
3276
 
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
4399
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3277
4400
See \`config.log' for more details." >&2;}
3278
 
   { (exit 1); exit 1; }; }
 
4401
   { (exit 1); exit 1; }; }; }
3279
4402
fi
3280
4403
 
3281
4404
ac_ext=c
3285
4408
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3286
4409
 
3287
4410
 
3288
 
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3289
 
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3290
 
if test "${ac_cv_path_GREP+set}" = set; then
3291
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3292
 
else
3293
 
  # Extract the first word of "grep ggrep" to use in msg output
3294
 
if test -z "$GREP"; then
3295
 
set dummy grep ggrep; ac_prog_name=$2
3296
 
if test "${ac_cv_path_GREP+set}" = set; then
3297
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3298
 
else
 
4411
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
 
4412
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
4413
if test "${ac_cv_path_GREP+set}" = set; then
 
4414
  $as_echo_n "(cached) " >&6
 
4415
else
 
4416
  if test -z "$GREP"; then
3299
4417
  ac_path_GREP_found=false
3300
 
# Loop through the user's path and test for each of PROGNAME-LIST
3301
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4418
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4419
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302
4420
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3303
4421
do
3304
4422
  IFS=$as_save_IFS
3305
4423
  test -z "$as_dir" && as_dir=.
3306
4424
  for ac_prog in grep ggrep; do
3307
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3308
 
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3309
 
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3310
 
    # Check for GNU ac_path_GREP and select it if it is found.
 
4425
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4426
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
4427
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
4428
# Check for GNU ac_path_GREP and select it if it is found.
3311
4429
  # Check for GNU $ac_path_GREP
3312
4430
case `"$ac_path_GREP" --version 2>&1` in
3313
4431
*GNU*)
3314
4432
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3315
4433
*)
3316
4434
  ac_count=0
3317
 
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
4435
  $as_echo_n 0123456789 >"conftest.in"
3318
4436
  while :
3319
4437
  do
3320
4438
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3321
4439
    mv "conftest.tmp" "conftest.in"
3322
4440
    cp "conftest.in" "conftest.nl"
3323
 
    echo 'GREP' >> "conftest.nl"
 
4441
    $as_echo 'GREP' >> "conftest.nl"
3324
4442
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3325
4443
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3326
4444
    ac_count=`expr $ac_count + 1`
3335
4453
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3336
4454
esac
3337
4455
 
3338
 
 
3339
 
    $ac_path_GREP_found && break 3
 
4456
      $ac_path_GREP_found && break 3
 
4457
    done
3340
4458
  done
3341
4459
done
3342
 
 
3343
 
done
3344
4460
IFS=$as_save_IFS
3345
 
 
3346
 
 
3347
 
fi
3348
 
 
3349
 
GREP="$ac_cv_path_GREP"
3350
 
if test -z "$GREP"; then
3351
 
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3352
 
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4461
  if test -z "$ac_cv_path_GREP"; then
 
4462
    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4463
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3353
4464
   { (exit 1); exit 1; }; }
3354
 
fi
3355
 
 
 
4465
  fi
3356
4466
else
3357
4467
  ac_cv_path_GREP=$GREP
3358
4468
fi
3359
4469
 
3360
 
 
3361
4470
fi
3362
 
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3363
 
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
 
4471
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
 
4472
$as_echo "$ac_cv_path_GREP" >&6; }
3364
4473
 GREP="$ac_cv_path_GREP"
3365
4474
 
3366
4475
 
3367
 
{ echo "$as_me:$LINENO: checking for egrep" >&5
3368
 
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
 
4476
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
 
4477
$as_echo_n "checking for egrep... " >&6; }
3369
4478
if test "${ac_cv_path_EGREP+set}" = set; then
3370
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4479
  $as_echo_n "(cached) " >&6
3371
4480
else
3372
4481
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3373
4482
   then ac_cv_path_EGREP="$GREP -E"
3374
4483
   else
3375
 
     # Extract the first word of "egrep" to use in msg output
3376
 
if test -z "$EGREP"; then
3377
 
set dummy egrep; ac_prog_name=$2
3378
 
if test "${ac_cv_path_EGREP+set}" = set; then
3379
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3380
 
else
 
4484
     if test -z "$EGREP"; then
3381
4485
  ac_path_EGREP_found=false
3382
 
# Loop through the user's path and test for each of PROGNAME-LIST
3383
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4486
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4487
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384
4488
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3385
4489
do
3386
4490
  IFS=$as_save_IFS
3387
4491
  test -z "$as_dir" && as_dir=.
3388
4492
  for ac_prog in egrep; do
3389
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3390
 
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3391
 
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3392
 
    # Check for GNU ac_path_EGREP and select it if it is found.
 
4493
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4494
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4495
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
4496
# Check for GNU ac_path_EGREP and select it if it is found.
3393
4497
  # Check for GNU $ac_path_EGREP
3394
4498
case `"$ac_path_EGREP" --version 2>&1` in
3395
4499
*GNU*)
3396
4500
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3397
4501
*)
3398
4502
  ac_count=0
3399
 
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
4503
  $as_echo_n 0123456789 >"conftest.in"
3400
4504
  while :
3401
4505
  do
3402
4506
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3403
4507
    mv "conftest.tmp" "conftest.in"
3404
4508
    cp "conftest.in" "conftest.nl"
3405
 
    echo 'EGREP' >> "conftest.nl"
 
4509
    $as_echo 'EGREP' >> "conftest.nl"
3406
4510
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3407
4511
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3408
4512
    ac_count=`expr $ac_count + 1`
3417
4521
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3418
4522
esac
3419
4523
 
3420
 
 
3421
 
    $ac_path_EGREP_found && break 3
 
4524
      $ac_path_EGREP_found && break 3
 
4525
    done
3422
4526
  done
3423
4527
done
3424
 
 
3425
 
done
3426
4528
IFS=$as_save_IFS
3427
 
 
3428
 
 
3429
 
fi
3430
 
 
3431
 
EGREP="$ac_cv_path_EGREP"
3432
 
if test -z "$EGREP"; then
3433
 
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3434
 
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4529
  if test -z "$ac_cv_path_EGREP"; then
 
4530
    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4531
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3435
4532
   { (exit 1); exit 1; }; }
3436
 
fi
3437
 
 
 
4533
  fi
3438
4534
else
3439
4535
  ac_cv_path_EGREP=$EGREP
3440
4536
fi
3441
4537
 
3442
 
 
3443
4538
   fi
3444
4539
fi
3445
 
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3446
 
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
 
4540
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
 
4541
$as_echo "$ac_cv_path_EGREP" >&6; }
3447
4542
 EGREP="$ac_cv_path_EGREP"
3448
4543
 
3449
4544
 
3450
 
 
3451
 
{ echo "$as_me:$LINENO: checking for AIX" >&5
3452
 
echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3453
 
cat >conftest.$ac_ext <<_ACEOF
3454
 
/* confdefs.h.  */
3455
 
_ACEOF
3456
 
cat confdefs.h >>conftest.$ac_ext
3457
 
cat >>conftest.$ac_ext <<_ACEOF
3458
 
/* end confdefs.h.  */
3459
 
#ifdef _AIX
3460
 
  yes
 
4545
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4546
$as_echo_n "checking for ANSI C header files... " >&6; }
 
4547
if test "${ac_cv_header_stdc+set}" = set; then
 
4548
  $as_echo_n "(cached) " >&6
 
4549
else
 
4550
  cat >conftest.$ac_ext <<_ACEOF
 
4551
/* confdefs.h.  */
 
4552
_ACEOF
 
4553
cat confdefs.h >>conftest.$ac_ext
 
4554
cat >>conftest.$ac_ext <<_ACEOF
 
4555
/* end confdefs.h.  */
 
4556
#include <stdlib.h>
 
4557
#include <stdarg.h>
 
4558
#include <string.h>
 
4559
#include <float.h>
 
4560
 
 
4561
int
 
4562
main ()
 
4563
{
 
4564
 
 
4565
  ;
 
4566
  return 0;
 
4567
}
 
4568
_ACEOF
 
4569
rm -f conftest.$ac_objext
 
4570
if { (ac_try="$ac_compile"
 
4571
case "(($ac_try" in
 
4572
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4573
  *) ac_try_echo=$ac_try;;
 
4574
esac
 
4575
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4576
$as_echo "$ac_try_echo") >&5
 
4577
  (eval "$ac_compile") 2>conftest.er1
 
4578
  ac_status=$?
 
4579
  grep -v '^ *+' conftest.er1 >conftest.err
 
4580
  rm -f conftest.er1
 
4581
  cat conftest.err >&5
 
4582
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4583
  (exit $ac_status); } && {
 
4584
         test -z "$ac_c_werror_flag" ||
 
4585
         test ! -s conftest.err
 
4586
       } && test -s conftest.$ac_objext; then
 
4587
  ac_cv_header_stdc=yes
 
4588
else
 
4589
  $as_echo "$as_me: failed program was:" >&5
 
4590
sed 's/^/| /' conftest.$ac_ext >&5
 
4591
 
 
4592
        ac_cv_header_stdc=no
 
4593
fi
 
4594
 
 
4595
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4596
 
 
4597
if test $ac_cv_header_stdc = yes; then
 
4598
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4599
  cat >conftest.$ac_ext <<_ACEOF
 
4600
/* confdefs.h.  */
 
4601
_ACEOF
 
4602
cat confdefs.h >>conftest.$ac_ext
 
4603
cat >>conftest.$ac_ext <<_ACEOF
 
4604
/* end confdefs.h.  */
 
4605
#include <string.h>
 
4606
 
 
4607
_ACEOF
 
4608
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4609
  $EGREP "memchr" >/dev/null 2>&1; then
 
4610
  :
 
4611
else
 
4612
  ac_cv_header_stdc=no
 
4613
fi
 
4614
rm -f conftest*
 
4615
 
 
4616
fi
 
4617
 
 
4618
if test $ac_cv_header_stdc = yes; then
 
4619
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4620
  cat >conftest.$ac_ext <<_ACEOF
 
4621
/* confdefs.h.  */
 
4622
_ACEOF
 
4623
cat confdefs.h >>conftest.$ac_ext
 
4624
cat >>conftest.$ac_ext <<_ACEOF
 
4625
/* end confdefs.h.  */
 
4626
#include <stdlib.h>
 
4627
 
 
4628
_ACEOF
 
4629
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4630
  $EGREP "free" >/dev/null 2>&1; then
 
4631
  :
 
4632
else
 
4633
  ac_cv_header_stdc=no
 
4634
fi
 
4635
rm -f conftest*
 
4636
 
 
4637
fi
 
4638
 
 
4639
if test $ac_cv_header_stdc = yes; then
 
4640
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4641
  if test "$cross_compiling" = yes; then
 
4642
  :
 
4643
else
 
4644
  cat >conftest.$ac_ext <<_ACEOF
 
4645
/* confdefs.h.  */
 
4646
_ACEOF
 
4647
cat confdefs.h >>conftest.$ac_ext
 
4648
cat >>conftest.$ac_ext <<_ACEOF
 
4649
/* end confdefs.h.  */
 
4650
#include <ctype.h>
 
4651
#include <stdlib.h>
 
4652
#if ((' ' & 0x0FF) == 0x020)
 
4653
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4654
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4655
#else
 
4656
# define ISLOWER(c) \
 
4657
                   (('a' <= (c) && (c) <= 'i') \
 
4658
                     || ('j' <= (c) && (c) <= 'r') \
 
4659
                     || ('s' <= (c) && (c) <= 'z'))
 
4660
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3461
4661
#endif
3462
4662
 
3463
 
_ACEOF
3464
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3465
 
  $EGREP "yes" >/dev/null 2>&1; then
3466
 
  { echo "$as_me:$LINENO: result: yes" >&5
3467
 
echo "${ECHO_T}yes" >&6; }
3468
 
cat >>confdefs.h <<\_ACEOF
 
4663
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4664
int
 
4665
main ()
 
4666
{
 
4667
  int i;
 
4668
  for (i = 0; i < 256; i++)
 
4669
    if (XOR (islower (i), ISLOWER (i))
 
4670
        || toupper (i) != TOUPPER (i))
 
4671
      return 2;
 
4672
  return 0;
 
4673
}
 
4674
_ACEOF
 
4675
rm -f conftest$ac_exeext
 
4676
if { (ac_try="$ac_link"
 
4677
case "(($ac_try" in
 
4678
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4679
  *) ac_try_echo=$ac_try;;
 
4680
esac
 
4681
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4682
$as_echo "$ac_try_echo") >&5
 
4683
  (eval "$ac_link") 2>&5
 
4684
  ac_status=$?
 
4685
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4686
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4687
  { (case "(($ac_try" in
 
4688
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4689
  *) ac_try_echo=$ac_try;;
 
4690
esac
 
4691
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4692
$as_echo "$ac_try_echo") >&5
 
4693
  (eval "$ac_try") 2>&5
 
4694
  ac_status=$?
 
4695
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4696
  (exit $ac_status); }; }; then
 
4697
  :
 
4698
else
 
4699
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
4700
$as_echo "$as_me: failed program was:" >&5
 
4701
sed 's/^/| /' conftest.$ac_ext >&5
 
4702
 
 
4703
( exit $ac_status )
 
4704
ac_cv_header_stdc=no
 
4705
fi
 
4706
rm -rf conftest.dSYM
 
4707
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4708
fi
 
4709
 
 
4710
 
 
4711
fi
 
4712
fi
 
4713
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
4714
$as_echo "$ac_cv_header_stdc" >&6; }
 
4715
if test $ac_cv_header_stdc = yes; then
 
4716
 
 
4717
cat >>confdefs.h <<\_ACEOF
 
4718
#define STDC_HEADERS 1
 
4719
_ACEOF
 
4720
 
 
4721
fi
 
4722
 
 
4723
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4724
 
 
4725
 
 
4726
 
 
4727
 
 
4728
 
 
4729
 
 
4730
 
 
4731
 
 
4732
 
 
4733
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
4734
                  inttypes.h stdint.h unistd.h
 
4735
do
 
4736
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4737
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4738
$as_echo_n "checking for $ac_header... " >&6; }
 
4739
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4740
  $as_echo_n "(cached) " >&6
 
4741
else
 
4742
  cat >conftest.$ac_ext <<_ACEOF
 
4743
/* confdefs.h.  */
 
4744
_ACEOF
 
4745
cat confdefs.h >>conftest.$ac_ext
 
4746
cat >>conftest.$ac_ext <<_ACEOF
 
4747
/* end confdefs.h.  */
 
4748
$ac_includes_default
 
4749
 
 
4750
#include <$ac_header>
 
4751
_ACEOF
 
4752
rm -f conftest.$ac_objext
 
4753
if { (ac_try="$ac_compile"
 
4754
case "(($ac_try" in
 
4755
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4756
  *) ac_try_echo=$ac_try;;
 
4757
esac
 
4758
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4759
$as_echo "$ac_try_echo") >&5
 
4760
  (eval "$ac_compile") 2>conftest.er1
 
4761
  ac_status=$?
 
4762
  grep -v '^ *+' conftest.er1 >conftest.err
 
4763
  rm -f conftest.er1
 
4764
  cat conftest.err >&5
 
4765
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4766
  (exit $ac_status); } && {
 
4767
         test -z "$ac_c_werror_flag" ||
 
4768
         test ! -s conftest.err
 
4769
       } && test -s conftest.$ac_objext; then
 
4770
  eval "$as_ac_Header=yes"
 
4771
else
 
4772
  $as_echo "$as_me: failed program was:" >&5
 
4773
sed 's/^/| /' conftest.$ac_ext >&5
 
4774
 
 
4775
        eval "$as_ac_Header=no"
 
4776
fi
 
4777
 
 
4778
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4779
fi
 
4780
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
4781
                 $as_echo "$as_val"'`
 
4782
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
4783
$as_echo "$ac_res" >&6; }
 
4784
as_val=`eval 'as_val=${'$as_ac_Header'}
 
4785
                 $as_echo "$as_val"'`
 
4786
   if test "x$as_val" = x""yes; then
 
4787
  cat >>confdefs.h <<_ACEOF
 
4788
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4789
_ACEOF
 
4790
 
 
4791
fi
 
4792
 
 
4793
done
 
4794
 
 
4795
 
 
4796
 
 
4797
 
 
4798
 
 
4799
  if test "${ac_cv_header_minix_config_h+set}" = set; then
 
4800
  { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
 
4801
$as_echo_n "checking for minix/config.h... " >&6; }
 
4802
if test "${ac_cv_header_minix_config_h+set}" = set; then
 
4803
  $as_echo_n "(cached) " >&6
 
4804
fi
 
4805
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
 
4806
$as_echo "$ac_cv_header_minix_config_h" >&6; }
 
4807
else
 
4808
  # Is the header compilable?
 
4809
{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
 
4810
$as_echo_n "checking minix/config.h usability... " >&6; }
 
4811
cat >conftest.$ac_ext <<_ACEOF
 
4812
/* confdefs.h.  */
 
4813
_ACEOF
 
4814
cat confdefs.h >>conftest.$ac_ext
 
4815
cat >>conftest.$ac_ext <<_ACEOF
 
4816
/* end confdefs.h.  */
 
4817
$ac_includes_default
 
4818
#include <minix/config.h>
 
4819
_ACEOF
 
4820
rm -f conftest.$ac_objext
 
4821
if { (ac_try="$ac_compile"
 
4822
case "(($ac_try" in
 
4823
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4824
  *) ac_try_echo=$ac_try;;
 
4825
esac
 
4826
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4827
$as_echo "$ac_try_echo") >&5
 
4828
  (eval "$ac_compile") 2>conftest.er1
 
4829
  ac_status=$?
 
4830
  grep -v '^ *+' conftest.er1 >conftest.err
 
4831
  rm -f conftest.er1
 
4832
  cat conftest.err >&5
 
4833
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4834
  (exit $ac_status); } && {
 
4835
         test -z "$ac_c_werror_flag" ||
 
4836
         test ! -s conftest.err
 
4837
       } && test -s conftest.$ac_objext; then
 
4838
  ac_header_compiler=yes
 
4839
else
 
4840
  $as_echo "$as_me: failed program was:" >&5
 
4841
sed 's/^/| /' conftest.$ac_ext >&5
 
4842
 
 
4843
        ac_header_compiler=no
 
4844
fi
 
4845
 
 
4846
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4847
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4848
$as_echo "$ac_header_compiler" >&6; }
 
4849
 
 
4850
# Is the header present?
 
4851
{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
 
4852
$as_echo_n "checking minix/config.h presence... " >&6; }
 
4853
cat >conftest.$ac_ext <<_ACEOF
 
4854
/* confdefs.h.  */
 
4855
_ACEOF
 
4856
cat confdefs.h >>conftest.$ac_ext
 
4857
cat >>conftest.$ac_ext <<_ACEOF
 
4858
/* end confdefs.h.  */
 
4859
#include <minix/config.h>
 
4860
_ACEOF
 
4861
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4862
case "(($ac_try" in
 
4863
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4864
  *) ac_try_echo=$ac_try;;
 
4865
esac
 
4866
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4867
$as_echo "$ac_try_echo") >&5
 
4868
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4869
  ac_status=$?
 
4870
  grep -v '^ *+' conftest.er1 >conftest.err
 
4871
  rm -f conftest.er1
 
4872
  cat conftest.err >&5
 
4873
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4874
  (exit $ac_status); } >/dev/null && {
 
4875
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4876
         test ! -s conftest.err
 
4877
       }; then
 
4878
  ac_header_preproc=yes
 
4879
else
 
4880
  $as_echo "$as_me: failed program was:" >&5
 
4881
sed 's/^/| /' conftest.$ac_ext >&5
 
4882
 
 
4883
  ac_header_preproc=no
 
4884
fi
 
4885
 
 
4886
rm -f conftest.err conftest.$ac_ext
 
4887
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4888
$as_echo "$ac_header_preproc" >&6; }
 
4889
 
 
4890
# So?  What about this header?
 
4891
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4892
  yes:no: )
 
4893
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
4894
$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4895
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
 
4896
$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
 
4897
    ac_header_preproc=yes
 
4898
    ;;
 
4899
  no:yes:* )
 
4900
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
 
4901
$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
 
4902
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
 
4903
$as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
 
4904
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
 
4905
$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
 
4906
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
 
4907
$as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
4908
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
 
4909
$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
 
4910
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
 
4911
$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
 
4912
    ( cat <<\_ASBOX
 
4913
## ------------------------------- ##
 
4914
## Report this to bug-wget@gnu.org ##
 
4915
## ------------------------------- ##
 
4916
_ASBOX
 
4917
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
4918
    ;;
 
4919
esac
 
4920
{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
 
4921
$as_echo_n "checking for minix/config.h... " >&6; }
 
4922
if test "${ac_cv_header_minix_config_h+set}" = set; then
 
4923
  $as_echo_n "(cached) " >&6
 
4924
else
 
4925
  ac_cv_header_minix_config_h=$ac_header_preproc
 
4926
fi
 
4927
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
 
4928
$as_echo "$ac_cv_header_minix_config_h" >&6; }
 
4929
 
 
4930
fi
 
4931
if test "x$ac_cv_header_minix_config_h" = x""yes; then
 
4932
  MINIX=yes
 
4933
else
 
4934
  MINIX=
 
4935
fi
 
4936
 
 
4937
 
 
4938
  if test "$MINIX" = yes; then
 
4939
 
 
4940
cat >>confdefs.h <<\_ACEOF
 
4941
#define _POSIX_SOURCE 1
 
4942
_ACEOF
 
4943
 
 
4944
 
 
4945
cat >>confdefs.h <<\_ACEOF
 
4946
#define _POSIX_1_SOURCE 2
 
4947
_ACEOF
 
4948
 
 
4949
 
 
4950
cat >>confdefs.h <<\_ACEOF
 
4951
#define _MINIX 1
 
4952
_ACEOF
 
4953
 
 
4954
  fi
 
4955
 
 
4956
        case "$host_os" in
 
4957
    hpux*)
 
4958
 
 
4959
cat >>confdefs.h <<\_ACEOF
 
4960
#define _XOPEN_SOURCE 500
 
4961
_ACEOF
 
4962
 
 
4963
      ;;
 
4964
  esac
 
4965
 
 
4966
 
 
4967
 
 
4968
  { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
 
4969
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
 
4970
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
 
4971
  $as_echo_n "(cached) " >&6
 
4972
else
 
4973
  cat >conftest.$ac_ext <<_ACEOF
 
4974
/* confdefs.h.  */
 
4975
_ACEOF
 
4976
cat confdefs.h >>conftest.$ac_ext
 
4977
cat >>conftest.$ac_ext <<_ACEOF
 
4978
/* end confdefs.h.  */
 
4979
 
 
4980
#         define __EXTENSIONS__ 1
 
4981
          $ac_includes_default
 
4982
int
 
4983
main ()
 
4984
{
 
4985
 
 
4986
  ;
 
4987
  return 0;
 
4988
}
 
4989
_ACEOF
 
4990
rm -f conftest.$ac_objext
 
4991
if { (ac_try="$ac_compile"
 
4992
case "(($ac_try" in
 
4993
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4994
  *) ac_try_echo=$ac_try;;
 
4995
esac
 
4996
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4997
$as_echo "$ac_try_echo") >&5
 
4998
  (eval "$ac_compile") 2>conftest.er1
 
4999
  ac_status=$?
 
5000
  grep -v '^ *+' conftest.er1 >conftest.err
 
5001
  rm -f conftest.er1
 
5002
  cat conftest.err >&5
 
5003
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5004
  (exit $ac_status); } && {
 
5005
         test -z "$ac_c_werror_flag" ||
 
5006
         test ! -s conftest.err
 
5007
       } && test -s conftest.$ac_objext; then
 
5008
  ac_cv_safe_to_define___extensions__=yes
 
5009
else
 
5010
  $as_echo "$as_me: failed program was:" >&5
 
5011
sed 's/^/| /' conftest.$ac_ext >&5
 
5012
 
 
5013
        ac_cv_safe_to_define___extensions__=no
 
5014
fi
 
5015
 
 
5016
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5017
fi
 
5018
{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
 
5019
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
 
5020
  test $ac_cv_safe_to_define___extensions__ = yes &&
 
5021
    cat >>confdefs.h <<\_ACEOF
 
5022
#define __EXTENSIONS__ 1
 
5023
_ACEOF
 
5024
 
 
5025
  cat >>confdefs.h <<\_ACEOF
3469
5026
#define _ALL_SOURCE 1
3470
5027
_ACEOF
3471
5028
 
3472
 
else
3473
 
  { echo "$as_me:$LINENO: result: no" >&5
3474
 
echo "${ECHO_T}no" >&6; }
3475
 
fi
3476
 
rm -f conftest*
3477
 
 
3478
 
 
 
5029
  cat >>confdefs.h <<\_ACEOF
 
5030
#define _GNU_SOURCE 1
 
5031
_ACEOF
 
5032
 
 
5033
  cat >>confdefs.h <<\_ACEOF
 
5034
#define _POSIX_PTHREAD_SEMANTICS 1
 
5035
_ACEOF
 
5036
 
 
5037
  cat >>confdefs.h <<\_ACEOF
 
5038
#define _TANDEM_SOURCE 1
 
5039
_ACEOF
 
5040
 
 
5041
 
 
5042
 
 
5043
 
 
5044
if test -n "$ac_tool_prefix"; then
 
5045
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
5046
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
5047
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5048
$as_echo_n "checking for $ac_word... " >&6; }
 
5049
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
5050
  $as_echo_n "(cached) " >&6
 
5051
else
 
5052
  if test -n "$RANLIB"; then
 
5053
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
5054
else
 
5055
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5056
for as_dir in $PATH
 
5057
do
 
5058
  IFS=$as_save_IFS
 
5059
  test -z "$as_dir" && as_dir=.
 
5060
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5061
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5062
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
5063
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5064
    break 2
 
5065
  fi
 
5066
done
 
5067
done
 
5068
IFS=$as_save_IFS
 
5069
 
 
5070
fi
 
5071
fi
 
5072
RANLIB=$ac_cv_prog_RANLIB
 
5073
if test -n "$RANLIB"; then
 
5074
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
 
5075
$as_echo "$RANLIB" >&6; }
 
5076
else
 
5077
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5078
$as_echo "no" >&6; }
 
5079
fi
 
5080
 
 
5081
 
 
5082
fi
 
5083
if test -z "$ac_cv_prog_RANLIB"; then
 
5084
  ac_ct_RANLIB=$RANLIB
 
5085
  # Extract the first word of "ranlib", so it can be a program name with args.
 
5086
set dummy ranlib; ac_word=$2
 
5087
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5088
$as_echo_n "checking for $ac_word... " >&6; }
 
5089
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
5090
  $as_echo_n "(cached) " >&6
 
5091
else
 
5092
  if test -n "$ac_ct_RANLIB"; then
 
5093
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
5094
else
 
5095
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5096
for as_dir in $PATH
 
5097
do
 
5098
  IFS=$as_save_IFS
 
5099
  test -z "$as_dir" && as_dir=.
 
5100
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5101
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5102
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
5103
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5104
    break 2
 
5105
  fi
 
5106
done
 
5107
done
 
5108
IFS=$as_save_IFS
 
5109
 
 
5110
fi
 
5111
fi
 
5112
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
5113
if test -n "$ac_ct_RANLIB"; then
 
5114
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
5115
$as_echo "$ac_ct_RANLIB" >&6; }
 
5116
else
 
5117
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5118
$as_echo "no" >&6; }
 
5119
fi
 
5120
 
 
5121
  if test "x$ac_ct_RANLIB" = x; then
 
5122
    RANLIB=":"
 
5123
  else
 
5124
    case $cross_compiling:$ac_tool_warned in
 
5125
yes:)
 
5126
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
5127
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5128
ac_tool_warned=yes ;;
 
5129
esac
 
5130
    RANLIB=$ac_ct_RANLIB
 
5131
  fi
 
5132
else
 
5133
  RANLIB="$ac_cv_prog_RANLIB"
 
5134
fi
 
5135
 
 
5136
 
 
5137
 
 
5138
 
 
5139
 
 
5140
 
 
5141
 
 
5142
 
 
5143
{ $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
 
5144
$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
 
5145
if test "${ac_cv_sys_largefile_source+set}" = set; then
 
5146
  $as_echo_n "(cached) " >&6
 
5147
else
 
5148
  while :; do
 
5149
  cat >conftest.$ac_ext <<_ACEOF
 
5150
/* confdefs.h.  */
 
5151
_ACEOF
 
5152
cat confdefs.h >>conftest.$ac_ext
 
5153
cat >>conftest.$ac_ext <<_ACEOF
 
5154
/* end confdefs.h.  */
 
5155
#include <sys/types.h> /* for off_t */
 
5156
     #include <stdio.h>
 
5157
int
 
5158
main ()
 
5159
{
 
5160
int (*fp) (FILE *, off_t, int) = fseeko;
 
5161
     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
 
5162
  ;
 
5163
  return 0;
 
5164
}
 
5165
_ACEOF
 
5166
rm -f conftest.$ac_objext conftest$ac_exeext
 
5167
if { (ac_try="$ac_link"
 
5168
case "(($ac_try" in
 
5169
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5170
  *) ac_try_echo=$ac_try;;
 
5171
esac
 
5172
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5173
$as_echo "$ac_try_echo") >&5
 
5174
  (eval "$ac_link") 2>conftest.er1
 
5175
  ac_status=$?
 
5176
  grep -v '^ *+' conftest.er1 >conftest.err
 
5177
  rm -f conftest.er1
 
5178
  cat conftest.err >&5
 
5179
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5180
  (exit $ac_status); } && {
 
5181
         test -z "$ac_c_werror_flag" ||
 
5182
         test ! -s conftest.err
 
5183
       } && test -s conftest$ac_exeext && {
 
5184
         test "$cross_compiling" = yes ||
 
5185
         $as_test_x conftest$ac_exeext
 
5186
       }; then
 
5187
  ac_cv_sys_largefile_source=no; break
 
5188
else
 
5189
  $as_echo "$as_me: failed program was:" >&5
 
5190
sed 's/^/| /' conftest.$ac_ext >&5
 
5191
 
 
5192
 
 
5193
fi
 
5194
 
 
5195
rm -rf conftest.dSYM
 
5196
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
5197
      conftest$ac_exeext conftest.$ac_ext
 
5198
  cat >conftest.$ac_ext <<_ACEOF
 
5199
/* confdefs.h.  */
 
5200
_ACEOF
 
5201
cat confdefs.h >>conftest.$ac_ext
 
5202
cat >>conftest.$ac_ext <<_ACEOF
 
5203
/* end confdefs.h.  */
 
5204
#define _LARGEFILE_SOURCE 1
 
5205
#include <sys/types.h> /* for off_t */
 
5206
     #include <stdio.h>
 
5207
int
 
5208
main ()
 
5209
{
 
5210
int (*fp) (FILE *, off_t, int) = fseeko;
 
5211
     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
 
5212
  ;
 
5213
  return 0;
 
5214
}
 
5215
_ACEOF
 
5216
rm -f conftest.$ac_objext conftest$ac_exeext
 
5217
if { (ac_try="$ac_link"
 
5218
case "(($ac_try" in
 
5219
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5220
  *) ac_try_echo=$ac_try;;
 
5221
esac
 
5222
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5223
$as_echo "$ac_try_echo") >&5
 
5224
  (eval "$ac_link") 2>conftest.er1
 
5225
  ac_status=$?
 
5226
  grep -v '^ *+' conftest.er1 >conftest.err
 
5227
  rm -f conftest.er1
 
5228
  cat conftest.err >&5
 
5229
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5230
  (exit $ac_status); } && {
 
5231
         test -z "$ac_c_werror_flag" ||
 
5232
         test ! -s conftest.err
 
5233
       } && test -s conftest$ac_exeext && {
 
5234
         test "$cross_compiling" = yes ||
 
5235
         $as_test_x conftest$ac_exeext
 
5236
       }; then
 
5237
  ac_cv_sys_largefile_source=1; break
 
5238
else
 
5239
  $as_echo "$as_me: failed program was:" >&5
 
5240
sed 's/^/| /' conftest.$ac_ext >&5
 
5241
 
 
5242
 
 
5243
fi
 
5244
 
 
5245
rm -rf conftest.dSYM
 
5246
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
5247
      conftest$ac_exeext conftest.$ac_ext
 
5248
  ac_cv_sys_largefile_source=unknown
 
5249
  break
 
5250
done
 
5251
fi
 
5252
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
 
5253
$as_echo "$ac_cv_sys_largefile_source" >&6; }
 
5254
case $ac_cv_sys_largefile_source in #(
 
5255
  no | unknown) ;;
 
5256
  *)
 
5257
cat >>confdefs.h <<_ACEOF
 
5258
#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
 
5259
_ACEOF
 
5260
;;
 
5261
esac
 
5262
rm -rf conftest*
 
5263
 
 
5264
# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
 
5265
# in glibc 2.1.3, but that breaks too many other things.
 
5266
# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
 
5267
if test $ac_cv_sys_largefile_source != unknown; then
 
5268
 
 
5269
cat >>confdefs.h <<\_ACEOF
 
5270
#define HAVE_FSEEKO 1
 
5271
_ACEOF
 
5272
 
 
5273
fi
 
5274
 
 
5275
 
 
5276
 
 
5277
 
 
5278
 
 
5279
 
 
5280
 
 
5281
 
 
5282
 
 
5283
 
 
5284
 
 
5285
  { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
 
5286
$as_echo_n "checking whether NLS is requested... " >&6; }
 
5287
    # Check whether --enable-nls was given.
 
5288
if test "${enable_nls+set}" = set; then
 
5289
  enableval=$enable_nls; USE_NLS=$enableval
 
5290
else
 
5291
  USE_NLS=yes
 
5292
fi
 
5293
 
 
5294
  { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
 
5295
$as_echo "$USE_NLS" >&6; }
 
5296
 
 
5297
 
 
5298
 
 
5299
 
 
5300
      GETTEXT_MACRO_VERSION=0.17
 
5301
 
 
5302
 
 
5303
 
 
5304
        # Extract the first word of "msgfmt", so it can be a program name with args.
 
5305
set dummy msgfmt; ac_word=$2
 
5306
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5307
$as_echo_n "checking for $ac_word... " >&6; }
 
5308
if test "${ac_cv_path_MSGFMT+set}" = set; then
 
5309
  $as_echo_n "(cached) " >&6
 
5310
else
 
5311
  case "$MSGFMT" in
 
5312
  /*)
 
5313
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 
5314
  ;;
 
5315
  *)
 
5316
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
5317
  for ac_dir in $PATH; do
 
5318
    test -z "$ac_dir" && ac_dir=.
 
5319
    if test -f $ac_dir/$ac_word; then
 
5320
      if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
 
5321
     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
 
5322
        ac_cv_path_MSGFMT="$ac_dir/$ac_word"
 
5323
        break
 
5324
      fi
 
5325
    fi
 
5326
  done
 
5327
  IFS="$ac_save_ifs"
 
5328
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
 
5329
  ;;
 
5330
esac
 
5331
fi
 
5332
MSGFMT="$ac_cv_path_MSGFMT"
 
5333
if test -n "$MSGFMT"; then
 
5334
  { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
 
5335
$as_echo "$MSGFMT" >&6; }
 
5336
else
 
5337
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5338
$as_echo "no" >&6; }
 
5339
fi
 
5340
 
 
5341
  # Extract the first word of "gmsgfmt", so it can be a program name with args.
 
5342
set dummy gmsgfmt; ac_word=$2
 
5343
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5344
$as_echo_n "checking for $ac_word... " >&6; }
 
5345
if test "${ac_cv_path_GMSGFMT+set}" = set; then
 
5346
  $as_echo_n "(cached) " >&6
 
5347
else
 
5348
  case $GMSGFMT in
 
5349
  [\\/]* | ?:[\\/]*)
 
5350
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 
5351
  ;;
 
5352
  *)
 
5353
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5354
for as_dir in $PATH
 
5355
do
 
5356
  IFS=$as_save_IFS
 
5357
  test -z "$as_dir" && as_dir=.
 
5358
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5359
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5360
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
 
5361
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5362
    break 2
 
5363
  fi
 
5364
done
 
5365
done
 
5366
IFS=$as_save_IFS
 
5367
 
 
5368
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 
5369
  ;;
 
5370
esac
 
5371
fi
 
5372
GMSGFMT=$ac_cv_path_GMSGFMT
 
5373
if test -n "$GMSGFMT"; then
 
5374
  { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
 
5375
$as_echo "$GMSGFMT" >&6; }
 
5376
else
 
5377
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5378
$as_echo "no" >&6; }
 
5379
fi
 
5380
 
 
5381
 
 
5382
 
 
5383
    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
 
5384
    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
 
5385
    *) MSGFMT_015=$MSGFMT ;;
 
5386
  esac
 
5387
 
 
5388
  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
 
5389
    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
 
5390
    *) GMSGFMT_015=$GMSGFMT ;;
 
5391
  esac
 
5392
 
 
5393
 
 
5394
        # Extract the first word of "xgettext", so it can be a program name with args.
 
5395
set dummy xgettext; ac_word=$2
 
5396
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5397
$as_echo_n "checking for $ac_word... " >&6; }
 
5398
if test "${ac_cv_path_XGETTEXT+set}" = set; then
 
5399
  $as_echo_n "(cached) " >&6
 
5400
else
 
5401
  case "$XGETTEXT" in
 
5402
  /*)
 
5403
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 
5404
  ;;
 
5405
  *)
 
5406
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
5407
  for ac_dir in $PATH; do
 
5408
    test -z "$ac_dir" && ac_dir=.
 
5409
    if test -f $ac_dir/$ac_word; then
 
5410
      if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
 
5411
     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
 
5412
        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
 
5413
        break
 
5414
      fi
 
5415
    fi
 
5416
  done
 
5417
  IFS="$ac_save_ifs"
 
5418
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 
5419
  ;;
 
5420
esac
 
5421
fi
 
5422
XGETTEXT="$ac_cv_path_XGETTEXT"
 
5423
if test -n "$XGETTEXT"; then
 
5424
  { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
 
5425
$as_echo "$XGETTEXT" >&6; }
 
5426
else
 
5427
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5428
$as_echo "no" >&6; }
 
5429
fi
 
5430
 
 
5431
    rm -f messages.po
 
5432
 
 
5433
    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
 
5434
    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
 
5435
    *) XGETTEXT_015=$XGETTEXT ;;
 
5436
  esac
 
5437
 
 
5438
 
 
5439
    # Extract the first word of "msgmerge", so it can be a program name with args.
 
5440
set dummy msgmerge; ac_word=$2
 
5441
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5442
$as_echo_n "checking for $ac_word... " >&6; }
 
5443
if test "${ac_cv_path_MSGMERGE+set}" = set; then
 
5444
  $as_echo_n "(cached) " >&6
 
5445
else
 
5446
  case "$MSGMERGE" in
 
5447
  /*)
 
5448
  ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
 
5449
  ;;
 
5450
  *)
 
5451
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
5452
  for ac_dir in $PATH; do
 
5453
    test -z "$ac_dir" && ac_dir=.
 
5454
    if test -f $ac_dir/$ac_word; then
 
5455
      if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
 
5456
        ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
 
5457
        break
 
5458
      fi
 
5459
    fi
 
5460
  done
 
5461
  IFS="$ac_save_ifs"
 
5462
  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
 
5463
  ;;
 
5464
esac
 
5465
fi
 
5466
MSGMERGE="$ac_cv_path_MSGMERGE"
 
5467
if test -n "$MSGMERGE"; then
 
5468
  { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
 
5469
$as_echo "$MSGMERGE" >&6; }
 
5470
else
 
5471
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5472
$as_echo "no" >&6; }
 
5473
fi
 
5474
 
 
5475
 
 
5476
        test -n "$localedir" || localedir='${datadir}/locale'
 
5477
 
 
5478
 
 
5479
    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
 
5480
 
 
5481
 
 
5482
  ac_config_commands="$ac_config_commands po-directories"
 
5483
 
 
5484
 
 
5485
 
 
5486
      if test "X$prefix" = "XNONE"; then
 
5487
    acl_final_prefix="$ac_default_prefix"
 
5488
  else
 
5489
    acl_final_prefix="$prefix"
 
5490
  fi
 
5491
  if test "X$exec_prefix" = "XNONE"; then
 
5492
    acl_final_exec_prefix='${prefix}'
 
5493
  else
 
5494
    acl_final_exec_prefix="$exec_prefix"
 
5495
  fi
 
5496
  acl_save_prefix="$prefix"
 
5497
  prefix="$acl_final_prefix"
 
5498
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
 
5499
  prefix="$acl_save_prefix"
 
5500
 
 
5501
 
 
5502
# Check whether --with-gnu-ld was given.
 
5503
if test "${with_gnu_ld+set}" = set; then
 
5504
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
5505
else
 
5506
  with_gnu_ld=no
 
5507
fi
 
5508
 
 
5509
# Prepare PATH_SEPARATOR.
 
5510
# The user is always right.
 
5511
if test "${PATH_SEPARATOR+set}" != set; then
 
5512
  echo "#! /bin/sh" >conf$$.sh
 
5513
  echo  "exit 0"   >>conf$$.sh
 
5514
  chmod +x conf$$.sh
 
5515
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
5516
    PATH_SEPARATOR=';'
 
5517
  else
 
5518
    PATH_SEPARATOR=:
 
5519
  fi
 
5520
  rm -f conf$$.sh
 
5521
fi
 
5522
ac_prog=ld
 
5523
if test "$GCC" = yes; then
 
5524
  # Check if gcc -print-prog-name=ld gives a path.
 
5525
  { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
 
5526
$as_echo_n "checking for ld used by GCC... " >&6; }
 
5527
  case $host in
 
5528
  *-*-mingw*)
 
5529
    # gcc leaves a trailing carriage return which upsets mingw
 
5530
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
5531
  *)
 
5532
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
5533
  esac
 
5534
  case $ac_prog in
 
5535
    # Accept absolute paths.
 
5536
    [\\/]* | [A-Za-z]:[\\/]*)
 
5537
      re_direlt='/[^/][^/]*/\.\./'
 
5538
      # Canonicalize the path of ld
 
5539
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
 
5540
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
5541
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 
5542
      done
 
5543
      test -z "$LD" && LD="$ac_prog"
 
5544
      ;;
 
5545
  "")
 
5546
    # If it fails, then pretend we aren't using GCC.
 
5547
    ac_prog=ld
 
5548
    ;;
 
5549
  *)
 
5550
    # If it is relative, then search for the first ld in PATH.
 
5551
    with_gnu_ld=unknown
 
5552
    ;;
 
5553
  esac
 
5554
elif test "$with_gnu_ld" = yes; then
 
5555
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
 
5556
$as_echo_n "checking for GNU ld... " >&6; }
 
5557
else
 
5558
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
5559
$as_echo_n "checking for non-GNU ld... " >&6; }
 
5560
fi
 
5561
if test "${acl_cv_path_LD+set}" = set; then
 
5562
  $as_echo_n "(cached) " >&6
 
5563
else
 
5564
  if test -z "$LD"; then
 
5565
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
 
5566
  for ac_dir in $PATH; do
 
5567
    test -z "$ac_dir" && ac_dir=.
 
5568
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
5569
      acl_cv_path_LD="$ac_dir/$ac_prog"
 
5570
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
5571
      # but apparently some GNU ld's only accept -v.
 
5572
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
5573
      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
 
5574
      *GNU* | *'with BFD'*)
 
5575
        test "$with_gnu_ld" != no && break ;;
 
5576
      *)
 
5577
        test "$with_gnu_ld" != yes && break ;;
 
5578
      esac
 
5579
    fi
 
5580
  done
 
5581
  IFS="$ac_save_ifs"
 
5582
else
 
5583
  acl_cv_path_LD="$LD" # Let the user override the test with a path.
 
5584
fi
 
5585
fi
 
5586
 
 
5587
LD="$acl_cv_path_LD"
 
5588
if test -n "$LD"; then
 
5589
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
 
5590
$as_echo "$LD" >&6; }
 
5591
else
 
5592
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5593
$as_echo "no" >&6; }
 
5594
fi
 
5595
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
5596
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
5597
   { (exit 1); exit 1; }; }
 
5598
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
5599
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
5600
if test "${acl_cv_prog_gnu_ld+set}" = set; then
 
5601
  $as_echo_n "(cached) " >&6
 
5602
else
 
5603
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
5604
case `$LD -v 2>&1 </dev/null` in
 
5605
*GNU* | *'with BFD'*)
 
5606
  acl_cv_prog_gnu_ld=yes ;;
 
5607
*)
 
5608
  acl_cv_prog_gnu_ld=no ;;
 
5609
esac
 
5610
fi
 
5611
{ $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
 
5612
$as_echo "$acl_cv_prog_gnu_ld" >&6; }
 
5613
with_gnu_ld=$acl_cv_prog_gnu_ld
 
5614
 
 
5615
 
 
5616
 
 
5617
 
 
5618
                                                { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
 
5619
$as_echo_n "checking for shared library run path origin... " >&6; }
 
5620
if test "${acl_cv_rpath+set}" = set; then
 
5621
  $as_echo_n "(cached) " >&6
 
5622
else
 
5623
 
 
5624
    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
 
5625
    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
 
5626
    . ./conftest.sh
 
5627
    rm -f ./conftest.sh
 
5628
    acl_cv_rpath=done
 
5629
 
 
5630
fi
 
5631
{ $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
 
5632
$as_echo "$acl_cv_rpath" >&6; }
 
5633
  wl="$acl_cv_wl"
 
5634
  acl_libext="$acl_cv_libext"
 
5635
  acl_shlibext="$acl_cv_shlibext"
 
5636
  acl_libname_spec="$acl_cv_libname_spec"
 
5637
  acl_library_names_spec="$acl_cv_library_names_spec"
 
5638
  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
 
5639
  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
 
5640
  acl_hardcode_direct="$acl_cv_hardcode_direct"
 
5641
  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
 
5642
    # Check whether --enable-rpath was given.
 
5643
if test "${enable_rpath+set}" = set; then
 
5644
  enableval=$enable_rpath; :
 
5645
else
 
5646
  enable_rpath=yes
 
5647
fi
 
5648
 
 
5649
 
 
5650
 
 
5651
                  acl_libdirstem=lib
 
5652
  searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
 
5653
  if test -n "$searchpath"; then
 
5654
    acl_save_IFS="${IFS=        }"; IFS=":"
 
5655
    for searchdir in $searchpath; do
 
5656
      if test -d "$searchdir"; then
 
5657
        case "$searchdir" in
 
5658
          */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
 
5659
          *) searchdir=`cd "$searchdir" && pwd`
 
5660
             case "$searchdir" in
 
5661
               */lib64 ) acl_libdirstem=lib64 ;;
 
5662
             esac ;;
 
5663
        esac
 
5664
      fi
 
5665
    done
 
5666
    IFS="$acl_save_IFS"
 
5667
  fi
 
5668
 
 
5669
 
 
5670
 
 
5671
 
 
5672
 
 
5673
 
 
5674
 
 
5675
 
 
5676
 
 
5677
    use_additional=yes
 
5678
 
 
5679
  acl_save_prefix="$prefix"
 
5680
  prefix="$acl_final_prefix"
 
5681
  acl_save_exec_prefix="$exec_prefix"
 
5682
  exec_prefix="$acl_final_exec_prefix"
 
5683
 
 
5684
    eval additional_includedir=\"$includedir\"
 
5685
    eval additional_libdir=\"$libdir\"
 
5686
 
 
5687
  exec_prefix="$acl_save_exec_prefix"
 
5688
  prefix="$acl_save_prefix"
 
5689
 
 
5690
 
 
5691
# Check whether --with-libiconv-prefix was given.
 
5692
if test "${with_libiconv_prefix+set}" = set; then
 
5693
  withval=$with_libiconv_prefix;
 
5694
    if test "X$withval" = "Xno"; then
 
5695
      use_additional=no
 
5696
    else
 
5697
      if test "X$withval" = "X"; then
 
5698
 
 
5699
  acl_save_prefix="$prefix"
 
5700
  prefix="$acl_final_prefix"
 
5701
  acl_save_exec_prefix="$exec_prefix"
 
5702
  exec_prefix="$acl_final_exec_prefix"
 
5703
 
 
5704
          eval additional_includedir=\"$includedir\"
 
5705
          eval additional_libdir=\"$libdir\"
 
5706
 
 
5707
  exec_prefix="$acl_save_exec_prefix"
 
5708
  prefix="$acl_save_prefix"
 
5709
 
 
5710
      else
 
5711
        additional_includedir="$withval/include"
 
5712
        additional_libdir="$withval/$acl_libdirstem"
 
5713
      fi
 
5714
    fi
 
5715
 
 
5716
fi
 
5717
 
 
5718
      LIBICONV=
 
5719
  LTLIBICONV=
 
5720
  INCICONV=
 
5721
  LIBICONV_PREFIX=
 
5722
  rpathdirs=
 
5723
  ltrpathdirs=
 
5724
  names_already_handled=
 
5725
  names_next_round='iconv '
 
5726
  while test -n "$names_next_round"; do
 
5727
    names_this_round="$names_next_round"
 
5728
    names_next_round=
 
5729
    for name in $names_this_round; do
 
5730
      already_handled=
 
5731
      for n in $names_already_handled; do
 
5732
        if test "$n" = "$name"; then
 
5733
          already_handled=yes
 
5734
          break
 
5735
        fi
 
5736
      done
 
5737
      if test -z "$already_handled"; then
 
5738
        names_already_handled="$names_already_handled $name"
 
5739
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
 
5740
        eval value=\"\$HAVE_LIB$uppername\"
 
5741
        if test -n "$value"; then
 
5742
          if test "$value" = yes; then
 
5743
            eval value=\"\$LIB$uppername\"
 
5744
            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
 
5745
            eval value=\"\$LTLIB$uppername\"
 
5746
            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
 
5747
          else
 
5748
                                    :
 
5749
          fi
 
5750
        else
 
5751
                              found_dir=
 
5752
          found_la=
 
5753
          found_so=
 
5754
          found_a=
 
5755
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
 
5756
          if test -n "$acl_shlibext"; then
 
5757
            shrext=".$acl_shlibext"             # typically: shrext=.so
 
5758
          else
 
5759
            shrext=
 
5760
          fi
 
5761
          if test $use_additional = yes; then
 
5762
            dir="$additional_libdir"
 
5763
                                    if test -n "$acl_shlibext"; then
 
5764
              if test -f "$dir/$libname$shrext"; then
 
5765
                found_dir="$dir"
 
5766
                found_so="$dir/$libname$shrext"
 
5767
              else
 
5768
                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
5769
                  ver=`(cd "$dir" && \
 
5770
                        for f in "$libname$shrext".*; do echo "$f"; done \
 
5771
                        | sed -e "s,^$libname$shrext\\\\.,," \
 
5772
                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
5773
                        | sed 1q ) 2>/dev/null`
 
5774
                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
5775
                    found_dir="$dir"
 
5776
                    found_so="$dir/$libname$shrext.$ver"
 
5777
                  fi
 
5778
                else
 
5779
                  eval library_names=\"$acl_library_names_spec\"
 
5780
                  for f in $library_names; do
 
5781
                    if test -f "$dir/$f"; then
 
5782
                      found_dir="$dir"
 
5783
                      found_so="$dir/$f"
 
5784
                      break
 
5785
                    fi
 
5786
                  done
 
5787
                fi
 
5788
              fi
 
5789
            fi
 
5790
                        if test "X$found_dir" = "X"; then
 
5791
              if test -f "$dir/$libname.$acl_libext"; then
 
5792
                found_dir="$dir"
 
5793
                found_a="$dir/$libname.$acl_libext"
 
5794
              fi
 
5795
            fi
 
5796
            if test "X$found_dir" != "X"; then
 
5797
              if test -f "$dir/$libname.la"; then
 
5798
                found_la="$dir/$libname.la"
 
5799
              fi
 
5800
            fi
 
5801
          fi
 
5802
          if test "X$found_dir" = "X"; then
 
5803
            for x in $LDFLAGS $LTLIBICONV; do
 
5804
 
 
5805
  acl_save_prefix="$prefix"
 
5806
  prefix="$acl_final_prefix"
 
5807
  acl_save_exec_prefix="$exec_prefix"
 
5808
  exec_prefix="$acl_final_exec_prefix"
 
5809
  eval x=\"$x\"
 
5810
  exec_prefix="$acl_save_exec_prefix"
 
5811
  prefix="$acl_save_prefix"
 
5812
 
 
5813
              case "$x" in
 
5814
                -L*)
 
5815
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
 
5816
                                    if test -n "$acl_shlibext"; then
 
5817
                    if test -f "$dir/$libname$shrext"; then
 
5818
                      found_dir="$dir"
 
5819
                      found_so="$dir/$libname$shrext"
 
5820
                    else
 
5821
                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
5822
                        ver=`(cd "$dir" && \
 
5823
                              for f in "$libname$shrext".*; do echo "$f"; done \
 
5824
                              | sed -e "s,^$libname$shrext\\\\.,," \
 
5825
                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
5826
                              | sed 1q ) 2>/dev/null`
 
5827
                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
5828
                          found_dir="$dir"
 
5829
                          found_so="$dir/$libname$shrext.$ver"
 
5830
                        fi
 
5831
                      else
 
5832
                        eval library_names=\"$acl_library_names_spec\"
 
5833
                        for f in $library_names; do
 
5834
                          if test -f "$dir/$f"; then
 
5835
                            found_dir="$dir"
 
5836
                            found_so="$dir/$f"
 
5837
                            break
 
5838
                          fi
 
5839
                        done
 
5840
                      fi
 
5841
                    fi
 
5842
                  fi
 
5843
                                    if test "X$found_dir" = "X"; then
 
5844
                    if test -f "$dir/$libname.$acl_libext"; then
 
5845
                      found_dir="$dir"
 
5846
                      found_a="$dir/$libname.$acl_libext"
 
5847
                    fi
 
5848
                  fi
 
5849
                  if test "X$found_dir" != "X"; then
 
5850
                    if test -f "$dir/$libname.la"; then
 
5851
                      found_la="$dir/$libname.la"
 
5852
                    fi
 
5853
                  fi
 
5854
                  ;;
 
5855
              esac
 
5856
              if test "X$found_dir" != "X"; then
 
5857
                break
 
5858
              fi
 
5859
            done
 
5860
          fi
 
5861
          if test "X$found_dir" != "X"; then
 
5862
                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
 
5863
            if test "X$found_so" != "X"; then
 
5864
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
 
5865
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
5866
              else
 
5867
                                                                                haveit=
 
5868
                for x in $ltrpathdirs; do
 
5869
                  if test "X$x" = "X$found_dir"; then
 
5870
                    haveit=yes
 
5871
                    break
 
5872
                  fi
 
5873
                done
 
5874
                if test -z "$haveit"; then
 
5875
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
5876
                fi
 
5877
                                if test "$acl_hardcode_direct" = yes; then
 
5878
                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
5879
                else
 
5880
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
 
5881
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
5882
                                                            haveit=
 
5883
                    for x in $rpathdirs; do
 
5884
                      if test "X$x" = "X$found_dir"; then
 
5885
                        haveit=yes
 
5886
                        break
 
5887
                      fi
 
5888
                    done
 
5889
                    if test -z "$haveit"; then
 
5890
                      rpathdirs="$rpathdirs $found_dir"
 
5891
                    fi
 
5892
                  else
 
5893
                                                                                haveit=
 
5894
                    for x in $LDFLAGS $LIBICONV; do
 
5895
 
 
5896
  acl_save_prefix="$prefix"
 
5897
  prefix="$acl_final_prefix"
 
5898
  acl_save_exec_prefix="$exec_prefix"
 
5899
  exec_prefix="$acl_final_exec_prefix"
 
5900
  eval x=\"$x\"
 
5901
  exec_prefix="$acl_save_exec_prefix"
 
5902
  prefix="$acl_save_prefix"
 
5903
 
 
5904
                      if test "X$x" = "X-L$found_dir"; then
 
5905
                        haveit=yes
 
5906
                        break
 
5907
                      fi
 
5908
                    done
 
5909
                    if test -z "$haveit"; then
 
5910
                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
 
5911
                    fi
 
5912
                    if test "$acl_hardcode_minus_L" != no; then
 
5913
                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
5914
                    else
 
5915
                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
 
5916
                    fi
 
5917
                  fi
 
5918
                fi
 
5919
              fi
 
5920
            else
 
5921
              if test "X$found_a" != "X"; then
 
5922
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
 
5923
              else
 
5924
                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
 
5925
              fi
 
5926
            fi
 
5927
                        additional_includedir=
 
5928
            case "$found_dir" in
 
5929
              */$acl_libdirstem | */$acl_libdirstem/)
 
5930
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
 
5931
                LIBICONV_PREFIX="$basedir"
 
5932
                additional_includedir="$basedir/include"
 
5933
                ;;
 
5934
            esac
 
5935
            if test "X$additional_includedir" != "X"; then
 
5936
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
 
5937
                haveit=
 
5938
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
5939
                  if test -n "$GCC"; then
 
5940
                    case $host_os in
 
5941
                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
5942
                    esac
 
5943
                  fi
 
5944
                fi
 
5945
                if test -z "$haveit"; then
 
5946
                  for x in $CPPFLAGS $INCICONV; do
 
5947
 
 
5948
  acl_save_prefix="$prefix"
 
5949
  prefix="$acl_final_prefix"
 
5950
  acl_save_exec_prefix="$exec_prefix"
 
5951
  exec_prefix="$acl_final_exec_prefix"
 
5952
  eval x=\"$x\"
 
5953
  exec_prefix="$acl_save_exec_prefix"
 
5954
  prefix="$acl_save_prefix"
 
5955
 
 
5956
                    if test "X$x" = "X-I$additional_includedir"; then
 
5957
                      haveit=yes
 
5958
                      break
 
5959
                    fi
 
5960
                  done
 
5961
                  if test -z "$haveit"; then
 
5962
                    if test -d "$additional_includedir"; then
 
5963
                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
 
5964
                    fi
 
5965
                  fi
 
5966
                fi
 
5967
              fi
 
5968
            fi
 
5969
                        if test -n "$found_la"; then
 
5970
                                                        save_libdir="$libdir"
 
5971
              case "$found_la" in
 
5972
                */* | *\\*) . "$found_la" ;;
 
5973
                *) . "./$found_la" ;;
 
5974
              esac
 
5975
              libdir="$save_libdir"
 
5976
                            for dep in $dependency_libs; do
 
5977
                case "$dep" in
 
5978
                  -L*)
 
5979
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
5980
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
 
5981
                      haveit=
 
5982
                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
 
5983
                        if test -n "$GCC"; then
 
5984
                          case $host_os in
 
5985
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
5986
                          esac
 
5987
                        fi
 
5988
                      fi
 
5989
                      if test -z "$haveit"; then
 
5990
                        haveit=
 
5991
                        for x in $LDFLAGS $LIBICONV; do
 
5992
 
 
5993
  acl_save_prefix="$prefix"
 
5994
  prefix="$acl_final_prefix"
 
5995
  acl_save_exec_prefix="$exec_prefix"
 
5996
  exec_prefix="$acl_final_exec_prefix"
 
5997
  eval x=\"$x\"
 
5998
  exec_prefix="$acl_save_exec_prefix"
 
5999
  prefix="$acl_save_prefix"
 
6000
 
 
6001
                          if test "X$x" = "X-L$additional_libdir"; then
 
6002
                            haveit=yes
 
6003
                            break
 
6004
                          fi
 
6005
                        done
 
6006
                        if test -z "$haveit"; then
 
6007
                          if test -d "$additional_libdir"; then
 
6008
                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
 
6009
                          fi
 
6010
                        fi
 
6011
                        haveit=
 
6012
                        for x in $LDFLAGS $LTLIBICONV; do
 
6013
 
 
6014
  acl_save_prefix="$prefix"
 
6015
  prefix="$acl_final_prefix"
 
6016
  acl_save_exec_prefix="$exec_prefix"
 
6017
  exec_prefix="$acl_final_exec_prefix"
 
6018
  eval x=\"$x\"
 
6019
  exec_prefix="$acl_save_exec_prefix"
 
6020
  prefix="$acl_save_prefix"
 
6021
 
 
6022
                          if test "X$x" = "X-L$additional_libdir"; then
 
6023
                            haveit=yes
 
6024
                            break
 
6025
                          fi
 
6026
                        done
 
6027
                        if test -z "$haveit"; then
 
6028
                          if test -d "$additional_libdir"; then
 
6029
                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
 
6030
                          fi
 
6031
                        fi
 
6032
                      fi
 
6033
                    fi
 
6034
                    ;;
 
6035
                  -R*)
 
6036
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
6037
                    if test "$enable_rpath" != no; then
 
6038
                                                                  haveit=
 
6039
                      for x in $rpathdirs; do
 
6040
                        if test "X$x" = "X$dir"; then
 
6041
                          haveit=yes
 
6042
                          break
 
6043
                        fi
 
6044
                      done
 
6045
                      if test -z "$haveit"; then
 
6046
                        rpathdirs="$rpathdirs $dir"
 
6047
                      fi
 
6048
                                                                  haveit=
 
6049
                      for x in $ltrpathdirs; do
 
6050
                        if test "X$x" = "X$dir"; then
 
6051
                          haveit=yes
 
6052
                          break
 
6053
                        fi
 
6054
                      done
 
6055
                      if test -z "$haveit"; then
 
6056
                        ltrpathdirs="$ltrpathdirs $dir"
 
6057
                      fi
 
6058
                    fi
 
6059
                    ;;
 
6060
                  -l*)
 
6061
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
6062
                    ;;
 
6063
                  *.la)
 
6064
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
6065
                    ;;
 
6066
                  *)
 
6067
                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
 
6068
                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
 
6069
                    ;;
 
6070
                esac
 
6071
              done
 
6072
            fi
 
6073
          else
 
6074
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
 
6075
            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
 
6076
          fi
 
6077
        fi
 
6078
      fi
 
6079
    done
 
6080
  done
 
6081
  if test "X$rpathdirs" != "X"; then
 
6082
    if test -n "$acl_hardcode_libdir_separator"; then
 
6083
                        alldirs=
 
6084
      for found_dir in $rpathdirs; do
 
6085
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
 
6086
      done
 
6087
            acl_save_libdir="$libdir"
 
6088
      libdir="$alldirs"
 
6089
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
6090
      libdir="$acl_save_libdir"
 
6091
      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
 
6092
    else
 
6093
            for found_dir in $rpathdirs; do
 
6094
        acl_save_libdir="$libdir"
 
6095
        libdir="$found_dir"
 
6096
        eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
6097
        libdir="$acl_save_libdir"
 
6098
        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
 
6099
      done
 
6100
    fi
 
6101
  fi
 
6102
  if test "X$ltrpathdirs" != "X"; then
 
6103
            for found_dir in $ltrpathdirs; do
 
6104
      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
 
6105
    done
 
6106
  fi
 
6107
 
 
6108
 
 
6109
 
 
6110
 
 
6111
 
 
6112
 
 
6113
 
 
6114
 
 
6115
 
 
6116
 
 
6117
 
 
6118
 
 
6119
 
 
6120
 
 
6121
 
 
6122
 
 
6123
 
 
6124
 
 
6125
 
 
6126
 
 
6127
 
 
6128
 
 
6129
 
 
6130
 
 
6131
 
 
6132
    { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
 
6133
$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
 
6134
if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
 
6135
  $as_echo_n "(cached) " >&6
 
6136
else
 
6137
  gt_save_LIBS="$LIBS"
 
6138
     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
 
6139
     cat >conftest.$ac_ext <<_ACEOF
 
6140
/* confdefs.h.  */
 
6141
_ACEOF
 
6142
cat confdefs.h >>conftest.$ac_ext
 
6143
cat >>conftest.$ac_ext <<_ACEOF
 
6144
/* end confdefs.h.  */
 
6145
#include <CoreFoundation/CFPreferences.h>
 
6146
int
 
6147
main ()
 
6148
{
 
6149
CFPreferencesCopyAppValue(NULL, NULL)
 
6150
  ;
 
6151
  return 0;
 
6152
}
 
6153
_ACEOF
 
6154
rm -f conftest.$ac_objext conftest$ac_exeext
 
6155
if { (ac_try="$ac_link"
 
6156
case "(($ac_try" in
 
6157
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6158
  *) ac_try_echo=$ac_try;;
 
6159
esac
 
6160
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6161
$as_echo "$ac_try_echo") >&5
 
6162
  (eval "$ac_link") 2>conftest.er1
 
6163
  ac_status=$?
 
6164
  grep -v '^ *+' conftest.er1 >conftest.err
 
6165
  rm -f conftest.er1
 
6166
  cat conftest.err >&5
 
6167
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6168
  (exit $ac_status); } && {
 
6169
         test -z "$ac_c_werror_flag" ||
 
6170
         test ! -s conftest.err
 
6171
       } && test -s conftest$ac_exeext && {
 
6172
         test "$cross_compiling" = yes ||
 
6173
         $as_test_x conftest$ac_exeext
 
6174
       }; then
 
6175
  gt_cv_func_CFPreferencesCopyAppValue=yes
 
6176
else
 
6177
  $as_echo "$as_me: failed program was:" >&5
 
6178
sed 's/^/| /' conftest.$ac_ext >&5
 
6179
 
 
6180
        gt_cv_func_CFPreferencesCopyAppValue=no
 
6181
fi
 
6182
 
 
6183
rm -rf conftest.dSYM
 
6184
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6185
      conftest$ac_exeext conftest.$ac_ext
 
6186
     LIBS="$gt_save_LIBS"
 
6187
fi
 
6188
{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
 
6189
$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
 
6190
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
 
6191
 
 
6192
cat >>confdefs.h <<\_ACEOF
 
6193
#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
 
6194
_ACEOF
 
6195
 
 
6196
  fi
 
6197
    { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
 
6198
$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
 
6199
if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
 
6200
  $as_echo_n "(cached) " >&6
 
6201
else
 
6202
  gt_save_LIBS="$LIBS"
 
6203
     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
 
6204
     cat >conftest.$ac_ext <<_ACEOF
 
6205
/* confdefs.h.  */
 
6206
_ACEOF
 
6207
cat confdefs.h >>conftest.$ac_ext
 
6208
cat >>conftest.$ac_ext <<_ACEOF
 
6209
/* end confdefs.h.  */
 
6210
#include <CoreFoundation/CFLocale.h>
 
6211
int
 
6212
main ()
 
6213
{
 
6214
CFLocaleCopyCurrent();
 
6215
  ;
 
6216
  return 0;
 
6217
}
 
6218
_ACEOF
 
6219
rm -f conftest.$ac_objext conftest$ac_exeext
 
6220
if { (ac_try="$ac_link"
 
6221
case "(($ac_try" in
 
6222
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6223
  *) ac_try_echo=$ac_try;;
 
6224
esac
 
6225
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6226
$as_echo "$ac_try_echo") >&5
 
6227
  (eval "$ac_link") 2>conftest.er1
 
6228
  ac_status=$?
 
6229
  grep -v '^ *+' conftest.er1 >conftest.err
 
6230
  rm -f conftest.er1
 
6231
  cat conftest.err >&5
 
6232
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6233
  (exit $ac_status); } && {
 
6234
         test -z "$ac_c_werror_flag" ||
 
6235
         test ! -s conftest.err
 
6236
       } && test -s conftest$ac_exeext && {
 
6237
         test "$cross_compiling" = yes ||
 
6238
         $as_test_x conftest$ac_exeext
 
6239
       }; then
 
6240
  gt_cv_func_CFLocaleCopyCurrent=yes
 
6241
else
 
6242
  $as_echo "$as_me: failed program was:" >&5
 
6243
sed 's/^/| /' conftest.$ac_ext >&5
 
6244
 
 
6245
        gt_cv_func_CFLocaleCopyCurrent=no
 
6246
fi
 
6247
 
 
6248
rm -rf conftest.dSYM
 
6249
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6250
      conftest$ac_exeext conftest.$ac_ext
 
6251
     LIBS="$gt_save_LIBS"
 
6252
fi
 
6253
{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
 
6254
$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
 
6255
  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
 
6256
 
 
6257
cat >>confdefs.h <<\_ACEOF
 
6258
#define HAVE_CFLOCALECOPYCURRENT 1
 
6259
_ACEOF
 
6260
 
 
6261
  fi
 
6262
  INTL_MACOSX_LIBS=
 
6263
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
 
6264
    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
 
6265
  fi
 
6266
 
 
6267
 
 
6268
 
 
6269
 
 
6270
 
 
6271
 
 
6272
  LIBINTL=
 
6273
  LTLIBINTL=
 
6274
  POSUB=
 
6275
 
 
6276
    case " $gt_needs " in
 
6277
    *" need-formatstring-macros "*) gt_api_version=3 ;;
 
6278
    *" need-ngettext "*) gt_api_version=2 ;;
 
6279
    *) gt_api_version=1 ;;
 
6280
  esac
 
6281
  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
 
6282
  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
 
6283
 
 
6284
    if test "$USE_NLS" = "yes"; then
 
6285
    gt_use_preinstalled_gnugettext=no
 
6286
 
 
6287
 
 
6288
        if test $gt_api_version -ge 3; then
 
6289
          gt_revision_test_code='
 
6290
#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
 
6291
#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
 
6292
#endif
 
6293
typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
 
6294
'
 
6295
        else
 
6296
          gt_revision_test_code=
 
6297
        fi
 
6298
        if test $gt_api_version -ge 2; then
 
6299
          gt_expression_test_code=' + * ngettext ("", "", 0)'
 
6300
        else
 
6301
          gt_expression_test_code=
 
6302
        fi
 
6303
 
 
6304
        { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
 
6305
$as_echo_n "checking for GNU gettext in libc... " >&6; }
 
6306
if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
 
6307
  $as_echo_n "(cached) " >&6
 
6308
else
 
6309
  cat >conftest.$ac_ext <<_ACEOF
 
6310
/* confdefs.h.  */
 
6311
_ACEOF
 
6312
cat confdefs.h >>conftest.$ac_ext
 
6313
cat >>conftest.$ac_ext <<_ACEOF
 
6314
/* end confdefs.h.  */
 
6315
#include <libintl.h>
 
6316
$gt_revision_test_code
 
6317
extern int _nl_msg_cat_cntr;
 
6318
extern int *_nl_domain_bindings;
 
6319
int
 
6320
main ()
 
6321
{
 
6322
bindtextdomain ("", "");
 
6323
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
 
6324
  ;
 
6325
  return 0;
 
6326
}
 
6327
_ACEOF
 
6328
rm -f conftest.$ac_objext conftest$ac_exeext
 
6329
if { (ac_try="$ac_link"
 
6330
case "(($ac_try" in
 
6331
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6332
  *) ac_try_echo=$ac_try;;
 
6333
esac
 
6334
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6335
$as_echo "$ac_try_echo") >&5
 
6336
  (eval "$ac_link") 2>conftest.er1
 
6337
  ac_status=$?
 
6338
  grep -v '^ *+' conftest.er1 >conftest.err
 
6339
  rm -f conftest.er1
 
6340
  cat conftest.err >&5
 
6341
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6342
  (exit $ac_status); } && {
 
6343
         test -z "$ac_c_werror_flag" ||
 
6344
         test ! -s conftest.err
 
6345
       } && test -s conftest$ac_exeext && {
 
6346
         test "$cross_compiling" = yes ||
 
6347
         $as_test_x conftest$ac_exeext
 
6348
       }; then
 
6349
  eval "$gt_func_gnugettext_libc=yes"
 
6350
else
 
6351
  $as_echo "$as_me: failed program was:" >&5
 
6352
sed 's/^/| /' conftest.$ac_ext >&5
 
6353
 
 
6354
        eval "$gt_func_gnugettext_libc=no"
 
6355
fi
 
6356
 
 
6357
rm -rf conftest.dSYM
 
6358
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6359
      conftest$ac_exeext conftest.$ac_ext
 
6360
fi
 
6361
ac_res=`eval 'as_val=${'$gt_func_gnugettext_libc'}
 
6362
                 $as_echo "$as_val"'`
 
6363
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
6364
$as_echo "$ac_res" >&6; }
 
6365
 
 
6366
        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
 
6367
 
 
6368
 
 
6369
 
 
6370
 
 
6371
 
 
6372
          am_save_CPPFLAGS="$CPPFLAGS"
 
6373
 
 
6374
  for element in $INCICONV; do
 
6375
    haveit=
 
6376
    for x in $CPPFLAGS; do
 
6377
 
 
6378
  acl_save_prefix="$prefix"
 
6379
  prefix="$acl_final_prefix"
 
6380
  acl_save_exec_prefix="$exec_prefix"
 
6381
  exec_prefix="$acl_final_exec_prefix"
 
6382
  eval x=\"$x\"
 
6383
  exec_prefix="$acl_save_exec_prefix"
 
6384
  prefix="$acl_save_prefix"
 
6385
 
 
6386
      if test "X$x" = "X$element"; then
 
6387
        haveit=yes
 
6388
        break
 
6389
      fi
 
6390
    done
 
6391
    if test -z "$haveit"; then
 
6392
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
6393
    fi
 
6394
  done
 
6395
 
 
6396
 
 
6397
  { $as_echo "$as_me:$LINENO: checking for iconv" >&5
 
6398
$as_echo_n "checking for iconv... " >&6; }
 
6399
if test "${am_cv_func_iconv+set}" = set; then
 
6400
  $as_echo_n "(cached) " >&6
 
6401
else
 
6402
 
 
6403
    am_cv_func_iconv="no, consider installing GNU libiconv"
 
6404
    am_cv_lib_iconv=no
 
6405
    cat >conftest.$ac_ext <<_ACEOF
 
6406
/* confdefs.h.  */
 
6407
_ACEOF
 
6408
cat confdefs.h >>conftest.$ac_ext
 
6409
cat >>conftest.$ac_ext <<_ACEOF
 
6410
/* end confdefs.h.  */
 
6411
#include <stdlib.h>
 
6412
#include <iconv.h>
 
6413
int
 
6414
main ()
 
6415
{
 
6416
iconv_t cd = iconv_open("","");
 
6417
       iconv(cd,NULL,NULL,NULL,NULL);
 
6418
       iconv_close(cd);
 
6419
  ;
 
6420
  return 0;
 
6421
}
 
6422
_ACEOF
 
6423
rm -f conftest.$ac_objext conftest$ac_exeext
 
6424
if { (ac_try="$ac_link"
 
6425
case "(($ac_try" in
 
6426
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6427
  *) ac_try_echo=$ac_try;;
 
6428
esac
 
6429
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6430
$as_echo "$ac_try_echo") >&5
 
6431
  (eval "$ac_link") 2>conftest.er1
 
6432
  ac_status=$?
 
6433
  grep -v '^ *+' conftest.er1 >conftest.err
 
6434
  rm -f conftest.er1
 
6435
  cat conftest.err >&5
 
6436
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6437
  (exit $ac_status); } && {
 
6438
         test -z "$ac_c_werror_flag" ||
 
6439
         test ! -s conftest.err
 
6440
       } && test -s conftest$ac_exeext && {
 
6441
         test "$cross_compiling" = yes ||
 
6442
         $as_test_x conftest$ac_exeext
 
6443
       }; then
 
6444
  am_cv_func_iconv=yes
 
6445
else
 
6446
  $as_echo "$as_me: failed program was:" >&5
 
6447
sed 's/^/| /' conftest.$ac_ext >&5
 
6448
 
 
6449
 
 
6450
fi
 
6451
 
 
6452
rm -rf conftest.dSYM
 
6453
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6454
      conftest$ac_exeext conftest.$ac_ext
 
6455
    if test "$am_cv_func_iconv" != yes; then
 
6456
      am_save_LIBS="$LIBS"
 
6457
      LIBS="$LIBS $LIBICONV"
 
6458
      cat >conftest.$ac_ext <<_ACEOF
 
6459
/* confdefs.h.  */
 
6460
_ACEOF
 
6461
cat confdefs.h >>conftest.$ac_ext
 
6462
cat >>conftest.$ac_ext <<_ACEOF
 
6463
/* end confdefs.h.  */
 
6464
#include <stdlib.h>
 
6465
#include <iconv.h>
 
6466
int
 
6467
main ()
 
6468
{
 
6469
iconv_t cd = iconv_open("","");
 
6470
         iconv(cd,NULL,NULL,NULL,NULL);
 
6471
         iconv_close(cd);
 
6472
  ;
 
6473
  return 0;
 
6474
}
 
6475
_ACEOF
 
6476
rm -f conftest.$ac_objext conftest$ac_exeext
 
6477
if { (ac_try="$ac_link"
 
6478
case "(($ac_try" in
 
6479
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6480
  *) ac_try_echo=$ac_try;;
 
6481
esac
 
6482
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6483
$as_echo "$ac_try_echo") >&5
 
6484
  (eval "$ac_link") 2>conftest.er1
 
6485
  ac_status=$?
 
6486
  grep -v '^ *+' conftest.er1 >conftest.err
 
6487
  rm -f conftest.er1
 
6488
  cat conftest.err >&5
 
6489
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6490
  (exit $ac_status); } && {
 
6491
         test -z "$ac_c_werror_flag" ||
 
6492
         test ! -s conftest.err
 
6493
       } && test -s conftest$ac_exeext && {
 
6494
         test "$cross_compiling" = yes ||
 
6495
         $as_test_x conftest$ac_exeext
 
6496
       }; then
 
6497
  am_cv_lib_iconv=yes
 
6498
        am_cv_func_iconv=yes
 
6499
else
 
6500
  $as_echo "$as_me: failed program was:" >&5
 
6501
sed 's/^/| /' conftest.$ac_ext >&5
 
6502
 
 
6503
 
 
6504
fi
 
6505
 
 
6506
rm -rf conftest.dSYM
 
6507
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6508
      conftest$ac_exeext conftest.$ac_ext
 
6509
      LIBS="$am_save_LIBS"
 
6510
    fi
 
6511
 
 
6512
fi
 
6513
{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
 
6514
$as_echo "$am_cv_func_iconv" >&6; }
 
6515
  if test "$am_cv_func_iconv" = yes; then
 
6516
    { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
 
6517
$as_echo_n "checking for working iconv... " >&6; }
 
6518
if test "${am_cv_func_iconv_works+set}" = set; then
 
6519
  $as_echo_n "(cached) " >&6
 
6520
else
 
6521
 
 
6522
            am_save_LIBS="$LIBS"
 
6523
      if test $am_cv_lib_iconv = yes; then
 
6524
        LIBS="$LIBS $LIBICONV"
 
6525
      fi
 
6526
      if test "$cross_compiling" = yes; then
 
6527
  case "$host_os" in
 
6528
           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
 
6529
           *)            am_cv_func_iconv_works="guessing yes" ;;
 
6530
         esac
 
6531
else
 
6532
  cat >conftest.$ac_ext <<_ACEOF
 
6533
/* confdefs.h.  */
 
6534
_ACEOF
 
6535
cat confdefs.h >>conftest.$ac_ext
 
6536
cat >>conftest.$ac_ext <<_ACEOF
 
6537
/* end confdefs.h.  */
 
6538
 
 
6539
#include <iconv.h>
 
6540
#include <string.h>
 
6541
int main ()
 
6542
{
 
6543
  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
 
6544
     returns.  */
 
6545
  {
 
6546
    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
 
6547
    if (cd_utf8_to_88591 != (iconv_t)(-1))
 
6548
      {
 
6549
        static const char input[] = "\342\202\254"; /* EURO SIGN */
 
6550
        char buf[10];
 
6551
        const char *inptr = input;
 
6552
        size_t inbytesleft = strlen (input);
 
6553
        char *outptr = buf;
 
6554
        size_t outbytesleft = sizeof (buf);
 
6555
        size_t res = iconv (cd_utf8_to_88591,
 
6556
                            (char **) &inptr, &inbytesleft,
 
6557
                            &outptr, &outbytesleft);
 
6558
        if (res == 0)
 
6559
          return 1;
 
6560
      }
 
6561
  }
 
6562
#if 0 /* This bug could be worked around by the caller.  */
 
6563
  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
 
6564
  {
 
6565
    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
 
6566
    if (cd_88591_to_utf8 != (iconv_t)(-1))
 
6567
      {
 
6568
        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
 
6569
        char buf[50];
 
6570
        const char *inptr = input;
 
6571
        size_t inbytesleft = strlen (input);
 
6572
        char *outptr = buf;
 
6573
        size_t outbytesleft = sizeof (buf);
 
6574
        size_t res = iconv (cd_88591_to_utf8,
 
6575
                            (char **) &inptr, &inbytesleft,
 
6576
                            &outptr, &outbytesleft);
 
6577
        if ((int)res > 0)
 
6578
          return 1;
 
6579
      }
 
6580
  }
 
6581
#endif
 
6582
  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
 
6583
     provided.  */
 
6584
  if (/* Try standardized names.  */
 
6585
      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
 
6586
      /* Try IRIX, OSF/1 names.  */
 
6587
      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
 
6588
      /* Try AIX names.  */
 
6589
      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
 
6590
      /* Try HP-UX names.  */
 
6591
      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
 
6592
    return 1;
 
6593
  return 0;
 
6594
}
 
6595
_ACEOF
 
6596
rm -f conftest$ac_exeext
 
6597
if { (ac_try="$ac_link"
 
6598
case "(($ac_try" in
 
6599
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6600
  *) ac_try_echo=$ac_try;;
 
6601
esac
 
6602
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6603
$as_echo "$ac_try_echo") >&5
 
6604
  (eval "$ac_link") 2>&5
 
6605
  ac_status=$?
 
6606
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6607
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
6608
  { (case "(($ac_try" in
 
6609
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6610
  *) ac_try_echo=$ac_try;;
 
6611
esac
 
6612
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6613
$as_echo "$ac_try_echo") >&5
 
6614
  (eval "$ac_try") 2>&5
 
6615
  ac_status=$?
 
6616
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6617
  (exit $ac_status); }; }; then
 
6618
  am_cv_func_iconv_works=yes
 
6619
else
 
6620
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
6621
$as_echo "$as_me: failed program was:" >&5
 
6622
sed 's/^/| /' conftest.$ac_ext >&5
 
6623
 
 
6624
( exit $ac_status )
 
6625
am_cv_func_iconv_works=no
 
6626
fi
 
6627
rm -rf conftest.dSYM
 
6628
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
6629
fi
 
6630
 
 
6631
 
 
6632
      LIBS="$am_save_LIBS"
 
6633
 
 
6634
fi
 
6635
{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
 
6636
$as_echo "$am_cv_func_iconv_works" >&6; }
 
6637
    case "$am_cv_func_iconv_works" in
 
6638
      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
 
6639
      *)   am_func_iconv=yes ;;
 
6640
    esac
 
6641
  else
 
6642
    am_func_iconv=no am_cv_lib_iconv=no
 
6643
  fi
 
6644
  if test "$am_func_iconv" = yes; then
 
6645
 
 
6646
cat >>confdefs.h <<\_ACEOF
 
6647
#define HAVE_ICONV 1
 
6648
_ACEOF
 
6649
 
 
6650
  fi
 
6651
  if test "$am_cv_lib_iconv" = yes; then
 
6652
    { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
 
6653
$as_echo_n "checking how to link with libiconv... " >&6; }
 
6654
    { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
 
6655
$as_echo "$LIBICONV" >&6; }
 
6656
  else
 
6657
            CPPFLAGS="$am_save_CPPFLAGS"
 
6658
    LIBICONV=
 
6659
    LTLIBICONV=
 
6660
  fi
 
6661
 
 
6662
 
 
6663
 
 
6664
 
 
6665
 
 
6666
 
 
6667
 
 
6668
 
 
6669
    use_additional=yes
 
6670
 
 
6671
  acl_save_prefix="$prefix"
 
6672
  prefix="$acl_final_prefix"
 
6673
  acl_save_exec_prefix="$exec_prefix"
 
6674
  exec_prefix="$acl_final_exec_prefix"
 
6675
 
 
6676
    eval additional_includedir=\"$includedir\"
 
6677
    eval additional_libdir=\"$libdir\"
 
6678
 
 
6679
  exec_prefix="$acl_save_exec_prefix"
 
6680
  prefix="$acl_save_prefix"
 
6681
 
 
6682
 
 
6683
# Check whether --with-libintl-prefix was given.
 
6684
if test "${with_libintl_prefix+set}" = set; then
 
6685
  withval=$with_libintl_prefix;
 
6686
    if test "X$withval" = "Xno"; then
 
6687
      use_additional=no
 
6688
    else
 
6689
      if test "X$withval" = "X"; then
 
6690
 
 
6691
  acl_save_prefix="$prefix"
 
6692
  prefix="$acl_final_prefix"
 
6693
  acl_save_exec_prefix="$exec_prefix"
 
6694
  exec_prefix="$acl_final_exec_prefix"
 
6695
 
 
6696
          eval additional_includedir=\"$includedir\"
 
6697
          eval additional_libdir=\"$libdir\"
 
6698
 
 
6699
  exec_prefix="$acl_save_exec_prefix"
 
6700
  prefix="$acl_save_prefix"
 
6701
 
 
6702
      else
 
6703
        additional_includedir="$withval/include"
 
6704
        additional_libdir="$withval/$acl_libdirstem"
 
6705
      fi
 
6706
    fi
 
6707
 
 
6708
fi
 
6709
 
 
6710
      LIBINTL=
 
6711
  LTLIBINTL=
 
6712
  INCINTL=
 
6713
  LIBINTL_PREFIX=
 
6714
  rpathdirs=
 
6715
  ltrpathdirs=
 
6716
  names_already_handled=
 
6717
  names_next_round='intl '
 
6718
  while test -n "$names_next_round"; do
 
6719
    names_this_round="$names_next_round"
 
6720
    names_next_round=
 
6721
    for name in $names_this_round; do
 
6722
      already_handled=
 
6723
      for n in $names_already_handled; do
 
6724
        if test "$n" = "$name"; then
 
6725
          already_handled=yes
 
6726
          break
 
6727
        fi
 
6728
      done
 
6729
      if test -z "$already_handled"; then
 
6730
        names_already_handled="$names_already_handled $name"
 
6731
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
 
6732
        eval value=\"\$HAVE_LIB$uppername\"
 
6733
        if test -n "$value"; then
 
6734
          if test "$value" = yes; then
 
6735
            eval value=\"\$LIB$uppername\"
 
6736
            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
 
6737
            eval value=\"\$LTLIB$uppername\"
 
6738
            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
 
6739
          else
 
6740
                                    :
 
6741
          fi
 
6742
        else
 
6743
                              found_dir=
 
6744
          found_la=
 
6745
          found_so=
 
6746
          found_a=
 
6747
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
 
6748
          if test -n "$acl_shlibext"; then
 
6749
            shrext=".$acl_shlibext"             # typically: shrext=.so
 
6750
          else
 
6751
            shrext=
 
6752
          fi
 
6753
          if test $use_additional = yes; then
 
6754
            dir="$additional_libdir"
 
6755
                                    if test -n "$acl_shlibext"; then
 
6756
              if test -f "$dir/$libname$shrext"; then
 
6757
                found_dir="$dir"
 
6758
                found_so="$dir/$libname$shrext"
 
6759
              else
 
6760
                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
6761
                  ver=`(cd "$dir" && \
 
6762
                        for f in "$libname$shrext".*; do echo "$f"; done \
 
6763
                        | sed -e "s,^$libname$shrext\\\\.,," \
 
6764
                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
6765
                        | sed 1q ) 2>/dev/null`
 
6766
                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
6767
                    found_dir="$dir"
 
6768
                    found_so="$dir/$libname$shrext.$ver"
 
6769
                  fi
 
6770
                else
 
6771
                  eval library_names=\"$acl_library_names_spec\"
 
6772
                  for f in $library_names; do
 
6773
                    if test -f "$dir/$f"; then
 
6774
                      found_dir="$dir"
 
6775
                      found_so="$dir/$f"
 
6776
                      break
 
6777
                    fi
 
6778
                  done
 
6779
                fi
 
6780
              fi
 
6781
            fi
 
6782
                        if test "X$found_dir" = "X"; then
 
6783
              if test -f "$dir/$libname.$acl_libext"; then
 
6784
                found_dir="$dir"
 
6785
                found_a="$dir/$libname.$acl_libext"
 
6786
              fi
 
6787
            fi
 
6788
            if test "X$found_dir" != "X"; then
 
6789
              if test -f "$dir/$libname.la"; then
 
6790
                found_la="$dir/$libname.la"
 
6791
              fi
 
6792
            fi
 
6793
          fi
 
6794
          if test "X$found_dir" = "X"; then
 
6795
            for x in $LDFLAGS $LTLIBINTL; do
 
6796
 
 
6797
  acl_save_prefix="$prefix"
 
6798
  prefix="$acl_final_prefix"
 
6799
  acl_save_exec_prefix="$exec_prefix"
 
6800
  exec_prefix="$acl_final_exec_prefix"
 
6801
  eval x=\"$x\"
 
6802
  exec_prefix="$acl_save_exec_prefix"
 
6803
  prefix="$acl_save_prefix"
 
6804
 
 
6805
              case "$x" in
 
6806
                -L*)
 
6807
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
 
6808
                                    if test -n "$acl_shlibext"; then
 
6809
                    if test -f "$dir/$libname$shrext"; then
 
6810
                      found_dir="$dir"
 
6811
                      found_so="$dir/$libname$shrext"
 
6812
                    else
 
6813
                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
6814
                        ver=`(cd "$dir" && \
 
6815
                              for f in "$libname$shrext".*; do echo "$f"; done \
 
6816
                              | sed -e "s,^$libname$shrext\\\\.,," \
 
6817
                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
6818
                              | sed 1q ) 2>/dev/null`
 
6819
                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
6820
                          found_dir="$dir"
 
6821
                          found_so="$dir/$libname$shrext.$ver"
 
6822
                        fi
 
6823
                      else
 
6824
                        eval library_names=\"$acl_library_names_spec\"
 
6825
                        for f in $library_names; do
 
6826
                          if test -f "$dir/$f"; then
 
6827
                            found_dir="$dir"
 
6828
                            found_so="$dir/$f"
 
6829
                            break
 
6830
                          fi
 
6831
                        done
 
6832
                      fi
 
6833
                    fi
 
6834
                  fi
 
6835
                                    if test "X$found_dir" = "X"; then
 
6836
                    if test -f "$dir/$libname.$acl_libext"; then
 
6837
                      found_dir="$dir"
 
6838
                      found_a="$dir/$libname.$acl_libext"
 
6839
                    fi
 
6840
                  fi
 
6841
                  if test "X$found_dir" != "X"; then
 
6842
                    if test -f "$dir/$libname.la"; then
 
6843
                      found_la="$dir/$libname.la"
 
6844
                    fi
 
6845
                  fi
 
6846
                  ;;
 
6847
              esac
 
6848
              if test "X$found_dir" != "X"; then
 
6849
                break
 
6850
              fi
 
6851
            done
 
6852
          fi
 
6853
          if test "X$found_dir" != "X"; then
 
6854
                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
 
6855
            if test "X$found_so" != "X"; then
 
6856
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
 
6857
                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
6858
              else
 
6859
                                                                                haveit=
 
6860
                for x in $ltrpathdirs; do
 
6861
                  if test "X$x" = "X$found_dir"; then
 
6862
                    haveit=yes
 
6863
                    break
 
6864
                  fi
 
6865
                done
 
6866
                if test -z "$haveit"; then
 
6867
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
6868
                fi
 
6869
                                if test "$acl_hardcode_direct" = yes; then
 
6870
                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
6871
                else
 
6872
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
 
6873
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
6874
                                                            haveit=
 
6875
                    for x in $rpathdirs; do
 
6876
                      if test "X$x" = "X$found_dir"; then
 
6877
                        haveit=yes
 
6878
                        break
 
6879
                      fi
 
6880
                    done
 
6881
                    if test -z "$haveit"; then
 
6882
                      rpathdirs="$rpathdirs $found_dir"
 
6883
                    fi
 
6884
                  else
 
6885
                                                                                haveit=
 
6886
                    for x in $LDFLAGS $LIBINTL; do
 
6887
 
 
6888
  acl_save_prefix="$prefix"
 
6889
  prefix="$acl_final_prefix"
 
6890
  acl_save_exec_prefix="$exec_prefix"
 
6891
  exec_prefix="$acl_final_exec_prefix"
 
6892
  eval x=\"$x\"
 
6893
  exec_prefix="$acl_save_exec_prefix"
 
6894
  prefix="$acl_save_prefix"
 
6895
 
 
6896
                      if test "X$x" = "X-L$found_dir"; then
 
6897
                        haveit=yes
 
6898
                        break
 
6899
                      fi
 
6900
                    done
 
6901
                    if test -z "$haveit"; then
 
6902
                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
 
6903
                    fi
 
6904
                    if test "$acl_hardcode_minus_L" != no; then
 
6905
                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
6906
                    else
 
6907
                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
 
6908
                    fi
 
6909
                  fi
 
6910
                fi
 
6911
              fi
 
6912
            else
 
6913
              if test "X$found_a" != "X"; then
 
6914
                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
 
6915
              else
 
6916
                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
 
6917
              fi
 
6918
            fi
 
6919
                        additional_includedir=
 
6920
            case "$found_dir" in
 
6921
              */$acl_libdirstem | */$acl_libdirstem/)
 
6922
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
 
6923
                LIBINTL_PREFIX="$basedir"
 
6924
                additional_includedir="$basedir/include"
 
6925
                ;;
 
6926
            esac
 
6927
            if test "X$additional_includedir" != "X"; then
 
6928
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
 
6929
                haveit=
 
6930
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
6931
                  if test -n "$GCC"; then
 
6932
                    case $host_os in
 
6933
                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
6934
                    esac
 
6935
                  fi
 
6936
                fi
 
6937
                if test -z "$haveit"; then
 
6938
                  for x in $CPPFLAGS $INCINTL; do
 
6939
 
 
6940
  acl_save_prefix="$prefix"
 
6941
  prefix="$acl_final_prefix"
 
6942
  acl_save_exec_prefix="$exec_prefix"
 
6943
  exec_prefix="$acl_final_exec_prefix"
 
6944
  eval x=\"$x\"
 
6945
  exec_prefix="$acl_save_exec_prefix"
 
6946
  prefix="$acl_save_prefix"
 
6947
 
 
6948
                    if test "X$x" = "X-I$additional_includedir"; then
 
6949
                      haveit=yes
 
6950
                      break
 
6951
                    fi
 
6952
                  done
 
6953
                  if test -z "$haveit"; then
 
6954
                    if test -d "$additional_includedir"; then
 
6955
                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
 
6956
                    fi
 
6957
                  fi
 
6958
                fi
 
6959
              fi
 
6960
            fi
 
6961
                        if test -n "$found_la"; then
 
6962
                                                        save_libdir="$libdir"
 
6963
              case "$found_la" in
 
6964
                */* | *\\*) . "$found_la" ;;
 
6965
                *) . "./$found_la" ;;
 
6966
              esac
 
6967
              libdir="$save_libdir"
 
6968
                            for dep in $dependency_libs; do
 
6969
                case "$dep" in
 
6970
                  -L*)
 
6971
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
6972
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
 
6973
                      haveit=
 
6974
                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
 
6975
                        if test -n "$GCC"; then
 
6976
                          case $host_os in
 
6977
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
6978
                          esac
 
6979
                        fi
 
6980
                      fi
 
6981
                      if test -z "$haveit"; then
 
6982
                        haveit=
 
6983
                        for x in $LDFLAGS $LIBINTL; do
 
6984
 
 
6985
  acl_save_prefix="$prefix"
 
6986
  prefix="$acl_final_prefix"
 
6987
  acl_save_exec_prefix="$exec_prefix"
 
6988
  exec_prefix="$acl_final_exec_prefix"
 
6989
  eval x=\"$x\"
 
6990
  exec_prefix="$acl_save_exec_prefix"
 
6991
  prefix="$acl_save_prefix"
 
6992
 
 
6993
                          if test "X$x" = "X-L$additional_libdir"; then
 
6994
                            haveit=yes
 
6995
                            break
 
6996
                          fi
 
6997
                        done
 
6998
                        if test -z "$haveit"; then
 
6999
                          if test -d "$additional_libdir"; then
 
7000
                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
 
7001
                          fi
 
7002
                        fi
 
7003
                        haveit=
 
7004
                        for x in $LDFLAGS $LTLIBINTL; do
 
7005
 
 
7006
  acl_save_prefix="$prefix"
 
7007
  prefix="$acl_final_prefix"
 
7008
  acl_save_exec_prefix="$exec_prefix"
 
7009
  exec_prefix="$acl_final_exec_prefix"
 
7010
  eval x=\"$x\"
 
7011
  exec_prefix="$acl_save_exec_prefix"
 
7012
  prefix="$acl_save_prefix"
 
7013
 
 
7014
                          if test "X$x" = "X-L$additional_libdir"; then
 
7015
                            haveit=yes
 
7016
                            break
 
7017
                          fi
 
7018
                        done
 
7019
                        if test -z "$haveit"; then
 
7020
                          if test -d "$additional_libdir"; then
 
7021
                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
 
7022
                          fi
 
7023
                        fi
 
7024
                      fi
 
7025
                    fi
 
7026
                    ;;
 
7027
                  -R*)
 
7028
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
7029
                    if test "$enable_rpath" != no; then
 
7030
                                                                  haveit=
 
7031
                      for x in $rpathdirs; do
 
7032
                        if test "X$x" = "X$dir"; then
 
7033
                          haveit=yes
 
7034
                          break
 
7035
                        fi
 
7036
                      done
 
7037
                      if test -z "$haveit"; then
 
7038
                        rpathdirs="$rpathdirs $dir"
 
7039
                      fi
 
7040
                                                                  haveit=
 
7041
                      for x in $ltrpathdirs; do
 
7042
                        if test "X$x" = "X$dir"; then
 
7043
                          haveit=yes
 
7044
                          break
 
7045
                        fi
 
7046
                      done
 
7047
                      if test -z "$haveit"; then
 
7048
                        ltrpathdirs="$ltrpathdirs $dir"
 
7049
                      fi
 
7050
                    fi
 
7051
                    ;;
 
7052
                  -l*)
 
7053
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
7054
                    ;;
 
7055
                  *.la)
 
7056
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
7057
                    ;;
 
7058
                  *)
 
7059
                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
 
7060
                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
 
7061
                    ;;
 
7062
                esac
 
7063
              done
 
7064
            fi
 
7065
          else
 
7066
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
 
7067
            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
 
7068
          fi
 
7069
        fi
 
7070
      fi
 
7071
    done
 
7072
  done
 
7073
  if test "X$rpathdirs" != "X"; then
 
7074
    if test -n "$acl_hardcode_libdir_separator"; then
 
7075
                        alldirs=
 
7076
      for found_dir in $rpathdirs; do
 
7077
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
 
7078
      done
 
7079
            acl_save_libdir="$libdir"
 
7080
      libdir="$alldirs"
 
7081
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
7082
      libdir="$acl_save_libdir"
 
7083
      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
 
7084
    else
 
7085
            for found_dir in $rpathdirs; do
 
7086
        acl_save_libdir="$libdir"
 
7087
        libdir="$found_dir"
 
7088
        eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
7089
        libdir="$acl_save_libdir"
 
7090
        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
 
7091
      done
 
7092
    fi
 
7093
  fi
 
7094
  if test "X$ltrpathdirs" != "X"; then
 
7095
            for found_dir in $ltrpathdirs; do
 
7096
      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
 
7097
    done
 
7098
  fi
 
7099
 
 
7100
          { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
 
7101
$as_echo_n "checking for GNU gettext in libintl... " >&6; }
 
7102
if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
 
7103
  $as_echo_n "(cached) " >&6
 
7104
else
 
7105
  gt_save_CPPFLAGS="$CPPFLAGS"
 
7106
            CPPFLAGS="$CPPFLAGS $INCINTL"
 
7107
            gt_save_LIBS="$LIBS"
 
7108
            LIBS="$LIBS $LIBINTL"
 
7109
                        cat >conftest.$ac_ext <<_ACEOF
 
7110
/* confdefs.h.  */
 
7111
_ACEOF
 
7112
cat confdefs.h >>conftest.$ac_ext
 
7113
cat >>conftest.$ac_ext <<_ACEOF
 
7114
/* end confdefs.h.  */
 
7115
#include <libintl.h>
 
7116
$gt_revision_test_code
 
7117
extern int _nl_msg_cat_cntr;
 
7118
extern
 
7119
#ifdef __cplusplus
 
7120
"C"
 
7121
#endif
 
7122
const char *_nl_expand_alias (const char *);
 
7123
int
 
7124
main ()
 
7125
{
 
7126
bindtextdomain ("", "");
 
7127
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
 
7128
  ;
 
7129
  return 0;
 
7130
}
 
7131
_ACEOF
 
7132
rm -f conftest.$ac_objext conftest$ac_exeext
 
7133
if { (ac_try="$ac_link"
 
7134
case "(($ac_try" in
 
7135
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7136
  *) ac_try_echo=$ac_try;;
 
7137
esac
 
7138
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7139
$as_echo "$ac_try_echo") >&5
 
7140
  (eval "$ac_link") 2>conftest.er1
 
7141
  ac_status=$?
 
7142
  grep -v '^ *+' conftest.er1 >conftest.err
 
7143
  rm -f conftest.er1
 
7144
  cat conftest.err >&5
 
7145
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7146
  (exit $ac_status); } && {
 
7147
         test -z "$ac_c_werror_flag" ||
 
7148
         test ! -s conftest.err
 
7149
       } && test -s conftest$ac_exeext && {
 
7150
         test "$cross_compiling" = yes ||
 
7151
         $as_test_x conftest$ac_exeext
 
7152
       }; then
 
7153
  eval "$gt_func_gnugettext_libintl=yes"
 
7154
else
 
7155
  $as_echo "$as_me: failed program was:" >&5
 
7156
sed 's/^/| /' conftest.$ac_ext >&5
 
7157
 
 
7158
        eval "$gt_func_gnugettext_libintl=no"
 
7159
fi
 
7160
 
 
7161
rm -rf conftest.dSYM
 
7162
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7163
      conftest$ac_exeext conftest.$ac_ext
 
7164
                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
 
7165
              LIBS="$LIBS $LIBICONV"
 
7166
              cat >conftest.$ac_ext <<_ACEOF
 
7167
/* confdefs.h.  */
 
7168
_ACEOF
 
7169
cat confdefs.h >>conftest.$ac_ext
 
7170
cat >>conftest.$ac_ext <<_ACEOF
 
7171
/* end confdefs.h.  */
 
7172
#include <libintl.h>
 
7173
$gt_revision_test_code
 
7174
extern int _nl_msg_cat_cntr;
 
7175
extern
 
7176
#ifdef __cplusplus
 
7177
"C"
 
7178
#endif
 
7179
const char *_nl_expand_alias (const char *);
 
7180
int
 
7181
main ()
 
7182
{
 
7183
bindtextdomain ("", "");
 
7184
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
 
7185
  ;
 
7186
  return 0;
 
7187
}
 
7188
_ACEOF
 
7189
rm -f conftest.$ac_objext conftest$ac_exeext
 
7190
if { (ac_try="$ac_link"
 
7191
case "(($ac_try" in
 
7192
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7193
  *) ac_try_echo=$ac_try;;
 
7194
esac
 
7195
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7196
$as_echo "$ac_try_echo") >&5
 
7197
  (eval "$ac_link") 2>conftest.er1
 
7198
  ac_status=$?
 
7199
  grep -v '^ *+' conftest.er1 >conftest.err
 
7200
  rm -f conftest.er1
 
7201
  cat conftest.err >&5
 
7202
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7203
  (exit $ac_status); } && {
 
7204
         test -z "$ac_c_werror_flag" ||
 
7205
         test ! -s conftest.err
 
7206
       } && test -s conftest$ac_exeext && {
 
7207
         test "$cross_compiling" = yes ||
 
7208
         $as_test_x conftest$ac_exeext
 
7209
       }; then
 
7210
  LIBINTL="$LIBINTL $LIBICONV"
 
7211
                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
 
7212
                eval "$gt_func_gnugettext_libintl=yes"
 
7213
 
 
7214
else
 
7215
  $as_echo "$as_me: failed program was:" >&5
 
7216
sed 's/^/| /' conftest.$ac_ext >&5
 
7217
 
 
7218
 
 
7219
fi
 
7220
 
 
7221
rm -rf conftest.dSYM
 
7222
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7223
      conftest$ac_exeext conftest.$ac_ext
 
7224
            fi
 
7225
            CPPFLAGS="$gt_save_CPPFLAGS"
 
7226
            LIBS="$gt_save_LIBS"
 
7227
fi
 
7228
ac_res=`eval 'as_val=${'$gt_func_gnugettext_libintl'}
 
7229
                 $as_echo "$as_val"'`
 
7230
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
7231
$as_echo "$ac_res" >&6; }
 
7232
        fi
 
7233
 
 
7234
                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
 
7235
           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
 
7236
                && test "$PACKAGE" != gettext-runtime \
 
7237
                && test "$PACKAGE" != gettext-tools; }; then
 
7238
          gt_use_preinstalled_gnugettext=yes
 
7239
        else
 
7240
                    LIBINTL=
 
7241
          LTLIBINTL=
 
7242
          INCINTL=
 
7243
        fi
 
7244
 
 
7245
 
 
7246
 
 
7247
    if test -n "$INTL_MACOSX_LIBS"; then
 
7248
      if test "$gt_use_preinstalled_gnugettext" = "yes" \
 
7249
         || test "$nls_cv_use_gnu_gettext" = "yes"; then
 
7250
                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
 
7251
        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
 
7252
      fi
 
7253
    fi
 
7254
 
 
7255
    if test "$gt_use_preinstalled_gnugettext" = "yes" \
 
7256
       || test "$nls_cv_use_gnu_gettext" = "yes"; then
 
7257
 
 
7258
cat >>confdefs.h <<\_ACEOF
 
7259
#define ENABLE_NLS 1
 
7260
_ACEOF
 
7261
 
 
7262
    else
 
7263
      USE_NLS=no
 
7264
    fi
 
7265
  fi
 
7266
 
 
7267
  { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
 
7268
$as_echo_n "checking whether to use NLS... " >&6; }
 
7269
  { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
 
7270
$as_echo "$USE_NLS" >&6; }
 
7271
  if test "$USE_NLS" = "yes"; then
 
7272
    { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
 
7273
$as_echo_n "checking where the gettext function comes from... " >&6; }
 
7274
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
 
7275
      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
 
7276
        gt_source="external libintl"
 
7277
      else
 
7278
        gt_source="libc"
 
7279
      fi
 
7280
    else
 
7281
      gt_source="included intl directory"
 
7282
    fi
 
7283
    { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
 
7284
$as_echo "$gt_source" >&6; }
 
7285
  fi
 
7286
 
 
7287
  if test "$USE_NLS" = "yes"; then
 
7288
 
 
7289
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
 
7290
      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
 
7291
        { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
 
7292
$as_echo_n "checking how to link with libintl... " >&6; }
 
7293
        { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
 
7294
$as_echo "$LIBINTL" >&6; }
 
7295
 
 
7296
  for element in $INCINTL; do
 
7297
    haveit=
 
7298
    for x in $CPPFLAGS; do
 
7299
 
 
7300
  acl_save_prefix="$prefix"
 
7301
  prefix="$acl_final_prefix"
 
7302
  acl_save_exec_prefix="$exec_prefix"
 
7303
  exec_prefix="$acl_final_exec_prefix"
 
7304
  eval x=\"$x\"
 
7305
  exec_prefix="$acl_save_exec_prefix"
 
7306
  prefix="$acl_save_prefix"
 
7307
 
 
7308
      if test "X$x" = "X$element"; then
 
7309
        haveit=yes
 
7310
        break
 
7311
      fi
 
7312
    done
 
7313
    if test -z "$haveit"; then
 
7314
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
7315
    fi
 
7316
  done
 
7317
 
 
7318
      fi
 
7319
 
 
7320
 
 
7321
cat >>confdefs.h <<\_ACEOF
 
7322
#define HAVE_GETTEXT 1
 
7323
_ACEOF
 
7324
 
 
7325
 
 
7326
cat >>confdefs.h <<\_ACEOF
 
7327
#define HAVE_DCGETTEXT 1
 
7328
_ACEOF
 
7329
 
 
7330
    fi
 
7331
 
 
7332
        POSUB=po
 
7333
  fi
 
7334
 
 
7335
 
 
7336
 
 
7337
    INTLLIBS="$LIBINTL"
 
7338
 
 
7339
 
 
7340
 
 
7341
 
 
7342
 
 
7343
 
 
7344
 
 
7345
 
 
7346
if test -n "$ac_tool_prefix"; then
 
7347
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
7348
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
7349
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7350
$as_echo_n "checking for $ac_word... " >&6; }
 
7351
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
7352
  $as_echo_n "(cached) " >&6
 
7353
else
 
7354
  if test -n "$RANLIB"; then
 
7355
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
7356
else
 
7357
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7358
for as_dir in $PATH
 
7359
do
 
7360
  IFS=$as_save_IFS
 
7361
  test -z "$as_dir" && as_dir=.
 
7362
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7363
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7364
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
7365
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7366
    break 2
 
7367
  fi
 
7368
done
 
7369
done
 
7370
IFS=$as_save_IFS
 
7371
 
 
7372
fi
 
7373
fi
 
7374
RANLIB=$ac_cv_prog_RANLIB
 
7375
if test -n "$RANLIB"; then
 
7376
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
 
7377
$as_echo "$RANLIB" >&6; }
 
7378
else
 
7379
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7380
$as_echo "no" >&6; }
 
7381
fi
 
7382
 
 
7383
 
 
7384
fi
 
7385
if test -z "$ac_cv_prog_RANLIB"; then
 
7386
  ac_ct_RANLIB=$RANLIB
 
7387
  # Extract the first word of "ranlib", so it can be a program name with args.
 
7388
set dummy ranlib; ac_word=$2
 
7389
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7390
$as_echo_n "checking for $ac_word... " >&6; }
 
7391
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
7392
  $as_echo_n "(cached) " >&6
 
7393
else
 
7394
  if test -n "$ac_ct_RANLIB"; then
 
7395
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
7396
else
 
7397
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7398
for as_dir in $PATH
 
7399
do
 
7400
  IFS=$as_save_IFS
 
7401
  test -z "$as_dir" && as_dir=.
 
7402
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7403
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7404
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
7405
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7406
    break 2
 
7407
  fi
 
7408
done
 
7409
done
 
7410
IFS=$as_save_IFS
 
7411
 
 
7412
fi
 
7413
fi
 
7414
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
7415
if test -n "$ac_ct_RANLIB"; then
 
7416
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
7417
$as_echo "$ac_ct_RANLIB" >&6; }
 
7418
else
 
7419
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7420
$as_echo "no" >&6; }
 
7421
fi
 
7422
 
 
7423
  if test "x$ac_ct_RANLIB" = x; then
 
7424
    RANLIB=":"
 
7425
  else
 
7426
    case $cross_compiling:$ac_tool_warned in
 
7427
yes:)
 
7428
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
7429
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7430
ac_tool_warned=yes ;;
 
7431
esac
 
7432
    RANLIB=$ac_ct_RANLIB
 
7433
  fi
 
7434
else
 
7435
  RANLIB="$ac_cv_prog_RANLIB"
 
7436
fi
 
7437
 
 
7438
 
 
7439
for ac_prog in flex lex
 
7440
do
 
7441
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
7442
set dummy $ac_prog; ac_word=$2
 
7443
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7444
$as_echo_n "checking for $ac_word... " >&6; }
 
7445
if test "${ac_cv_prog_LEX+set}" = set; then
 
7446
  $as_echo_n "(cached) " >&6
 
7447
else
 
7448
  if test -n "$LEX"; then
 
7449
  ac_cv_prog_LEX="$LEX" # Let the user override the test.
 
7450
else
 
7451
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7452
for as_dir in $PATH
 
7453
do
 
7454
  IFS=$as_save_IFS
 
7455
  test -z "$as_dir" && as_dir=.
 
7456
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7457
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7458
    ac_cv_prog_LEX="$ac_prog"
 
7459
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7460
    break 2
 
7461
  fi
 
7462
done
 
7463
done
 
7464
IFS=$as_save_IFS
 
7465
 
 
7466
fi
 
7467
fi
 
7468
LEX=$ac_cv_prog_LEX
 
7469
if test -n "$LEX"; then
 
7470
  { $as_echo "$as_me:$LINENO: result: $LEX" >&5
 
7471
$as_echo "$LEX" >&6; }
 
7472
else
 
7473
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7474
$as_echo "no" >&6; }
 
7475
fi
 
7476
 
 
7477
 
 
7478
  test -n "$LEX" && break
 
7479
done
 
7480
test -n "$LEX" || LEX=":"
 
7481
 
 
7482
if test "x$LEX" != "x:"; then
 
7483
  cat >conftest.l <<_ACEOF
 
7484
%%
 
7485
a { ECHO; }
 
7486
b { REJECT; }
 
7487
c { yymore (); }
 
7488
d { yyless (1); }
 
7489
e { yyless (input () != 0); }
 
7490
f { unput (yytext[0]); }
 
7491
. { BEGIN INITIAL; }
 
7492
%%
 
7493
#ifdef YYTEXT_POINTER
 
7494
extern char *yytext;
 
7495
#endif
 
7496
int
 
7497
main (void)
 
7498
{
 
7499
  return ! yylex () + ! yywrap ();
 
7500
}
 
7501
_ACEOF
 
7502
{ (ac_try="$LEX conftest.l"
 
7503
case "(($ac_try" in
 
7504
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7505
  *) ac_try_echo=$ac_try;;
 
7506
esac
 
7507
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7508
$as_echo "$ac_try_echo") >&5
 
7509
  (eval "$LEX conftest.l") 2>&5
 
7510
  ac_status=$?
 
7511
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7512
  (exit $ac_status); }
 
7513
{ $as_echo "$as_me:$LINENO: checking lex output file root" >&5
 
7514
$as_echo_n "checking lex output file root... " >&6; }
 
7515
if test "${ac_cv_prog_lex_root+set}" = set; then
 
7516
  $as_echo_n "(cached) " >&6
 
7517
else
 
7518
 
 
7519
if test -f lex.yy.c; then
 
7520
  ac_cv_prog_lex_root=lex.yy
 
7521
elif test -f lexyy.c; then
 
7522
  ac_cv_prog_lex_root=lexyy
 
7523
else
 
7524
  { { $as_echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
 
7525
$as_echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
 
7526
   { (exit 1); exit 1; }; }
 
7527
fi
 
7528
fi
 
7529
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
 
7530
$as_echo "$ac_cv_prog_lex_root" >&6; }
 
7531
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
 
7532
 
 
7533
if test -z "${LEXLIB+set}"; then
 
7534
  { $as_echo "$as_me:$LINENO: checking lex library" >&5
 
7535
$as_echo_n "checking lex library... " >&6; }
 
7536
if test "${ac_cv_lib_lex+set}" = set; then
 
7537
  $as_echo_n "(cached) " >&6
 
7538
else
 
7539
 
 
7540
    ac_save_LIBS=$LIBS
 
7541
    ac_cv_lib_lex='none needed'
 
7542
    for ac_lib in '' -lfl -ll; do
 
7543
      LIBS="$ac_lib $ac_save_LIBS"
 
7544
      cat >conftest.$ac_ext <<_ACEOF
 
7545
`cat $LEX_OUTPUT_ROOT.c`
 
7546
_ACEOF
 
7547
rm -f conftest.$ac_objext conftest$ac_exeext
 
7548
if { (ac_try="$ac_link"
 
7549
case "(($ac_try" in
 
7550
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7551
  *) ac_try_echo=$ac_try;;
 
7552
esac
 
7553
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7554
$as_echo "$ac_try_echo") >&5
 
7555
  (eval "$ac_link") 2>conftest.er1
 
7556
  ac_status=$?
 
7557
  grep -v '^ *+' conftest.er1 >conftest.err
 
7558
  rm -f conftest.er1
 
7559
  cat conftest.err >&5
 
7560
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7561
  (exit $ac_status); } && {
 
7562
         test -z "$ac_c_werror_flag" ||
 
7563
         test ! -s conftest.err
 
7564
       } && test -s conftest$ac_exeext && {
 
7565
         test "$cross_compiling" = yes ||
 
7566
         $as_test_x conftest$ac_exeext
 
7567
       }; then
 
7568
  ac_cv_lib_lex=$ac_lib
 
7569
else
 
7570
  $as_echo "$as_me: failed program was:" >&5
 
7571
sed 's/^/| /' conftest.$ac_ext >&5
 
7572
 
 
7573
 
 
7574
fi
 
7575
 
 
7576
rm -rf conftest.dSYM
 
7577
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7578
      conftest$ac_exeext conftest.$ac_ext
 
7579
      test "$ac_cv_lib_lex" != 'none needed' && break
 
7580
    done
 
7581
    LIBS=$ac_save_LIBS
 
7582
 
 
7583
fi
 
7584
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
 
7585
$as_echo "$ac_cv_lib_lex" >&6; }
 
7586
  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
 
7587
fi
 
7588
 
 
7589
 
 
7590
{ $as_echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
 
7591
$as_echo_n "checking whether yytext is a pointer... " >&6; }
 
7592
if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
 
7593
  $as_echo_n "(cached) " >&6
 
7594
else
 
7595
  # POSIX says lex can declare yytext either as a pointer or an array; the
 
7596
# default is implementation-dependent.  Figure out which it is, since
 
7597
# not all implementations provide the %pointer and %array declarations.
 
7598
ac_cv_prog_lex_yytext_pointer=no
 
7599
ac_save_LIBS=$LIBS
 
7600
LIBS="$LEXLIB $ac_save_LIBS"
 
7601
cat >conftest.$ac_ext <<_ACEOF
 
7602
#define YYTEXT_POINTER 1
 
7603
`cat $LEX_OUTPUT_ROOT.c`
 
7604
_ACEOF
 
7605
rm -f conftest.$ac_objext conftest$ac_exeext
 
7606
if { (ac_try="$ac_link"
 
7607
case "(($ac_try" in
 
7608
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7609
  *) ac_try_echo=$ac_try;;
 
7610
esac
 
7611
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7612
$as_echo "$ac_try_echo") >&5
 
7613
  (eval "$ac_link") 2>conftest.er1
 
7614
  ac_status=$?
 
7615
  grep -v '^ *+' conftest.er1 >conftest.err
 
7616
  rm -f conftest.er1
 
7617
  cat conftest.err >&5
 
7618
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7619
  (exit $ac_status); } && {
 
7620
         test -z "$ac_c_werror_flag" ||
 
7621
         test ! -s conftest.err
 
7622
       } && test -s conftest$ac_exeext && {
 
7623
         test "$cross_compiling" = yes ||
 
7624
         $as_test_x conftest$ac_exeext
 
7625
       }; then
 
7626
  ac_cv_prog_lex_yytext_pointer=yes
 
7627
else
 
7628
  $as_echo "$as_me: failed program was:" >&5
 
7629
sed 's/^/| /' conftest.$ac_ext >&5
 
7630
 
 
7631
 
 
7632
fi
 
7633
 
 
7634
rm -rf conftest.dSYM
 
7635
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7636
      conftest$ac_exeext conftest.$ac_ext
 
7637
LIBS=$ac_save_LIBS
 
7638
 
 
7639
fi
 
7640
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
 
7641
$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
 
7642
if test $ac_cv_prog_lex_yytext_pointer = yes; then
 
7643
 
 
7644
cat >>confdefs.h <<\_ACEOF
 
7645
#define YYTEXT_POINTER 1
 
7646
_ACEOF
 
7647
 
 
7648
fi
 
7649
rm -f conftest.l $LEX_OUTPUT_ROOT.c
 
7650
 
 
7651
fi
3479
7652
 
3480
7653
if test -n "$auto_cflags"; then
3481
7654
  if test -n "$GCC"; then
3489
7662
  fi
3490
7663
fi
3491
7664
 
3492
 
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3493
 
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
 
7665
{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
7666
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
3494
7667
if test "${ac_cv_c_const+set}" = set; then
3495
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7668
  $as_echo_n "(cached) " >&6
3496
7669
else
3497
7670
  cat >conftest.$ac_ext <<_ACEOF
3498
7671
/* confdefs.h.  */
3564
7737
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565
7738
  *) ac_try_echo=$ac_try;;
3566
7739
esac
3567
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7740
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7741
$as_echo "$ac_try_echo") >&5
3568
7742
  (eval "$ac_compile") 2>conftest.er1
3569
7743
  ac_status=$?
3570
7744
  grep -v '^ *+' conftest.er1 >conftest.err
3571
7745
  rm -f conftest.er1
3572
7746
  cat conftest.err >&5
3573
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7747
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574
7748
  (exit $ac_status); } && {
3575
7749
         test -z "$ac_c_werror_flag" ||
3576
7750
         test ! -s conftest.err
3577
7751
       } && test -s conftest.$ac_objext; then
3578
7752
  ac_cv_c_const=yes
3579
7753
else
3580
 
  echo "$as_me: failed program was:" >&5
 
7754
  $as_echo "$as_me: failed program was:" >&5
3581
7755
sed 's/^/| /' conftest.$ac_ext >&5
3582
7756
 
3583
7757
        ac_cv_c_const=no
3585
7759
 
3586
7760
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3587
7761
fi
3588
 
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3589
 
echo "${ECHO_T}$ac_cv_c_const" >&6; }
 
7762
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
7763
$as_echo "$ac_cv_c_const" >&6; }
3590
7764
if test $ac_cv_c_const = no; then
3591
7765
 
3592
7766
cat >>confdefs.h <<\_ACEOF
3593
 
#define const
 
7767
#define const /**/
3594
7768
_ACEOF
3595
7769
 
3596
7770
fi
3597
7771
 
3598
 
{ echo "$as_me:$LINENO: checking for inline" >&5
3599
 
echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
 
7772
{ $as_echo "$as_me:$LINENO: checking for inline" >&5
 
7773
$as_echo_n "checking for inline... " >&6; }
3600
7774
if test "${ac_cv_c_inline+set}" = set; then
3601
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7775
  $as_echo_n "(cached) " >&6
3602
7776
else
3603
7777
  ac_cv_c_inline=no
3604
7778
for ac_kw in inline __inline__ __inline; do
3621
7795
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622
7796
  *) ac_try_echo=$ac_try;;
3623
7797
esac
3624
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7798
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7799
$as_echo "$ac_try_echo") >&5
3625
7800
  (eval "$ac_compile") 2>conftest.er1
3626
7801
  ac_status=$?
3627
7802
  grep -v '^ *+' conftest.er1 >conftest.err
3628
7803
  rm -f conftest.er1
3629
7804
  cat conftest.err >&5
3630
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7805
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631
7806
  (exit $ac_status); } && {
3632
7807
         test -z "$ac_c_werror_flag" ||
3633
7808
         test ! -s conftest.err
3634
7809
       } && test -s conftest.$ac_objext; then
3635
7810
  ac_cv_c_inline=$ac_kw
3636
7811
else
3637
 
  echo "$as_me: failed program was:" >&5
 
7812
  $as_echo "$as_me: failed program was:" >&5
3638
7813
sed 's/^/| /' conftest.$ac_ext >&5
3639
7814
 
3640
7815
 
3645
7820
done
3646
7821
 
3647
7822
fi
3648
 
{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3649
 
echo "${ECHO_T}$ac_cv_c_inline" >&6; }
 
7823
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
 
7824
$as_echo "$ac_cv_c_inline" >&6; }
3650
7825
 
3651
7826
 
3652
7827
case $ac_cv_c_inline in
3664
7839
    ;;
3665
7840
esac
3666
7841
 
3667
 
{ echo "$as_me:$LINENO: checking for working volatile" >&5
3668
 
echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
 
7842
{ $as_echo "$as_me:$LINENO: checking for working volatile" >&5
 
7843
$as_echo_n "checking for working volatile... " >&6; }
3669
7844
if test "${ac_cv_c_volatile+set}" = set; then
3670
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7845
  $as_echo_n "(cached) " >&6
3671
7846
else
3672
7847
  cat >conftest.$ac_ext <<_ACEOF
3673
7848
/* confdefs.h.  */
3693
7868
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3694
7869
  *) ac_try_echo=$ac_try;;
3695
7870
esac
3696
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7871
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7872
$as_echo "$ac_try_echo") >&5
3697
7873
  (eval "$ac_compile") 2>conftest.er1
3698
7874
  ac_status=$?
3699
7875
  grep -v '^ *+' conftest.er1 >conftest.err
3700
7876
  rm -f conftest.er1
3701
7877
  cat conftest.err >&5
3702
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7878
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703
7879
  (exit $ac_status); } && {
3704
7880
         test -z "$ac_c_werror_flag" ||
3705
7881
         test ! -s conftest.err
3706
7882
       } && test -s conftest.$ac_objext; then
3707
7883
  ac_cv_c_volatile=yes
3708
7884
else
3709
 
  echo "$as_me: failed program was:" >&5
 
7885
  $as_echo "$as_me: failed program was:" >&5
3710
7886
sed 's/^/| /' conftest.$ac_ext >&5
3711
7887
 
3712
7888
        ac_cv_c_volatile=no
3714
7890
 
3715
7891
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3716
7892
fi
3717
 
{ echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
3718
 
echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
 
7893
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
 
7894
$as_echo "$ac_cv_c_volatile" >&6; }
3719
7895
if test $ac_cv_c_volatile = no; then
3720
7896
 
3721
7897
cat >>confdefs.h <<\_ACEOF
3722
 
#define volatile
 
7898
#define volatile /**/
3723
7899
_ACEOF
3724
7900
 
3725
7901
fi
3726
7902
 
3727
7903
 
3728
 
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3729
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
 
7904
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
7905
$as_echo_n "checking for ANSI C header files... " >&6; }
3730
7906
if test "${ac_cv_header_stdc+set}" = set; then
3731
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7907
  $as_echo_n "(cached) " >&6
3732
7908
else
3733
7909
  cat >conftest.$ac_ext <<_ACEOF
3734
7910
/* confdefs.h.  */
3755
7931
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3756
7932
  *) ac_try_echo=$ac_try;;
3757
7933
esac
3758
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7934
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7935
$as_echo "$ac_try_echo") >&5
3759
7936
  (eval "$ac_compile") 2>conftest.er1
3760
7937
  ac_status=$?
3761
7938
  grep -v '^ *+' conftest.er1 >conftest.err
3762
7939
  rm -f conftest.er1
3763
7940
  cat conftest.err >&5
3764
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7941
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765
7942
  (exit $ac_status); } && {
3766
7943
         test -z "$ac_c_werror_flag" ||
3767
7944
         test ! -s conftest.err
3768
7945
       } && test -s conftest.$ac_objext; then
3769
7946
  ac_cv_header_stdc=yes
3770
7947
else
3771
 
  echo "$as_me: failed program was:" >&5
 
7948
  $as_echo "$as_me: failed program was:" >&5
3772
7949
sed 's/^/| /' conftest.$ac_ext >&5
3773
7950
 
3774
7951
        ac_cv_header_stdc=no
3860
8037
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861
8038
  *) ac_try_echo=$ac_try;;
3862
8039
esac
3863
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8040
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8041
$as_echo "$ac_try_echo") >&5
3864
8042
  (eval "$ac_link") 2>&5
3865
8043
  ac_status=$?
3866
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8044
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867
8045
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3868
8046
  { (case "(($ac_try" in
3869
8047
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870
8048
  *) ac_try_echo=$ac_try;;
3871
8049
esac
3872
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8050
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8051
$as_echo "$ac_try_echo") >&5
3873
8052
  (eval "$ac_try") 2>&5
3874
8053
  ac_status=$?
3875
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8054
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876
8055
  (exit $ac_status); }; }; then
3877
8056
  :
3878
8057
else
3879
 
  echo "$as_me: program exited with status $ac_status" >&5
3880
 
echo "$as_me: failed program was:" >&5
 
8058
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
8059
$as_echo "$as_me: failed program was:" >&5
3881
8060
sed 's/^/| /' conftest.$ac_ext >&5
3882
8061
 
3883
8062
( exit $ac_status )
3884
8063
ac_cv_header_stdc=no
3885
8064
fi
 
8065
rm -rf conftest.dSYM
3886
8066
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3887
8067
fi
3888
8068
 
3889
8069
 
3890
8070
fi
3891
8071
fi
3892
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3893
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
8072
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
8073
$as_echo "$ac_cv_header_stdc" >&6; }
3894
8074
if test $ac_cv_header_stdc = yes; then
3895
8075
 
3896
8076
cat >>confdefs.h <<\_ACEOF
3907
8087
 
3908
8088
if test "$enable_largefile" != no; then
3909
8089
 
3910
 
  { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3911
 
echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
 
8090
  { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
 
8091
$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3912
8092
if test "${ac_cv_sys_largefile_CC+set}" = set; then
3913
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8093
  $as_echo_n "(cached) " >&6
3914
8094
else
3915
8095
  ac_cv_sys_largefile_CC=no
3916
8096
     if test "$GCC" != yes; then
3947
8127
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3948
8128
  *) ac_try_echo=$ac_try;;
3949
8129
esac
3950
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8130
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8131
$as_echo "$ac_try_echo") >&5
3951
8132
  (eval "$ac_compile") 2>conftest.er1
3952
8133
  ac_status=$?
3953
8134
  grep -v '^ *+' conftest.er1 >conftest.err
3954
8135
  rm -f conftest.er1
3955
8136
  cat conftest.err >&5
3956
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8137
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957
8138
  (exit $ac_status); } && {
3958
8139
         test -z "$ac_c_werror_flag" ||
3959
8140
         test ! -s conftest.err
3960
8141
       } && test -s conftest.$ac_objext; then
3961
8142
  break
3962
8143
else
3963
 
  echo "$as_me: failed program was:" >&5
 
8144
  $as_echo "$as_me: failed program was:" >&5
3964
8145
sed 's/^/| /' conftest.$ac_ext >&5
3965
8146
 
3966
8147
 
3974
8155
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3975
8156
  *) ac_try_echo=$ac_try;;
3976
8157
esac
3977
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8158
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8159
$as_echo "$ac_try_echo") >&5
3978
8160
  (eval "$ac_compile") 2>conftest.er1
3979
8161
  ac_status=$?
3980
8162
  grep -v '^ *+' conftest.er1 >conftest.err
3981
8163
  rm -f conftest.er1
3982
8164
  cat conftest.err >&5
3983
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8165
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984
8166
  (exit $ac_status); } && {
3985
8167
         test -z "$ac_c_werror_flag" ||
3986
8168
         test ! -s conftest.err
3987
8169
       } && test -s conftest.$ac_objext; then
3988
8170
  ac_cv_sys_largefile_CC=' -n32'; break
3989
8171
else
3990
 
  echo "$as_me: failed program was:" >&5
 
8172
  $as_echo "$as_me: failed program was:" >&5
3991
8173
sed 's/^/| /' conftest.$ac_ext >&5
3992
8174
 
3993
8175
 
4000
8182
       rm -f conftest.$ac_ext
4001
8183
    fi
4002
8184
fi
4003
 
{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4004
 
echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
 
8185
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
 
8186
$as_echo "$ac_cv_sys_largefile_CC" >&6; }
4005
8187
  if test "$ac_cv_sys_largefile_CC" != no; then
4006
8188
    CC=$CC$ac_cv_sys_largefile_CC
4007
8189
  fi
4008
8190
 
4009
 
  { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4010
 
echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
 
8191
  { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
 
8192
$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4011
8193
if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4012
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8194
  $as_echo_n "(cached) " >&6
4013
8195
else
4014
8196
  while :; do
4015
8197
  cat >conftest.$ac_ext <<_ACEOF
4041
8223
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4042
8224
  *) ac_try_echo=$ac_try;;
4043
8225
esac
4044
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8226
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8227
$as_echo "$ac_try_echo") >&5
4045
8228
  (eval "$ac_compile") 2>conftest.er1
4046
8229
  ac_status=$?
4047
8230
  grep -v '^ *+' conftest.er1 >conftest.err
4048
8231
  rm -f conftest.er1
4049
8232
  cat conftest.err >&5
4050
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8233
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051
8234
  (exit $ac_status); } && {
4052
8235
         test -z "$ac_c_werror_flag" ||
4053
8236
         test ! -s conftest.err
4054
8237
       } && test -s conftest.$ac_objext; then
4055
8238
  ac_cv_sys_file_offset_bits=no; break
4056
8239
else
4057
 
  echo "$as_me: failed program was:" >&5
 
8240
  $as_echo "$as_me: failed program was:" >&5
4058
8241
sed 's/^/| /' conftest.$ac_ext >&5
4059
8242
 
4060
8243
 
4091
8274
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4092
8275
  *) ac_try_echo=$ac_try;;
4093
8276
esac
4094
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8277
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8278
$as_echo "$ac_try_echo") >&5
4095
8279
  (eval "$ac_compile") 2>conftest.er1
4096
8280
  ac_status=$?
4097
8281
  grep -v '^ *+' conftest.er1 >conftest.err
4098
8282
  rm -f conftest.er1
4099
8283
  cat conftest.err >&5
4100
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8284
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101
8285
  (exit $ac_status); } && {
4102
8286
         test -z "$ac_c_werror_flag" ||
4103
8287
         test ! -s conftest.err
4104
8288
       } && test -s conftest.$ac_objext; then
4105
8289
  ac_cv_sys_file_offset_bits=64; break
4106
8290
else
4107
 
  echo "$as_me: failed program was:" >&5
 
8291
  $as_echo "$as_me: failed program was:" >&5
4108
8292
sed 's/^/| /' conftest.$ac_ext >&5
4109
8293
 
4110
8294
 
4115
8299
  break
4116
8300
done
4117
8301
fi
4118
 
{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4119
 
echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
 
8302
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
 
8303
$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4120
8304
case $ac_cv_sys_file_offset_bits in #(
4121
8305
  no | unknown) ;;
4122
8306
  *)
4125
8309
_ACEOF
4126
8310
;;
4127
8311
esac
4128
 
rm -f conftest*
 
8312
rm -rf conftest*
4129
8313
  if test $ac_cv_sys_file_offset_bits = unknown; then
4130
 
    { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4131
 
echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
 
8314
    { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
 
8315
$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4132
8316
if test "${ac_cv_sys_large_files+set}" = set; then
4133
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8317
  $as_echo_n "(cached) " >&6
4134
8318
else
4135
8319
  while :; do
4136
8320
  cat >conftest.$ac_ext <<_ACEOF
4162
8346
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163
8347
  *) ac_try_echo=$ac_try;;
4164
8348
esac
4165
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8349
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8350
$as_echo "$ac_try_echo") >&5
4166
8351
  (eval "$ac_compile") 2>conftest.er1
4167
8352
  ac_status=$?
4168
8353
  grep -v '^ *+' conftest.er1 >conftest.err
4169
8354
  rm -f conftest.er1
4170
8355
  cat conftest.err >&5
4171
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8356
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172
8357
  (exit $ac_status); } && {
4173
8358
         test -z "$ac_c_werror_flag" ||
4174
8359
         test ! -s conftest.err
4175
8360
       } && test -s conftest.$ac_objext; then
4176
8361
  ac_cv_sys_large_files=no; break
4177
8362
else
4178
 
  echo "$as_me: failed program was:" >&5
 
8363
  $as_echo "$as_me: failed program was:" >&5
4179
8364
sed 's/^/| /' conftest.$ac_ext >&5
4180
8365
 
4181
8366
 
4212
8397
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4213
8398
  *) ac_try_echo=$ac_try;;
4214
8399
esac
4215
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8400
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8401
$as_echo "$ac_try_echo") >&5
4216
8402
  (eval "$ac_compile") 2>conftest.er1
4217
8403
  ac_status=$?
4218
8404
  grep -v '^ *+' conftest.er1 >conftest.err
4219
8405
  rm -f conftest.er1
4220
8406
  cat conftest.err >&5
4221
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8407
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222
8408
  (exit $ac_status); } && {
4223
8409
         test -z "$ac_c_werror_flag" ||
4224
8410
         test ! -s conftest.err
4225
8411
       } && test -s conftest.$ac_objext; then
4226
8412
  ac_cv_sys_large_files=1; break
4227
8413
else
4228
 
  echo "$as_me: failed program was:" >&5
 
8414
  $as_echo "$as_me: failed program was:" >&5
4229
8415
sed 's/^/| /' conftest.$ac_ext >&5
4230
8416
 
4231
8417
 
4236
8422
  break
4237
8423
done
4238
8424
fi
4239
 
{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4240
 
echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
 
8425
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
 
8426
$as_echo "$ac_cv_sys_large_files" >&6; }
4241
8427
case $ac_cv_sys_large_files in #(
4242
8428
  no | unknown) ;;
4243
8429
  *)
4246
8432
_ACEOF
4247
8433
;;
4248
8434
esac
4249
 
rm -f conftest*
 
8435
rm -rf conftest*
4250
8436
  fi
4251
8437
fi
4252
8438
 
4253
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4254
 
 
4255
 
 
4256
 
 
4257
 
 
4258
 
 
4259
 
 
4260
 
 
4261
 
 
4262
 
 
4263
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4264
 
                  inttypes.h stdint.h unistd.h
4265
 
do
4266
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4267
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4268
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4269
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4270
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4271
 
else
4272
 
  cat >conftest.$ac_ext <<_ACEOF
4273
 
/* confdefs.h.  */
4274
 
_ACEOF
4275
 
cat confdefs.h >>conftest.$ac_ext
4276
 
cat >>conftest.$ac_ext <<_ACEOF
4277
 
/* end confdefs.h.  */
4278
 
$ac_includes_default
4279
 
 
4280
 
#include <$ac_header>
4281
 
_ACEOF
4282
 
rm -f conftest.$ac_objext
4283
 
if { (ac_try="$ac_compile"
4284
 
case "(($ac_try" in
4285
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286
 
  *) ac_try_echo=$ac_try;;
4287
 
esac
4288
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4289
 
  (eval "$ac_compile") 2>conftest.er1
4290
 
  ac_status=$?
4291
 
  grep -v '^ *+' conftest.er1 >conftest.err
4292
 
  rm -f conftest.er1
4293
 
  cat conftest.err >&5
4294
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295
 
  (exit $ac_status); } && {
4296
 
         test -z "$ac_c_werror_flag" ||
4297
 
         test ! -s conftest.err
4298
 
       } && test -s conftest.$ac_objext; then
4299
 
  eval "$as_ac_Header=yes"
4300
 
else
4301
 
  echo "$as_me: failed program was:" >&5
4302
 
sed 's/^/| /' conftest.$ac_ext >&5
4303
 
 
4304
 
        eval "$as_ac_Header=no"
4305
 
fi
4306
 
 
4307
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4308
 
fi
4309
 
ac_res=`eval echo '${'$as_ac_Header'}'`
4310
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
4311
 
echo "${ECHO_T}$ac_res" >&6; }
4312
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4313
 
  cat >>confdefs.h <<_ACEOF
4314
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4315
 
_ACEOF
4316
 
 
4317
 
fi
4318
 
 
4319
 
done
4320
 
 
4321
 
 
4322
 
{ echo "$as_me:$LINENO: checking for off_t" >&5
4323
 
echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
4324
 
if test "${ac_cv_type_off_t+set}" = set; then
4325
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4326
 
else
4327
 
  cat >conftest.$ac_ext <<_ACEOF
4328
 
/* confdefs.h.  */
4329
 
_ACEOF
4330
 
cat confdefs.h >>conftest.$ac_ext
4331
 
cat >>conftest.$ac_ext <<_ACEOF
4332
 
/* end confdefs.h.  */
4333
 
$ac_includes_default
4334
 
typedef off_t ac__type_new_;
4335
 
int
4336
 
main ()
4337
 
{
4338
 
if ((ac__type_new_ *) 0)
4339
 
  return 0;
4340
 
if (sizeof (ac__type_new_))
4341
 
  return 0;
4342
 
  ;
4343
 
  return 0;
4344
 
}
4345
 
_ACEOF
4346
 
rm -f conftest.$ac_objext
4347
 
if { (ac_try="$ac_compile"
4348
 
case "(($ac_try" in
4349
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4350
 
  *) ac_try_echo=$ac_try;;
4351
 
esac
4352
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4353
 
  (eval "$ac_compile") 2>conftest.er1
4354
 
  ac_status=$?
4355
 
  grep -v '^ *+' conftest.er1 >conftest.err
4356
 
  rm -f conftest.er1
4357
 
  cat conftest.err >&5
4358
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359
 
  (exit $ac_status); } && {
4360
 
         test -z "$ac_c_werror_flag" ||
4361
 
         test ! -s conftest.err
4362
 
       } && test -s conftest.$ac_objext; then
4363
 
  ac_cv_type_off_t=yes
4364
 
else
4365
 
  echo "$as_me: failed program was:" >&5
4366
 
sed 's/^/| /' conftest.$ac_ext >&5
4367
 
 
4368
 
        ac_cv_type_off_t=no
4369
 
fi
4370
 
 
4371
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4372
 
fi
4373
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4374
 
echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
4375
 
 
4376
8439
# The cast to long int works around a bug in the HP C Compiler
4377
8440
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4378
8441
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4379
8442
# This bug is HP SR number 8606223364.
4380
 
{ echo "$as_me:$LINENO: checking size of off_t" >&5
4381
 
echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
 
8443
{ $as_echo "$as_me:$LINENO: checking size of off_t" >&5
 
8444
$as_echo_n "checking size of off_t... " >&6; }
4382
8445
if test "${ac_cv_sizeof_off_t+set}" = set; then
4383
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8446
  $as_echo_n "(cached) " >&6
4384
8447
else
4385
8448
  if test "$cross_compiling" = yes; then
4386
8449
  # Depending upon the size, compute the lo and hi bounds.
4391
8454
cat >>conftest.$ac_ext <<_ACEOF
4392
8455
/* end confdefs.h.  */
4393
8456
$ac_includes_default
4394
 
   typedef off_t ac__type_sizeof_;
4395
8457
int
4396
8458
main ()
4397
8459
{
4398
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
8460
static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
4399
8461
test_array [0] = 0
4400
8462
 
4401
8463
  ;
4408
8470
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4409
8471
  *) ac_try_echo=$ac_try;;
4410
8472
esac
4411
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8473
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8474
$as_echo "$ac_try_echo") >&5
4412
8475
  (eval "$ac_compile") 2>conftest.er1
4413
8476
  ac_status=$?
4414
8477
  grep -v '^ *+' conftest.er1 >conftest.err
4415
8478
  rm -f conftest.er1
4416
8479
  cat conftest.err >&5
4417
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8480
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418
8481
  (exit $ac_status); } && {
4419
8482
         test -z "$ac_c_werror_flag" ||
4420
8483
         test ! -s conftest.err
4428
8491
cat >>conftest.$ac_ext <<_ACEOF
4429
8492
/* end confdefs.h.  */
4430
8493
$ac_includes_default
4431
 
   typedef off_t ac__type_sizeof_;
4432
8494
int
4433
8495
main ()
4434
8496
{
4435
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
8497
static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
4436
8498
test_array [0] = 0
4437
8499
 
4438
8500
  ;
4445
8507
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4446
8508
  *) ac_try_echo=$ac_try;;
4447
8509
esac
4448
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8510
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8511
$as_echo "$ac_try_echo") >&5
4449
8512
  (eval "$ac_compile") 2>conftest.er1
4450
8513
  ac_status=$?
4451
8514
  grep -v '^ *+' conftest.er1 >conftest.err
4452
8515
  rm -f conftest.er1
4453
8516
  cat conftest.err >&5
4454
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8517
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455
8518
  (exit $ac_status); } && {
4456
8519
         test -z "$ac_c_werror_flag" ||
4457
8520
         test ! -s conftest.err
4458
8521
       } && test -s conftest.$ac_objext; then
4459
8522
  ac_hi=$ac_mid; break
4460
8523
else
4461
 
  echo "$as_me: failed program was:" >&5
 
8524
  $as_echo "$as_me: failed program was:" >&5
4462
8525
sed 's/^/| /' conftest.$ac_ext >&5
4463
8526
 
4464
8527
        ac_lo=`expr $ac_mid + 1`
4472
8535
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4473
8536
  done
4474
8537
else
4475
 
  echo "$as_me: failed program was:" >&5
 
8538
  $as_echo "$as_me: failed program was:" >&5
4476
8539
sed 's/^/| /' conftest.$ac_ext >&5
4477
8540
 
4478
8541
        cat >conftest.$ac_ext <<_ACEOF
4482
8545
cat >>conftest.$ac_ext <<_ACEOF
4483
8546
/* end confdefs.h.  */
4484
8547
$ac_includes_default
4485
 
   typedef off_t ac__type_sizeof_;
4486
8548
int
4487
8549
main ()
4488
8550
{
4489
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
8551
static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
4490
8552
test_array [0] = 0
4491
8553
 
4492
8554
  ;
4499
8561
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4500
8562
  *) ac_try_echo=$ac_try;;
4501
8563
esac
4502
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8564
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8565
$as_echo "$ac_try_echo") >&5
4503
8566
  (eval "$ac_compile") 2>conftest.er1
4504
8567
  ac_status=$?
4505
8568
  grep -v '^ *+' conftest.er1 >conftest.err
4506
8569
  rm -f conftest.er1
4507
8570
  cat conftest.err >&5
4508
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8571
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509
8572
  (exit $ac_status); } && {
4510
8573
         test -z "$ac_c_werror_flag" ||
4511
8574
         test ! -s conftest.err
4519
8582
cat >>conftest.$ac_ext <<_ACEOF
4520
8583
/* end confdefs.h.  */
4521
8584
$ac_includes_default
4522
 
   typedef off_t ac__type_sizeof_;
4523
8585
int
4524
8586
main ()
4525
8587
{
4526
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
8588
static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
4527
8589
test_array [0] = 0
4528
8590
 
4529
8591
  ;
4536
8598
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4537
8599
  *) ac_try_echo=$ac_try;;
4538
8600
esac
4539
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8601
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8602
$as_echo "$ac_try_echo") >&5
4540
8603
  (eval "$ac_compile") 2>conftest.er1
4541
8604
  ac_status=$?
4542
8605
  grep -v '^ *+' conftest.er1 >conftest.err
4543
8606
  rm -f conftest.er1
4544
8607
  cat conftest.err >&5
4545
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8608
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546
8609
  (exit $ac_status); } && {
4547
8610
         test -z "$ac_c_werror_flag" ||
4548
8611
         test ! -s conftest.err
4549
8612
       } && test -s conftest.$ac_objext; then
4550
8613
  ac_lo=$ac_mid; break
4551
8614
else
4552
 
  echo "$as_me: failed program was:" >&5
 
8615
  $as_echo "$as_me: failed program was:" >&5
4553
8616
sed 's/^/| /' conftest.$ac_ext >&5
4554
8617
 
4555
8618
        ac_hi=`expr '(' $ac_mid ')' - 1`
4563
8626
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4564
8627
  done
4565
8628
else
4566
 
  echo "$as_me: failed program was:" >&5
 
8629
  $as_echo "$as_me: failed program was:" >&5
4567
8630
sed 's/^/| /' conftest.$ac_ext >&5
4568
8631
 
4569
8632
        ac_lo= ac_hi=
4583
8646
cat >>conftest.$ac_ext <<_ACEOF
4584
8647
/* end confdefs.h.  */
4585
8648
$ac_includes_default
4586
 
   typedef off_t ac__type_sizeof_;
4587
8649
int
4588
8650
main ()
4589
8651
{
4590
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
8652
static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
4591
8653
test_array [0] = 0
4592
8654
 
4593
8655
  ;
4600
8662
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4601
8663
  *) ac_try_echo=$ac_try;;
4602
8664
esac
4603
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8665
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8666
$as_echo "$ac_try_echo") >&5
4604
8667
  (eval "$ac_compile") 2>conftest.er1
4605
8668
  ac_status=$?
4606
8669
  grep -v '^ *+' conftest.er1 >conftest.err
4607
8670
  rm -f conftest.er1
4608
8671
  cat conftest.err >&5
4609
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8672
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610
8673
  (exit $ac_status); } && {
4611
8674
         test -z "$ac_c_werror_flag" ||
4612
8675
         test ! -s conftest.err
4613
8676
       } && test -s conftest.$ac_objext; then
4614
8677
  ac_hi=$ac_mid
4615
8678
else
4616
 
  echo "$as_me: failed program was:" >&5
 
8679
  $as_echo "$as_me: failed program was:" >&5
4617
8680
sed 's/^/| /' conftest.$ac_ext >&5
4618
8681
 
4619
8682
        ac_lo=`expr '(' $ac_mid ')' + 1`
4624
8687
case $ac_lo in
4625
8688
?*) ac_cv_sizeof_off_t=$ac_lo;;
4626
8689
'') if test "$ac_cv_type_off_t" = yes; then
4627
 
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
 
8690
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
8691
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
8692
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
4628
8693
See \`config.log' for more details." >&5
4629
 
echo "$as_me: error: cannot compute sizeof (off_t)
 
8694
$as_echo "$as_me: error: cannot compute sizeof (off_t)
4630
8695
See \`config.log' for more details." >&2;}
4631
 
   { (exit 77); exit 77; }; }
 
8696
   { (exit 77); exit 77; }; }; }
4632
8697
   else
4633
8698
     ac_cv_sizeof_off_t=0
4634
8699
   fi ;;
4641
8706
cat >>conftest.$ac_ext <<_ACEOF
4642
8707
/* end confdefs.h.  */
4643
8708
$ac_includes_default
4644
 
   typedef off_t ac__type_sizeof_;
4645
 
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
4646
 
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
8709
static long int longval () { return (long int) (sizeof (off_t)); }
 
8710
static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
4647
8711
#include <stdio.h>
4648
8712
#include <stdlib.h>
4649
8713
int
4653
8717
  FILE *f = fopen ("conftest.val", "w");
4654
8718
  if (! f)
4655
8719
    return 1;
4656
 
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
8720
  if (((long int) (sizeof (off_t))) < 0)
4657
8721
    {
4658
8722
      long int i = longval ();
4659
 
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
8723
      if (i != ((long int) (sizeof (off_t))))
4660
8724
        return 1;
4661
 
      fprintf (f, "%ld\n", i);
 
8725
      fprintf (f, "%ld", i);
4662
8726
    }
4663
8727
  else
4664
8728
    {
4665
8729
      unsigned long int i = ulongval ();
4666
 
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
8730
      if (i != ((long int) (sizeof (off_t))))
4667
8731
        return 1;
4668
 
      fprintf (f, "%lu\n", i);
 
8732
      fprintf (f, "%lu", i);
4669
8733
    }
 
8734
  /* Do not output a trailing newline, as this causes \r\n confusion
 
8735
     on some platforms.  */
4670
8736
  return ferror (f) || fclose (f) != 0;
4671
8737
 
4672
8738
  ;
4679
8745
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680
8746
  *) ac_try_echo=$ac_try;;
4681
8747
esac
4682
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8748
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8749
$as_echo "$ac_try_echo") >&5
4683
8750
  (eval "$ac_link") 2>&5
4684
8751
  ac_status=$?
4685
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8752
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686
8753
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4687
8754
  { (case "(($ac_try" in
4688
8755
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4689
8756
  *) ac_try_echo=$ac_try;;
4690
8757
esac
4691
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8758
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8759
$as_echo "$ac_try_echo") >&5
4692
8760
  (eval "$ac_try") 2>&5
4693
8761
  ac_status=$?
4694
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8762
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695
8763
  (exit $ac_status); }; }; then
4696
8764
  ac_cv_sizeof_off_t=`cat conftest.val`
4697
8765
else
4698
 
  echo "$as_me: program exited with status $ac_status" >&5
4699
 
echo "$as_me: failed program was:" >&5
 
8766
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
8767
$as_echo "$as_me: failed program was:" >&5
4700
8768
sed 's/^/| /' conftest.$ac_ext >&5
4701
8769
 
4702
8770
( exit $ac_status )
4703
8771
if test "$ac_cv_type_off_t" = yes; then
4704
 
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
 
8772
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
8773
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
8774
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
4705
8775
See \`config.log' for more details." >&5
4706
 
echo "$as_me: error: cannot compute sizeof (off_t)
 
8776
$as_echo "$as_me: error: cannot compute sizeof (off_t)
4707
8777
See \`config.log' for more details." >&2;}
4708
 
   { (exit 77); exit 77; }; }
 
8778
   { (exit 77); exit 77; }; }; }
4709
8779
   else
4710
8780
     ac_cv_sizeof_off_t=0
4711
8781
   fi
4712
8782
fi
 
8783
rm -rf conftest.dSYM
4713
8784
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4714
8785
fi
4715
8786
rm -f conftest.val
4716
8787
fi
4717
 
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
4718
 
echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
 
8788
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
 
8789
$as_echo "$ac_cv_sizeof_off_t" >&6; }
4719
8790
 
4720
8791
 
4721
8792
 
4725
8796
 
4726
8797
 
4727
8798
 
4728
 
{ echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
4729
 
echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
 
8799
{ $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
 
8800
$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
4730
8801
if test "${ac_cv_header_stdbool_h+set}" = set; then
4731
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8802
  $as_echo_n "(cached) " >&6
4732
8803
else
4733
8804
  cat >conftest.$ac_ext <<_ACEOF
4734
8805
/* confdefs.h.  */
4737
8808
cat >>conftest.$ac_ext <<_ACEOF
4738
8809
/* end confdefs.h.  */
4739
8810
 
4740
 
#include <stdbool.h>
4741
 
#ifndef bool
4742
 
 "error: bool is not defined"
4743
 
#endif
4744
 
#ifndef false
4745
 
 "error: false is not defined"
4746
 
#endif
4747
 
#if false
4748
 
 "error: false is not 0"
4749
 
#endif
4750
 
#ifndef true
4751
 
 "error: true is not defined"
4752
 
#endif
4753
 
#if true != 1
4754
 
 "error: true is not 1"
4755
 
#endif
4756
 
#ifndef __bool_true_false_are_defined
4757
 
 "error: __bool_true_false_are_defined is not defined"
4758
 
#endif
4759
 
 
4760
 
        struct s { _Bool s: 1; _Bool t; } s;
4761
 
 
4762
 
        char a[true == 1 ? 1 : -1];
4763
 
        char b[false == 0 ? 1 : -1];
4764
 
        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
4765
 
        char d[(bool) 0.5 == true ? 1 : -1];
4766
 
        bool e = &s;
4767
 
        char f[(_Bool) 0.0 == false ? 1 : -1];
4768
 
        char g[true];
4769
 
        char h[sizeof (_Bool)];
4770
 
        char i[sizeof s.t];
4771
 
        enum { j = false, k = true, l = false * true, m = true * 256 };
4772
 
        _Bool n[m];
4773
 
        char o[sizeof n == m * sizeof n[0] ? 1 : -1];
4774
 
        char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
4775
 
#       if defined __xlc__ || defined __GNUC__
4776
 
         /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
4777
 
            reported by James Lemley on 2005-10-05; see
4778
 
            http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
4779
 
            This test is not quite right, since xlc is allowed to
4780
 
            reject this program, as the initializer for xlcbug is
4781
 
            not one of the forms that C requires support for.
4782
 
            However, doing the test right would require a runtime
4783
 
            test, and that would make cross-compilation harder.
4784
 
            Let us hope that IBM fixes the xlc bug, and also adds
4785
 
            support for this kind of constant expression.  In the
4786
 
            meantime, this test will reject xlc, which is OK, since
4787
 
            our stdbool.h substitute should suffice.  We also test
4788
 
            this with GCC, where it should work, to detect more
4789
 
            quickly whether someone messes up the test in the
4790
 
            future.  */
4791
 
         char digs[] = "0123456789";
4792
 
         int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
4793
 
#       endif
4794
 
        /* Catch a bug in an HP-UX C compiler.  See
4795
 
           http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
4796
 
           http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
4797
 
         */
4798
 
        _Bool q = true;
4799
 
        _Bool *pq = &q;
 
8811
          #include <stdbool.h>
 
8812
          #ifndef bool
 
8813
           "error: bool is not defined"
 
8814
          #endif
 
8815
          #ifndef false
 
8816
           "error: false is not defined"
 
8817
          #endif
 
8818
          #if false
 
8819
           "error: false is not 0"
 
8820
          #endif
 
8821
          #ifndef true
 
8822
           "error: true is not defined"
 
8823
          #endif
 
8824
          #if true != 1
 
8825
           "error: true is not 1"
 
8826
          #endif
 
8827
          #ifndef __bool_true_false_are_defined
 
8828
           "error: __bool_true_false_are_defined is not defined"
 
8829
          #endif
 
8830
 
 
8831
          struct s { _Bool s: 1; _Bool t; } s;
 
8832
 
 
8833
          char a[true == 1 ? 1 : -1];
 
8834
          char b[false == 0 ? 1 : -1];
 
8835
          char c[__bool_true_false_are_defined == 1 ? 1 : -1];
 
8836
          char d[(bool) 0.5 == true ? 1 : -1];
 
8837
          bool e = &s;
 
8838
          char f[(_Bool) 0.0 == false ? 1 : -1];
 
8839
          char g[true];
 
8840
          char h[sizeof (_Bool)];
 
8841
          char i[sizeof s.t];
 
8842
          enum { j = false, k = true, l = false * true, m = true * 256 };
 
8843
          _Bool n[m];
 
8844
          char o[sizeof n == m * sizeof n[0] ? 1 : -1];
 
8845
          char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
 
8846
          #if defined __xlc__ || defined __GNUC__
 
8847
           /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
 
8848
              reported by James Lemley on 2005-10-05; see
 
8849
              http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
 
8850
              This test is not quite right, since xlc is allowed to
 
8851
              reject this program, as the initializer for xlcbug is
 
8852
              not one of the forms that C requires support for.
 
8853
              However, doing the test right would require a run-time
 
8854
              test, and that would make cross-compilation harder.
 
8855
              Let us hope that IBM fixes the xlc bug, and also adds
 
8856
              support for this kind of constant expression.  In the
 
8857
              meantime, this test will reject xlc, which is OK, since
 
8858
              our stdbool.h substitute should suffice.  We also test
 
8859
              this with GCC, where it should work, to detect more
 
8860
              quickly whether someone messes up the test in the
 
8861
              future.  */
 
8862
           char digs[] = "0123456789";
 
8863
           int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
 
8864
          #endif
 
8865
          /* Catch a bug in an HP-UX C compiler.  See
 
8866
             http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
 
8867
             http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
 
8868
           */
 
8869
          _Bool q = true;
 
8870
          _Bool *pq = &q;
4800
8871
 
4801
8872
int
4802
8873
main ()
4803
8874
{
4804
8875
 
4805
 
        *pq |= q;
4806
 
        *pq |= ! q;
4807
 
        /* Refer to every declared value, to avoid compiler optimizations.  */
4808
 
        return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
4809
 
                + !m + !n + !o + !p + !q + !pq);
 
8876
          *pq |= q;
 
8877
          *pq |= ! q;
 
8878
          /* Refer to every declared value, to avoid compiler optimizations.  */
 
8879
          return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
 
8880
                  + !m + !n + !o + !p + !q + !pq);
4810
8881
 
4811
8882
  ;
4812
8883
  return 0;
4818
8889
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4819
8890
  *) ac_try_echo=$ac_try;;
4820
8891
esac
4821
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8892
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8893
$as_echo "$ac_try_echo") >&5
4822
8894
  (eval "$ac_compile") 2>conftest.er1
4823
8895
  ac_status=$?
4824
8896
  grep -v '^ *+' conftest.er1 >conftest.err
4825
8897
  rm -f conftest.er1
4826
8898
  cat conftest.err >&5
4827
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8899
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828
8900
  (exit $ac_status); } && {
4829
8901
         test -z "$ac_c_werror_flag" ||
4830
8902
         test ! -s conftest.err
4831
8903
       } && test -s conftest.$ac_objext; then
4832
8904
  ac_cv_header_stdbool_h=yes
4833
8905
else
4834
 
  echo "$as_me: failed program was:" >&5
 
8906
  $as_echo "$as_me: failed program was:" >&5
4835
8907
sed 's/^/| /' conftest.$ac_ext >&5
4836
8908
 
4837
8909
        ac_cv_header_stdbool_h=no
4839
8911
 
4840
8912
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4841
8913
fi
4842
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
4843
 
echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
4844
 
{ echo "$as_me:$LINENO: checking for _Bool" >&5
4845
 
echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
 
8914
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
 
8915
$as_echo "$ac_cv_header_stdbool_h" >&6; }
 
8916
   { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
 
8917
$as_echo_n "checking for _Bool... " >&6; }
4846
8918
if test "${ac_cv_type__Bool+set}" = set; then
4847
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8919
  $as_echo_n "(cached) " >&6
4848
8920
else
 
8921
  ac_cv_type__Bool=no
 
8922
cat >conftest.$ac_ext <<_ACEOF
 
8923
/* confdefs.h.  */
 
8924
_ACEOF
 
8925
cat confdefs.h >>conftest.$ac_ext
 
8926
cat >>conftest.$ac_ext <<_ACEOF
 
8927
/* end confdefs.h.  */
 
8928
$ac_includes_default
 
8929
int
 
8930
main ()
 
8931
{
 
8932
if (sizeof (_Bool))
 
8933
       return 0;
 
8934
  ;
 
8935
  return 0;
 
8936
}
 
8937
_ACEOF
 
8938
rm -f conftest.$ac_objext
 
8939
if { (ac_try="$ac_compile"
 
8940
case "(($ac_try" in
 
8941
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8942
  *) ac_try_echo=$ac_try;;
 
8943
esac
 
8944
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8945
$as_echo "$ac_try_echo") >&5
 
8946
  (eval "$ac_compile") 2>conftest.er1
 
8947
  ac_status=$?
 
8948
  grep -v '^ *+' conftest.er1 >conftest.err
 
8949
  rm -f conftest.er1
 
8950
  cat conftest.err >&5
 
8951
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8952
  (exit $ac_status); } && {
 
8953
         test -z "$ac_c_werror_flag" ||
 
8954
         test ! -s conftest.err
 
8955
       } && test -s conftest.$ac_objext; then
4849
8956
  cat >conftest.$ac_ext <<_ACEOF
4850
8957
/* confdefs.h.  */
4851
8958
_ACEOF
4853
8960
cat >>conftest.$ac_ext <<_ACEOF
4854
8961
/* end confdefs.h.  */
4855
8962
$ac_includes_default
4856
 
typedef _Bool ac__type_new_;
4857
8963
int
4858
8964
main ()
4859
8965
{
4860
 
if ((ac__type_new_ *) 0)
4861
 
  return 0;
4862
 
if (sizeof (ac__type_new_))
4863
 
  return 0;
 
8966
if (sizeof ((_Bool)))
 
8967
          return 0;
4864
8968
  ;
4865
8969
  return 0;
4866
8970
}
4871
8975
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4872
8976
  *) ac_try_echo=$ac_try;;
4873
8977
esac
4874
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8978
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8979
$as_echo "$ac_try_echo") >&5
4875
8980
  (eval "$ac_compile") 2>conftest.er1
4876
8981
  ac_status=$?
4877
8982
  grep -v '^ *+' conftest.er1 >conftest.err
4878
8983
  rm -f conftest.er1
4879
8984
  cat conftest.err >&5
4880
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8985
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881
8986
  (exit $ac_status); } && {
4882
8987
         test -z "$ac_c_werror_flag" ||
4883
8988
         test ! -s conftest.err
4884
8989
       } && test -s conftest.$ac_objext; then
4885
 
  ac_cv_type__Bool=yes
4886
 
else
4887
 
  echo "$as_me: failed program was:" >&5
4888
 
sed 's/^/| /' conftest.$ac_ext >&5
4889
 
 
4890
 
        ac_cv_type__Bool=no
4891
 
fi
4892
 
 
4893
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4894
 
fi
4895
 
{ echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
4896
 
echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
4897
 
if test $ac_cv_type__Bool = yes; then
 
8990
  :
 
8991
else
 
8992
  $as_echo "$as_me: failed program was:" >&5
 
8993
sed 's/^/| /' conftest.$ac_ext >&5
 
8994
 
 
8995
        ac_cv_type__Bool=yes
 
8996
fi
 
8997
 
 
8998
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8999
else
 
9000
  $as_echo "$as_me: failed program was:" >&5
 
9001
sed 's/^/| /' conftest.$ac_ext >&5
 
9002
 
 
9003
 
 
9004
fi
 
9005
 
 
9006
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9007
fi
 
9008
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
 
9009
$as_echo "$ac_cv_type__Bool" >&6; }
 
9010
if test "x$ac_cv_type__Bool" = x""yes; then
4898
9011
 
4899
9012
cat >>confdefs.h <<_ACEOF
4900
9013
#define HAVE__BOOL 1
4903
9016
 
4904
9017
fi
4905
9018
 
4906
 
if test $ac_cv_header_stdbool_h = yes; then
 
9019
   if test $ac_cv_header_stdbool_h = yes; then
4907
9020
 
4908
9021
cat >>confdefs.h <<\_ACEOF
4909
9022
#define HAVE_STDBOOL_H 1
4910
9023
_ACEOF
4911
9024
 
4912
 
fi
4913
 
 
 
9025
   fi
4914
9026
 
4915
9027
 
4916
9028
for ac_header in unistd.h sys/time.h
4917
9029
do
4918
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4919
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4920
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
4921
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4922
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4923
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9030
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
9031
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
9032
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9033
$as_echo_n "checking for $ac_header... " >&6; }
 
9034
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
9035
  $as_echo_n "(cached) " >&6
4924
9036
fi
4925
 
ac_res=`eval echo '${'$as_ac_Header'}'`
4926
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
4927
 
echo "${ECHO_T}$ac_res" >&6; }
 
9037
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
9038
                 $as_echo "$as_val"'`
 
9039
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
9040
$as_echo "$ac_res" >&6; }
4928
9041
else
4929
9042
  # Is the header compilable?
4930
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4931
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
9043
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
9044
$as_echo_n "checking $ac_header usability... " >&6; }
4932
9045
cat >conftest.$ac_ext <<_ACEOF
4933
9046
/* confdefs.h.  */
4934
9047
_ACEOF
4944
9057
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4945
9058
  *) ac_try_echo=$ac_try;;
4946
9059
esac
4947
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9060
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
9061
$as_echo "$ac_try_echo") >&5
4948
9062
  (eval "$ac_compile") 2>conftest.er1
4949
9063
  ac_status=$?
4950
9064
  grep -v '^ *+' conftest.er1 >conftest.err
4951
9065
  rm -f conftest.er1
4952
9066
  cat conftest.err >&5
4953
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9067
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954
9068
  (exit $ac_status); } && {
4955
9069
         test -z "$ac_c_werror_flag" ||
4956
9070
         test ! -s conftest.err
4957
9071
       } && test -s conftest.$ac_objext; then
4958
9072
  ac_header_compiler=yes
4959
9073
else
4960
 
  echo "$as_me: failed program was:" >&5
 
9074
  $as_echo "$as_me: failed program was:" >&5
4961
9075
sed 's/^/| /' conftest.$ac_ext >&5
4962
9076
 
4963
9077
        ac_header_compiler=no
4964
9078
fi
4965
9079
 
4966
9080
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4967
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4968
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
9081
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
9082
$as_echo "$ac_header_compiler" >&6; }
4969
9083
 
4970
9084
# Is the header present?
4971
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4972
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
9085
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
9086
$as_echo_n "checking $ac_header presence... " >&6; }
4973
9087
cat >conftest.$ac_ext <<_ACEOF
4974
9088
/* confdefs.h.  */
4975
9089
_ACEOF
4983
9097
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4984
9098
  *) ac_try_echo=$ac_try;;
4985
9099
esac
4986
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9100
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
9101
$as_echo "$ac_try_echo") >&5
4987
9102
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4988
9103
  ac_status=$?
4989
9104
  grep -v '^ *+' conftest.er1 >conftest.err
4990
9105
  rm -f conftest.er1
4991
9106
  cat conftest.err >&5
4992
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9107
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993
9108
  (exit $ac_status); } >/dev/null && {
4994
9109
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4995
9110
         test ! -s conftest.err
4996
9111
       }; then
4997
9112
  ac_header_preproc=yes
4998
9113
else
4999
 
  echo "$as_me: failed program was:" >&5
 
9114
  $as_echo "$as_me: failed program was:" >&5
5000
9115
sed 's/^/| /' conftest.$ac_ext >&5
5001
9116
 
5002
9117
  ac_header_preproc=no
5003
9118
fi
5004
9119
 
5005
9120
rm -f conftest.err conftest.$ac_ext
5006
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5007
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
9121
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
9122
$as_echo "$ac_header_preproc" >&6; }
5008
9123
 
5009
9124
# So?  What about this header?
5010
9125
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5011
9126
  yes:no: )
5012
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5013
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5014
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5015
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
9127
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
9128
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
9129
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
9130
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5016
9131
    ac_header_preproc=yes
5017
9132
    ;;
5018
9133
  no:yes:* )
5019
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5020
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5021
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5022
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5023
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5024
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5025
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5026
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5027
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5028
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5029
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5030
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5031
 
 
 
9134
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
9135
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
9136
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
9137
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
9138
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
9139
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
9140
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
9141
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
9142
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
9143
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
9144
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
9145
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
9146
    ( cat <<\_ASBOX
 
9147
## ------------------------------- ##
 
9148
## Report this to bug-wget@gnu.org ##
 
9149
## ------------------------------- ##
 
9150
_ASBOX
 
9151
     ) | sed "s/^/$as_me: WARNING:     /" >&2
5032
9152
    ;;
5033
9153
esac
5034
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5035
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
9154
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9155
$as_echo_n "checking for $ac_header... " >&6; }
5036
9156
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5037
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9157
  $as_echo_n "(cached) " >&6
5038
9158
else
5039
9159
  eval "$as_ac_Header=\$ac_header_preproc"
5040
9160
fi
5041
 
ac_res=`eval echo '${'$as_ac_Header'}'`
5042
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
5043
 
echo "${ECHO_T}$ac_res" >&6; }
 
9161
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
9162
                 $as_echo "$as_val"'`
 
9163
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
9164
$as_echo "$ac_res" >&6; }
5044
9165
 
5045
9166
fi
5046
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
9167
as_val=`eval 'as_val=${'$as_ac_Header'}
 
9168
                 $as_echo "$as_val"'`
 
9169
   if test "x$as_val" = x""yes; then
5047
9170
  cat >>confdefs.h <<_ACEOF
5048
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
9171
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5049
9172
_ACEOF
5050
9173
 
5051
9174
fi
5059
9182
 
5060
9183
for ac_header in termios.h sys/ioctl.h sys/select.h utime.h sys/utime.h
5061
9184
do
5062
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5063
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5064
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5065
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5066
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5067
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9185
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
9186
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
9187
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9188
$as_echo_n "checking for $ac_header... " >&6; }
 
9189
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
9190
  $as_echo_n "(cached) " >&6
5068
9191
fi
5069
 
ac_res=`eval echo '${'$as_ac_Header'}'`
5070
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
5071
 
echo "${ECHO_T}$ac_res" >&6; }
 
9192
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
9193
                 $as_echo "$as_val"'`
 
9194
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
9195
$as_echo "$ac_res" >&6; }
5072
9196
else
5073
9197
  # Is the header compilable?
5074
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5075
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
9198
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
9199
$as_echo_n "checking $ac_header usability... " >&6; }
5076
9200
cat >conftest.$ac_ext <<_ACEOF
5077
9201
/* confdefs.h.  */
5078
9202
_ACEOF
5088
9212
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5089
9213
  *) ac_try_echo=$ac_try;;
5090
9214
esac
5091
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9215
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
9216
$as_echo "$ac_try_echo") >&5
5092
9217
  (eval "$ac_compile") 2>conftest.er1
5093
9218
  ac_status=$?
5094
9219
  grep -v '^ *+' conftest.er1 >conftest.err
5095
9220
  rm -f conftest.er1
5096
9221
  cat conftest.err >&5
5097
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9222
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098
9223
  (exit $ac_status); } && {
5099
9224
         test -z "$ac_c_werror_flag" ||
5100
9225
         test ! -s conftest.err
5101
9226
       } && test -s conftest.$ac_objext; then
5102
9227
  ac_header_compiler=yes
5103
9228
else
5104
 
  echo "$as_me: failed program was:" >&5
 
9229
  $as_echo "$as_me: failed program was:" >&5
5105
9230
sed 's/^/| /' conftest.$ac_ext >&5
5106
9231
 
5107
9232
        ac_header_compiler=no
5108
9233
fi
5109
9234
 
5110
9235
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5111
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5112
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
9236
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
9237
$as_echo "$ac_header_compiler" >&6; }
5113
9238
 
5114
9239
# Is the header present?
5115
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5116
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
9240
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
9241
$as_echo_n "checking $ac_header presence... " >&6; }
5117
9242
cat >conftest.$ac_ext <<_ACEOF
5118
9243
/* confdefs.h.  */
5119
9244
_ACEOF
5127
9252
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5128
9253
  *) ac_try_echo=$ac_try;;
5129
9254
esac
5130
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9255
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
9256
$as_echo "$ac_try_echo") >&5
5131
9257
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5132
9258
  ac_status=$?
5133
9259
  grep -v '^ *+' conftest.er1 >conftest.err
5134
9260
  rm -f conftest.er1
5135
9261
  cat conftest.err >&5
5136
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9262
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137
9263
  (exit $ac_status); } >/dev/null && {
5138
9264
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5139
9265
         test ! -s conftest.err
5140
9266
       }; then
5141
9267
  ac_header_preproc=yes
5142
9268
else
5143
 
  echo "$as_me: failed program was:" >&5
 
9269
  $as_echo "$as_me: failed program was:" >&5
5144
9270
sed 's/^/| /' conftest.$ac_ext >&5
5145
9271
 
5146
9272
  ac_header_preproc=no
5147
9273
fi
5148
9274
 
5149
9275
rm -f conftest.err conftest.$ac_ext
5150
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5151
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
9276
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
9277
$as_echo "$ac_header_preproc" >&6; }
5152
9278
 
5153
9279
# So?  What about this header?
5154
9280
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5155
9281
  yes:no: )
5156
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5157
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5158
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5159
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
9282
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
9283
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
9284
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
9285
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5160
9286
    ac_header_preproc=yes
5161
9287
    ;;
5162
9288
  no:yes:* )
5163
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5164
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5165
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5166
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5167
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5168
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5169
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5170
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5171
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5172
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5173
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5174
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5175
 
 
 
9289
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
9290
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
9291
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
9292
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
9293
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
9294
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
9295
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
9296
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
9297
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
9298
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
9299
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
9300
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
9301
    ( cat <<\_ASBOX
 
9302
## ------------------------------- ##
 
9303
## Report this to bug-wget@gnu.org ##
 
9304
## ------------------------------- ##
 
9305
_ASBOX
 
9306
     ) | sed "s/^/$as_me: WARNING:     /" >&2
5176
9307
    ;;
5177
9308
esac
5178
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5179
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
9309
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9310
$as_echo_n "checking for $ac_header... " >&6; }
5180
9311
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5181
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9312
  $as_echo_n "(cached) " >&6
5182
9313
else
5183
9314
  eval "$as_ac_Header=\$ac_header_preproc"
5184
9315
fi
5185
 
ac_res=`eval echo '${'$as_ac_Header'}'`
5186
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
5187
 
echo "${ECHO_T}$ac_res" >&6; }
 
9316
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
9317
                 $as_echo "$as_val"'`
 
9318
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
9319
$as_echo "$ac_res" >&6; }
5188
9320
 
5189
9321
fi
5190
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
9322
as_val=`eval 'as_val=${'$as_ac_Header'}
 
9323
                 $as_echo "$as_val"'`
 
9324
   if test "x$as_val" = x""yes; then
5191
9325
  cat >>confdefs.h <<_ACEOF
5192
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
9326
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5193
9327
_ACEOF
5194
9328
 
5195
9329
fi
5202
9336
 
5203
9337
for ac_header in stdint.h inttypes.h pwd.h wchar.h
5204
9338
do
5205
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5206
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5207
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5208
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5209
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5210
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9339
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
9340
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
9341
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9342
$as_echo_n "checking for $ac_header... " >&6; }
 
9343
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
9344
  $as_echo_n "(cached) " >&6
5211
9345
fi
5212
 
ac_res=`eval echo '${'$as_ac_Header'}'`
5213
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
5214
 
echo "${ECHO_T}$ac_res" >&6; }
 
9346
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
9347
                 $as_echo "$as_val"'`
 
9348
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
9349
$as_echo "$ac_res" >&6; }
5215
9350
else
5216
9351
  # Is the header compilable?
5217
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5218
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
9352
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
9353
$as_echo_n "checking $ac_header usability... " >&6; }
5219
9354
cat >conftest.$ac_ext <<_ACEOF
5220
9355
/* confdefs.h.  */
5221
9356
_ACEOF
5231
9366
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5232
9367
  *) ac_try_echo=$ac_try;;
5233
9368
esac
5234
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9369
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
9370
$as_echo "$ac_try_echo") >&5
5235
9371
  (eval "$ac_compile") 2>conftest.er1
5236
9372
  ac_status=$?
5237
9373
  grep -v '^ *+' conftest.er1 >conftest.err
5238
9374
  rm -f conftest.er1
5239
9375
  cat conftest.err >&5
5240
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9376
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241
9377
  (exit $ac_status); } && {
5242
9378
         test -z "$ac_c_werror_flag" ||
5243
9379
         test ! -s conftest.err
5244
9380
       } && test -s conftest.$ac_objext; then
5245
9381
  ac_header_compiler=yes
5246
9382
else
5247
 
  echo "$as_me: failed program was:" >&5
 
9383
  $as_echo "$as_me: failed program was:" >&5
5248
9384
sed 's/^/| /' conftest.$ac_ext >&5
5249
9385
 
5250
9386
        ac_header_compiler=no
5251
9387
fi
5252
9388
 
5253
9389
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5254
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5255
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
9390
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
9391
$as_echo "$ac_header_compiler" >&6; }
5256
9392
 
5257
9393
# Is the header present?
5258
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5259
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
9394
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
9395
$as_echo_n "checking $ac_header presence... " >&6; }
5260
9396
cat >conftest.$ac_ext <<_ACEOF
5261
9397
/* confdefs.h.  */
5262
9398
_ACEOF
5270
9406
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5271
9407
  *) ac_try_echo=$ac_try;;
5272
9408
esac
5273
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9409
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
9410
$as_echo "$ac_try_echo") >&5
5274
9411
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5275
9412
  ac_status=$?
5276
9413
  grep -v '^ *+' conftest.er1 >conftest.err
5277
9414
  rm -f conftest.er1
5278
9415
  cat conftest.err >&5
5279
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9416
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280
9417
  (exit $ac_status); } >/dev/null && {
5281
9418
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5282
9419
         test ! -s conftest.err
5283
9420
       }; then
5284
9421
  ac_header_preproc=yes
5285
9422
else
5286
 
  echo "$as_me: failed program was:" >&5
 
9423
  $as_echo "$as_me: failed program was:" >&5
5287
9424
sed 's/^/| /' conftest.$ac_ext >&5
5288
9425
 
5289
9426
  ac_header_preproc=no
5290
9427
fi
5291
9428
 
5292
9429
rm -f conftest.err conftest.$ac_ext
5293
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5294
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
9430
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
9431
$as_echo "$ac_header_preproc" >&6; }
5295
9432
 
5296
9433
# So?  What about this header?
5297
9434
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5298
9435
  yes:no: )
5299
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5300
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5301
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5302
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
9436
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
9437
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
9438
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
9439
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5303
9440
    ac_header_preproc=yes
5304
9441
    ;;
5305
9442
  no:yes:* )
5306
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5307
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5308
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5309
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5310
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5311
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5312
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5313
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5314
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5315
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5316
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5317
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5318
 
 
 
9443
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
9444
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
9445
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
9446
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
9447
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
9448
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
9449
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
9450
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
9451
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
9452
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
9453
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
9454
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
9455
    ( cat <<\_ASBOX
 
9456
## ------------------------------- ##
 
9457
## Report this to bug-wget@gnu.org ##
 
9458
## ------------------------------- ##
 
9459
_ASBOX
 
9460
     ) | sed "s/^/$as_me: WARNING:     /" >&2
5319
9461
    ;;
5320
9462
esac
5321
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5322
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
9463
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9464
$as_echo_n "checking for $ac_header... " >&6; }
5323
9465
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5324
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9466
  $as_echo_n "(cached) " >&6
5325
9467
else
5326
9468
  eval "$as_ac_Header=\$ac_header_preproc"
5327
9469
fi
5328
 
ac_res=`eval echo '${'$as_ac_Header'}'`
5329
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
5330
 
echo "${ECHO_T}$ac_res" >&6; }
 
9470
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
9471
                 $as_echo "$as_val"'`
 
9472
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
9473
$as_echo "$ac_res" >&6; }
5331
9474
 
5332
9475
fi
5333
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
9476
as_val=`eval 'as_val=${'$as_ac_Header'}
 
9477
                 $as_echo "$as_val"'`
 
9478
   if test "x$as_val" = x""yes; then
5334
9479
  cat >>confdefs.h <<_ACEOF
5335
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
9480
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5336
9481
_ACEOF
5337
9482
 
5338
9483
fi
5340
9485
done
5341
9486
 
5342
9487
 
5343
 
{ echo "$as_me:$LINENO: checking for short" >&5
5344
 
echo $ECHO_N "checking for short... $ECHO_C" >&6; }
5345
 
if test "${ac_cv_type_short+set}" = set; then
5346
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9488
{ $as_echo "$as_me:$LINENO: checking whether h_errno is declared" >&5
 
9489
$as_echo_n "checking whether h_errno is declared... " >&6; }
 
9490
if test "${ac_cv_have_decl_h_errno+set}" = set; then
 
9491
  $as_echo_n "(cached) " >&6
5347
9492
else
5348
9493
  cat >conftest.$ac_ext <<_ACEOF
5349
9494
/* confdefs.h.  */
5351
9496
cat confdefs.h >>conftest.$ac_ext
5352
9497
cat >>conftest.$ac_ext <<_ACEOF
5353
9498
/* end confdefs.h.  */
5354
 
$ac_includes_default
5355
 
typedef short ac__type_new_;
 
9499
#include <netdb.h>
 
9500
 
5356
9501
int
5357
9502
main ()
5358
9503
{
5359
 
if ((ac__type_new_ *) 0)
5360
 
  return 0;
5361
 
if (sizeof (ac__type_new_))
5362
 
  return 0;
 
9504
#ifndef h_errno
 
9505
  (void) h_errno;
 
9506
#endif
 
9507
 
5363
9508
  ;
5364
9509
  return 0;
5365
9510
}
5370
9515
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5371
9516
  *) ac_try_echo=$ac_try;;
5372
9517
esac
5373
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9518
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
9519
$as_echo "$ac_try_echo") >&5
5374
9520
  (eval "$ac_compile") 2>conftest.er1
5375
9521
  ac_status=$?
5376
9522
  grep -v '^ *+' conftest.er1 >conftest.err
5377
9523
  rm -f conftest.er1
5378
9524
  cat conftest.err >&5
5379
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9525
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380
9526
  (exit $ac_status); } && {
5381
9527
         test -z "$ac_c_werror_flag" ||
5382
9528
         test ! -s conftest.err
5383
9529
       } && test -s conftest.$ac_objext; then
5384
 
  ac_cv_type_short=yes
 
9530
  ac_cv_have_decl_h_errno=yes
5385
9531
else
5386
 
  echo "$as_me: failed program was:" >&5
 
9532
  $as_echo "$as_me: failed program was:" >&5
5387
9533
sed 's/^/| /' conftest.$ac_ext >&5
5388
9534
 
5389
 
        ac_cv_type_short=no
 
9535
        ac_cv_have_decl_h_errno=no
5390
9536
fi
5391
9537
 
5392
9538
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5393
9539
fi
5394
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5395
 
echo "${ECHO_T}$ac_cv_type_short" >&6; }
 
9540
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5
 
9541
$as_echo "$ac_cv_have_decl_h_errno" >&6; }
 
9542
if test "x$ac_cv_have_decl_h_errno" = x""yes; then
 
9543
 
 
9544
cat >>confdefs.h <<_ACEOF
 
9545
#define HAVE_DECL_H_ERRNO 1
 
9546
_ACEOF
 
9547
 
 
9548
 
 
9549
else
 
9550
  cat >>confdefs.h <<_ACEOF
 
9551
#define HAVE_DECL_H_ERRNO 0
 
9552
_ACEOF
 
9553
 
 
9554
 
 
9555
fi
 
9556
 
 
9557
 
5396
9558
 
5397
9559
# The cast to long int works around a bug in the HP C Compiler
5398
9560
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5399
9561
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5400
9562
# This bug is HP SR number 8606223364.
5401
 
{ echo "$as_me:$LINENO: checking size of short" >&5
5402
 
echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
 
9563
{ $as_echo "$as_me:$LINENO: checking size of short" >&5
 
9564
$as_echo_n "checking size of short... " >&6; }
5403
9565
if test "${ac_cv_sizeof_short+set}" = set; then
5404
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9566
  $as_echo_n "(cached) " >&6
5405
9567
else
5406
9568
  if test "$cross_compiling" = yes; then
5407
9569
  # Depending upon the size, compute the lo and hi bounds.
5412
9574
cat >>conftest.$ac_ext <<_ACEOF
5413
9575
/* end confdefs.h.  */
5414
9576
$ac_includes_default
5415
 
   typedef short ac__type_sizeof_;
5416
9577
int
5417
9578
main ()
5418
9579
{
5419
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
9580
static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
5420
9581
test_array [0] = 0
5421
9582
 
5422
9583
  ;
5429
9590
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5430
9591
  *) ac_try_echo=$ac_try;;
5431
9592
esac
5432
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9593
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
9594
$as_echo "$ac_try_echo") >&5
5433
9595
  (eval "$ac_compile") 2>conftest.er1
5434
9596
  ac_status=$?
5435
9597
  grep -v '^ *+' conftest.er1 >conftest.err
5436
9598
  rm -f conftest.er1
5437
9599
  cat conftest.err >&5
5438
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9600
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439
9601
  (exit $ac_status); } && {
5440
9602
         test -z "$ac_c_werror_flag" ||
5441
9603
         test ! -s conftest.err
5449
9611
cat >>conftest.$ac_ext <<_ACEOF
5450
9612
/* end confdefs.h.  */
5451
9613
$ac_includes_default
5452
 
   typedef short ac__type_sizeof_;
5453
9614
int
5454
9615
main ()
5455
9616
{
5456
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
9617
static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
5457
9618
test_array [0] = 0
5458
9619
 
5459
9620
  ;
5466
9627
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5467
9628
  *) ac_try_echo=$ac_try;;
5468
9629
esac
5469
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9630
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
9631
$as_echo "$ac_try_echo") >&5
5470
9632
  (eval "$ac_compile") 2>conftest.er1
5471
9633
  ac_status=$?
5472
9634
  grep -v '^ *+' conftest.er1 >conftest.err
5473
9635
  rm -f conftest.er1
5474
9636
  cat conftest.err >&5
5475
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9637
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476
9638
  (exit $ac_status); } && {
5477
9639
         test -z "$ac_c_werror_flag" ||
5478
9640
         test ! -s conftest.err
5479
9641
       } && test -s conftest.$ac_objext; then
5480
9642
  ac_hi=$ac_mid; break
5481
9643
else
5482
 
  echo "$as_me: failed program was:" >&5
 
9644
  $as_echo "$as_me: failed program was:" >&5
5483
9645
sed 's/^/| /' conftest.$ac_ext >&5
5484
9646
 
5485
9647
        ac_lo=`expr $ac_mid + 1`
5493
9655
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5494
9656
  done
5495
9657
else
5496
 
  echo "$as_me: failed program was:" >&5
 
9658
  $as_echo "$as_me: failed program was:" >&5
5497
9659
sed 's/^/| /' conftest.$ac_ext >&5
5498
9660
 
5499
9661
        cat >conftest.$ac_ext <<_ACEOF
5503
9665
cat >>conftest.$ac_ext <<_ACEOF
5504
9666
/* end confdefs.h.  */
5505
9667
$ac_includes_default
5506
 
   typedef short ac__type_sizeof_;
5507
9668
int
5508
9669
main ()
5509
9670
{
5510
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
9671
static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
5511
9672
test_array [0] = 0
5512
9673
 
5513
9674
  ;
5520
9681
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5521
9682
  *) ac_try_echo=$ac_try;;
5522
9683
esac
5523
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9684
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
9685
$as_echo "$ac_try_echo") >&5
5524
9686
  (eval "$ac_compile") 2>conftest.er1
5525
9687
  ac_status=$?
5526
9688
  grep -v '^ *+' conftest.er1 >conftest.err
5527
9689
  rm -f conftest.er1
5528
9690
  cat conftest.err >&5
5529
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9691
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530
9692
  (exit $ac_status); } && {
5531
9693
         test -z "$ac_c_werror_flag" ||
5532
9694
         test ! -s conftest.err
5540
9702
cat >>conftest.$ac_ext <<_ACEOF
5541
9703
/* end confdefs.h.  */
5542
9704
$ac_includes_default
5543
 
   typedef short ac__type_sizeof_;
5544
9705
int
5545
9706
main ()
5546
9707
{
5547
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
9708
static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
5548
9709
test_array [0] = 0
5549
9710
 
5550
9711
  ;
5557
9718
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5558
9719
  *) ac_try_echo=$ac_try;;
5559
9720
esac
5560
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9721
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
9722
$as_echo "$ac_try_echo") >&5
5561
9723
  (eval "$ac_compile") 2>conftest.er1
5562
9724
  ac_status=$?
5563
9725
  grep -v '^ *+' conftest.er1 >conftest.err
5564
9726
  rm -f conftest.er1
5565
9727
  cat conftest.err >&5
5566
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9728
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567
9729
  (exit $ac_status); } && {
5568
9730
         test -z "$ac_c_werror_flag" ||
5569
9731
         test ! -s conftest.err
5570
9732
       } && test -s conftest.$ac_objext; then
5571
9733
  ac_lo=$ac_mid; break
5572
9734
else
5573
 
  echo "$as_me: failed program was:" >&5
 
9735
  $as_echo "$as_me: failed program was:" >&5
5574
9736
sed 's/^/| /' conftest.$ac_ext >&5
5575
9737
 
5576
9738
        ac_hi=`expr '(' $ac_mid ')' - 1`
5584
9746
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5585
9747
  done
5586
9748
else
5587
 
  echo "$as_me: failed program was:" >&5
 
9749
  $as_echo "$as_me: failed program was:" >&5
5588
9750
sed 's/^/| /' conftest.$ac_ext >&5
5589
9751
 
5590
9752
        ac_lo= ac_hi=
5604
9766
cat >>conftest.$ac_ext <<_ACEOF
5605
9767
/* end confdefs.h.  */
5606
9768
$ac_includes_default
5607
 
   typedef short ac__type_sizeof_;
5608
9769
int
5609
9770
main ()
5610
9771
{
5611
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
9772
static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
5612
9773
test_array [0] = 0
5613
9774
 
5614
9775
  ;
5621
9782
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5622
9783
  *) ac_try_echo=$ac_try;;
5623
9784
esac
5624
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9785
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
9786
$as_echo "$ac_try_echo") >&5
5625
9787
  (eval "$ac_compile") 2>conftest.er1
5626
9788
  ac_status=$?
5627
9789
  grep -v '^ *+' conftest.er1 >conftest.err
5628
9790
  rm -f conftest.er1
5629
9791
  cat conftest.err >&5
5630
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9792
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631
9793
  (exit $ac_status); } && {
5632
9794
         test -z "$ac_c_werror_flag" ||
5633
9795
         test ! -s conftest.err
5634
9796
       } && test -s conftest.$ac_objext; then
5635
9797
  ac_hi=$ac_mid
5636
9798
else
5637
 
  echo "$as_me: failed program was:" >&5
 
9799
  $as_echo "$as_me: failed program was:" >&5
5638
9800
sed 's/^/| /' conftest.$ac_ext >&5
5639
9801
 
5640
9802
        ac_lo=`expr '(' $ac_mid ')' + 1`
5645
9807
case $ac_lo in
5646
9808
?*) ac_cv_sizeof_short=$ac_lo;;
5647
9809
'') if test "$ac_cv_type_short" = yes; then
5648
 
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
 
9810
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
9811
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
9812
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5649
9813
See \`config.log' for more details." >&5
5650
 
echo "$as_me: error: cannot compute sizeof (short)
 
9814
$as_echo "$as_me: error: cannot compute sizeof (short)
5651
9815
See \`config.log' for more details." >&2;}
5652
 
   { (exit 77); exit 77; }; }
 
9816
   { (exit 77); exit 77; }; }; }
5653
9817
   else
5654
9818
     ac_cv_sizeof_short=0
5655
9819
   fi ;;
5662
9826
cat >>conftest.$ac_ext <<_ACEOF
5663
9827
/* end confdefs.h.  */
5664
9828
$ac_includes_default
5665
 
   typedef short ac__type_sizeof_;
5666
 
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5667
 
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
9829
static long int longval () { return (long int) (sizeof (short)); }
 
9830
static unsigned long int ulongval () { return (long int) (sizeof (short)); }
5668
9831
#include <stdio.h>
5669
9832
#include <stdlib.h>
5670
9833
int
5674
9837
  FILE *f = fopen ("conftest.val", "w");
5675
9838
  if (! f)
5676
9839
    return 1;
5677
 
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
9840
  if (((long int) (sizeof (short))) < 0)
5678
9841
    {
5679
9842
      long int i = longval ();
5680
 
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
9843
      if (i != ((long int) (sizeof (short))))
5681
9844
        return 1;
5682
 
      fprintf (f, "%ld\n", i);
 
9845
      fprintf (f, "%ld", i);
5683
9846
    }
5684
9847
  else
5685
9848
    {
5686
9849
      unsigned long int i = ulongval ();
5687
 
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
9850
      if (i != ((long int) (sizeof (short))))
5688
9851
        return 1;
5689
 
      fprintf (f, "%lu\n", i);
 
9852
      fprintf (f, "%lu", i);
5690
9853
    }
 
9854
  /* Do not output a trailing newline, as this causes \r\n confusion
 
9855
     on some platforms.  */
5691
9856
  return ferror (f) || fclose (f) != 0;
5692
9857
 
5693
9858
  ;
5700
9865
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5701
9866
  *) ac_try_echo=$ac_try;;
5702
9867
esac
5703
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9868
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
9869
$as_echo "$ac_try_echo") >&5
5704
9870
  (eval "$ac_link") 2>&5
5705
9871
  ac_status=$?
5706
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9872
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707
9873
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5708
9874
  { (case "(($ac_try" in
5709
9875
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5710
9876
  *) ac_try_echo=$ac_try;;
5711
9877
esac
5712
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9878
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
9879
$as_echo "$ac_try_echo") >&5
5713
9880
  (eval "$ac_try") 2>&5
5714
9881
  ac_status=$?
5715
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9882
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716
9883
  (exit $ac_status); }; }; then
5717
9884
  ac_cv_sizeof_short=`cat conftest.val`
5718
9885
else
5719
 
  echo "$as_me: program exited with status $ac_status" >&5
5720
 
echo "$as_me: failed program was:" >&5
 
9886
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
9887
$as_echo "$as_me: failed program was:" >&5
5721
9888
sed 's/^/| /' conftest.$ac_ext >&5
5722
9889
 
5723
9890
( exit $ac_status )
5724
9891
if test "$ac_cv_type_short" = yes; then
5725
 
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
 
9892
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
9893
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
9894
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5726
9895
See \`config.log' for more details." >&5
5727
 
echo "$as_me: error: cannot compute sizeof (short)
 
9896
$as_echo "$as_me: error: cannot compute sizeof (short)
5728
9897
See \`config.log' for more details." >&2;}
5729
 
   { (exit 77); exit 77; }; }
 
9898
   { (exit 77); exit 77; }; }; }
5730
9899
   else
5731
9900
     ac_cv_sizeof_short=0
5732
9901
   fi
5733
9902
fi
 
9903
rm -rf conftest.dSYM
5734
9904
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5735
9905
fi
5736
9906
rm -f conftest.val
5737
9907
fi
5738
 
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5739
 
echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
 
9908
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
 
9909
$as_echo "$ac_cv_sizeof_short" >&6; }
5740
9910
 
5741
9911
 
5742
9912
 
5745
9915
_ACEOF
5746
9916
 
5747
9917
 
5748
 
{ echo "$as_me:$LINENO: checking for int" >&5
5749
 
echo $ECHO_N "checking for int... $ECHO_C" >&6; }
5750
 
if test "${ac_cv_type_int+set}" = set; then
5751
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5752
 
else
5753
 
  cat >conftest.$ac_ext <<_ACEOF
5754
 
/* confdefs.h.  */
5755
 
_ACEOF
5756
 
cat confdefs.h >>conftest.$ac_ext
5757
 
cat >>conftest.$ac_ext <<_ACEOF
5758
 
/* end confdefs.h.  */
5759
 
$ac_includes_default
5760
 
typedef int ac__type_new_;
5761
 
int
5762
 
main ()
5763
 
{
5764
 
if ((ac__type_new_ *) 0)
5765
 
  return 0;
5766
 
if (sizeof (ac__type_new_))
5767
 
  return 0;
5768
 
  ;
5769
 
  return 0;
5770
 
}
5771
 
_ACEOF
5772
 
rm -f conftest.$ac_objext
5773
 
if { (ac_try="$ac_compile"
5774
 
case "(($ac_try" in
5775
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5776
 
  *) ac_try_echo=$ac_try;;
5777
 
esac
5778
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5779
 
  (eval "$ac_compile") 2>conftest.er1
5780
 
  ac_status=$?
5781
 
  grep -v '^ *+' conftest.er1 >conftest.err
5782
 
  rm -f conftest.er1
5783
 
  cat conftest.err >&5
5784
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785
 
  (exit $ac_status); } && {
5786
 
         test -z "$ac_c_werror_flag" ||
5787
 
         test ! -s conftest.err
5788
 
       } && test -s conftest.$ac_objext; then
5789
 
  ac_cv_type_int=yes
5790
 
else
5791
 
  echo "$as_me: failed program was:" >&5
5792
 
sed 's/^/| /' conftest.$ac_ext >&5
5793
 
 
5794
 
        ac_cv_type_int=no
5795
 
fi
5796
 
 
5797
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5798
 
fi
5799
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5800
 
echo "${ECHO_T}$ac_cv_type_int" >&6; }
5801
 
 
5802
9918
# The cast to long int works around a bug in the HP C Compiler
5803
9919
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5804
9920
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5805
9921
# This bug is HP SR number 8606223364.
5806
 
{ echo "$as_me:$LINENO: checking size of int" >&5
5807
 
echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
 
9922
{ $as_echo "$as_me:$LINENO: checking size of int" >&5
 
9923
$as_echo_n "checking size of int... " >&6; }
5808
9924
if test "${ac_cv_sizeof_int+set}" = set; then
5809
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9925
  $as_echo_n "(cached) " >&6
5810
9926
else
5811
9927
  if test "$cross_compiling" = yes; then
5812
9928
  # Depending upon the size, compute the lo and hi bounds.
5817
9933
cat >>conftest.$ac_ext <<_ACEOF
5818
9934
/* end confdefs.h.  */
5819
9935
$ac_includes_default
5820
 
   typedef int ac__type_sizeof_;
5821
9936
int
5822
9937
main ()
5823
9938
{
5824
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
9939
static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
5825
9940
test_array [0] = 0
5826
9941
 
5827
9942
  ;
5834
9949
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5835
9950
  *) ac_try_echo=$ac_try;;
5836
9951
esac
5837
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9952
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
9953
$as_echo "$ac_try_echo") >&5
5838
9954
  (eval "$ac_compile") 2>conftest.er1
5839
9955
  ac_status=$?
5840
9956
  grep -v '^ *+' conftest.er1 >conftest.err
5841
9957
  rm -f conftest.er1
5842
9958
  cat conftest.err >&5
5843
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9959
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844
9960
  (exit $ac_status); } && {
5845
9961
         test -z "$ac_c_werror_flag" ||
5846
9962
         test ! -s conftest.err
5854
9970
cat >>conftest.$ac_ext <<_ACEOF
5855
9971
/* end confdefs.h.  */
5856
9972
$ac_includes_default
5857
 
   typedef int ac__type_sizeof_;
5858
9973
int
5859
9974
main ()
5860
9975
{
5861
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
9976
static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
5862
9977
test_array [0] = 0
5863
9978
 
5864
9979
  ;
5871
9986
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5872
9987
  *) ac_try_echo=$ac_try;;
5873
9988
esac
5874
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9989
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
9990
$as_echo "$ac_try_echo") >&5
5875
9991
  (eval "$ac_compile") 2>conftest.er1
5876
9992
  ac_status=$?
5877
9993
  grep -v '^ *+' conftest.er1 >conftest.err
5878
9994
  rm -f conftest.er1
5879
9995
  cat conftest.err >&5
5880
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9996
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881
9997
  (exit $ac_status); } && {
5882
9998
         test -z "$ac_c_werror_flag" ||
5883
9999
         test ! -s conftest.err
5884
10000
       } && test -s conftest.$ac_objext; then
5885
10001
  ac_hi=$ac_mid; break
5886
10002
else
5887
 
  echo "$as_me: failed program was:" >&5
 
10003
  $as_echo "$as_me: failed program was:" >&5
5888
10004
sed 's/^/| /' conftest.$ac_ext >&5
5889
10005
 
5890
10006
        ac_lo=`expr $ac_mid + 1`
5898
10014
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5899
10015
  done
5900
10016
else
5901
 
  echo "$as_me: failed program was:" >&5
 
10017
  $as_echo "$as_me: failed program was:" >&5
5902
10018
sed 's/^/| /' conftest.$ac_ext >&5
5903
10019
 
5904
10020
        cat >conftest.$ac_ext <<_ACEOF
5908
10024
cat >>conftest.$ac_ext <<_ACEOF
5909
10025
/* end confdefs.h.  */
5910
10026
$ac_includes_default
5911
 
   typedef int ac__type_sizeof_;
5912
10027
int
5913
10028
main ()
5914
10029
{
5915
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
10030
static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
5916
10031
test_array [0] = 0
5917
10032
 
5918
10033
  ;
5925
10040
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5926
10041
  *) ac_try_echo=$ac_try;;
5927
10042
esac
5928
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10043
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10044
$as_echo "$ac_try_echo") >&5
5929
10045
  (eval "$ac_compile") 2>conftest.er1
5930
10046
  ac_status=$?
5931
10047
  grep -v '^ *+' conftest.er1 >conftest.err
5932
10048
  rm -f conftest.er1
5933
10049
  cat conftest.err >&5
5934
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10050
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935
10051
  (exit $ac_status); } && {
5936
10052
         test -z "$ac_c_werror_flag" ||
5937
10053
         test ! -s conftest.err
5945
10061
cat >>conftest.$ac_ext <<_ACEOF
5946
10062
/* end confdefs.h.  */
5947
10063
$ac_includes_default
5948
 
   typedef int ac__type_sizeof_;
5949
10064
int
5950
10065
main ()
5951
10066
{
5952
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
10067
static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
5953
10068
test_array [0] = 0
5954
10069
 
5955
10070
  ;
5962
10077
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5963
10078
  *) ac_try_echo=$ac_try;;
5964
10079
esac
5965
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10080
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10081
$as_echo "$ac_try_echo") >&5
5966
10082
  (eval "$ac_compile") 2>conftest.er1
5967
10083
  ac_status=$?
5968
10084
  grep -v '^ *+' conftest.er1 >conftest.err
5969
10085
  rm -f conftest.er1
5970
10086
  cat conftest.err >&5
5971
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10087
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972
10088
  (exit $ac_status); } && {
5973
10089
         test -z "$ac_c_werror_flag" ||
5974
10090
         test ! -s conftest.err
5975
10091
       } && test -s conftest.$ac_objext; then
5976
10092
  ac_lo=$ac_mid; break
5977
10093
else
5978
 
  echo "$as_me: failed program was:" >&5
 
10094
  $as_echo "$as_me: failed program was:" >&5
5979
10095
sed 's/^/| /' conftest.$ac_ext >&5
5980
10096
 
5981
10097
        ac_hi=`expr '(' $ac_mid ')' - 1`
5989
10105
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5990
10106
  done
5991
10107
else
5992
 
  echo "$as_me: failed program was:" >&5
 
10108
  $as_echo "$as_me: failed program was:" >&5
5993
10109
sed 's/^/| /' conftest.$ac_ext >&5
5994
10110
 
5995
10111
        ac_lo= ac_hi=
6009
10125
cat >>conftest.$ac_ext <<_ACEOF
6010
10126
/* end confdefs.h.  */
6011
10127
$ac_includes_default
6012
 
   typedef int ac__type_sizeof_;
6013
10128
int
6014
10129
main ()
6015
10130
{
6016
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
10131
static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
6017
10132
test_array [0] = 0
6018
10133
 
6019
10134
  ;
6026
10141
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6027
10142
  *) ac_try_echo=$ac_try;;
6028
10143
esac
6029
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10144
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10145
$as_echo "$ac_try_echo") >&5
6030
10146
  (eval "$ac_compile") 2>conftest.er1
6031
10147
  ac_status=$?
6032
10148
  grep -v '^ *+' conftest.er1 >conftest.err
6033
10149
  rm -f conftest.er1
6034
10150
  cat conftest.err >&5
6035
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10151
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036
10152
  (exit $ac_status); } && {
6037
10153
         test -z "$ac_c_werror_flag" ||
6038
10154
         test ! -s conftest.err
6039
10155
       } && test -s conftest.$ac_objext; then
6040
10156
  ac_hi=$ac_mid
6041
10157
else
6042
 
  echo "$as_me: failed program was:" >&5
 
10158
  $as_echo "$as_me: failed program was:" >&5
6043
10159
sed 's/^/| /' conftest.$ac_ext >&5
6044
10160
 
6045
10161
        ac_lo=`expr '(' $ac_mid ')' + 1`
6050
10166
case $ac_lo in
6051
10167
?*) ac_cv_sizeof_int=$ac_lo;;
6052
10168
'') if test "$ac_cv_type_int" = yes; then
6053
 
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
 
10169
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
10170
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
10171
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6054
10172
See \`config.log' for more details." >&5
6055
 
echo "$as_me: error: cannot compute sizeof (int)
 
10173
$as_echo "$as_me: error: cannot compute sizeof (int)
6056
10174
See \`config.log' for more details." >&2;}
6057
 
   { (exit 77); exit 77; }; }
 
10175
   { (exit 77); exit 77; }; }; }
6058
10176
   else
6059
10177
     ac_cv_sizeof_int=0
6060
10178
   fi ;;
6067
10185
cat >>conftest.$ac_ext <<_ACEOF
6068
10186
/* end confdefs.h.  */
6069
10187
$ac_includes_default
6070
 
   typedef int ac__type_sizeof_;
6071
 
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6072
 
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
10188
static long int longval () { return (long int) (sizeof (int)); }
 
10189
static unsigned long int ulongval () { return (long int) (sizeof (int)); }
6073
10190
#include <stdio.h>
6074
10191
#include <stdlib.h>
6075
10192
int
6079
10196
  FILE *f = fopen ("conftest.val", "w");
6080
10197
  if (! f)
6081
10198
    return 1;
6082
 
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
10199
  if (((long int) (sizeof (int))) < 0)
6083
10200
    {
6084
10201
      long int i = longval ();
6085
 
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
10202
      if (i != ((long int) (sizeof (int))))
6086
10203
        return 1;
6087
 
      fprintf (f, "%ld\n", i);
 
10204
      fprintf (f, "%ld", i);
6088
10205
    }
6089
10206
  else
6090
10207
    {
6091
10208
      unsigned long int i = ulongval ();
6092
 
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
10209
      if (i != ((long int) (sizeof (int))))
6093
10210
        return 1;
6094
 
      fprintf (f, "%lu\n", i);
 
10211
      fprintf (f, "%lu", i);
6095
10212
    }
 
10213
  /* Do not output a trailing newline, as this causes \r\n confusion
 
10214
     on some platforms.  */
6096
10215
  return ferror (f) || fclose (f) != 0;
6097
10216
 
6098
10217
  ;
6105
10224
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6106
10225
  *) ac_try_echo=$ac_try;;
6107
10226
esac
6108
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10227
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10228
$as_echo "$ac_try_echo") >&5
6109
10229
  (eval "$ac_link") 2>&5
6110
10230
  ac_status=$?
6111
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10231
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112
10232
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6113
10233
  { (case "(($ac_try" in
6114
10234
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6115
10235
  *) ac_try_echo=$ac_try;;
6116
10236
esac
6117
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10237
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10238
$as_echo "$ac_try_echo") >&5
6118
10239
  (eval "$ac_try") 2>&5
6119
10240
  ac_status=$?
6120
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10241
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121
10242
  (exit $ac_status); }; }; then
6122
10243
  ac_cv_sizeof_int=`cat conftest.val`
6123
10244
else
6124
 
  echo "$as_me: program exited with status $ac_status" >&5
6125
 
echo "$as_me: failed program was:" >&5
 
10245
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
10246
$as_echo "$as_me: failed program was:" >&5
6126
10247
sed 's/^/| /' conftest.$ac_ext >&5
6127
10248
 
6128
10249
( exit $ac_status )
6129
10250
if test "$ac_cv_type_int" = yes; then
6130
 
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
 
10251
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
10252
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
10253
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6131
10254
See \`config.log' for more details." >&5
6132
 
echo "$as_me: error: cannot compute sizeof (int)
 
10255
$as_echo "$as_me: error: cannot compute sizeof (int)
6133
10256
See \`config.log' for more details." >&2;}
6134
 
   { (exit 77); exit 77; }; }
 
10257
   { (exit 77); exit 77; }; }; }
6135
10258
   else
6136
10259
     ac_cv_sizeof_int=0
6137
10260
   fi
6138
10261
fi
 
10262
rm -rf conftest.dSYM
6139
10263
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6140
10264
fi
6141
10265
rm -f conftest.val
6142
10266
fi
6143
 
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6144
 
echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
 
10267
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
 
10268
$as_echo "$ac_cv_sizeof_int" >&6; }
6145
10269
 
6146
10270
 
6147
10271
 
6150
10274
_ACEOF
6151
10275
 
6152
10276
 
6153
 
{ echo "$as_me:$LINENO: checking for long" >&5
6154
 
echo $ECHO_N "checking for long... $ECHO_C" >&6; }
6155
 
if test "${ac_cv_type_long+set}" = set; then
6156
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6157
 
else
6158
 
  cat >conftest.$ac_ext <<_ACEOF
6159
 
/* confdefs.h.  */
6160
 
_ACEOF
6161
 
cat confdefs.h >>conftest.$ac_ext
6162
 
cat >>conftest.$ac_ext <<_ACEOF
6163
 
/* end confdefs.h.  */
6164
 
$ac_includes_default
6165
 
typedef long ac__type_new_;
6166
 
int
6167
 
main ()
6168
 
{
6169
 
if ((ac__type_new_ *) 0)
6170
 
  return 0;
6171
 
if (sizeof (ac__type_new_))
6172
 
  return 0;
6173
 
  ;
6174
 
  return 0;
6175
 
}
6176
 
_ACEOF
6177
 
rm -f conftest.$ac_objext
6178
 
if { (ac_try="$ac_compile"
6179
 
case "(($ac_try" in
6180
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6181
 
  *) ac_try_echo=$ac_try;;
6182
 
esac
6183
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6184
 
  (eval "$ac_compile") 2>conftest.er1
6185
 
  ac_status=$?
6186
 
  grep -v '^ *+' conftest.er1 >conftest.err
6187
 
  rm -f conftest.er1
6188
 
  cat conftest.err >&5
6189
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190
 
  (exit $ac_status); } && {
6191
 
         test -z "$ac_c_werror_flag" ||
6192
 
         test ! -s conftest.err
6193
 
       } && test -s conftest.$ac_objext; then
6194
 
  ac_cv_type_long=yes
6195
 
else
6196
 
  echo "$as_me: failed program was:" >&5
6197
 
sed 's/^/| /' conftest.$ac_ext >&5
6198
 
 
6199
 
        ac_cv_type_long=no
6200
 
fi
6201
 
 
6202
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6203
 
fi
6204
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6205
 
echo "${ECHO_T}$ac_cv_type_long" >&6; }
6206
 
 
6207
10277
# The cast to long int works around a bug in the HP C Compiler
6208
10278
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6209
10279
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6210
10280
# This bug is HP SR number 8606223364.
6211
 
{ echo "$as_me:$LINENO: checking size of long" >&5
6212
 
echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
 
10281
{ $as_echo "$as_me:$LINENO: checking size of long" >&5
 
10282
$as_echo_n "checking size of long... " >&6; }
6213
10283
if test "${ac_cv_sizeof_long+set}" = set; then
6214
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10284
  $as_echo_n "(cached) " >&6
6215
10285
else
6216
10286
  if test "$cross_compiling" = yes; then
6217
10287
  # Depending upon the size, compute the lo and hi bounds.
6222
10292
cat >>conftest.$ac_ext <<_ACEOF
6223
10293
/* end confdefs.h.  */
6224
10294
$ac_includes_default
6225
 
   typedef long ac__type_sizeof_;
6226
10295
int
6227
10296
main ()
6228
10297
{
6229
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
10298
static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
6230
10299
test_array [0] = 0
6231
10300
 
6232
10301
  ;
6239
10308
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6240
10309
  *) ac_try_echo=$ac_try;;
6241
10310
esac
6242
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10311
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10312
$as_echo "$ac_try_echo") >&5
6243
10313
  (eval "$ac_compile") 2>conftest.er1
6244
10314
  ac_status=$?
6245
10315
  grep -v '^ *+' conftest.er1 >conftest.err
6246
10316
  rm -f conftest.er1
6247
10317
  cat conftest.err >&5
6248
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10318
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249
10319
  (exit $ac_status); } && {
6250
10320
         test -z "$ac_c_werror_flag" ||
6251
10321
         test ! -s conftest.err
6259
10329
cat >>conftest.$ac_ext <<_ACEOF
6260
10330
/* end confdefs.h.  */
6261
10331
$ac_includes_default
6262
 
   typedef long ac__type_sizeof_;
6263
10332
int
6264
10333
main ()
6265
10334
{
6266
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
10335
static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
6267
10336
test_array [0] = 0
6268
10337
 
6269
10338
  ;
6276
10345
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6277
10346
  *) ac_try_echo=$ac_try;;
6278
10347
esac
6279
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10348
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10349
$as_echo "$ac_try_echo") >&5
6280
10350
  (eval "$ac_compile") 2>conftest.er1
6281
10351
  ac_status=$?
6282
10352
  grep -v '^ *+' conftest.er1 >conftest.err
6283
10353
  rm -f conftest.er1
6284
10354
  cat conftest.err >&5
6285
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10355
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286
10356
  (exit $ac_status); } && {
6287
10357
         test -z "$ac_c_werror_flag" ||
6288
10358
         test ! -s conftest.err
6289
10359
       } && test -s conftest.$ac_objext; then
6290
10360
  ac_hi=$ac_mid; break
6291
10361
else
6292
 
  echo "$as_me: failed program was:" >&5
 
10362
  $as_echo "$as_me: failed program was:" >&5
6293
10363
sed 's/^/| /' conftest.$ac_ext >&5
6294
10364
 
6295
10365
        ac_lo=`expr $ac_mid + 1`
6303
10373
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6304
10374
  done
6305
10375
else
6306
 
  echo "$as_me: failed program was:" >&5
 
10376
  $as_echo "$as_me: failed program was:" >&5
6307
10377
sed 's/^/| /' conftest.$ac_ext >&5
6308
10378
 
6309
10379
        cat >conftest.$ac_ext <<_ACEOF
6313
10383
cat >>conftest.$ac_ext <<_ACEOF
6314
10384
/* end confdefs.h.  */
6315
10385
$ac_includes_default
6316
 
   typedef long ac__type_sizeof_;
6317
10386
int
6318
10387
main ()
6319
10388
{
6320
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
10389
static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
6321
10390
test_array [0] = 0
6322
10391
 
6323
10392
  ;
6330
10399
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6331
10400
  *) ac_try_echo=$ac_try;;
6332
10401
esac
6333
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10402
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10403
$as_echo "$ac_try_echo") >&5
6334
10404
  (eval "$ac_compile") 2>conftest.er1
6335
10405
  ac_status=$?
6336
10406
  grep -v '^ *+' conftest.er1 >conftest.err
6337
10407
  rm -f conftest.er1
6338
10408
  cat conftest.err >&5
6339
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10409
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340
10410
  (exit $ac_status); } && {
6341
10411
         test -z "$ac_c_werror_flag" ||
6342
10412
         test ! -s conftest.err
6350
10420
cat >>conftest.$ac_ext <<_ACEOF
6351
10421
/* end confdefs.h.  */
6352
10422
$ac_includes_default
6353
 
   typedef long ac__type_sizeof_;
6354
10423
int
6355
10424
main ()
6356
10425
{
6357
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
10426
static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
6358
10427
test_array [0] = 0
6359
10428
 
6360
10429
  ;
6367
10436
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6368
10437
  *) ac_try_echo=$ac_try;;
6369
10438
esac
6370
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10439
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10440
$as_echo "$ac_try_echo") >&5
6371
10441
  (eval "$ac_compile") 2>conftest.er1
6372
10442
  ac_status=$?
6373
10443
  grep -v '^ *+' conftest.er1 >conftest.err
6374
10444
  rm -f conftest.er1
6375
10445
  cat conftest.err >&5
6376
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10446
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377
10447
  (exit $ac_status); } && {
6378
10448
         test -z "$ac_c_werror_flag" ||
6379
10449
         test ! -s conftest.err
6380
10450
       } && test -s conftest.$ac_objext; then
6381
10451
  ac_lo=$ac_mid; break
6382
10452
else
6383
 
  echo "$as_me: failed program was:" >&5
 
10453
  $as_echo "$as_me: failed program was:" >&5
6384
10454
sed 's/^/| /' conftest.$ac_ext >&5
6385
10455
 
6386
10456
        ac_hi=`expr '(' $ac_mid ')' - 1`
6394
10464
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6395
10465
  done
6396
10466
else
6397
 
  echo "$as_me: failed program was:" >&5
 
10467
  $as_echo "$as_me: failed program was:" >&5
6398
10468
sed 's/^/| /' conftest.$ac_ext >&5
6399
10469
 
6400
10470
        ac_lo= ac_hi=
6414
10484
cat >>conftest.$ac_ext <<_ACEOF
6415
10485
/* end confdefs.h.  */
6416
10486
$ac_includes_default
6417
 
   typedef long ac__type_sizeof_;
6418
10487
int
6419
10488
main ()
6420
10489
{
6421
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
10490
static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
6422
10491
test_array [0] = 0
6423
10492
 
6424
10493
  ;
6431
10500
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6432
10501
  *) ac_try_echo=$ac_try;;
6433
10502
esac
6434
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10503
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10504
$as_echo "$ac_try_echo") >&5
6435
10505
  (eval "$ac_compile") 2>conftest.er1
6436
10506
  ac_status=$?
6437
10507
  grep -v '^ *+' conftest.er1 >conftest.err
6438
10508
  rm -f conftest.er1
6439
10509
  cat conftest.err >&5
6440
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10510
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441
10511
  (exit $ac_status); } && {
6442
10512
         test -z "$ac_c_werror_flag" ||
6443
10513
         test ! -s conftest.err
6444
10514
       } && test -s conftest.$ac_objext; then
6445
10515
  ac_hi=$ac_mid
6446
10516
else
6447
 
  echo "$as_me: failed program was:" >&5
 
10517
  $as_echo "$as_me: failed program was:" >&5
6448
10518
sed 's/^/| /' conftest.$ac_ext >&5
6449
10519
 
6450
10520
        ac_lo=`expr '(' $ac_mid ')' + 1`
6455
10525
case $ac_lo in
6456
10526
?*) ac_cv_sizeof_long=$ac_lo;;
6457
10527
'') if test "$ac_cv_type_long" = yes; then
6458
 
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
 
10528
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
10529
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
10530
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6459
10531
See \`config.log' for more details." >&5
6460
 
echo "$as_me: error: cannot compute sizeof (long)
 
10532
$as_echo "$as_me: error: cannot compute sizeof (long)
6461
10533
See \`config.log' for more details." >&2;}
6462
 
   { (exit 77); exit 77; }; }
 
10534
   { (exit 77); exit 77; }; }; }
6463
10535
   else
6464
10536
     ac_cv_sizeof_long=0
6465
10537
   fi ;;
6472
10544
cat >>conftest.$ac_ext <<_ACEOF
6473
10545
/* end confdefs.h.  */
6474
10546
$ac_includes_default
6475
 
   typedef long ac__type_sizeof_;
6476
 
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6477
 
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
10547
static long int longval () { return (long int) (sizeof (long)); }
 
10548
static unsigned long int ulongval () { return (long int) (sizeof (long)); }
6478
10549
#include <stdio.h>
6479
10550
#include <stdlib.h>
6480
10551
int
6484
10555
  FILE *f = fopen ("conftest.val", "w");
6485
10556
  if (! f)
6486
10557
    return 1;
6487
 
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
10558
  if (((long int) (sizeof (long))) < 0)
6488
10559
    {
6489
10560
      long int i = longval ();
6490
 
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
10561
      if (i != ((long int) (sizeof (long))))
6491
10562
        return 1;
6492
 
      fprintf (f, "%ld\n", i);
 
10563
      fprintf (f, "%ld", i);
6493
10564
    }
6494
10565
  else
6495
10566
    {
6496
10567
      unsigned long int i = ulongval ();
6497
 
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
10568
      if (i != ((long int) (sizeof (long))))
6498
10569
        return 1;
6499
 
      fprintf (f, "%lu\n", i);
 
10570
      fprintf (f, "%lu", i);
6500
10571
    }
 
10572
  /* Do not output a trailing newline, as this causes \r\n confusion
 
10573
     on some platforms.  */
6501
10574
  return ferror (f) || fclose (f) != 0;
6502
10575
 
6503
10576
  ;
6510
10583
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6511
10584
  *) ac_try_echo=$ac_try;;
6512
10585
esac
6513
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10586
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10587
$as_echo "$ac_try_echo") >&5
6514
10588
  (eval "$ac_link") 2>&5
6515
10589
  ac_status=$?
6516
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10590
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517
10591
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6518
10592
  { (case "(($ac_try" in
6519
10593
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6520
10594
  *) ac_try_echo=$ac_try;;
6521
10595
esac
6522
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10596
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10597
$as_echo "$ac_try_echo") >&5
6523
10598
  (eval "$ac_try") 2>&5
6524
10599
  ac_status=$?
6525
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10600
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526
10601
  (exit $ac_status); }; }; then
6527
10602
  ac_cv_sizeof_long=`cat conftest.val`
6528
10603
else
6529
 
  echo "$as_me: program exited with status $ac_status" >&5
6530
 
echo "$as_me: failed program was:" >&5
 
10604
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
10605
$as_echo "$as_me: failed program was:" >&5
6531
10606
sed 's/^/| /' conftest.$ac_ext >&5
6532
10607
 
6533
10608
( exit $ac_status )
6534
10609
if test "$ac_cv_type_long" = yes; then
6535
 
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
 
10610
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
10611
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
10612
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6536
10613
See \`config.log' for more details." >&5
6537
 
echo "$as_me: error: cannot compute sizeof (long)
 
10614
$as_echo "$as_me: error: cannot compute sizeof (long)
6538
10615
See \`config.log' for more details." >&2;}
6539
 
   { (exit 77); exit 77; }; }
 
10616
   { (exit 77); exit 77; }; }; }
6540
10617
   else
6541
10618
     ac_cv_sizeof_long=0
6542
10619
   fi
6543
10620
fi
 
10621
rm -rf conftest.dSYM
6544
10622
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6545
10623
fi
6546
10624
rm -f conftest.val
6547
10625
fi
6548
 
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6549
 
echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
 
10626
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
 
10627
$as_echo "$ac_cv_sizeof_long" >&6; }
6550
10628
 
6551
10629
 
6552
10630
 
6555
10633
_ACEOF
6556
10634
 
6557
10635
 
6558
 
{ echo "$as_me:$LINENO: checking for long long" >&5
6559
 
echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
6560
 
if test "${ac_cv_type_long_long+set}" = set; then
6561
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6562
 
else
6563
 
  cat >conftest.$ac_ext <<_ACEOF
6564
 
/* confdefs.h.  */
6565
 
_ACEOF
6566
 
cat confdefs.h >>conftest.$ac_ext
6567
 
cat >>conftest.$ac_ext <<_ACEOF
6568
 
/* end confdefs.h.  */
6569
 
$ac_includes_default
6570
 
typedef long long ac__type_new_;
6571
 
int
6572
 
main ()
6573
 
{
6574
 
if ((ac__type_new_ *) 0)
6575
 
  return 0;
6576
 
if (sizeof (ac__type_new_))
6577
 
  return 0;
6578
 
  ;
6579
 
  return 0;
6580
 
}
6581
 
_ACEOF
6582
 
rm -f conftest.$ac_objext
6583
 
if { (ac_try="$ac_compile"
6584
 
case "(($ac_try" in
6585
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6586
 
  *) ac_try_echo=$ac_try;;
6587
 
esac
6588
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6589
 
  (eval "$ac_compile") 2>conftest.er1
6590
 
  ac_status=$?
6591
 
  grep -v '^ *+' conftest.er1 >conftest.err
6592
 
  rm -f conftest.er1
6593
 
  cat conftest.err >&5
6594
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595
 
  (exit $ac_status); } && {
6596
 
         test -z "$ac_c_werror_flag" ||
6597
 
         test ! -s conftest.err
6598
 
       } && test -s conftest.$ac_objext; then
6599
 
  ac_cv_type_long_long=yes
6600
 
else
6601
 
  echo "$as_me: failed program was:" >&5
6602
 
sed 's/^/| /' conftest.$ac_ext >&5
6603
 
 
6604
 
        ac_cv_type_long_long=no
6605
 
fi
6606
 
 
6607
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6608
 
fi
6609
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6610
 
echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
6611
 
 
6612
10636
# The cast to long int works around a bug in the HP C Compiler
6613
10637
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6614
10638
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6615
10639
# This bug is HP SR number 8606223364.
6616
 
{ echo "$as_me:$LINENO: checking size of long long" >&5
6617
 
echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
 
10640
{ $as_echo "$as_me:$LINENO: checking size of long long" >&5
 
10641
$as_echo_n "checking size of long long... " >&6; }
6618
10642
if test "${ac_cv_sizeof_long_long+set}" = set; then
6619
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10643
  $as_echo_n "(cached) " >&6
6620
10644
else
6621
10645
  if test "$cross_compiling" = yes; then
6622
10646
  # Depending upon the size, compute the lo and hi bounds.
6627
10651
cat >>conftest.$ac_ext <<_ACEOF
6628
10652
/* end confdefs.h.  */
6629
10653
$ac_includes_default
6630
 
   typedef long long ac__type_sizeof_;
6631
10654
int
6632
10655
main ()
6633
10656
{
6634
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
10657
static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
6635
10658
test_array [0] = 0
6636
10659
 
6637
10660
  ;
6644
10667
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6645
10668
  *) ac_try_echo=$ac_try;;
6646
10669
esac
6647
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10670
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10671
$as_echo "$ac_try_echo") >&5
6648
10672
  (eval "$ac_compile") 2>conftest.er1
6649
10673
  ac_status=$?
6650
10674
  grep -v '^ *+' conftest.er1 >conftest.err
6651
10675
  rm -f conftest.er1
6652
10676
  cat conftest.err >&5
6653
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10677
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654
10678
  (exit $ac_status); } && {
6655
10679
         test -z "$ac_c_werror_flag" ||
6656
10680
         test ! -s conftest.err
6664
10688
cat >>conftest.$ac_ext <<_ACEOF
6665
10689
/* end confdefs.h.  */
6666
10690
$ac_includes_default
6667
 
   typedef long long ac__type_sizeof_;
6668
10691
int
6669
10692
main ()
6670
10693
{
6671
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
10694
static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
6672
10695
test_array [0] = 0
6673
10696
 
6674
10697
  ;
6681
10704
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6682
10705
  *) ac_try_echo=$ac_try;;
6683
10706
esac
6684
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10707
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10708
$as_echo "$ac_try_echo") >&5
6685
10709
  (eval "$ac_compile") 2>conftest.er1
6686
10710
  ac_status=$?
6687
10711
  grep -v '^ *+' conftest.er1 >conftest.err
6688
10712
  rm -f conftest.er1
6689
10713
  cat conftest.err >&5
6690
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10714
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691
10715
  (exit $ac_status); } && {
6692
10716
         test -z "$ac_c_werror_flag" ||
6693
10717
         test ! -s conftest.err
6694
10718
       } && test -s conftest.$ac_objext; then
6695
10719
  ac_hi=$ac_mid; break
6696
10720
else
6697
 
  echo "$as_me: failed program was:" >&5
 
10721
  $as_echo "$as_me: failed program was:" >&5
6698
10722
sed 's/^/| /' conftest.$ac_ext >&5
6699
10723
 
6700
10724
        ac_lo=`expr $ac_mid + 1`
6708
10732
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6709
10733
  done
6710
10734
else
6711
 
  echo "$as_me: failed program was:" >&5
 
10735
  $as_echo "$as_me: failed program was:" >&5
6712
10736
sed 's/^/| /' conftest.$ac_ext >&5
6713
10737
 
6714
10738
        cat >conftest.$ac_ext <<_ACEOF
6718
10742
cat >>conftest.$ac_ext <<_ACEOF
6719
10743
/* end confdefs.h.  */
6720
10744
$ac_includes_default
6721
 
   typedef long long ac__type_sizeof_;
6722
10745
int
6723
10746
main ()
6724
10747
{
6725
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
10748
static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
6726
10749
test_array [0] = 0
6727
10750
 
6728
10751
  ;
6735
10758
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6736
10759
  *) ac_try_echo=$ac_try;;
6737
10760
esac
6738
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10761
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10762
$as_echo "$ac_try_echo") >&5
6739
10763
  (eval "$ac_compile") 2>conftest.er1
6740
10764
  ac_status=$?
6741
10765
  grep -v '^ *+' conftest.er1 >conftest.err
6742
10766
  rm -f conftest.er1
6743
10767
  cat conftest.err >&5
6744
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10768
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745
10769
  (exit $ac_status); } && {
6746
10770
         test -z "$ac_c_werror_flag" ||
6747
10771
         test ! -s conftest.err
6755
10779
cat >>conftest.$ac_ext <<_ACEOF
6756
10780
/* end confdefs.h.  */
6757
10781
$ac_includes_default
6758
 
   typedef long long ac__type_sizeof_;
6759
10782
int
6760
10783
main ()
6761
10784
{
6762
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
10785
static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
6763
10786
test_array [0] = 0
6764
10787
 
6765
10788
  ;
6772
10795
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6773
10796
  *) ac_try_echo=$ac_try;;
6774
10797
esac
6775
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10798
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10799
$as_echo "$ac_try_echo") >&5
6776
10800
  (eval "$ac_compile") 2>conftest.er1
6777
10801
  ac_status=$?
6778
10802
  grep -v '^ *+' conftest.er1 >conftest.err
6779
10803
  rm -f conftest.er1
6780
10804
  cat conftest.err >&5
6781
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10805
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782
10806
  (exit $ac_status); } && {
6783
10807
         test -z "$ac_c_werror_flag" ||
6784
10808
         test ! -s conftest.err
6785
10809
       } && test -s conftest.$ac_objext; then
6786
10810
  ac_lo=$ac_mid; break
6787
10811
else
6788
 
  echo "$as_me: failed program was:" >&5
 
10812
  $as_echo "$as_me: failed program was:" >&5
6789
10813
sed 's/^/| /' conftest.$ac_ext >&5
6790
10814
 
6791
10815
        ac_hi=`expr '(' $ac_mid ')' - 1`
6799
10823
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6800
10824
  done
6801
10825
else
6802
 
  echo "$as_me: failed program was:" >&5
 
10826
  $as_echo "$as_me: failed program was:" >&5
6803
10827
sed 's/^/| /' conftest.$ac_ext >&5
6804
10828
 
6805
10829
        ac_lo= ac_hi=
6819
10843
cat >>conftest.$ac_ext <<_ACEOF
6820
10844
/* end confdefs.h.  */
6821
10845
$ac_includes_default
6822
 
   typedef long long ac__type_sizeof_;
6823
10846
int
6824
10847
main ()
6825
10848
{
6826
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
10849
static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
6827
10850
test_array [0] = 0
6828
10851
 
6829
10852
  ;
6836
10859
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6837
10860
  *) ac_try_echo=$ac_try;;
6838
10861
esac
6839
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10862
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10863
$as_echo "$ac_try_echo") >&5
6840
10864
  (eval "$ac_compile") 2>conftest.er1
6841
10865
  ac_status=$?
6842
10866
  grep -v '^ *+' conftest.er1 >conftest.err
6843
10867
  rm -f conftest.er1
6844
10868
  cat conftest.err >&5
6845
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10869
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846
10870
  (exit $ac_status); } && {
6847
10871
         test -z "$ac_c_werror_flag" ||
6848
10872
         test ! -s conftest.err
6849
10873
       } && test -s conftest.$ac_objext; then
6850
10874
  ac_hi=$ac_mid
6851
10875
else
6852
 
  echo "$as_me: failed program was:" >&5
 
10876
  $as_echo "$as_me: failed program was:" >&5
6853
10877
sed 's/^/| /' conftest.$ac_ext >&5
6854
10878
 
6855
10879
        ac_lo=`expr '(' $ac_mid ')' + 1`
6860
10884
case $ac_lo in
6861
10885
?*) ac_cv_sizeof_long_long=$ac_lo;;
6862
10886
'') if test "$ac_cv_type_long_long" = yes; then
6863
 
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
 
10887
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
10888
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
10889
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
6864
10890
See \`config.log' for more details." >&5
6865
 
echo "$as_me: error: cannot compute sizeof (long long)
 
10891
$as_echo "$as_me: error: cannot compute sizeof (long long)
6866
10892
See \`config.log' for more details." >&2;}
6867
 
   { (exit 77); exit 77; }; }
 
10893
   { (exit 77); exit 77; }; }; }
6868
10894
   else
6869
10895
     ac_cv_sizeof_long_long=0
6870
10896
   fi ;;
6877
10903
cat >>conftest.$ac_ext <<_ACEOF
6878
10904
/* end confdefs.h.  */
6879
10905
$ac_includes_default
6880
 
   typedef long long ac__type_sizeof_;
6881
 
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6882
 
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
10906
static long int longval () { return (long int) (sizeof (long long)); }
 
10907
static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
6883
10908
#include <stdio.h>
6884
10909
#include <stdlib.h>
6885
10910
int
6889
10914
  FILE *f = fopen ("conftest.val", "w");
6890
10915
  if (! f)
6891
10916
    return 1;
6892
 
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
10917
  if (((long int) (sizeof (long long))) < 0)
6893
10918
    {
6894
10919
      long int i = longval ();
6895
 
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
10920
      if (i != ((long int) (sizeof (long long))))
6896
10921
        return 1;
6897
 
      fprintf (f, "%ld\n", i);
 
10922
      fprintf (f, "%ld", i);
6898
10923
    }
6899
10924
  else
6900
10925
    {
6901
10926
      unsigned long int i = ulongval ();
6902
 
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
10927
      if (i != ((long int) (sizeof (long long))))
6903
10928
        return 1;
6904
 
      fprintf (f, "%lu\n", i);
 
10929
      fprintf (f, "%lu", i);
6905
10930
    }
 
10931
  /* Do not output a trailing newline, as this causes \r\n confusion
 
10932
     on some platforms.  */
6906
10933
  return ferror (f) || fclose (f) != 0;
6907
10934
 
6908
10935
  ;
6915
10942
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6916
10943
  *) ac_try_echo=$ac_try;;
6917
10944
esac
6918
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10945
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10946
$as_echo "$ac_try_echo") >&5
6919
10947
  (eval "$ac_link") 2>&5
6920
10948
  ac_status=$?
6921
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10949
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922
10950
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6923
10951
  { (case "(($ac_try" in
6924
10952
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6925
10953
  *) ac_try_echo=$ac_try;;
6926
10954
esac
6927
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10955
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10956
$as_echo "$ac_try_echo") >&5
6928
10957
  (eval "$ac_try") 2>&5
6929
10958
  ac_status=$?
6930
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10959
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931
10960
  (exit $ac_status); }; }; then
6932
10961
  ac_cv_sizeof_long_long=`cat conftest.val`
6933
10962
else
6934
 
  echo "$as_me: program exited with status $ac_status" >&5
6935
 
echo "$as_me: failed program was:" >&5
 
10963
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
10964
$as_echo "$as_me: failed program was:" >&5
6936
10965
sed 's/^/| /' conftest.$ac_ext >&5
6937
10966
 
6938
10967
( exit $ac_status )
6939
10968
if test "$ac_cv_type_long_long" = yes; then
6940
 
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
 
10969
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
10970
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
10971
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
6941
10972
See \`config.log' for more details." >&5
6942
 
echo "$as_me: error: cannot compute sizeof (long long)
 
10973
$as_echo "$as_me: error: cannot compute sizeof (long long)
6943
10974
See \`config.log' for more details." >&2;}
6944
 
   { (exit 77); exit 77; }; }
 
10975
   { (exit 77); exit 77; }; }; }
6945
10976
   else
6946
10977
     ac_cv_sizeof_long_long=0
6947
10978
   fi
6948
10979
fi
 
10980
rm -rf conftest.dSYM
6949
10981
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6950
10982
fi
6951
10983
rm -f conftest.val
6952
10984
fi
6953
 
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6954
 
echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
 
10985
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
 
10986
$as_echo "$ac_cv_sizeof_long_long" >&6; }
6955
10987
 
6956
10988
 
6957
10989
 
6960
10992
_ACEOF
6961
10993
 
6962
10994
 
6963
 
{ echo "$as_me:$LINENO: checking for void *" >&5
6964
 
echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
6965
 
if test "${ac_cv_type_void_p+set}" = set; then
6966
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6967
 
else
6968
 
  cat >conftest.$ac_ext <<_ACEOF
6969
 
/* confdefs.h.  */
6970
 
_ACEOF
6971
 
cat confdefs.h >>conftest.$ac_ext
6972
 
cat >>conftest.$ac_ext <<_ACEOF
6973
 
/* end confdefs.h.  */
6974
 
$ac_includes_default
6975
 
typedef void * ac__type_new_;
6976
 
int
6977
 
main ()
6978
 
{
6979
 
if ((ac__type_new_ *) 0)
6980
 
  return 0;
6981
 
if (sizeof (ac__type_new_))
6982
 
  return 0;
6983
 
  ;
6984
 
  return 0;
6985
 
}
6986
 
_ACEOF
6987
 
rm -f conftest.$ac_objext
6988
 
if { (ac_try="$ac_compile"
6989
 
case "(($ac_try" in
6990
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6991
 
  *) ac_try_echo=$ac_try;;
6992
 
esac
6993
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6994
 
  (eval "$ac_compile") 2>conftest.er1
6995
 
  ac_status=$?
6996
 
  grep -v '^ *+' conftest.er1 >conftest.err
6997
 
  rm -f conftest.er1
6998
 
  cat conftest.err >&5
6999
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000
 
  (exit $ac_status); } && {
7001
 
         test -z "$ac_c_werror_flag" ||
7002
 
         test ! -s conftest.err
7003
 
       } && test -s conftest.$ac_objext; then
7004
 
  ac_cv_type_void_p=yes
7005
 
else
7006
 
  echo "$as_me: failed program was:" >&5
7007
 
sed 's/^/| /' conftest.$ac_ext >&5
7008
 
 
7009
 
        ac_cv_type_void_p=no
7010
 
fi
7011
 
 
7012
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7013
 
fi
7014
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7015
 
echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
7016
 
 
7017
10995
# The cast to long int works around a bug in the HP C Compiler
7018
10996
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7019
10997
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7020
10998
# This bug is HP SR number 8606223364.
7021
 
{ echo "$as_me:$LINENO: checking size of void *" >&5
7022
 
echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
 
10999
{ $as_echo "$as_me:$LINENO: checking size of void *" >&5
 
11000
$as_echo_n "checking size of void *... " >&6; }
7023
11001
if test "${ac_cv_sizeof_void_p+set}" = set; then
7024
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11002
  $as_echo_n "(cached) " >&6
7025
11003
else
7026
11004
  if test "$cross_compiling" = yes; then
7027
11005
  # Depending upon the size, compute the lo and hi bounds.
7032
11010
cat >>conftest.$ac_ext <<_ACEOF
7033
11011
/* end confdefs.h.  */
7034
11012
$ac_includes_default
7035
 
   typedef void * ac__type_sizeof_;
7036
11013
int
7037
11014
main ()
7038
11015
{
7039
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
11016
static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
7040
11017
test_array [0] = 0
7041
11018
 
7042
11019
  ;
7049
11026
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7050
11027
  *) ac_try_echo=$ac_try;;
7051
11028
esac
7052
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11029
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11030
$as_echo "$ac_try_echo") >&5
7053
11031
  (eval "$ac_compile") 2>conftest.er1
7054
11032
  ac_status=$?
7055
11033
  grep -v '^ *+' conftest.er1 >conftest.err
7056
11034
  rm -f conftest.er1
7057
11035
  cat conftest.err >&5
7058
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11036
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059
11037
  (exit $ac_status); } && {
7060
11038
         test -z "$ac_c_werror_flag" ||
7061
11039
         test ! -s conftest.err
7069
11047
cat >>conftest.$ac_ext <<_ACEOF
7070
11048
/* end confdefs.h.  */
7071
11049
$ac_includes_default
7072
 
   typedef void * ac__type_sizeof_;
7073
11050
int
7074
11051
main ()
7075
11052
{
7076
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
11053
static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
7077
11054
test_array [0] = 0
7078
11055
 
7079
11056
  ;
7086
11063
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7087
11064
  *) ac_try_echo=$ac_try;;
7088
11065
esac
7089
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11066
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11067
$as_echo "$ac_try_echo") >&5
7090
11068
  (eval "$ac_compile") 2>conftest.er1
7091
11069
  ac_status=$?
7092
11070
  grep -v '^ *+' conftest.er1 >conftest.err
7093
11071
  rm -f conftest.er1
7094
11072
  cat conftest.err >&5
7095
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11073
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096
11074
  (exit $ac_status); } && {
7097
11075
         test -z "$ac_c_werror_flag" ||
7098
11076
         test ! -s conftest.err
7099
11077
       } && test -s conftest.$ac_objext; then
7100
11078
  ac_hi=$ac_mid; break
7101
11079
else
7102
 
  echo "$as_me: failed program was:" >&5
 
11080
  $as_echo "$as_me: failed program was:" >&5
7103
11081
sed 's/^/| /' conftest.$ac_ext >&5
7104
11082
 
7105
11083
        ac_lo=`expr $ac_mid + 1`
7113
11091
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7114
11092
  done
7115
11093
else
7116
 
  echo "$as_me: failed program was:" >&5
 
11094
  $as_echo "$as_me: failed program was:" >&5
7117
11095
sed 's/^/| /' conftest.$ac_ext >&5
7118
11096
 
7119
11097
        cat >conftest.$ac_ext <<_ACEOF
7123
11101
cat >>conftest.$ac_ext <<_ACEOF
7124
11102
/* end confdefs.h.  */
7125
11103
$ac_includes_default
7126
 
   typedef void * ac__type_sizeof_;
7127
11104
int
7128
11105
main ()
7129
11106
{
7130
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
11107
static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
7131
11108
test_array [0] = 0
7132
11109
 
7133
11110
  ;
7140
11117
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7141
11118
  *) ac_try_echo=$ac_try;;
7142
11119
esac
7143
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11120
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11121
$as_echo "$ac_try_echo") >&5
7144
11122
  (eval "$ac_compile") 2>conftest.er1
7145
11123
  ac_status=$?
7146
11124
  grep -v '^ *+' conftest.er1 >conftest.err
7147
11125
  rm -f conftest.er1
7148
11126
  cat conftest.err >&5
7149
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11127
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150
11128
  (exit $ac_status); } && {
7151
11129
         test -z "$ac_c_werror_flag" ||
7152
11130
         test ! -s conftest.err
7160
11138
cat >>conftest.$ac_ext <<_ACEOF
7161
11139
/* end confdefs.h.  */
7162
11140
$ac_includes_default
7163
 
   typedef void * ac__type_sizeof_;
7164
11141
int
7165
11142
main ()
7166
11143
{
7167
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
11144
static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
7168
11145
test_array [0] = 0
7169
11146
 
7170
11147
  ;
7177
11154
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7178
11155
  *) ac_try_echo=$ac_try;;
7179
11156
esac
7180
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11157
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11158
$as_echo "$ac_try_echo") >&5
7181
11159
  (eval "$ac_compile") 2>conftest.er1
7182
11160
  ac_status=$?
7183
11161
  grep -v '^ *+' conftest.er1 >conftest.err
7184
11162
  rm -f conftest.er1
7185
11163
  cat conftest.err >&5
7186
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11164
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187
11165
  (exit $ac_status); } && {
7188
11166
         test -z "$ac_c_werror_flag" ||
7189
11167
         test ! -s conftest.err
7190
11168
       } && test -s conftest.$ac_objext; then
7191
11169
  ac_lo=$ac_mid; break
7192
11170
else
7193
 
  echo "$as_me: failed program was:" >&5
 
11171
  $as_echo "$as_me: failed program was:" >&5
7194
11172
sed 's/^/| /' conftest.$ac_ext >&5
7195
11173
 
7196
11174
        ac_hi=`expr '(' $ac_mid ')' - 1`
7204
11182
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7205
11183
  done
7206
11184
else
7207
 
  echo "$as_me: failed program was:" >&5
 
11185
  $as_echo "$as_me: failed program was:" >&5
7208
11186
sed 's/^/| /' conftest.$ac_ext >&5
7209
11187
 
7210
11188
        ac_lo= ac_hi=
7224
11202
cat >>conftest.$ac_ext <<_ACEOF
7225
11203
/* end confdefs.h.  */
7226
11204
$ac_includes_default
7227
 
   typedef void * ac__type_sizeof_;
7228
11205
int
7229
11206
main ()
7230
11207
{
7231
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
11208
static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
7232
11209
test_array [0] = 0
7233
11210
 
7234
11211
  ;
7241
11218
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7242
11219
  *) ac_try_echo=$ac_try;;
7243
11220
esac
7244
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11221
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11222
$as_echo "$ac_try_echo") >&5
7245
11223
  (eval "$ac_compile") 2>conftest.er1
7246
11224
  ac_status=$?
7247
11225
  grep -v '^ *+' conftest.er1 >conftest.err
7248
11226
  rm -f conftest.er1
7249
11227
  cat conftest.err >&5
7250
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11228
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251
11229
  (exit $ac_status); } && {
7252
11230
         test -z "$ac_c_werror_flag" ||
7253
11231
         test ! -s conftest.err
7254
11232
       } && test -s conftest.$ac_objext; then
7255
11233
  ac_hi=$ac_mid
7256
11234
else
7257
 
  echo "$as_me: failed program was:" >&5
 
11235
  $as_echo "$as_me: failed program was:" >&5
7258
11236
sed 's/^/| /' conftest.$ac_ext >&5
7259
11237
 
7260
11238
        ac_lo=`expr '(' $ac_mid ')' + 1`
7265
11243
case $ac_lo in
7266
11244
?*) ac_cv_sizeof_void_p=$ac_lo;;
7267
11245
'') if test "$ac_cv_type_void_p" = yes; then
7268
 
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
 
11246
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
11247
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
11248
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
7269
11249
See \`config.log' for more details." >&5
7270
 
echo "$as_me: error: cannot compute sizeof (void *)
 
11250
$as_echo "$as_me: error: cannot compute sizeof (void *)
7271
11251
See \`config.log' for more details." >&2;}
7272
 
   { (exit 77); exit 77; }; }
 
11252
   { (exit 77); exit 77; }; }; }
7273
11253
   else
7274
11254
     ac_cv_sizeof_void_p=0
7275
11255
   fi ;;
7282
11262
cat >>conftest.$ac_ext <<_ACEOF
7283
11263
/* end confdefs.h.  */
7284
11264
$ac_includes_default
7285
 
   typedef void * ac__type_sizeof_;
7286
 
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7287
 
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
11265
static long int longval () { return (long int) (sizeof (void *)); }
 
11266
static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
7288
11267
#include <stdio.h>
7289
11268
#include <stdlib.h>
7290
11269
int
7294
11273
  FILE *f = fopen ("conftest.val", "w");
7295
11274
  if (! f)
7296
11275
    return 1;
7297
 
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
11276
  if (((long int) (sizeof (void *))) < 0)
7298
11277
    {
7299
11278
      long int i = longval ();
7300
 
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
11279
      if (i != ((long int) (sizeof (void *))))
7301
11280
        return 1;
7302
 
      fprintf (f, "%ld\n", i);
 
11281
      fprintf (f, "%ld", i);
7303
11282
    }
7304
11283
  else
7305
11284
    {
7306
11285
      unsigned long int i = ulongval ();
7307
 
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
11286
      if (i != ((long int) (sizeof (void *))))
7308
11287
        return 1;
7309
 
      fprintf (f, "%lu\n", i);
 
11288
      fprintf (f, "%lu", i);
7310
11289
    }
 
11290
  /* Do not output a trailing newline, as this causes \r\n confusion
 
11291
     on some platforms.  */
7311
11292
  return ferror (f) || fclose (f) != 0;
7312
11293
 
7313
11294
  ;
7320
11301
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7321
11302
  *) ac_try_echo=$ac_try;;
7322
11303
esac
7323
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11304
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11305
$as_echo "$ac_try_echo") >&5
7324
11306
  (eval "$ac_link") 2>&5
7325
11307
  ac_status=$?
7326
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11308
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327
11309
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7328
11310
  { (case "(($ac_try" in
7329
11311
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7330
11312
  *) ac_try_echo=$ac_try;;
7331
11313
esac
7332
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11314
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11315
$as_echo "$ac_try_echo") >&5
7333
11316
  (eval "$ac_try") 2>&5
7334
11317
  ac_status=$?
7335
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11318
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336
11319
  (exit $ac_status); }; }; then
7337
11320
  ac_cv_sizeof_void_p=`cat conftest.val`
7338
11321
else
7339
 
  echo "$as_me: program exited with status $ac_status" >&5
7340
 
echo "$as_me: failed program was:" >&5
 
11322
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
11323
$as_echo "$as_me: failed program was:" >&5
7341
11324
sed 's/^/| /' conftest.$ac_ext >&5
7342
11325
 
7343
11326
( exit $ac_status )
7344
11327
if test "$ac_cv_type_void_p" = yes; then
7345
 
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
 
11328
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
11329
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
11330
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
7346
11331
See \`config.log' for more details." >&5
7347
 
echo "$as_me: error: cannot compute sizeof (void *)
 
11332
$as_echo "$as_me: error: cannot compute sizeof (void *)
7348
11333
See \`config.log' for more details." >&2;}
7349
 
   { (exit 77); exit 77; }; }
 
11334
   { (exit 77); exit 77; }; }; }
7350
11335
   else
7351
11336
     ac_cv_sizeof_void_p=0
7352
11337
   fi
7353
11338
fi
 
11339
rm -rf conftest.dSYM
7354
11340
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7355
11341
fi
7356
11342
rm -f conftest.val
7357
11343
fi
7358
 
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7359
 
echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
 
11344
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
 
11345
$as_echo "$ac_cv_sizeof_void_p" >&6; }
7360
11346
 
7361
11347
 
7362
11348
 
7366
11352
 
7367
11353
 
7368
11354
 
7369
 
{ echo "$as_me:$LINENO: checking for size_t" >&5
7370
 
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
 
11355
{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
 
11356
$as_echo_n "checking for size_t... " >&6; }
7371
11357
if test "${ac_cv_type_size_t+set}" = set; then
7372
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11358
  $as_echo_n "(cached) " >&6
7373
11359
else
 
11360
  ac_cv_type_size_t=no
 
11361
cat >conftest.$ac_ext <<_ACEOF
 
11362
/* confdefs.h.  */
 
11363
_ACEOF
 
11364
cat confdefs.h >>conftest.$ac_ext
 
11365
cat >>conftest.$ac_ext <<_ACEOF
 
11366
/* end confdefs.h.  */
 
11367
$ac_includes_default
 
11368
int
 
11369
main ()
 
11370
{
 
11371
if (sizeof (size_t))
 
11372
       return 0;
 
11373
  ;
 
11374
  return 0;
 
11375
}
 
11376
_ACEOF
 
11377
rm -f conftest.$ac_objext
 
11378
if { (ac_try="$ac_compile"
 
11379
case "(($ac_try" in
 
11380
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11381
  *) ac_try_echo=$ac_try;;
 
11382
esac
 
11383
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11384
$as_echo "$ac_try_echo") >&5
 
11385
  (eval "$ac_compile") 2>conftest.er1
 
11386
  ac_status=$?
 
11387
  grep -v '^ *+' conftest.er1 >conftest.err
 
11388
  rm -f conftest.er1
 
11389
  cat conftest.err >&5
 
11390
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11391
  (exit $ac_status); } && {
 
11392
         test -z "$ac_c_werror_flag" ||
 
11393
         test ! -s conftest.err
 
11394
       } && test -s conftest.$ac_objext; then
7374
11395
  cat >conftest.$ac_ext <<_ACEOF
7375
11396
/* confdefs.h.  */
7376
11397
_ACEOF
7378
11399
cat >>conftest.$ac_ext <<_ACEOF
7379
11400
/* end confdefs.h.  */
7380
11401
$ac_includes_default
7381
 
typedef size_t ac__type_new_;
7382
11402
int
7383
11403
main ()
7384
11404
{
7385
 
if ((ac__type_new_ *) 0)
7386
 
  return 0;
7387
 
if (sizeof (ac__type_new_))
7388
 
  return 0;
 
11405
if (sizeof ((size_t)))
 
11406
          return 0;
7389
11407
  ;
7390
11408
  return 0;
7391
11409
}
7396
11414
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7397
11415
  *) ac_try_echo=$ac_try;;
7398
11416
esac
7399
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11417
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11418
$as_echo "$ac_try_echo") >&5
7400
11419
  (eval "$ac_compile") 2>conftest.er1
7401
11420
  ac_status=$?
7402
11421
  grep -v '^ *+' conftest.er1 >conftest.err
7403
11422
  rm -f conftest.er1
7404
11423
  cat conftest.err >&5
7405
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11424
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406
11425
  (exit $ac_status); } && {
7407
11426
         test -z "$ac_c_werror_flag" ||
7408
11427
         test ! -s conftest.err
7409
11428
       } && test -s conftest.$ac_objext; then
7410
 
  ac_cv_type_size_t=yes
7411
 
else
7412
 
  echo "$as_me: failed program was:" >&5
7413
 
sed 's/^/| /' conftest.$ac_ext >&5
7414
 
 
7415
 
        ac_cv_type_size_t=no
7416
 
fi
7417
 
 
7418
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7419
 
fi
7420
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7421
 
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7422
 
if test $ac_cv_type_size_t = yes; then
 
11429
  :
 
11430
else
 
11431
  $as_echo "$as_me: failed program was:" >&5
 
11432
sed 's/^/| /' conftest.$ac_ext >&5
 
11433
 
 
11434
        ac_cv_type_size_t=yes
 
11435
fi
 
11436
 
 
11437
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11438
else
 
11439
  $as_echo "$as_me: failed program was:" >&5
 
11440
sed 's/^/| /' conftest.$ac_ext >&5
 
11441
 
 
11442
 
 
11443
fi
 
11444
 
 
11445
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11446
fi
 
11447
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
 
11448
$as_echo "$ac_cv_type_size_t" >&6; }
 
11449
if test "x$ac_cv_type_size_t" = x""yes; then
7423
11450
  :
7424
11451
else
7425
11452
 
7429
11456
 
7430
11457
fi
7431
11458
 
7432
 
{ echo "$as_me:$LINENO: checking for pid_t" >&5
7433
 
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
 
11459
{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
 
11460
$as_echo_n "checking for pid_t... " >&6; }
7434
11461
if test "${ac_cv_type_pid_t+set}" = set; then
7435
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11462
  $as_echo_n "(cached) " >&6
7436
11463
else
 
11464
  ac_cv_type_pid_t=no
 
11465
cat >conftest.$ac_ext <<_ACEOF
 
11466
/* confdefs.h.  */
 
11467
_ACEOF
 
11468
cat confdefs.h >>conftest.$ac_ext
 
11469
cat >>conftest.$ac_ext <<_ACEOF
 
11470
/* end confdefs.h.  */
 
11471
$ac_includes_default
 
11472
int
 
11473
main ()
 
11474
{
 
11475
if (sizeof (pid_t))
 
11476
       return 0;
 
11477
  ;
 
11478
  return 0;
 
11479
}
 
11480
_ACEOF
 
11481
rm -f conftest.$ac_objext
 
11482
if { (ac_try="$ac_compile"
 
11483
case "(($ac_try" in
 
11484
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11485
  *) ac_try_echo=$ac_try;;
 
11486
esac
 
11487
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11488
$as_echo "$ac_try_echo") >&5
 
11489
  (eval "$ac_compile") 2>conftest.er1
 
11490
  ac_status=$?
 
11491
  grep -v '^ *+' conftest.er1 >conftest.err
 
11492
  rm -f conftest.er1
 
11493
  cat conftest.err >&5
 
11494
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11495
  (exit $ac_status); } && {
 
11496
         test -z "$ac_c_werror_flag" ||
 
11497
         test ! -s conftest.err
 
11498
       } && test -s conftest.$ac_objext; then
7437
11499
  cat >conftest.$ac_ext <<_ACEOF
7438
11500
/* confdefs.h.  */
7439
11501
_ACEOF
7441
11503
cat >>conftest.$ac_ext <<_ACEOF
7442
11504
/* end confdefs.h.  */
7443
11505
$ac_includes_default
7444
 
typedef pid_t ac__type_new_;
7445
11506
int
7446
11507
main ()
7447
11508
{
7448
 
if ((ac__type_new_ *) 0)
7449
 
  return 0;
7450
 
if (sizeof (ac__type_new_))
7451
 
  return 0;
 
11509
if (sizeof ((pid_t)))
 
11510
          return 0;
7452
11511
  ;
7453
11512
  return 0;
7454
11513
}
7459
11518
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7460
11519
  *) ac_try_echo=$ac_try;;
7461
11520
esac
7462
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11521
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11522
$as_echo "$ac_try_echo") >&5
7463
11523
  (eval "$ac_compile") 2>conftest.er1
7464
11524
  ac_status=$?
7465
11525
  grep -v '^ *+' conftest.er1 >conftest.err
7466
11526
  rm -f conftest.er1
7467
11527
  cat conftest.err >&5
7468
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11528
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469
11529
  (exit $ac_status); } && {
7470
11530
         test -z "$ac_c_werror_flag" ||
7471
11531
         test ! -s conftest.err
7472
11532
       } && test -s conftest.$ac_objext; then
7473
 
  ac_cv_type_pid_t=yes
7474
 
else
7475
 
  echo "$as_me: failed program was:" >&5
7476
 
sed 's/^/| /' conftest.$ac_ext >&5
7477
 
 
7478
 
        ac_cv_type_pid_t=no
7479
 
fi
7480
 
 
7481
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7482
 
fi
7483
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7484
 
echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
7485
 
if test $ac_cv_type_pid_t = yes; then
 
11533
  :
 
11534
else
 
11535
  $as_echo "$as_me: failed program was:" >&5
 
11536
sed 's/^/| /' conftest.$ac_ext >&5
 
11537
 
 
11538
        ac_cv_type_pid_t=yes
 
11539
fi
 
11540
 
 
11541
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11542
else
 
11543
  $as_echo "$as_me: failed program was:" >&5
 
11544
sed 's/^/| /' conftest.$ac_ext >&5
 
11545
 
 
11546
 
 
11547
fi
 
11548
 
 
11549
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11550
fi
 
11551
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
 
11552
$as_echo "$ac_cv_type_pid_t" >&6; }
 
11553
if test "x$ac_cv_type_pid_t" = x""yes; then
7486
11554
  :
7487
11555
else
7488
11556
 
7492
11560
 
7493
11561
fi
7494
11562
 
7495
 
{ echo "$as_me:$LINENO: checking for uint32_t" >&5
7496
 
echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
 
11563
{ $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
 
11564
$as_echo_n "checking for uint32_t... " >&6; }
7497
11565
if test "${ac_cv_type_uint32_t+set}" = set; then
7498
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11566
  $as_echo_n "(cached) " >&6
7499
11567
else
 
11568
  ac_cv_type_uint32_t=no
 
11569
cat >conftest.$ac_ext <<_ACEOF
 
11570
/* confdefs.h.  */
 
11571
_ACEOF
 
11572
cat confdefs.h >>conftest.$ac_ext
 
11573
cat >>conftest.$ac_ext <<_ACEOF
 
11574
/* end confdefs.h.  */
 
11575
$ac_includes_default
 
11576
int
 
11577
main ()
 
11578
{
 
11579
if (sizeof (uint32_t))
 
11580
       return 0;
 
11581
  ;
 
11582
  return 0;
 
11583
}
 
11584
_ACEOF
 
11585
rm -f conftest.$ac_objext
 
11586
if { (ac_try="$ac_compile"
 
11587
case "(($ac_try" in
 
11588
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11589
  *) ac_try_echo=$ac_try;;
 
11590
esac
 
11591
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11592
$as_echo "$ac_try_echo") >&5
 
11593
  (eval "$ac_compile") 2>conftest.er1
 
11594
  ac_status=$?
 
11595
  grep -v '^ *+' conftest.er1 >conftest.err
 
11596
  rm -f conftest.er1
 
11597
  cat conftest.err >&5
 
11598
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11599
  (exit $ac_status); } && {
 
11600
         test -z "$ac_c_werror_flag" ||
 
11601
         test ! -s conftest.err
 
11602
       } && test -s conftest.$ac_objext; then
7500
11603
  cat >conftest.$ac_ext <<_ACEOF
7501
11604
/* confdefs.h.  */
7502
11605
_ACEOF
7504
11607
cat >>conftest.$ac_ext <<_ACEOF
7505
11608
/* end confdefs.h.  */
7506
11609
$ac_includes_default
7507
 
typedef uint32_t ac__type_new_;
7508
11610
int
7509
11611
main ()
7510
11612
{
7511
 
if ((ac__type_new_ *) 0)
7512
 
  return 0;
7513
 
if (sizeof (ac__type_new_))
7514
 
  return 0;
 
11613
if (sizeof ((uint32_t)))
 
11614
          return 0;
7515
11615
  ;
7516
11616
  return 0;
7517
11617
}
7522
11622
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7523
11623
  *) ac_try_echo=$ac_try;;
7524
11624
esac
7525
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11625
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11626
$as_echo "$ac_try_echo") >&5
7526
11627
  (eval "$ac_compile") 2>conftest.er1
7527
11628
  ac_status=$?
7528
11629
  grep -v '^ *+' conftest.er1 >conftest.err
7529
11630
  rm -f conftest.er1
7530
11631
  cat conftest.err >&5
7531
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11632
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532
11633
  (exit $ac_status); } && {
7533
11634
         test -z "$ac_c_werror_flag" ||
7534
11635
         test ! -s conftest.err
7535
11636
       } && test -s conftest.$ac_objext; then
7536
 
  ac_cv_type_uint32_t=yes
7537
 
else
7538
 
  echo "$as_me: failed program was:" >&5
7539
 
sed 's/^/| /' conftest.$ac_ext >&5
7540
 
 
7541
 
        ac_cv_type_uint32_t=no
7542
 
fi
7543
 
 
7544
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7545
 
fi
7546
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
7547
 
echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
7548
 
if test $ac_cv_type_uint32_t = yes; then
 
11637
  :
 
11638
else
 
11639
  $as_echo "$as_me: failed program was:" >&5
 
11640
sed 's/^/| /' conftest.$ac_ext >&5
 
11641
 
 
11642
        ac_cv_type_uint32_t=yes
 
11643
fi
 
11644
 
 
11645
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11646
else
 
11647
  $as_echo "$as_me: failed program was:" >&5
 
11648
sed 's/^/| /' conftest.$ac_ext >&5
 
11649
 
 
11650
 
 
11651
fi
 
11652
 
 
11653
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11654
fi
 
11655
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
 
11656
$as_echo "$ac_cv_type_uint32_t" >&6; }
 
11657
if test "x$ac_cv_type_uint32_t" = x""yes; then
7549
11658
 
7550
11659
cat >>confdefs.h <<_ACEOF
7551
11660
#define HAVE_UINT32_T 1
7553
11662
 
7554
11663
 
7555
11664
fi
7556
 
{ echo "$as_me:$LINENO: checking for uintptr_t" >&5
7557
 
echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
 
11665
{ $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
 
11666
$as_echo_n "checking for uintptr_t... " >&6; }
7558
11667
if test "${ac_cv_type_uintptr_t+set}" = set; then
7559
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11668
  $as_echo_n "(cached) " >&6
7560
11669
else
 
11670
  ac_cv_type_uintptr_t=no
 
11671
cat >conftest.$ac_ext <<_ACEOF
 
11672
/* confdefs.h.  */
 
11673
_ACEOF
 
11674
cat confdefs.h >>conftest.$ac_ext
 
11675
cat >>conftest.$ac_ext <<_ACEOF
 
11676
/* end confdefs.h.  */
 
11677
$ac_includes_default
 
11678
int
 
11679
main ()
 
11680
{
 
11681
if (sizeof (uintptr_t))
 
11682
       return 0;
 
11683
  ;
 
11684
  return 0;
 
11685
}
 
11686
_ACEOF
 
11687
rm -f conftest.$ac_objext
 
11688
if { (ac_try="$ac_compile"
 
11689
case "(($ac_try" in
 
11690
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11691
  *) ac_try_echo=$ac_try;;
 
11692
esac
 
11693
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11694
$as_echo "$ac_try_echo") >&5
 
11695
  (eval "$ac_compile") 2>conftest.er1
 
11696
  ac_status=$?
 
11697
  grep -v '^ *+' conftest.er1 >conftest.err
 
11698
  rm -f conftest.er1
 
11699
  cat conftest.err >&5
 
11700
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11701
  (exit $ac_status); } && {
 
11702
         test -z "$ac_c_werror_flag" ||
 
11703
         test ! -s conftest.err
 
11704
       } && test -s conftest.$ac_objext; then
7561
11705
  cat >conftest.$ac_ext <<_ACEOF
7562
11706
/* confdefs.h.  */
7563
11707
_ACEOF
7565
11709
cat >>conftest.$ac_ext <<_ACEOF
7566
11710
/* end confdefs.h.  */
7567
11711
$ac_includes_default
7568
 
typedef uintptr_t ac__type_new_;
7569
11712
int
7570
11713
main ()
7571
11714
{
7572
 
if ((ac__type_new_ *) 0)
7573
 
  return 0;
7574
 
if (sizeof (ac__type_new_))
7575
 
  return 0;
 
11715
if (sizeof ((uintptr_t)))
 
11716
          return 0;
7576
11717
  ;
7577
11718
  return 0;
7578
11719
}
7583
11724
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7584
11725
  *) ac_try_echo=$ac_try;;
7585
11726
esac
7586
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11727
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11728
$as_echo "$ac_try_echo") >&5
7587
11729
  (eval "$ac_compile") 2>conftest.er1
7588
11730
  ac_status=$?
7589
11731
  grep -v '^ *+' conftest.er1 >conftest.err
7590
11732
  rm -f conftest.er1
7591
11733
  cat conftest.err >&5
7592
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11734
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593
11735
  (exit $ac_status); } && {
7594
11736
         test -z "$ac_c_werror_flag" ||
7595
11737
         test ! -s conftest.err
7596
11738
       } && test -s conftest.$ac_objext; then
7597
 
  ac_cv_type_uintptr_t=yes
7598
 
else
7599
 
  echo "$as_me: failed program was:" >&5
7600
 
sed 's/^/| /' conftest.$ac_ext >&5
7601
 
 
7602
 
        ac_cv_type_uintptr_t=no
7603
 
fi
7604
 
 
7605
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7606
 
fi
7607
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
7608
 
echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
7609
 
if test $ac_cv_type_uintptr_t = yes; then
 
11739
  :
 
11740
else
 
11741
  $as_echo "$as_me: failed program was:" >&5
 
11742
sed 's/^/| /' conftest.$ac_ext >&5
 
11743
 
 
11744
        ac_cv_type_uintptr_t=yes
 
11745
fi
 
11746
 
 
11747
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11748
else
 
11749
  $as_echo "$as_me: failed program was:" >&5
 
11750
sed 's/^/| /' conftest.$ac_ext >&5
 
11751
 
 
11752
 
 
11753
fi
 
11754
 
 
11755
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11756
fi
 
11757
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
 
11758
$as_echo "$ac_cv_type_uintptr_t" >&6; }
 
11759
if test "x$ac_cv_type_uintptr_t" = x""yes; then
7610
11760
 
7611
11761
cat >>confdefs.h <<_ACEOF
7612
11762
#define HAVE_UINTPTR_T 1
7614
11764
 
7615
11765
 
7616
11766
fi
7617
 
{ echo "$as_me:$LINENO: checking for intptr_t" >&5
7618
 
echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
 
11767
{ $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
 
11768
$as_echo_n "checking for intptr_t... " >&6; }
7619
11769
if test "${ac_cv_type_intptr_t+set}" = set; then
7620
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11770
  $as_echo_n "(cached) " >&6
7621
11771
else
 
11772
  ac_cv_type_intptr_t=no
 
11773
cat >conftest.$ac_ext <<_ACEOF
 
11774
/* confdefs.h.  */
 
11775
_ACEOF
 
11776
cat confdefs.h >>conftest.$ac_ext
 
11777
cat >>conftest.$ac_ext <<_ACEOF
 
11778
/* end confdefs.h.  */
 
11779
$ac_includes_default
 
11780
int
 
11781
main ()
 
11782
{
 
11783
if (sizeof (intptr_t))
 
11784
       return 0;
 
11785
  ;
 
11786
  return 0;
 
11787
}
 
11788
_ACEOF
 
11789
rm -f conftest.$ac_objext
 
11790
if { (ac_try="$ac_compile"
 
11791
case "(($ac_try" in
 
11792
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11793
  *) ac_try_echo=$ac_try;;
 
11794
esac
 
11795
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11796
$as_echo "$ac_try_echo") >&5
 
11797
  (eval "$ac_compile") 2>conftest.er1
 
11798
  ac_status=$?
 
11799
  grep -v '^ *+' conftest.er1 >conftest.err
 
11800
  rm -f conftest.er1
 
11801
  cat conftest.err >&5
 
11802
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11803
  (exit $ac_status); } && {
 
11804
         test -z "$ac_c_werror_flag" ||
 
11805
         test ! -s conftest.err
 
11806
       } && test -s conftest.$ac_objext; then
7622
11807
  cat >conftest.$ac_ext <<_ACEOF
7623
11808
/* confdefs.h.  */
7624
11809
_ACEOF
7626
11811
cat >>conftest.$ac_ext <<_ACEOF
7627
11812
/* end confdefs.h.  */
7628
11813
$ac_includes_default
7629
 
typedef intptr_t ac__type_new_;
7630
11814
int
7631
11815
main ()
7632
11816
{
7633
 
if ((ac__type_new_ *) 0)
7634
 
  return 0;
7635
 
if (sizeof (ac__type_new_))
7636
 
  return 0;
 
11817
if (sizeof ((intptr_t)))
 
11818
          return 0;
7637
11819
  ;
7638
11820
  return 0;
7639
11821
}
7644
11826
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7645
11827
  *) ac_try_echo=$ac_try;;
7646
11828
esac
7647
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11829
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11830
$as_echo "$ac_try_echo") >&5
7648
11831
  (eval "$ac_compile") 2>conftest.er1
7649
11832
  ac_status=$?
7650
11833
  grep -v '^ *+' conftest.er1 >conftest.err
7651
11834
  rm -f conftest.er1
7652
11835
  cat conftest.err >&5
7653
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11836
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654
11837
  (exit $ac_status); } && {
7655
11838
         test -z "$ac_c_werror_flag" ||
7656
11839
         test ! -s conftest.err
7657
11840
       } && test -s conftest.$ac_objext; then
7658
 
  ac_cv_type_intptr_t=yes
7659
 
else
7660
 
  echo "$as_me: failed program was:" >&5
7661
 
sed 's/^/| /' conftest.$ac_ext >&5
7662
 
 
7663
 
        ac_cv_type_intptr_t=no
7664
 
fi
7665
 
 
7666
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7667
 
fi
7668
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
7669
 
echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
7670
 
if test $ac_cv_type_intptr_t = yes; then
 
11841
  :
 
11842
else
 
11843
  $as_echo "$as_me: failed program was:" >&5
 
11844
sed 's/^/| /' conftest.$ac_ext >&5
 
11845
 
 
11846
        ac_cv_type_intptr_t=yes
 
11847
fi
 
11848
 
 
11849
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11850
else
 
11851
  $as_echo "$as_me: failed program was:" >&5
 
11852
sed 's/^/| /' conftest.$ac_ext >&5
 
11853
 
 
11854
 
 
11855
fi
 
11856
 
 
11857
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11858
fi
 
11859
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
 
11860
$as_echo "$ac_cv_type_intptr_t" >&6; }
 
11861
if test "x$ac_cv_type_intptr_t" = x""yes; then
7671
11862
 
7672
11863
cat >>confdefs.h <<_ACEOF
7673
11864
#define HAVE_INTPTR_T 1
7675
11866
 
7676
11867
 
7677
11868
fi
7678
 
{ echo "$as_me:$LINENO: checking for int64_t" >&5
7679
 
echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
 
11869
{ $as_echo "$as_me:$LINENO: checking for int64_t" >&5
 
11870
$as_echo_n "checking for int64_t... " >&6; }
7680
11871
if test "${ac_cv_type_int64_t+set}" = set; then
7681
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11872
  $as_echo_n "(cached) " >&6
7682
11873
else
 
11874
  ac_cv_type_int64_t=no
 
11875
cat >conftest.$ac_ext <<_ACEOF
 
11876
/* confdefs.h.  */
 
11877
_ACEOF
 
11878
cat confdefs.h >>conftest.$ac_ext
 
11879
cat >>conftest.$ac_ext <<_ACEOF
 
11880
/* end confdefs.h.  */
 
11881
$ac_includes_default
 
11882
int
 
11883
main ()
 
11884
{
 
11885
if (sizeof (int64_t))
 
11886
       return 0;
 
11887
  ;
 
11888
  return 0;
 
11889
}
 
11890
_ACEOF
 
11891
rm -f conftest.$ac_objext
 
11892
if { (ac_try="$ac_compile"
 
11893
case "(($ac_try" in
 
11894
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11895
  *) ac_try_echo=$ac_try;;
 
11896
esac
 
11897
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11898
$as_echo "$ac_try_echo") >&5
 
11899
  (eval "$ac_compile") 2>conftest.er1
 
11900
  ac_status=$?
 
11901
  grep -v '^ *+' conftest.er1 >conftest.err
 
11902
  rm -f conftest.er1
 
11903
  cat conftest.err >&5
 
11904
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11905
  (exit $ac_status); } && {
 
11906
         test -z "$ac_c_werror_flag" ||
 
11907
         test ! -s conftest.err
 
11908
       } && test -s conftest.$ac_objext; then
7683
11909
  cat >conftest.$ac_ext <<_ACEOF
7684
11910
/* confdefs.h.  */
7685
11911
_ACEOF
7687
11913
cat >>conftest.$ac_ext <<_ACEOF
7688
11914
/* end confdefs.h.  */
7689
11915
$ac_includes_default
7690
 
typedef int64_t ac__type_new_;
7691
11916
int
7692
11917
main ()
7693
11918
{
7694
 
if ((ac__type_new_ *) 0)
7695
 
  return 0;
7696
 
if (sizeof (ac__type_new_))
7697
 
  return 0;
 
11919
if (sizeof ((int64_t)))
 
11920
          return 0;
7698
11921
  ;
7699
11922
  return 0;
7700
11923
}
7705
11928
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7706
11929
  *) ac_try_echo=$ac_try;;
7707
11930
esac
7708
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11931
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11932
$as_echo "$ac_try_echo") >&5
7709
11933
  (eval "$ac_compile") 2>conftest.er1
7710
11934
  ac_status=$?
7711
11935
  grep -v '^ *+' conftest.er1 >conftest.err
7712
11936
  rm -f conftest.er1
7713
11937
  cat conftest.err >&5
7714
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11938
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715
11939
  (exit $ac_status); } && {
7716
11940
         test -z "$ac_c_werror_flag" ||
7717
11941
         test ! -s conftest.err
7718
11942
       } && test -s conftest.$ac_objext; then
7719
 
  ac_cv_type_int64_t=yes
7720
 
else
7721
 
  echo "$as_me: failed program was:" >&5
7722
 
sed 's/^/| /' conftest.$ac_ext >&5
7723
 
 
7724
 
        ac_cv_type_int64_t=no
7725
 
fi
7726
 
 
7727
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7728
 
fi
7729
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
7730
 
echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
7731
 
if test $ac_cv_type_int64_t = yes; then
 
11943
  :
 
11944
else
 
11945
  $as_echo "$as_me: failed program was:" >&5
 
11946
sed 's/^/| /' conftest.$ac_ext >&5
 
11947
 
 
11948
        ac_cv_type_int64_t=yes
 
11949
fi
 
11950
 
 
11951
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11952
else
 
11953
  $as_echo "$as_me: failed program was:" >&5
 
11954
sed 's/^/| /' conftest.$ac_ext >&5
 
11955
 
 
11956
 
 
11957
fi
 
11958
 
 
11959
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11960
fi
 
11961
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
 
11962
$as_echo "$ac_cv_type_int64_t" >&6; }
 
11963
if test "x$ac_cv_type_int64_t" = x""yes; then
7732
11964
 
7733
11965
cat >>confdefs.h <<_ACEOF
7734
11966
#define HAVE_INT64_T 1
7737
11969
 
7738
11970
fi
7739
11971
 
7740
 
{ echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
7741
 
echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
 
11972
{ $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
 
11973
$as_echo_n "checking for sig_atomic_t... " >&6; }
7742
11974
if test "${ac_cv_type_sig_atomic_t+set}" = set; then
7743
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11975
  $as_echo_n "(cached) " >&6
7744
11976
else
 
11977
  ac_cv_type_sig_atomic_t=no
 
11978
cat >conftest.$ac_ext <<_ACEOF
 
11979
/* confdefs.h.  */
 
11980
_ACEOF
 
11981
cat confdefs.h >>conftest.$ac_ext
 
11982
cat >>conftest.$ac_ext <<_ACEOF
 
11983
/* end confdefs.h.  */
 
11984
 
 
11985
#include <stdio.h>
 
11986
#include <sys/types.h>
 
11987
#if HAVE_INTTYPES_H
 
11988
# include <inttypes.h>
 
11989
#endif
 
11990
#include <signal.h>
 
11991
 
 
11992
 
 
11993
int
 
11994
main ()
 
11995
{
 
11996
if (sizeof (sig_atomic_t))
 
11997
       return 0;
 
11998
  ;
 
11999
  return 0;
 
12000
}
 
12001
_ACEOF
 
12002
rm -f conftest.$ac_objext
 
12003
if { (ac_try="$ac_compile"
 
12004
case "(($ac_try" in
 
12005
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12006
  *) ac_try_echo=$ac_try;;
 
12007
esac
 
12008
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12009
$as_echo "$ac_try_echo") >&5
 
12010
  (eval "$ac_compile") 2>conftest.er1
 
12011
  ac_status=$?
 
12012
  grep -v '^ *+' conftest.er1 >conftest.err
 
12013
  rm -f conftest.er1
 
12014
  cat conftest.err >&5
 
12015
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12016
  (exit $ac_status); } && {
 
12017
         test -z "$ac_c_werror_flag" ||
 
12018
         test ! -s conftest.err
 
12019
       } && test -s conftest.$ac_objext; then
7745
12020
  cat >conftest.$ac_ext <<_ACEOF
7746
12021
/* confdefs.h.  */
7747
12022
_ACEOF
7757
12032
#include <signal.h>
7758
12033
 
7759
12034
 
7760
 
typedef sig_atomic_t ac__type_new_;
7761
12035
int
7762
12036
main ()
7763
12037
{
7764
 
if ((ac__type_new_ *) 0)
7765
 
  return 0;
7766
 
if (sizeof (ac__type_new_))
7767
 
  return 0;
 
12038
if (sizeof ((sig_atomic_t)))
 
12039
          return 0;
7768
12040
  ;
7769
12041
  return 0;
7770
12042
}
7775
12047
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7776
12048
  *) ac_try_echo=$ac_try;;
7777
12049
esac
7778
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12050
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12051
$as_echo "$ac_try_echo") >&5
7779
12052
  (eval "$ac_compile") 2>conftest.er1
7780
12053
  ac_status=$?
7781
12054
  grep -v '^ *+' conftest.er1 >conftest.err
7782
12055
  rm -f conftest.er1
7783
12056
  cat conftest.err >&5
7784
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12057
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785
12058
  (exit $ac_status); } && {
7786
12059
         test -z "$ac_c_werror_flag" ||
7787
12060
         test ! -s conftest.err
7788
12061
       } && test -s conftest.$ac_objext; then
7789
 
  ac_cv_type_sig_atomic_t=yes
7790
 
else
7791
 
  echo "$as_me: failed program was:" >&5
7792
 
sed 's/^/| /' conftest.$ac_ext >&5
7793
 
 
7794
 
        ac_cv_type_sig_atomic_t=no
7795
 
fi
7796
 
 
7797
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7798
 
fi
7799
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
7800
 
echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
7801
 
if test $ac_cv_type_sig_atomic_t = yes; then
 
12062
  :
 
12063
else
 
12064
  $as_echo "$as_me: failed program was:" >&5
 
12065
sed 's/^/| /' conftest.$ac_ext >&5
 
12066
 
 
12067
        ac_cv_type_sig_atomic_t=yes
 
12068
fi
 
12069
 
 
12070
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12071
else
 
12072
  $as_echo "$as_me: failed program was:" >&5
 
12073
sed 's/^/| /' conftest.$ac_ext >&5
 
12074
 
 
12075
 
 
12076
fi
 
12077
 
 
12078
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12079
fi
 
12080
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
 
12081
$as_echo "$ac_cv_type_sig_atomic_t" >&6; }
 
12082
if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
7802
12083
 
7803
12084
cat >>confdefs.h <<_ACEOF
7804
12085
#define HAVE_SIG_ATOMIC_T 1
7808
12089
fi
7809
12090
 
7810
12091
 
 
12092
# gnulib
 
12093
 
 
12094
 
 
12095
 
 
12096
 
 
12097
 
 
12098
 
 
12099
 
7811
12100
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7812
12101
# for constant arguments.  Useless!
7813
 
{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
7814
 
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
 
12102
{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
 
12103
$as_echo_n "checking for working alloca.h... " >&6; }
7815
12104
if test "${ac_cv_working_alloca_h+set}" = set; then
7816
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12105
  $as_echo_n "(cached) " >&6
7817
12106
else
7818
12107
  cat >conftest.$ac_ext <<_ACEOF
7819
12108
/* confdefs.h.  */
7837
12126
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7838
12127
  *) ac_try_echo=$ac_try;;
7839
12128
esac
7840
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12129
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12130
$as_echo "$ac_try_echo") >&5
7841
12131
  (eval "$ac_link") 2>conftest.er1
7842
12132
  ac_status=$?
7843
12133
  grep -v '^ *+' conftest.er1 >conftest.err
7844
12134
  rm -f conftest.er1
7845
12135
  cat conftest.err >&5
7846
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12136
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847
12137
  (exit $ac_status); } && {
7848
12138
         test -z "$ac_c_werror_flag" ||
7849
12139
         test ! -s conftest.err
7850
 
       } && test -s conftest$ac_exeext &&
7851
 
       $as_test_x conftest$ac_exeext; then
 
12140
       } && test -s conftest$ac_exeext && {
 
12141
         test "$cross_compiling" = yes ||
 
12142
         $as_test_x conftest$ac_exeext
 
12143
       }; then
7852
12144
  ac_cv_working_alloca_h=yes
7853
12145
else
7854
 
  echo "$as_me: failed program was:" >&5
 
12146
  $as_echo "$as_me: failed program was:" >&5
7855
12147
sed 's/^/| /' conftest.$ac_ext >&5
7856
12148
 
7857
12149
        ac_cv_working_alloca_h=no
7858
12150
fi
7859
12151
 
 
12152
rm -rf conftest.dSYM
7860
12153
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7861
12154
      conftest$ac_exeext conftest.$ac_ext
7862
12155
fi
7863
 
{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7864
 
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
 
12156
{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
 
12157
$as_echo "$ac_cv_working_alloca_h" >&6; }
7865
12158
if test $ac_cv_working_alloca_h = yes; then
7866
12159
 
7867
12160
cat >>confdefs.h <<\_ACEOF
7870
12163
 
7871
12164
fi
7872
12165
 
7873
 
{ echo "$as_me:$LINENO: checking for alloca" >&5
7874
 
echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
 
12166
{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
 
12167
$as_echo_n "checking for alloca... " >&6; }
7875
12168
if test "${ac_cv_func_alloca_works+set}" = set; then
7876
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12169
  $as_echo_n "(cached) " >&6
7877
12170
else
7878
12171
  cat >conftest.$ac_ext <<_ACEOF
7879
12172
/* confdefs.h.  */
7917
12210
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7918
12211
  *) ac_try_echo=$ac_try;;
7919
12212
esac
7920
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12213
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12214
$as_echo "$ac_try_echo") >&5
7921
12215
  (eval "$ac_link") 2>conftest.er1
7922
12216
  ac_status=$?
7923
12217
  grep -v '^ *+' conftest.er1 >conftest.err
7924
12218
  rm -f conftest.er1
7925
12219
  cat conftest.err >&5
7926
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12220
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927
12221
  (exit $ac_status); } && {
7928
12222
         test -z "$ac_c_werror_flag" ||
7929
12223
         test ! -s conftest.err
7930
 
       } && test -s conftest$ac_exeext &&
7931
 
       $as_test_x conftest$ac_exeext; then
 
12224
       } && test -s conftest$ac_exeext && {
 
12225
         test "$cross_compiling" = yes ||
 
12226
         $as_test_x conftest$ac_exeext
 
12227
       }; then
7932
12228
  ac_cv_func_alloca_works=yes
7933
12229
else
7934
 
  echo "$as_me: failed program was:" >&5
 
12230
  $as_echo "$as_me: failed program was:" >&5
7935
12231
sed 's/^/| /' conftest.$ac_ext >&5
7936
12232
 
7937
12233
        ac_cv_func_alloca_works=no
7938
12234
fi
7939
12235
 
 
12236
rm -rf conftest.dSYM
7940
12237
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7941
12238
      conftest$ac_exeext conftest.$ac_ext
7942
12239
fi
7943
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7944
 
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
 
12240
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
 
12241
$as_echo "$ac_cv_func_alloca_works" >&6; }
7945
12242
 
7946
12243
if test $ac_cv_func_alloca_works = yes; then
7947
12244
 
7955
12252
# contain a buggy version.  If you still want to use their alloca,
7956
12253
# use ar to extract alloca.o from them instead of compiling alloca.c.
7957
12254
 
 
12255
 
 
12256
 
 
12257
 
 
12258
 
7958
12259
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7959
12260
 
7960
12261
cat >>confdefs.h <<\_ACEOF
7962
12263
_ACEOF
7963
12264
 
7964
12265
 
7965
 
{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7966
 
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
 
12266
{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
 
12267
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7967
12268
if test "${ac_cv_os_cray+set}" = set; then
7968
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12269
  $as_echo_n "(cached) " >&6
7969
12270
else
7970
12271
  cat >conftest.$ac_ext <<_ACEOF
7971
12272
/* confdefs.h.  */
7989
12290
rm -f conftest*
7990
12291
 
7991
12292
fi
7992
 
{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7993
 
echo "${ECHO_T}$ac_cv_os_cray" >&6; }
 
12293
{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
 
12294
$as_echo "$ac_cv_os_cray" >&6; }
7994
12295
if test $ac_cv_os_cray = yes; then
7995
12296
  for ac_func in _getb67 GETB67 getb67; do
7996
 
    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7997
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7998
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
12297
    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
12298
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
12299
$as_echo_n "checking for $ac_func... " >&6; }
7999
12300
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8000
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12301
  $as_echo_n "(cached) " >&6
8001
12302
else
8002
12303
  cat >conftest.$ac_ext <<_ACEOF
8003
12304
/* confdefs.h.  */
8050
12351
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8051
12352
  *) ac_try_echo=$ac_try;;
8052
12353
esac
8053
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12354
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12355
$as_echo "$ac_try_echo") >&5
8054
12356
  (eval "$ac_link") 2>conftest.er1
8055
12357
  ac_status=$?
8056
12358
  grep -v '^ *+' conftest.er1 >conftest.err
8057
12359
  rm -f conftest.er1
8058
12360
  cat conftest.err >&5
8059
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12361
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060
12362
  (exit $ac_status); } && {
8061
12363
         test -z "$ac_c_werror_flag" ||
8062
12364
         test ! -s conftest.err
8063
 
       } && test -s conftest$ac_exeext &&
8064
 
       $as_test_x conftest$ac_exeext; then
 
12365
       } && test -s conftest$ac_exeext && {
 
12366
         test "$cross_compiling" = yes ||
 
12367
         $as_test_x conftest$ac_exeext
 
12368
       }; then
8065
12369
  eval "$as_ac_var=yes"
8066
12370
else
8067
 
  echo "$as_me: failed program was:" >&5
 
12371
  $as_echo "$as_me: failed program was:" >&5
8068
12372
sed 's/^/| /' conftest.$ac_ext >&5
8069
12373
 
8070
12374
        eval "$as_ac_var=no"
8071
12375
fi
8072
12376
 
 
12377
rm -rf conftest.dSYM
8073
12378
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8074
12379
      conftest$ac_exeext conftest.$ac_ext
8075
12380
fi
8076
 
ac_res=`eval echo '${'$as_ac_var'}'`
8077
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
8078
 
echo "${ECHO_T}$ac_res" >&6; }
8079
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
12381
ac_res=`eval 'as_val=${'$as_ac_var'}
 
12382
                 $as_echo "$as_val"'`
 
12383
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
12384
$as_echo "$ac_res" >&6; }
 
12385
as_val=`eval 'as_val=${'$as_ac_var'}
 
12386
                 $as_echo "$as_val"'`
 
12387
   if test "x$as_val" = x""yes; then
8080
12388
 
8081
12389
cat >>confdefs.h <<_ACEOF
8082
12390
#define CRAY_STACKSEG_END $ac_func
8088
12396
  done
8089
12397
fi
8090
12398
 
8091
 
{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8092
 
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
 
12399
{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
 
12400
$as_echo_n "checking stack direction for C alloca... " >&6; }
8093
12401
if test "${ac_cv_c_stack_direction+set}" = set; then
8094
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12402
  $as_echo_n "(cached) " >&6
8095
12403
else
8096
12404
  if test "$cross_compiling" = yes; then
8097
12405
  ac_cv_c_stack_direction=0
8129
12437
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8130
12438
  *) ac_try_echo=$ac_try;;
8131
12439
esac
8132
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12440
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12441
$as_echo "$ac_try_echo") >&5
8133
12442
  (eval "$ac_link") 2>&5
8134
12443
  ac_status=$?
8135
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12444
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136
12445
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8137
12446
  { (case "(($ac_try" in
8138
12447
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8139
12448
  *) ac_try_echo=$ac_try;;
8140
12449
esac
8141
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12450
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12451
$as_echo "$ac_try_echo") >&5
8142
12452
  (eval "$ac_try") 2>&5
8143
12453
  ac_status=$?
8144
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12454
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145
12455
  (exit $ac_status); }; }; then
8146
12456
  ac_cv_c_stack_direction=1
8147
12457
else
8148
 
  echo "$as_me: program exited with status $ac_status" >&5
8149
 
echo "$as_me: failed program was:" >&5
 
12458
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
12459
$as_echo "$as_me: failed program was:" >&5
8150
12460
sed 's/^/| /' conftest.$ac_ext >&5
8151
12461
 
8152
12462
( exit $ac_status )
8153
12463
ac_cv_c_stack_direction=-1
8154
12464
fi
 
12465
rm -rf conftest.dSYM
8155
12466
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8156
12467
fi
8157
12468
 
8158
12469
 
8159
12470
fi
8160
 
{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8161
 
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
 
12471
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
 
12472
$as_echo "$ac_cv_c_stack_direction" >&6; }
8162
12473
 
8163
12474
cat >>confdefs.h <<_ACEOF
8164
12475
#define STACK_DIRECTION $ac_cv_c_stack_direction
8169
12480
 
8170
12481
 
8171
12482
 
 
12483
  { $as_echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
 
12484
$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
 
12485
if test "${gl_cv_have_include_next+set}" = set; then
 
12486
  $as_echo_n "(cached) " >&6
 
12487
else
 
12488
  rm -rf conftestd1a conftestd1b conftestd2
 
12489
     mkdir conftestd1a conftestd1b conftestd2
 
12490
                                                  cat <<EOF > conftestd1a/conftest.h
 
12491
#define DEFINED_IN_CONFTESTD1
 
12492
#include_next <conftest.h>
 
12493
#ifdef DEFINED_IN_CONFTESTD2
 
12494
int foo;
 
12495
#else
 
12496
#error "include_next doesn't work"
 
12497
#endif
 
12498
EOF
 
12499
     cat <<EOF > conftestd1b/conftest.h
 
12500
#define DEFINED_IN_CONFTESTD1
 
12501
#include <stdio.h>
 
12502
#include_next <conftest.h>
 
12503
#ifdef DEFINED_IN_CONFTESTD2
 
12504
int foo;
 
12505
#else
 
12506
#error "include_next doesn't work"
 
12507
#endif
 
12508
EOF
 
12509
     cat <<EOF > conftestd2/conftest.h
 
12510
#ifndef DEFINED_IN_CONFTESTD1
 
12511
#error "include_next test doesn't work"
 
12512
#endif
 
12513
#define DEFINED_IN_CONFTESTD2
 
12514
EOF
 
12515
     gl_save_CPPFLAGS="$CPPFLAGS"
 
12516
     CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
 
12517
     cat >conftest.$ac_ext <<_ACEOF
 
12518
#include <conftest.h>
 
12519
_ACEOF
 
12520
rm -f conftest.$ac_objext
 
12521
if { (ac_try="$ac_compile"
 
12522
case "(($ac_try" in
 
12523
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12524
  *) ac_try_echo=$ac_try;;
 
12525
esac
 
12526
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12527
$as_echo "$ac_try_echo") >&5
 
12528
  (eval "$ac_compile") 2>conftest.er1
 
12529
  ac_status=$?
 
12530
  grep -v '^ *+' conftest.er1 >conftest.err
 
12531
  rm -f conftest.er1
 
12532
  cat conftest.err >&5
 
12533
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12534
  (exit $ac_status); } && {
 
12535
         test -z "$ac_c_werror_flag" ||
 
12536
         test ! -s conftest.err
 
12537
       } && test -s conftest.$ac_objext; then
 
12538
  gl_cv_have_include_next=yes
 
12539
else
 
12540
  $as_echo "$as_me: failed program was:" >&5
 
12541
sed 's/^/| /' conftest.$ac_ext >&5
 
12542
 
 
12543
        CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
 
12544
        cat >conftest.$ac_ext <<_ACEOF
 
12545
#include <conftest.h>
 
12546
_ACEOF
 
12547
rm -f conftest.$ac_objext
 
12548
if { (ac_try="$ac_compile"
 
12549
case "(($ac_try" in
 
12550
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12551
  *) ac_try_echo=$ac_try;;
 
12552
esac
 
12553
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12554
$as_echo "$ac_try_echo") >&5
 
12555
  (eval "$ac_compile") 2>conftest.er1
 
12556
  ac_status=$?
 
12557
  grep -v '^ *+' conftest.er1 >conftest.err
 
12558
  rm -f conftest.er1
 
12559
  cat conftest.err >&5
 
12560
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12561
  (exit $ac_status); } && {
 
12562
         test -z "$ac_c_werror_flag" ||
 
12563
         test ! -s conftest.err
 
12564
       } && test -s conftest.$ac_objext; then
 
12565
  gl_cv_have_include_next=buggy
 
12566
else
 
12567
  $as_echo "$as_me: failed program was:" >&5
 
12568
sed 's/^/| /' conftest.$ac_ext >&5
 
12569
 
 
12570
        gl_cv_have_include_next=no
 
12571
fi
 
12572
 
 
12573
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12574
 
 
12575
fi
 
12576
 
 
12577
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12578
     CPPFLAGS="$gl_save_CPPFLAGS"
 
12579
     rm -rf conftestd1a conftestd1b conftestd2
 
12580
 
 
12581
fi
 
12582
{ $as_echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
 
12583
$as_echo "$gl_cv_have_include_next" >&6; }
 
12584
  PRAGMA_SYSTEM_HEADER=
 
12585
  if test $gl_cv_have_include_next = yes; then
 
12586
    INCLUDE_NEXT=include_next
 
12587
    INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
 
12588
    if test -n "$GCC"; then
 
12589
      PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
 
12590
    fi
 
12591
  else
 
12592
    if test $gl_cv_have_include_next = buggy; then
 
12593
      INCLUDE_NEXT=include
 
12594
      INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
 
12595
    else
 
12596
      INCLUDE_NEXT=include
 
12597
      INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
 
12598
    fi
 
12599
  fi
 
12600
 
 
12601
 
 
12602
 
 
12603
 
 
12604
 
 
12605
 
 
12606
 
 
12607
 
 
12608
for ac_header in $ac_header_list
 
12609
do
 
12610
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
12611
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12612
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
12613
$as_echo_n "checking for $ac_header... " >&6; }
 
12614
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12615
  $as_echo_n "(cached) " >&6
 
12616
fi
 
12617
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
12618
                 $as_echo "$as_val"'`
 
12619
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
12620
$as_echo "$ac_res" >&6; }
 
12621
else
 
12622
  # Is the header compilable?
 
12623
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
12624
$as_echo_n "checking $ac_header usability... " >&6; }
 
12625
cat >conftest.$ac_ext <<_ACEOF
 
12626
/* confdefs.h.  */
 
12627
_ACEOF
 
12628
cat confdefs.h >>conftest.$ac_ext
 
12629
cat >>conftest.$ac_ext <<_ACEOF
 
12630
/* end confdefs.h.  */
 
12631
$ac_includes_default
 
12632
#include <$ac_header>
 
12633
_ACEOF
 
12634
rm -f conftest.$ac_objext
 
12635
if { (ac_try="$ac_compile"
 
12636
case "(($ac_try" in
 
12637
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12638
  *) ac_try_echo=$ac_try;;
 
12639
esac
 
12640
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12641
$as_echo "$ac_try_echo") >&5
 
12642
  (eval "$ac_compile") 2>conftest.er1
 
12643
  ac_status=$?
 
12644
  grep -v '^ *+' conftest.er1 >conftest.err
 
12645
  rm -f conftest.er1
 
12646
  cat conftest.err >&5
 
12647
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12648
  (exit $ac_status); } && {
 
12649
         test -z "$ac_c_werror_flag" ||
 
12650
         test ! -s conftest.err
 
12651
       } && test -s conftest.$ac_objext; then
 
12652
  ac_header_compiler=yes
 
12653
else
 
12654
  $as_echo "$as_me: failed program was:" >&5
 
12655
sed 's/^/| /' conftest.$ac_ext >&5
 
12656
 
 
12657
        ac_header_compiler=no
 
12658
fi
 
12659
 
 
12660
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12661
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
12662
$as_echo "$ac_header_compiler" >&6; }
 
12663
 
 
12664
# Is the header present?
 
12665
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
12666
$as_echo_n "checking $ac_header presence... " >&6; }
 
12667
cat >conftest.$ac_ext <<_ACEOF
 
12668
/* confdefs.h.  */
 
12669
_ACEOF
 
12670
cat confdefs.h >>conftest.$ac_ext
 
12671
cat >>conftest.$ac_ext <<_ACEOF
 
12672
/* end confdefs.h.  */
 
12673
#include <$ac_header>
 
12674
_ACEOF
 
12675
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
12676
case "(($ac_try" in
 
12677
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12678
  *) ac_try_echo=$ac_try;;
 
12679
esac
 
12680
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12681
$as_echo "$ac_try_echo") >&5
 
12682
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
12683
  ac_status=$?
 
12684
  grep -v '^ *+' conftest.er1 >conftest.err
 
12685
  rm -f conftest.er1
 
12686
  cat conftest.err >&5
 
12687
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12688
  (exit $ac_status); } >/dev/null && {
 
12689
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
12690
         test ! -s conftest.err
 
12691
       }; then
 
12692
  ac_header_preproc=yes
 
12693
else
 
12694
  $as_echo "$as_me: failed program was:" >&5
 
12695
sed 's/^/| /' conftest.$ac_ext >&5
 
12696
 
 
12697
  ac_header_preproc=no
 
12698
fi
 
12699
 
 
12700
rm -f conftest.err conftest.$ac_ext
 
12701
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
12702
$as_echo "$ac_header_preproc" >&6; }
 
12703
 
 
12704
# So?  What about this header?
 
12705
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
12706
  yes:no: )
 
12707
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
12708
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
12709
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
12710
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
12711
    ac_header_preproc=yes
 
12712
    ;;
 
12713
  no:yes:* )
 
12714
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
12715
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
12716
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
12717
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
12718
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
12719
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
12720
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
12721
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
12722
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
12723
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
12724
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
12725
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
12726
    ( cat <<\_ASBOX
 
12727
## ------------------------------- ##
 
12728
## Report this to bug-wget@gnu.org ##
 
12729
## ------------------------------- ##
 
12730
_ASBOX
 
12731
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
12732
    ;;
 
12733
esac
 
12734
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
12735
$as_echo_n "checking for $ac_header... " >&6; }
 
12736
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12737
  $as_echo_n "(cached) " >&6
 
12738
else
 
12739
  eval "$as_ac_Header=\$ac_header_preproc"
 
12740
fi
 
12741
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
12742
                 $as_echo "$as_val"'`
 
12743
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
12744
$as_echo "$ac_res" >&6; }
 
12745
 
 
12746
fi
 
12747
as_val=`eval 'as_val=${'$as_ac_Header'}
 
12748
                 $as_echo "$as_val"'`
 
12749
   if test "x$as_val" = x""yes; then
 
12750
  cat >>confdefs.h <<_ACEOF
 
12751
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
12752
_ACEOF
 
12753
 
 
12754
fi
 
12755
 
 
12756
done
 
12757
 
 
12758
 
 
12759
 
 
12760
 
 
12761
 
 
12762
  { $as_echo "$as_me:$LINENO: checking for complete errno.h" >&5
 
12763
$as_echo_n "checking for complete errno.h... " >&6; }
 
12764
if test "${gl_cv_header_errno_h_complete+set}" = set; then
 
12765
  $as_echo_n "(cached) " >&6
 
12766
else
 
12767
 
 
12768
    cat >conftest.$ac_ext <<_ACEOF
 
12769
/* confdefs.h.  */
 
12770
_ACEOF
 
12771
cat confdefs.h >>conftest.$ac_ext
 
12772
cat >>conftest.$ac_ext <<_ACEOF
 
12773
/* end confdefs.h.  */
 
12774
 
 
12775
#include <errno.h>
 
12776
#if !defined ENOMSG
 
12777
booboo
 
12778
#endif
 
12779
#if !defined EIDRM
 
12780
booboo
 
12781
#endif
 
12782
#if !defined ENOLINK
 
12783
booboo
 
12784
#endif
 
12785
#if !defined EPROTO
 
12786
booboo
 
12787
#endif
 
12788
#if !defined EMULTIHOP
 
12789
booboo
 
12790
#endif
 
12791
#if !defined EBADMSG
 
12792
booboo
 
12793
#endif
 
12794
#if !defined EOVERFLOW
 
12795
booboo
 
12796
#endif
 
12797
#if !defined ENOTSUP
 
12798
booboo
 
12799
#endif
 
12800
#if !defined ESTALE
 
12801
booboo
 
12802
#endif
 
12803
#if !defined ECANCELED
 
12804
booboo
 
12805
#endif
 
12806
 
 
12807
_ACEOF
 
12808
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
12809
  $EGREP "booboo" >/dev/null 2>&1; then
 
12810
  gl_cv_header_errno_h_complete=no
 
12811
else
 
12812
  gl_cv_header_errno_h_complete=yes
 
12813
fi
 
12814
rm -f conftest*
 
12815
 
 
12816
 
 
12817
fi
 
12818
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_complete" >&5
 
12819
$as_echo "$gl_cv_header_errno_h_complete" >&6; }
 
12820
  if test $gl_cv_header_errno_h_complete = yes; then
 
12821
    ERRNO_H=''
 
12822
  else
 
12823
 
 
12824
 
 
12825
 
 
12826
 
 
12827
 
 
12828
 
 
12829
 
 
12830
 
 
12831
 
 
12832
 
 
12833
 
 
12834
     if test $gl_cv_have_include_next = yes; then
 
12835
       gl_cv_next_errno_h='<'errno.h'>'
 
12836
     else
 
12837
       { $as_echo "$as_me:$LINENO: checking absolute name of <errno.h>" >&5
 
12838
$as_echo_n "checking absolute name of <errno.h>... " >&6; }
 
12839
if test "${gl_cv_next_errno_h+set}" = set; then
 
12840
  $as_echo_n "(cached) " >&6
 
12841
else
 
12842
 
 
12843
          if test $ac_cv_header_errno_h = yes; then
 
12844
            cat >conftest.$ac_ext <<_ACEOF
 
12845
/* confdefs.h.  */
 
12846
_ACEOF
 
12847
cat confdefs.h >>conftest.$ac_ext
 
12848
cat >>conftest.$ac_ext <<_ACEOF
 
12849
/* end confdefs.h.  */
 
12850
#include <errno.h>
 
12851
 
 
12852
_ACEOF
 
12853
                                                                    case "$host_os" in
 
12854
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
12855
              *)    gl_absname_cpp="$ac_cpp" ;;
 
12856
            esac
 
12857
                                    gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
12858
               sed -n '\#/errno.h#{
 
12859
                 s#.*"\(.*/errno.h\)".*#\1#
 
12860
                 s#^/[^/]#//&#
 
12861
                 p
 
12862
                 q
 
12863
               }'`'"'
 
12864
          else
 
12865
            gl_cv_next_errno_h='<'errno.h'>'
 
12866
          fi
 
12867
 
 
12868
fi
 
12869
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_errno_h" >&5
 
12870
$as_echo "$gl_cv_next_errno_h" >&6; }
 
12871
     fi
 
12872
     NEXT_ERRNO_H=$gl_cv_next_errno_h
 
12873
 
 
12874
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
12875
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
12876
       gl_next_as_first_directive='<'errno.h'>'
 
12877
     else
 
12878
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
12879
       gl_next_as_first_directive=$gl_cv_next_errno_h
 
12880
     fi
 
12881
     NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
 
12882
 
 
12883
 
 
12884
 
 
12885
    ERRNO_H='errno.h'
 
12886
  fi
 
12887
 
 
12888
 
 
12889
  if test -n "$ERRNO_H"; then
 
12890
    { $as_echo "$as_me:$LINENO: checking for EMULTIHOP value" >&5
 
12891
$as_echo_n "checking for EMULTIHOP value... " >&6; }
 
12892
if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then
 
12893
  $as_echo_n "(cached) " >&6
 
12894
else
 
12895
 
 
12896
      cat >conftest.$ac_ext <<_ACEOF
 
12897
/* confdefs.h.  */
 
12898
_ACEOF
 
12899
cat confdefs.h >>conftest.$ac_ext
 
12900
cat >>conftest.$ac_ext <<_ACEOF
 
12901
/* end confdefs.h.  */
 
12902
 
 
12903
#include <errno.h>
 
12904
#ifdef EMULTIHOP
 
12905
yes
 
12906
#endif
 
12907
 
 
12908
_ACEOF
 
12909
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
12910
  $EGREP "yes" >/dev/null 2>&1; then
 
12911
  gl_cv_header_errno_h_EMULTIHOP=yes
 
12912
else
 
12913
  gl_cv_header_errno_h_EMULTIHOP=no
 
12914
fi
 
12915
rm -f conftest*
 
12916
 
 
12917
      if test $gl_cv_header_errno_h_EMULTIHOP = no; then
 
12918
        cat >conftest.$ac_ext <<_ACEOF
 
12919
/* confdefs.h.  */
 
12920
_ACEOF
 
12921
cat confdefs.h >>conftest.$ac_ext
 
12922
cat >>conftest.$ac_ext <<_ACEOF
 
12923
/* end confdefs.h.  */
 
12924
 
 
12925
#define _XOPEN_SOURCE_EXTENDED 1
 
12926
#include <errno.h>
 
12927
#ifdef EMULTIHOP
 
12928
yes
 
12929
#endif
 
12930
 
 
12931
_ACEOF
 
12932
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
12933
  $EGREP "yes" >/dev/null 2>&1; then
 
12934
  gl_cv_header_errno_h_EMULTIHOP=hidden
 
12935
fi
 
12936
rm -f conftest*
 
12937
 
 
12938
        if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
 
12939
                              if test "$cross_compiling" = yes; then
 
12940
  # Depending upon the size, compute the lo and hi bounds.
 
12941
cat >conftest.$ac_ext <<_ACEOF
 
12942
/* confdefs.h.  */
 
12943
_ACEOF
 
12944
cat confdefs.h >>conftest.$ac_ext
 
12945
cat >>conftest.$ac_ext <<_ACEOF
 
12946
/* end confdefs.h.  */
 
12947
 
 
12948
#define _XOPEN_SOURCE_EXTENDED 1
 
12949
#include <errno.h>
 
12950
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
 
12951
#include <stdio.h>
 
12952
#include <stdlib.h>
 
12953
 
 
12954
int
 
12955
main ()
 
12956
{
 
12957
static int test_array [1 - 2 * !((EMULTIHOP) >= 0)];
 
12958
test_array [0] = 0
 
12959
 
 
12960
  ;
 
12961
  return 0;
 
12962
}
 
12963
_ACEOF
 
12964
rm -f conftest.$ac_objext
 
12965
if { (ac_try="$ac_compile"
 
12966
case "(($ac_try" in
 
12967
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12968
  *) ac_try_echo=$ac_try;;
 
12969
esac
 
12970
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12971
$as_echo "$ac_try_echo") >&5
 
12972
  (eval "$ac_compile") 2>conftest.er1
 
12973
  ac_status=$?
 
12974
  grep -v '^ *+' conftest.er1 >conftest.err
 
12975
  rm -f conftest.er1
 
12976
  cat conftest.err >&5
 
12977
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12978
  (exit $ac_status); } && {
 
12979
         test -z "$ac_c_werror_flag" ||
 
12980
         test ! -s conftest.err
 
12981
       } && test -s conftest.$ac_objext; then
 
12982
  ac_lo=0 ac_mid=0
 
12983
  while :; do
 
12984
    cat >conftest.$ac_ext <<_ACEOF
 
12985
/* confdefs.h.  */
 
12986
_ACEOF
 
12987
cat confdefs.h >>conftest.$ac_ext
 
12988
cat >>conftest.$ac_ext <<_ACEOF
 
12989
/* end confdefs.h.  */
 
12990
 
 
12991
#define _XOPEN_SOURCE_EXTENDED 1
 
12992
#include <errno.h>
 
12993
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
 
12994
#include <stdio.h>
 
12995
#include <stdlib.h>
 
12996
 
 
12997
int
 
12998
main ()
 
12999
{
 
13000
static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
 
13001
test_array [0] = 0
 
13002
 
 
13003
  ;
 
13004
  return 0;
 
13005
}
 
13006
_ACEOF
 
13007
rm -f conftest.$ac_objext
 
13008
if { (ac_try="$ac_compile"
 
13009
case "(($ac_try" in
 
13010
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13011
  *) ac_try_echo=$ac_try;;
 
13012
esac
 
13013
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13014
$as_echo "$ac_try_echo") >&5
 
13015
  (eval "$ac_compile") 2>conftest.er1
 
13016
  ac_status=$?
 
13017
  grep -v '^ *+' conftest.er1 >conftest.err
 
13018
  rm -f conftest.er1
 
13019
  cat conftest.err >&5
 
13020
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13021
  (exit $ac_status); } && {
 
13022
         test -z "$ac_c_werror_flag" ||
 
13023
         test ! -s conftest.err
 
13024
       } && test -s conftest.$ac_objext; then
 
13025
  ac_hi=$ac_mid; break
 
13026
else
 
13027
  $as_echo "$as_me: failed program was:" >&5
 
13028
sed 's/^/| /' conftest.$ac_ext >&5
 
13029
 
 
13030
        ac_lo=`expr $ac_mid + 1`
 
13031
                        if test $ac_lo -le $ac_mid; then
 
13032
                          ac_lo= ac_hi=
 
13033
                          break
 
13034
                        fi
 
13035
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
13036
fi
 
13037
 
 
13038
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13039
  done
 
13040
else
 
13041
  $as_echo "$as_me: failed program was:" >&5
 
13042
sed 's/^/| /' conftest.$ac_ext >&5
 
13043
 
 
13044
        cat >conftest.$ac_ext <<_ACEOF
 
13045
/* confdefs.h.  */
 
13046
_ACEOF
 
13047
cat confdefs.h >>conftest.$ac_ext
 
13048
cat >>conftest.$ac_ext <<_ACEOF
 
13049
/* end confdefs.h.  */
 
13050
 
 
13051
#define _XOPEN_SOURCE_EXTENDED 1
 
13052
#include <errno.h>
 
13053
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
 
13054
#include <stdio.h>
 
13055
#include <stdlib.h>
 
13056
 
 
13057
int
 
13058
main ()
 
13059
{
 
13060
static int test_array [1 - 2 * !((EMULTIHOP) < 0)];
 
13061
test_array [0] = 0
 
13062
 
 
13063
  ;
 
13064
  return 0;
 
13065
}
 
13066
_ACEOF
 
13067
rm -f conftest.$ac_objext
 
13068
if { (ac_try="$ac_compile"
 
13069
case "(($ac_try" in
 
13070
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13071
  *) ac_try_echo=$ac_try;;
 
13072
esac
 
13073
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13074
$as_echo "$ac_try_echo") >&5
 
13075
  (eval "$ac_compile") 2>conftest.er1
 
13076
  ac_status=$?
 
13077
  grep -v '^ *+' conftest.er1 >conftest.err
 
13078
  rm -f conftest.er1
 
13079
  cat conftest.err >&5
 
13080
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13081
  (exit $ac_status); } && {
 
13082
         test -z "$ac_c_werror_flag" ||
 
13083
         test ! -s conftest.err
 
13084
       } && test -s conftest.$ac_objext; then
 
13085
  ac_hi=-1 ac_mid=-1
 
13086
  while :; do
 
13087
    cat >conftest.$ac_ext <<_ACEOF
 
13088
/* confdefs.h.  */
 
13089
_ACEOF
 
13090
cat confdefs.h >>conftest.$ac_ext
 
13091
cat >>conftest.$ac_ext <<_ACEOF
 
13092
/* end confdefs.h.  */
 
13093
 
 
13094
#define _XOPEN_SOURCE_EXTENDED 1
 
13095
#include <errno.h>
 
13096
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
 
13097
#include <stdio.h>
 
13098
#include <stdlib.h>
 
13099
 
 
13100
int
 
13101
main ()
 
13102
{
 
13103
static int test_array [1 - 2 * !((EMULTIHOP) >= $ac_mid)];
 
13104
test_array [0] = 0
 
13105
 
 
13106
  ;
 
13107
  return 0;
 
13108
}
 
13109
_ACEOF
 
13110
rm -f conftest.$ac_objext
 
13111
if { (ac_try="$ac_compile"
 
13112
case "(($ac_try" in
 
13113
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13114
  *) ac_try_echo=$ac_try;;
 
13115
esac
 
13116
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13117
$as_echo "$ac_try_echo") >&5
 
13118
  (eval "$ac_compile") 2>conftest.er1
 
13119
  ac_status=$?
 
13120
  grep -v '^ *+' conftest.er1 >conftest.err
 
13121
  rm -f conftest.er1
 
13122
  cat conftest.err >&5
 
13123
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13124
  (exit $ac_status); } && {
 
13125
         test -z "$ac_c_werror_flag" ||
 
13126
         test ! -s conftest.err
 
13127
       } && test -s conftest.$ac_objext; then
 
13128
  ac_lo=$ac_mid; break
 
13129
else
 
13130
  $as_echo "$as_me: failed program was:" >&5
 
13131
sed 's/^/| /' conftest.$ac_ext >&5
 
13132
 
 
13133
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
13134
                        if test $ac_mid -le $ac_hi; then
 
13135
                          ac_lo= ac_hi=
 
13136
                          break
 
13137
                        fi
 
13138
                        ac_mid=`expr 2 '*' $ac_mid`
 
13139
fi
 
13140
 
 
13141
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13142
  done
 
13143
else
 
13144
  $as_echo "$as_me: failed program was:" >&5
 
13145
sed 's/^/| /' conftest.$ac_ext >&5
 
13146
 
 
13147
        ac_lo= ac_hi=
 
13148
fi
 
13149
 
 
13150
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13151
fi
 
13152
 
 
13153
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13154
# Binary search between lo and hi bounds.
 
13155
while test "x$ac_lo" != "x$ac_hi"; do
 
13156
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
13157
  cat >conftest.$ac_ext <<_ACEOF
 
13158
/* confdefs.h.  */
 
13159
_ACEOF
 
13160
cat confdefs.h >>conftest.$ac_ext
 
13161
cat >>conftest.$ac_ext <<_ACEOF
 
13162
/* end confdefs.h.  */
 
13163
 
 
13164
#define _XOPEN_SOURCE_EXTENDED 1
 
13165
#include <errno.h>
 
13166
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
 
13167
#include <stdio.h>
 
13168
#include <stdlib.h>
 
13169
 
 
13170
int
 
13171
main ()
 
13172
{
 
13173
static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
 
13174
test_array [0] = 0
 
13175
 
 
13176
  ;
 
13177
  return 0;
 
13178
}
 
13179
_ACEOF
 
13180
rm -f conftest.$ac_objext
 
13181
if { (ac_try="$ac_compile"
 
13182
case "(($ac_try" in
 
13183
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13184
  *) ac_try_echo=$ac_try;;
 
13185
esac
 
13186
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13187
$as_echo "$ac_try_echo") >&5
 
13188
  (eval "$ac_compile") 2>conftest.er1
 
13189
  ac_status=$?
 
13190
  grep -v '^ *+' conftest.er1 >conftest.err
 
13191
  rm -f conftest.er1
 
13192
  cat conftest.err >&5
 
13193
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13194
  (exit $ac_status); } && {
 
13195
         test -z "$ac_c_werror_flag" ||
 
13196
         test ! -s conftest.err
 
13197
       } && test -s conftest.$ac_objext; then
 
13198
  ac_hi=$ac_mid
 
13199
else
 
13200
  $as_echo "$as_me: failed program was:" >&5
 
13201
sed 's/^/| /' conftest.$ac_ext >&5
 
13202
 
 
13203
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
13204
fi
 
13205
 
 
13206
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13207
done
 
13208
case $ac_lo in
 
13209
?*) gl_cv_header_errno_h_EMULTIHOP=$ac_lo;;
 
13210
'')  ;;
 
13211
esac
 
13212
else
 
13213
  cat >conftest.$ac_ext <<_ACEOF
 
13214
/* confdefs.h.  */
 
13215
_ACEOF
 
13216
cat confdefs.h >>conftest.$ac_ext
 
13217
cat >>conftest.$ac_ext <<_ACEOF
 
13218
/* end confdefs.h.  */
 
13219
 
 
13220
#define _XOPEN_SOURCE_EXTENDED 1
 
13221
#include <errno.h>
 
13222
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
 
13223
#include <stdio.h>
 
13224
#include <stdlib.h>
 
13225
 
 
13226
static long int longval () { return EMULTIHOP; }
 
13227
static unsigned long int ulongval () { return EMULTIHOP; }
 
13228
#include <stdio.h>
 
13229
#include <stdlib.h>
 
13230
int
 
13231
main ()
 
13232
{
 
13233
 
 
13234
  FILE *f = fopen ("conftest.val", "w");
 
13235
  if (! f)
 
13236
    return 1;
 
13237
  if ((EMULTIHOP) < 0)
 
13238
    {
 
13239
      long int i = longval ();
 
13240
      if (i != (EMULTIHOP))
 
13241
        return 1;
 
13242
      fprintf (f, "%ld", i);
 
13243
    }
 
13244
  else
 
13245
    {
 
13246
      unsigned long int i = ulongval ();
 
13247
      if (i != (EMULTIHOP))
 
13248
        return 1;
 
13249
      fprintf (f, "%lu", i);
 
13250
    }
 
13251
  /* Do not output a trailing newline, as this causes \r\n confusion
 
13252
     on some platforms.  */
 
13253
  return ferror (f) || fclose (f) != 0;
 
13254
 
 
13255
  ;
 
13256
  return 0;
 
13257
}
 
13258
_ACEOF
 
13259
rm -f conftest$ac_exeext
 
13260
if { (ac_try="$ac_link"
 
13261
case "(($ac_try" in
 
13262
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13263
  *) ac_try_echo=$ac_try;;
 
13264
esac
 
13265
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13266
$as_echo "$ac_try_echo") >&5
 
13267
  (eval "$ac_link") 2>&5
 
13268
  ac_status=$?
 
13269
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13270
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
13271
  { (case "(($ac_try" in
 
13272
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13273
  *) ac_try_echo=$ac_try;;
 
13274
esac
 
13275
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13276
$as_echo "$ac_try_echo") >&5
 
13277
  (eval "$ac_try") 2>&5
 
13278
  ac_status=$?
 
13279
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13280
  (exit $ac_status); }; }; then
 
13281
  gl_cv_header_errno_h_EMULTIHOP=`cat conftest.val`
 
13282
else
 
13283
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
13284
$as_echo "$as_me: failed program was:" >&5
 
13285
sed 's/^/| /' conftest.$ac_ext >&5
 
13286
 
 
13287
fi
 
13288
rm -rf conftest.dSYM
 
13289
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
13290
fi
 
13291
rm -f conftest.val
 
13292
        fi
 
13293
      fi
 
13294
 
 
13295
fi
 
13296
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
 
13297
$as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
 
13298
    case $gl_cv_header_errno_h_EMULTIHOP in
 
13299
      yes | no)
 
13300
        EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
 
13301
        ;;
 
13302
      *)
 
13303
        EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
 
13304
        ;;
 
13305
    esac
 
13306
 
 
13307
 
 
13308
  fi
 
13309
 
 
13310
 
 
13311
  if test -n "$ERRNO_H"; then
 
13312
    { $as_echo "$as_me:$LINENO: checking for ENOLINK value" >&5
 
13313
$as_echo_n "checking for ENOLINK value... " >&6; }
 
13314
if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then
 
13315
  $as_echo_n "(cached) " >&6
 
13316
else
 
13317
 
 
13318
      cat >conftest.$ac_ext <<_ACEOF
 
13319
/* confdefs.h.  */
 
13320
_ACEOF
 
13321
cat confdefs.h >>conftest.$ac_ext
 
13322
cat >>conftest.$ac_ext <<_ACEOF
 
13323
/* end confdefs.h.  */
 
13324
 
 
13325
#include <errno.h>
 
13326
#ifdef ENOLINK
 
13327
yes
 
13328
#endif
 
13329
 
 
13330
_ACEOF
 
13331
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
13332
  $EGREP "yes" >/dev/null 2>&1; then
 
13333
  gl_cv_header_errno_h_ENOLINK=yes
 
13334
else
 
13335
  gl_cv_header_errno_h_ENOLINK=no
 
13336
fi
 
13337
rm -f conftest*
 
13338
 
 
13339
      if test $gl_cv_header_errno_h_ENOLINK = no; then
 
13340
        cat >conftest.$ac_ext <<_ACEOF
 
13341
/* confdefs.h.  */
 
13342
_ACEOF
 
13343
cat confdefs.h >>conftest.$ac_ext
 
13344
cat >>conftest.$ac_ext <<_ACEOF
 
13345
/* end confdefs.h.  */
 
13346
 
 
13347
#define _XOPEN_SOURCE_EXTENDED 1
 
13348
#include <errno.h>
 
13349
#ifdef ENOLINK
 
13350
yes
 
13351
#endif
 
13352
 
 
13353
_ACEOF
 
13354
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
13355
  $EGREP "yes" >/dev/null 2>&1; then
 
13356
  gl_cv_header_errno_h_ENOLINK=hidden
 
13357
fi
 
13358
rm -f conftest*
 
13359
 
 
13360
        if test $gl_cv_header_errno_h_ENOLINK = hidden; then
 
13361
                              if test "$cross_compiling" = yes; then
 
13362
  # Depending upon the size, compute the lo and hi bounds.
 
13363
cat >conftest.$ac_ext <<_ACEOF
 
13364
/* confdefs.h.  */
 
13365
_ACEOF
 
13366
cat confdefs.h >>conftest.$ac_ext
 
13367
cat >>conftest.$ac_ext <<_ACEOF
 
13368
/* end confdefs.h.  */
 
13369
 
 
13370
#define _XOPEN_SOURCE_EXTENDED 1
 
13371
#include <errno.h>
 
13372
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
 
13373
#include <stdio.h>
 
13374
#include <stdlib.h>
 
13375
 
 
13376
int
 
13377
main ()
 
13378
{
 
13379
static int test_array [1 - 2 * !((ENOLINK) >= 0)];
 
13380
test_array [0] = 0
 
13381
 
 
13382
  ;
 
13383
  return 0;
 
13384
}
 
13385
_ACEOF
 
13386
rm -f conftest.$ac_objext
 
13387
if { (ac_try="$ac_compile"
 
13388
case "(($ac_try" in
 
13389
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13390
  *) ac_try_echo=$ac_try;;
 
13391
esac
 
13392
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13393
$as_echo "$ac_try_echo") >&5
 
13394
  (eval "$ac_compile") 2>conftest.er1
 
13395
  ac_status=$?
 
13396
  grep -v '^ *+' conftest.er1 >conftest.err
 
13397
  rm -f conftest.er1
 
13398
  cat conftest.err >&5
 
13399
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13400
  (exit $ac_status); } && {
 
13401
         test -z "$ac_c_werror_flag" ||
 
13402
         test ! -s conftest.err
 
13403
       } && test -s conftest.$ac_objext; then
 
13404
  ac_lo=0 ac_mid=0
 
13405
  while :; do
 
13406
    cat >conftest.$ac_ext <<_ACEOF
 
13407
/* confdefs.h.  */
 
13408
_ACEOF
 
13409
cat confdefs.h >>conftest.$ac_ext
 
13410
cat >>conftest.$ac_ext <<_ACEOF
 
13411
/* end confdefs.h.  */
 
13412
 
 
13413
#define _XOPEN_SOURCE_EXTENDED 1
 
13414
#include <errno.h>
 
13415
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
 
13416
#include <stdio.h>
 
13417
#include <stdlib.h>
 
13418
 
 
13419
int
 
13420
main ()
 
13421
{
 
13422
static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
 
13423
test_array [0] = 0
 
13424
 
 
13425
  ;
 
13426
  return 0;
 
13427
}
 
13428
_ACEOF
 
13429
rm -f conftest.$ac_objext
 
13430
if { (ac_try="$ac_compile"
 
13431
case "(($ac_try" in
 
13432
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13433
  *) ac_try_echo=$ac_try;;
 
13434
esac
 
13435
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13436
$as_echo "$ac_try_echo") >&5
 
13437
  (eval "$ac_compile") 2>conftest.er1
 
13438
  ac_status=$?
 
13439
  grep -v '^ *+' conftest.er1 >conftest.err
 
13440
  rm -f conftest.er1
 
13441
  cat conftest.err >&5
 
13442
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13443
  (exit $ac_status); } && {
 
13444
         test -z "$ac_c_werror_flag" ||
 
13445
         test ! -s conftest.err
 
13446
       } && test -s conftest.$ac_objext; then
 
13447
  ac_hi=$ac_mid; break
 
13448
else
 
13449
  $as_echo "$as_me: failed program was:" >&5
 
13450
sed 's/^/| /' conftest.$ac_ext >&5
 
13451
 
 
13452
        ac_lo=`expr $ac_mid + 1`
 
13453
                        if test $ac_lo -le $ac_mid; then
 
13454
                          ac_lo= ac_hi=
 
13455
                          break
 
13456
                        fi
 
13457
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
13458
fi
 
13459
 
 
13460
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13461
  done
 
13462
else
 
13463
  $as_echo "$as_me: failed program was:" >&5
 
13464
sed 's/^/| /' conftest.$ac_ext >&5
 
13465
 
 
13466
        cat >conftest.$ac_ext <<_ACEOF
 
13467
/* confdefs.h.  */
 
13468
_ACEOF
 
13469
cat confdefs.h >>conftest.$ac_ext
 
13470
cat >>conftest.$ac_ext <<_ACEOF
 
13471
/* end confdefs.h.  */
 
13472
 
 
13473
#define _XOPEN_SOURCE_EXTENDED 1
 
13474
#include <errno.h>
 
13475
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
 
13476
#include <stdio.h>
 
13477
#include <stdlib.h>
 
13478
 
 
13479
int
 
13480
main ()
 
13481
{
 
13482
static int test_array [1 - 2 * !((ENOLINK) < 0)];
 
13483
test_array [0] = 0
 
13484
 
 
13485
  ;
 
13486
  return 0;
 
13487
}
 
13488
_ACEOF
 
13489
rm -f conftest.$ac_objext
 
13490
if { (ac_try="$ac_compile"
 
13491
case "(($ac_try" in
 
13492
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13493
  *) ac_try_echo=$ac_try;;
 
13494
esac
 
13495
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13496
$as_echo "$ac_try_echo") >&5
 
13497
  (eval "$ac_compile") 2>conftest.er1
 
13498
  ac_status=$?
 
13499
  grep -v '^ *+' conftest.er1 >conftest.err
 
13500
  rm -f conftest.er1
 
13501
  cat conftest.err >&5
 
13502
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13503
  (exit $ac_status); } && {
 
13504
         test -z "$ac_c_werror_flag" ||
 
13505
         test ! -s conftest.err
 
13506
       } && test -s conftest.$ac_objext; then
 
13507
  ac_hi=-1 ac_mid=-1
 
13508
  while :; do
 
13509
    cat >conftest.$ac_ext <<_ACEOF
 
13510
/* confdefs.h.  */
 
13511
_ACEOF
 
13512
cat confdefs.h >>conftest.$ac_ext
 
13513
cat >>conftest.$ac_ext <<_ACEOF
 
13514
/* end confdefs.h.  */
 
13515
 
 
13516
#define _XOPEN_SOURCE_EXTENDED 1
 
13517
#include <errno.h>
 
13518
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
 
13519
#include <stdio.h>
 
13520
#include <stdlib.h>
 
13521
 
 
13522
int
 
13523
main ()
 
13524
{
 
13525
static int test_array [1 - 2 * !((ENOLINK) >= $ac_mid)];
 
13526
test_array [0] = 0
 
13527
 
 
13528
  ;
 
13529
  return 0;
 
13530
}
 
13531
_ACEOF
 
13532
rm -f conftest.$ac_objext
 
13533
if { (ac_try="$ac_compile"
 
13534
case "(($ac_try" in
 
13535
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13536
  *) ac_try_echo=$ac_try;;
 
13537
esac
 
13538
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13539
$as_echo "$ac_try_echo") >&5
 
13540
  (eval "$ac_compile") 2>conftest.er1
 
13541
  ac_status=$?
 
13542
  grep -v '^ *+' conftest.er1 >conftest.err
 
13543
  rm -f conftest.er1
 
13544
  cat conftest.err >&5
 
13545
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13546
  (exit $ac_status); } && {
 
13547
         test -z "$ac_c_werror_flag" ||
 
13548
         test ! -s conftest.err
 
13549
       } && test -s conftest.$ac_objext; then
 
13550
  ac_lo=$ac_mid; break
 
13551
else
 
13552
  $as_echo "$as_me: failed program was:" >&5
 
13553
sed 's/^/| /' conftest.$ac_ext >&5
 
13554
 
 
13555
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
13556
                        if test $ac_mid -le $ac_hi; then
 
13557
                          ac_lo= ac_hi=
 
13558
                          break
 
13559
                        fi
 
13560
                        ac_mid=`expr 2 '*' $ac_mid`
 
13561
fi
 
13562
 
 
13563
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13564
  done
 
13565
else
 
13566
  $as_echo "$as_me: failed program was:" >&5
 
13567
sed 's/^/| /' conftest.$ac_ext >&5
 
13568
 
 
13569
        ac_lo= ac_hi=
 
13570
fi
 
13571
 
 
13572
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13573
fi
 
13574
 
 
13575
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13576
# Binary search between lo and hi bounds.
 
13577
while test "x$ac_lo" != "x$ac_hi"; do
 
13578
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
13579
  cat >conftest.$ac_ext <<_ACEOF
 
13580
/* confdefs.h.  */
 
13581
_ACEOF
 
13582
cat confdefs.h >>conftest.$ac_ext
 
13583
cat >>conftest.$ac_ext <<_ACEOF
 
13584
/* end confdefs.h.  */
 
13585
 
 
13586
#define _XOPEN_SOURCE_EXTENDED 1
 
13587
#include <errno.h>
 
13588
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
 
13589
#include <stdio.h>
 
13590
#include <stdlib.h>
 
13591
 
 
13592
int
 
13593
main ()
 
13594
{
 
13595
static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
 
13596
test_array [0] = 0
 
13597
 
 
13598
  ;
 
13599
  return 0;
 
13600
}
 
13601
_ACEOF
 
13602
rm -f conftest.$ac_objext
 
13603
if { (ac_try="$ac_compile"
 
13604
case "(($ac_try" in
 
13605
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13606
  *) ac_try_echo=$ac_try;;
 
13607
esac
 
13608
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13609
$as_echo "$ac_try_echo") >&5
 
13610
  (eval "$ac_compile") 2>conftest.er1
 
13611
  ac_status=$?
 
13612
  grep -v '^ *+' conftest.er1 >conftest.err
 
13613
  rm -f conftest.er1
 
13614
  cat conftest.err >&5
 
13615
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13616
  (exit $ac_status); } && {
 
13617
         test -z "$ac_c_werror_flag" ||
 
13618
         test ! -s conftest.err
 
13619
       } && test -s conftest.$ac_objext; then
 
13620
  ac_hi=$ac_mid
 
13621
else
 
13622
  $as_echo "$as_me: failed program was:" >&5
 
13623
sed 's/^/| /' conftest.$ac_ext >&5
 
13624
 
 
13625
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
13626
fi
 
13627
 
 
13628
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13629
done
 
13630
case $ac_lo in
 
13631
?*) gl_cv_header_errno_h_ENOLINK=$ac_lo;;
 
13632
'')  ;;
 
13633
esac
 
13634
else
 
13635
  cat >conftest.$ac_ext <<_ACEOF
 
13636
/* confdefs.h.  */
 
13637
_ACEOF
 
13638
cat confdefs.h >>conftest.$ac_ext
 
13639
cat >>conftest.$ac_ext <<_ACEOF
 
13640
/* end confdefs.h.  */
 
13641
 
 
13642
#define _XOPEN_SOURCE_EXTENDED 1
 
13643
#include <errno.h>
 
13644
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
 
13645
#include <stdio.h>
 
13646
#include <stdlib.h>
 
13647
 
 
13648
static long int longval () { return ENOLINK; }
 
13649
static unsigned long int ulongval () { return ENOLINK; }
 
13650
#include <stdio.h>
 
13651
#include <stdlib.h>
 
13652
int
 
13653
main ()
 
13654
{
 
13655
 
 
13656
  FILE *f = fopen ("conftest.val", "w");
 
13657
  if (! f)
 
13658
    return 1;
 
13659
  if ((ENOLINK) < 0)
 
13660
    {
 
13661
      long int i = longval ();
 
13662
      if (i != (ENOLINK))
 
13663
        return 1;
 
13664
      fprintf (f, "%ld", i);
 
13665
    }
 
13666
  else
 
13667
    {
 
13668
      unsigned long int i = ulongval ();
 
13669
      if (i != (ENOLINK))
 
13670
        return 1;
 
13671
      fprintf (f, "%lu", i);
 
13672
    }
 
13673
  /* Do not output a trailing newline, as this causes \r\n confusion
 
13674
     on some platforms.  */
 
13675
  return ferror (f) || fclose (f) != 0;
 
13676
 
 
13677
  ;
 
13678
  return 0;
 
13679
}
 
13680
_ACEOF
 
13681
rm -f conftest$ac_exeext
 
13682
if { (ac_try="$ac_link"
 
13683
case "(($ac_try" in
 
13684
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13685
  *) ac_try_echo=$ac_try;;
 
13686
esac
 
13687
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13688
$as_echo "$ac_try_echo") >&5
 
13689
  (eval "$ac_link") 2>&5
 
13690
  ac_status=$?
 
13691
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13692
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
13693
  { (case "(($ac_try" in
 
13694
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13695
  *) ac_try_echo=$ac_try;;
 
13696
esac
 
13697
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13698
$as_echo "$ac_try_echo") >&5
 
13699
  (eval "$ac_try") 2>&5
 
13700
  ac_status=$?
 
13701
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13702
  (exit $ac_status); }; }; then
 
13703
  gl_cv_header_errno_h_ENOLINK=`cat conftest.val`
 
13704
else
 
13705
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
13706
$as_echo "$as_me: failed program was:" >&5
 
13707
sed 's/^/| /' conftest.$ac_ext >&5
 
13708
 
 
13709
fi
 
13710
rm -rf conftest.dSYM
 
13711
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
13712
fi
 
13713
rm -f conftest.val
 
13714
        fi
 
13715
      fi
 
13716
 
 
13717
fi
 
13718
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_ENOLINK" >&5
 
13719
$as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
 
13720
    case $gl_cv_header_errno_h_ENOLINK in
 
13721
      yes | no)
 
13722
        ENOLINK_HIDDEN=0; ENOLINK_VALUE=
 
13723
        ;;
 
13724
      *)
 
13725
        ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
 
13726
        ;;
 
13727
    esac
 
13728
 
 
13729
 
 
13730
  fi
 
13731
 
 
13732
 
 
13733
  if test -n "$ERRNO_H"; then
 
13734
    { $as_echo "$as_me:$LINENO: checking for EOVERFLOW value" >&5
 
13735
$as_echo_n "checking for EOVERFLOW value... " >&6; }
 
13736
if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then
 
13737
  $as_echo_n "(cached) " >&6
 
13738
else
 
13739
 
 
13740
      cat >conftest.$ac_ext <<_ACEOF
 
13741
/* confdefs.h.  */
 
13742
_ACEOF
 
13743
cat confdefs.h >>conftest.$ac_ext
 
13744
cat >>conftest.$ac_ext <<_ACEOF
 
13745
/* end confdefs.h.  */
 
13746
 
 
13747
#include <errno.h>
 
13748
#ifdef EOVERFLOW
 
13749
yes
 
13750
#endif
 
13751
 
 
13752
_ACEOF
 
13753
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
13754
  $EGREP "yes" >/dev/null 2>&1; then
 
13755
  gl_cv_header_errno_h_EOVERFLOW=yes
 
13756
else
 
13757
  gl_cv_header_errno_h_EOVERFLOW=no
 
13758
fi
 
13759
rm -f conftest*
 
13760
 
 
13761
      if test $gl_cv_header_errno_h_EOVERFLOW = no; then
 
13762
        cat >conftest.$ac_ext <<_ACEOF
 
13763
/* confdefs.h.  */
 
13764
_ACEOF
 
13765
cat confdefs.h >>conftest.$ac_ext
 
13766
cat >>conftest.$ac_ext <<_ACEOF
 
13767
/* end confdefs.h.  */
 
13768
 
 
13769
#define _XOPEN_SOURCE_EXTENDED 1
 
13770
#include <errno.h>
 
13771
#ifdef EOVERFLOW
 
13772
yes
 
13773
#endif
 
13774
 
 
13775
_ACEOF
 
13776
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
13777
  $EGREP "yes" >/dev/null 2>&1; then
 
13778
  gl_cv_header_errno_h_EOVERFLOW=hidden
 
13779
fi
 
13780
rm -f conftest*
 
13781
 
 
13782
        if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
 
13783
                              if test "$cross_compiling" = yes; then
 
13784
  # Depending upon the size, compute the lo and hi bounds.
 
13785
cat >conftest.$ac_ext <<_ACEOF
 
13786
/* confdefs.h.  */
 
13787
_ACEOF
 
13788
cat confdefs.h >>conftest.$ac_ext
 
13789
cat >>conftest.$ac_ext <<_ACEOF
 
13790
/* end confdefs.h.  */
 
13791
 
 
13792
#define _XOPEN_SOURCE_EXTENDED 1
 
13793
#include <errno.h>
 
13794
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
 
13795
#include <stdio.h>
 
13796
#include <stdlib.h>
 
13797
 
 
13798
int
 
13799
main ()
 
13800
{
 
13801
static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
 
13802
test_array [0] = 0
 
13803
 
 
13804
  ;
 
13805
  return 0;
 
13806
}
 
13807
_ACEOF
 
13808
rm -f conftest.$ac_objext
 
13809
if { (ac_try="$ac_compile"
 
13810
case "(($ac_try" in
 
13811
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13812
  *) ac_try_echo=$ac_try;;
 
13813
esac
 
13814
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13815
$as_echo "$ac_try_echo") >&5
 
13816
  (eval "$ac_compile") 2>conftest.er1
 
13817
  ac_status=$?
 
13818
  grep -v '^ *+' conftest.er1 >conftest.err
 
13819
  rm -f conftest.er1
 
13820
  cat conftest.err >&5
 
13821
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13822
  (exit $ac_status); } && {
 
13823
         test -z "$ac_c_werror_flag" ||
 
13824
         test ! -s conftest.err
 
13825
       } && test -s conftest.$ac_objext; then
 
13826
  ac_lo=0 ac_mid=0
 
13827
  while :; do
 
13828
    cat >conftest.$ac_ext <<_ACEOF
 
13829
/* confdefs.h.  */
 
13830
_ACEOF
 
13831
cat confdefs.h >>conftest.$ac_ext
 
13832
cat >>conftest.$ac_ext <<_ACEOF
 
13833
/* end confdefs.h.  */
 
13834
 
 
13835
#define _XOPEN_SOURCE_EXTENDED 1
 
13836
#include <errno.h>
 
13837
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
 
13838
#include <stdio.h>
 
13839
#include <stdlib.h>
 
13840
 
 
13841
int
 
13842
main ()
 
13843
{
 
13844
static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
 
13845
test_array [0] = 0
 
13846
 
 
13847
  ;
 
13848
  return 0;
 
13849
}
 
13850
_ACEOF
 
13851
rm -f conftest.$ac_objext
 
13852
if { (ac_try="$ac_compile"
 
13853
case "(($ac_try" in
 
13854
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13855
  *) ac_try_echo=$ac_try;;
 
13856
esac
 
13857
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13858
$as_echo "$ac_try_echo") >&5
 
13859
  (eval "$ac_compile") 2>conftest.er1
 
13860
  ac_status=$?
 
13861
  grep -v '^ *+' conftest.er1 >conftest.err
 
13862
  rm -f conftest.er1
 
13863
  cat conftest.err >&5
 
13864
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13865
  (exit $ac_status); } && {
 
13866
         test -z "$ac_c_werror_flag" ||
 
13867
         test ! -s conftest.err
 
13868
       } && test -s conftest.$ac_objext; then
 
13869
  ac_hi=$ac_mid; break
 
13870
else
 
13871
  $as_echo "$as_me: failed program was:" >&5
 
13872
sed 's/^/| /' conftest.$ac_ext >&5
 
13873
 
 
13874
        ac_lo=`expr $ac_mid + 1`
 
13875
                        if test $ac_lo -le $ac_mid; then
 
13876
                          ac_lo= ac_hi=
 
13877
                          break
 
13878
                        fi
 
13879
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
13880
fi
 
13881
 
 
13882
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13883
  done
 
13884
else
 
13885
  $as_echo "$as_me: failed program was:" >&5
 
13886
sed 's/^/| /' conftest.$ac_ext >&5
 
13887
 
 
13888
        cat >conftest.$ac_ext <<_ACEOF
 
13889
/* confdefs.h.  */
 
13890
_ACEOF
 
13891
cat confdefs.h >>conftest.$ac_ext
 
13892
cat >>conftest.$ac_ext <<_ACEOF
 
13893
/* end confdefs.h.  */
 
13894
 
 
13895
#define _XOPEN_SOURCE_EXTENDED 1
 
13896
#include <errno.h>
 
13897
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
 
13898
#include <stdio.h>
 
13899
#include <stdlib.h>
 
13900
 
 
13901
int
 
13902
main ()
 
13903
{
 
13904
static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
 
13905
test_array [0] = 0
 
13906
 
 
13907
  ;
 
13908
  return 0;
 
13909
}
 
13910
_ACEOF
 
13911
rm -f conftest.$ac_objext
 
13912
if { (ac_try="$ac_compile"
 
13913
case "(($ac_try" in
 
13914
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13915
  *) ac_try_echo=$ac_try;;
 
13916
esac
 
13917
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13918
$as_echo "$ac_try_echo") >&5
 
13919
  (eval "$ac_compile") 2>conftest.er1
 
13920
  ac_status=$?
 
13921
  grep -v '^ *+' conftest.er1 >conftest.err
 
13922
  rm -f conftest.er1
 
13923
  cat conftest.err >&5
 
13924
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13925
  (exit $ac_status); } && {
 
13926
         test -z "$ac_c_werror_flag" ||
 
13927
         test ! -s conftest.err
 
13928
       } && test -s conftest.$ac_objext; then
 
13929
  ac_hi=-1 ac_mid=-1
 
13930
  while :; do
 
13931
    cat >conftest.$ac_ext <<_ACEOF
 
13932
/* confdefs.h.  */
 
13933
_ACEOF
 
13934
cat confdefs.h >>conftest.$ac_ext
 
13935
cat >>conftest.$ac_ext <<_ACEOF
 
13936
/* end confdefs.h.  */
 
13937
 
 
13938
#define _XOPEN_SOURCE_EXTENDED 1
 
13939
#include <errno.h>
 
13940
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
 
13941
#include <stdio.h>
 
13942
#include <stdlib.h>
 
13943
 
 
13944
int
 
13945
main ()
 
13946
{
 
13947
static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
 
13948
test_array [0] = 0
 
13949
 
 
13950
  ;
 
13951
  return 0;
 
13952
}
 
13953
_ACEOF
 
13954
rm -f conftest.$ac_objext
 
13955
if { (ac_try="$ac_compile"
 
13956
case "(($ac_try" in
 
13957
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13958
  *) ac_try_echo=$ac_try;;
 
13959
esac
 
13960
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13961
$as_echo "$ac_try_echo") >&5
 
13962
  (eval "$ac_compile") 2>conftest.er1
 
13963
  ac_status=$?
 
13964
  grep -v '^ *+' conftest.er1 >conftest.err
 
13965
  rm -f conftest.er1
 
13966
  cat conftest.err >&5
 
13967
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13968
  (exit $ac_status); } && {
 
13969
         test -z "$ac_c_werror_flag" ||
 
13970
         test ! -s conftest.err
 
13971
       } && test -s conftest.$ac_objext; then
 
13972
  ac_lo=$ac_mid; break
 
13973
else
 
13974
  $as_echo "$as_me: failed program was:" >&5
 
13975
sed 's/^/| /' conftest.$ac_ext >&5
 
13976
 
 
13977
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
13978
                        if test $ac_mid -le $ac_hi; then
 
13979
                          ac_lo= ac_hi=
 
13980
                          break
 
13981
                        fi
 
13982
                        ac_mid=`expr 2 '*' $ac_mid`
 
13983
fi
 
13984
 
 
13985
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13986
  done
 
13987
else
 
13988
  $as_echo "$as_me: failed program was:" >&5
 
13989
sed 's/^/| /' conftest.$ac_ext >&5
 
13990
 
 
13991
        ac_lo= ac_hi=
 
13992
fi
 
13993
 
 
13994
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13995
fi
 
13996
 
 
13997
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13998
# Binary search between lo and hi bounds.
 
13999
while test "x$ac_lo" != "x$ac_hi"; do
 
14000
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
14001
  cat >conftest.$ac_ext <<_ACEOF
 
14002
/* confdefs.h.  */
 
14003
_ACEOF
 
14004
cat confdefs.h >>conftest.$ac_ext
 
14005
cat >>conftest.$ac_ext <<_ACEOF
 
14006
/* end confdefs.h.  */
 
14007
 
 
14008
#define _XOPEN_SOURCE_EXTENDED 1
 
14009
#include <errno.h>
 
14010
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
 
14011
#include <stdio.h>
 
14012
#include <stdlib.h>
 
14013
 
 
14014
int
 
14015
main ()
 
14016
{
 
14017
static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
 
14018
test_array [0] = 0
 
14019
 
 
14020
  ;
 
14021
  return 0;
 
14022
}
 
14023
_ACEOF
 
14024
rm -f conftest.$ac_objext
 
14025
if { (ac_try="$ac_compile"
 
14026
case "(($ac_try" in
 
14027
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14028
  *) ac_try_echo=$ac_try;;
 
14029
esac
 
14030
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
14031
$as_echo "$ac_try_echo") >&5
 
14032
  (eval "$ac_compile") 2>conftest.er1
 
14033
  ac_status=$?
 
14034
  grep -v '^ *+' conftest.er1 >conftest.err
 
14035
  rm -f conftest.er1
 
14036
  cat conftest.err >&5
 
14037
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14038
  (exit $ac_status); } && {
 
14039
         test -z "$ac_c_werror_flag" ||
 
14040
         test ! -s conftest.err
 
14041
       } && test -s conftest.$ac_objext; then
 
14042
  ac_hi=$ac_mid
 
14043
else
 
14044
  $as_echo "$as_me: failed program was:" >&5
 
14045
sed 's/^/| /' conftest.$ac_ext >&5
 
14046
 
 
14047
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
14048
fi
 
14049
 
 
14050
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14051
done
 
14052
case $ac_lo in
 
14053
?*) gl_cv_header_errno_h_EOVERFLOW=$ac_lo;;
 
14054
'')  ;;
 
14055
esac
 
14056
else
 
14057
  cat >conftest.$ac_ext <<_ACEOF
 
14058
/* confdefs.h.  */
 
14059
_ACEOF
 
14060
cat confdefs.h >>conftest.$ac_ext
 
14061
cat >>conftest.$ac_ext <<_ACEOF
 
14062
/* end confdefs.h.  */
 
14063
 
 
14064
#define _XOPEN_SOURCE_EXTENDED 1
 
14065
#include <errno.h>
 
14066
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
 
14067
#include <stdio.h>
 
14068
#include <stdlib.h>
 
14069
 
 
14070
static long int longval () { return EOVERFLOW; }
 
14071
static unsigned long int ulongval () { return EOVERFLOW; }
 
14072
#include <stdio.h>
 
14073
#include <stdlib.h>
 
14074
int
 
14075
main ()
 
14076
{
 
14077
 
 
14078
  FILE *f = fopen ("conftest.val", "w");
 
14079
  if (! f)
 
14080
    return 1;
 
14081
  if ((EOVERFLOW) < 0)
 
14082
    {
 
14083
      long int i = longval ();
 
14084
      if (i != (EOVERFLOW))
 
14085
        return 1;
 
14086
      fprintf (f, "%ld", i);
 
14087
    }
 
14088
  else
 
14089
    {
 
14090
      unsigned long int i = ulongval ();
 
14091
      if (i != (EOVERFLOW))
 
14092
        return 1;
 
14093
      fprintf (f, "%lu", i);
 
14094
    }
 
14095
  /* Do not output a trailing newline, as this causes \r\n confusion
 
14096
     on some platforms.  */
 
14097
  return ferror (f) || fclose (f) != 0;
 
14098
 
 
14099
  ;
 
14100
  return 0;
 
14101
}
 
14102
_ACEOF
 
14103
rm -f conftest$ac_exeext
 
14104
if { (ac_try="$ac_link"
 
14105
case "(($ac_try" in
 
14106
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14107
  *) ac_try_echo=$ac_try;;
 
14108
esac
 
14109
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
14110
$as_echo "$ac_try_echo") >&5
 
14111
  (eval "$ac_link") 2>&5
 
14112
  ac_status=$?
 
14113
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14114
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
14115
  { (case "(($ac_try" in
 
14116
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14117
  *) ac_try_echo=$ac_try;;
 
14118
esac
 
14119
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
14120
$as_echo "$ac_try_echo") >&5
 
14121
  (eval "$ac_try") 2>&5
 
14122
  ac_status=$?
 
14123
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14124
  (exit $ac_status); }; }; then
 
14125
  gl_cv_header_errno_h_EOVERFLOW=`cat conftest.val`
 
14126
else
 
14127
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
14128
$as_echo "$as_me: failed program was:" >&5
 
14129
sed 's/^/| /' conftest.$ac_ext >&5
 
14130
 
 
14131
fi
 
14132
rm -rf conftest.dSYM
 
14133
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
14134
fi
 
14135
rm -f conftest.val
 
14136
        fi
 
14137
      fi
 
14138
 
 
14139
fi
 
14140
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
 
14141
$as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
 
14142
    case $gl_cv_header_errno_h_EOVERFLOW in
 
14143
      yes | no)
 
14144
        EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
 
14145
        ;;
 
14146
      *)
 
14147
        EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
 
14148
        ;;
 
14149
    esac
 
14150
 
 
14151
 
 
14152
  fi
 
14153
 
 
14154
 
 
14155
{ $as_echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
 
14156
$as_echo_n "checking whether strerror_r is declared... " >&6; }
 
14157
if test "${ac_cv_have_decl_strerror_r+set}" = set; then
 
14158
  $as_echo_n "(cached) " >&6
 
14159
else
 
14160
  cat >conftest.$ac_ext <<_ACEOF
 
14161
/* confdefs.h.  */
 
14162
_ACEOF
 
14163
cat confdefs.h >>conftest.$ac_ext
 
14164
cat >>conftest.$ac_ext <<_ACEOF
 
14165
/* end confdefs.h.  */
 
14166
$ac_includes_default
 
14167
int
 
14168
main ()
 
14169
{
 
14170
#ifndef strerror_r
 
14171
  (void) strerror_r;
 
14172
#endif
 
14173
 
 
14174
  ;
 
14175
  return 0;
 
14176
}
 
14177
_ACEOF
 
14178
rm -f conftest.$ac_objext
 
14179
if { (ac_try="$ac_compile"
 
14180
case "(($ac_try" in
 
14181
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14182
  *) ac_try_echo=$ac_try;;
 
14183
esac
 
14184
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
14185
$as_echo "$ac_try_echo") >&5
 
14186
  (eval "$ac_compile") 2>conftest.er1
 
14187
  ac_status=$?
 
14188
  grep -v '^ *+' conftest.er1 >conftest.err
 
14189
  rm -f conftest.er1
 
14190
  cat conftest.err >&5
 
14191
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14192
  (exit $ac_status); } && {
 
14193
         test -z "$ac_c_werror_flag" ||
 
14194
         test ! -s conftest.err
 
14195
       } && test -s conftest.$ac_objext; then
 
14196
  ac_cv_have_decl_strerror_r=yes
 
14197
else
 
14198
  $as_echo "$as_me: failed program was:" >&5
 
14199
sed 's/^/| /' conftest.$ac_ext >&5
 
14200
 
 
14201
        ac_cv_have_decl_strerror_r=no
 
14202
fi
 
14203
 
 
14204
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14205
fi
 
14206
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
 
14207
$as_echo "$ac_cv_have_decl_strerror_r" >&6; }
 
14208
if test "x$ac_cv_have_decl_strerror_r" = x""yes; then
 
14209
 
 
14210
cat >>confdefs.h <<_ACEOF
 
14211
#define HAVE_DECL_STRERROR_R 1
 
14212
_ACEOF
 
14213
 
 
14214
 
 
14215
else
 
14216
  cat >>confdefs.h <<_ACEOF
 
14217
#define HAVE_DECL_STRERROR_R 0
 
14218
_ACEOF
 
14219
 
 
14220
 
 
14221
fi
 
14222
 
 
14223
 
 
14224
 
 
14225
for ac_func in strerror_r
 
14226
do
 
14227
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
14228
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
14229
$as_echo_n "checking for $ac_func... " >&6; }
 
14230
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
14231
  $as_echo_n "(cached) " >&6
 
14232
else
 
14233
  cat >conftest.$ac_ext <<_ACEOF
 
14234
/* confdefs.h.  */
 
14235
_ACEOF
 
14236
cat confdefs.h >>conftest.$ac_ext
 
14237
cat >>conftest.$ac_ext <<_ACEOF
 
14238
/* end confdefs.h.  */
 
14239
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
14240
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
14241
#define $ac_func innocuous_$ac_func
 
14242
 
 
14243
/* System header to define __stub macros and hopefully few prototypes,
 
14244
    which can conflict with char $ac_func (); below.
 
14245
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
14246
    <limits.h> exists even on freestanding compilers.  */
 
14247
 
 
14248
#ifdef __STDC__
 
14249
# include <limits.h>
 
14250
#else
 
14251
# include <assert.h>
 
14252
#endif
 
14253
 
 
14254
#undef $ac_func
 
14255
 
 
14256
/* Override any GCC internal prototype to avoid an error.
 
14257
   Use char because int might match the return type of a GCC
 
14258
   builtin and then its argument prototype would still apply.  */
 
14259
#ifdef __cplusplus
 
14260
extern "C"
 
14261
#endif
 
14262
char $ac_func ();
 
14263
/* The GNU C library defines this for functions which it implements
 
14264
    to always fail with ENOSYS.  Some functions are actually named
 
14265
    something starting with __ and the normal name is an alias.  */
 
14266
#if defined __stub_$ac_func || defined __stub___$ac_func
 
14267
choke me
 
14268
#endif
 
14269
 
 
14270
int
 
14271
main ()
 
14272
{
 
14273
return $ac_func ();
 
14274
  ;
 
14275
  return 0;
 
14276
}
 
14277
_ACEOF
 
14278
rm -f conftest.$ac_objext conftest$ac_exeext
 
14279
if { (ac_try="$ac_link"
 
14280
case "(($ac_try" in
 
14281
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14282
  *) ac_try_echo=$ac_try;;
 
14283
esac
 
14284
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
14285
$as_echo "$ac_try_echo") >&5
 
14286
  (eval "$ac_link") 2>conftest.er1
 
14287
  ac_status=$?
 
14288
  grep -v '^ *+' conftest.er1 >conftest.err
 
14289
  rm -f conftest.er1
 
14290
  cat conftest.err >&5
 
14291
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14292
  (exit $ac_status); } && {
 
14293
         test -z "$ac_c_werror_flag" ||
 
14294
         test ! -s conftest.err
 
14295
       } && test -s conftest$ac_exeext && {
 
14296
         test "$cross_compiling" = yes ||
 
14297
         $as_test_x conftest$ac_exeext
 
14298
       }; then
 
14299
  eval "$as_ac_var=yes"
 
14300
else
 
14301
  $as_echo "$as_me: failed program was:" >&5
 
14302
sed 's/^/| /' conftest.$ac_ext >&5
 
14303
 
 
14304
        eval "$as_ac_var=no"
 
14305
fi
 
14306
 
 
14307
rm -rf conftest.dSYM
 
14308
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
14309
      conftest$ac_exeext conftest.$ac_ext
 
14310
fi
 
14311
ac_res=`eval 'as_val=${'$as_ac_var'}
 
14312
                 $as_echo "$as_val"'`
 
14313
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
14314
$as_echo "$ac_res" >&6; }
 
14315
as_val=`eval 'as_val=${'$as_ac_var'}
 
14316
                 $as_echo "$as_val"'`
 
14317
   if test "x$as_val" = x""yes; then
 
14318
  cat >>confdefs.h <<_ACEOF
 
14319
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
14320
_ACEOF
 
14321
 
 
14322
fi
 
14323
done
 
14324
 
 
14325
{ $as_echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
 
14326
$as_echo_n "checking whether strerror_r returns char *... " >&6; }
 
14327
if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
 
14328
  $as_echo_n "(cached) " >&6
 
14329
else
 
14330
 
 
14331
    ac_cv_func_strerror_r_char_p=no
 
14332
    if test $ac_cv_have_decl_strerror_r = yes; then
 
14333
      cat >conftest.$ac_ext <<_ACEOF
 
14334
/* confdefs.h.  */
 
14335
_ACEOF
 
14336
cat confdefs.h >>conftest.$ac_ext
 
14337
cat >>conftest.$ac_ext <<_ACEOF
 
14338
/* end confdefs.h.  */
 
14339
$ac_includes_default
 
14340
int
 
14341
main ()
 
14342
{
 
14343
 
 
14344
          char buf[100];
 
14345
          char x = *strerror_r (0, buf, sizeof buf);
 
14346
          char *p = strerror_r (0, buf, sizeof buf);
 
14347
          return !p || x;
 
14348
 
 
14349
  ;
 
14350
  return 0;
 
14351
}
 
14352
_ACEOF
 
14353
rm -f conftest.$ac_objext
 
14354
if { (ac_try="$ac_compile"
 
14355
case "(($ac_try" in
 
14356
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14357
  *) ac_try_echo=$ac_try;;
 
14358
esac
 
14359
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
14360
$as_echo "$ac_try_echo") >&5
 
14361
  (eval "$ac_compile") 2>conftest.er1
 
14362
  ac_status=$?
 
14363
  grep -v '^ *+' conftest.er1 >conftest.err
 
14364
  rm -f conftest.er1
 
14365
  cat conftest.err >&5
 
14366
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14367
  (exit $ac_status); } && {
 
14368
         test -z "$ac_c_werror_flag" ||
 
14369
         test ! -s conftest.err
 
14370
       } && test -s conftest.$ac_objext; then
 
14371
  ac_cv_func_strerror_r_char_p=yes
 
14372
else
 
14373
  $as_echo "$as_me: failed program was:" >&5
 
14374
sed 's/^/| /' conftest.$ac_ext >&5
 
14375
 
 
14376
 
 
14377
fi
 
14378
 
 
14379
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14380
    else
 
14381
      # strerror_r is not declared.  Choose between
 
14382
      # systems that have relatively inaccessible declarations for the
 
14383
      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
 
14384
      # former has a strerror_r that returns char*, while the latter
 
14385
      # has a strerror_r that returns `int'.
 
14386
      # This test should segfault on the DEC system.
 
14387
      if test "$cross_compiling" = yes; then
 
14388
  :
 
14389
else
 
14390
  cat >conftest.$ac_ext <<_ACEOF
 
14391
/* confdefs.h.  */
 
14392
_ACEOF
 
14393
cat confdefs.h >>conftest.$ac_ext
 
14394
cat >>conftest.$ac_ext <<_ACEOF
 
14395
/* end confdefs.h.  */
 
14396
$ac_includes_default
 
14397
        extern char *strerror_r ();
 
14398
int
 
14399
main ()
 
14400
{
 
14401
char buf[100];
 
14402
          char x = *strerror_r (0, buf, sizeof buf);
 
14403
          return ! isalpha (x);
 
14404
  ;
 
14405
  return 0;
 
14406
}
 
14407
_ACEOF
 
14408
rm -f conftest$ac_exeext
 
14409
if { (ac_try="$ac_link"
 
14410
case "(($ac_try" in
 
14411
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14412
  *) ac_try_echo=$ac_try;;
 
14413
esac
 
14414
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
14415
$as_echo "$ac_try_echo") >&5
 
14416
  (eval "$ac_link") 2>&5
 
14417
  ac_status=$?
 
14418
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14419
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
14420
  { (case "(($ac_try" in
 
14421
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14422
  *) ac_try_echo=$ac_try;;
 
14423
esac
 
14424
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
14425
$as_echo "$ac_try_echo") >&5
 
14426
  (eval "$ac_try") 2>&5
 
14427
  ac_status=$?
 
14428
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14429
  (exit $ac_status); }; }; then
 
14430
  ac_cv_func_strerror_r_char_p=yes
 
14431
else
 
14432
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
14433
$as_echo "$as_me: failed program was:" >&5
 
14434
sed 's/^/| /' conftest.$ac_ext >&5
 
14435
 
 
14436
fi
 
14437
rm -rf conftest.dSYM
 
14438
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
14439
fi
 
14440
 
 
14441
 
 
14442
    fi
 
14443
 
 
14444
fi
 
14445
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
 
14446
$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
 
14447
if test $ac_cv_func_strerror_r_char_p = yes; then
 
14448
 
 
14449
cat >>confdefs.h <<\_ACEOF
 
14450
#define STRERROR_R_CHAR_P 1
 
14451
_ACEOF
 
14452
 
 
14453
fi
 
14454
 
 
14455
 
 
14456
  XGETTEXT_EXTRA_OPTIONS=
 
14457
 
 
14458
 
 
14459
  GNULIB_FPRINTF=0;
 
14460
  GNULIB_FPRINTF_POSIX=0;
 
14461
  GNULIB_PRINTF=0;
 
14462
  GNULIB_PRINTF_POSIX=0;
 
14463
  GNULIB_SNPRINTF=0;
 
14464
  GNULIB_SPRINTF_POSIX=0;
 
14465
  GNULIB_VFPRINTF=0;
 
14466
  GNULIB_VFPRINTF_POSIX=0;
 
14467
  GNULIB_VPRINTF=0;
 
14468
  GNULIB_VPRINTF_POSIX=0;
 
14469
  GNULIB_VSNPRINTF=0;
 
14470
  GNULIB_VSPRINTF_POSIX=0;
 
14471
  GNULIB_DPRINTF=0;
 
14472
  GNULIB_VDPRINTF=0;
 
14473
  GNULIB_VASPRINTF=0;
 
14474
  GNULIB_OBSTACK_PRINTF=0;
 
14475
  GNULIB_OBSTACK_PRINTF_POSIX=0;
 
14476
  GNULIB_FOPEN=0;
 
14477
  GNULIB_FREOPEN=0;
 
14478
  GNULIB_FSEEK=0;
 
14479
  GNULIB_FSEEKO=0;
 
14480
  GNULIB_FTELL=0;
 
14481
  GNULIB_FTELLO=0;
 
14482
  GNULIB_FFLUSH=0;
 
14483
  GNULIB_FPURGE=0;
 
14484
  GNULIB_FCLOSE=0;
 
14485
  GNULIB_FPUTC=0;
 
14486
  GNULIB_PUTC=0;
 
14487
  GNULIB_PUTCHAR=0;
 
14488
  GNULIB_FPUTS=0;
 
14489
  GNULIB_PUTS=0;
 
14490
  GNULIB_FWRITE=0;
 
14491
  GNULIB_POPEN=0;
 
14492
  GNULIB_GETDELIM=0;
 
14493
  GNULIB_GETLINE=0;
 
14494
  GNULIB_PERROR=0;
 
14495
  GNULIB_STDIO_H_SIGPIPE=0;
 
14496
    REPLACE_STDIO_WRITE_FUNCS=0;
 
14497
  REPLACE_FPRINTF=0;
 
14498
  REPLACE_VFPRINTF=0;
 
14499
  REPLACE_PRINTF=0;
 
14500
  REPLACE_VPRINTF=0;
 
14501
  REPLACE_SNPRINTF=0;
 
14502
  HAVE_DECL_SNPRINTF=1;
 
14503
  REPLACE_VSNPRINTF=0;
 
14504
  HAVE_DECL_VSNPRINTF=1;
 
14505
  REPLACE_SPRINTF=0;
 
14506
  REPLACE_VSPRINTF=0;
 
14507
  HAVE_DPRINTF=1;
 
14508
  REPLACE_DPRINTF=0;
 
14509
  HAVE_VDPRINTF=1;
 
14510
  REPLACE_VDPRINTF=0;
 
14511
  HAVE_VASPRINTF=1;
 
14512
  REPLACE_VASPRINTF=0;
 
14513
  HAVE_DECL_OBSTACK_PRINTF=1;
 
14514
  REPLACE_OBSTACK_PRINTF=0;
 
14515
  REPLACE_FOPEN=0;
 
14516
  REPLACE_FREOPEN=0;
 
14517
  HAVE_FSEEKO=1;
 
14518
  REPLACE_FSEEKO=0;
 
14519
  REPLACE_FSEEK=0;
 
14520
  HAVE_FTELLO=1;
 
14521
  REPLACE_FTELLO=0;
 
14522
  REPLACE_FTELL=0;
 
14523
  REPLACE_FFLUSH=0;
 
14524
  REPLACE_FPURGE=0;
 
14525
  HAVE_DECL_FPURGE=1;
 
14526
  REPLACE_FCLOSE=0;
 
14527
  REPLACE_POPEN=0;
 
14528
  HAVE_DECL_GETDELIM=1;
 
14529
  HAVE_DECL_GETLINE=1;
 
14530
  REPLACE_GETLINE=0;
 
14531
  REPLACE_PERROR=0;
 
14532
 
 
14533
 
 
14534
    { $as_echo "$as_me:$LINENO: checking whether stdin defaults to large file offsets" >&5
 
14535
$as_echo_n "checking whether stdin defaults to large file offsets... " >&6; }
 
14536
if test "${gl_cv_var_stdin_large_offset+set}" = set; then
 
14537
  $as_echo_n "(cached) " >&6
 
14538
else
 
14539
  cat >conftest.$ac_ext <<_ACEOF
 
14540
/* confdefs.h.  */
 
14541
_ACEOF
 
14542
cat confdefs.h >>conftest.$ac_ext
 
14543
cat >>conftest.$ac_ext <<_ACEOF
 
14544
/* end confdefs.h.  */
 
14545
#include <stdio.h>
 
14546
int
 
14547
main ()
 
14548
{
 
14549
#if defined __SL64 && defined __SCLE /* cygwin */
 
14550
  /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
 
14551
     fseeko/ftello needlessly fail.  This bug was fixed in 1.5.25, and
 
14552
     it is easier to do a version check than building a runtime test.  */
 
14553
# include <cygwin/version.h>
 
14554
# if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25)
 
14555
  choke me
 
14556
# endif
 
14557
#endif
 
14558
  ;
 
14559
  return 0;
 
14560
}
 
14561
_ACEOF
 
14562
rm -f conftest.$ac_objext conftest$ac_exeext
 
14563
if { (ac_try="$ac_link"
 
14564
case "(($ac_try" in
 
14565
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14566
  *) ac_try_echo=$ac_try;;
 
14567
esac
 
14568
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
14569
$as_echo "$ac_try_echo") >&5
 
14570
  (eval "$ac_link") 2>conftest.er1
 
14571
  ac_status=$?
 
14572
  grep -v '^ *+' conftest.er1 >conftest.err
 
14573
  rm -f conftest.er1
 
14574
  cat conftest.err >&5
 
14575
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14576
  (exit $ac_status); } && {
 
14577
         test -z "$ac_c_werror_flag" ||
 
14578
         test ! -s conftest.err
 
14579
       } && test -s conftest$ac_exeext && {
 
14580
         test "$cross_compiling" = yes ||
 
14581
         $as_test_x conftest$ac_exeext
 
14582
       }; then
 
14583
  gl_cv_var_stdin_large_offset=yes
 
14584
else
 
14585
  $as_echo "$as_me: failed program was:" >&5
 
14586
sed 's/^/| /' conftest.$ac_ext >&5
 
14587
 
 
14588
        gl_cv_var_stdin_large_offset=no
 
14589
fi
 
14590
 
 
14591
rm -rf conftest.dSYM
 
14592
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
14593
      conftest$ac_exeext conftest.$ac_ext
 
14594
fi
 
14595
{ $as_echo "$as_me:$LINENO: result: $gl_cv_var_stdin_large_offset" >&5
 
14596
$as_echo "$gl_cv_var_stdin_large_offset" >&6; }
 
14597
 
 
14598
{ $as_echo "$as_me:$LINENO: checking whether getdelim is declared" >&5
 
14599
$as_echo_n "checking whether getdelim is declared... " >&6; }
 
14600
if test "${ac_cv_have_decl_getdelim+set}" = set; then
 
14601
  $as_echo_n "(cached) " >&6
 
14602
else
 
14603
  cat >conftest.$ac_ext <<_ACEOF
 
14604
/* confdefs.h.  */
 
14605
_ACEOF
 
14606
cat confdefs.h >>conftest.$ac_ext
 
14607
cat >>conftest.$ac_ext <<_ACEOF
 
14608
/* end confdefs.h.  */
 
14609
$ac_includes_default
 
14610
int
 
14611
main ()
 
14612
{
 
14613
#ifndef getdelim
 
14614
  (void) getdelim;
 
14615
#endif
 
14616
 
 
14617
  ;
 
14618
  return 0;
 
14619
}
 
14620
_ACEOF
 
14621
rm -f conftest.$ac_objext
 
14622
if { (ac_try="$ac_compile"
 
14623
case "(($ac_try" in
 
14624
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14625
  *) ac_try_echo=$ac_try;;
 
14626
esac
 
14627
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
14628
$as_echo "$ac_try_echo") >&5
 
14629
  (eval "$ac_compile") 2>conftest.er1
 
14630
  ac_status=$?
 
14631
  grep -v '^ *+' conftest.er1 >conftest.err
 
14632
  rm -f conftest.er1
 
14633
  cat conftest.err >&5
 
14634
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14635
  (exit $ac_status); } && {
 
14636
         test -z "$ac_c_werror_flag" ||
 
14637
         test ! -s conftest.err
 
14638
       } && test -s conftest.$ac_objext; then
 
14639
  ac_cv_have_decl_getdelim=yes
 
14640
else
 
14641
  $as_echo "$as_me: failed program was:" >&5
 
14642
sed 's/^/| /' conftest.$ac_ext >&5
 
14643
 
 
14644
        ac_cv_have_decl_getdelim=no
 
14645
fi
 
14646
 
 
14647
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14648
fi
 
14649
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getdelim" >&5
 
14650
$as_echo "$ac_cv_have_decl_getdelim" >&6; }
 
14651
if test "x$ac_cv_have_decl_getdelim" = x""yes; then
 
14652
 
 
14653
cat >>confdefs.h <<_ACEOF
 
14654
#define HAVE_DECL_GETDELIM 1
 
14655
_ACEOF
 
14656
 
 
14657
 
 
14658
else
 
14659
  cat >>confdefs.h <<_ACEOF
 
14660
#define HAVE_DECL_GETDELIM 0
 
14661
_ACEOF
 
14662
 
 
14663
 
 
14664
fi
 
14665
 
 
14666
 
 
14667
{ $as_echo "$as_me:$LINENO: checking whether getline is declared" >&5
 
14668
$as_echo_n "checking whether getline is declared... " >&6; }
 
14669
if test "${ac_cv_have_decl_getline+set}" = set; then
 
14670
  $as_echo_n "(cached) " >&6
 
14671
else
 
14672
  cat >conftest.$ac_ext <<_ACEOF
 
14673
/* confdefs.h.  */
 
14674
_ACEOF
 
14675
cat confdefs.h >>conftest.$ac_ext
 
14676
cat >>conftest.$ac_ext <<_ACEOF
 
14677
/* end confdefs.h.  */
 
14678
$ac_includes_default
 
14679
int
 
14680
main ()
 
14681
{
 
14682
#ifndef getline
 
14683
  (void) getline;
 
14684
#endif
 
14685
 
 
14686
  ;
 
14687
  return 0;
 
14688
}
 
14689
_ACEOF
 
14690
rm -f conftest.$ac_objext
 
14691
if { (ac_try="$ac_compile"
 
14692
case "(($ac_try" in
 
14693
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14694
  *) ac_try_echo=$ac_try;;
 
14695
esac
 
14696
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
14697
$as_echo "$ac_try_echo") >&5
 
14698
  (eval "$ac_compile") 2>conftest.er1
 
14699
  ac_status=$?
 
14700
  grep -v '^ *+' conftest.er1 >conftest.err
 
14701
  rm -f conftest.er1
 
14702
  cat conftest.err >&5
 
14703
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14704
  (exit $ac_status); } && {
 
14705
         test -z "$ac_c_werror_flag" ||
 
14706
         test ! -s conftest.err
 
14707
       } && test -s conftest.$ac_objext; then
 
14708
  ac_cv_have_decl_getline=yes
 
14709
else
 
14710
  $as_echo "$as_me: failed program was:" >&5
 
14711
sed 's/^/| /' conftest.$ac_ext >&5
 
14712
 
 
14713
        ac_cv_have_decl_getline=no
 
14714
fi
 
14715
 
 
14716
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14717
fi
 
14718
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getline" >&5
 
14719
$as_echo "$ac_cv_have_decl_getline" >&6; }
 
14720
if test "x$ac_cv_have_decl_getline" = x""yes; then
 
14721
 
 
14722
cat >>confdefs.h <<_ACEOF
 
14723
#define HAVE_DECL_GETLINE 1
 
14724
_ACEOF
 
14725
 
 
14726
 
 
14727
else
 
14728
  cat >>confdefs.h <<_ACEOF
 
14729
#define HAVE_DECL_GETLINE 0
 
14730
_ACEOF
 
14731
 
 
14732
 
 
14733
fi
 
14734
 
 
14735
 
 
14736
 
 
14737
  GNULIB_CHOWN=0;
 
14738
  GNULIB_CLOSE=0;
 
14739
  GNULIB_DUP2=0;
 
14740
  GNULIB_DUP3=0;
 
14741
  GNULIB_ENVIRON=0;
 
14742
  GNULIB_EUIDACCESS=0;
 
14743
  GNULIB_FCHDIR=0;
 
14744
  GNULIB_FSYNC=0;
 
14745
  GNULIB_FTRUNCATE=0;
 
14746
  GNULIB_GETCWD=0;
 
14747
  GNULIB_GETDOMAINNAME=0;
 
14748
  GNULIB_GETDTABLESIZE=0;
 
14749
  GNULIB_GETHOSTNAME=0;
 
14750
  GNULIB_GETLOGIN_R=0;
 
14751
  GNULIB_GETPAGESIZE=0;
 
14752
  GNULIB_GETUSERSHELL=0;
 
14753
  GNULIB_LCHOWN=0;
 
14754
  GNULIB_LINK=0;
 
14755
  GNULIB_LSEEK=0;
 
14756
  GNULIB_PIPE2=0;
 
14757
  GNULIB_READLINK=0;
 
14758
  GNULIB_SLEEP=0;
 
14759
  GNULIB_UNISTD_H_GETOPT=0;
 
14760
  GNULIB_UNISTD_H_SIGPIPE=0;
 
14761
  GNULIB_WRITE=0;
 
14762
    HAVE_DUP2=1;
 
14763
  HAVE_DUP3=1;
 
14764
  HAVE_EUIDACCESS=1;
 
14765
  HAVE_FSYNC=1;
 
14766
  HAVE_FTRUNCATE=1;
 
14767
  HAVE_GETDOMAINNAME=1;
 
14768
  HAVE_GETDTABLESIZE=1;
 
14769
  HAVE_GETHOSTNAME=1;
 
14770
  HAVE_GETPAGESIZE=1;
 
14771
  HAVE_GETUSERSHELL=1;
 
14772
  HAVE_LINK=1;
 
14773
  HAVE_PIPE2=1;
 
14774
  HAVE_READLINK=1;
 
14775
  HAVE_SLEEP=1;
 
14776
  HAVE_DECL_ENVIRON=1;
 
14777
  HAVE_DECL_GETLOGIN_R=1;
 
14778
  HAVE_OS_H=0;
 
14779
  HAVE_SYS_PARAM_H=0;
 
14780
  REPLACE_CHOWN=0;
 
14781
  REPLACE_CLOSE=0;
 
14782
  REPLACE_DUP2=0;
 
14783
  REPLACE_FCHDIR=0;
 
14784
  REPLACE_GETCWD=0;
 
14785
  REPLACE_GETPAGESIZE=0;
 
14786
  REPLACE_LCHOWN=0;
 
14787
  REPLACE_LSEEK=0;
 
14788
  REPLACE_WRITE=0;
 
14789
  UNISTD_H_HAVE_WINSOCK2_H=0;
 
14790
  UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
 
14791
 
 
14792
 
 
14793
 
 
14794
 
 
14795
 
 
14796
 
 
14797
  gl_replace_getopt=
 
14798
 
 
14799
    if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
 
14800
 
 
14801
for ac_header in getopt.h
 
14802
do
 
14803
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
14804
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
14805
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
14806
$as_echo_n "checking for $ac_header... " >&6; }
 
14807
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
14808
  $as_echo_n "(cached) " >&6
 
14809
fi
 
14810
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
14811
                 $as_echo "$as_val"'`
 
14812
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
14813
$as_echo "$ac_res" >&6; }
 
14814
else
 
14815
  # Is the header compilable?
 
14816
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
14817
$as_echo_n "checking $ac_header usability... " >&6; }
 
14818
cat >conftest.$ac_ext <<_ACEOF
 
14819
/* confdefs.h.  */
 
14820
_ACEOF
 
14821
cat confdefs.h >>conftest.$ac_ext
 
14822
cat >>conftest.$ac_ext <<_ACEOF
 
14823
/* end confdefs.h.  */
 
14824
$ac_includes_default
 
14825
#include <$ac_header>
 
14826
_ACEOF
 
14827
rm -f conftest.$ac_objext
 
14828
if { (ac_try="$ac_compile"
 
14829
case "(($ac_try" in
 
14830
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14831
  *) ac_try_echo=$ac_try;;
 
14832
esac
 
14833
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
14834
$as_echo "$ac_try_echo") >&5
 
14835
  (eval "$ac_compile") 2>conftest.er1
 
14836
  ac_status=$?
 
14837
  grep -v '^ *+' conftest.er1 >conftest.err
 
14838
  rm -f conftest.er1
 
14839
  cat conftest.err >&5
 
14840
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14841
  (exit $ac_status); } && {
 
14842
         test -z "$ac_c_werror_flag" ||
 
14843
         test ! -s conftest.err
 
14844
       } && test -s conftest.$ac_objext; then
 
14845
  ac_header_compiler=yes
 
14846
else
 
14847
  $as_echo "$as_me: failed program was:" >&5
 
14848
sed 's/^/| /' conftest.$ac_ext >&5
 
14849
 
 
14850
        ac_header_compiler=no
 
14851
fi
 
14852
 
 
14853
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14854
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
14855
$as_echo "$ac_header_compiler" >&6; }
 
14856
 
 
14857
# Is the header present?
 
14858
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
14859
$as_echo_n "checking $ac_header presence... " >&6; }
 
14860
cat >conftest.$ac_ext <<_ACEOF
 
14861
/* confdefs.h.  */
 
14862
_ACEOF
 
14863
cat confdefs.h >>conftest.$ac_ext
 
14864
cat >>conftest.$ac_ext <<_ACEOF
 
14865
/* end confdefs.h.  */
 
14866
#include <$ac_header>
 
14867
_ACEOF
 
14868
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
14869
case "(($ac_try" in
 
14870
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14871
  *) ac_try_echo=$ac_try;;
 
14872
esac
 
14873
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
14874
$as_echo "$ac_try_echo") >&5
 
14875
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
14876
  ac_status=$?
 
14877
  grep -v '^ *+' conftest.er1 >conftest.err
 
14878
  rm -f conftest.er1
 
14879
  cat conftest.err >&5
 
14880
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14881
  (exit $ac_status); } >/dev/null && {
 
14882
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
14883
         test ! -s conftest.err
 
14884
       }; then
 
14885
  ac_header_preproc=yes
 
14886
else
 
14887
  $as_echo "$as_me: failed program was:" >&5
 
14888
sed 's/^/| /' conftest.$ac_ext >&5
 
14889
 
 
14890
  ac_header_preproc=no
 
14891
fi
 
14892
 
 
14893
rm -f conftest.err conftest.$ac_ext
 
14894
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
14895
$as_echo "$ac_header_preproc" >&6; }
 
14896
 
 
14897
# So?  What about this header?
 
14898
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
14899
  yes:no: )
 
14900
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
14901
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
14902
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
14903
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
14904
    ac_header_preproc=yes
 
14905
    ;;
 
14906
  no:yes:* )
 
14907
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
14908
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
14909
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
14910
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
14911
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
14912
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
14913
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
14914
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
14915
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
14916
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
14917
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
14918
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
14919
    ( cat <<\_ASBOX
 
14920
## ------------------------------- ##
 
14921
## Report this to bug-wget@gnu.org ##
 
14922
## ------------------------------- ##
 
14923
_ASBOX
 
14924
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
14925
    ;;
 
14926
esac
 
14927
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
14928
$as_echo_n "checking for $ac_header... " >&6; }
 
14929
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
14930
  $as_echo_n "(cached) " >&6
 
14931
else
 
14932
  eval "$as_ac_Header=\$ac_header_preproc"
 
14933
fi
 
14934
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
14935
                 $as_echo "$as_val"'`
 
14936
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
14937
$as_echo "$ac_res" >&6; }
 
14938
 
 
14939
fi
 
14940
as_val=`eval 'as_val=${'$as_ac_Header'}
 
14941
                 $as_echo "$as_val"'`
 
14942
   if test "x$as_val" = x""yes; then
 
14943
  cat >>confdefs.h <<_ACEOF
 
14944
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
14945
_ACEOF
 
14946
 
 
14947
else
 
14948
  gl_replace_getopt=yes
 
14949
fi
 
14950
 
 
14951
done
 
14952
 
 
14953
  fi
 
14954
 
 
14955
    if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
 
14956
 
 
14957
for ac_func in getopt_long_only
 
14958
do
 
14959
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
14960
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
14961
$as_echo_n "checking for $ac_func... " >&6; }
 
14962
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
14963
  $as_echo_n "(cached) " >&6
 
14964
else
 
14965
  cat >conftest.$ac_ext <<_ACEOF
 
14966
/* confdefs.h.  */
 
14967
_ACEOF
 
14968
cat confdefs.h >>conftest.$ac_ext
 
14969
cat >>conftest.$ac_ext <<_ACEOF
 
14970
/* end confdefs.h.  */
 
14971
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
14972
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
14973
#define $ac_func innocuous_$ac_func
 
14974
 
 
14975
/* System header to define __stub macros and hopefully few prototypes,
 
14976
    which can conflict with char $ac_func (); below.
 
14977
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
14978
    <limits.h> exists even on freestanding compilers.  */
 
14979
 
 
14980
#ifdef __STDC__
 
14981
# include <limits.h>
 
14982
#else
 
14983
# include <assert.h>
 
14984
#endif
 
14985
 
 
14986
#undef $ac_func
 
14987
 
 
14988
/* Override any GCC internal prototype to avoid an error.
 
14989
   Use char because int might match the return type of a GCC
 
14990
   builtin and then its argument prototype would still apply.  */
 
14991
#ifdef __cplusplus
 
14992
extern "C"
 
14993
#endif
 
14994
char $ac_func ();
 
14995
/* The GNU C library defines this for functions which it implements
 
14996
    to always fail with ENOSYS.  Some functions are actually named
 
14997
    something starting with __ and the normal name is an alias.  */
 
14998
#if defined __stub_$ac_func || defined __stub___$ac_func
 
14999
choke me
 
15000
#endif
 
15001
 
 
15002
int
 
15003
main ()
 
15004
{
 
15005
return $ac_func ();
 
15006
  ;
 
15007
  return 0;
 
15008
}
 
15009
_ACEOF
 
15010
rm -f conftest.$ac_objext conftest$ac_exeext
 
15011
if { (ac_try="$ac_link"
 
15012
case "(($ac_try" in
 
15013
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15014
  *) ac_try_echo=$ac_try;;
 
15015
esac
 
15016
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
15017
$as_echo "$ac_try_echo") >&5
 
15018
  (eval "$ac_link") 2>conftest.er1
 
15019
  ac_status=$?
 
15020
  grep -v '^ *+' conftest.er1 >conftest.err
 
15021
  rm -f conftest.er1
 
15022
  cat conftest.err >&5
 
15023
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15024
  (exit $ac_status); } && {
 
15025
         test -z "$ac_c_werror_flag" ||
 
15026
         test ! -s conftest.err
 
15027
       } && test -s conftest$ac_exeext && {
 
15028
         test "$cross_compiling" = yes ||
 
15029
         $as_test_x conftest$ac_exeext
 
15030
       }; then
 
15031
  eval "$as_ac_var=yes"
 
15032
else
 
15033
  $as_echo "$as_me: failed program was:" >&5
 
15034
sed 's/^/| /' conftest.$ac_ext >&5
 
15035
 
 
15036
        eval "$as_ac_var=no"
 
15037
fi
 
15038
 
 
15039
rm -rf conftest.dSYM
 
15040
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15041
      conftest$ac_exeext conftest.$ac_ext
 
15042
fi
 
15043
ac_res=`eval 'as_val=${'$as_ac_var'}
 
15044
                 $as_echo "$as_val"'`
 
15045
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
15046
$as_echo "$ac_res" >&6; }
 
15047
as_val=`eval 'as_val=${'$as_ac_var'}
 
15048
                 $as_echo "$as_val"'`
 
15049
   if test "x$as_val" = x""yes; then
 
15050
  cat >>confdefs.h <<_ACEOF
 
15051
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
15052
_ACEOF
 
15053
 
 
15054
else
 
15055
  gl_replace_getopt=yes
 
15056
fi
 
15057
done
 
15058
 
 
15059
  fi
 
15060
 
 
15061
      if false && test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
 
15062
    { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
 
15063
$as_echo_n "checking whether optreset is declared... " >&6; }
 
15064
if test "${ac_cv_have_decl_optreset+set}" = set; then
 
15065
  $as_echo_n "(cached) " >&6
 
15066
else
 
15067
  cat >conftest.$ac_ext <<_ACEOF
 
15068
/* confdefs.h.  */
 
15069
_ACEOF
 
15070
cat confdefs.h >>conftest.$ac_ext
 
15071
cat >>conftest.$ac_ext <<_ACEOF
 
15072
/* end confdefs.h.  */
 
15073
#include <getopt.h>
 
15074
 
 
15075
int
 
15076
main ()
 
15077
{
 
15078
#ifndef optreset
 
15079
  (void) optreset;
 
15080
#endif
 
15081
 
 
15082
  ;
 
15083
  return 0;
 
15084
}
 
15085
_ACEOF
 
15086
rm -f conftest.$ac_objext
 
15087
if { (ac_try="$ac_compile"
 
15088
case "(($ac_try" in
 
15089
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15090
  *) ac_try_echo=$ac_try;;
 
15091
esac
 
15092
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
15093
$as_echo "$ac_try_echo") >&5
 
15094
  (eval "$ac_compile") 2>conftest.er1
 
15095
  ac_status=$?
 
15096
  grep -v '^ *+' conftest.er1 >conftest.err
 
15097
  rm -f conftest.er1
 
15098
  cat conftest.err >&5
 
15099
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15100
  (exit $ac_status); } && {
 
15101
         test -z "$ac_c_werror_flag" ||
 
15102
         test ! -s conftest.err
 
15103
       } && test -s conftest.$ac_objext; then
 
15104
  ac_cv_have_decl_optreset=yes
 
15105
else
 
15106
  $as_echo "$as_me: failed program was:" >&5
 
15107
sed 's/^/| /' conftest.$ac_ext >&5
 
15108
 
 
15109
        ac_cv_have_decl_optreset=no
 
15110
fi
 
15111
 
 
15112
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15113
fi
 
15114
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
 
15115
$as_echo "$ac_cv_have_decl_optreset" >&6; }
 
15116
if test "x$ac_cv_have_decl_optreset" = x""yes; then
 
15117
  gl_replace_getopt=yes
 
15118
fi
 
15119
 
 
15120
  fi
 
15121
 
 
15122
          if test -z "$gl_replace_getopt"; then
 
15123
    { $as_echo "$as_me:$LINENO: checking whether getopt is POSIX compatible" >&5
 
15124
$as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
 
15125
if test "${gl_cv_func_getopt_posix+set}" = set; then
 
15126
  $as_echo_n "(cached) " >&6
 
15127
else
 
15128
 
 
15129
                if test "$cross_compiling" = yes; then
 
15130
  case "$host_os" in
 
15131
             mingw*) gl_cv_func_getopt_posix="guessing no";;
 
15132
             *)      gl_cv_func_getopt_posix="guessing yes";;
 
15133
           esac
 
15134
 
 
15135
else
 
15136
  cat >conftest.$ac_ext <<_ACEOF
 
15137
/* confdefs.h.  */
 
15138
_ACEOF
 
15139
cat confdefs.h >>conftest.$ac_ext
 
15140
cat >>conftest.$ac_ext <<_ACEOF
 
15141
/* end confdefs.h.  */
 
15142
 
 
15143
#include <unistd.h>
 
15144
#include <stdlib.h>
 
15145
#include <string.h>
 
15146
 
 
15147
/* The glibc implementation of getopt supports setting optind = 0 as a means
 
15148
   of clearing the internal state, but other implementations don't.  */
 
15149
#if (__GLIBC__ >= 2)
 
15150
# define OPTIND_MIN 0
 
15151
#else
 
15152
# define OPTIND_MIN 1
 
15153
#endif
 
15154
 
 
15155
int
 
15156
main ()
 
15157
{
 
15158
  {
 
15159
    int argc = 0;
 
15160
    char *argv[10];
 
15161
    int c;
 
15162
 
 
15163
    argv[argc++] = "program";
 
15164
    argv[argc++] = "-a";
 
15165
    argv[argc++] = "foo";
 
15166
    argv[argc++] = "bar";
 
15167
    optind = OPTIND_MIN;
 
15168
    opterr = 0;
 
15169
 
 
15170
    c = getopt (argc, argv, "ab");
 
15171
    if (!(c == 'a'))
 
15172
      return 1;
 
15173
    c = getopt (argc, argv, "ab");
 
15174
    if (!(c == -1))
 
15175
      return 2;
 
15176
    if (!(optind == 2))
 
15177
      return 3;
 
15178
  }
 
15179
  /* Some internal state exists at this point.  */
 
15180
  {
 
15181
    int argc = 0;
 
15182
    char *argv[10];
 
15183
    int c;
 
15184
 
 
15185
    argv[argc++] = "program";
 
15186
    argv[argc++] = "donald";
 
15187
    argv[argc++] = "-p";
 
15188
    argv[argc++] = "billy";
 
15189
    argv[argc++] = "duck";
 
15190
    argv[argc++] = "-a";
 
15191
    argv[argc++] = "bar";
 
15192
    optind = OPTIND_MIN;
 
15193
    opterr = 0;
 
15194
 
 
15195
    c = getopt (argc, argv, "+abp:q:");
 
15196
    if (!(c == -1))
 
15197
      return 4;
 
15198
    if (!(strcmp (argv[0], "program") == 0))
 
15199
      return 5;
 
15200
    if (!(strcmp (argv[1], "donald") == 0))
 
15201
      return 6;
 
15202
    if (!(strcmp (argv[2], "-p") == 0))
 
15203
      return 7;
 
15204
    if (!(strcmp (argv[3], "billy") == 0))
 
15205
      return 8;
 
15206
    if (!(strcmp (argv[4], "duck") == 0))
 
15207
      return 9;
 
15208
    if (!(strcmp (argv[5], "-a") == 0))
 
15209
      return 10;
 
15210
    if (!(strcmp (argv[6], "bar") == 0))
 
15211
      return 11;
 
15212
    if (!(optind == 1))
 
15213
      return 12;
 
15214
  }
 
15215
 
 
15216
  return 0;
 
15217
}
 
15218
 
 
15219
_ACEOF
 
15220
rm -f conftest$ac_exeext
 
15221
if { (ac_try="$ac_link"
 
15222
case "(($ac_try" in
 
15223
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15224
  *) ac_try_echo=$ac_try;;
 
15225
esac
 
15226
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
15227
$as_echo "$ac_try_echo") >&5
 
15228
  (eval "$ac_link") 2>&5
 
15229
  ac_status=$?
 
15230
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15231
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
15232
  { (case "(($ac_try" in
 
15233
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15234
  *) ac_try_echo=$ac_try;;
 
15235
esac
 
15236
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
15237
$as_echo "$ac_try_echo") >&5
 
15238
  (eval "$ac_try") 2>&5
 
15239
  ac_status=$?
 
15240
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15241
  (exit $ac_status); }; }; then
 
15242
  gl_cv_func_getopt_posix=yes
 
15243
else
 
15244
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
15245
$as_echo "$as_me: failed program was:" >&5
 
15246
sed 's/^/| /' conftest.$ac_ext >&5
 
15247
 
 
15248
( exit $ac_status )
 
15249
gl_cv_func_getopt_posix=no
 
15250
fi
 
15251
rm -rf conftest.dSYM
 
15252
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
15253
fi
 
15254
 
 
15255
 
 
15256
 
 
15257
fi
 
15258
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_getopt_posix" >&5
 
15259
$as_echo "$gl_cv_func_getopt_posix" >&6; }
 
15260
    case "$gl_cv_func_getopt_posix" in
 
15261
      *no) gl_replace_getopt=yes ;;
 
15262
    esac
 
15263
  fi
 
15264
 
 
15265
  if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
 
15266
    { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
 
15267
$as_echo_n "checking for working GNU getopt function... " >&6; }
 
15268
if test "${gl_cv_func_getopt_gnu+set}" = set; then
 
15269
  $as_echo_n "(cached) " >&6
 
15270
else
 
15271
  if test "$cross_compiling" = yes; then
 
15272
           case "$host_os" in
 
15273
           *-gnu* | mingw*) gl_cv_func_getopt_gnu=no;;
 
15274
           *)               gl_cv_func_getopt_gnu=yes;;
 
15275
         esac
 
15276
 
 
15277
else
 
15278
  cat >conftest.$ac_ext <<_ACEOF
 
15279
/* confdefs.h.  */
 
15280
_ACEOF
 
15281
cat confdefs.h >>conftest.$ac_ext
 
15282
cat >>conftest.$ac_ext <<_ACEOF
 
15283
/* end confdefs.h.  */
 
15284
#include <getopt.h>
 
15285
                           #include <stddef.h>
 
15286
                           #include <string.h>
 
15287
int
 
15288
main ()
 
15289
{
 
15290
 
 
15291
             /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
 
15292
                and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
 
15293
                OSF/1 5.1, Solaris 10.  */
 
15294
             {
 
15295
               char *myargv[3];
 
15296
               myargv[0] = "conftest";
 
15297
               myargv[1] = "-+";
 
15298
               myargv[2] = 0;
 
15299
               opterr = 0;
 
15300
               if (getopt (2, myargv, "+a") != '?')
 
15301
                 return 1;
 
15302
             }
 
15303
             /* This code succeeds on glibc 2.8, mingw,
 
15304
                and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
 
15305
                IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin.  */
 
15306
             {
 
15307
               char *argv[] = { "program", "-p", "foo", "bar" };
 
15308
 
 
15309
               optind = 1;
 
15310
               if (getopt (4, argv, "p::") != 'p')
 
15311
                 return 2;
 
15312
               if (optarg != NULL)
 
15313
                 return 3;
 
15314
               if (getopt (4, argv, "p::") != -1)
 
15315
                 return 4;
 
15316
               if (optind != 2)
 
15317
                 return 5;
 
15318
             }
 
15319
             return 0;
 
15320
 
 
15321
  ;
 
15322
  return 0;
 
15323
}
 
15324
_ACEOF
 
15325
rm -f conftest$ac_exeext
 
15326
if { (ac_try="$ac_link"
 
15327
case "(($ac_try" in
 
15328
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15329
  *) ac_try_echo=$ac_try;;
 
15330
esac
 
15331
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
15332
$as_echo "$ac_try_echo") >&5
 
15333
  (eval "$ac_link") 2>&5
 
15334
  ac_status=$?
 
15335
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15336
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
15337
  { (case "(($ac_try" in
 
15338
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15339
  *) ac_try_echo=$ac_try;;
 
15340
esac
 
15341
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
15342
$as_echo "$ac_try_echo") >&5
 
15343
  (eval "$ac_try") 2>&5
 
15344
  ac_status=$?
 
15345
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15346
  (exit $ac_status); }; }; then
 
15347
  gl_cv_func_getopt_gnu=yes
 
15348
else
 
15349
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
15350
$as_echo "$as_me: failed program was:" >&5
 
15351
sed 's/^/| /' conftest.$ac_ext >&5
 
15352
 
 
15353
( exit $ac_status )
 
15354
gl_cv_func_getopt_gnu=no
 
15355
fi
 
15356
rm -rf conftest.dSYM
 
15357
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
15358
fi
 
15359
 
 
15360
 
 
15361
 
 
15362
fi
 
15363
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_getopt_gnu" >&5
 
15364
$as_echo "$gl_cv_func_getopt_gnu" >&6; }
 
15365
    if test "$gl_cv_func_getopt_gnu" = "no"; then
 
15366
      gl_replace_getopt=yes
 
15367
    fi
 
15368
  fi
 
15369
 
 
15370
{ $as_echo "$as_me:$LINENO: checking whether getenv is declared" >&5
 
15371
$as_echo_n "checking whether getenv is declared... " >&6; }
 
15372
if test "${ac_cv_have_decl_getenv+set}" = set; then
 
15373
  $as_echo_n "(cached) " >&6
 
15374
else
 
15375
  cat >conftest.$ac_ext <<_ACEOF
 
15376
/* confdefs.h.  */
 
15377
_ACEOF
 
15378
cat confdefs.h >>conftest.$ac_ext
 
15379
cat >>conftest.$ac_ext <<_ACEOF
 
15380
/* end confdefs.h.  */
 
15381
$ac_includes_default
 
15382
int
 
15383
main ()
 
15384
{
 
15385
#ifndef getenv
 
15386
  (void) getenv;
 
15387
#endif
 
15388
 
 
15389
  ;
 
15390
  return 0;
 
15391
}
 
15392
_ACEOF
 
15393
rm -f conftest.$ac_objext
 
15394
if { (ac_try="$ac_compile"
 
15395
case "(($ac_try" in
 
15396
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15397
  *) ac_try_echo=$ac_try;;
 
15398
esac
 
15399
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
15400
$as_echo "$ac_try_echo") >&5
 
15401
  (eval "$ac_compile") 2>conftest.er1
 
15402
  ac_status=$?
 
15403
  grep -v '^ *+' conftest.er1 >conftest.err
 
15404
  rm -f conftest.er1
 
15405
  cat conftest.err >&5
 
15406
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15407
  (exit $ac_status); } && {
 
15408
         test -z "$ac_c_werror_flag" ||
 
15409
         test ! -s conftest.err
 
15410
       } && test -s conftest.$ac_objext; then
 
15411
  ac_cv_have_decl_getenv=yes
 
15412
else
 
15413
  $as_echo "$as_me: failed program was:" >&5
 
15414
sed 's/^/| /' conftest.$ac_ext >&5
 
15415
 
 
15416
        ac_cv_have_decl_getenv=no
 
15417
fi
 
15418
 
 
15419
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15420
fi
 
15421
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
 
15422
$as_echo "$ac_cv_have_decl_getenv" >&6; }
 
15423
if test "x$ac_cv_have_decl_getenv" = x""yes; then
 
15424
 
 
15425
cat >>confdefs.h <<_ACEOF
 
15426
#define HAVE_DECL_GETENV 1
 
15427
_ACEOF
 
15428
 
 
15429
 
 
15430
else
 
15431
  cat >>confdefs.h <<_ACEOF
 
15432
#define HAVE_DECL_GETENV 0
 
15433
_ACEOF
 
15434
 
 
15435
 
 
15436
fi
 
15437
 
 
15438
 
 
15439
 
 
15440
 
 
15441
 
 
15442
 
 
15443
 
 
15444
  if test -n "$gl_replace_getopt"; then
 
15445
 
 
15446
 
 
15447
 
 
15448
  GETOPT_H=getopt.h
 
15449
 
 
15450
cat >>confdefs.h <<\_ACEOF
 
15451
#define __GETOPT_PREFIX rpl_
 
15452
_ACEOF
 
15453
 
 
15454
 
 
15455
 
 
15456
    GNULIB_UNISTD_H_GETOPT=1
 
15457
 
 
15458
 
 
15459
 
 
15460
 
 
15461
 
 
15462
 
 
15463
 
 
15464
 
 
15465
  gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
 
15466
 
 
15467
 
 
15468
 
 
15469
 
 
15470
 
 
15471
 
 
15472
 
 
15473
 
 
15474
 
 
15475
  gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
 
15476
 
 
15477
 
 
15478
 
 
15479
 
 
15480
 
 
15481
 
 
15482
 
 
15483
 
 
15484
 
 
15485
fi
 
15486
 
 
15487
 
 
15488
 
 
15489
{ $as_echo "$as_me:$LINENO: checking whether getpass is declared" >&5
 
15490
$as_echo_n "checking whether getpass is declared... " >&6; }
 
15491
if test "${ac_cv_have_decl_getpass+set}" = set; then
 
15492
  $as_echo_n "(cached) " >&6
 
15493
else
 
15494
  cat >conftest.$ac_ext <<_ACEOF
 
15495
/* confdefs.h.  */
 
15496
_ACEOF
 
15497
cat confdefs.h >>conftest.$ac_ext
 
15498
cat >>conftest.$ac_ext <<_ACEOF
 
15499
/* end confdefs.h.  */
 
15500
$ac_includes_default
 
15501
int
 
15502
main ()
 
15503
{
 
15504
#ifndef getpass
 
15505
  (void) getpass;
 
15506
#endif
 
15507
 
 
15508
  ;
 
15509
  return 0;
 
15510
}
 
15511
_ACEOF
 
15512
rm -f conftest.$ac_objext
 
15513
if { (ac_try="$ac_compile"
 
15514
case "(($ac_try" in
 
15515
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15516
  *) ac_try_echo=$ac_try;;
 
15517
esac
 
15518
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
15519
$as_echo "$ac_try_echo") >&5
 
15520
  (eval "$ac_compile") 2>conftest.er1
 
15521
  ac_status=$?
 
15522
  grep -v '^ *+' conftest.er1 >conftest.err
 
15523
  rm -f conftest.er1
 
15524
  cat conftest.err >&5
 
15525
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15526
  (exit $ac_status); } && {
 
15527
         test -z "$ac_c_werror_flag" ||
 
15528
         test ! -s conftest.err
 
15529
       } && test -s conftest.$ac_objext; then
 
15530
  ac_cv_have_decl_getpass=yes
 
15531
else
 
15532
  $as_echo "$as_me: failed program was:" >&5
 
15533
sed 's/^/| /' conftest.$ac_ext >&5
 
15534
 
 
15535
        ac_cv_have_decl_getpass=no
 
15536
fi
 
15537
 
 
15538
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15539
fi
 
15540
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpass" >&5
 
15541
$as_echo "$ac_cv_have_decl_getpass" >&6; }
 
15542
if test "x$ac_cv_have_decl_getpass" = x""yes; then
 
15543
 
 
15544
cat >>confdefs.h <<_ACEOF
 
15545
#define HAVE_DECL_GETPASS 1
 
15546
_ACEOF
 
15547
 
 
15548
 
 
15549
else
 
15550
  cat >>confdefs.h <<_ACEOF
 
15551
#define HAVE_DECL_GETPASS 0
 
15552
_ACEOF
 
15553
 
 
15554
 
 
15555
fi
 
15556
 
 
15557
 
 
15558
 
 
15559
 
 
15560
 
 
15561
 
 
15562
 
 
15563
 
 
15564
 
 
15565
 
 
15566
for ac_func in $ac_func_list
 
15567
do
 
15568
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
15569
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
15570
$as_echo_n "checking for $ac_func... " >&6; }
 
15571
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
15572
  $as_echo_n "(cached) " >&6
 
15573
else
 
15574
  cat >conftest.$ac_ext <<_ACEOF
 
15575
/* confdefs.h.  */
 
15576
_ACEOF
 
15577
cat confdefs.h >>conftest.$ac_ext
 
15578
cat >>conftest.$ac_ext <<_ACEOF
 
15579
/* end confdefs.h.  */
 
15580
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
15581
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
15582
#define $ac_func innocuous_$ac_func
 
15583
 
 
15584
/* System header to define __stub macros and hopefully few prototypes,
 
15585
    which can conflict with char $ac_func (); below.
 
15586
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
15587
    <limits.h> exists even on freestanding compilers.  */
 
15588
 
 
15589
#ifdef __STDC__
 
15590
# include <limits.h>
 
15591
#else
 
15592
# include <assert.h>
 
15593
#endif
 
15594
 
 
15595
#undef $ac_func
 
15596
 
 
15597
/* Override any GCC internal prototype to avoid an error.
 
15598
   Use char because int might match the return type of a GCC
 
15599
   builtin and then its argument prototype would still apply.  */
 
15600
#ifdef __cplusplus
 
15601
extern "C"
 
15602
#endif
 
15603
char $ac_func ();
 
15604
/* The GNU C library defines this for functions which it implements
 
15605
    to always fail with ENOSYS.  Some functions are actually named
 
15606
    something starting with __ and the normal name is an alias.  */
 
15607
#if defined __stub_$ac_func || defined __stub___$ac_func
 
15608
choke me
 
15609
#endif
 
15610
 
 
15611
int
 
15612
main ()
 
15613
{
 
15614
return $ac_func ();
 
15615
  ;
 
15616
  return 0;
 
15617
}
 
15618
_ACEOF
 
15619
rm -f conftest.$ac_objext conftest$ac_exeext
 
15620
if { (ac_try="$ac_link"
 
15621
case "(($ac_try" in
 
15622
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15623
  *) ac_try_echo=$ac_try;;
 
15624
esac
 
15625
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
15626
$as_echo "$ac_try_echo") >&5
 
15627
  (eval "$ac_link") 2>conftest.er1
 
15628
  ac_status=$?
 
15629
  grep -v '^ *+' conftest.er1 >conftest.err
 
15630
  rm -f conftest.er1
 
15631
  cat conftest.err >&5
 
15632
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15633
  (exit $ac_status); } && {
 
15634
         test -z "$ac_c_werror_flag" ||
 
15635
         test ! -s conftest.err
 
15636
       } && test -s conftest$ac_exeext && {
 
15637
         test "$cross_compiling" = yes ||
 
15638
         $as_test_x conftest$ac_exeext
 
15639
       }; then
 
15640
  eval "$as_ac_var=yes"
 
15641
else
 
15642
  $as_echo "$as_me: failed program was:" >&5
 
15643
sed 's/^/| /' conftest.$ac_ext >&5
 
15644
 
 
15645
        eval "$as_ac_var=no"
 
15646
fi
 
15647
 
 
15648
rm -rf conftest.dSYM
 
15649
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15650
      conftest$ac_exeext conftest.$ac_ext
 
15651
fi
 
15652
ac_res=`eval 'as_val=${'$as_ac_var'}
 
15653
                 $as_echo "$as_val"'`
 
15654
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
15655
$as_echo "$ac_res" >&6; }
 
15656
as_val=`eval 'as_val=${'$as_ac_var'}
 
15657
                 $as_echo "$as_val"'`
 
15658
   if test "x$as_val" = x""yes; then
 
15659
  cat >>confdefs.h <<_ACEOF
 
15660
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
15661
_ACEOF
 
15662
 
 
15663
fi
 
15664
done
 
15665
 
 
15666
 
 
15667
 
 
15668
 
 
15669
 
 
15670
 
 
15671
 
 
15672
{ $as_echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
 
15673
$as_echo_n "checking whether fflush_unlocked is declared... " >&6; }
 
15674
if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
 
15675
  $as_echo_n "(cached) " >&6
 
15676
else
 
15677
  cat >conftest.$ac_ext <<_ACEOF
 
15678
/* confdefs.h.  */
 
15679
_ACEOF
 
15680
cat confdefs.h >>conftest.$ac_ext
 
15681
cat >>conftest.$ac_ext <<_ACEOF
 
15682
/* end confdefs.h.  */
 
15683
$ac_includes_default
 
15684
int
 
15685
main ()
 
15686
{
 
15687
#ifndef fflush_unlocked
 
15688
  (void) fflush_unlocked;
 
15689
#endif
 
15690
 
 
15691
  ;
 
15692
  return 0;
 
15693
}
 
15694
_ACEOF
 
15695
rm -f conftest.$ac_objext
 
15696
if { (ac_try="$ac_compile"
 
15697
case "(($ac_try" in
 
15698
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15699
  *) ac_try_echo=$ac_try;;
 
15700
esac
 
15701
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
15702
$as_echo "$ac_try_echo") >&5
 
15703
  (eval "$ac_compile") 2>conftest.er1
 
15704
  ac_status=$?
 
15705
  grep -v '^ *+' conftest.er1 >conftest.err
 
15706
  rm -f conftest.er1
 
15707
  cat conftest.err >&5
 
15708
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15709
  (exit $ac_status); } && {
 
15710
         test -z "$ac_c_werror_flag" ||
 
15711
         test ! -s conftest.err
 
15712
       } && test -s conftest.$ac_objext; then
 
15713
  ac_cv_have_decl_fflush_unlocked=yes
 
15714
else
 
15715
  $as_echo "$as_me: failed program was:" >&5
 
15716
sed 's/^/| /' conftest.$ac_ext >&5
 
15717
 
 
15718
        ac_cv_have_decl_fflush_unlocked=no
 
15719
fi
 
15720
 
 
15721
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15722
fi
 
15723
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
 
15724
$as_echo "$ac_cv_have_decl_fflush_unlocked" >&6; }
 
15725
if test "x$ac_cv_have_decl_fflush_unlocked" = x""yes; then
 
15726
 
 
15727
cat >>confdefs.h <<_ACEOF
 
15728
#define HAVE_DECL_FFLUSH_UNLOCKED 1
 
15729
_ACEOF
 
15730
 
 
15731
 
 
15732
else
 
15733
  cat >>confdefs.h <<_ACEOF
 
15734
#define HAVE_DECL_FFLUSH_UNLOCKED 0
 
15735
_ACEOF
 
15736
 
 
15737
 
 
15738
fi
 
15739
 
 
15740
 
 
15741
{ $as_echo "$as_me:$LINENO: checking whether flockfile is declared" >&5
 
15742
$as_echo_n "checking whether flockfile is declared... " >&6; }
 
15743
if test "${ac_cv_have_decl_flockfile+set}" = set; then
 
15744
  $as_echo_n "(cached) " >&6
 
15745
else
 
15746
  cat >conftest.$ac_ext <<_ACEOF
 
15747
/* confdefs.h.  */
 
15748
_ACEOF
 
15749
cat confdefs.h >>conftest.$ac_ext
 
15750
cat >>conftest.$ac_ext <<_ACEOF
 
15751
/* end confdefs.h.  */
 
15752
$ac_includes_default
 
15753
int
 
15754
main ()
 
15755
{
 
15756
#ifndef flockfile
 
15757
  (void) flockfile;
 
15758
#endif
 
15759
 
 
15760
  ;
 
15761
  return 0;
 
15762
}
 
15763
_ACEOF
 
15764
rm -f conftest.$ac_objext
 
15765
if { (ac_try="$ac_compile"
 
15766
case "(($ac_try" in
 
15767
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15768
  *) ac_try_echo=$ac_try;;
 
15769
esac
 
15770
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
15771
$as_echo "$ac_try_echo") >&5
 
15772
  (eval "$ac_compile") 2>conftest.er1
 
15773
  ac_status=$?
 
15774
  grep -v '^ *+' conftest.er1 >conftest.err
 
15775
  rm -f conftest.er1
 
15776
  cat conftest.err >&5
 
15777
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15778
  (exit $ac_status); } && {
 
15779
         test -z "$ac_c_werror_flag" ||
 
15780
         test ! -s conftest.err
 
15781
       } && test -s conftest.$ac_objext; then
 
15782
  ac_cv_have_decl_flockfile=yes
 
15783
else
 
15784
  $as_echo "$as_me: failed program was:" >&5
 
15785
sed 's/^/| /' conftest.$ac_ext >&5
 
15786
 
 
15787
        ac_cv_have_decl_flockfile=no
 
15788
fi
 
15789
 
 
15790
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15791
fi
 
15792
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_flockfile" >&5
 
15793
$as_echo "$ac_cv_have_decl_flockfile" >&6; }
 
15794
if test "x$ac_cv_have_decl_flockfile" = x""yes; then
 
15795
 
 
15796
cat >>confdefs.h <<_ACEOF
 
15797
#define HAVE_DECL_FLOCKFILE 1
 
15798
_ACEOF
 
15799
 
 
15800
 
 
15801
else
 
15802
  cat >>confdefs.h <<_ACEOF
 
15803
#define HAVE_DECL_FLOCKFILE 0
 
15804
_ACEOF
 
15805
 
 
15806
 
 
15807
fi
 
15808
 
 
15809
 
 
15810
{ $as_echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
 
15811
$as_echo_n "checking whether fputs_unlocked is declared... " >&6; }
 
15812
if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
 
15813
  $as_echo_n "(cached) " >&6
 
15814
else
 
15815
  cat >conftest.$ac_ext <<_ACEOF
 
15816
/* confdefs.h.  */
 
15817
_ACEOF
 
15818
cat confdefs.h >>conftest.$ac_ext
 
15819
cat >>conftest.$ac_ext <<_ACEOF
 
15820
/* end confdefs.h.  */
 
15821
$ac_includes_default
 
15822
int
 
15823
main ()
 
15824
{
 
15825
#ifndef fputs_unlocked
 
15826
  (void) fputs_unlocked;
 
15827
#endif
 
15828
 
 
15829
  ;
 
15830
  return 0;
 
15831
}
 
15832
_ACEOF
 
15833
rm -f conftest.$ac_objext
 
15834
if { (ac_try="$ac_compile"
 
15835
case "(($ac_try" in
 
15836
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15837
  *) ac_try_echo=$ac_try;;
 
15838
esac
 
15839
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
15840
$as_echo "$ac_try_echo") >&5
 
15841
  (eval "$ac_compile") 2>conftest.er1
 
15842
  ac_status=$?
 
15843
  grep -v '^ *+' conftest.er1 >conftest.err
 
15844
  rm -f conftest.er1
 
15845
  cat conftest.err >&5
 
15846
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15847
  (exit $ac_status); } && {
 
15848
         test -z "$ac_c_werror_flag" ||
 
15849
         test ! -s conftest.err
 
15850
       } && test -s conftest.$ac_objext; then
 
15851
  ac_cv_have_decl_fputs_unlocked=yes
 
15852
else
 
15853
  $as_echo "$as_me: failed program was:" >&5
 
15854
sed 's/^/| /' conftest.$ac_ext >&5
 
15855
 
 
15856
        ac_cv_have_decl_fputs_unlocked=no
 
15857
fi
 
15858
 
 
15859
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15860
fi
 
15861
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
 
15862
$as_echo "$ac_cv_have_decl_fputs_unlocked" >&6; }
 
15863
if test "x$ac_cv_have_decl_fputs_unlocked" = x""yes; then
 
15864
 
 
15865
cat >>confdefs.h <<_ACEOF
 
15866
#define HAVE_DECL_FPUTS_UNLOCKED 1
 
15867
_ACEOF
 
15868
 
 
15869
 
 
15870
else
 
15871
  cat >>confdefs.h <<_ACEOF
 
15872
#define HAVE_DECL_FPUTS_UNLOCKED 0
 
15873
_ACEOF
 
15874
 
 
15875
 
 
15876
fi
 
15877
 
 
15878
 
 
15879
{ $as_echo "$as_me:$LINENO: checking whether funlockfile is declared" >&5
 
15880
$as_echo_n "checking whether funlockfile is declared... " >&6; }
 
15881
if test "${ac_cv_have_decl_funlockfile+set}" = set; then
 
15882
  $as_echo_n "(cached) " >&6
 
15883
else
 
15884
  cat >conftest.$ac_ext <<_ACEOF
 
15885
/* confdefs.h.  */
 
15886
_ACEOF
 
15887
cat confdefs.h >>conftest.$ac_ext
 
15888
cat >>conftest.$ac_ext <<_ACEOF
 
15889
/* end confdefs.h.  */
 
15890
$ac_includes_default
 
15891
int
 
15892
main ()
 
15893
{
 
15894
#ifndef funlockfile
 
15895
  (void) funlockfile;
 
15896
#endif
 
15897
 
 
15898
  ;
 
15899
  return 0;
 
15900
}
 
15901
_ACEOF
 
15902
rm -f conftest.$ac_objext
 
15903
if { (ac_try="$ac_compile"
 
15904
case "(($ac_try" in
 
15905
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15906
  *) ac_try_echo=$ac_try;;
 
15907
esac
 
15908
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
15909
$as_echo "$ac_try_echo") >&5
 
15910
  (eval "$ac_compile") 2>conftest.er1
 
15911
  ac_status=$?
 
15912
  grep -v '^ *+' conftest.er1 >conftest.err
 
15913
  rm -f conftest.er1
 
15914
  cat conftest.err >&5
 
15915
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15916
  (exit $ac_status); } && {
 
15917
         test -z "$ac_c_werror_flag" ||
 
15918
         test ! -s conftest.err
 
15919
       } && test -s conftest.$ac_objext; then
 
15920
  ac_cv_have_decl_funlockfile=yes
 
15921
else
 
15922
  $as_echo "$as_me: failed program was:" >&5
 
15923
sed 's/^/| /' conftest.$ac_ext >&5
 
15924
 
 
15925
        ac_cv_have_decl_funlockfile=no
 
15926
fi
 
15927
 
 
15928
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15929
fi
 
15930
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_funlockfile" >&5
 
15931
$as_echo "$ac_cv_have_decl_funlockfile" >&6; }
 
15932
if test "x$ac_cv_have_decl_funlockfile" = x""yes; then
 
15933
 
 
15934
cat >>confdefs.h <<_ACEOF
 
15935
#define HAVE_DECL_FUNLOCKFILE 1
 
15936
_ACEOF
 
15937
 
 
15938
 
 
15939
else
 
15940
  cat >>confdefs.h <<_ACEOF
 
15941
#define HAVE_DECL_FUNLOCKFILE 0
 
15942
_ACEOF
 
15943
 
 
15944
 
 
15945
fi
 
15946
 
 
15947
 
 
15948
{ $as_echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
 
15949
$as_echo_n "checking whether putc_unlocked is declared... " >&6; }
 
15950
if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
 
15951
  $as_echo_n "(cached) " >&6
 
15952
else
 
15953
  cat >conftest.$ac_ext <<_ACEOF
 
15954
/* confdefs.h.  */
 
15955
_ACEOF
 
15956
cat confdefs.h >>conftest.$ac_ext
 
15957
cat >>conftest.$ac_ext <<_ACEOF
 
15958
/* end confdefs.h.  */
 
15959
$ac_includes_default
 
15960
int
 
15961
main ()
 
15962
{
 
15963
#ifndef putc_unlocked
 
15964
  (void) putc_unlocked;
 
15965
#endif
 
15966
 
 
15967
  ;
 
15968
  return 0;
 
15969
}
 
15970
_ACEOF
 
15971
rm -f conftest.$ac_objext
 
15972
if { (ac_try="$ac_compile"
 
15973
case "(($ac_try" in
 
15974
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15975
  *) ac_try_echo=$ac_try;;
 
15976
esac
 
15977
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
15978
$as_echo "$ac_try_echo") >&5
 
15979
  (eval "$ac_compile") 2>conftest.er1
 
15980
  ac_status=$?
 
15981
  grep -v '^ *+' conftest.er1 >conftest.err
 
15982
  rm -f conftest.er1
 
15983
  cat conftest.err >&5
 
15984
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15985
  (exit $ac_status); } && {
 
15986
         test -z "$ac_c_werror_flag" ||
 
15987
         test ! -s conftest.err
 
15988
       } && test -s conftest.$ac_objext; then
 
15989
  ac_cv_have_decl_putc_unlocked=yes
 
15990
else
 
15991
  $as_echo "$as_me: failed program was:" >&5
 
15992
sed 's/^/| /' conftest.$ac_ext >&5
 
15993
 
 
15994
        ac_cv_have_decl_putc_unlocked=no
 
15995
fi
 
15996
 
 
15997
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15998
fi
 
15999
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
 
16000
$as_echo "$ac_cv_have_decl_putc_unlocked" >&6; }
 
16001
if test "x$ac_cv_have_decl_putc_unlocked" = x""yes; then
 
16002
 
 
16003
cat >>confdefs.h <<_ACEOF
 
16004
#define HAVE_DECL_PUTC_UNLOCKED 1
 
16005
_ACEOF
 
16006
 
 
16007
 
 
16008
else
 
16009
  cat >>confdefs.h <<_ACEOF
 
16010
#define HAVE_DECL_PUTC_UNLOCKED 0
 
16011
_ACEOF
 
16012
 
 
16013
 
 
16014
fi
 
16015
 
 
16016
 
 
16017
 
 
16018
  { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
 
16019
$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
 
16020
if test "${am_cv_langinfo_codeset+set}" = set; then
 
16021
  $as_echo_n "(cached) " >&6
 
16022
else
 
16023
  cat >conftest.$ac_ext <<_ACEOF
 
16024
/* confdefs.h.  */
 
16025
_ACEOF
 
16026
cat confdefs.h >>conftest.$ac_ext
 
16027
cat >>conftest.$ac_ext <<_ACEOF
 
16028
/* end confdefs.h.  */
 
16029
#include <langinfo.h>
 
16030
int
 
16031
main ()
 
16032
{
 
16033
char* cs = nl_langinfo(CODESET); return !cs;
 
16034
  ;
 
16035
  return 0;
 
16036
}
 
16037
_ACEOF
 
16038
rm -f conftest.$ac_objext conftest$ac_exeext
 
16039
if { (ac_try="$ac_link"
 
16040
case "(($ac_try" in
 
16041
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16042
  *) ac_try_echo=$ac_try;;
 
16043
esac
 
16044
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
16045
$as_echo "$ac_try_echo") >&5
 
16046
  (eval "$ac_link") 2>conftest.er1
 
16047
  ac_status=$?
 
16048
  grep -v '^ *+' conftest.er1 >conftest.err
 
16049
  rm -f conftest.er1
 
16050
  cat conftest.err >&5
 
16051
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16052
  (exit $ac_status); } && {
 
16053
         test -z "$ac_c_werror_flag" ||
 
16054
         test ! -s conftest.err
 
16055
       } && test -s conftest$ac_exeext && {
 
16056
         test "$cross_compiling" = yes ||
 
16057
         $as_test_x conftest$ac_exeext
 
16058
       }; then
 
16059
  am_cv_langinfo_codeset=yes
 
16060
else
 
16061
  $as_echo "$as_me: failed program was:" >&5
 
16062
sed 's/^/| /' conftest.$ac_ext >&5
 
16063
 
 
16064
        am_cv_langinfo_codeset=no
 
16065
fi
 
16066
 
 
16067
rm -rf conftest.dSYM
 
16068
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
16069
      conftest$ac_exeext conftest.$ac_ext
 
16070
 
 
16071
fi
 
16072
{ $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
 
16073
$as_echo "$am_cv_langinfo_codeset" >&6; }
 
16074
  if test $am_cv_langinfo_codeset = yes; then
 
16075
 
 
16076
cat >>confdefs.h <<\_ACEOF
 
16077
#define HAVE_LANGINFO_CODESET 1
 
16078
_ACEOF
 
16079
 
 
16080
  fi
 
16081
 
 
16082
{ $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
 
16083
$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
 
16084
if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
 
16085
  $as_echo_n "(cached) " >&6
 
16086
else
 
16087
  cat >conftest.$ac_ext <<_ACEOF
 
16088
/* confdefs.h.  */
 
16089
_ACEOF
 
16090
cat confdefs.h >>conftest.$ac_ext
 
16091
cat >>conftest.$ac_ext <<_ACEOF
 
16092
/* end confdefs.h.  */
 
16093
$ac_includes_default
 
16094
int
 
16095
main ()
 
16096
{
 
16097
#ifndef getc_unlocked
 
16098
  (void) getc_unlocked;
 
16099
#endif
 
16100
 
 
16101
  ;
 
16102
  return 0;
 
16103
}
 
16104
_ACEOF
 
16105
rm -f conftest.$ac_objext
 
16106
if { (ac_try="$ac_compile"
 
16107
case "(($ac_try" in
 
16108
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16109
  *) ac_try_echo=$ac_try;;
 
16110
esac
 
16111
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
16112
$as_echo "$ac_try_echo") >&5
 
16113
  (eval "$ac_compile") 2>conftest.er1
 
16114
  ac_status=$?
 
16115
  grep -v '^ *+' conftest.er1 >conftest.err
 
16116
  rm -f conftest.er1
 
16117
  cat conftest.err >&5
 
16118
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16119
  (exit $ac_status); } && {
 
16120
         test -z "$ac_c_werror_flag" ||
 
16121
         test ! -s conftest.err
 
16122
       } && test -s conftest.$ac_objext; then
 
16123
  ac_cv_have_decl_getc_unlocked=yes
 
16124
else
 
16125
  $as_echo "$as_me: failed program was:" >&5
 
16126
sed 's/^/| /' conftest.$ac_ext >&5
 
16127
 
 
16128
        ac_cv_have_decl_getc_unlocked=no
 
16129
fi
 
16130
 
 
16131
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16132
fi
 
16133
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
 
16134
$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
 
16135
if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
 
16136
 
 
16137
cat >>confdefs.h <<_ACEOF
 
16138
#define HAVE_DECL_GETC_UNLOCKED 1
 
16139
_ACEOF
 
16140
 
 
16141
 
 
16142
else
 
16143
  cat >>confdefs.h <<_ACEOF
 
16144
#define HAVE_DECL_GETC_UNLOCKED 0
 
16145
_ACEOF
 
16146
 
 
16147
 
 
16148
fi
 
16149
 
 
16150
 
 
16151
 
 
16152
    { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
 
16153
$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
 
16154
if test "${ac_cv_gnu_library_2_1+set}" = set; then
 
16155
  $as_echo_n "(cached) " >&6
 
16156
else
 
16157
  cat >conftest.$ac_ext <<_ACEOF
 
16158
/* confdefs.h.  */
 
16159
_ACEOF
 
16160
cat confdefs.h >>conftest.$ac_ext
 
16161
cat >>conftest.$ac_ext <<_ACEOF
 
16162
/* end confdefs.h.  */
 
16163
 
 
16164
#include <features.h>
 
16165
#ifdef __GNU_LIBRARY__
 
16166
 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
 
16167
  Lucky GNU user
 
16168
 #endif
 
16169
#endif
 
16170
 
 
16171
_ACEOF
 
16172
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
16173
  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
 
16174
  ac_cv_gnu_library_2_1=yes
 
16175
else
 
16176
  ac_cv_gnu_library_2_1=no
 
16177
fi
 
16178
rm -f conftest*
 
16179
 
 
16180
 
 
16181
 
 
16182
fi
 
16183
{ $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
 
16184
$as_echo "$ac_cv_gnu_library_2_1" >&6; }
 
16185
 
 
16186
    GLIBC21="$ac_cv_gnu_library_2_1"
 
16187
 
 
16188
 
 
16189
 
 
16190
  GNULIB_BTOWC=0;
 
16191
  GNULIB_WCTOB=0;
 
16192
  GNULIB_MBSINIT=0;
 
16193
  GNULIB_MBRTOWC=0;
 
16194
  GNULIB_MBRLEN=0;
 
16195
  GNULIB_MBSRTOWCS=0;
 
16196
  GNULIB_MBSNRTOWCS=0;
 
16197
  GNULIB_WCRTOMB=0;
 
16198
  GNULIB_WCSRTOMBS=0;
 
16199
  GNULIB_WCSNRTOMBS=0;
 
16200
  GNULIB_WCWIDTH=0;
 
16201
    HAVE_BTOWC=1;
 
16202
  HAVE_MBSINIT=1;
 
16203
  HAVE_MBRTOWC=1;
 
16204
  HAVE_MBRLEN=1;
 
16205
  HAVE_MBSRTOWCS=1;
 
16206
  HAVE_MBSNRTOWCS=1;
 
16207
  HAVE_WCRTOMB=1;
 
16208
  HAVE_WCSRTOMBS=1;
 
16209
  HAVE_WCSNRTOMBS=1;
 
16210
  HAVE_DECL_WCTOB=1;
 
16211
  HAVE_DECL_WCWIDTH=1;
 
16212
  REPLACE_MBSTATE_T=0;
 
16213
  REPLACE_BTOWC=0;
 
16214
  REPLACE_WCTOB=0;
 
16215
  REPLACE_MBSINIT=0;
 
16216
  REPLACE_MBRTOWC=0;
 
16217
  REPLACE_MBRLEN=0;
 
16218
  REPLACE_MBSRTOWCS=0;
 
16219
  REPLACE_MBSNRTOWCS=0;
 
16220
  REPLACE_WCRTOMB=0;
 
16221
  REPLACE_WCSRTOMBS=0;
 
16222
  REPLACE_WCSNRTOMBS=0;
 
16223
  REPLACE_WCWIDTH=0;
 
16224
  WCHAR_H='';
 
16225
 
 
16226
 
 
16227
 
 
16228
   { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
 
16229
$as_echo_n "checking for mbstate_t... " >&6; }
 
16230
if test "${ac_cv_type_mbstate_t+set}" = set; then
 
16231
  $as_echo_n "(cached) " >&6
 
16232
else
 
16233
  cat >conftest.$ac_ext <<_ACEOF
 
16234
/* confdefs.h.  */
 
16235
_ACEOF
 
16236
cat confdefs.h >>conftest.$ac_ext
 
16237
cat >>conftest.$ac_ext <<_ACEOF
 
16238
/* end confdefs.h.  */
 
16239
$ac_includes_default
 
16240
#           include <wchar.h>
 
16241
int
 
16242
main ()
 
16243
{
 
16244
mbstate_t x; return sizeof x;
 
16245
  ;
 
16246
  return 0;
 
16247
}
 
16248
_ACEOF
 
16249
rm -f conftest.$ac_objext
 
16250
if { (ac_try="$ac_compile"
 
16251
case "(($ac_try" in
 
16252
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16253
  *) ac_try_echo=$ac_try;;
 
16254
esac
 
16255
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
16256
$as_echo "$ac_try_echo") >&5
 
16257
  (eval "$ac_compile") 2>conftest.er1
 
16258
  ac_status=$?
 
16259
  grep -v '^ *+' conftest.er1 >conftest.err
 
16260
  rm -f conftest.er1
 
16261
  cat conftest.err >&5
 
16262
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16263
  (exit $ac_status); } && {
 
16264
         test -z "$ac_c_werror_flag" ||
 
16265
         test ! -s conftest.err
 
16266
       } && test -s conftest.$ac_objext; then
 
16267
  ac_cv_type_mbstate_t=yes
 
16268
else
 
16269
  $as_echo "$as_me: failed program was:" >&5
 
16270
sed 's/^/| /' conftest.$ac_ext >&5
 
16271
 
 
16272
        ac_cv_type_mbstate_t=no
 
16273
fi
 
16274
 
 
16275
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16276
fi
 
16277
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
 
16278
$as_echo "$ac_cv_type_mbstate_t" >&6; }
 
16279
   if test $ac_cv_type_mbstate_t = yes; then
 
16280
 
 
16281
cat >>confdefs.h <<\_ACEOF
 
16282
#define HAVE_MBSTATE_T 1
 
16283
_ACEOF
 
16284
 
 
16285
   else
 
16286
 
 
16287
cat >>confdefs.h <<\_ACEOF
 
16288
#define mbstate_t int
 
16289
_ACEOF
 
16290
 
 
16291
   fi
 
16292
 
 
16293
 
 
16294
 
 
16295
 
 
16296
 
 
16297
 
 
16298
 
 
16299
 
 
16300
  { $as_echo "$as_me:$LINENO: checking for a traditional japanese locale" >&5
 
16301
$as_echo_n "checking for a traditional japanese locale... " >&6; }
 
16302
if test "${gt_cv_locale_ja+set}" = set; then
 
16303
  $as_echo_n "(cached) " >&6
 
16304
else
 
16305
 
 
16306
    cat >conftest.$ac_ext <<_ACEOF
 
16307
/* confdefs.h.  */
 
16308
_ACEOF
 
16309
cat confdefs.h >>conftest.$ac_ext
 
16310
cat >>conftest.$ac_ext <<_ACEOF
 
16311
/* end confdefs.h.  */
 
16312
 
 
16313
#include <locale.h>
 
16314
#include <time.h>
 
16315
#if HAVE_LANGINFO_CODESET
 
16316
# include <langinfo.h>
 
16317
#endif
 
16318
#include <stdlib.h>
 
16319
#include <string.h>
 
16320
struct tm t;
 
16321
char buf[16];
 
16322
int main ()
 
16323
{
 
16324
  const char *p;
 
16325
  /* Check whether the given locale name is recognized by the system.  */
 
16326
  if (setlocale (LC_ALL, "") == NULL) return 1;
 
16327
  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
 
16328
     On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
 
16329
     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
 
16330
     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
 
16331
     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
 
16332
     some unit tests fail.  */
 
16333
#if HAVE_LANGINFO_CODESET
 
16334
  {
 
16335
    const char *cs = nl_langinfo (CODESET);
 
16336
    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
 
16337
      return 1;
 
16338
  }
 
16339
#endif
 
16340
#ifdef __CYGWIN__
 
16341
  /* On Cygwin, avoid locale names without encoding suffix, because the
 
16342
     locale_charset() function relies on the encoding suffix.  Note that
 
16343
     LC_ALL is set on the command line.  */
 
16344
  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
 
16345
#endif
 
16346
  /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
 
16347
     on Cygwin 1.5.x.  */
 
16348
  if (MB_CUR_MAX == 1)
 
16349
    return 1;
 
16350
  /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
 
16351
     This excludes the UTF-8 encoding.  */
 
16352
  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
 
16353
  if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
 
16354
  for (p = buf; *p != '\0'; p++)
 
16355
    if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
 
16356
      return 1;
 
16357
  return 0;
 
16358
}
 
16359
 
 
16360
_ACEOF
 
16361
    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16362
  (eval $ac_link) 2>&5
 
16363
  ac_status=$?
 
16364
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16365
  (exit $ac_status); } && test -s conftest$ac_exeext; then
 
16366
      # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
 
16367
      # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
 
16368
      # configure script would override the LC_ALL setting. Likewise for
 
16369
      # LC_CTYPE, which is also set at the beginning of the configure script.
 
16370
      # Test for the AIX locale name.
 
16371
      if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
16372
        gt_cv_locale_ja=ja_JP
 
16373
      else
 
16374
        # Test for the locale name with explicit encoding suffix.
 
16375
        if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
16376
          gt_cv_locale_ja=ja_JP.EUC-JP
 
16377
        else
 
16378
          # Test for the HP-UX, OSF/1, NetBSD locale name.
 
16379
          if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
16380
            gt_cv_locale_ja=ja_JP.eucJP
 
16381
          else
 
16382
            # Test for the IRIX, FreeBSD locale name.
 
16383
            if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
16384
              gt_cv_locale_ja=ja_JP.EUC
 
16385
            else
 
16386
              # Test for the Solaris 7 locale name.
 
16387
              if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
16388
                gt_cv_locale_ja=ja
 
16389
              else
 
16390
                # Special test for NetBSD 1.6.
 
16391
                if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
 
16392
                  gt_cv_locale_ja=ja_JP.eucJP
 
16393
                else
 
16394
                  # None found.
 
16395
                  gt_cv_locale_ja=none
 
16396
                fi
 
16397
              fi
 
16398
            fi
 
16399
          fi
 
16400
        fi
 
16401
      fi
 
16402
    fi
 
16403
    rm -fr conftest*
 
16404
 
 
16405
fi
 
16406
{ $as_echo "$as_me:$LINENO: result: $gt_cv_locale_ja" >&5
 
16407
$as_echo "$gt_cv_locale_ja" >&6; }
 
16408
  LOCALE_JA=$gt_cv_locale_ja
 
16409
 
 
16410
 
 
16411
 
 
16412
 
 
16413
 
 
16414
  { $as_echo "$as_me:$LINENO: checking for a transitional chinese locale" >&5
 
16415
$as_echo_n "checking for a transitional chinese locale... " >&6; }
 
16416
if test "${gt_cv_locale_zh_CN+set}" = set; then
 
16417
  $as_echo_n "(cached) " >&6
 
16418
else
 
16419
 
 
16420
    cat >conftest.$ac_ext <<_ACEOF
 
16421
/* confdefs.h.  */
 
16422
_ACEOF
 
16423
cat confdefs.h >>conftest.$ac_ext
 
16424
cat >>conftest.$ac_ext <<_ACEOF
 
16425
/* end confdefs.h.  */
 
16426
 
 
16427
#include <locale.h>
 
16428
#include <stdlib.h>
 
16429
#include <time.h>
 
16430
#if HAVE_LANGINFO_CODESET
 
16431
# include <langinfo.h>
 
16432
#endif
 
16433
#include <stdlib.h>
 
16434
#include <string.h>
 
16435
struct tm t;
 
16436
char buf[16];
 
16437
int main ()
 
16438
{
 
16439
  const char *p;
 
16440
  /* Check whether the given locale name is recognized by the system.  */
 
16441
  if (setlocale (LC_ALL, "") == NULL) return 1;
 
16442
  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
 
16443
     On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
 
16444
     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
 
16445
     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
 
16446
     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
 
16447
     some unit tests fail.  */
 
16448
#if HAVE_LANGINFO_CODESET
 
16449
  {
 
16450
    const char *cs = nl_langinfo (CODESET);
 
16451
    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
 
16452
      return 1;
 
16453
  }
 
16454
#endif
 
16455
#ifdef __CYGWIN__
 
16456
  /* On Cygwin, avoid locale names without encoding suffix, because the
 
16457
     locale_charset() function relies on the encoding suffix.  Note that
 
16458
     LC_ALL is set on the command line.  */
 
16459
  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
 
16460
#endif
 
16461
  /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
 
16462
     This excludes the UTF-8 encoding.  */
 
16463
  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
 
16464
  if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
 
16465
  for (p = buf; *p != '\0'; p++)
 
16466
    if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
 
16467
      return 1;
 
16468
  /* Check whether a typical GB18030 multibyte sequence is recognized as a
 
16469
     single wide character.  This excludes the GB2312 and GBK encodings.  */
 
16470
  if (mblen ("\203\062\332\066", 5) != 4)
 
16471
    return 1;
 
16472
  return 0;
 
16473
}
 
16474
 
 
16475
_ACEOF
 
16476
    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16477
  (eval $ac_link) 2>&5
 
16478
  ac_status=$?
 
16479
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16480
  (exit $ac_status); } && test -s conftest$ac_exeext; then
 
16481
      # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
 
16482
      # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
 
16483
      # configure script would override the LC_ALL setting. Likewise for
 
16484
      # LC_CTYPE, which is also set at the beginning of the configure script.
 
16485
      # Test for the locale name without encoding suffix.
 
16486
      if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
16487
        gt_cv_locale_zh_CN=zh_CN
 
16488
      else
 
16489
        # Test for the locale name with explicit encoding suffix.
 
16490
        if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
16491
          gt_cv_locale_zh_CN=zh_CN.GB18030
 
16492
        else
 
16493
          # None found.
 
16494
          gt_cv_locale_zh_CN=none
 
16495
        fi
 
16496
      fi
 
16497
    else
 
16498
      # If there was a link error, due to mblen(), the system is so old that
 
16499
      # it certainly doesn't have a chinese locale.
 
16500
      gt_cv_locale_zh_CN=none
 
16501
    fi
 
16502
    rm -fr conftest*
 
16503
 
 
16504
fi
 
16505
{ $as_echo "$as_me:$LINENO: result: $gt_cv_locale_zh_CN" >&5
 
16506
$as_echo "$gt_cv_locale_zh_CN" >&6; }
 
16507
  LOCALE_ZH_CN=$gt_cv_locale_zh_CN
 
16508
 
 
16509
 
 
16510
 
 
16511
 
 
16512
  { $as_echo "$as_me:$LINENO: checking for a french Unicode locale" >&5
 
16513
$as_echo_n "checking for a french Unicode locale... " >&6; }
 
16514
if test "${gt_cv_locale_fr_utf8+set}" = set; then
 
16515
  $as_echo_n "(cached) " >&6
 
16516
else
 
16517
 
 
16518
    cat >conftest.$ac_ext <<_ACEOF
 
16519
/* confdefs.h.  */
 
16520
_ACEOF
 
16521
cat confdefs.h >>conftest.$ac_ext
 
16522
cat >>conftest.$ac_ext <<_ACEOF
 
16523
/* end confdefs.h.  */
 
16524
 
 
16525
#include <locale.h>
 
16526
#include <time.h>
 
16527
#if HAVE_LANGINFO_CODESET
 
16528
# include <langinfo.h>
 
16529
#endif
 
16530
#include <stdlib.h>
 
16531
#include <string.h>
 
16532
struct tm t;
 
16533
char buf[16];
 
16534
int main () {
 
16535
  /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
 
16536
     imitates locale dependent behaviour by looking at the environment
 
16537
     variables, and all locales use the UTF-8 encoding.  */
 
16538
#if !(defined __BEOS__ || defined __HAIKU__)
 
16539
  /* Check whether the given locale name is recognized by the system.  */
 
16540
  if (setlocale (LC_ALL, "") == NULL) return 1;
 
16541
  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
 
16542
     On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
 
16543
     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
 
16544
     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
 
16545
     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
 
16546
     some unit tests fail.  */
 
16547
# if HAVE_LANGINFO_CODESET
 
16548
  {
 
16549
    const char *cs = nl_langinfo (CODESET);
 
16550
    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
 
16551
      return 1;
 
16552
  }
 
16553
# endif
 
16554
# ifdef __CYGWIN__
 
16555
  /* On Cygwin, avoid locale names without encoding suffix, because the
 
16556
     locale_charset() function relies on the encoding suffix.  Note that
 
16557
     LC_ALL is set on the command line.  */
 
16558
  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
 
16559
# endif
 
16560
  /* Check whether in the abbreviation of the second month, the second
 
16561
     character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
 
16562
     two bytes long, with UTF-8 encoding.  */
 
16563
  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
 
16564
  if (strftime (buf, sizeof (buf), "%b", &t) < 4
 
16565
      || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
 
16566
    return 1;
 
16567
#endif
 
16568
  /* Check whether the decimal separator is a comma.
 
16569
     On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
 
16570
     are nl_langinfo(RADIXCHAR) are both ".".  */
 
16571
  if (localeconv () ->decimal_point[0] != ',') return 1;
 
16572
  return 0;
 
16573
}
 
16574
 
 
16575
_ACEOF
 
16576
    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16577
  (eval $ac_link) 2>&5
 
16578
  ac_status=$?
 
16579
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16580
  (exit $ac_status); } && test -s conftest$ac_exeext; then
 
16581
      # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
 
16582
      # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
 
16583
      # configure script would override the LC_ALL setting. Likewise for
 
16584
      # LC_CTYPE, which is also set at the beginning of the configure script.
 
16585
      # Test for the usual locale name.
 
16586
      if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
16587
        gt_cv_locale_fr_utf8=fr_FR
 
16588
      else
 
16589
        # Test for the locale name with explicit encoding suffix.
 
16590
        if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
16591
          gt_cv_locale_fr_utf8=fr_FR.UTF-8
 
16592
        else
 
16593
          # Test for the Solaris 7 locale name.
 
16594
          if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
16595
            gt_cv_locale_fr_utf8=fr.UTF-8
 
16596
          else
 
16597
            # None found.
 
16598
            gt_cv_locale_fr_utf8=none
 
16599
          fi
 
16600
        fi
 
16601
      fi
 
16602
    fi
 
16603
    rm -fr conftest*
 
16604
 
 
16605
fi
 
16606
{ $as_echo "$as_me:$LINENO: result: $gt_cv_locale_fr_utf8" >&5
 
16607
$as_echo "$gt_cv_locale_fr_utf8" >&6; }
 
16608
  LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
 
16609
 
 
16610
 
 
16611
 
 
16612
 
 
16613
 
 
16614
 
 
16615
 
 
16616
  GNULIB_MEMCHR=0;
 
16617
  GNULIB_MEMMEM=0;
 
16618
  GNULIB_MEMPCPY=0;
 
16619
  GNULIB_MEMRCHR=0;
 
16620
  GNULIB_RAWMEMCHR=0;
 
16621
  GNULIB_STPCPY=0;
 
16622
  GNULIB_STPNCPY=0;
 
16623
  GNULIB_STRCHRNUL=0;
 
16624
  GNULIB_STRDUP=0;
 
16625
  GNULIB_STRNDUP=0;
 
16626
  GNULIB_STRNLEN=0;
 
16627
  GNULIB_STRPBRK=0;
 
16628
  GNULIB_STRSEP=0;
 
16629
  GNULIB_STRSTR=0;
 
16630
  GNULIB_STRCASESTR=0;
 
16631
  GNULIB_STRTOK_R=0;
 
16632
  GNULIB_MBSLEN=0;
 
16633
  GNULIB_MBSNLEN=0;
 
16634
  GNULIB_MBSCHR=0;
 
16635
  GNULIB_MBSRCHR=0;
 
16636
  GNULIB_MBSSTR=0;
 
16637
  GNULIB_MBSCASECMP=0;
 
16638
  GNULIB_MBSNCASECMP=0;
 
16639
  GNULIB_MBSPCASECMP=0;
 
16640
  GNULIB_MBSCASESTR=0;
 
16641
  GNULIB_MBSCSPN=0;
 
16642
  GNULIB_MBSPBRK=0;
 
16643
  GNULIB_MBSSPN=0;
 
16644
  GNULIB_MBSSEP=0;
 
16645
  GNULIB_MBSTOK_R=0;
 
16646
  GNULIB_STRERROR=0;
 
16647
  GNULIB_STRSIGNAL=0;
 
16648
  GNULIB_STRVERSCMP=0;
 
16649
    HAVE_DECL_MEMMEM=1;
 
16650
  HAVE_MEMPCPY=1;
 
16651
  HAVE_DECL_MEMRCHR=1;
 
16652
  HAVE_RAWMEMCHR=1;
 
16653
  HAVE_STPCPY=1;
 
16654
  HAVE_STPNCPY=1;
 
16655
  HAVE_STRCHRNUL=1;
 
16656
  HAVE_DECL_STRDUP=1;
 
16657
  HAVE_STRNDUP=1;
 
16658
  HAVE_DECL_STRNDUP=1;
 
16659
  HAVE_DECL_STRNLEN=1;
 
16660
  HAVE_STRPBRK=1;
 
16661
  HAVE_STRSEP=1;
 
16662
  HAVE_STRCASESTR=1;
 
16663
  HAVE_DECL_STRTOK_R=1;
 
16664
  HAVE_DECL_STRERROR=1;
 
16665
  HAVE_DECL_STRSIGNAL=1;
 
16666
  HAVE_STRVERSCMP=1;
 
16667
  REPLACE_MEMCHR=0;
 
16668
  REPLACE_MEMMEM=0;
 
16669
  REPLACE_STRDUP=0;
 
16670
  REPLACE_STRSTR=0;
 
16671
  REPLACE_STRCASESTR=0;
 
16672
  REPLACE_STRERROR=0;
 
16673
  REPLACE_STRSIGNAL=0;
 
16674
 
 
16675
 
 
16676
 
 
16677
 
 
16678
 
 
16679
 
 
16680
 
 
16681
 
 
16682
  # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
 
16683
  # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
 
16684
  # irrelevant for anonymous mappings.
 
16685
  { $as_echo "$as_me:$LINENO: checking for mmap" >&5
 
16686
$as_echo_n "checking for mmap... " >&6; }
 
16687
if test "${ac_cv_func_mmap+set}" = set; then
 
16688
  $as_echo_n "(cached) " >&6
 
16689
else
 
16690
  cat >conftest.$ac_ext <<_ACEOF
 
16691
/* confdefs.h.  */
 
16692
_ACEOF
 
16693
cat confdefs.h >>conftest.$ac_ext
 
16694
cat >>conftest.$ac_ext <<_ACEOF
 
16695
/* end confdefs.h.  */
 
16696
/* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
 
16697
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
16698
#define mmap innocuous_mmap
 
16699
 
 
16700
/* System header to define __stub macros and hopefully few prototypes,
 
16701
    which can conflict with char mmap (); below.
 
16702
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
16703
    <limits.h> exists even on freestanding compilers.  */
 
16704
 
 
16705
#ifdef __STDC__
 
16706
# include <limits.h>
 
16707
#else
 
16708
# include <assert.h>
 
16709
#endif
 
16710
 
 
16711
#undef mmap
 
16712
 
 
16713
/* Override any GCC internal prototype to avoid an error.
 
16714
   Use char because int might match the return type of a GCC
 
16715
   builtin and then its argument prototype would still apply.  */
 
16716
#ifdef __cplusplus
 
16717
extern "C"
 
16718
#endif
 
16719
char mmap ();
 
16720
/* The GNU C library defines this for functions which it implements
 
16721
    to always fail with ENOSYS.  Some functions are actually named
 
16722
    something starting with __ and the normal name is an alias.  */
 
16723
#if defined __stub_mmap || defined __stub___mmap
 
16724
choke me
 
16725
#endif
 
16726
 
 
16727
int
 
16728
main ()
 
16729
{
 
16730
return mmap ();
 
16731
  ;
 
16732
  return 0;
 
16733
}
 
16734
_ACEOF
 
16735
rm -f conftest.$ac_objext conftest$ac_exeext
 
16736
if { (ac_try="$ac_link"
 
16737
case "(($ac_try" in
 
16738
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16739
  *) ac_try_echo=$ac_try;;
 
16740
esac
 
16741
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
16742
$as_echo "$ac_try_echo") >&5
 
16743
  (eval "$ac_link") 2>conftest.er1
 
16744
  ac_status=$?
 
16745
  grep -v '^ *+' conftest.er1 >conftest.err
 
16746
  rm -f conftest.er1
 
16747
  cat conftest.err >&5
 
16748
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16749
  (exit $ac_status); } && {
 
16750
         test -z "$ac_c_werror_flag" ||
 
16751
         test ! -s conftest.err
 
16752
       } && test -s conftest$ac_exeext && {
 
16753
         test "$cross_compiling" = yes ||
 
16754
         $as_test_x conftest$ac_exeext
 
16755
       }; then
 
16756
  ac_cv_func_mmap=yes
 
16757
else
 
16758
  $as_echo "$as_me: failed program was:" >&5
 
16759
sed 's/^/| /' conftest.$ac_ext >&5
 
16760
 
 
16761
        ac_cv_func_mmap=no
 
16762
fi
 
16763
 
 
16764
rm -rf conftest.dSYM
 
16765
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
16766
      conftest$ac_exeext conftest.$ac_ext
 
16767
fi
 
16768
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
 
16769
$as_echo "$ac_cv_func_mmap" >&6; }
 
16770
if test "x$ac_cv_func_mmap" = x""yes; then
 
16771
  gl_have_mmap=yes
 
16772
else
 
16773
  gl_have_mmap=no
 
16774
fi
 
16775
 
 
16776
 
 
16777
  # Try to allow MAP_ANONYMOUS.
 
16778
  gl_have_mmap_anonymous=no
 
16779
  if test $gl_have_mmap = yes; then
 
16780
    { $as_echo "$as_me:$LINENO: checking for MAP_ANONYMOUS" >&5
 
16781
$as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
 
16782
    cat >conftest.$ac_ext <<_ACEOF
 
16783
/* confdefs.h.  */
 
16784
_ACEOF
 
16785
cat confdefs.h >>conftest.$ac_ext
 
16786
cat >>conftest.$ac_ext <<_ACEOF
 
16787
/* end confdefs.h.  */
 
16788
 
 
16789
#include <sys/mman.h>
 
16790
#ifdef MAP_ANONYMOUS
 
16791
    I cant identify this map.
 
16792
#endif
 
16793
 
 
16794
_ACEOF
 
16795
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
16796
  $EGREP "I cant identify this map." >/dev/null 2>&1; then
 
16797
  gl_have_mmap_anonymous=yes
 
16798
fi
 
16799
rm -f conftest*
 
16800
 
 
16801
    if test $gl_have_mmap_anonymous != yes; then
 
16802
      cat >conftest.$ac_ext <<_ACEOF
 
16803
/* confdefs.h.  */
 
16804
_ACEOF
 
16805
cat confdefs.h >>conftest.$ac_ext
 
16806
cat >>conftest.$ac_ext <<_ACEOF
 
16807
/* end confdefs.h.  */
 
16808
 
 
16809
#include <sys/mman.h>
 
16810
#ifdef MAP_ANON
 
16811
    I cant identify this map.
 
16812
#endif
 
16813
 
 
16814
_ACEOF
 
16815
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
16816
  $EGREP "I cant identify this map." >/dev/null 2>&1; then
 
16817
 
 
16818
cat >>confdefs.h <<\_ACEOF
 
16819
#define MAP_ANONYMOUS MAP_ANON
 
16820
_ACEOF
 
16821
 
 
16822
         gl_have_mmap_anonymous=yes
 
16823
fi
 
16824
rm -f conftest*
 
16825
 
 
16826
    fi
 
16827
    { $as_echo "$as_me:$LINENO: result: $gl_have_mmap_anonymous" >&5
 
16828
$as_echo "$gl_have_mmap_anonymous" >&6; }
 
16829
    if test $gl_have_mmap_anonymous = yes; then
 
16830
 
 
16831
cat >>confdefs.h <<\_ACEOF
 
16832
#define HAVE_MAP_ANONYMOUS 1
 
16833
_ACEOF
 
16834
 
 
16835
    fi
 
16836
  fi
 
16837
 
 
16838
 
 
16839
 
 
16840
 
 
16841
 
 
16842
 
 
16843
 
 
16844
 
 
16845
 
 
16846
 
 
16847
 
 
16848
 
 
16849
 
 
16850
 
 
16851
 
 
16852
 
 
16853
 
 
16854
 
 
16855
 
 
16856
 
 
16857
 
 
16858
 
 
16859
 
 
16860
 
 
16861
for ac_func in memchr
 
16862
do
 
16863
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
16864
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
16865
$as_echo_n "checking for $ac_func... " >&6; }
 
16866
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
16867
  $as_echo_n "(cached) " >&6
 
16868
else
 
16869
  cat >conftest.$ac_ext <<_ACEOF
 
16870
/* confdefs.h.  */
 
16871
_ACEOF
 
16872
cat confdefs.h >>conftest.$ac_ext
 
16873
cat >>conftest.$ac_ext <<_ACEOF
 
16874
/* end confdefs.h.  */
 
16875
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
16876
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
16877
#define $ac_func innocuous_$ac_func
 
16878
 
 
16879
/* System header to define __stub macros and hopefully few prototypes,
 
16880
    which can conflict with char $ac_func (); below.
 
16881
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
16882
    <limits.h> exists even on freestanding compilers.  */
 
16883
 
 
16884
#ifdef __STDC__
 
16885
# include <limits.h>
 
16886
#else
 
16887
# include <assert.h>
 
16888
#endif
 
16889
 
 
16890
#undef $ac_func
 
16891
 
 
16892
/* Override any GCC internal prototype to avoid an error.
 
16893
   Use char because int might match the return type of a GCC
 
16894
   builtin and then its argument prototype would still apply.  */
 
16895
#ifdef __cplusplus
 
16896
extern "C"
 
16897
#endif
 
16898
char $ac_func ();
 
16899
/* The GNU C library defines this for functions which it implements
 
16900
    to always fail with ENOSYS.  Some functions are actually named
 
16901
    something starting with __ and the normal name is an alias.  */
 
16902
#if defined __stub_$ac_func || defined __stub___$ac_func
 
16903
choke me
 
16904
#endif
 
16905
 
 
16906
int
 
16907
main ()
 
16908
{
 
16909
return $ac_func ();
 
16910
  ;
 
16911
  return 0;
 
16912
}
 
16913
_ACEOF
 
16914
rm -f conftest.$ac_objext conftest$ac_exeext
 
16915
if { (ac_try="$ac_link"
 
16916
case "(($ac_try" in
 
16917
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16918
  *) ac_try_echo=$ac_try;;
 
16919
esac
 
16920
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
16921
$as_echo "$ac_try_echo") >&5
 
16922
  (eval "$ac_link") 2>conftest.er1
 
16923
  ac_status=$?
 
16924
  grep -v '^ *+' conftest.er1 >conftest.err
 
16925
  rm -f conftest.er1
 
16926
  cat conftest.err >&5
 
16927
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16928
  (exit $ac_status); } && {
 
16929
         test -z "$ac_c_werror_flag" ||
 
16930
         test ! -s conftest.err
 
16931
       } && test -s conftest$ac_exeext && {
 
16932
         test "$cross_compiling" = yes ||
 
16933
         $as_test_x conftest$ac_exeext
 
16934
       }; then
 
16935
  eval "$as_ac_var=yes"
 
16936
else
 
16937
  $as_echo "$as_me: failed program was:" >&5
 
16938
sed 's/^/| /' conftest.$ac_ext >&5
 
16939
 
 
16940
        eval "$as_ac_var=no"
 
16941
fi
 
16942
 
 
16943
rm -rf conftest.dSYM
 
16944
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
16945
      conftest$ac_exeext conftest.$ac_ext
 
16946
fi
 
16947
ac_res=`eval 'as_val=${'$as_ac_var'}
 
16948
                 $as_echo "$as_val"'`
 
16949
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
16950
$as_echo "$ac_res" >&6; }
 
16951
as_val=`eval 'as_val=${'$as_ac_var'}
 
16952
                 $as_echo "$as_val"'`
 
16953
   if test "x$as_val" = x""yes; then
 
16954
  cat >>confdefs.h <<_ACEOF
 
16955
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
16956
_ACEOF
 
16957
 
 
16958
else
 
16959
 
 
16960
    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
 
16961
 
 
16962
fi
 
16963
done
 
16964
 
 
16965
 
 
16966
  if test $ac_cv_func_memchr = no; then
 
16967
 
 
16968
 
 
16969
for ac_header in bp-sym.h
 
16970
do
 
16971
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
16972
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
16973
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
16974
$as_echo_n "checking for $ac_header... " >&6; }
 
16975
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
16976
  $as_echo_n "(cached) " >&6
 
16977
fi
 
16978
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
16979
                 $as_echo "$as_val"'`
 
16980
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
16981
$as_echo "$ac_res" >&6; }
 
16982
else
 
16983
  # Is the header compilable?
 
16984
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
16985
$as_echo_n "checking $ac_header usability... " >&6; }
 
16986
cat >conftest.$ac_ext <<_ACEOF
 
16987
/* confdefs.h.  */
 
16988
_ACEOF
 
16989
cat confdefs.h >>conftest.$ac_ext
 
16990
cat >>conftest.$ac_ext <<_ACEOF
 
16991
/* end confdefs.h.  */
 
16992
$ac_includes_default
 
16993
#include <$ac_header>
 
16994
_ACEOF
 
16995
rm -f conftest.$ac_objext
 
16996
if { (ac_try="$ac_compile"
 
16997
case "(($ac_try" in
 
16998
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16999
  *) ac_try_echo=$ac_try;;
 
17000
esac
 
17001
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
17002
$as_echo "$ac_try_echo") >&5
 
17003
  (eval "$ac_compile") 2>conftest.er1
 
17004
  ac_status=$?
 
17005
  grep -v '^ *+' conftest.er1 >conftest.err
 
17006
  rm -f conftest.er1
 
17007
  cat conftest.err >&5
 
17008
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17009
  (exit $ac_status); } && {
 
17010
         test -z "$ac_c_werror_flag" ||
 
17011
         test ! -s conftest.err
 
17012
       } && test -s conftest.$ac_objext; then
 
17013
  ac_header_compiler=yes
 
17014
else
 
17015
  $as_echo "$as_me: failed program was:" >&5
 
17016
sed 's/^/| /' conftest.$ac_ext >&5
 
17017
 
 
17018
        ac_header_compiler=no
 
17019
fi
 
17020
 
 
17021
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17022
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
17023
$as_echo "$ac_header_compiler" >&6; }
 
17024
 
 
17025
# Is the header present?
 
17026
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
17027
$as_echo_n "checking $ac_header presence... " >&6; }
 
17028
cat >conftest.$ac_ext <<_ACEOF
 
17029
/* confdefs.h.  */
 
17030
_ACEOF
 
17031
cat confdefs.h >>conftest.$ac_ext
 
17032
cat >>conftest.$ac_ext <<_ACEOF
 
17033
/* end confdefs.h.  */
 
17034
#include <$ac_header>
 
17035
_ACEOF
 
17036
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
17037
case "(($ac_try" in
 
17038
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17039
  *) ac_try_echo=$ac_try;;
 
17040
esac
 
17041
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
17042
$as_echo "$ac_try_echo") >&5
 
17043
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
17044
  ac_status=$?
 
17045
  grep -v '^ *+' conftest.er1 >conftest.err
 
17046
  rm -f conftest.er1
 
17047
  cat conftest.err >&5
 
17048
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17049
  (exit $ac_status); } >/dev/null && {
 
17050
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
17051
         test ! -s conftest.err
 
17052
       }; then
 
17053
  ac_header_preproc=yes
 
17054
else
 
17055
  $as_echo "$as_me: failed program was:" >&5
 
17056
sed 's/^/| /' conftest.$ac_ext >&5
 
17057
 
 
17058
  ac_header_preproc=no
 
17059
fi
 
17060
 
 
17061
rm -f conftest.err conftest.$ac_ext
 
17062
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
17063
$as_echo "$ac_header_preproc" >&6; }
 
17064
 
 
17065
# So?  What about this header?
 
17066
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
17067
  yes:no: )
 
17068
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
17069
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
17070
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
17071
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
17072
    ac_header_preproc=yes
 
17073
    ;;
 
17074
  no:yes:* )
 
17075
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
17076
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
17077
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
17078
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
17079
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
17080
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
17081
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
17082
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
17083
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
17084
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
17085
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
17086
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
17087
    ( cat <<\_ASBOX
 
17088
## ------------------------------- ##
 
17089
## Report this to bug-wget@gnu.org ##
 
17090
## ------------------------------- ##
 
17091
_ASBOX
 
17092
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
17093
    ;;
 
17094
esac
 
17095
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
17096
$as_echo_n "checking for $ac_header... " >&6; }
 
17097
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
17098
  $as_echo_n "(cached) " >&6
 
17099
else
 
17100
  eval "$as_ac_Header=\$ac_header_preproc"
 
17101
fi
 
17102
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
17103
                 $as_echo "$as_val"'`
 
17104
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
17105
$as_echo "$ac_res" >&6; }
 
17106
 
 
17107
fi
 
17108
as_val=`eval 'as_val=${'$as_ac_Header'}
 
17109
                 $as_echo "$as_val"'`
 
17110
   if test "x$as_val" = x""yes; then
 
17111
  cat >>confdefs.h <<_ACEOF
 
17112
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
17113
_ACEOF
 
17114
 
 
17115
fi
 
17116
 
 
17117
done
 
17118
 
 
17119
 
 
17120
    REPLACE_MEMCHR=1
 
17121
  fi
 
17122
 
 
17123
  if test $ac_cv_func_memchr = yes; then
 
17124
    # Detect platform-specific bugs in some versions of glibc:
 
17125
    # memchr should not dereference anything with length 0
 
17126
    #   http://bugzilla.redhat.com/499689
 
17127
    # memchr should not dereference overestimated length after a match
 
17128
    #   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
 
17129
    #   http://sourceware.org/bugzilla/show_bug.cgi?id=10162
 
17130
    # Assume that memchr works on platforms that lack mprotect.
 
17131
    { $as_echo "$as_me:$LINENO: checking whether memchr works" >&5
 
17132
$as_echo_n "checking whether memchr works... " >&6; }
 
17133
if test "${gl_cv_func_memchr_works+set}" = set; then
 
17134
  $as_echo_n "(cached) " >&6
 
17135
else
 
17136
  if test "$cross_compiling" = yes; then
 
17137
         gl_cv_func_memchr_works="guessing no"
 
17138
else
 
17139
  cat >conftest.$ac_ext <<_ACEOF
 
17140
/* confdefs.h.  */
 
17141
_ACEOF
 
17142
cat confdefs.h >>conftest.$ac_ext
 
17143
cat >>conftest.$ac_ext <<_ACEOF
 
17144
/* end confdefs.h.  */
 
17145
 
 
17146
#include <string.h>
 
17147
#if HAVE_SYS_MMAN_H
 
17148
# include <fcntl.h>
 
17149
# include <unistd.h>
 
17150
# include <sys/types.h>
 
17151
# include <sys/mman.h>
 
17152
# ifndef MAP_FILE
 
17153
#  define MAP_FILE 0
 
17154
# endif
 
17155
#endif
 
17156
 
 
17157
int
 
17158
main ()
 
17159
{
 
17160
 
 
17161
  char *fence = NULL;
 
17162
#if HAVE_SYS_MMAN_H && HAVE_MPROTECT
 
17163
# if HAVE_MAP_ANONYMOUS
 
17164
  const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
 
17165
  const int fd = -1;
 
17166
# else /* !HAVE_MAP_ANONYMOUS */
 
17167
  const int flags = MAP_FILE | MAP_PRIVATE;
 
17168
  int fd = open ("/dev/zero", O_RDONLY, 0666);
 
17169
  if (fd >= 0)
 
17170
# endif
 
17171
    {
 
17172
      int pagesize = getpagesize ();
 
17173
      char *two_pages =
 
17174
        (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
 
17175
                       flags, fd, 0);
 
17176
      if (two_pages != (char *)(-1)
 
17177
          && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
 
17178
        fence = two_pages + pagesize;
 
17179
    }
 
17180
#endif
 
17181
  if (fence)
 
17182
    {
 
17183
      if (memchr (fence, 0, 0))
 
17184
        return 1;
 
17185
      strcpy (fence - 9, "12345678");
 
17186
      if (memchr (fence - 9, 0, 79) != fence - 1)
 
17187
        return 2;
 
17188
    }
 
17189
  return 0;
 
17190
 
 
17191
  ;
 
17192
  return 0;
 
17193
}
 
17194
_ACEOF
 
17195
rm -f conftest$ac_exeext
 
17196
if { (ac_try="$ac_link"
 
17197
case "(($ac_try" in
 
17198
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17199
  *) ac_try_echo=$ac_try;;
 
17200
esac
 
17201
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
17202
$as_echo "$ac_try_echo") >&5
 
17203
  (eval "$ac_link") 2>&5
 
17204
  ac_status=$?
 
17205
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17206
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
17207
  { (case "(($ac_try" in
 
17208
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17209
  *) ac_try_echo=$ac_try;;
 
17210
esac
 
17211
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
17212
$as_echo "$ac_try_echo") >&5
 
17213
  (eval "$ac_try") 2>&5
 
17214
  ac_status=$?
 
17215
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17216
  (exit $ac_status); }; }; then
 
17217
  gl_cv_func_memchr_works=yes
 
17218
else
 
17219
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
17220
$as_echo "$as_me: failed program was:" >&5
 
17221
sed 's/^/| /' conftest.$ac_ext >&5
 
17222
 
 
17223
( exit $ac_status )
 
17224
gl_cv_func_memchr_works=no
 
17225
fi
 
17226
rm -rf conftest.dSYM
 
17227
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
17228
fi
 
17229
 
 
17230
 
 
17231
fi
 
17232
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_memchr_works" >&5
 
17233
$as_echo "$gl_cv_func_memchr_works" >&6; }
 
17234
    if test "$gl_cv_func_memchr_works" != yes; then
 
17235
 
 
17236
 
 
17237
for ac_header in bp-sym.h
 
17238
do
 
17239
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
17240
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
17241
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
17242
$as_echo_n "checking for $ac_header... " >&6; }
 
17243
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
17244
  $as_echo_n "(cached) " >&6
 
17245
fi
 
17246
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
17247
                 $as_echo "$as_val"'`
 
17248
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
17249
$as_echo "$ac_res" >&6; }
 
17250
else
 
17251
  # Is the header compilable?
 
17252
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
17253
$as_echo_n "checking $ac_header usability... " >&6; }
 
17254
cat >conftest.$ac_ext <<_ACEOF
 
17255
/* confdefs.h.  */
 
17256
_ACEOF
 
17257
cat confdefs.h >>conftest.$ac_ext
 
17258
cat >>conftest.$ac_ext <<_ACEOF
 
17259
/* end confdefs.h.  */
 
17260
$ac_includes_default
 
17261
#include <$ac_header>
 
17262
_ACEOF
 
17263
rm -f conftest.$ac_objext
 
17264
if { (ac_try="$ac_compile"
 
17265
case "(($ac_try" in
 
17266
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17267
  *) ac_try_echo=$ac_try;;
 
17268
esac
 
17269
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
17270
$as_echo "$ac_try_echo") >&5
 
17271
  (eval "$ac_compile") 2>conftest.er1
 
17272
  ac_status=$?
 
17273
  grep -v '^ *+' conftest.er1 >conftest.err
 
17274
  rm -f conftest.er1
 
17275
  cat conftest.err >&5
 
17276
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17277
  (exit $ac_status); } && {
 
17278
         test -z "$ac_c_werror_flag" ||
 
17279
         test ! -s conftest.err
 
17280
       } && test -s conftest.$ac_objext; then
 
17281
  ac_header_compiler=yes
 
17282
else
 
17283
  $as_echo "$as_me: failed program was:" >&5
 
17284
sed 's/^/| /' conftest.$ac_ext >&5
 
17285
 
 
17286
        ac_header_compiler=no
 
17287
fi
 
17288
 
 
17289
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17290
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
17291
$as_echo "$ac_header_compiler" >&6; }
 
17292
 
 
17293
# Is the header present?
 
17294
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
17295
$as_echo_n "checking $ac_header presence... " >&6; }
 
17296
cat >conftest.$ac_ext <<_ACEOF
 
17297
/* confdefs.h.  */
 
17298
_ACEOF
 
17299
cat confdefs.h >>conftest.$ac_ext
 
17300
cat >>conftest.$ac_ext <<_ACEOF
 
17301
/* end confdefs.h.  */
 
17302
#include <$ac_header>
 
17303
_ACEOF
 
17304
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
17305
case "(($ac_try" in
 
17306
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17307
  *) ac_try_echo=$ac_try;;
 
17308
esac
 
17309
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
17310
$as_echo "$ac_try_echo") >&5
 
17311
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
17312
  ac_status=$?
 
17313
  grep -v '^ *+' conftest.er1 >conftest.err
 
17314
  rm -f conftest.er1
 
17315
  cat conftest.err >&5
 
17316
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17317
  (exit $ac_status); } >/dev/null && {
 
17318
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
17319
         test ! -s conftest.err
 
17320
       }; then
 
17321
  ac_header_preproc=yes
 
17322
else
 
17323
  $as_echo "$as_me: failed program was:" >&5
 
17324
sed 's/^/| /' conftest.$ac_ext >&5
 
17325
 
 
17326
  ac_header_preproc=no
 
17327
fi
 
17328
 
 
17329
rm -f conftest.err conftest.$ac_ext
 
17330
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
17331
$as_echo "$ac_header_preproc" >&6; }
 
17332
 
 
17333
# So?  What about this header?
 
17334
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
17335
  yes:no: )
 
17336
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
17337
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
17338
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
17339
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
17340
    ac_header_preproc=yes
 
17341
    ;;
 
17342
  no:yes:* )
 
17343
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
17344
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
17345
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
17346
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
17347
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
17348
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
17349
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
17350
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
17351
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
17352
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
17353
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
17354
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
17355
    ( cat <<\_ASBOX
 
17356
## ------------------------------- ##
 
17357
## Report this to bug-wget@gnu.org ##
 
17358
## ------------------------------- ##
 
17359
_ASBOX
 
17360
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
17361
    ;;
 
17362
esac
 
17363
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
17364
$as_echo_n "checking for $ac_header... " >&6; }
 
17365
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
17366
  $as_echo_n "(cached) " >&6
 
17367
else
 
17368
  eval "$as_ac_Header=\$ac_header_preproc"
 
17369
fi
 
17370
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
17371
                 $as_echo "$as_val"'`
 
17372
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
17373
$as_echo "$ac_res" >&6; }
 
17374
 
 
17375
fi
 
17376
as_val=`eval 'as_val=${'$as_ac_Header'}
 
17377
                 $as_echo "$as_val"'`
 
17378
   if test "x$as_val" = x""yes; then
 
17379
  cat >>confdefs.h <<_ACEOF
 
17380
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
17381
_ACEOF
 
17382
 
 
17383
fi
 
17384
 
 
17385
done
 
17386
 
 
17387
 
 
17388
      REPLACE_MEMCHR=1
 
17389
 
 
17390
 
 
17391
 
 
17392
 
 
17393
 
 
17394
 
 
17395
 
 
17396
 
 
17397
  gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
 
17398
 
 
17399
    fi
 
17400
  fi
 
17401
 
 
17402
 
 
17403
    gl_cv_c_multiarch=no
 
17404
  cat >conftest.$ac_ext <<_ACEOF
 
17405
/* confdefs.h.  */
 
17406
_ACEOF
 
17407
cat confdefs.h >>conftest.$ac_ext
 
17408
cat >>conftest.$ac_ext <<_ACEOF
 
17409
/* end confdefs.h.  */
 
17410
#ifndef __APPLE_CC__
 
17411
         not a universal capable compiler
 
17412
        #endif
 
17413
        typedef int dummy;
 
17414
 
 
17415
_ACEOF
 
17416
rm -f conftest.$ac_objext
 
17417
if { (ac_try="$ac_compile"
 
17418
case "(($ac_try" in
 
17419
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17420
  *) ac_try_echo=$ac_try;;
 
17421
esac
 
17422
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
17423
$as_echo "$ac_try_echo") >&5
 
17424
  (eval "$ac_compile") 2>conftest.er1
 
17425
  ac_status=$?
 
17426
  grep -v '^ *+' conftest.er1 >conftest.err
 
17427
  rm -f conftest.er1
 
17428
  cat conftest.err >&5
 
17429
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17430
  (exit $ac_status); } && {
 
17431
         test -z "$ac_c_werror_flag" ||
 
17432
         test ! -s conftest.err
 
17433
       } && test -s conftest.$ac_objext; then
 
17434
 
 
17435
               arch=
 
17436
     prev=
 
17437
     for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
 
17438
       if test -n "$prev"; then
 
17439
         case $word in
 
17440
           i?86 | x86_64 | ppc | ppc64)
 
17441
             if test -z "$arch" || test "$arch" = "$word"; then
 
17442
               arch="$word"
 
17443
             else
 
17444
               gl_cv_c_multiarch=yes
 
17445
             fi
 
17446
             ;;
 
17447
         esac
 
17448
         prev=
 
17449
       else
 
17450
         if test "x$word" = "x-arch"; then
 
17451
           prev=arch
 
17452
         fi
 
17453
       fi
 
17454
     done
 
17455
 
 
17456
else
 
17457
  $as_echo "$as_me: failed program was:" >&5
 
17458
sed 's/^/| /' conftest.$ac_ext >&5
 
17459
 
 
17460
 
 
17461
fi
 
17462
 
 
17463
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17464
  if test $gl_cv_c_multiarch = yes; then
 
17465
 
 
17466
cat >>confdefs.h <<\_ACEOF
 
17467
#define AA_APPLE_UNIVERSAL_BUILD 1
 
17468
_ACEOF
 
17469
 
 
17470
    APPLE_UNIVERSAL_BUILD=1
 
17471
  else
 
17472
    APPLE_UNIVERSAL_BUILD=0
 
17473
  fi
 
17474
 
 
17475
 
 
17476
 
 
17477
  { $as_echo "$as_me:$LINENO: checking whether malloc, realloc, calloc are POSIX compliant" >&5
 
17478
$as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
 
17479
if test "${gl_cv_func_malloc_posix+set}" = set; then
 
17480
  $as_echo_n "(cached) " >&6
 
17481
else
 
17482
 
 
17483
                        cat >conftest.$ac_ext <<_ACEOF
 
17484
/* confdefs.h.  */
 
17485
_ACEOF
 
17486
cat confdefs.h >>conftest.$ac_ext
 
17487
cat >>conftest.$ac_ext <<_ACEOF
 
17488
/* end confdefs.h.  */
 
17489
 
 
17490
int
 
17491
main ()
 
17492
{
 
17493
#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
 
17494
         choke me
 
17495
         #endif
 
17496
 
 
17497
  ;
 
17498
  return 0;
 
17499
}
 
17500
_ACEOF
 
17501
rm -f conftest.$ac_objext
 
17502
if { (ac_try="$ac_compile"
 
17503
case "(($ac_try" in
 
17504
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17505
  *) ac_try_echo=$ac_try;;
 
17506
esac
 
17507
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
17508
$as_echo "$ac_try_echo") >&5
 
17509
  (eval "$ac_compile") 2>conftest.er1
 
17510
  ac_status=$?
 
17511
  grep -v '^ *+' conftest.er1 >conftest.err
 
17512
  rm -f conftest.er1
 
17513
  cat conftest.err >&5
 
17514
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17515
  (exit $ac_status); } && {
 
17516
         test -z "$ac_c_werror_flag" ||
 
17517
         test ! -s conftest.err
 
17518
       } && test -s conftest.$ac_objext; then
 
17519
  gl_cv_func_malloc_posix=yes
 
17520
else
 
17521
  $as_echo "$as_me: failed program was:" >&5
 
17522
sed 's/^/| /' conftest.$ac_ext >&5
 
17523
 
 
17524
        gl_cv_func_malloc_posix=no
 
17525
fi
 
17526
 
 
17527
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17528
 
 
17529
fi
 
17530
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_malloc_posix" >&5
 
17531
$as_echo "$gl_cv_func_malloc_posix" >&6; }
 
17532
 
 
17533
 
 
17534
  GNULIB_MALLOC_POSIX=0;
 
17535
  GNULIB_REALLOC_POSIX=0;
 
17536
  GNULIB_CALLOC_POSIX=0;
 
17537
  GNULIB_ATOLL=0;
 
17538
  GNULIB_GETLOADAVG=0;
 
17539
  GNULIB_GETSUBOPT=0;
 
17540
  GNULIB_MKDTEMP=0;
 
17541
  GNULIB_MKOSTEMP=0;
 
17542
  GNULIB_MKSTEMP=0;
 
17543
  GNULIB_PUTENV=0;
 
17544
  GNULIB_RANDOM_R=0;
 
17545
  GNULIB_RPMATCH=0;
 
17546
  GNULIB_SETENV=0;
 
17547
  GNULIB_STRTOD=0;
 
17548
  GNULIB_STRTOLL=0;
 
17549
  GNULIB_STRTOULL=0;
 
17550
  GNULIB_UNSETENV=0;
 
17551
    HAVE_ATOLL=1;
 
17552
  HAVE_CALLOC_POSIX=1;
 
17553
  HAVE_GETSUBOPT=1;
 
17554
  HAVE_MALLOC_POSIX=1;
 
17555
  HAVE_MKDTEMP=1;
 
17556
  HAVE_MKOSTEMP=1;
 
17557
  HAVE_REALLOC_POSIX=1;
 
17558
  HAVE_RANDOM_R=1;
 
17559
  HAVE_RPMATCH=1;
 
17560
  HAVE_SETENV=1;
 
17561
  HAVE_STRTOD=1;
 
17562
  HAVE_STRTOLL=1;
 
17563
  HAVE_STRTOULL=1;
 
17564
  HAVE_STRUCT_RANDOM_DATA=1;
 
17565
  HAVE_SYS_LOADAVG_H=0;
 
17566
  HAVE_UNSETENV=1;
 
17567
  HAVE_DECL_GETLOADAVG=1;
 
17568
  REPLACE_MKSTEMP=0;
 
17569
  REPLACE_PUTENV=0;
 
17570
  REPLACE_STRTOD=0;
 
17571
  VOID_UNSETENV=0;
 
17572
 
 
17573
 
 
17574
    REPLACE_NULL=0;
 
17575
  HAVE_WCHAR_T=1;
 
17576
  STDDEF_H='';
 
17577
 
 
17578
 
 
17579
  { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
 
17580
$as_echo_n "checking for wchar_t... " >&6; }
 
17581
if test "${gt_cv_c_wchar_t+set}" = set; then
 
17582
  $as_echo_n "(cached) " >&6
 
17583
else
 
17584
  cat >conftest.$ac_ext <<_ACEOF
 
17585
/* confdefs.h.  */
 
17586
_ACEOF
 
17587
cat confdefs.h >>conftest.$ac_ext
 
17588
cat >>conftest.$ac_ext <<_ACEOF
 
17589
/* end confdefs.h.  */
 
17590
#include <stddef.h>
 
17591
       wchar_t foo = (wchar_t)'\0';
 
17592
int
 
17593
main ()
 
17594
{
 
17595
 
 
17596
  ;
 
17597
  return 0;
 
17598
}
 
17599
_ACEOF
 
17600
rm -f conftest.$ac_objext
 
17601
if { (ac_try="$ac_compile"
 
17602
case "(($ac_try" in
 
17603
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17604
  *) ac_try_echo=$ac_try;;
 
17605
esac
 
17606
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
17607
$as_echo "$ac_try_echo") >&5
 
17608
  (eval "$ac_compile") 2>conftest.er1
 
17609
  ac_status=$?
 
17610
  grep -v '^ *+' conftest.er1 >conftest.err
 
17611
  rm -f conftest.er1
 
17612
  cat conftest.err >&5
 
17613
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17614
  (exit $ac_status); } && {
 
17615
         test -z "$ac_c_werror_flag" ||
 
17616
         test ! -s conftest.err
 
17617
       } && test -s conftest.$ac_objext; then
 
17618
  gt_cv_c_wchar_t=yes
 
17619
else
 
17620
  $as_echo "$as_me: failed program was:" >&5
 
17621
sed 's/^/| /' conftest.$ac_ext >&5
 
17622
 
 
17623
        gt_cv_c_wchar_t=no
 
17624
fi
 
17625
 
 
17626
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17627
fi
 
17628
{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
 
17629
$as_echo "$gt_cv_c_wchar_t" >&6; }
 
17630
  if test $gt_cv_c_wchar_t = yes; then
 
17631
 
 
17632
cat >>confdefs.h <<\_ACEOF
 
17633
#define HAVE_WCHAR_T 1
 
17634
_ACEOF
 
17635
 
 
17636
  fi
 
17637
 
 
17638
 
 
17639
 
 
17640
 
 
17641
  { $as_echo "$as_me:$LINENO: checking for long long int" >&5
 
17642
$as_echo_n "checking for long long int... " >&6; }
 
17643
if test "${ac_cv_type_long_long_int+set}" = set; then
 
17644
  $as_echo_n "(cached) " >&6
 
17645
else
 
17646
  cat >conftest.$ac_ext <<_ACEOF
 
17647
 
 
17648
  /* confdefs.h.  */
 
17649
_ACEOF
 
17650
cat confdefs.h >>conftest.$ac_ext
 
17651
cat >>conftest.$ac_ext <<_ACEOF
 
17652
/* end confdefs.h.  */
 
17653
/* For now, do not test the preprocessor; as of 2007 there are too many
 
17654
         implementations with broken preprocessors.  Perhaps this can
 
17655
         be revisited in 2012.  In the meantime, code should not expect
 
17656
         #if to work with literals wider than 32 bits.  */
 
17657
      /* Test literals.  */
 
17658
      long long int ll = 9223372036854775807ll;
 
17659
      long long int nll = -9223372036854775807LL;
 
17660
      unsigned long long int ull = 18446744073709551615ULL;
 
17661
      /* Test constant expressions.   */
 
17662
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
 
17663
                     ? 1 : -1)];
 
17664
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
 
17665
                     ? 1 : -1)];
 
17666
      int i = 63;
 
17667
int
 
17668
main ()
 
17669
{
 
17670
/* Test availability of runtime routines for shift and division.  */
 
17671
      long long int llmax = 9223372036854775807ll;
 
17672
      unsigned long long int ullmax = 18446744073709551615ull;
 
17673
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
 
17674
              | (llmax / ll) | (llmax % ll)
 
17675
              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
 
17676
              | (ullmax / ull) | (ullmax % ull));
 
17677
  ;
 
17678
  return 0;
 
17679
}
 
17680
 
 
17681
_ACEOF
 
17682
rm -f conftest.$ac_objext conftest$ac_exeext
 
17683
if { (ac_try="$ac_link"
 
17684
case "(($ac_try" in
 
17685
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17686
  *) ac_try_echo=$ac_try;;
 
17687
esac
 
17688
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
17689
$as_echo "$ac_try_echo") >&5
 
17690
  (eval "$ac_link") 2>conftest.er1
 
17691
  ac_status=$?
 
17692
  grep -v '^ *+' conftest.er1 >conftest.err
 
17693
  rm -f conftest.er1
 
17694
  cat conftest.err >&5
 
17695
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17696
  (exit $ac_status); } && {
 
17697
         test -z "$ac_c_werror_flag" ||
 
17698
         test ! -s conftest.err
 
17699
       } && test -s conftest$ac_exeext && {
 
17700
         test "$cross_compiling" = yes ||
 
17701
         $as_test_x conftest$ac_exeext
 
17702
       }; then
 
17703
                        if test "$cross_compiling" = yes; then
 
17704
  ac_cv_type_long_long_int=yes
 
17705
else
 
17706
  cat >conftest.$ac_ext <<_ACEOF
 
17707
/* confdefs.h.  */
 
17708
_ACEOF
 
17709
cat confdefs.h >>conftest.$ac_ext
 
17710
cat >>conftest.$ac_ext <<_ACEOF
 
17711
/* end confdefs.h.  */
 
17712
#include <limits.h>
 
17713
               #ifndef LLONG_MAX
 
17714
               # define HALF \
 
17715
                        (1LL << (sizeof (long long int) * CHAR_BIT - 2))
 
17716
               # define LLONG_MAX (HALF - 1 + HALF)
 
17717
               #endif
 
17718
int
 
17719
main ()
 
17720
{
 
17721
long long int n = 1;
 
17722
               int i;
 
17723
               for (i = 0; ; i++)
 
17724
                 {
 
17725
                   long long int m = n << i;
 
17726
                   if (m >> i != n)
 
17727
                     return 1;
 
17728
                   if (LLONG_MAX / 2 < m)
 
17729
                     break;
 
17730
                 }
 
17731
               return 0;
 
17732
  ;
 
17733
  return 0;
 
17734
}
 
17735
_ACEOF
 
17736
rm -f conftest$ac_exeext
 
17737
if { (ac_try="$ac_link"
 
17738
case "(($ac_try" in
 
17739
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17740
  *) ac_try_echo=$ac_try;;
 
17741
esac
 
17742
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
17743
$as_echo "$ac_try_echo") >&5
 
17744
  (eval "$ac_link") 2>&5
 
17745
  ac_status=$?
 
17746
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17747
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
17748
  { (case "(($ac_try" in
 
17749
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17750
  *) ac_try_echo=$ac_try;;
 
17751
esac
 
17752
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
17753
$as_echo "$ac_try_echo") >&5
 
17754
  (eval "$ac_try") 2>&5
 
17755
  ac_status=$?
 
17756
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17757
  (exit $ac_status); }; }; then
 
17758
  ac_cv_type_long_long_int=yes
 
17759
else
 
17760
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
17761
$as_echo "$as_me: failed program was:" >&5
 
17762
sed 's/^/| /' conftest.$ac_ext >&5
 
17763
 
 
17764
( exit $ac_status )
 
17765
ac_cv_type_long_long_int=no
 
17766
fi
 
17767
rm -rf conftest.dSYM
 
17768
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
17769
fi
 
17770
 
 
17771
 
 
17772
else
 
17773
  $as_echo "$as_me: failed program was:" >&5
 
17774
sed 's/^/| /' conftest.$ac_ext >&5
 
17775
 
 
17776
        ac_cv_type_long_long_int=no
 
17777
fi
 
17778
 
 
17779
rm -rf conftest.dSYM
 
17780
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17781
      conftest$ac_exeext conftest.$ac_ext
 
17782
fi
 
17783
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
 
17784
$as_echo "$ac_cv_type_long_long_int" >&6; }
 
17785
  if test $ac_cv_type_long_long_int = yes; then
 
17786
 
 
17787
cat >>confdefs.h <<\_ACEOF
 
17788
#define HAVE_LONG_LONG_INT 1
 
17789
_ACEOF
 
17790
 
 
17791
  fi
 
17792
 
 
17793
 
 
17794
  { $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5
 
17795
$as_echo_n "checking for unsigned long long int... " >&6; }
 
17796
if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
 
17797
  $as_echo_n "(cached) " >&6
 
17798
else
 
17799
  cat >conftest.$ac_ext <<_ACEOF
 
17800
 
 
17801
  /* confdefs.h.  */
 
17802
_ACEOF
 
17803
cat confdefs.h >>conftest.$ac_ext
 
17804
cat >>conftest.$ac_ext <<_ACEOF
 
17805
/* end confdefs.h.  */
 
17806
/* For now, do not test the preprocessor; as of 2007 there are too many
 
17807
         implementations with broken preprocessors.  Perhaps this can
 
17808
         be revisited in 2012.  In the meantime, code should not expect
 
17809
         #if to work with literals wider than 32 bits.  */
 
17810
      /* Test literals.  */
 
17811
      long long int ll = 9223372036854775807ll;
 
17812
      long long int nll = -9223372036854775807LL;
 
17813
      unsigned long long int ull = 18446744073709551615ULL;
 
17814
      /* Test constant expressions.   */
 
17815
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
 
17816
                     ? 1 : -1)];
 
17817
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
 
17818
                     ? 1 : -1)];
 
17819
      int i = 63;
 
17820
int
 
17821
main ()
 
17822
{
 
17823
/* Test availability of runtime routines for shift and division.  */
 
17824
      long long int llmax = 9223372036854775807ll;
 
17825
      unsigned long long int ullmax = 18446744073709551615ull;
 
17826
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
 
17827
              | (llmax / ll) | (llmax % ll)
 
17828
              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
 
17829
              | (ullmax / ull) | (ullmax % ull));
 
17830
  ;
 
17831
  return 0;
 
17832
}
 
17833
 
 
17834
_ACEOF
 
17835
rm -f conftest.$ac_objext conftest$ac_exeext
 
17836
if { (ac_try="$ac_link"
 
17837
case "(($ac_try" in
 
17838
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17839
  *) ac_try_echo=$ac_try;;
 
17840
esac
 
17841
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
17842
$as_echo "$ac_try_echo") >&5
 
17843
  (eval "$ac_link") 2>conftest.er1
 
17844
  ac_status=$?
 
17845
  grep -v '^ *+' conftest.er1 >conftest.err
 
17846
  rm -f conftest.er1
 
17847
  cat conftest.err >&5
 
17848
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17849
  (exit $ac_status); } && {
 
17850
         test -z "$ac_c_werror_flag" ||
 
17851
         test ! -s conftest.err
 
17852
       } && test -s conftest$ac_exeext && {
 
17853
         test "$cross_compiling" = yes ||
 
17854
         $as_test_x conftest$ac_exeext
 
17855
       }; then
 
17856
  ac_cv_type_unsigned_long_long_int=yes
 
17857
else
 
17858
  $as_echo "$as_me: failed program was:" >&5
 
17859
sed 's/^/| /' conftest.$ac_ext >&5
 
17860
 
 
17861
        ac_cv_type_unsigned_long_long_int=no
 
17862
fi
 
17863
 
 
17864
rm -rf conftest.dSYM
 
17865
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17866
      conftest$ac_exeext conftest.$ac_ext
 
17867
fi
 
17868
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
 
17869
$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
 
17870
  if test $ac_cv_type_unsigned_long_long_int = yes; then
 
17871
 
 
17872
cat >>confdefs.h <<\_ACEOF
 
17873
#define HAVE_UNSIGNED_LONG_LONG_INT 1
 
17874
_ACEOF
 
17875
 
 
17876
  fi
 
17877
 
 
17878
 
 
17879
 
 
17880
 
 
17881
 
 
17882
 
 
17883
 
 
17884
 
 
17885
 
 
17886
 
 
17887
    HAVE_STRCASECMP=1;
 
17888
  HAVE_DECL_STRNCASECMP=1;
 
17889
 
 
17890
 
 
17891
 
 
17892
 
 
17893
 
 
17894
 
 
17895
 
 
17896
 
 
17897
for ac_func in strcasestr
 
17898
do
 
17899
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
17900
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
17901
$as_echo_n "checking for $ac_func... " >&6; }
 
17902
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
17903
  $as_echo_n "(cached) " >&6
 
17904
else
 
17905
  cat >conftest.$ac_ext <<_ACEOF
 
17906
/* confdefs.h.  */
 
17907
_ACEOF
 
17908
cat confdefs.h >>conftest.$ac_ext
 
17909
cat >>conftest.$ac_ext <<_ACEOF
 
17910
/* end confdefs.h.  */
 
17911
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
17912
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17913
#define $ac_func innocuous_$ac_func
 
17914
 
 
17915
/* System header to define __stub macros and hopefully few prototypes,
 
17916
    which can conflict with char $ac_func (); below.
 
17917
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17918
    <limits.h> exists even on freestanding compilers.  */
 
17919
 
 
17920
#ifdef __STDC__
 
17921
# include <limits.h>
 
17922
#else
 
17923
# include <assert.h>
 
17924
#endif
 
17925
 
 
17926
#undef $ac_func
 
17927
 
 
17928
/* Override any GCC internal prototype to avoid an error.
 
17929
   Use char because int might match the return type of a GCC
 
17930
   builtin and then its argument prototype would still apply.  */
 
17931
#ifdef __cplusplus
 
17932
extern "C"
 
17933
#endif
 
17934
char $ac_func ();
 
17935
/* The GNU C library defines this for functions which it implements
 
17936
    to always fail with ENOSYS.  Some functions are actually named
 
17937
    something starting with __ and the normal name is an alias.  */
 
17938
#if defined __stub_$ac_func || defined __stub___$ac_func
 
17939
choke me
 
17940
#endif
 
17941
 
 
17942
int
 
17943
main ()
 
17944
{
 
17945
return $ac_func ();
 
17946
  ;
 
17947
  return 0;
 
17948
}
 
17949
_ACEOF
 
17950
rm -f conftest.$ac_objext conftest$ac_exeext
 
17951
if { (ac_try="$ac_link"
 
17952
case "(($ac_try" in
 
17953
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17954
  *) ac_try_echo=$ac_try;;
 
17955
esac
 
17956
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
17957
$as_echo "$ac_try_echo") >&5
 
17958
  (eval "$ac_link") 2>conftest.er1
 
17959
  ac_status=$?
 
17960
  grep -v '^ *+' conftest.er1 >conftest.err
 
17961
  rm -f conftest.er1
 
17962
  cat conftest.err >&5
 
17963
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17964
  (exit $ac_status); } && {
 
17965
         test -z "$ac_c_werror_flag" ||
 
17966
         test ! -s conftest.err
 
17967
       } && test -s conftest$ac_exeext && {
 
17968
         test "$cross_compiling" = yes ||
 
17969
         $as_test_x conftest$ac_exeext
 
17970
       }; then
 
17971
  eval "$as_ac_var=yes"
 
17972
else
 
17973
  $as_echo "$as_me: failed program was:" >&5
 
17974
sed 's/^/| /' conftest.$ac_ext >&5
 
17975
 
 
17976
        eval "$as_ac_var=no"
 
17977
fi
 
17978
 
 
17979
rm -rf conftest.dSYM
 
17980
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17981
      conftest$ac_exeext conftest.$ac_ext
 
17982
fi
 
17983
ac_res=`eval 'as_val=${'$as_ac_var'}
 
17984
                 $as_echo "$as_val"'`
 
17985
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
17986
$as_echo "$ac_res" >&6; }
 
17987
as_val=`eval 'as_val=${'$as_ac_var'}
 
17988
                 $as_echo "$as_val"'`
 
17989
   if test "x$as_val" = x""yes; then
 
17990
  cat >>confdefs.h <<_ACEOF
 
17991
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
17992
_ACEOF
 
17993
 
 
17994
fi
 
17995
done
 
17996
 
 
17997
  if test $ac_cv_func_strcasestr = no; then
 
17998
    HAVE_STRCASESTR=0
 
17999
  else
 
18000
    if test "$gl_cv_func_memchr_works" != yes; then
 
18001
      REPLACE_STRCASESTR=1
 
18002
    fi
 
18003
  fi
 
18004
  if test $HAVE_STRCASESTR = 0 || test $REPLACE_STRCASESTR = 1; then
 
18005
 
 
18006
 
 
18007
 
 
18008
 
 
18009
 
 
18010
 
 
18011
 
 
18012
 
 
18013
  gl_LIBOBJS="$gl_LIBOBJS strcasestr.$ac_objext"
 
18014
 
 
18015
 
 
18016
  :
 
18017
 
 
18018
  fi
 
18019
 
 
18020
 
 
18021
 
 
18022
 
 
18023
 
 
18024
 
 
18025
  if test -z "$ERRNO_H"; then
 
18026
    { $as_echo "$as_me:$LINENO: checking for working strerror function" >&5
 
18027
$as_echo_n "checking for working strerror function... " >&6; }
 
18028
if test "${gl_cv_func_working_strerror+set}" = set; then
 
18029
  $as_echo_n "(cached) " >&6
 
18030
else
 
18031
  if test "$cross_compiling" = yes; then
 
18032
           cat >conftest.$ac_ext <<_ACEOF
 
18033
/* confdefs.h.  */
 
18034
_ACEOF
 
18035
cat confdefs.h >>conftest.$ac_ext
 
18036
cat >>conftest.$ac_ext <<_ACEOF
 
18037
/* end confdefs.h.  */
 
18038
#include <string.h>
 
18039
 
 
18040
int
 
18041
main ()
 
18042
{
 
18043
return !*strerror (-2);
 
18044
  ;
 
18045
  return 0;
 
18046
}
 
18047
_ACEOF
 
18048
rm -f conftest.$ac_objext
 
18049
if { (ac_try="$ac_compile"
 
18050
case "(($ac_try" in
 
18051
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18052
  *) ac_try_echo=$ac_try;;
 
18053
esac
 
18054
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
18055
$as_echo "$ac_try_echo") >&5
 
18056
  (eval "$ac_compile") 2>conftest.er1
 
18057
  ac_status=$?
 
18058
  grep -v '^ *+' conftest.er1 >conftest.err
 
18059
  rm -f conftest.er1
 
18060
  cat conftest.err >&5
 
18061
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18062
  (exit $ac_status); } && {
 
18063
         test -z "$ac_c_werror_flag" ||
 
18064
         test ! -s conftest.err
 
18065
       } && test -s conftest.$ac_objext; then
 
18066
  gl_cv_func_working_strerror=yes
 
18067
else
 
18068
  $as_echo "$as_me: failed program was:" >&5
 
18069
sed 's/^/| /' conftest.$ac_ext >&5
 
18070
 
 
18071
        gl_cv_func_working_strerror=no
 
18072
fi
 
18073
 
 
18074
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18075
 
 
18076
else
 
18077
  cat >conftest.$ac_ext <<_ACEOF
 
18078
/* confdefs.h.  */
 
18079
_ACEOF
 
18080
cat confdefs.h >>conftest.$ac_ext
 
18081
cat >>conftest.$ac_ext <<_ACEOF
 
18082
/* end confdefs.h.  */
 
18083
#include <string.h>
 
18084
 
 
18085
int
 
18086
main ()
 
18087
{
 
18088
return !*strerror (-2);
 
18089
  ;
 
18090
  return 0;
 
18091
}
 
18092
_ACEOF
 
18093
rm -f conftest$ac_exeext
 
18094
if { (ac_try="$ac_link"
 
18095
case "(($ac_try" in
 
18096
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18097
  *) ac_try_echo=$ac_try;;
 
18098
esac
 
18099
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
18100
$as_echo "$ac_try_echo") >&5
 
18101
  (eval "$ac_link") 2>&5
 
18102
  ac_status=$?
 
18103
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18104
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
18105
  { (case "(($ac_try" in
 
18106
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18107
  *) ac_try_echo=$ac_try;;
 
18108
esac
 
18109
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
18110
$as_echo "$ac_try_echo") >&5
 
18111
  (eval "$ac_try") 2>&5
 
18112
  ac_status=$?
 
18113
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18114
  (exit $ac_status); }; }; then
 
18115
  gl_cv_func_working_strerror=yes
 
18116
else
 
18117
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
18118
$as_echo "$as_me: failed program was:" >&5
 
18119
sed 's/^/| /' conftest.$ac_ext >&5
 
18120
 
 
18121
( exit $ac_status )
 
18122
gl_cv_func_working_strerror=no
 
18123
fi
 
18124
rm -rf conftest.dSYM
 
18125
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
18126
fi
 
18127
 
 
18128
 
 
18129
 
 
18130
fi
 
18131
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_strerror" >&5
 
18132
$as_echo "$gl_cv_func_working_strerror" >&6; }
 
18133
    if test $gl_cv_func_working_strerror = no; then
 
18134
                  REPLACE_STRERROR=1
 
18135
    fi
 
18136
  else
 
18137
            REPLACE_STRERROR=1
 
18138
  fi
 
18139
  if test $REPLACE_STRERROR = 1; then
 
18140
 
 
18141
  { $as_echo "$as_me:$LINENO: checking whether strerror is declared" >&5
 
18142
$as_echo_n "checking whether strerror is declared... " >&6; }
 
18143
if test "${ac_cv_have_decl_strerror+set}" = set; then
 
18144
  $as_echo_n "(cached) " >&6
 
18145
else
 
18146
  cat >conftest.$ac_ext <<_ACEOF
 
18147
/* confdefs.h.  */
 
18148
_ACEOF
 
18149
cat confdefs.h >>conftest.$ac_ext
 
18150
cat >>conftest.$ac_ext <<_ACEOF
 
18151
/* end confdefs.h.  */
 
18152
$ac_includes_default
 
18153
int
 
18154
main ()
 
18155
{
 
18156
#ifndef strerror
 
18157
  (void) strerror;
 
18158
#endif
 
18159
 
 
18160
  ;
 
18161
  return 0;
 
18162
}
 
18163
_ACEOF
 
18164
rm -f conftest.$ac_objext
 
18165
if { (ac_try="$ac_compile"
 
18166
case "(($ac_try" in
 
18167
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18168
  *) ac_try_echo=$ac_try;;
 
18169
esac
 
18170
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
18171
$as_echo "$ac_try_echo") >&5
 
18172
  (eval "$ac_compile") 2>conftest.er1
 
18173
  ac_status=$?
 
18174
  grep -v '^ *+' conftest.er1 >conftest.err
 
18175
  rm -f conftest.er1
 
18176
  cat conftest.err >&5
 
18177
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18178
  (exit $ac_status); } && {
 
18179
         test -z "$ac_c_werror_flag" ||
 
18180
         test ! -s conftest.err
 
18181
       } && test -s conftest.$ac_objext; then
 
18182
  ac_cv_have_decl_strerror=yes
 
18183
else
 
18184
  $as_echo "$as_me: failed program was:" >&5
 
18185
sed 's/^/| /' conftest.$ac_ext >&5
 
18186
 
 
18187
        ac_cv_have_decl_strerror=no
 
18188
fi
 
18189
 
 
18190
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18191
fi
 
18192
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
 
18193
$as_echo "$ac_cv_have_decl_strerror" >&6; }
 
18194
if test "x$ac_cv_have_decl_strerror" = x""yes; then
 
18195
 
 
18196
cat >>confdefs.h <<_ACEOF
 
18197
#define HAVE_DECL_STRERROR 1
 
18198
_ACEOF
 
18199
 
 
18200
 
 
18201
else
 
18202
  cat >>confdefs.h <<_ACEOF
 
18203
#define HAVE_DECL_STRERROR 0
 
18204
_ACEOF
 
18205
 
 
18206
 
 
18207
fi
 
18208
 
 
18209
 
 
18210
 
 
18211
 
 
18212
 
 
18213
 
 
18214
 
 
18215
 
 
18216
  if test $ac_cv_header_sys_socket_h != yes; then
 
18217
 
 
18218
for ac_header in winsock2.h
 
18219
do
 
18220
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
18221
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
18222
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
18223
$as_echo_n "checking for $ac_header... " >&6; }
 
18224
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
18225
  $as_echo_n "(cached) " >&6
 
18226
fi
 
18227
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
18228
                 $as_echo "$as_val"'`
 
18229
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
18230
$as_echo "$ac_res" >&6; }
 
18231
else
 
18232
  # Is the header compilable?
 
18233
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
18234
$as_echo_n "checking $ac_header usability... " >&6; }
 
18235
cat >conftest.$ac_ext <<_ACEOF
 
18236
/* confdefs.h.  */
 
18237
_ACEOF
 
18238
cat confdefs.h >>conftest.$ac_ext
 
18239
cat >>conftest.$ac_ext <<_ACEOF
 
18240
/* end confdefs.h.  */
 
18241
$ac_includes_default
 
18242
#include <$ac_header>
 
18243
_ACEOF
 
18244
rm -f conftest.$ac_objext
 
18245
if { (ac_try="$ac_compile"
 
18246
case "(($ac_try" in
 
18247
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18248
  *) ac_try_echo=$ac_try;;
 
18249
esac
 
18250
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
18251
$as_echo "$ac_try_echo") >&5
 
18252
  (eval "$ac_compile") 2>conftest.er1
 
18253
  ac_status=$?
 
18254
  grep -v '^ *+' conftest.er1 >conftest.err
 
18255
  rm -f conftest.er1
 
18256
  cat conftest.err >&5
 
18257
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18258
  (exit $ac_status); } && {
 
18259
         test -z "$ac_c_werror_flag" ||
 
18260
         test ! -s conftest.err
 
18261
       } && test -s conftest.$ac_objext; then
 
18262
  ac_header_compiler=yes
 
18263
else
 
18264
  $as_echo "$as_me: failed program was:" >&5
 
18265
sed 's/^/| /' conftest.$ac_ext >&5
 
18266
 
 
18267
        ac_header_compiler=no
 
18268
fi
 
18269
 
 
18270
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18271
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
18272
$as_echo "$ac_header_compiler" >&6; }
 
18273
 
 
18274
# Is the header present?
 
18275
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
18276
$as_echo_n "checking $ac_header presence... " >&6; }
 
18277
cat >conftest.$ac_ext <<_ACEOF
 
18278
/* confdefs.h.  */
 
18279
_ACEOF
 
18280
cat confdefs.h >>conftest.$ac_ext
 
18281
cat >>conftest.$ac_ext <<_ACEOF
 
18282
/* end confdefs.h.  */
 
18283
#include <$ac_header>
 
18284
_ACEOF
 
18285
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
18286
case "(($ac_try" in
 
18287
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18288
  *) ac_try_echo=$ac_try;;
 
18289
esac
 
18290
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
18291
$as_echo "$ac_try_echo") >&5
 
18292
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
18293
  ac_status=$?
 
18294
  grep -v '^ *+' conftest.er1 >conftest.err
 
18295
  rm -f conftest.er1
 
18296
  cat conftest.err >&5
 
18297
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18298
  (exit $ac_status); } >/dev/null && {
 
18299
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
18300
         test ! -s conftest.err
 
18301
       }; then
 
18302
  ac_header_preproc=yes
 
18303
else
 
18304
  $as_echo "$as_me: failed program was:" >&5
 
18305
sed 's/^/| /' conftest.$ac_ext >&5
 
18306
 
 
18307
  ac_header_preproc=no
 
18308
fi
 
18309
 
 
18310
rm -f conftest.err conftest.$ac_ext
 
18311
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
18312
$as_echo "$ac_header_preproc" >&6; }
 
18313
 
 
18314
# So?  What about this header?
 
18315
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
18316
  yes:no: )
 
18317
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
18318
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
18319
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
18320
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
18321
    ac_header_preproc=yes
 
18322
    ;;
 
18323
  no:yes:* )
 
18324
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
18325
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
18326
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
18327
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
18328
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
18329
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
18330
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
18331
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
18332
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
18333
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
18334
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
18335
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
18336
    ( cat <<\_ASBOX
 
18337
## ------------------------------- ##
 
18338
## Report this to bug-wget@gnu.org ##
 
18339
## ------------------------------- ##
 
18340
_ASBOX
 
18341
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
18342
    ;;
 
18343
esac
 
18344
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
18345
$as_echo_n "checking for $ac_header... " >&6; }
 
18346
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
18347
  $as_echo_n "(cached) " >&6
 
18348
else
 
18349
  eval "$as_ac_Header=\$ac_header_preproc"
 
18350
fi
 
18351
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
18352
                 $as_echo "$as_val"'`
 
18353
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
18354
$as_echo "$ac_res" >&6; }
 
18355
 
 
18356
fi
 
18357
as_val=`eval 'as_val=${'$as_ac_Header'}
 
18358
                 $as_echo "$as_val"'`
 
18359
   if test "x$as_val" = x""yes; then
 
18360
  cat >>confdefs.h <<_ACEOF
 
18361
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
18362
_ACEOF
 
18363
 
 
18364
fi
 
18365
 
 
18366
done
 
18367
 
 
18368
  fi
 
18369
 
 
18370
  fi
 
18371
 
 
18372
{ $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
 
18373
$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
 
18374
if test "${ac_cv_c_restrict+set}" = set; then
 
18375
  $as_echo_n "(cached) " >&6
 
18376
else
 
18377
  ac_cv_c_restrict=no
 
18378
   # The order here caters to the fact that C++ does not require restrict.
 
18379
   for ac_kw in __restrict __restrict__ _Restrict restrict; do
 
18380
     cat >conftest.$ac_ext <<_ACEOF
 
18381
/* confdefs.h.  */
 
18382
_ACEOF
 
18383
cat confdefs.h >>conftest.$ac_ext
 
18384
cat >>conftest.$ac_ext <<_ACEOF
 
18385
/* end confdefs.h.  */
 
18386
typedef int * int_ptr;
 
18387
        int foo (int_ptr $ac_kw ip) {
 
18388
        return ip[0];
 
18389
       }
 
18390
int
 
18391
main ()
 
18392
{
 
18393
int s[1];
 
18394
        int * $ac_kw t = s;
 
18395
        t[0] = 0;
 
18396
        return foo(t)
 
18397
  ;
 
18398
  return 0;
 
18399
}
 
18400
_ACEOF
 
18401
rm -f conftest.$ac_objext
 
18402
if { (ac_try="$ac_compile"
 
18403
case "(($ac_try" in
 
18404
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18405
  *) ac_try_echo=$ac_try;;
 
18406
esac
 
18407
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
18408
$as_echo "$ac_try_echo") >&5
 
18409
  (eval "$ac_compile") 2>conftest.er1
 
18410
  ac_status=$?
 
18411
  grep -v '^ *+' conftest.er1 >conftest.err
 
18412
  rm -f conftest.er1
 
18413
  cat conftest.err >&5
 
18414
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18415
  (exit $ac_status); } && {
 
18416
         test -z "$ac_c_werror_flag" ||
 
18417
         test ! -s conftest.err
 
18418
       } && test -s conftest.$ac_objext; then
 
18419
  ac_cv_c_restrict=$ac_kw
 
18420
else
 
18421
  $as_echo "$as_me: failed program was:" >&5
 
18422
sed 's/^/| /' conftest.$ac_ext >&5
 
18423
 
 
18424
 
 
18425
fi
 
18426
 
 
18427
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18428
     test "$ac_cv_c_restrict" != no && break
 
18429
   done
 
18430
 
 
18431
fi
 
18432
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
 
18433
$as_echo "$ac_cv_c_restrict" >&6; }
 
18434
 
 
18435
 
 
18436
 case $ac_cv_c_restrict in
 
18437
   restrict) ;;
 
18438
   no) cat >>confdefs.h <<\_ACEOF
 
18439
#define restrict /**/
 
18440
_ACEOF
 
18441
 ;;
 
18442
   *)  cat >>confdefs.h <<_ACEOF
 
18443
#define restrict $ac_cv_c_restrict
 
18444
_ACEOF
 
18445
 ;;
 
18446
 esac
 
18447
 
 
18448
 
 
18449
 
 
18450
 
 
18451
 
 
18452
 
 
18453
 
 
18454
 
 
18455
 
 
18456
 
 
18457
 
 
18458
 
 
18459
 
 
18460
 
 
18461
 
 
18462
 
 
18463
 
 
18464
     if test $gl_cv_have_include_next = yes; then
 
18465
       gl_cv_next_string_h='<'string.h'>'
 
18466
     else
 
18467
       { $as_echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
 
18468
$as_echo_n "checking absolute name of <string.h>... " >&6; }
 
18469
if test "${gl_cv_next_string_h+set}" = set; then
 
18470
  $as_echo_n "(cached) " >&6
 
18471
else
 
18472
 
 
18473
          if test $ac_cv_header_string_h = yes; then
 
18474
            cat >conftest.$ac_ext <<_ACEOF
 
18475
/* confdefs.h.  */
 
18476
_ACEOF
 
18477
cat confdefs.h >>conftest.$ac_ext
 
18478
cat >>conftest.$ac_ext <<_ACEOF
 
18479
/* end confdefs.h.  */
 
18480
#include <string.h>
 
18481
 
 
18482
_ACEOF
 
18483
                                                                    case "$host_os" in
 
18484
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
18485
              *)    gl_absname_cpp="$ac_cpp" ;;
 
18486
            esac
 
18487
                                    gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
18488
               sed -n '\#/string.h#{
 
18489
                 s#.*"\(.*/string.h\)".*#\1#
 
18490
                 s#^/[^/]#//&#
 
18491
                 p
 
18492
                 q
 
18493
               }'`'"'
 
18494
          else
 
18495
            gl_cv_next_string_h='<'string.h'>'
 
18496
          fi
 
18497
 
 
18498
fi
 
18499
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
 
18500
$as_echo "$gl_cv_next_string_h" >&6; }
 
18501
     fi
 
18502
     NEXT_STRING_H=$gl_cv_next_string_h
 
18503
 
 
18504
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
18505
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
18506
       gl_next_as_first_directive='<'string.h'>'
 
18507
     else
 
18508
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
18509
       gl_next_as_first_directive=$gl_cv_next_string_h
 
18510
     fi
 
18511
     NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
 
18512
 
 
18513
 
 
18514
 
 
18515
 
 
18516
 
 
18517
 
 
18518
 
 
18519
 
 
18520
 
 
18521
 
 
18522
 
 
18523
 
 
18524
 
 
18525
 
 
18526
 
 
18527
 
 
18528
 
 
18529
 
 
18530
 
 
18531
     if test $gl_cv_have_include_next = yes; then
 
18532
       gl_cv_next_strings_h='<'strings.h'>'
 
18533
     else
 
18534
       { $as_echo "$as_me:$LINENO: checking absolute name of <strings.h>" >&5
 
18535
$as_echo_n "checking absolute name of <strings.h>... " >&6; }
 
18536
if test "${gl_cv_next_strings_h+set}" = set; then
 
18537
  $as_echo_n "(cached) " >&6
 
18538
else
 
18539
 
 
18540
          if test $ac_cv_header_strings_h = yes; then
 
18541
            cat >conftest.$ac_ext <<_ACEOF
 
18542
/* confdefs.h.  */
 
18543
_ACEOF
 
18544
cat confdefs.h >>conftest.$ac_ext
 
18545
cat >>conftest.$ac_ext <<_ACEOF
 
18546
/* end confdefs.h.  */
 
18547
#include <strings.h>
 
18548
 
 
18549
_ACEOF
 
18550
                                                                    case "$host_os" in
 
18551
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
18552
              *)    gl_absname_cpp="$ac_cpp" ;;
 
18553
            esac
 
18554
                                    gl_cv_next_strings_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
18555
               sed -n '\#/strings.h#{
 
18556
                 s#.*"\(.*/strings.h\)".*#\1#
 
18557
                 s#^/[^/]#//&#
 
18558
                 p
 
18559
                 q
 
18560
               }'`'"'
 
18561
          else
 
18562
            gl_cv_next_strings_h='<'strings.h'>'
 
18563
          fi
 
18564
 
 
18565
fi
 
18566
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_strings_h" >&5
 
18567
$as_echo "$gl_cv_next_strings_h" >&6; }
 
18568
     fi
 
18569
     NEXT_STRINGS_H=$gl_cv_next_strings_h
 
18570
 
 
18571
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
18572
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
18573
       gl_next_as_first_directive='<'strings.h'>'
 
18574
     else
 
18575
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
18576
       gl_next_as_first_directive=$gl_cv_next_strings_h
 
18577
     fi
 
18578
     NEXT_AS_FIRST_DIRECTIVE_STRINGS_H=$gl_next_as_first_directive
 
18579
 
 
18580
 
 
18581
 
 
18582
 
 
18583
 
 
18584
 
 
18585
 
 
18586
  { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
 
18587
$as_echo_n "checking for wint_t... " >&6; }
 
18588
if test "${gt_cv_c_wint_t+set}" = set; then
 
18589
  $as_echo_n "(cached) " >&6
 
18590
else
 
18591
  cat >conftest.$ac_ext <<_ACEOF
 
18592
/* confdefs.h.  */
 
18593
_ACEOF
 
18594
cat confdefs.h >>conftest.$ac_ext
 
18595
cat >>conftest.$ac_ext <<_ACEOF
 
18596
/* end confdefs.h.  */
 
18597
 
 
18598
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
 
18599
   <wchar.h>.
 
18600
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
 
18601
   before <wchar.h>.  */
 
18602
#include <stddef.h>
 
18603
#include <stdio.h>
 
18604
#include <time.h>
 
18605
#include <wchar.h>
 
18606
       wint_t foo = (wchar_t)'\0';
 
18607
int
 
18608
main ()
 
18609
{
 
18610
 
 
18611
  ;
 
18612
  return 0;
 
18613
}
 
18614
_ACEOF
 
18615
rm -f conftest.$ac_objext
 
18616
if { (ac_try="$ac_compile"
 
18617
case "(($ac_try" in
 
18618
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18619
  *) ac_try_echo=$ac_try;;
 
18620
esac
 
18621
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
18622
$as_echo "$ac_try_echo") >&5
 
18623
  (eval "$ac_compile") 2>conftest.er1
 
18624
  ac_status=$?
 
18625
  grep -v '^ *+' conftest.er1 >conftest.err
 
18626
  rm -f conftest.er1
 
18627
  cat conftest.err >&5
 
18628
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18629
  (exit $ac_status); } && {
 
18630
         test -z "$ac_c_werror_flag" ||
 
18631
         test ! -s conftest.err
 
18632
       } && test -s conftest.$ac_objext; then
 
18633
  gt_cv_c_wint_t=yes
 
18634
else
 
18635
  $as_echo "$as_me: failed program was:" >&5
 
18636
sed 's/^/| /' conftest.$ac_ext >&5
 
18637
 
 
18638
        gt_cv_c_wint_t=no
 
18639
fi
 
18640
 
 
18641
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18642
fi
 
18643
{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
 
18644
$as_echo "$gt_cv_c_wint_t" >&6; }
 
18645
  if test $gt_cv_c_wint_t = yes; then
 
18646
 
 
18647
cat >>confdefs.h <<\_ACEOF
 
18648
#define HAVE_WINT_T 1
 
18649
_ACEOF
 
18650
 
 
18651
  fi
 
18652
 
 
18653
 
 
18654
 
 
18655
 
 
18656
 
 
18657
 
 
18658
   if false; then
 
18659
  GL_COND_LIBTOOL_TRUE=
 
18660
  GL_COND_LIBTOOL_FALSE='#'
 
18661
else
 
18662
  GL_COND_LIBTOOL_TRUE='#'
 
18663
  GL_COND_LIBTOOL_FALSE=
 
18664
fi
 
18665
 
 
18666
  gl_cond_libtool=false
 
18667
  gl_libdeps=
 
18668
  gl_ltlibdeps=
 
18669
 
 
18670
 
 
18671
 
 
18672
 
 
18673
 
 
18674
 
 
18675
 
 
18676
 
 
18677
 
 
18678
  gl_source_base='lib'
 
18679
 
 
18680
 
 
18681
 
 
18682
 
 
18683
 
 
18684
  if test $ac_cv_func_alloca_works = no; then
 
18685
    :
 
18686
  fi
 
18687
 
 
18688
  # Define an additional variable used in the Makefile substitution.
 
18689
  if test $ac_cv_working_alloca_h = yes; then
 
18690
    { $as_echo "$as_me:$LINENO: checking for alloca as a compiler built-in" >&5
 
18691
$as_echo_n "checking for alloca as a compiler built-in... " >&6; }
 
18692
if test "${gl_cv_rpl_alloca+set}" = set; then
 
18693
  $as_echo_n "(cached) " >&6
 
18694
else
 
18695
 
 
18696
      cat >conftest.$ac_ext <<_ACEOF
 
18697
/* confdefs.h.  */
 
18698
_ACEOF
 
18699
cat confdefs.h >>conftest.$ac_ext
 
18700
cat >>conftest.$ac_ext <<_ACEOF
 
18701
/* end confdefs.h.  */
 
18702
 
 
18703
#if defined __GNUC__ || defined _AIX || defined _MSC_VER
 
18704
        Need own alloca
 
18705
#endif
 
18706
 
 
18707
_ACEOF
 
18708
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
18709
  $EGREP "Need own alloca" >/dev/null 2>&1; then
 
18710
  gl_cv_rpl_alloca=yes
 
18711
else
 
18712
  gl_cv_rpl_alloca=no
 
18713
fi
 
18714
rm -f conftest*
 
18715
 
 
18716
 
 
18717
fi
 
18718
{ $as_echo "$as_me:$LINENO: result: $gl_cv_rpl_alloca" >&5
 
18719
$as_echo "$gl_cv_rpl_alloca" >&6; }
 
18720
    if test $gl_cv_rpl_alloca = yes; then
 
18721
 
 
18722
cat >>confdefs.h <<\_ACEOF
 
18723
#define HAVE_ALLOCA 1
 
18724
_ACEOF
 
18725
 
 
18726
      ALLOCA_H=alloca.h
 
18727
    else
 
18728
                  ALLOCA_H=
 
18729
    fi
 
18730
  else
 
18731
    ALLOCA_H=alloca.h
 
18732
  fi
 
18733
 
 
18734
 
 
18735
 
 
18736
 
 
18737
 
 
18738
 
 
18739
 
 
18740
 
 
18741
 
 
18742
 
 
18743
 
 
18744
 
 
18745
 
 
18746
 
 
18747
 
 
18748
 
 
18749
{ $as_echo "$as_me:$LINENO: checking for error_at_line" >&5
 
18750
$as_echo_n "checking for error_at_line... " >&6; }
 
18751
if test "${ac_cv_lib_error_at_line+set}" = set; then
 
18752
  $as_echo_n "(cached) " >&6
 
18753
else
 
18754
  cat >conftest.$ac_ext <<_ACEOF
 
18755
/* confdefs.h.  */
 
18756
_ACEOF
 
18757
cat confdefs.h >>conftest.$ac_ext
 
18758
cat >>conftest.$ac_ext <<_ACEOF
 
18759
/* end confdefs.h.  */
 
18760
#include <error.h>
 
18761
int
 
18762
main ()
 
18763
{
 
18764
error_at_line (0, 0, "", 0, "an error occurred");
 
18765
  ;
 
18766
  return 0;
 
18767
}
 
18768
_ACEOF
 
18769
rm -f conftest.$ac_objext conftest$ac_exeext
 
18770
if { (ac_try="$ac_link"
 
18771
case "(($ac_try" in
 
18772
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18773
  *) ac_try_echo=$ac_try;;
 
18774
esac
 
18775
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
18776
$as_echo "$ac_try_echo") >&5
 
18777
  (eval "$ac_link") 2>conftest.er1
 
18778
  ac_status=$?
 
18779
  grep -v '^ *+' conftest.er1 >conftest.err
 
18780
  rm -f conftest.er1
 
18781
  cat conftest.err >&5
 
18782
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18783
  (exit $ac_status); } && {
 
18784
         test -z "$ac_c_werror_flag" ||
 
18785
         test ! -s conftest.err
 
18786
       } && test -s conftest$ac_exeext && {
 
18787
         test "$cross_compiling" = yes ||
 
18788
         $as_test_x conftest$ac_exeext
 
18789
       }; then
 
18790
  ac_cv_lib_error_at_line=yes
 
18791
else
 
18792
  $as_echo "$as_me: failed program was:" >&5
 
18793
sed 's/^/| /' conftest.$ac_ext >&5
 
18794
 
 
18795
        ac_cv_lib_error_at_line=no
 
18796
fi
 
18797
 
 
18798
rm -rf conftest.dSYM
 
18799
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
18800
      conftest$ac_exeext conftest.$ac_ext
 
18801
fi
 
18802
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
 
18803
$as_echo "$ac_cv_lib_error_at_line" >&6; }
 
18804
if test $ac_cv_lib_error_at_line = no; then
 
18805
 
 
18806
 
 
18807
 
 
18808
 
 
18809
 
 
18810
 
 
18811
 
 
18812
 
 
18813
  gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
 
18814
 
 
18815
fi
 
18816
 
 
18817
 
 
18818
 
 
18819
  :
 
18820
 
 
18821
 
 
18822
 
 
18823
 
 
18824
  XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
 
18825
 
 
18826
 
 
18827
 
 
18828
  XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
 
18829
 
 
18830
 
 
18831
 
 
18832
 
 
18833
 
 
18834
 
 
18835
 
 
18836
 
 
18837
 
 
18838
 
 
18839
  gl_LIBOBJS="$gl_LIBOBJS exitfail.$ac_objext"
 
18840
 
 
18841
 
 
18842
    :
 
18843
 
 
18844
 
 
18845
 
 
18846
 
 
18847
 
 
18848
 
 
18849
 
 
18850
 
 
18851
  { $as_echo "$as_me:$LINENO: checking for fseeko" >&5
 
18852
$as_echo_n "checking for fseeko... " >&6; }
 
18853
if test "${gl_cv_func_fseeko+set}" = set; then
 
18854
  $as_echo_n "(cached) " >&6
 
18855
else
 
18856
 
 
18857
      cat >conftest.$ac_ext <<_ACEOF
 
18858
/* confdefs.h.  */
 
18859
_ACEOF
 
18860
cat confdefs.h >>conftest.$ac_ext
 
18861
cat >>conftest.$ac_ext <<_ACEOF
 
18862
/* end confdefs.h.  */
 
18863
#include <stdio.h>
 
18864
int
 
18865
main ()
 
18866
{
 
18867
fseeko (stdin, 0, 0);
 
18868
  ;
 
18869
  return 0;
 
18870
}
 
18871
_ACEOF
 
18872
rm -f conftest.$ac_objext conftest$ac_exeext
 
18873
if { (ac_try="$ac_link"
 
18874
case "(($ac_try" in
 
18875
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18876
  *) ac_try_echo=$ac_try;;
 
18877
esac
 
18878
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
18879
$as_echo "$ac_try_echo") >&5
 
18880
  (eval "$ac_link") 2>conftest.er1
 
18881
  ac_status=$?
 
18882
  grep -v '^ *+' conftest.er1 >conftest.err
 
18883
  rm -f conftest.er1
 
18884
  cat conftest.err >&5
 
18885
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18886
  (exit $ac_status); } && {
 
18887
         test -z "$ac_c_werror_flag" ||
 
18888
         test ! -s conftest.err
 
18889
       } && test -s conftest$ac_exeext && {
 
18890
         test "$cross_compiling" = yes ||
 
18891
         $as_test_x conftest$ac_exeext
 
18892
       }; then
 
18893
  gl_cv_func_fseeko=yes
 
18894
else
 
18895
  $as_echo "$as_me: failed program was:" >&5
 
18896
sed 's/^/| /' conftest.$ac_ext >&5
 
18897
 
 
18898
        gl_cv_func_fseeko=no
 
18899
fi
 
18900
 
 
18901
rm -rf conftest.dSYM
 
18902
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
18903
      conftest$ac_exeext conftest.$ac_ext
 
18904
 
 
18905
fi
 
18906
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_fseeko" >&5
 
18907
$as_echo "$gl_cv_func_fseeko" >&6; }
 
18908
  if test $gl_cv_func_fseeko = no; then
 
18909
    HAVE_FSEEKO=0
 
18910
 
 
18911
 
 
18912
 
 
18913
 
 
18914
 
 
18915
 
 
18916
 
 
18917
 
 
18918
 
 
18919
  gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
 
18920
 
 
18921
 
 
18922
  REPLACE_FSEEKO=1
 
18923
 
 
18924
  elif test $gl_cv_var_stdin_large_offset = no; then
 
18925
 
 
18926
 
 
18927
 
 
18928
 
 
18929
 
 
18930
 
 
18931
 
 
18932
 
 
18933
 
 
18934
  gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
 
18935
 
 
18936
 
 
18937
  REPLACE_FSEEKO=1
 
18938
 
 
18939
  fi
 
18940
 
 
18941
 
 
18942
 
 
18943
  GNULIB_FSEEKO=1
 
18944
 
 
18945
 
 
18946
 
 
18947
 
 
18948
 
 
18949
 
 
18950
 
 
18951
 
 
18952
 
 
18953
 
 
18954
 
 
18955
 
 
18956
 
 
18957
 
 
18958
 
 
18959
for ac_func in getdelim
 
18960
do
 
18961
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
18962
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
18963
$as_echo_n "checking for $ac_func... " >&6; }
 
18964
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
18965
  $as_echo_n "(cached) " >&6
 
18966
else
 
18967
  cat >conftest.$ac_ext <<_ACEOF
 
18968
/* confdefs.h.  */
 
18969
_ACEOF
 
18970
cat confdefs.h >>conftest.$ac_ext
 
18971
cat >>conftest.$ac_ext <<_ACEOF
 
18972
/* end confdefs.h.  */
 
18973
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
18974
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18975
#define $ac_func innocuous_$ac_func
 
18976
 
 
18977
/* System header to define __stub macros and hopefully few prototypes,
 
18978
    which can conflict with char $ac_func (); below.
 
18979
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18980
    <limits.h> exists even on freestanding compilers.  */
 
18981
 
 
18982
#ifdef __STDC__
 
18983
# include <limits.h>
 
18984
#else
 
18985
# include <assert.h>
 
18986
#endif
 
18987
 
 
18988
#undef $ac_func
 
18989
 
 
18990
/* Override any GCC internal prototype to avoid an error.
 
18991
   Use char because int might match the return type of a GCC
 
18992
   builtin and then its argument prototype would still apply.  */
 
18993
#ifdef __cplusplus
 
18994
extern "C"
 
18995
#endif
 
18996
char $ac_func ();
 
18997
/* The GNU C library defines this for functions which it implements
 
18998
    to always fail with ENOSYS.  Some functions are actually named
 
18999
    something starting with __ and the normal name is an alias.  */
 
19000
#if defined __stub_$ac_func || defined __stub___$ac_func
 
19001
choke me
 
19002
#endif
 
19003
 
 
19004
int
 
19005
main ()
 
19006
{
 
19007
return $ac_func ();
 
19008
  ;
 
19009
  return 0;
 
19010
}
 
19011
_ACEOF
 
19012
rm -f conftest.$ac_objext conftest$ac_exeext
 
19013
if { (ac_try="$ac_link"
 
19014
case "(($ac_try" in
 
19015
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19016
  *) ac_try_echo=$ac_try;;
 
19017
esac
 
19018
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
19019
$as_echo "$ac_try_echo") >&5
 
19020
  (eval "$ac_link") 2>conftest.er1
 
19021
  ac_status=$?
 
19022
  grep -v '^ *+' conftest.er1 >conftest.err
 
19023
  rm -f conftest.er1
 
19024
  cat conftest.err >&5
 
19025
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19026
  (exit $ac_status); } && {
 
19027
         test -z "$ac_c_werror_flag" ||
 
19028
         test ! -s conftest.err
 
19029
       } && test -s conftest$ac_exeext && {
 
19030
         test "$cross_compiling" = yes ||
 
19031
         $as_test_x conftest$ac_exeext
 
19032
       }; then
 
19033
  eval "$as_ac_var=yes"
 
19034
else
 
19035
  $as_echo "$as_me: failed program was:" >&5
 
19036
sed 's/^/| /' conftest.$ac_ext >&5
 
19037
 
 
19038
        eval "$as_ac_var=no"
 
19039
fi
 
19040
 
 
19041
rm -rf conftest.dSYM
 
19042
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
19043
      conftest$ac_exeext conftest.$ac_ext
 
19044
fi
 
19045
ac_res=`eval 'as_val=${'$as_ac_var'}
 
19046
                 $as_echo "$as_val"'`
 
19047
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
19048
$as_echo "$ac_res" >&6; }
 
19049
as_val=`eval 'as_val=${'$as_ac_var'}
 
19050
                 $as_echo "$as_val"'`
 
19051
   if test "x$as_val" = x""yes; then
 
19052
  cat >>confdefs.h <<_ACEOF
 
19053
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
19054
_ACEOF
 
19055
 
 
19056
else
 
19057
 
 
19058
    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
 
19059
 
 
19060
fi
 
19061
done
 
19062
 
 
19063
 
 
19064
 
 
19065
 
 
19066
 
 
19067
 
 
19068
 
 
19069
  if test $ac_cv_func_getdelim = no; then
 
19070
 
 
19071
 
 
19072
 
 
19073
for ac_func in flockfile funlockfile
 
19074
do
 
19075
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
19076
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
19077
$as_echo_n "checking for $ac_func... " >&6; }
 
19078
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
19079
  $as_echo_n "(cached) " >&6
 
19080
else
 
19081
  cat >conftest.$ac_ext <<_ACEOF
 
19082
/* confdefs.h.  */
 
19083
_ACEOF
 
19084
cat confdefs.h >>conftest.$ac_ext
 
19085
cat >>conftest.$ac_ext <<_ACEOF
 
19086
/* end confdefs.h.  */
 
19087
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
19088
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19089
#define $ac_func innocuous_$ac_func
 
19090
 
 
19091
/* System header to define __stub macros and hopefully few prototypes,
 
19092
    which can conflict with char $ac_func (); below.
 
19093
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19094
    <limits.h> exists even on freestanding compilers.  */
 
19095
 
 
19096
#ifdef __STDC__
 
19097
# include <limits.h>
 
19098
#else
 
19099
# include <assert.h>
 
19100
#endif
 
19101
 
 
19102
#undef $ac_func
 
19103
 
 
19104
/* Override any GCC internal prototype to avoid an error.
 
19105
   Use char because int might match the return type of a GCC
 
19106
   builtin and then its argument prototype would still apply.  */
 
19107
#ifdef __cplusplus
 
19108
extern "C"
 
19109
#endif
 
19110
char $ac_func ();
 
19111
/* The GNU C library defines this for functions which it implements
 
19112
    to always fail with ENOSYS.  Some functions are actually named
 
19113
    something starting with __ and the normal name is an alias.  */
 
19114
#if defined __stub_$ac_func || defined __stub___$ac_func
 
19115
choke me
 
19116
#endif
 
19117
 
 
19118
int
 
19119
main ()
 
19120
{
 
19121
return $ac_func ();
 
19122
  ;
 
19123
  return 0;
 
19124
}
 
19125
_ACEOF
 
19126
rm -f conftest.$ac_objext conftest$ac_exeext
 
19127
if { (ac_try="$ac_link"
 
19128
case "(($ac_try" in
 
19129
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19130
  *) ac_try_echo=$ac_try;;
 
19131
esac
 
19132
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
19133
$as_echo "$ac_try_echo") >&5
 
19134
  (eval "$ac_link") 2>conftest.er1
 
19135
  ac_status=$?
 
19136
  grep -v '^ *+' conftest.er1 >conftest.err
 
19137
  rm -f conftest.er1
 
19138
  cat conftest.err >&5
 
19139
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19140
  (exit $ac_status); } && {
 
19141
         test -z "$ac_c_werror_flag" ||
 
19142
         test ! -s conftest.err
 
19143
       } && test -s conftest$ac_exeext && {
 
19144
         test "$cross_compiling" = yes ||
 
19145
         $as_test_x conftest$ac_exeext
 
19146
       }; then
 
19147
  eval "$as_ac_var=yes"
 
19148
else
 
19149
  $as_echo "$as_me: failed program was:" >&5
 
19150
sed 's/^/| /' conftest.$ac_ext >&5
 
19151
 
 
19152
        eval "$as_ac_var=no"
 
19153
fi
 
19154
 
 
19155
rm -rf conftest.dSYM
 
19156
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
19157
      conftest$ac_exeext conftest.$ac_ext
 
19158
fi
 
19159
ac_res=`eval 'as_val=${'$as_ac_var'}
 
19160
                 $as_echo "$as_val"'`
 
19161
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
19162
$as_echo "$ac_res" >&6; }
 
19163
as_val=`eval 'as_val=${'$as_ac_var'}
 
19164
                 $as_echo "$as_val"'`
 
19165
   if test "x$as_val" = x""yes; then
 
19166
  cat >>confdefs.h <<_ACEOF
 
19167
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
19168
_ACEOF
 
19169
 
 
19170
fi
 
19171
done
 
19172
 
 
19173
  { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
 
19174
$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
 
19175
if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
 
19176
  $as_echo_n "(cached) " >&6
 
19177
else
 
19178
  cat >conftest.$ac_ext <<_ACEOF
 
19179
/* confdefs.h.  */
 
19180
_ACEOF
 
19181
cat confdefs.h >>conftest.$ac_ext
 
19182
cat >>conftest.$ac_ext <<_ACEOF
 
19183
/* end confdefs.h.  */
 
19184
$ac_includes_default
 
19185
int
 
19186
main ()
 
19187
{
 
19188
#ifndef getc_unlocked
 
19189
  (void) getc_unlocked;
 
19190
#endif
 
19191
 
 
19192
  ;
 
19193
  return 0;
 
19194
}
 
19195
_ACEOF
 
19196
rm -f conftest.$ac_objext
 
19197
if { (ac_try="$ac_compile"
 
19198
case "(($ac_try" in
 
19199
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19200
  *) ac_try_echo=$ac_try;;
 
19201
esac
 
19202
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
19203
$as_echo "$ac_try_echo") >&5
 
19204
  (eval "$ac_compile") 2>conftest.er1
 
19205
  ac_status=$?
 
19206
  grep -v '^ *+' conftest.er1 >conftest.err
 
19207
  rm -f conftest.er1
 
19208
  cat conftest.err >&5
 
19209
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19210
  (exit $ac_status); } && {
 
19211
         test -z "$ac_c_werror_flag" ||
 
19212
         test ! -s conftest.err
 
19213
       } && test -s conftest.$ac_objext; then
 
19214
  ac_cv_have_decl_getc_unlocked=yes
 
19215
else
 
19216
  $as_echo "$as_me: failed program was:" >&5
 
19217
sed 's/^/| /' conftest.$ac_ext >&5
 
19218
 
 
19219
        ac_cv_have_decl_getc_unlocked=no
 
19220
fi
 
19221
 
 
19222
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19223
fi
 
19224
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
 
19225
$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
 
19226
if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
 
19227
 
 
19228
cat >>confdefs.h <<_ACEOF
 
19229
#define HAVE_DECL_GETC_UNLOCKED 1
 
19230
_ACEOF
 
19231
 
 
19232
 
 
19233
else
 
19234
  cat >>confdefs.h <<_ACEOF
 
19235
#define HAVE_DECL_GETC_UNLOCKED 0
 
19236
_ACEOF
 
19237
 
 
19238
 
 
19239
fi
 
19240
 
 
19241
 
 
19242
 
 
19243
  fi
 
19244
 
 
19245
  if test $ac_cv_have_decl_getdelim = no; then
 
19246
    HAVE_DECL_GETDELIM=0
 
19247
  fi
 
19248
 
 
19249
 
 
19250
 
 
19251
  GNULIB_GETDELIM=1
 
19252
 
 
19253
 
 
19254
 
 
19255
 
 
19256
 
 
19257
 
 
19258
 
 
19259
 
 
19260
 
 
19261
 
 
19262
 
 
19263
  gl_getline_needs_run_time_check=no
 
19264
  { $as_echo "$as_me:$LINENO: checking for getline" >&5
 
19265
$as_echo_n "checking for getline... " >&6; }
 
19266
if test "${ac_cv_func_getline+set}" = set; then
 
19267
  $as_echo_n "(cached) " >&6
 
19268
else
 
19269
  cat >conftest.$ac_ext <<_ACEOF
 
19270
/* confdefs.h.  */
 
19271
_ACEOF
 
19272
cat confdefs.h >>conftest.$ac_ext
 
19273
cat >>conftest.$ac_ext <<_ACEOF
 
19274
/* end confdefs.h.  */
 
19275
/* Define getline to an innocuous variant, in case <limits.h> declares getline.
 
19276
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19277
#define getline innocuous_getline
 
19278
 
 
19279
/* System header to define __stub macros and hopefully few prototypes,
 
19280
    which can conflict with char getline (); below.
 
19281
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19282
    <limits.h> exists even on freestanding compilers.  */
 
19283
 
 
19284
#ifdef __STDC__
 
19285
# include <limits.h>
 
19286
#else
 
19287
# include <assert.h>
 
19288
#endif
 
19289
 
 
19290
#undef getline
 
19291
 
 
19292
/* Override any GCC internal prototype to avoid an error.
 
19293
   Use char because int might match the return type of a GCC
 
19294
   builtin and then its argument prototype would still apply.  */
 
19295
#ifdef __cplusplus
 
19296
extern "C"
 
19297
#endif
 
19298
char getline ();
 
19299
/* The GNU C library defines this for functions which it implements
 
19300
    to always fail with ENOSYS.  Some functions are actually named
 
19301
    something starting with __ and the normal name is an alias.  */
 
19302
#if defined __stub_getline || defined __stub___getline
 
19303
choke me
 
19304
#endif
 
19305
 
 
19306
int
 
19307
main ()
 
19308
{
 
19309
return getline ();
 
19310
  ;
 
19311
  return 0;
 
19312
}
 
19313
_ACEOF
 
19314
rm -f conftest.$ac_objext conftest$ac_exeext
 
19315
if { (ac_try="$ac_link"
 
19316
case "(($ac_try" in
 
19317
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19318
  *) ac_try_echo=$ac_try;;
 
19319
esac
 
19320
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
19321
$as_echo "$ac_try_echo") >&5
 
19322
  (eval "$ac_link") 2>conftest.er1
 
19323
  ac_status=$?
 
19324
  grep -v '^ *+' conftest.er1 >conftest.err
 
19325
  rm -f conftest.er1
 
19326
  cat conftest.err >&5
 
19327
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19328
  (exit $ac_status); } && {
 
19329
         test -z "$ac_c_werror_flag" ||
 
19330
         test ! -s conftest.err
 
19331
       } && test -s conftest$ac_exeext && {
 
19332
         test "$cross_compiling" = yes ||
 
19333
         $as_test_x conftest$ac_exeext
 
19334
       }; then
 
19335
  ac_cv_func_getline=yes
 
19336
else
 
19337
  $as_echo "$as_me: failed program was:" >&5
 
19338
sed 's/^/| /' conftest.$ac_ext >&5
 
19339
 
 
19340
        ac_cv_func_getline=no
 
19341
fi
 
19342
 
 
19343
rm -rf conftest.dSYM
 
19344
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
19345
      conftest$ac_exeext conftest.$ac_ext
 
19346
fi
 
19347
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
 
19348
$as_echo "$ac_cv_func_getline" >&6; }
 
19349
if test "x$ac_cv_func_getline" = x""yes; then
 
19350
                gl_getline_needs_run_time_check=yes
 
19351
else
 
19352
  am_cv_func_working_getline=no
 
19353
fi
 
19354
 
 
19355
  if test $gl_getline_needs_run_time_check = yes; then
 
19356
    { $as_echo "$as_me:$LINENO: checking for working getline function" >&5
 
19357
$as_echo_n "checking for working getline function... " >&6; }
 
19358
if test "${am_cv_func_working_getline+set}" = set; then
 
19359
  $as_echo_n "(cached) " >&6
 
19360
else
 
19361
  echo fooN |tr -d '\012'|tr N '\012' > conftest.data
 
19362
    if test "$cross_compiling" = yes; then
 
19363
        cat >conftest.$ac_ext <<_ACEOF
 
19364
/* confdefs.h.  */
 
19365
_ACEOF
 
19366
cat confdefs.h >>conftest.$ac_ext
 
19367
cat >>conftest.$ac_ext <<_ACEOF
 
19368
/* end confdefs.h.  */
 
19369
 
 
19370
#include <features.h>
 
19371
#ifdef __GNU_LIBRARY__
 
19372
 #if (__GLIBC__ >= 2)
 
19373
  Lucky GNU user
 
19374
 #endif
 
19375
#endif
 
19376
 
 
19377
_ACEOF
 
19378
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
19379
  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
 
19380
  am_cv_func_working_getline=yes
 
19381
else
 
19382
  am_cv_func_working_getline=no
 
19383
fi
 
19384
rm -f conftest*
 
19385
 
 
19386
 
 
19387
else
 
19388
  cat >conftest.$ac_ext <<_ACEOF
 
19389
/* confdefs.h.  */
 
19390
_ACEOF
 
19391
cat confdefs.h >>conftest.$ac_ext
 
19392
cat >>conftest.$ac_ext <<_ACEOF
 
19393
/* end confdefs.h.  */
 
19394
 
 
19395
#    include <stdio.h>
 
19396
#    include <stdlib.h>
 
19397
#    include <string.h>
 
19398
    int main ()
 
19399
    { /* Based on a test program from Karl Heuer.  */
 
19400
      char *line = NULL;
 
19401
      size_t siz = 0;
 
19402
      int len;
 
19403
      FILE *in = fopen ("./conftest.data", "r");
 
19404
      if (!in)
 
19405
        return 1;
 
19406
      len = getline (&line, &siz, in);
 
19407
      exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
 
19408
    }
 
19409
 
 
19410
_ACEOF
 
19411
rm -f conftest$ac_exeext
 
19412
if { (ac_try="$ac_link"
 
19413
case "(($ac_try" in
 
19414
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19415
  *) ac_try_echo=$ac_try;;
 
19416
esac
 
19417
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
19418
$as_echo "$ac_try_echo") >&5
 
19419
  (eval "$ac_link") 2>&5
 
19420
  ac_status=$?
 
19421
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19422
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
19423
  { (case "(($ac_try" in
 
19424
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19425
  *) ac_try_echo=$ac_try;;
 
19426
esac
 
19427
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
19428
$as_echo "$ac_try_echo") >&5
 
19429
  (eval "$ac_try") 2>&5
 
19430
  ac_status=$?
 
19431
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19432
  (exit $ac_status); }; }; then
 
19433
  am_cv_func_working_getline=yes
 
19434
else
 
19435
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
19436
$as_echo "$as_me: failed program was:" >&5
 
19437
sed 's/^/| /' conftest.$ac_ext >&5
 
19438
 
 
19439
( exit $ac_status )
 
19440
am_cv_func_working_getline=no
 
19441
fi
 
19442
rm -rf conftest.dSYM
 
19443
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
19444
fi
 
19445
 
 
19446
 
 
19447
fi
 
19448
{ $as_echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
 
19449
$as_echo "$am_cv_func_working_getline" >&6; }
 
19450
  fi
 
19451
 
 
19452
  if test $ac_cv_have_decl_getline = no; then
 
19453
    HAVE_DECL_GETLINE=0
 
19454
  fi
 
19455
 
 
19456
  if test $am_cv_func_working_getline = no; then
 
19457
    REPLACE_GETLINE=1
 
19458
 
 
19459
 
 
19460
 
 
19461
 
 
19462
 
 
19463
 
 
19464
 
 
19465
 
 
19466
  gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
 
19467
 
 
19468
 
 
19469
 
 
19470
 
 
19471
 
 
19472
 
 
19473
 
 
19474
 
 
19475
 
 
19476
 
 
19477
 
 
19478
 
 
19479
 
 
19480
 
 
19481
 
 
19482
 
 
19483
 
 
19484
for ac_func in getdelim
 
19485
do
 
19486
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
19487
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
19488
$as_echo_n "checking for $ac_func... " >&6; }
 
19489
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
19490
  $as_echo_n "(cached) " >&6
 
19491
else
 
19492
  cat >conftest.$ac_ext <<_ACEOF
 
19493
/* confdefs.h.  */
 
19494
_ACEOF
 
19495
cat confdefs.h >>conftest.$ac_ext
 
19496
cat >>conftest.$ac_ext <<_ACEOF
 
19497
/* end confdefs.h.  */
 
19498
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
19499
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19500
#define $ac_func innocuous_$ac_func
 
19501
 
 
19502
/* System header to define __stub macros and hopefully few prototypes,
 
19503
    which can conflict with char $ac_func (); below.
 
19504
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19505
    <limits.h> exists even on freestanding compilers.  */
 
19506
 
 
19507
#ifdef __STDC__
 
19508
# include <limits.h>
 
19509
#else
 
19510
# include <assert.h>
 
19511
#endif
 
19512
 
 
19513
#undef $ac_func
 
19514
 
 
19515
/* Override any GCC internal prototype to avoid an error.
 
19516
   Use char because int might match the return type of a GCC
 
19517
   builtin and then its argument prototype would still apply.  */
 
19518
#ifdef __cplusplus
 
19519
extern "C"
 
19520
#endif
 
19521
char $ac_func ();
 
19522
/* The GNU C library defines this for functions which it implements
 
19523
    to always fail with ENOSYS.  Some functions are actually named
 
19524
    something starting with __ and the normal name is an alias.  */
 
19525
#if defined __stub_$ac_func || defined __stub___$ac_func
 
19526
choke me
 
19527
#endif
 
19528
 
 
19529
int
 
19530
main ()
 
19531
{
 
19532
return $ac_func ();
 
19533
  ;
 
19534
  return 0;
 
19535
}
 
19536
_ACEOF
 
19537
rm -f conftest.$ac_objext conftest$ac_exeext
 
19538
if { (ac_try="$ac_link"
 
19539
case "(($ac_try" in
 
19540
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19541
  *) ac_try_echo=$ac_try;;
 
19542
esac
 
19543
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
19544
$as_echo "$ac_try_echo") >&5
 
19545
  (eval "$ac_link") 2>conftest.er1
 
19546
  ac_status=$?
 
19547
  grep -v '^ *+' conftest.er1 >conftest.err
 
19548
  rm -f conftest.er1
 
19549
  cat conftest.err >&5
 
19550
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19551
  (exit $ac_status); } && {
 
19552
         test -z "$ac_c_werror_flag" ||
 
19553
         test ! -s conftest.err
 
19554
       } && test -s conftest$ac_exeext && {
 
19555
         test "$cross_compiling" = yes ||
 
19556
         $as_test_x conftest$ac_exeext
 
19557
       }; then
 
19558
  eval "$as_ac_var=yes"
 
19559
else
 
19560
  $as_echo "$as_me: failed program was:" >&5
 
19561
sed 's/^/| /' conftest.$ac_ext >&5
 
19562
 
 
19563
        eval "$as_ac_var=no"
 
19564
fi
 
19565
 
 
19566
rm -rf conftest.dSYM
 
19567
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
19568
      conftest$ac_exeext conftest.$ac_ext
 
19569
fi
 
19570
ac_res=`eval 'as_val=${'$as_ac_var'}
 
19571
                 $as_echo "$as_val"'`
 
19572
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
19573
$as_echo "$ac_res" >&6; }
 
19574
as_val=`eval 'as_val=${'$as_ac_var'}
 
19575
                 $as_echo "$as_val"'`
 
19576
   if test "x$as_val" = x""yes; then
 
19577
  cat >>confdefs.h <<_ACEOF
 
19578
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
19579
_ACEOF
 
19580
 
 
19581
else
 
19582
 
 
19583
    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
 
19584
 
 
19585
fi
 
19586
done
 
19587
 
 
19588
 
 
19589
 
 
19590
 
 
19591
 
 
19592
 
 
19593
 
 
19594
  if test $ac_cv_func_getdelim = no; then
 
19595
 
 
19596
 
 
19597
 
 
19598
for ac_func in flockfile funlockfile
 
19599
do
 
19600
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
19601
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
19602
$as_echo_n "checking for $ac_func... " >&6; }
 
19603
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
19604
  $as_echo_n "(cached) " >&6
 
19605
else
 
19606
  cat >conftest.$ac_ext <<_ACEOF
 
19607
/* confdefs.h.  */
 
19608
_ACEOF
 
19609
cat confdefs.h >>conftest.$ac_ext
 
19610
cat >>conftest.$ac_ext <<_ACEOF
 
19611
/* end confdefs.h.  */
 
19612
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
19613
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19614
#define $ac_func innocuous_$ac_func
 
19615
 
 
19616
/* System header to define __stub macros and hopefully few prototypes,
 
19617
    which can conflict with char $ac_func (); below.
 
19618
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19619
    <limits.h> exists even on freestanding compilers.  */
 
19620
 
 
19621
#ifdef __STDC__
 
19622
# include <limits.h>
 
19623
#else
 
19624
# include <assert.h>
 
19625
#endif
 
19626
 
 
19627
#undef $ac_func
 
19628
 
 
19629
/* Override any GCC internal prototype to avoid an error.
 
19630
   Use char because int might match the return type of a GCC
 
19631
   builtin and then its argument prototype would still apply.  */
 
19632
#ifdef __cplusplus
 
19633
extern "C"
 
19634
#endif
 
19635
char $ac_func ();
 
19636
/* The GNU C library defines this for functions which it implements
 
19637
    to always fail with ENOSYS.  Some functions are actually named
 
19638
    something starting with __ and the normal name is an alias.  */
 
19639
#if defined __stub_$ac_func || defined __stub___$ac_func
 
19640
choke me
 
19641
#endif
 
19642
 
 
19643
int
 
19644
main ()
 
19645
{
 
19646
return $ac_func ();
 
19647
  ;
 
19648
  return 0;
 
19649
}
 
19650
_ACEOF
 
19651
rm -f conftest.$ac_objext conftest$ac_exeext
 
19652
if { (ac_try="$ac_link"
 
19653
case "(($ac_try" in
 
19654
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19655
  *) ac_try_echo=$ac_try;;
 
19656
esac
 
19657
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
19658
$as_echo "$ac_try_echo") >&5
 
19659
  (eval "$ac_link") 2>conftest.er1
 
19660
  ac_status=$?
 
19661
  grep -v '^ *+' conftest.er1 >conftest.err
 
19662
  rm -f conftest.er1
 
19663
  cat conftest.err >&5
 
19664
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19665
  (exit $ac_status); } && {
 
19666
         test -z "$ac_c_werror_flag" ||
 
19667
         test ! -s conftest.err
 
19668
       } && test -s conftest$ac_exeext && {
 
19669
         test "$cross_compiling" = yes ||
 
19670
         $as_test_x conftest$ac_exeext
 
19671
       }; then
 
19672
  eval "$as_ac_var=yes"
 
19673
else
 
19674
  $as_echo "$as_me: failed program was:" >&5
 
19675
sed 's/^/| /' conftest.$ac_ext >&5
 
19676
 
 
19677
        eval "$as_ac_var=no"
 
19678
fi
 
19679
 
 
19680
rm -rf conftest.dSYM
 
19681
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
19682
      conftest$ac_exeext conftest.$ac_ext
 
19683
fi
 
19684
ac_res=`eval 'as_val=${'$as_ac_var'}
 
19685
                 $as_echo "$as_val"'`
 
19686
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
19687
$as_echo "$ac_res" >&6; }
 
19688
as_val=`eval 'as_val=${'$as_ac_var'}
 
19689
                 $as_echo "$as_val"'`
 
19690
   if test "x$as_val" = x""yes; then
 
19691
  cat >>confdefs.h <<_ACEOF
 
19692
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
19693
_ACEOF
 
19694
 
 
19695
fi
 
19696
done
 
19697
 
 
19698
  { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
 
19699
$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
 
19700
if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
 
19701
  $as_echo_n "(cached) " >&6
 
19702
else
 
19703
  cat >conftest.$ac_ext <<_ACEOF
 
19704
/* confdefs.h.  */
 
19705
_ACEOF
 
19706
cat confdefs.h >>conftest.$ac_ext
 
19707
cat >>conftest.$ac_ext <<_ACEOF
 
19708
/* end confdefs.h.  */
 
19709
$ac_includes_default
 
19710
int
 
19711
main ()
 
19712
{
 
19713
#ifndef getc_unlocked
 
19714
  (void) getc_unlocked;
 
19715
#endif
 
19716
 
 
19717
  ;
 
19718
  return 0;
 
19719
}
 
19720
_ACEOF
 
19721
rm -f conftest.$ac_objext
 
19722
if { (ac_try="$ac_compile"
 
19723
case "(($ac_try" in
 
19724
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19725
  *) ac_try_echo=$ac_try;;
 
19726
esac
 
19727
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
19728
$as_echo "$ac_try_echo") >&5
 
19729
  (eval "$ac_compile") 2>conftest.er1
 
19730
  ac_status=$?
 
19731
  grep -v '^ *+' conftest.er1 >conftest.err
 
19732
  rm -f conftest.er1
 
19733
  cat conftest.err >&5
 
19734
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19735
  (exit $ac_status); } && {
 
19736
         test -z "$ac_c_werror_flag" ||
 
19737
         test ! -s conftest.err
 
19738
       } && test -s conftest.$ac_objext; then
 
19739
  ac_cv_have_decl_getc_unlocked=yes
 
19740
else
 
19741
  $as_echo "$as_me: failed program was:" >&5
 
19742
sed 's/^/| /' conftest.$ac_ext >&5
 
19743
 
 
19744
        ac_cv_have_decl_getc_unlocked=no
 
19745
fi
 
19746
 
 
19747
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19748
fi
 
19749
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
 
19750
$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
 
19751
if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
 
19752
 
 
19753
cat >>confdefs.h <<_ACEOF
 
19754
#define HAVE_DECL_GETC_UNLOCKED 1
 
19755
_ACEOF
 
19756
 
 
19757
 
 
19758
else
 
19759
  cat >>confdefs.h <<_ACEOF
 
19760
#define HAVE_DECL_GETC_UNLOCKED 0
 
19761
_ACEOF
 
19762
 
 
19763
 
 
19764
fi
 
19765
 
 
19766
 
 
19767
 
 
19768
  fi
 
19769
 
 
19770
  if test $ac_cv_have_decl_getdelim = no; then
 
19771
    HAVE_DECL_GETDELIM=0
 
19772
  fi
 
19773
 
 
19774
 
 
19775
  fi
 
19776
 
 
19777
 
 
19778
 
 
19779
  GNULIB_GETLINE=1
 
19780
 
 
19781
 
 
19782
 
 
19783
 
 
19784
 
 
19785
 
 
19786
 
 
19787
 
 
19788
cat >>confdefs.h <<\_ACEOF
 
19789
#define GNULIB_GETOPT_GNU 1
 
19790
_ACEOF
 
19791
 
 
19792
 
 
19793
 
 
19794
 
 
19795
 
 
19796
 
 
19797
 
 
19798
  if test -n "$gl_replace_getopt"; then
 
19799
 
 
19800
 
 
19801
 
 
19802
  GETOPT_H=getopt.h
 
19803
 
 
19804
cat >>confdefs.h <<\_ACEOF
 
19805
#define __GETOPT_PREFIX rpl_
 
19806
_ACEOF
 
19807
 
 
19808
 
 
19809
 
 
19810
    GNULIB_UNISTD_H_GETOPT=1
 
19811
 
 
19812
 
 
19813
 
 
19814
 
 
19815
 
 
19816
 
 
19817
 
 
19818
 
 
19819
  gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
 
19820
 
 
19821
 
 
19822
 
 
19823
 
 
19824
 
 
19825
 
 
19826
 
 
19827
 
 
19828
 
 
19829
  gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
 
19830
 
 
19831
 
 
19832
 
 
19833
 
 
19834
 
 
19835
 
 
19836
 
 
19837
 
 
19838
 
 
19839
fi
 
19840
 
 
19841
 
 
19842
 
 
19843
 
 
19844
 
 
19845
 
 
19846
 
 
19847
for ac_func in getpagesize
 
19848
do
 
19849
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
19850
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
19851
$as_echo_n "checking for $ac_func... " >&6; }
 
19852
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
19853
  $as_echo_n "(cached) " >&6
 
19854
else
 
19855
  cat >conftest.$ac_ext <<_ACEOF
 
19856
/* confdefs.h.  */
 
19857
_ACEOF
 
19858
cat confdefs.h >>conftest.$ac_ext
 
19859
cat >>conftest.$ac_ext <<_ACEOF
 
19860
/* end confdefs.h.  */
 
19861
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
19862
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19863
#define $ac_func innocuous_$ac_func
 
19864
 
 
19865
/* System header to define __stub macros and hopefully few prototypes,
 
19866
    which can conflict with char $ac_func (); below.
 
19867
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19868
    <limits.h> exists even on freestanding compilers.  */
 
19869
 
 
19870
#ifdef __STDC__
 
19871
# include <limits.h>
 
19872
#else
 
19873
# include <assert.h>
 
19874
#endif
 
19875
 
 
19876
#undef $ac_func
 
19877
 
 
19878
/* Override any GCC internal prototype to avoid an error.
 
19879
   Use char because int might match the return type of a GCC
 
19880
   builtin and then its argument prototype would still apply.  */
 
19881
#ifdef __cplusplus
 
19882
extern "C"
 
19883
#endif
 
19884
char $ac_func ();
 
19885
/* The GNU C library defines this for functions which it implements
 
19886
    to always fail with ENOSYS.  Some functions are actually named
 
19887
    something starting with __ and the normal name is an alias.  */
 
19888
#if defined __stub_$ac_func || defined __stub___$ac_func
 
19889
choke me
 
19890
#endif
 
19891
 
 
19892
int
 
19893
main ()
 
19894
{
 
19895
return $ac_func ();
 
19896
  ;
 
19897
  return 0;
 
19898
}
 
19899
_ACEOF
 
19900
rm -f conftest.$ac_objext conftest$ac_exeext
 
19901
if { (ac_try="$ac_link"
 
19902
case "(($ac_try" in
 
19903
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19904
  *) ac_try_echo=$ac_try;;
 
19905
esac
 
19906
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
19907
$as_echo "$ac_try_echo") >&5
 
19908
  (eval "$ac_link") 2>conftest.er1
 
19909
  ac_status=$?
 
19910
  grep -v '^ *+' conftest.er1 >conftest.err
 
19911
  rm -f conftest.er1
 
19912
  cat conftest.err >&5
 
19913
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19914
  (exit $ac_status); } && {
 
19915
         test -z "$ac_c_werror_flag" ||
 
19916
         test ! -s conftest.err
 
19917
       } && test -s conftest$ac_exeext && {
 
19918
         test "$cross_compiling" = yes ||
 
19919
         $as_test_x conftest$ac_exeext
 
19920
       }; then
 
19921
  eval "$as_ac_var=yes"
 
19922
else
 
19923
  $as_echo "$as_me: failed program was:" >&5
 
19924
sed 's/^/| /' conftest.$ac_ext >&5
 
19925
 
 
19926
        eval "$as_ac_var=no"
 
19927
fi
 
19928
 
 
19929
rm -rf conftest.dSYM
 
19930
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
19931
      conftest$ac_exeext conftest.$ac_ext
 
19932
fi
 
19933
ac_res=`eval 'as_val=${'$as_ac_var'}
 
19934
                 $as_echo "$as_val"'`
 
19935
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
19936
$as_echo "$ac_res" >&6; }
 
19937
as_val=`eval 'as_val=${'$as_ac_var'}
 
19938
                 $as_echo "$as_val"'`
 
19939
   if test "x$as_val" = x""yes; then
 
19940
  cat >>confdefs.h <<_ACEOF
 
19941
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
19942
_ACEOF
 
19943
 
 
19944
fi
 
19945
done
 
19946
 
 
19947
  if test $ac_cv_func_getpagesize = no; then
 
19948
    HAVE_GETPAGESIZE=0
 
19949
 
 
19950
for ac_header in OS.h
 
19951
do
 
19952
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
19953
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
19954
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
19955
$as_echo_n "checking for $ac_header... " >&6; }
 
19956
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
19957
  $as_echo_n "(cached) " >&6
 
19958
fi
 
19959
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
19960
                 $as_echo "$as_val"'`
 
19961
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
19962
$as_echo "$ac_res" >&6; }
 
19963
else
 
19964
  # Is the header compilable?
 
19965
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
19966
$as_echo_n "checking $ac_header usability... " >&6; }
 
19967
cat >conftest.$ac_ext <<_ACEOF
 
19968
/* confdefs.h.  */
 
19969
_ACEOF
 
19970
cat confdefs.h >>conftest.$ac_ext
 
19971
cat >>conftest.$ac_ext <<_ACEOF
 
19972
/* end confdefs.h.  */
 
19973
$ac_includes_default
 
19974
#include <$ac_header>
 
19975
_ACEOF
 
19976
rm -f conftest.$ac_objext
 
19977
if { (ac_try="$ac_compile"
 
19978
case "(($ac_try" in
 
19979
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19980
  *) ac_try_echo=$ac_try;;
 
19981
esac
 
19982
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
19983
$as_echo "$ac_try_echo") >&5
 
19984
  (eval "$ac_compile") 2>conftest.er1
 
19985
  ac_status=$?
 
19986
  grep -v '^ *+' conftest.er1 >conftest.err
 
19987
  rm -f conftest.er1
 
19988
  cat conftest.err >&5
 
19989
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19990
  (exit $ac_status); } && {
 
19991
         test -z "$ac_c_werror_flag" ||
 
19992
         test ! -s conftest.err
 
19993
       } && test -s conftest.$ac_objext; then
 
19994
  ac_header_compiler=yes
 
19995
else
 
19996
  $as_echo "$as_me: failed program was:" >&5
 
19997
sed 's/^/| /' conftest.$ac_ext >&5
 
19998
 
 
19999
        ac_header_compiler=no
 
20000
fi
 
20001
 
 
20002
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20003
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20004
$as_echo "$ac_header_compiler" >&6; }
 
20005
 
 
20006
# Is the header present?
 
20007
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
20008
$as_echo_n "checking $ac_header presence... " >&6; }
 
20009
cat >conftest.$ac_ext <<_ACEOF
 
20010
/* confdefs.h.  */
 
20011
_ACEOF
 
20012
cat confdefs.h >>conftest.$ac_ext
 
20013
cat >>conftest.$ac_ext <<_ACEOF
 
20014
/* end confdefs.h.  */
 
20015
#include <$ac_header>
 
20016
_ACEOF
 
20017
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
20018
case "(($ac_try" in
 
20019
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20020
  *) ac_try_echo=$ac_try;;
 
20021
esac
 
20022
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20023
$as_echo "$ac_try_echo") >&5
 
20024
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
20025
  ac_status=$?
 
20026
  grep -v '^ *+' conftest.er1 >conftest.err
 
20027
  rm -f conftest.er1
 
20028
  cat conftest.err >&5
 
20029
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20030
  (exit $ac_status); } >/dev/null && {
 
20031
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
20032
         test ! -s conftest.err
 
20033
       }; then
 
20034
  ac_header_preproc=yes
 
20035
else
 
20036
  $as_echo "$as_me: failed program was:" >&5
 
20037
sed 's/^/| /' conftest.$ac_ext >&5
 
20038
 
 
20039
  ac_header_preproc=no
 
20040
fi
 
20041
 
 
20042
rm -f conftest.err conftest.$ac_ext
 
20043
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20044
$as_echo "$ac_header_preproc" >&6; }
 
20045
 
 
20046
# So?  What about this header?
 
20047
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20048
  yes:no: )
 
20049
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
20050
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20051
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
20052
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
20053
    ac_header_preproc=yes
 
20054
    ;;
 
20055
  no:yes:* )
 
20056
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
20057
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
20058
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
20059
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
20060
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
20061
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
20062
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
20063
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
20064
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
20065
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
20066
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
20067
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
20068
    ( cat <<\_ASBOX
 
20069
## ------------------------------- ##
 
20070
## Report this to bug-wget@gnu.org ##
 
20071
## ------------------------------- ##
 
20072
_ASBOX
 
20073
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
20074
    ;;
 
20075
esac
 
20076
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20077
$as_echo_n "checking for $ac_header... " >&6; }
 
20078
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20079
  $as_echo_n "(cached) " >&6
 
20080
else
 
20081
  eval "$as_ac_Header=\$ac_header_preproc"
 
20082
fi
 
20083
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
20084
                 $as_echo "$as_val"'`
 
20085
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
20086
$as_echo "$ac_res" >&6; }
 
20087
 
 
20088
fi
 
20089
as_val=`eval 'as_val=${'$as_ac_Header'}
 
20090
                 $as_echo "$as_val"'`
 
20091
   if test "x$as_val" = x""yes; then
 
20092
  cat >>confdefs.h <<_ACEOF
 
20093
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
20094
_ACEOF
 
20095
 
 
20096
fi
 
20097
 
 
20098
done
 
20099
 
 
20100
    if test $ac_cv_header_OS_h = yes; then
 
20101
      HAVE_OS_H=1
 
20102
    fi
 
20103
 
 
20104
for ac_header in sys/param.h
 
20105
do
 
20106
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
20107
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20108
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20109
$as_echo_n "checking for $ac_header... " >&6; }
 
20110
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20111
  $as_echo_n "(cached) " >&6
 
20112
fi
 
20113
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
20114
                 $as_echo "$as_val"'`
 
20115
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
20116
$as_echo "$ac_res" >&6; }
 
20117
else
 
20118
  # Is the header compilable?
 
20119
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
20120
$as_echo_n "checking $ac_header usability... " >&6; }
 
20121
cat >conftest.$ac_ext <<_ACEOF
 
20122
/* confdefs.h.  */
 
20123
_ACEOF
 
20124
cat confdefs.h >>conftest.$ac_ext
 
20125
cat >>conftest.$ac_ext <<_ACEOF
 
20126
/* end confdefs.h.  */
 
20127
$ac_includes_default
 
20128
#include <$ac_header>
 
20129
_ACEOF
 
20130
rm -f conftest.$ac_objext
 
20131
if { (ac_try="$ac_compile"
 
20132
case "(($ac_try" in
 
20133
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20134
  *) ac_try_echo=$ac_try;;
 
20135
esac
 
20136
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20137
$as_echo "$ac_try_echo") >&5
 
20138
  (eval "$ac_compile") 2>conftest.er1
 
20139
  ac_status=$?
 
20140
  grep -v '^ *+' conftest.er1 >conftest.err
 
20141
  rm -f conftest.er1
 
20142
  cat conftest.err >&5
 
20143
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20144
  (exit $ac_status); } && {
 
20145
         test -z "$ac_c_werror_flag" ||
 
20146
         test ! -s conftest.err
 
20147
       } && test -s conftest.$ac_objext; then
 
20148
  ac_header_compiler=yes
 
20149
else
 
20150
  $as_echo "$as_me: failed program was:" >&5
 
20151
sed 's/^/| /' conftest.$ac_ext >&5
 
20152
 
 
20153
        ac_header_compiler=no
 
20154
fi
 
20155
 
 
20156
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20157
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20158
$as_echo "$ac_header_compiler" >&6; }
 
20159
 
 
20160
# Is the header present?
 
20161
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
20162
$as_echo_n "checking $ac_header presence... " >&6; }
 
20163
cat >conftest.$ac_ext <<_ACEOF
 
20164
/* confdefs.h.  */
 
20165
_ACEOF
 
20166
cat confdefs.h >>conftest.$ac_ext
 
20167
cat >>conftest.$ac_ext <<_ACEOF
 
20168
/* end confdefs.h.  */
 
20169
#include <$ac_header>
 
20170
_ACEOF
 
20171
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
20172
case "(($ac_try" in
 
20173
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20174
  *) ac_try_echo=$ac_try;;
 
20175
esac
 
20176
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20177
$as_echo "$ac_try_echo") >&5
 
20178
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
20179
  ac_status=$?
 
20180
  grep -v '^ *+' conftest.er1 >conftest.err
 
20181
  rm -f conftest.er1
 
20182
  cat conftest.err >&5
 
20183
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20184
  (exit $ac_status); } >/dev/null && {
 
20185
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
20186
         test ! -s conftest.err
 
20187
       }; then
 
20188
  ac_header_preproc=yes
 
20189
else
 
20190
  $as_echo "$as_me: failed program was:" >&5
 
20191
sed 's/^/| /' conftest.$ac_ext >&5
 
20192
 
 
20193
  ac_header_preproc=no
 
20194
fi
 
20195
 
 
20196
rm -f conftest.err conftest.$ac_ext
 
20197
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20198
$as_echo "$ac_header_preproc" >&6; }
 
20199
 
 
20200
# So?  What about this header?
 
20201
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20202
  yes:no: )
 
20203
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
20204
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20205
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
20206
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
20207
    ac_header_preproc=yes
 
20208
    ;;
 
20209
  no:yes:* )
 
20210
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
20211
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
20212
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
20213
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
20214
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
20215
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
20216
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
20217
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
20218
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
20219
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
20220
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
20221
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
20222
    ( cat <<\_ASBOX
 
20223
## ------------------------------- ##
 
20224
## Report this to bug-wget@gnu.org ##
 
20225
## ------------------------------- ##
 
20226
_ASBOX
 
20227
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
20228
    ;;
 
20229
esac
 
20230
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20231
$as_echo_n "checking for $ac_header... " >&6; }
 
20232
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20233
  $as_echo_n "(cached) " >&6
 
20234
else
 
20235
  eval "$as_ac_Header=\$ac_header_preproc"
 
20236
fi
 
20237
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
20238
                 $as_echo "$as_val"'`
 
20239
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
20240
$as_echo "$ac_res" >&6; }
 
20241
 
 
20242
fi
 
20243
as_val=`eval 'as_val=${'$as_ac_Header'}
 
20244
                 $as_echo "$as_val"'`
 
20245
   if test "x$as_val" = x""yes; then
 
20246
  cat >>confdefs.h <<_ACEOF
 
20247
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
20248
_ACEOF
 
20249
 
 
20250
fi
 
20251
 
 
20252
done
 
20253
 
 
20254
    if test $ac_cv_header_sys_param_h = yes; then
 
20255
      HAVE_SYS_PARAM_H=1
 
20256
    fi
 
20257
  fi
 
20258
  case "$host_os" in
 
20259
    mingw*)
 
20260
      REPLACE_GETPAGESIZE=1
 
20261
 
 
20262
 
 
20263
 
 
20264
 
 
20265
 
 
20266
 
 
20267
 
 
20268
 
 
20269
  gl_LIBOBJS="$gl_LIBOBJS getpagesize.$ac_objext"
 
20270
 
 
20271
      ;;
 
20272
  esac
 
20273
 
 
20274
 
 
20275
 
 
20276
  GNULIB_GETPAGESIZE=1
 
20277
 
 
20278
 
 
20279
 
 
20280
 
 
20281
 
 
20282
 
 
20283
 
 
20284
 
 
20285
 
 
20286
 
 
20287
 
 
20288
 
 
20289
 
 
20290
 
 
20291
  gl_LIBOBJS="$gl_LIBOBJS getpass.$ac_objext"
 
20292
 
 
20293
 
 
20294
 
 
20295
 
 
20296
 
 
20297
 
 
20298
 
 
20299
 
 
20300
 
 
20301
 
 
20302
 
 
20303
 
 
20304
 
 
20305
 
 
20306
 
 
20307
 
 
20308
 
 
20309
 
 
20310
 
 
20311
 
 
20312
  { $as_echo "$as_me:$LINENO: checking whether __fsetlocking is declared" >&5
 
20313
$as_echo_n "checking whether __fsetlocking is declared... " >&6; }
 
20314
if test "${ac_cv_have_decl___fsetlocking+set}" = set; then
 
20315
  $as_echo_n "(cached) " >&6
 
20316
else
 
20317
  cat >conftest.$ac_ext <<_ACEOF
 
20318
/* confdefs.h.  */
 
20319
_ACEOF
 
20320
cat confdefs.h >>conftest.$ac_ext
 
20321
cat >>conftest.$ac_ext <<_ACEOF
 
20322
/* end confdefs.h.  */
 
20323
#include <stdio.h>
 
20324
     #if HAVE_STDIO_EXT_H
 
20325
      #include <stdio_ext.h>
 
20326
     #endif
 
20327
 
 
20328
int
 
20329
main ()
 
20330
{
 
20331
#ifndef __fsetlocking
 
20332
  (void) __fsetlocking;
 
20333
#endif
 
20334
 
 
20335
  ;
 
20336
  return 0;
 
20337
}
 
20338
_ACEOF
 
20339
rm -f conftest.$ac_objext
 
20340
if { (ac_try="$ac_compile"
 
20341
case "(($ac_try" in
 
20342
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20343
  *) ac_try_echo=$ac_try;;
 
20344
esac
 
20345
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20346
$as_echo "$ac_try_echo") >&5
 
20347
  (eval "$ac_compile") 2>conftest.er1
 
20348
  ac_status=$?
 
20349
  grep -v '^ *+' conftest.er1 >conftest.err
 
20350
  rm -f conftest.er1
 
20351
  cat conftest.err >&5
 
20352
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20353
  (exit $ac_status); } && {
 
20354
         test -z "$ac_c_werror_flag" ||
 
20355
         test ! -s conftest.err
 
20356
       } && test -s conftest.$ac_objext; then
 
20357
  ac_cv_have_decl___fsetlocking=yes
 
20358
else
 
20359
  $as_echo "$as_me: failed program was:" >&5
 
20360
sed 's/^/| /' conftest.$ac_ext >&5
 
20361
 
 
20362
        ac_cv_have_decl___fsetlocking=no
 
20363
fi
 
20364
 
 
20365
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20366
fi
 
20367
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___fsetlocking" >&5
 
20368
$as_echo "$ac_cv_have_decl___fsetlocking" >&6; }
 
20369
if test "x$ac_cv_have_decl___fsetlocking" = x""yes; then
 
20370
 
 
20371
cat >>confdefs.h <<_ACEOF
 
20372
#define HAVE_DECL___FSETLOCKING 1
 
20373
_ACEOF
 
20374
 
 
20375
 
 
20376
else
 
20377
  cat >>confdefs.h <<_ACEOF
 
20378
#define HAVE_DECL___FSETLOCKING 0
 
20379
_ACEOF
 
20380
 
 
20381
 
 
20382
fi
 
20383
 
 
20384
 
 
20385
 
 
20386
 
 
20387
 
 
20388
 
 
20389
 
 
20390
 
 
20391
 
 
20392
 
 
20393
 
 
20394
 
 
20395
 
 
20396
 
 
20397
 
 
20398
 
 
20399
 
 
20400
 
 
20401
 
 
20402
 
 
20403
 
 
20404
 
 
20405
  :
 
20406
 
 
20407
 
 
20408
cat >>confdefs.h <<\_ACEOF
 
20409
#define getpass gnu_getpass
 
20410
_ACEOF
 
20411
 
 
20412
 
 
20413
 
 
20414
 
 
20415
  # Autoconf 2.61a.99 and earlier don't support linking a file only
 
20416
  # in VPATH builds.  But since GNUmakefile is for maintainer use
 
20417
  # only, it does not matter if we skip the link with older autoconf.
 
20418
  # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
 
20419
  # builds, so use a shell variable to bypass this.
 
20420
  GNUmakefile=GNUmakefile
 
20421
  ac_config_links="$ac_config_links $GNUmakefile:$GNUmakefile"
 
20422
 
 
20423
 
 
20424
 
 
20425
  { $as_echo "$as_me:$LINENO: checking whether the compiler generally respects inline" >&5
 
20426
$as_echo_n "checking whether the compiler generally respects inline... " >&6; }
 
20427
if test "${gl_cv_c_inline_effective+set}" = set; then
 
20428
  $as_echo_n "(cached) " >&6
 
20429
else
 
20430
  if test $ac_cv_c_inline = no; then
 
20431
       gl_cv_c_inline_effective=no
 
20432
     else
 
20433
                                          cat >conftest.$ac_ext <<_ACEOF
 
20434
/* confdefs.h.  */
 
20435
_ACEOF
 
20436
cat confdefs.h >>conftest.$ac_ext
 
20437
cat >>conftest.$ac_ext <<_ACEOF
 
20438
/* end confdefs.h.  */
 
20439
 
 
20440
int
 
20441
main ()
 
20442
{
 
20443
#ifdef __NO_INLINE__
 
20444
               #error "inline is not effective"
 
20445
             #endif
 
20446
  ;
 
20447
  return 0;
 
20448
}
 
20449
_ACEOF
 
20450
rm -f conftest.$ac_objext
 
20451
if { (ac_try="$ac_compile"
 
20452
case "(($ac_try" in
 
20453
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20454
  *) ac_try_echo=$ac_try;;
 
20455
esac
 
20456
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20457
$as_echo "$ac_try_echo") >&5
 
20458
  (eval "$ac_compile") 2>conftest.er1
 
20459
  ac_status=$?
 
20460
  grep -v '^ *+' conftest.er1 >conftest.err
 
20461
  rm -f conftest.er1
 
20462
  cat conftest.err >&5
 
20463
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20464
  (exit $ac_status); } && {
 
20465
         test -z "$ac_c_werror_flag" ||
 
20466
         test ! -s conftest.err
 
20467
       } && test -s conftest.$ac_objext; then
 
20468
  gl_cv_c_inline_effective=yes
 
20469
else
 
20470
  $as_echo "$as_me: failed program was:" >&5
 
20471
sed 's/^/| /' conftest.$ac_ext >&5
 
20472
 
 
20473
        gl_cv_c_inline_effective=no
 
20474
fi
 
20475
 
 
20476
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20477
     fi
 
20478
 
 
20479
fi
 
20480
{ $as_echo "$as_me:$LINENO: result: $gl_cv_c_inline_effective" >&5
 
20481
$as_echo "$gl_cv_c_inline_effective" >&6; }
 
20482
  if test $gl_cv_c_inline_effective = yes; then
 
20483
 
 
20484
cat >>confdefs.h <<\_ACEOF
 
20485
#define HAVE_INLINE 1
 
20486
_ACEOF
 
20487
 
 
20488
  fi
 
20489
 
 
20490
 
 
20491
 
 
20492
 
 
20493
 
 
20494
 
 
20495
 
 
20496
 
 
20497
 
 
20498
 
 
20499
 
 
20500
  LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
 
20501
 
 
20502
 
 
20503
 
 
20504
 
 
20505
  { $as_echo "$as_me:$LINENO: checking whether lseek detects pipes" >&5
 
20506
$as_echo_n "checking whether lseek detects pipes... " >&6; }
 
20507
if test "${gl_cv_func_lseek_pipe+set}" = set; then
 
20508
  $as_echo_n "(cached) " >&6
 
20509
else
 
20510
  if test $cross_compiling = no; then
 
20511
       cat >conftest.$ac_ext <<_ACEOF
 
20512
 
 
20513
#include <sys/types.h> /* for off_t */
 
20514
#include <stdio.h> /* for SEEK_CUR */
 
20515
#include <unistd.h>
 
20516
int main ()
 
20517
{
 
20518
  /* Exit with success only if stdin is seekable.  */
 
20519
  return lseek (0, (off_t)0, SEEK_CUR) < 0;
 
20520
}
 
20521
_ACEOF
 
20522
rm -f conftest.$ac_objext conftest$ac_exeext
 
20523
if { (ac_try="$ac_link"
 
20524
case "(($ac_try" in
 
20525
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20526
  *) ac_try_echo=$ac_try;;
 
20527
esac
 
20528
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20529
$as_echo "$ac_try_echo") >&5
 
20530
  (eval "$ac_link") 2>conftest.er1
 
20531
  ac_status=$?
 
20532
  grep -v '^ *+' conftest.er1 >conftest.err
 
20533
  rm -f conftest.er1
 
20534
  cat conftest.err >&5
 
20535
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20536
  (exit $ac_status); } && {
 
20537
         test -z "$ac_c_werror_flag" ||
 
20538
         test ! -s conftest.err
 
20539
       } && test -s conftest$ac_exeext && {
 
20540
         test "$cross_compiling" = yes ||
 
20541
         $as_test_x conftest$ac_exeext
 
20542
       }; then
 
20543
  if test -s conftest$ac_exeext \
 
20544
             && ./conftest$ac_exeext < conftest.$ac_ext \
 
20545
             && { echo hi | ./conftest$ac_exeext; test $? = 1; }; then
 
20546
            gl_cv_func_lseek_pipe=yes
 
20547
          else
 
20548
            gl_cv_func_lseek_pipe=no
 
20549
          fi
 
20550
else
 
20551
  $as_echo "$as_me: failed program was:" >&5
 
20552
sed 's/^/| /' conftest.$ac_ext >&5
 
20553
 
 
20554
        gl_cv_func_lseek_pipe=no
 
20555
fi
 
20556
 
 
20557
rm -rf conftest.dSYM
 
20558
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20559
      conftest$ac_exeext conftest.$ac_ext
 
20560
     else
 
20561
       cat >conftest.$ac_ext <<_ACEOF
 
20562
 
 
20563
#if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) || defined __BEOS__
 
20564
/* mingw and BeOS mistakenly return 0 when trying to seek on pipes.  */
 
20565
  Choke me.
 
20566
#endif
 
20567
_ACEOF
 
20568
rm -f conftest.$ac_objext
 
20569
if { (ac_try="$ac_compile"
 
20570
case "(($ac_try" in
 
20571
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20572
  *) ac_try_echo=$ac_try;;
 
20573
esac
 
20574
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20575
$as_echo "$ac_try_echo") >&5
 
20576
  (eval "$ac_compile") 2>conftest.er1
 
20577
  ac_status=$?
 
20578
  grep -v '^ *+' conftest.er1 >conftest.err
 
20579
  rm -f conftest.er1
 
20580
  cat conftest.err >&5
 
20581
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20582
  (exit $ac_status); } && {
 
20583
         test -z "$ac_c_werror_flag" ||
 
20584
         test ! -s conftest.err
 
20585
       } && test -s conftest.$ac_objext; then
 
20586
  gl_cv_func_lseek_pipe=yes
 
20587
else
 
20588
  $as_echo "$as_me: failed program was:" >&5
 
20589
sed 's/^/| /' conftest.$ac_ext >&5
 
20590
 
 
20591
        gl_cv_func_lseek_pipe=no
 
20592
fi
 
20593
 
 
20594
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20595
     fi
 
20596
fi
 
20597
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_lseek_pipe" >&5
 
20598
$as_echo "$gl_cv_func_lseek_pipe" >&6; }
 
20599
  if test $gl_cv_func_lseek_pipe = no; then
 
20600
 
 
20601
 
 
20602
 
 
20603
 
 
20604
 
 
20605
 
 
20606
 
 
20607
 
 
20608
 
 
20609
  gl_LIBOBJS="$gl_LIBOBJS lseek.$ac_objext"
 
20610
 
 
20611
 
 
20612
  REPLACE_LSEEK=1
 
20613
 
 
20614
cat >>confdefs.h <<\_ACEOF
 
20615
#define LSEEK_PIPE_BROKEN 1
 
20616
_ACEOF
 
20617
 
 
20618
 
 
20619
  fi
 
20620
 
 
20621
 
 
20622
 
 
20623
  GNULIB_LSEEK=1
 
20624
 
 
20625
 
 
20626
 
 
20627
 
 
20628
 
 
20629
 
 
20630
 
 
20631
 
 
20632
 
 
20633
 
 
20634
 
 
20635
 
 
20636
 
 
20637
 
 
20638
 
 
20639
 
 
20640
 
 
20641
 
 
20642
 
 
20643
 
 
20644
 
 
20645
  if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
 
20646
 
 
20647
 
 
20648
 
 
20649
     { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
 
20650
$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
 
20651
if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
 
20652
  $as_echo_n "(cached) " >&6
 
20653
else
 
20654
 
 
20655
                  case "$host_os" in
 
20656
              # Guess no on AIX and OSF/1.
 
20657
        osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
 
20658
              # Guess yes otherwise.
 
20659
        *)    gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
 
20660
      esac
 
20661
      if test $LOCALE_JA != none; then
 
20662
        if test "$cross_compiling" = yes; then
 
20663
  :
 
20664
else
 
20665
  cat >conftest.$ac_ext <<_ACEOF
 
20666
/* confdefs.h.  */
 
20667
_ACEOF
 
20668
cat confdefs.h >>conftest.$ac_ext
 
20669
cat >>conftest.$ac_ext <<_ACEOF
 
20670
/* end confdefs.h.  */
 
20671
 
 
20672
#include <locale.h>
 
20673
#include <string.h>
 
20674
#include <wchar.h>
 
20675
int main ()
 
20676
{
 
20677
  if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
 
20678
    {
 
20679
      const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
 
20680
      mbstate_t state;
 
20681
      wchar_t wc;
 
20682
 
 
20683
      memset (&state, '\0', sizeof (mbstate_t));
 
20684
      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
 
20685
        if (mbsinit (&state))
 
20686
          return 1;
 
20687
    }
 
20688
  return 0;
 
20689
}
 
20690
_ACEOF
 
20691
rm -f conftest$ac_exeext
 
20692
if { (ac_try="$ac_link"
 
20693
case "(($ac_try" in
 
20694
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20695
  *) ac_try_echo=$ac_try;;
 
20696
esac
 
20697
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20698
$as_echo "$ac_try_echo") >&5
 
20699
  (eval "$ac_link") 2>&5
 
20700
  ac_status=$?
 
20701
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20702
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20703
  { (case "(($ac_try" in
 
20704
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20705
  *) ac_try_echo=$ac_try;;
 
20706
esac
 
20707
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20708
$as_echo "$ac_try_echo") >&5
 
20709
  (eval "$ac_try") 2>&5
 
20710
  ac_status=$?
 
20711
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20712
  (exit $ac_status); }; }; then
 
20713
  gl_cv_func_mbrtowc_incomplete_state=yes
 
20714
else
 
20715
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
20716
$as_echo "$as_me: failed program was:" >&5
 
20717
sed 's/^/| /' conftest.$ac_ext >&5
 
20718
 
 
20719
( exit $ac_status )
 
20720
gl_cv_func_mbrtowc_incomplete_state=no
 
20721
fi
 
20722
rm -rf conftest.dSYM
 
20723
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20724
fi
 
20725
 
 
20726
 
 
20727
      fi
 
20728
 
 
20729
fi
 
20730
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
 
20731
$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
 
20732
 
 
20733
 
 
20734
 
 
20735
 
 
20736
     { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
 
20737
$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
 
20738
if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
 
20739
  $as_echo_n "(cached) " >&6
 
20740
else
 
20741
 
 
20742
                  case "$host_os" in
 
20743
                    # Guess no on Solaris 8.
 
20744
        solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
 
20745
                    # Guess yes otherwise.
 
20746
        *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
 
20747
      esac
 
20748
      if test $LOCALE_ZH_CN != none; then
 
20749
        if test "$cross_compiling" = yes; then
 
20750
  :
 
20751
else
 
20752
  cat >conftest.$ac_ext <<_ACEOF
 
20753
/* confdefs.h.  */
 
20754
_ACEOF
 
20755
cat confdefs.h >>conftest.$ac_ext
 
20756
cat >>conftest.$ac_ext <<_ACEOF
 
20757
/* end confdefs.h.  */
 
20758
 
 
20759
#include <locale.h>
 
20760
#include <stdlib.h>
 
20761
#include <string.h>
 
20762
#include <wchar.h>
 
20763
int main ()
 
20764
{
 
20765
  /* This fails on Solaris 8:
 
20766
     mbrtowc returns 2, and sets wc to 0x00F0.
 
20767
     mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
 
20768
  if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
 
20769
    {
 
20770
      char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
 
20771
      mbstate_t state;
 
20772
      wchar_t wc;
 
20773
 
 
20774
      memset (&state, '\0', sizeof (mbstate_t));
 
20775
      if (mbrtowc (&wc, input + 3, 6, &state) != 4
 
20776
          && mbtowc (&wc, input + 3, 6) == 4)
 
20777
        return 1;
 
20778
    }
 
20779
  return 0;
 
20780
}
 
20781
_ACEOF
 
20782
rm -f conftest$ac_exeext
 
20783
if { (ac_try="$ac_link"
 
20784
case "(($ac_try" in
 
20785
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20786
  *) ac_try_echo=$ac_try;;
 
20787
esac
 
20788
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20789
$as_echo "$ac_try_echo") >&5
 
20790
  (eval "$ac_link") 2>&5
 
20791
  ac_status=$?
 
20792
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20793
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20794
  { (case "(($ac_try" in
 
20795
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20796
  *) ac_try_echo=$ac_try;;
 
20797
esac
 
20798
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20799
$as_echo "$ac_try_echo") >&5
 
20800
  (eval "$ac_try") 2>&5
 
20801
  ac_status=$?
 
20802
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20803
  (exit $ac_status); }; }; then
 
20804
  gl_cv_func_mbrtowc_sanitycheck=yes
 
20805
else
 
20806
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
20807
$as_echo "$as_me: failed program was:" >&5
 
20808
sed 's/^/| /' conftest.$ac_ext >&5
 
20809
 
 
20810
( exit $ac_status )
 
20811
gl_cv_func_mbrtowc_sanitycheck=no
 
20812
fi
 
20813
rm -rf conftest.dSYM
 
20814
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20815
fi
 
20816
 
 
20817
 
 
20818
      fi
 
20819
 
 
20820
fi
 
20821
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
 
20822
$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
 
20823
 
 
20824
    REPLACE_MBSTATE_T=0
 
20825
    case "$gl_cv_func_mbrtowc_incomplete_state" in
 
20826
      *yes) ;;
 
20827
      *) REPLACE_MBSTATE_T=1 ;;
 
20828
    esac
 
20829
    case "$gl_cv_func_mbrtowc_sanitycheck" in
 
20830
      *yes) ;;
 
20831
      *) REPLACE_MBSTATE_T=1 ;;
 
20832
    esac
 
20833
  else
 
20834
    REPLACE_MBSTATE_T=1
 
20835
  fi
 
20836
  if test $REPLACE_MBSTATE_T = 1; then
 
20837
 
 
20838
 
 
20839
  WCHAR_H=wchar.h
 
20840
 
 
20841
  fi
 
20842
 
 
20843
  if test $REPLACE_MBSTATE_T = 1; then
 
20844
    REPLACE_MBRTOWC=1
 
20845
  fi
 
20846
 
 
20847
 
 
20848
 
 
20849
 
 
20850
 
 
20851
 
 
20852
  if test $ac_cv_func_mbrtowc = no; then
 
20853
    HAVE_MBRTOWC=0
 
20854
  fi
 
20855
  if test $HAVE_MBRTOWC != 0 && test $REPLACE_MBRTOWC != 1; then
 
20856
 
 
20857
 
 
20858
 
 
20859
     { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles a NULL string argument" >&5
 
20860
$as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
 
20861
if test "${gl_cv_func_mbrtowc_null_arg+set}" = set; then
 
20862
  $as_echo_n "(cached) " >&6
 
20863
else
 
20864
 
 
20865
                  case "$host_os" in
 
20866
              # Guess no on OSF/1.
 
20867
        osf*) gl_cv_func_mbrtowc_null_arg="guessing no" ;;
 
20868
              # Guess yes otherwise.
 
20869
        *)    gl_cv_func_mbrtowc_null_arg="guessing yes" ;;
 
20870
      esac
 
20871
      if test $LOCALE_FR_UTF8 != none; then
 
20872
        if test "$cross_compiling" = yes; then
 
20873
  :
 
20874
else
 
20875
  cat >conftest.$ac_ext <<_ACEOF
 
20876
/* confdefs.h.  */
 
20877
_ACEOF
 
20878
cat confdefs.h >>conftest.$ac_ext
 
20879
cat >>conftest.$ac_ext <<_ACEOF
 
20880
/* end confdefs.h.  */
 
20881
 
 
20882
#include <locale.h>
 
20883
#include <string.h>
 
20884
#include <wchar.h>
 
20885
int main ()
 
20886
{
 
20887
  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
 
20888
    {
 
20889
      mbstate_t state;
 
20890
      wchar_t wc;
 
20891
      int ret;
 
20892
 
 
20893
      memset (&state, '\0', sizeof (mbstate_t));
 
20894
      wc = (wchar_t) 0xBADFACE;
 
20895
      mbrtowc (&wc, NULL, 5, &state);
 
20896
      /* Check that wc was not modified.  */
 
20897
      if (wc != (wchar_t) 0xBADFACE)
 
20898
        return 1;
 
20899
    }
 
20900
  return 0;
 
20901
}
 
20902
_ACEOF
 
20903
rm -f conftest$ac_exeext
 
20904
if { (ac_try="$ac_link"
 
20905
case "(($ac_try" in
 
20906
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20907
  *) ac_try_echo=$ac_try;;
 
20908
esac
 
20909
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20910
$as_echo "$ac_try_echo") >&5
 
20911
  (eval "$ac_link") 2>&5
 
20912
  ac_status=$?
 
20913
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20914
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20915
  { (case "(($ac_try" in
 
20916
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20917
  *) ac_try_echo=$ac_try;;
 
20918
esac
 
20919
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20920
$as_echo "$ac_try_echo") >&5
 
20921
  (eval "$ac_try") 2>&5
 
20922
  ac_status=$?
 
20923
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20924
  (exit $ac_status); }; }; then
 
20925
  gl_cv_func_mbrtowc_null_arg=yes
 
20926
else
 
20927
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
20928
$as_echo "$as_me: failed program was:" >&5
 
20929
sed 's/^/| /' conftest.$ac_ext >&5
 
20930
 
 
20931
( exit $ac_status )
 
20932
gl_cv_func_mbrtowc_null_arg=no
 
20933
fi
 
20934
rm -rf conftest.dSYM
 
20935
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20936
fi
 
20937
 
 
20938
 
 
20939
      fi
 
20940
 
 
20941
fi
 
20942
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_null_arg" >&5
 
20943
$as_echo "$gl_cv_func_mbrtowc_null_arg" >&6; }
 
20944
 
 
20945
 
 
20946
 
 
20947
 
 
20948
 
 
20949
     { $as_echo "$as_me:$LINENO: checking whether mbrtowc has a correct return value" >&5
 
20950
$as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
 
20951
if test "${gl_cv_func_mbrtowc_retval+set}" = set; then
 
20952
  $as_echo_n "(cached) " >&6
 
20953
else
 
20954
 
 
20955
                  case "$host_os" in
 
20956
                          # Guess no on HP-UX and Solaris.
 
20957
        hpux* | solaris*) gl_cv_func_mbrtowc_retval="guessing no" ;;
 
20958
                          # Guess yes otherwise.
 
20959
        *)                gl_cv_func_mbrtowc_retval="guessing yes" ;;
 
20960
      esac
 
20961
      if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none; then
 
20962
        if test "$cross_compiling" = yes; then
 
20963
  :
 
20964
else
 
20965
  cat >conftest.$ac_ext <<_ACEOF
 
20966
/* confdefs.h.  */
 
20967
_ACEOF
 
20968
cat confdefs.h >>conftest.$ac_ext
 
20969
cat >>conftest.$ac_ext <<_ACEOF
 
20970
/* end confdefs.h.  */
 
20971
 
 
20972
#include <locale.h>
 
20973
#include <string.h>
 
20974
#include <wchar.h>
 
20975
int main ()
 
20976
{
 
20977
  /* This fails on Solaris.  */
 
20978
  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
 
20979
    {
 
20980
      char input[] = "B\303\274\303\237er"; /* "Büßer" */
 
20981
      mbstate_t state;
 
20982
      wchar_t wc;
 
20983
 
 
20984
      memset (&state, '\0', sizeof (mbstate_t));
 
20985
      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
 
20986
        {
 
20987
          input[1] = '\0';
 
20988
          if (mbrtowc (&wc, input + 2, 5, &state) != 1)
 
20989
            return 1;
 
20990
        }
 
20991
    }
 
20992
  /* This fails on HP-UX 11.11.  */
 
20993
  if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
 
20994
    {
 
20995
      char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
 
20996
      mbstate_t state;
 
20997
      wchar_t wc;
 
20998
 
 
20999
      memset (&state, '\0', sizeof (mbstate_t));
 
21000
      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
 
21001
        {
 
21002
          input[1] = '\0';
 
21003
          if (mbrtowc (&wc, input + 2, 5, &state) != 2)
 
21004
            return 1;
 
21005
        }
 
21006
    }
 
21007
  return 0;
 
21008
}
 
21009
_ACEOF
 
21010
rm -f conftest$ac_exeext
 
21011
if { (ac_try="$ac_link"
 
21012
case "(($ac_try" in
 
21013
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21014
  *) ac_try_echo=$ac_try;;
 
21015
esac
 
21016
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21017
$as_echo "$ac_try_echo") >&5
 
21018
  (eval "$ac_link") 2>&5
 
21019
  ac_status=$?
 
21020
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21021
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
21022
  { (case "(($ac_try" in
 
21023
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21024
  *) ac_try_echo=$ac_try;;
 
21025
esac
 
21026
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21027
$as_echo "$ac_try_echo") >&5
 
21028
  (eval "$ac_try") 2>&5
 
21029
  ac_status=$?
 
21030
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21031
  (exit $ac_status); }; }; then
 
21032
  gl_cv_func_mbrtowc_retval=yes
 
21033
else
 
21034
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
21035
$as_echo "$as_me: failed program was:" >&5
 
21036
sed 's/^/| /' conftest.$ac_ext >&5
 
21037
 
 
21038
( exit $ac_status )
 
21039
gl_cv_func_mbrtowc_retval=no
 
21040
fi
 
21041
rm -rf conftest.dSYM
 
21042
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
21043
fi
 
21044
 
 
21045
 
 
21046
      fi
 
21047
 
 
21048
fi
 
21049
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_retval" >&5
 
21050
$as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
 
21051
 
 
21052
 
 
21053
 
 
21054
 
 
21055
     { $as_echo "$as_me:$LINENO: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
 
21056
$as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
 
21057
if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then
 
21058
  $as_echo_n "(cached) " >&6
 
21059
else
 
21060
 
 
21061
                  case "$host_os" in
 
21062
                       # Guess no on Solaris 8 and 9.
 
21063
        solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
 
21064
                       # Guess yes otherwise.
 
21065
        *)             gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
 
21066
      esac
 
21067
      if test $LOCALE_ZH_CN != none; then
 
21068
        if test "$cross_compiling" = yes; then
 
21069
  :
 
21070
else
 
21071
  cat >conftest.$ac_ext <<_ACEOF
 
21072
/* confdefs.h.  */
 
21073
_ACEOF
 
21074
cat confdefs.h >>conftest.$ac_ext
 
21075
cat >>conftest.$ac_ext <<_ACEOF
 
21076
/* end confdefs.h.  */
 
21077
 
 
21078
#include <locale.h>
 
21079
#include <string.h>
 
21080
#include <wchar.h>
 
21081
int main ()
 
21082
{
 
21083
  /* This fails on Solaris 8 and 9.  */
 
21084
  if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
 
21085
    {
 
21086
      mbstate_t state;
 
21087
      wchar_t wc;
 
21088
 
 
21089
      memset (&state, '\0', sizeof (mbstate_t));
 
21090
      if (mbrtowc (&wc, "", 1, &state) != 0)
 
21091
        return 1;
 
21092
    }
 
21093
  return 0;
 
21094
}
 
21095
_ACEOF
 
21096
rm -f conftest$ac_exeext
 
21097
if { (ac_try="$ac_link"
 
21098
case "(($ac_try" in
 
21099
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21100
  *) ac_try_echo=$ac_try;;
 
21101
esac
 
21102
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21103
$as_echo "$ac_try_echo") >&5
 
21104
  (eval "$ac_link") 2>&5
 
21105
  ac_status=$?
 
21106
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21107
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
21108
  { (case "(($ac_try" in
 
21109
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21110
  *) ac_try_echo=$ac_try;;
 
21111
esac
 
21112
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21113
$as_echo "$ac_try_echo") >&5
 
21114
  (eval "$ac_try") 2>&5
 
21115
  ac_status=$?
 
21116
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21117
  (exit $ac_status); }; }; then
 
21118
  gl_cv_func_mbrtowc_nul_retval=yes
 
21119
else
 
21120
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
21121
$as_echo "$as_me: failed program was:" >&5
 
21122
sed 's/^/| /' conftest.$ac_ext >&5
 
21123
 
 
21124
( exit $ac_status )
 
21125
gl_cv_func_mbrtowc_nul_retval=no
 
21126
fi
 
21127
rm -rf conftest.dSYM
 
21128
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
21129
fi
 
21130
 
 
21131
 
 
21132
      fi
 
21133
 
 
21134
fi
 
21135
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_nul_retval" >&5
 
21136
$as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
 
21137
 
 
21138
    case "$gl_cv_func_mbrtowc_null_arg" in
 
21139
      *yes) ;;
 
21140
      *)
 
21141
cat >>confdefs.h <<\_ACEOF
 
21142
#define MBRTOWC_NULL_ARG_BUG 1
 
21143
_ACEOF
 
21144
 
 
21145
         REPLACE_MBRTOWC=1
 
21146
         ;;
 
21147
    esac
 
21148
    case "$gl_cv_func_mbrtowc_retval" in
 
21149
      *yes) ;;
 
21150
      *)
 
21151
cat >>confdefs.h <<\_ACEOF
 
21152
#define MBRTOWC_RETVAL_BUG 1
 
21153
_ACEOF
 
21154
 
 
21155
         REPLACE_MBRTOWC=1
 
21156
         ;;
 
21157
    esac
 
21158
    case "$gl_cv_func_mbrtowc_nul_retval" in
 
21159
      *yes) ;;
 
21160
      *)
 
21161
cat >>confdefs.h <<\_ACEOF
 
21162
#define MBRTOWC_NUL_RETVAL_BUG 1
 
21163
_ACEOF
 
21164
 
 
21165
         REPLACE_MBRTOWC=1
 
21166
         ;;
 
21167
    esac
 
21168
  fi
 
21169
  if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
 
21170
 
 
21171
 
 
21172
  WCHAR_H=wchar.h
 
21173
 
 
21174
 
 
21175
 
 
21176
 
 
21177
 
 
21178
 
 
21179
 
 
21180
 
 
21181
 
 
21182
  gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
 
21183
 
 
21184
 
 
21185
  :
 
21186
 
 
21187
  fi
 
21188
 
 
21189
 
 
21190
 
 
21191
  GNULIB_MBRTOWC=1
 
21192
 
 
21193
 
 
21194
 
 
21195
 
 
21196
 
 
21197
 
 
21198
 
 
21199
 
 
21200
 
 
21201
 
 
21202
 
 
21203
 
 
21204
 
 
21205
 
 
21206
 
 
21207
 
 
21208
 
 
21209
 
 
21210
 
 
21211
 
 
21212
 
 
21213
  if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
 
21214
 
 
21215
 
 
21216
 
 
21217
     { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
 
21218
$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
 
21219
if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
 
21220
  $as_echo_n "(cached) " >&6
 
21221
else
 
21222
 
 
21223
                  case "$host_os" in
 
21224
              # Guess no on AIX and OSF/1.
 
21225
        osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
 
21226
              # Guess yes otherwise.
 
21227
        *)    gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
 
21228
      esac
 
21229
      if test $LOCALE_JA != none; then
 
21230
        if test "$cross_compiling" = yes; then
 
21231
  :
 
21232
else
 
21233
  cat >conftest.$ac_ext <<_ACEOF
 
21234
/* confdefs.h.  */
 
21235
_ACEOF
 
21236
cat confdefs.h >>conftest.$ac_ext
 
21237
cat >>conftest.$ac_ext <<_ACEOF
 
21238
/* end confdefs.h.  */
 
21239
 
 
21240
#include <locale.h>
 
21241
#include <string.h>
 
21242
#include <wchar.h>
 
21243
int main ()
 
21244
{
 
21245
  if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
 
21246
    {
 
21247
      const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
 
21248
      mbstate_t state;
 
21249
      wchar_t wc;
 
21250
 
 
21251
      memset (&state, '\0', sizeof (mbstate_t));
 
21252
      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
 
21253
        if (mbsinit (&state))
 
21254
          return 1;
 
21255
    }
 
21256
  return 0;
 
21257
}
 
21258
_ACEOF
 
21259
rm -f conftest$ac_exeext
 
21260
if { (ac_try="$ac_link"
 
21261
case "(($ac_try" in
 
21262
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21263
  *) ac_try_echo=$ac_try;;
 
21264
esac
 
21265
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21266
$as_echo "$ac_try_echo") >&5
 
21267
  (eval "$ac_link") 2>&5
 
21268
  ac_status=$?
 
21269
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21270
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
21271
  { (case "(($ac_try" in
 
21272
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21273
  *) ac_try_echo=$ac_try;;
 
21274
esac
 
21275
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21276
$as_echo "$ac_try_echo") >&5
 
21277
  (eval "$ac_try") 2>&5
 
21278
  ac_status=$?
 
21279
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21280
  (exit $ac_status); }; }; then
 
21281
  gl_cv_func_mbrtowc_incomplete_state=yes
 
21282
else
 
21283
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
21284
$as_echo "$as_me: failed program was:" >&5
 
21285
sed 's/^/| /' conftest.$ac_ext >&5
 
21286
 
 
21287
( exit $ac_status )
 
21288
gl_cv_func_mbrtowc_incomplete_state=no
 
21289
fi
 
21290
rm -rf conftest.dSYM
 
21291
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
21292
fi
 
21293
 
 
21294
 
 
21295
      fi
 
21296
 
 
21297
fi
 
21298
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
 
21299
$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
 
21300
 
 
21301
 
 
21302
 
 
21303
 
 
21304
     { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
 
21305
$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
 
21306
if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
 
21307
  $as_echo_n "(cached) " >&6
 
21308
else
 
21309
 
 
21310
                  case "$host_os" in
 
21311
                    # Guess no on Solaris 8.
 
21312
        solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
 
21313
                    # Guess yes otherwise.
 
21314
        *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
 
21315
      esac
 
21316
      if test $LOCALE_ZH_CN != none; then
 
21317
        if test "$cross_compiling" = yes; then
 
21318
  :
 
21319
else
 
21320
  cat >conftest.$ac_ext <<_ACEOF
 
21321
/* confdefs.h.  */
 
21322
_ACEOF
 
21323
cat confdefs.h >>conftest.$ac_ext
 
21324
cat >>conftest.$ac_ext <<_ACEOF
 
21325
/* end confdefs.h.  */
 
21326
 
 
21327
#include <locale.h>
 
21328
#include <stdlib.h>
 
21329
#include <string.h>
 
21330
#include <wchar.h>
 
21331
int main ()
 
21332
{
 
21333
  /* This fails on Solaris 8:
 
21334
     mbrtowc returns 2, and sets wc to 0x00F0.
 
21335
     mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
 
21336
  if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
 
21337
    {
 
21338
      char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
 
21339
      mbstate_t state;
 
21340
      wchar_t wc;
 
21341
 
 
21342
      memset (&state, '\0', sizeof (mbstate_t));
 
21343
      if (mbrtowc (&wc, input + 3, 6, &state) != 4
 
21344
          && mbtowc (&wc, input + 3, 6) == 4)
 
21345
        return 1;
 
21346
    }
 
21347
  return 0;
 
21348
}
 
21349
_ACEOF
 
21350
rm -f conftest$ac_exeext
 
21351
if { (ac_try="$ac_link"
 
21352
case "(($ac_try" in
 
21353
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21354
  *) ac_try_echo=$ac_try;;
 
21355
esac
 
21356
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21357
$as_echo "$ac_try_echo") >&5
 
21358
  (eval "$ac_link") 2>&5
 
21359
  ac_status=$?
 
21360
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21361
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
21362
  { (case "(($ac_try" in
 
21363
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21364
  *) ac_try_echo=$ac_try;;
 
21365
esac
 
21366
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21367
$as_echo "$ac_try_echo") >&5
 
21368
  (eval "$ac_try") 2>&5
 
21369
  ac_status=$?
 
21370
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21371
  (exit $ac_status); }; }; then
 
21372
  gl_cv_func_mbrtowc_sanitycheck=yes
 
21373
else
 
21374
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
21375
$as_echo "$as_me: failed program was:" >&5
 
21376
sed 's/^/| /' conftest.$ac_ext >&5
 
21377
 
 
21378
( exit $ac_status )
 
21379
gl_cv_func_mbrtowc_sanitycheck=no
 
21380
fi
 
21381
rm -rf conftest.dSYM
 
21382
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
21383
fi
 
21384
 
 
21385
 
 
21386
      fi
 
21387
 
 
21388
fi
 
21389
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
 
21390
$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
 
21391
 
 
21392
    REPLACE_MBSTATE_T=0
 
21393
    case "$gl_cv_func_mbrtowc_incomplete_state" in
 
21394
      *yes) ;;
 
21395
      *) REPLACE_MBSTATE_T=1 ;;
 
21396
    esac
 
21397
    case "$gl_cv_func_mbrtowc_sanitycheck" in
 
21398
      *yes) ;;
 
21399
      *) REPLACE_MBSTATE_T=1 ;;
 
21400
    esac
 
21401
  else
 
21402
    REPLACE_MBSTATE_T=1
 
21403
  fi
 
21404
  if test $REPLACE_MBSTATE_T = 1; then
 
21405
 
 
21406
 
 
21407
  WCHAR_H=wchar.h
 
21408
 
 
21409
  fi
 
21410
 
 
21411
  if test $REPLACE_MBSTATE_T = 1; then
 
21412
    REPLACE_MBSINIT=1
 
21413
  fi
 
21414
 
 
21415
 
 
21416
 
 
21417
 
 
21418
 
 
21419
 
 
21420
  if test $ac_cv_func_mbsinit = no; then
 
21421
    HAVE_MBSINIT=0
 
21422
  fi
 
21423
  if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
 
21424
 
 
21425
 
 
21426
  WCHAR_H=wchar.h
 
21427
 
 
21428
 
 
21429
 
 
21430
 
 
21431
 
 
21432
 
 
21433
 
 
21434
 
 
21435
 
 
21436
  gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
 
21437
 
 
21438
 
 
21439
  :
 
21440
 
 
21441
  fi
 
21442
 
 
21443
 
 
21444
 
 
21445
  GNULIB_MBSINIT=1
 
21446
 
 
21447
 
 
21448
 
 
21449
 
 
21450
  GNULIB_MEMCHR=1
 
21451
 
 
21452
 
 
21453
 
 
21454
 
 
21455
 
 
21456
 
 
21457
 
 
21458
 
 
21459
 
 
21460
 
 
21461
 
 
21462
  gl_LIBOBJS="$gl_LIBOBJS quote.$ac_objext"
 
21463
 
 
21464
 
 
21465
 
 
21466
 
 
21467
 
 
21468
 
 
21469
 
 
21470
 
 
21471
 
 
21472
 
 
21473
 
 
21474
 
 
21475
  gl_LIBOBJS="$gl_LIBOBJS quotearg.$ac_objext"
 
21476
 
 
21477
 
 
21478
 
 
21479
 
 
21480
  if test $gl_cv_func_malloc_posix = yes; then
 
21481
    HAVE_REALLOC_POSIX=1
 
21482
 
 
21483
cat >>confdefs.h <<\_ACEOF
 
21484
#define HAVE_REALLOC_POSIX 1
 
21485
_ACEOF
 
21486
 
 
21487
  else
 
21488
 
 
21489
 
 
21490
 
 
21491
 
 
21492
 
 
21493
 
 
21494
 
 
21495
 
 
21496
  gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
 
21497
 
 
21498
    HAVE_REALLOC_POSIX=0
 
21499
  fi
 
21500
 
 
21501
 
 
21502
 
 
21503
 
 
21504
  GNULIB_REALLOC_POSIX=1
 
21505
 
 
21506
 
 
21507
 
 
21508
 
 
21509
  # Define two additional variables used in the Makefile substitution.
 
21510
 
 
21511
  if test "$ac_cv_header_stdbool_h" = yes; then
 
21512
    STDBOOL_H=''
 
21513
  else
 
21514
    STDBOOL_H='stdbool.h'
 
21515
  fi
 
21516
 
 
21517
 
 
21518
  if test "$ac_cv_type__Bool" = yes; then
 
21519
    HAVE__BOOL=1
 
21520
  else
 
21521
    HAVE__BOOL=0
 
21522
  fi
 
21523
 
 
21524
 
 
21525
 
 
21526
 
 
21527
 
 
21528
  if test $gt_cv_c_wchar_t = no; then
 
21529
    HAVE_WCHAR_T=0
 
21530
    STDDEF_H=stddef.h
 
21531
  fi
 
21532
  { $as_echo "$as_me:$LINENO: checking whether NULL can be used in arbitrary expressions" >&5
 
21533
$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
 
21534
if test "${gl_cv_decl_null_works+set}" = set; then
 
21535
  $as_echo_n "(cached) " >&6
 
21536
else
 
21537
  cat >conftest.$ac_ext <<_ACEOF
 
21538
/* confdefs.h.  */
 
21539
_ACEOF
 
21540
cat confdefs.h >>conftest.$ac_ext
 
21541
cat >>conftest.$ac_ext <<_ACEOF
 
21542
/* end confdefs.h.  */
 
21543
#include <stddef.h>
 
21544
      int test[2 * (sizeof NULL == sizeof (void *)) -1];
 
21545
 
 
21546
int
 
21547
main ()
 
21548
{
 
21549
 
 
21550
  ;
 
21551
  return 0;
 
21552
}
 
21553
_ACEOF
 
21554
rm -f conftest.$ac_objext
 
21555
if { (ac_try="$ac_compile"
 
21556
case "(($ac_try" in
 
21557
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21558
  *) ac_try_echo=$ac_try;;
 
21559
esac
 
21560
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21561
$as_echo "$ac_try_echo") >&5
 
21562
  (eval "$ac_compile") 2>conftest.er1
 
21563
  ac_status=$?
 
21564
  grep -v '^ *+' conftest.er1 >conftest.err
 
21565
  rm -f conftest.er1
 
21566
  cat conftest.err >&5
 
21567
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21568
  (exit $ac_status); } && {
 
21569
         test -z "$ac_c_werror_flag" ||
 
21570
         test ! -s conftest.err
 
21571
       } && test -s conftest.$ac_objext; then
 
21572
  gl_cv_decl_null_works=yes
 
21573
else
 
21574
  $as_echo "$as_me: failed program was:" >&5
 
21575
sed 's/^/| /' conftest.$ac_ext >&5
 
21576
 
 
21577
        gl_cv_decl_null_works=no
 
21578
fi
 
21579
 
 
21580
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21581
fi
 
21582
{ $as_echo "$as_me:$LINENO: result: $gl_cv_decl_null_works" >&5
 
21583
$as_echo "$gl_cv_decl_null_works" >&6; }
 
21584
  if test $gl_cv_decl_null_works = no; then
 
21585
    REPLACE_NULL=1
 
21586
    STDDEF_H=stddef.h
 
21587
  fi
 
21588
  if test -n "$STDDEF_H"; then
 
21589
 
 
21590
 
 
21591
 
 
21592
 
 
21593
 
 
21594
 
 
21595
 
 
21596
 
 
21597
 
 
21598
 
 
21599
 
 
21600
     if test $gl_cv_have_include_next = yes; then
 
21601
       gl_cv_next_stddef_h='<'stddef.h'>'
 
21602
     else
 
21603
       { $as_echo "$as_me:$LINENO: checking absolute name of <stddef.h>" >&5
 
21604
$as_echo_n "checking absolute name of <stddef.h>... " >&6; }
 
21605
if test "${gl_cv_next_stddef_h+set}" = set; then
 
21606
  $as_echo_n "(cached) " >&6
 
21607
else
 
21608
 
 
21609
          if test $ac_cv_header_stddef_h = yes; then
 
21610
            cat >conftest.$ac_ext <<_ACEOF
 
21611
/* confdefs.h.  */
 
21612
_ACEOF
 
21613
cat confdefs.h >>conftest.$ac_ext
 
21614
cat >>conftest.$ac_ext <<_ACEOF
 
21615
/* end confdefs.h.  */
 
21616
#include <stddef.h>
 
21617
 
 
21618
_ACEOF
 
21619
                                                                    case "$host_os" in
 
21620
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
21621
              *)    gl_absname_cpp="$ac_cpp" ;;
 
21622
            esac
 
21623
                                    gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
21624
               sed -n '\#/stddef.h#{
 
21625
                 s#.*"\(.*/stddef.h\)".*#\1#
 
21626
                 s#^/[^/]#//&#
 
21627
                 p
 
21628
                 q
 
21629
               }'`'"'
 
21630
          else
 
21631
            gl_cv_next_stddef_h='<'stddef.h'>'
 
21632
          fi
 
21633
 
 
21634
fi
 
21635
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_stddef_h" >&5
 
21636
$as_echo "$gl_cv_next_stddef_h" >&6; }
 
21637
     fi
 
21638
     NEXT_STDDEF_H=$gl_cv_next_stddef_h
 
21639
 
 
21640
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
21641
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
21642
       gl_next_as_first_directive='<'stddef.h'>'
 
21643
     else
 
21644
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
21645
       gl_next_as_first_directive=$gl_cv_next_stddef_h
 
21646
     fi
 
21647
     NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
 
21648
 
 
21649
 
 
21650
 
 
21651
  fi
 
21652
 
 
21653
 
 
21654
 
 
21655
 
 
21656
  if test $ac_cv_type_long_long_int = yes; then
 
21657
    HAVE_LONG_LONG_INT=1
 
21658
  else
 
21659
    HAVE_LONG_LONG_INT=0
 
21660
  fi
 
21661
 
 
21662
 
 
21663
  if test $ac_cv_type_unsigned_long_long_int = yes; then
 
21664
    HAVE_UNSIGNED_LONG_LONG_INT=1
 
21665
  else
 
21666
    HAVE_UNSIGNED_LONG_LONG_INT=0
 
21667
  fi
 
21668
 
 
21669
 
 
21670
      if test $ac_cv_header_inttypes_h = yes; then
 
21671
    HAVE_INTTYPES_H=1
 
21672
  else
 
21673
    HAVE_INTTYPES_H=0
 
21674
  fi
 
21675
 
 
21676
 
 
21677
      if test $ac_cv_header_sys_types_h = yes; then
 
21678
    HAVE_SYS_TYPES_H=1
 
21679
  else
 
21680
    HAVE_SYS_TYPES_H=0
 
21681
  fi
 
21682
 
 
21683
 
 
21684
 
 
21685
 
 
21686
 
 
21687
 
 
21688
 
 
21689
 
 
21690
 
 
21691
 
 
21692
 
 
21693
 
 
21694
 
 
21695
     if test $gl_cv_have_include_next = yes; then
 
21696
       gl_cv_next_stdint_h='<'stdint.h'>'
 
21697
     else
 
21698
       { $as_echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
 
21699
$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
 
21700
if test "${gl_cv_next_stdint_h+set}" = set; then
 
21701
  $as_echo_n "(cached) " >&6
 
21702
else
 
21703
 
 
21704
          if test $ac_cv_header_stdint_h = yes; then
 
21705
            cat >conftest.$ac_ext <<_ACEOF
 
21706
/* confdefs.h.  */
 
21707
_ACEOF
 
21708
cat confdefs.h >>conftest.$ac_ext
 
21709
cat >>conftest.$ac_ext <<_ACEOF
 
21710
/* end confdefs.h.  */
 
21711
#include <stdint.h>
 
21712
 
 
21713
_ACEOF
 
21714
                                                                    case "$host_os" in
 
21715
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
21716
              *)    gl_absname_cpp="$ac_cpp" ;;
 
21717
            esac
 
21718
                                    gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
21719
               sed -n '\#/stdint.h#{
 
21720
                 s#.*"\(.*/stdint.h\)".*#\1#
 
21721
                 s#^/[^/]#//&#
 
21722
                 p
 
21723
                 q
 
21724
               }'`'"'
 
21725
          else
 
21726
            gl_cv_next_stdint_h='<'stdint.h'>'
 
21727
          fi
 
21728
 
 
21729
fi
 
21730
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
 
21731
$as_echo "$gl_cv_next_stdint_h" >&6; }
 
21732
     fi
 
21733
     NEXT_STDINT_H=$gl_cv_next_stdint_h
 
21734
 
 
21735
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
21736
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
21737
       gl_next_as_first_directive='<'stdint.h'>'
 
21738
     else
 
21739
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
21740
       gl_next_as_first_directive=$gl_cv_next_stdint_h
 
21741
     fi
 
21742
     NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
 
21743
 
 
21744
 
 
21745
 
 
21746
  if test $ac_cv_header_stdint_h = yes; then
 
21747
    HAVE_STDINT_H=1
 
21748
  else
 
21749
    HAVE_STDINT_H=0
 
21750
  fi
 
21751
 
 
21752
 
 
21753
    if test $ac_cv_header_stdint_h = yes; then
 
21754
    { $as_echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
 
21755
$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
 
21756
if test "${gl_cv_header_working_stdint_h+set}" = set; then
 
21757
  $as_echo_n "(cached) " >&6
 
21758
else
 
21759
  gl_cv_header_working_stdint_h=no
 
21760
       cat >conftest.$ac_ext <<_ACEOF
 
21761
 
 
21762
         /* confdefs.h.  */
 
21763
_ACEOF
 
21764
cat confdefs.h >>conftest.$ac_ext
 
21765
cat >>conftest.$ac_ext <<_ACEOF
 
21766
/* end confdefs.h.  */
 
21767
 
 
21768
#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
 
21769
#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
 
21770
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
 
21771
#include <stdint.h>
 
21772
/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
 
21773
#if !(defined WCHAR_MIN && defined WCHAR_MAX)
 
21774
#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
 
21775
#endif
 
21776
 
 
21777
 
 
21778
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
21779
     included before <wchar.h>.  */
 
21780
  #include <stddef.h>
 
21781
  #include <signal.h>
 
21782
  #if HAVE_WCHAR_H
 
21783
  # include <stdio.h>
 
21784
  # include <time.h>
 
21785
  # include <wchar.h>
 
21786
  #endif
 
21787
 
 
21788
 
 
21789
#ifdef INT8_MAX
 
21790
int8_t a1 = INT8_MAX;
 
21791
int8_t a1min = INT8_MIN;
 
21792
#endif
 
21793
#ifdef INT16_MAX
 
21794
int16_t a2 = INT16_MAX;
 
21795
int16_t a2min = INT16_MIN;
 
21796
#endif
 
21797
#ifdef INT32_MAX
 
21798
int32_t a3 = INT32_MAX;
 
21799
int32_t a3min = INT32_MIN;
 
21800
#endif
 
21801
#ifdef INT64_MAX
 
21802
int64_t a4 = INT64_MAX;
 
21803
int64_t a4min = INT64_MIN;
 
21804
#endif
 
21805
#ifdef UINT8_MAX
 
21806
uint8_t b1 = UINT8_MAX;
 
21807
#else
 
21808
typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
 
21809
#endif
 
21810
#ifdef UINT16_MAX
 
21811
uint16_t b2 = UINT16_MAX;
 
21812
#endif
 
21813
#ifdef UINT32_MAX
 
21814
uint32_t b3 = UINT32_MAX;
 
21815
#endif
 
21816
#ifdef UINT64_MAX
 
21817
uint64_t b4 = UINT64_MAX;
 
21818
#endif
 
21819
int_least8_t c1 = INT8_C (0x7f);
 
21820
int_least8_t c1max = INT_LEAST8_MAX;
 
21821
int_least8_t c1min = INT_LEAST8_MIN;
 
21822
int_least16_t c2 = INT16_C (0x7fff);
 
21823
int_least16_t c2max = INT_LEAST16_MAX;
 
21824
int_least16_t c2min = INT_LEAST16_MIN;
 
21825
int_least32_t c3 = INT32_C (0x7fffffff);
 
21826
int_least32_t c3max = INT_LEAST32_MAX;
 
21827
int_least32_t c3min = INT_LEAST32_MIN;
 
21828
int_least64_t c4 = INT64_C (0x7fffffffffffffff);
 
21829
int_least64_t c4max = INT_LEAST64_MAX;
 
21830
int_least64_t c4min = INT_LEAST64_MIN;
 
21831
uint_least8_t d1 = UINT8_C (0xff);
 
21832
uint_least8_t d1max = UINT_LEAST8_MAX;
 
21833
uint_least16_t d2 = UINT16_C (0xffff);
 
21834
uint_least16_t d2max = UINT_LEAST16_MAX;
 
21835
uint_least32_t d3 = UINT32_C (0xffffffff);
 
21836
uint_least32_t d3max = UINT_LEAST32_MAX;
 
21837
uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
 
21838
uint_least64_t d4max = UINT_LEAST64_MAX;
 
21839
int_fast8_t e1 = INT_FAST8_MAX;
 
21840
int_fast8_t e1min = INT_FAST8_MIN;
 
21841
int_fast16_t e2 = INT_FAST16_MAX;
 
21842
int_fast16_t e2min = INT_FAST16_MIN;
 
21843
int_fast32_t e3 = INT_FAST32_MAX;
 
21844
int_fast32_t e3min = INT_FAST32_MIN;
 
21845
int_fast64_t e4 = INT_FAST64_MAX;
 
21846
int_fast64_t e4min = INT_FAST64_MIN;
 
21847
uint_fast8_t f1 = UINT_FAST8_MAX;
 
21848
uint_fast16_t f2 = UINT_FAST16_MAX;
 
21849
uint_fast32_t f3 = UINT_FAST32_MAX;
 
21850
uint_fast64_t f4 = UINT_FAST64_MAX;
 
21851
#ifdef INTPTR_MAX
 
21852
intptr_t g = INTPTR_MAX;
 
21853
intptr_t gmin = INTPTR_MIN;
 
21854
#endif
 
21855
#ifdef UINTPTR_MAX
 
21856
uintptr_t h = UINTPTR_MAX;
 
21857
#endif
 
21858
intmax_t i = INTMAX_MAX;
 
21859
uintmax_t j = UINTMAX_MAX;
 
21860
 
 
21861
#include <limits.h> /* for CHAR_BIT */
 
21862
#define TYPE_MINIMUM(t) \
 
21863
  ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
 
21864
#define TYPE_MAXIMUM(t) \
 
21865
  ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
 
21866
struct s {
 
21867
  int check_PTRDIFF:
 
21868
      PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
 
21869
      && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
 
21870
      ? 1 : -1;
 
21871
  /* Detect bug in FreeBSD 6.0 / ia64.  */
 
21872
  int check_SIG_ATOMIC:
 
21873
      SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
 
21874
      && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
 
21875
      ? 1 : -1;
 
21876
  int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
 
21877
  int check_WCHAR:
 
21878
      WCHAR_MIN == TYPE_MINIMUM (wchar_t)
 
21879
      && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
 
21880
      ? 1 : -1;
 
21881
  /* Detect bug in mingw.  */
 
21882
  int check_WINT:
 
21883
      WINT_MIN == TYPE_MINIMUM (wint_t)
 
21884
      && WINT_MAX == TYPE_MAXIMUM (wint_t)
 
21885
      ? 1 : -1;
 
21886
 
 
21887
  /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
 
21888
  int check_UINT8_C:
 
21889
        (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
 
21890
  int check_UINT16_C:
 
21891
        (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
 
21892
 
 
21893
  /* Detect bugs in OpenBSD 3.9 stdint.h.  */
 
21894
#ifdef UINT8_MAX
 
21895
  int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
 
21896
#endif
 
21897
#ifdef UINT16_MAX
 
21898
  int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
 
21899
#endif
 
21900
#ifdef UINT32_MAX
 
21901
  int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
 
21902
#endif
 
21903
#ifdef UINT64_MAX
 
21904
  int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
 
21905
#endif
 
21906
  int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
 
21907
  int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
 
21908
  int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
 
21909
  int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
 
21910
  int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
 
21911
  int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
 
21912
  int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
 
21913
  int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
 
21914
  int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
 
21915
  int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
 
21916
  int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
 
21917
};
 
21918
 
 
21919
int
 
21920
main ()
 
21921
{
 
21922
 
 
21923
  ;
 
21924
  return 0;
 
21925
}
 
21926
_ACEOF
 
21927
rm -f conftest.$ac_objext
 
21928
if { (ac_try="$ac_compile"
 
21929
case "(($ac_try" in
 
21930
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21931
  *) ac_try_echo=$ac_try;;
 
21932
esac
 
21933
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21934
$as_echo "$ac_try_echo") >&5
 
21935
  (eval "$ac_compile") 2>conftest.er1
 
21936
  ac_status=$?
 
21937
  grep -v '^ *+' conftest.er1 >conftest.err
 
21938
  rm -f conftest.er1
 
21939
  cat conftest.err >&5
 
21940
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21941
  (exit $ac_status); } && {
 
21942
         test -z "$ac_c_werror_flag" ||
 
21943
         test ! -s conftest.err
 
21944
       } && test -s conftest.$ac_objext; then
 
21945
                                                    if test "$cross_compiling" = yes; then
 
21946
                 gl_cv_header_working_stdint_h=yes
 
21947
 
 
21948
else
 
21949
  cat >conftest.$ac_ext <<_ACEOF
 
21950
 
 
21951
            /* confdefs.h.  */
 
21952
_ACEOF
 
21953
cat confdefs.h >>conftest.$ac_ext
 
21954
cat >>conftest.$ac_ext <<_ACEOF
 
21955
/* end confdefs.h.  */
 
21956
 
 
21957
#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
 
21958
#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
 
21959
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
 
21960
#include <stdint.h>
 
21961
 
 
21962
 
 
21963
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
21964
     included before <wchar.h>.  */
 
21965
  #include <stddef.h>
 
21966
  #include <signal.h>
 
21967
  #if HAVE_WCHAR_H
 
21968
  # include <stdio.h>
 
21969
  # include <time.h>
 
21970
  # include <wchar.h>
 
21971
  #endif
 
21972
 
 
21973
 
 
21974
#include <stdio.h>
 
21975
#include <string.h>
 
21976
#define MVAL(macro) MVAL1(macro)
 
21977
#define MVAL1(expression) #expression
 
21978
static const char *macro_values[] =
 
21979
  {
 
21980
#ifdef INT8_MAX
 
21981
    MVAL (INT8_MAX),
 
21982
#endif
 
21983
#ifdef INT16_MAX
 
21984
    MVAL (INT16_MAX),
 
21985
#endif
 
21986
#ifdef INT32_MAX
 
21987
    MVAL (INT32_MAX),
 
21988
#endif
 
21989
#ifdef INT64_MAX
 
21990
    MVAL (INT64_MAX),
 
21991
#endif
 
21992
#ifdef UINT8_MAX
 
21993
    MVAL (UINT8_MAX),
 
21994
#endif
 
21995
#ifdef UINT16_MAX
 
21996
    MVAL (UINT16_MAX),
 
21997
#endif
 
21998
#ifdef UINT32_MAX
 
21999
    MVAL (UINT32_MAX),
 
22000
#endif
 
22001
#ifdef UINT64_MAX
 
22002
    MVAL (UINT64_MAX),
 
22003
#endif
 
22004
    NULL
 
22005
  };
 
22006
 
 
22007
int
 
22008
main ()
 
22009
{
 
22010
 
 
22011
  const char **mv;
 
22012
  for (mv = macro_values; *mv != NULL; mv++)
 
22013
    {
 
22014
      const char *value = *mv;
 
22015
      /* Test whether it looks like a cast expression.  */
 
22016
      if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
 
22017
          || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
 
22018
          || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
 
22019
          || strncmp (value, "((int)"/*)*/, 6) == 0
 
22020
          || strncmp (value, "((signed short)"/*)*/, 15) == 0
 
22021
          || strncmp (value, "((signed char)"/*)*/, 14) == 0)
 
22022
        return 1;
 
22023
    }
 
22024
  return 0;
 
22025
 
 
22026
  ;
 
22027
  return 0;
 
22028
}
 
22029
_ACEOF
 
22030
rm -f conftest$ac_exeext
 
22031
if { (ac_try="$ac_link"
 
22032
case "(($ac_try" in
 
22033
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22034
  *) ac_try_echo=$ac_try;;
 
22035
esac
 
22036
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22037
$as_echo "$ac_try_echo") >&5
 
22038
  (eval "$ac_link") 2>&5
 
22039
  ac_status=$?
 
22040
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22041
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
22042
  { (case "(($ac_try" in
 
22043
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22044
  *) ac_try_echo=$ac_try;;
 
22045
esac
 
22046
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22047
$as_echo "$ac_try_echo") >&5
 
22048
  (eval "$ac_try") 2>&5
 
22049
  ac_status=$?
 
22050
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22051
  (exit $ac_status); }; }; then
 
22052
  gl_cv_header_working_stdint_h=yes
 
22053
else
 
22054
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
22055
$as_echo "$as_me: failed program was:" >&5
 
22056
sed 's/^/| /' conftest.$ac_ext >&5
 
22057
 
 
22058
fi
 
22059
rm -rf conftest.dSYM
 
22060
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
22061
fi
 
22062
 
 
22063
 
 
22064
 
 
22065
else
 
22066
  $as_echo "$as_me: failed program was:" >&5
 
22067
sed 's/^/| /' conftest.$ac_ext >&5
 
22068
 
 
22069
 
 
22070
fi
 
22071
 
 
22072
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22073
 
 
22074
fi
 
22075
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
 
22076
$as_echo "$gl_cv_header_working_stdint_h" >&6; }
 
22077
  fi
 
22078
  if test "$gl_cv_header_working_stdint_h" = yes; then
 
22079
    STDINT_H=
 
22080
  else
 
22081
 
 
22082
 
 
22083
for ac_header in sys/inttypes.h sys/bitypes.h
 
22084
do
 
22085
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
22086
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22087
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22088
$as_echo_n "checking for $ac_header... " >&6; }
 
22089
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22090
  $as_echo_n "(cached) " >&6
 
22091
fi
 
22092
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
22093
                 $as_echo "$as_val"'`
 
22094
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
22095
$as_echo "$ac_res" >&6; }
 
22096
else
 
22097
  # Is the header compilable?
 
22098
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
22099
$as_echo_n "checking $ac_header usability... " >&6; }
 
22100
cat >conftest.$ac_ext <<_ACEOF
 
22101
/* confdefs.h.  */
 
22102
_ACEOF
 
22103
cat confdefs.h >>conftest.$ac_ext
 
22104
cat >>conftest.$ac_ext <<_ACEOF
 
22105
/* end confdefs.h.  */
 
22106
$ac_includes_default
 
22107
#include <$ac_header>
 
22108
_ACEOF
 
22109
rm -f conftest.$ac_objext
 
22110
if { (ac_try="$ac_compile"
 
22111
case "(($ac_try" in
 
22112
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22113
  *) ac_try_echo=$ac_try;;
 
22114
esac
 
22115
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22116
$as_echo "$ac_try_echo") >&5
 
22117
  (eval "$ac_compile") 2>conftest.er1
 
22118
  ac_status=$?
 
22119
  grep -v '^ *+' conftest.er1 >conftest.err
 
22120
  rm -f conftest.er1
 
22121
  cat conftest.err >&5
 
22122
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22123
  (exit $ac_status); } && {
 
22124
         test -z "$ac_c_werror_flag" ||
 
22125
         test ! -s conftest.err
 
22126
       } && test -s conftest.$ac_objext; then
 
22127
  ac_header_compiler=yes
 
22128
else
 
22129
  $as_echo "$as_me: failed program was:" >&5
 
22130
sed 's/^/| /' conftest.$ac_ext >&5
 
22131
 
 
22132
        ac_header_compiler=no
 
22133
fi
 
22134
 
 
22135
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22136
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
22137
$as_echo "$ac_header_compiler" >&6; }
 
22138
 
 
22139
# Is the header present?
 
22140
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
22141
$as_echo_n "checking $ac_header presence... " >&6; }
 
22142
cat >conftest.$ac_ext <<_ACEOF
 
22143
/* confdefs.h.  */
 
22144
_ACEOF
 
22145
cat confdefs.h >>conftest.$ac_ext
 
22146
cat >>conftest.$ac_ext <<_ACEOF
 
22147
/* end confdefs.h.  */
 
22148
#include <$ac_header>
 
22149
_ACEOF
 
22150
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
22151
case "(($ac_try" in
 
22152
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22153
  *) ac_try_echo=$ac_try;;
 
22154
esac
 
22155
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22156
$as_echo "$ac_try_echo") >&5
 
22157
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
22158
  ac_status=$?
 
22159
  grep -v '^ *+' conftest.er1 >conftest.err
 
22160
  rm -f conftest.er1
 
22161
  cat conftest.err >&5
 
22162
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22163
  (exit $ac_status); } >/dev/null && {
 
22164
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
22165
         test ! -s conftest.err
 
22166
       }; then
 
22167
  ac_header_preproc=yes
 
22168
else
 
22169
  $as_echo "$as_me: failed program was:" >&5
 
22170
sed 's/^/| /' conftest.$ac_ext >&5
 
22171
 
 
22172
  ac_header_preproc=no
 
22173
fi
 
22174
 
 
22175
rm -f conftest.err conftest.$ac_ext
 
22176
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
22177
$as_echo "$ac_header_preproc" >&6; }
 
22178
 
 
22179
# So?  What about this header?
 
22180
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
22181
  yes:no: )
 
22182
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
22183
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
22184
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
22185
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
22186
    ac_header_preproc=yes
 
22187
    ;;
 
22188
  no:yes:* )
 
22189
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
22190
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
22191
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
22192
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
22193
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
22194
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
22195
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
22196
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
22197
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
22198
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
22199
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
22200
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
22201
    ( cat <<\_ASBOX
 
22202
## ------------------------------- ##
 
22203
## Report this to bug-wget@gnu.org ##
 
22204
## ------------------------------- ##
 
22205
_ASBOX
 
22206
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
22207
    ;;
 
22208
esac
 
22209
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22210
$as_echo_n "checking for $ac_header... " >&6; }
 
22211
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22212
  $as_echo_n "(cached) " >&6
 
22213
else
 
22214
  eval "$as_ac_Header=\$ac_header_preproc"
 
22215
fi
 
22216
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
22217
                 $as_echo "$as_val"'`
 
22218
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
22219
$as_echo "$ac_res" >&6; }
 
22220
 
 
22221
fi
 
22222
as_val=`eval 'as_val=${'$as_ac_Header'}
 
22223
                 $as_echo "$as_val"'`
 
22224
   if test "x$as_val" = x""yes; then
 
22225
  cat >>confdefs.h <<_ACEOF
 
22226
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
22227
_ACEOF
 
22228
 
 
22229
fi
 
22230
 
 
22231
done
 
22232
 
 
22233
    if test $ac_cv_header_sys_inttypes_h = yes; then
 
22234
      HAVE_SYS_INTTYPES_H=1
 
22235
    else
 
22236
      HAVE_SYS_INTTYPES_H=0
 
22237
    fi
 
22238
 
 
22239
    if test $ac_cv_header_sys_bitypes_h = yes; then
 
22240
      HAVE_SYS_BITYPES_H=1
 
22241
    else
 
22242
      HAVE_SYS_BITYPES_H=0
 
22243
    fi
 
22244
 
 
22245
 
 
22246
 
 
22247
 
 
22248
 
 
22249
 
 
22250
 
 
22251
 
 
22252
 
 
22253
 
 
22254
 
 
22255
  if test $APPLE_UNIVERSAL_BUILD = 0; then
 
22256
 
 
22257
 
 
22258
 
 
22259
 
 
22260
  for gltype in ptrdiff_t size_t ; do
 
22261
    { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
 
22262
$as_echo_n "checking for bit size of $gltype... " >&6; }
 
22263
if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
 
22264
  $as_echo_n "(cached) " >&6
 
22265
else
 
22266
  if test "$cross_compiling" = yes; then
 
22267
  # Depending upon the size, compute the lo and hi bounds.
 
22268
cat >conftest.$ac_ext <<_ACEOF
 
22269
/* confdefs.h.  */
 
22270
_ACEOF
 
22271
cat confdefs.h >>conftest.$ac_ext
 
22272
cat >>conftest.$ac_ext <<_ACEOF
 
22273
/* end confdefs.h.  */
 
22274
 
 
22275
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
22276
     included before <wchar.h>.  */
 
22277
  #include <stddef.h>
 
22278
  #include <signal.h>
 
22279
  #if HAVE_WCHAR_H
 
22280
  # include <stdio.h>
 
22281
  # include <time.h>
 
22282
  # include <wchar.h>
 
22283
  #endif
 
22284
 
 
22285
#include <limits.h>
 
22286
int
 
22287
main ()
 
22288
{
 
22289
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
 
22290
test_array [0] = 0
 
22291
 
 
22292
  ;
 
22293
  return 0;
 
22294
}
 
22295
_ACEOF
 
22296
rm -f conftest.$ac_objext
 
22297
if { (ac_try="$ac_compile"
 
22298
case "(($ac_try" in
 
22299
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22300
  *) ac_try_echo=$ac_try;;
 
22301
esac
 
22302
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22303
$as_echo "$ac_try_echo") >&5
 
22304
  (eval "$ac_compile") 2>conftest.er1
 
22305
  ac_status=$?
 
22306
  grep -v '^ *+' conftest.er1 >conftest.err
 
22307
  rm -f conftest.er1
 
22308
  cat conftest.err >&5
 
22309
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22310
  (exit $ac_status); } && {
 
22311
         test -z "$ac_c_werror_flag" ||
 
22312
         test ! -s conftest.err
 
22313
       } && test -s conftest.$ac_objext; then
 
22314
  ac_lo=0 ac_mid=0
 
22315
  while :; do
 
22316
    cat >conftest.$ac_ext <<_ACEOF
 
22317
/* confdefs.h.  */
 
22318
_ACEOF
 
22319
cat confdefs.h >>conftest.$ac_ext
 
22320
cat >>conftest.$ac_ext <<_ACEOF
 
22321
/* end confdefs.h.  */
 
22322
 
 
22323
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
22324
     included before <wchar.h>.  */
 
22325
  #include <stddef.h>
 
22326
  #include <signal.h>
 
22327
  #if HAVE_WCHAR_H
 
22328
  # include <stdio.h>
 
22329
  # include <time.h>
 
22330
  # include <wchar.h>
 
22331
  #endif
 
22332
 
 
22333
#include <limits.h>
 
22334
int
 
22335
main ()
 
22336
{
 
22337
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
 
22338
test_array [0] = 0
 
22339
 
 
22340
  ;
 
22341
  return 0;
 
22342
}
 
22343
_ACEOF
 
22344
rm -f conftest.$ac_objext
 
22345
if { (ac_try="$ac_compile"
 
22346
case "(($ac_try" in
 
22347
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22348
  *) ac_try_echo=$ac_try;;
 
22349
esac
 
22350
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22351
$as_echo "$ac_try_echo") >&5
 
22352
  (eval "$ac_compile") 2>conftest.er1
 
22353
  ac_status=$?
 
22354
  grep -v '^ *+' conftest.er1 >conftest.err
 
22355
  rm -f conftest.er1
 
22356
  cat conftest.err >&5
 
22357
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22358
  (exit $ac_status); } && {
 
22359
         test -z "$ac_c_werror_flag" ||
 
22360
         test ! -s conftest.err
 
22361
       } && test -s conftest.$ac_objext; then
 
22362
  ac_hi=$ac_mid; break
 
22363
else
 
22364
  $as_echo "$as_me: failed program was:" >&5
 
22365
sed 's/^/| /' conftest.$ac_ext >&5
 
22366
 
 
22367
        ac_lo=`expr $ac_mid + 1`
 
22368
                        if test $ac_lo -le $ac_mid; then
 
22369
                          ac_lo= ac_hi=
 
22370
                          break
 
22371
                        fi
 
22372
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
22373
fi
 
22374
 
 
22375
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22376
  done
 
22377
else
 
22378
  $as_echo "$as_me: failed program was:" >&5
 
22379
sed 's/^/| /' conftest.$ac_ext >&5
 
22380
 
 
22381
        cat >conftest.$ac_ext <<_ACEOF
 
22382
/* confdefs.h.  */
 
22383
_ACEOF
 
22384
cat confdefs.h >>conftest.$ac_ext
 
22385
cat >>conftest.$ac_ext <<_ACEOF
 
22386
/* end confdefs.h.  */
 
22387
 
 
22388
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
22389
     included before <wchar.h>.  */
 
22390
  #include <stddef.h>
 
22391
  #include <signal.h>
 
22392
  #if HAVE_WCHAR_H
 
22393
  # include <stdio.h>
 
22394
  # include <time.h>
 
22395
  # include <wchar.h>
 
22396
  #endif
 
22397
 
 
22398
#include <limits.h>
 
22399
int
 
22400
main ()
 
22401
{
 
22402
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
 
22403
test_array [0] = 0
 
22404
 
 
22405
  ;
 
22406
  return 0;
 
22407
}
 
22408
_ACEOF
 
22409
rm -f conftest.$ac_objext
 
22410
if { (ac_try="$ac_compile"
 
22411
case "(($ac_try" in
 
22412
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22413
  *) ac_try_echo=$ac_try;;
 
22414
esac
 
22415
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22416
$as_echo "$ac_try_echo") >&5
 
22417
  (eval "$ac_compile") 2>conftest.er1
 
22418
  ac_status=$?
 
22419
  grep -v '^ *+' conftest.er1 >conftest.err
 
22420
  rm -f conftest.er1
 
22421
  cat conftest.err >&5
 
22422
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22423
  (exit $ac_status); } && {
 
22424
         test -z "$ac_c_werror_flag" ||
 
22425
         test ! -s conftest.err
 
22426
       } && test -s conftest.$ac_objext; then
 
22427
  ac_hi=-1 ac_mid=-1
 
22428
  while :; do
 
22429
    cat >conftest.$ac_ext <<_ACEOF
 
22430
/* confdefs.h.  */
 
22431
_ACEOF
 
22432
cat confdefs.h >>conftest.$ac_ext
 
22433
cat >>conftest.$ac_ext <<_ACEOF
 
22434
/* end confdefs.h.  */
 
22435
 
 
22436
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
22437
     included before <wchar.h>.  */
 
22438
  #include <stddef.h>
 
22439
  #include <signal.h>
 
22440
  #if HAVE_WCHAR_H
 
22441
  # include <stdio.h>
 
22442
  # include <time.h>
 
22443
  # include <wchar.h>
 
22444
  #endif
 
22445
 
 
22446
#include <limits.h>
 
22447
int
 
22448
main ()
 
22449
{
 
22450
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
 
22451
test_array [0] = 0
 
22452
 
 
22453
  ;
 
22454
  return 0;
 
22455
}
 
22456
_ACEOF
 
22457
rm -f conftest.$ac_objext
 
22458
if { (ac_try="$ac_compile"
 
22459
case "(($ac_try" in
 
22460
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22461
  *) ac_try_echo=$ac_try;;
 
22462
esac
 
22463
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22464
$as_echo "$ac_try_echo") >&5
 
22465
  (eval "$ac_compile") 2>conftest.er1
 
22466
  ac_status=$?
 
22467
  grep -v '^ *+' conftest.er1 >conftest.err
 
22468
  rm -f conftest.er1
 
22469
  cat conftest.err >&5
 
22470
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22471
  (exit $ac_status); } && {
 
22472
         test -z "$ac_c_werror_flag" ||
 
22473
         test ! -s conftest.err
 
22474
       } && test -s conftest.$ac_objext; then
 
22475
  ac_lo=$ac_mid; break
 
22476
else
 
22477
  $as_echo "$as_me: failed program was:" >&5
 
22478
sed 's/^/| /' conftest.$ac_ext >&5
 
22479
 
 
22480
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
22481
                        if test $ac_mid -le $ac_hi; then
 
22482
                          ac_lo= ac_hi=
 
22483
                          break
 
22484
                        fi
 
22485
                        ac_mid=`expr 2 '*' $ac_mid`
 
22486
fi
 
22487
 
 
22488
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22489
  done
 
22490
else
 
22491
  $as_echo "$as_me: failed program was:" >&5
 
22492
sed 's/^/| /' conftest.$ac_ext >&5
 
22493
 
 
22494
        ac_lo= ac_hi=
 
22495
fi
 
22496
 
 
22497
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22498
fi
 
22499
 
 
22500
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22501
# Binary search between lo and hi bounds.
 
22502
while test "x$ac_lo" != "x$ac_hi"; do
 
22503
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
22504
  cat >conftest.$ac_ext <<_ACEOF
 
22505
/* confdefs.h.  */
 
22506
_ACEOF
 
22507
cat confdefs.h >>conftest.$ac_ext
 
22508
cat >>conftest.$ac_ext <<_ACEOF
 
22509
/* end confdefs.h.  */
 
22510
 
 
22511
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
22512
     included before <wchar.h>.  */
 
22513
  #include <stddef.h>
 
22514
  #include <signal.h>
 
22515
  #if HAVE_WCHAR_H
 
22516
  # include <stdio.h>
 
22517
  # include <time.h>
 
22518
  # include <wchar.h>
 
22519
  #endif
 
22520
 
 
22521
#include <limits.h>
 
22522
int
 
22523
main ()
 
22524
{
 
22525
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
 
22526
test_array [0] = 0
 
22527
 
 
22528
  ;
 
22529
  return 0;
 
22530
}
 
22531
_ACEOF
 
22532
rm -f conftest.$ac_objext
 
22533
if { (ac_try="$ac_compile"
 
22534
case "(($ac_try" in
 
22535
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22536
  *) ac_try_echo=$ac_try;;
 
22537
esac
 
22538
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22539
$as_echo "$ac_try_echo") >&5
 
22540
  (eval "$ac_compile") 2>conftest.er1
 
22541
  ac_status=$?
 
22542
  grep -v '^ *+' conftest.er1 >conftest.err
 
22543
  rm -f conftest.er1
 
22544
  cat conftest.err >&5
 
22545
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22546
  (exit $ac_status); } && {
 
22547
         test -z "$ac_c_werror_flag" ||
 
22548
         test ! -s conftest.err
 
22549
       } && test -s conftest.$ac_objext; then
 
22550
  ac_hi=$ac_mid
 
22551
else
 
22552
  $as_echo "$as_me: failed program was:" >&5
 
22553
sed 's/^/| /' conftest.$ac_ext >&5
 
22554
 
 
22555
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
22556
fi
 
22557
 
 
22558
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22559
done
 
22560
case $ac_lo in
 
22561
?*) result=$ac_lo;;
 
22562
'') result=unknown ;;
 
22563
esac
 
22564
else
 
22565
  cat >conftest.$ac_ext <<_ACEOF
 
22566
/* confdefs.h.  */
 
22567
_ACEOF
 
22568
cat confdefs.h >>conftest.$ac_ext
 
22569
cat >>conftest.$ac_ext <<_ACEOF
 
22570
/* end confdefs.h.  */
 
22571
 
 
22572
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
22573
     included before <wchar.h>.  */
 
22574
  #include <stddef.h>
 
22575
  #include <signal.h>
 
22576
  #if HAVE_WCHAR_H
 
22577
  # include <stdio.h>
 
22578
  # include <time.h>
 
22579
  # include <wchar.h>
 
22580
  #endif
 
22581
 
 
22582
#include <limits.h>
 
22583
static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
 
22584
static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
 
22585
#include <stdio.h>
 
22586
#include <stdlib.h>
 
22587
int
 
22588
main ()
 
22589
{
 
22590
 
 
22591
  FILE *f = fopen ("conftest.val", "w");
 
22592
  if (! f)
 
22593
    return 1;
 
22594
  if ((sizeof ($gltype) * CHAR_BIT) < 0)
 
22595
    {
 
22596
      long int i = longval ();
 
22597
      if (i != (sizeof ($gltype) * CHAR_BIT))
 
22598
        return 1;
 
22599
      fprintf (f, "%ld", i);
 
22600
    }
 
22601
  else
 
22602
    {
 
22603
      unsigned long int i = ulongval ();
 
22604
      if (i != (sizeof ($gltype) * CHAR_BIT))
 
22605
        return 1;
 
22606
      fprintf (f, "%lu", i);
 
22607
    }
 
22608
  /* Do not output a trailing newline, as this causes \r\n confusion
 
22609
     on some platforms.  */
 
22610
  return ferror (f) || fclose (f) != 0;
 
22611
 
 
22612
  ;
 
22613
  return 0;
 
22614
}
 
22615
_ACEOF
 
22616
rm -f conftest$ac_exeext
 
22617
if { (ac_try="$ac_link"
 
22618
case "(($ac_try" in
 
22619
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22620
  *) ac_try_echo=$ac_try;;
 
22621
esac
 
22622
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22623
$as_echo "$ac_try_echo") >&5
 
22624
  (eval "$ac_link") 2>&5
 
22625
  ac_status=$?
 
22626
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22627
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
22628
  { (case "(($ac_try" in
 
22629
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22630
  *) ac_try_echo=$ac_try;;
 
22631
esac
 
22632
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22633
$as_echo "$ac_try_echo") >&5
 
22634
  (eval "$ac_try") 2>&5
 
22635
  ac_status=$?
 
22636
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22637
  (exit $ac_status); }; }; then
 
22638
  result=`cat conftest.val`
 
22639
else
 
22640
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
22641
$as_echo "$as_me: failed program was:" >&5
 
22642
sed 's/^/| /' conftest.$ac_ext >&5
 
22643
 
 
22644
( exit $ac_status )
 
22645
result=unknown
 
22646
fi
 
22647
rm -rf conftest.dSYM
 
22648
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
22649
fi
 
22650
rm -f conftest.val
 
22651
       eval gl_cv_bitsizeof_${gltype}=\$result
 
22652
 
 
22653
fi
 
22654
ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
 
22655
                 $as_echo "$as_val"'`
 
22656
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
22657
$as_echo "$ac_res" >&6; }
 
22658
    eval result=\$gl_cv_bitsizeof_${gltype}
 
22659
    if test $result = unknown; then
 
22660
                                                result=0
 
22661
    fi
 
22662
    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
 
22663
    cat >>confdefs.h <<_ACEOF
 
22664
#define BITSIZEOF_${GLTYPE} $result
 
22665
_ACEOF
 
22666
 
 
22667
    eval BITSIZEOF_${GLTYPE}=\$result
 
22668
  done
 
22669
 
 
22670
 
 
22671
  fi
 
22672
 
 
22673
 
 
22674
 
 
22675
 
 
22676
 
 
22677
  for gltype in sig_atomic_t wchar_t wint_t ; do
 
22678
    { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
 
22679
$as_echo_n "checking for bit size of $gltype... " >&6; }
 
22680
if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
 
22681
  $as_echo_n "(cached) " >&6
 
22682
else
 
22683
  if test "$cross_compiling" = yes; then
 
22684
  # Depending upon the size, compute the lo and hi bounds.
 
22685
cat >conftest.$ac_ext <<_ACEOF
 
22686
/* confdefs.h.  */
 
22687
_ACEOF
 
22688
cat confdefs.h >>conftest.$ac_ext
 
22689
cat >>conftest.$ac_ext <<_ACEOF
 
22690
/* end confdefs.h.  */
 
22691
 
 
22692
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
22693
     included before <wchar.h>.  */
 
22694
  #include <stddef.h>
 
22695
  #include <signal.h>
 
22696
  #if HAVE_WCHAR_H
 
22697
  # include <stdio.h>
 
22698
  # include <time.h>
 
22699
  # include <wchar.h>
 
22700
  #endif
 
22701
 
 
22702
#include <limits.h>
 
22703
int
 
22704
main ()
 
22705
{
 
22706
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
 
22707
test_array [0] = 0
 
22708
 
 
22709
  ;
 
22710
  return 0;
 
22711
}
 
22712
_ACEOF
 
22713
rm -f conftest.$ac_objext
 
22714
if { (ac_try="$ac_compile"
 
22715
case "(($ac_try" in
 
22716
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22717
  *) ac_try_echo=$ac_try;;
 
22718
esac
 
22719
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22720
$as_echo "$ac_try_echo") >&5
 
22721
  (eval "$ac_compile") 2>conftest.er1
 
22722
  ac_status=$?
 
22723
  grep -v '^ *+' conftest.er1 >conftest.err
 
22724
  rm -f conftest.er1
 
22725
  cat conftest.err >&5
 
22726
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22727
  (exit $ac_status); } && {
 
22728
         test -z "$ac_c_werror_flag" ||
 
22729
         test ! -s conftest.err
 
22730
       } && test -s conftest.$ac_objext; then
 
22731
  ac_lo=0 ac_mid=0
 
22732
  while :; do
 
22733
    cat >conftest.$ac_ext <<_ACEOF
 
22734
/* confdefs.h.  */
 
22735
_ACEOF
 
22736
cat confdefs.h >>conftest.$ac_ext
 
22737
cat >>conftest.$ac_ext <<_ACEOF
 
22738
/* end confdefs.h.  */
 
22739
 
 
22740
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
22741
     included before <wchar.h>.  */
 
22742
  #include <stddef.h>
 
22743
  #include <signal.h>
 
22744
  #if HAVE_WCHAR_H
 
22745
  # include <stdio.h>
 
22746
  # include <time.h>
 
22747
  # include <wchar.h>
 
22748
  #endif
 
22749
 
 
22750
#include <limits.h>
 
22751
int
 
22752
main ()
 
22753
{
 
22754
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
 
22755
test_array [0] = 0
 
22756
 
 
22757
  ;
 
22758
  return 0;
 
22759
}
 
22760
_ACEOF
 
22761
rm -f conftest.$ac_objext
 
22762
if { (ac_try="$ac_compile"
 
22763
case "(($ac_try" in
 
22764
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22765
  *) ac_try_echo=$ac_try;;
 
22766
esac
 
22767
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22768
$as_echo "$ac_try_echo") >&5
 
22769
  (eval "$ac_compile") 2>conftest.er1
 
22770
  ac_status=$?
 
22771
  grep -v '^ *+' conftest.er1 >conftest.err
 
22772
  rm -f conftest.er1
 
22773
  cat conftest.err >&5
 
22774
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22775
  (exit $ac_status); } && {
 
22776
         test -z "$ac_c_werror_flag" ||
 
22777
         test ! -s conftest.err
 
22778
       } && test -s conftest.$ac_objext; then
 
22779
  ac_hi=$ac_mid; break
 
22780
else
 
22781
  $as_echo "$as_me: failed program was:" >&5
 
22782
sed 's/^/| /' conftest.$ac_ext >&5
 
22783
 
 
22784
        ac_lo=`expr $ac_mid + 1`
 
22785
                        if test $ac_lo -le $ac_mid; then
 
22786
                          ac_lo= ac_hi=
 
22787
                          break
 
22788
                        fi
 
22789
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
22790
fi
 
22791
 
 
22792
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22793
  done
 
22794
else
 
22795
  $as_echo "$as_me: failed program was:" >&5
 
22796
sed 's/^/| /' conftest.$ac_ext >&5
 
22797
 
 
22798
        cat >conftest.$ac_ext <<_ACEOF
 
22799
/* confdefs.h.  */
 
22800
_ACEOF
 
22801
cat confdefs.h >>conftest.$ac_ext
 
22802
cat >>conftest.$ac_ext <<_ACEOF
 
22803
/* end confdefs.h.  */
 
22804
 
 
22805
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
22806
     included before <wchar.h>.  */
 
22807
  #include <stddef.h>
 
22808
  #include <signal.h>
 
22809
  #if HAVE_WCHAR_H
 
22810
  # include <stdio.h>
 
22811
  # include <time.h>
 
22812
  # include <wchar.h>
 
22813
  #endif
 
22814
 
 
22815
#include <limits.h>
 
22816
int
 
22817
main ()
 
22818
{
 
22819
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
 
22820
test_array [0] = 0
 
22821
 
 
22822
  ;
 
22823
  return 0;
 
22824
}
 
22825
_ACEOF
 
22826
rm -f conftest.$ac_objext
 
22827
if { (ac_try="$ac_compile"
 
22828
case "(($ac_try" in
 
22829
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22830
  *) ac_try_echo=$ac_try;;
 
22831
esac
 
22832
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22833
$as_echo "$ac_try_echo") >&5
 
22834
  (eval "$ac_compile") 2>conftest.er1
 
22835
  ac_status=$?
 
22836
  grep -v '^ *+' conftest.er1 >conftest.err
 
22837
  rm -f conftest.er1
 
22838
  cat conftest.err >&5
 
22839
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22840
  (exit $ac_status); } && {
 
22841
         test -z "$ac_c_werror_flag" ||
 
22842
         test ! -s conftest.err
 
22843
       } && test -s conftest.$ac_objext; then
 
22844
  ac_hi=-1 ac_mid=-1
 
22845
  while :; do
 
22846
    cat >conftest.$ac_ext <<_ACEOF
 
22847
/* confdefs.h.  */
 
22848
_ACEOF
 
22849
cat confdefs.h >>conftest.$ac_ext
 
22850
cat >>conftest.$ac_ext <<_ACEOF
 
22851
/* end confdefs.h.  */
 
22852
 
 
22853
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
22854
     included before <wchar.h>.  */
 
22855
  #include <stddef.h>
 
22856
  #include <signal.h>
 
22857
  #if HAVE_WCHAR_H
 
22858
  # include <stdio.h>
 
22859
  # include <time.h>
 
22860
  # include <wchar.h>
 
22861
  #endif
 
22862
 
 
22863
#include <limits.h>
 
22864
int
 
22865
main ()
 
22866
{
 
22867
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
 
22868
test_array [0] = 0
 
22869
 
 
22870
  ;
 
22871
  return 0;
 
22872
}
 
22873
_ACEOF
 
22874
rm -f conftest.$ac_objext
 
22875
if { (ac_try="$ac_compile"
 
22876
case "(($ac_try" in
 
22877
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22878
  *) ac_try_echo=$ac_try;;
 
22879
esac
 
22880
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22881
$as_echo "$ac_try_echo") >&5
 
22882
  (eval "$ac_compile") 2>conftest.er1
 
22883
  ac_status=$?
 
22884
  grep -v '^ *+' conftest.er1 >conftest.err
 
22885
  rm -f conftest.er1
 
22886
  cat conftest.err >&5
 
22887
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22888
  (exit $ac_status); } && {
 
22889
         test -z "$ac_c_werror_flag" ||
 
22890
         test ! -s conftest.err
 
22891
       } && test -s conftest.$ac_objext; then
 
22892
  ac_lo=$ac_mid; break
 
22893
else
 
22894
  $as_echo "$as_me: failed program was:" >&5
 
22895
sed 's/^/| /' conftest.$ac_ext >&5
 
22896
 
 
22897
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
22898
                        if test $ac_mid -le $ac_hi; then
 
22899
                          ac_lo= ac_hi=
 
22900
                          break
 
22901
                        fi
 
22902
                        ac_mid=`expr 2 '*' $ac_mid`
 
22903
fi
 
22904
 
 
22905
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22906
  done
 
22907
else
 
22908
  $as_echo "$as_me: failed program was:" >&5
 
22909
sed 's/^/| /' conftest.$ac_ext >&5
 
22910
 
 
22911
        ac_lo= ac_hi=
 
22912
fi
 
22913
 
 
22914
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22915
fi
 
22916
 
 
22917
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22918
# Binary search between lo and hi bounds.
 
22919
while test "x$ac_lo" != "x$ac_hi"; do
 
22920
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
22921
  cat >conftest.$ac_ext <<_ACEOF
 
22922
/* confdefs.h.  */
 
22923
_ACEOF
 
22924
cat confdefs.h >>conftest.$ac_ext
 
22925
cat >>conftest.$ac_ext <<_ACEOF
 
22926
/* end confdefs.h.  */
 
22927
 
 
22928
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
22929
     included before <wchar.h>.  */
 
22930
  #include <stddef.h>
 
22931
  #include <signal.h>
 
22932
  #if HAVE_WCHAR_H
 
22933
  # include <stdio.h>
 
22934
  # include <time.h>
 
22935
  # include <wchar.h>
 
22936
  #endif
 
22937
 
 
22938
#include <limits.h>
 
22939
int
 
22940
main ()
 
22941
{
 
22942
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
 
22943
test_array [0] = 0
 
22944
 
 
22945
  ;
 
22946
  return 0;
 
22947
}
 
22948
_ACEOF
 
22949
rm -f conftest.$ac_objext
 
22950
if { (ac_try="$ac_compile"
 
22951
case "(($ac_try" in
 
22952
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22953
  *) ac_try_echo=$ac_try;;
 
22954
esac
 
22955
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22956
$as_echo "$ac_try_echo") >&5
 
22957
  (eval "$ac_compile") 2>conftest.er1
 
22958
  ac_status=$?
 
22959
  grep -v '^ *+' conftest.er1 >conftest.err
 
22960
  rm -f conftest.er1
 
22961
  cat conftest.err >&5
 
22962
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22963
  (exit $ac_status); } && {
 
22964
         test -z "$ac_c_werror_flag" ||
 
22965
         test ! -s conftest.err
 
22966
       } && test -s conftest.$ac_objext; then
 
22967
  ac_hi=$ac_mid
 
22968
else
 
22969
  $as_echo "$as_me: failed program was:" >&5
 
22970
sed 's/^/| /' conftest.$ac_ext >&5
 
22971
 
 
22972
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
22973
fi
 
22974
 
 
22975
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22976
done
 
22977
case $ac_lo in
 
22978
?*) result=$ac_lo;;
 
22979
'') result=unknown ;;
 
22980
esac
 
22981
else
 
22982
  cat >conftest.$ac_ext <<_ACEOF
 
22983
/* confdefs.h.  */
 
22984
_ACEOF
 
22985
cat confdefs.h >>conftest.$ac_ext
 
22986
cat >>conftest.$ac_ext <<_ACEOF
 
22987
/* end confdefs.h.  */
 
22988
 
 
22989
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
22990
     included before <wchar.h>.  */
 
22991
  #include <stddef.h>
 
22992
  #include <signal.h>
 
22993
  #if HAVE_WCHAR_H
 
22994
  # include <stdio.h>
 
22995
  # include <time.h>
 
22996
  # include <wchar.h>
 
22997
  #endif
 
22998
 
 
22999
#include <limits.h>
 
23000
static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
 
23001
static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
 
23002
#include <stdio.h>
 
23003
#include <stdlib.h>
 
23004
int
 
23005
main ()
 
23006
{
 
23007
 
 
23008
  FILE *f = fopen ("conftest.val", "w");
 
23009
  if (! f)
 
23010
    return 1;
 
23011
  if ((sizeof ($gltype) * CHAR_BIT) < 0)
 
23012
    {
 
23013
      long int i = longval ();
 
23014
      if (i != (sizeof ($gltype) * CHAR_BIT))
 
23015
        return 1;
 
23016
      fprintf (f, "%ld", i);
 
23017
    }
 
23018
  else
 
23019
    {
 
23020
      unsigned long int i = ulongval ();
 
23021
      if (i != (sizeof ($gltype) * CHAR_BIT))
 
23022
        return 1;
 
23023
      fprintf (f, "%lu", i);
 
23024
    }
 
23025
  /* Do not output a trailing newline, as this causes \r\n confusion
 
23026
     on some platforms.  */
 
23027
  return ferror (f) || fclose (f) != 0;
 
23028
 
 
23029
  ;
 
23030
  return 0;
 
23031
}
 
23032
_ACEOF
 
23033
rm -f conftest$ac_exeext
 
23034
if { (ac_try="$ac_link"
 
23035
case "(($ac_try" in
 
23036
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23037
  *) ac_try_echo=$ac_try;;
 
23038
esac
 
23039
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23040
$as_echo "$ac_try_echo") >&5
 
23041
  (eval "$ac_link") 2>&5
 
23042
  ac_status=$?
 
23043
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23044
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
23045
  { (case "(($ac_try" in
 
23046
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23047
  *) ac_try_echo=$ac_try;;
 
23048
esac
 
23049
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23050
$as_echo "$ac_try_echo") >&5
 
23051
  (eval "$ac_try") 2>&5
 
23052
  ac_status=$?
 
23053
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23054
  (exit $ac_status); }; }; then
 
23055
  result=`cat conftest.val`
 
23056
else
 
23057
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
23058
$as_echo "$as_me: failed program was:" >&5
 
23059
sed 's/^/| /' conftest.$ac_ext >&5
 
23060
 
 
23061
( exit $ac_status )
 
23062
result=unknown
 
23063
fi
 
23064
rm -rf conftest.dSYM
 
23065
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
23066
fi
 
23067
rm -f conftest.val
 
23068
       eval gl_cv_bitsizeof_${gltype}=\$result
 
23069
 
 
23070
fi
 
23071
ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
 
23072
                 $as_echo "$as_val"'`
 
23073
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
23074
$as_echo "$ac_res" >&6; }
 
23075
    eval result=\$gl_cv_bitsizeof_${gltype}
 
23076
    if test $result = unknown; then
 
23077
                                                result=0
 
23078
    fi
 
23079
    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
 
23080
    cat >>confdefs.h <<_ACEOF
 
23081
#define BITSIZEOF_${GLTYPE} $result
 
23082
_ACEOF
 
23083
 
 
23084
    eval BITSIZEOF_${GLTYPE}=\$result
 
23085
  done
 
23086
 
 
23087
 
 
23088
 
 
23089
 
 
23090
 
 
23091
 
 
23092
 
 
23093
  for gltype in sig_atomic_t wchar_t wint_t ; do
 
23094
    { $as_echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
 
23095
$as_echo_n "checking whether $gltype is signed... " >&6; }
 
23096
if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
 
23097
  $as_echo_n "(cached) " >&6
 
23098
else
 
23099
  cat >conftest.$ac_ext <<_ACEOF
 
23100
/* confdefs.h.  */
 
23101
_ACEOF
 
23102
cat confdefs.h >>conftest.$ac_ext
 
23103
cat >>conftest.$ac_ext <<_ACEOF
 
23104
/* end confdefs.h.  */
 
23105
 
 
23106
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
23107
     included before <wchar.h>.  */
 
23108
  #include <stddef.h>
 
23109
  #include <signal.h>
 
23110
  #if HAVE_WCHAR_H
 
23111
  # include <stdio.h>
 
23112
  # include <time.h>
 
23113
  # include <wchar.h>
 
23114
  #endif
 
23115
 
 
23116
            int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
 
23117
int
 
23118
main ()
 
23119
{
 
23120
 
 
23121
  ;
 
23122
  return 0;
 
23123
}
 
23124
_ACEOF
 
23125
rm -f conftest.$ac_objext
 
23126
if { (ac_try="$ac_compile"
 
23127
case "(($ac_try" in
 
23128
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23129
  *) ac_try_echo=$ac_try;;
 
23130
esac
 
23131
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23132
$as_echo "$ac_try_echo") >&5
 
23133
  (eval "$ac_compile") 2>conftest.er1
 
23134
  ac_status=$?
 
23135
  grep -v '^ *+' conftest.er1 >conftest.err
 
23136
  rm -f conftest.er1
 
23137
  cat conftest.err >&5
 
23138
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23139
  (exit $ac_status); } && {
 
23140
         test -z "$ac_c_werror_flag" ||
 
23141
         test ! -s conftest.err
 
23142
       } && test -s conftest.$ac_objext; then
 
23143
  result=yes
 
23144
else
 
23145
  $as_echo "$as_me: failed program was:" >&5
 
23146
sed 's/^/| /' conftest.$ac_ext >&5
 
23147
 
 
23148
        result=no
 
23149
fi
 
23150
 
 
23151
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23152
       eval gl_cv_type_${gltype}_signed=\$result
 
23153
 
 
23154
fi
 
23155
ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_signed'}
 
23156
                 $as_echo "$as_val"'`
 
23157
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
23158
$as_echo "$ac_res" >&6; }
 
23159
    eval result=\$gl_cv_type_${gltype}_signed
 
23160
    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
 
23161
    if test "$result" = yes; then
 
23162
      cat >>confdefs.h <<_ACEOF
 
23163
#define HAVE_SIGNED_${GLTYPE} 1
 
23164
_ACEOF
 
23165
 
 
23166
      eval HAVE_SIGNED_${GLTYPE}=1
 
23167
    else
 
23168
      eval HAVE_SIGNED_${GLTYPE}=0
 
23169
    fi
 
23170
  done
 
23171
 
 
23172
 
 
23173
  gl_cv_type_ptrdiff_t_signed=yes
 
23174
  gl_cv_type_size_t_signed=no
 
23175
  if test $APPLE_UNIVERSAL_BUILD = 0; then
 
23176
 
 
23177
 
 
23178
 
 
23179
 
 
23180
  for gltype in ptrdiff_t size_t ; do
 
23181
    { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
 
23182
$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
 
23183
if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
 
23184
  $as_echo_n "(cached) " >&6
 
23185
else
 
23186
  eval gl_cv_type_${gltype}_suffix=no
 
23187
       eval result=\$gl_cv_type_${gltype}_signed
 
23188
       if test "$result" = yes; then
 
23189
         glsufu=
 
23190
       else
 
23191
         glsufu=u
 
23192
       fi
 
23193
       for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
 
23194
         case $glsuf in
 
23195
           '')  gltype1='int';;
 
23196
           l)   gltype1='long int';;
 
23197
           ll)  gltype1='long long int';;
 
23198
           i64) gltype1='__int64';;
 
23199
           u)   gltype1='unsigned int';;
 
23200
           ul)  gltype1='unsigned long int';;
 
23201
           ull) gltype1='unsigned long long int';;
 
23202
           ui64)gltype1='unsigned __int64';;
 
23203
         esac
 
23204
         cat >conftest.$ac_ext <<_ACEOF
 
23205
/* confdefs.h.  */
 
23206
_ACEOF
 
23207
cat confdefs.h >>conftest.$ac_ext
 
23208
cat >>conftest.$ac_ext <<_ACEOF
 
23209
/* end confdefs.h.  */
 
23210
 
 
23211
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
23212
     included before <wchar.h>.  */
 
23213
  #include <stddef.h>
 
23214
  #include <signal.h>
 
23215
  #if HAVE_WCHAR_H
 
23216
  # include <stdio.h>
 
23217
  # include <time.h>
 
23218
  # include <wchar.h>
 
23219
  #endif
 
23220
 
 
23221
              extern $gltype foo;
 
23222
              extern $gltype1 foo;
 
23223
int
 
23224
main ()
 
23225
{
 
23226
 
 
23227
  ;
 
23228
  return 0;
 
23229
}
 
23230
_ACEOF
 
23231
rm -f conftest.$ac_objext
 
23232
if { (ac_try="$ac_compile"
 
23233
case "(($ac_try" in
 
23234
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23235
  *) ac_try_echo=$ac_try;;
 
23236
esac
 
23237
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23238
$as_echo "$ac_try_echo") >&5
 
23239
  (eval "$ac_compile") 2>conftest.er1
 
23240
  ac_status=$?
 
23241
  grep -v '^ *+' conftest.er1 >conftest.err
 
23242
  rm -f conftest.er1
 
23243
  cat conftest.err >&5
 
23244
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23245
  (exit $ac_status); } && {
 
23246
         test -z "$ac_c_werror_flag" ||
 
23247
         test ! -s conftest.err
 
23248
       } && test -s conftest.$ac_objext; then
 
23249
  eval gl_cv_type_${gltype}_suffix=\$glsuf
 
23250
else
 
23251
  $as_echo "$as_me: failed program was:" >&5
 
23252
sed 's/^/| /' conftest.$ac_ext >&5
 
23253
 
 
23254
 
 
23255
fi
 
23256
 
 
23257
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23258
         eval result=\$gl_cv_type_${gltype}_suffix
 
23259
         test "$result" != no && break
 
23260
       done
 
23261
fi
 
23262
ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
 
23263
                 $as_echo "$as_val"'`
 
23264
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
23265
$as_echo "$ac_res" >&6; }
 
23266
    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
 
23267
    eval result=\$gl_cv_type_${gltype}_suffix
 
23268
    test "$result" = no && result=
 
23269
    eval ${GLTYPE}_SUFFIX=\$result
 
23270
    cat >>confdefs.h <<_ACEOF
 
23271
#define ${GLTYPE}_SUFFIX $result
 
23272
_ACEOF
 
23273
 
 
23274
  done
 
23275
 
 
23276
 
 
23277
  fi
 
23278
 
 
23279
 
 
23280
 
 
23281
 
 
23282
 
 
23283
  for gltype in sig_atomic_t wchar_t wint_t ; do
 
23284
    { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
 
23285
$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
 
23286
if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
 
23287
  $as_echo_n "(cached) " >&6
 
23288
else
 
23289
  eval gl_cv_type_${gltype}_suffix=no
 
23290
       eval result=\$gl_cv_type_${gltype}_signed
 
23291
       if test "$result" = yes; then
 
23292
         glsufu=
 
23293
       else
 
23294
         glsufu=u
 
23295
       fi
 
23296
       for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
 
23297
         case $glsuf in
 
23298
           '')  gltype1='int';;
 
23299
           l)   gltype1='long int';;
 
23300
           ll)  gltype1='long long int';;
 
23301
           i64) gltype1='__int64';;
 
23302
           u)   gltype1='unsigned int';;
 
23303
           ul)  gltype1='unsigned long int';;
 
23304
           ull) gltype1='unsigned long long int';;
 
23305
           ui64)gltype1='unsigned __int64';;
 
23306
         esac
 
23307
         cat >conftest.$ac_ext <<_ACEOF
 
23308
/* confdefs.h.  */
 
23309
_ACEOF
 
23310
cat confdefs.h >>conftest.$ac_ext
 
23311
cat >>conftest.$ac_ext <<_ACEOF
 
23312
/* end confdefs.h.  */
 
23313
 
 
23314
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
23315
     included before <wchar.h>.  */
 
23316
  #include <stddef.h>
 
23317
  #include <signal.h>
 
23318
  #if HAVE_WCHAR_H
 
23319
  # include <stdio.h>
 
23320
  # include <time.h>
 
23321
  # include <wchar.h>
 
23322
  #endif
 
23323
 
 
23324
              extern $gltype foo;
 
23325
              extern $gltype1 foo;
 
23326
int
 
23327
main ()
 
23328
{
 
23329
 
 
23330
  ;
 
23331
  return 0;
 
23332
}
 
23333
_ACEOF
 
23334
rm -f conftest.$ac_objext
 
23335
if { (ac_try="$ac_compile"
 
23336
case "(($ac_try" in
 
23337
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23338
  *) ac_try_echo=$ac_try;;
 
23339
esac
 
23340
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23341
$as_echo "$ac_try_echo") >&5
 
23342
  (eval "$ac_compile") 2>conftest.er1
 
23343
  ac_status=$?
 
23344
  grep -v '^ *+' conftest.er1 >conftest.err
 
23345
  rm -f conftest.er1
 
23346
  cat conftest.err >&5
 
23347
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23348
  (exit $ac_status); } && {
 
23349
         test -z "$ac_c_werror_flag" ||
 
23350
         test ! -s conftest.err
 
23351
       } && test -s conftest.$ac_objext; then
 
23352
  eval gl_cv_type_${gltype}_suffix=\$glsuf
 
23353
else
 
23354
  $as_echo "$as_me: failed program was:" >&5
 
23355
sed 's/^/| /' conftest.$ac_ext >&5
 
23356
 
 
23357
 
 
23358
fi
 
23359
 
 
23360
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23361
         eval result=\$gl_cv_type_${gltype}_suffix
 
23362
         test "$result" != no && break
 
23363
       done
 
23364
fi
 
23365
ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
 
23366
                 $as_echo "$as_val"'`
 
23367
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
23368
$as_echo "$ac_res" >&6; }
 
23369
    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
 
23370
    eval result=\$gl_cv_type_${gltype}_suffix
 
23371
    test "$result" = no && result=
 
23372
    eval ${GLTYPE}_SUFFIX=\$result
 
23373
    cat >>confdefs.h <<_ACEOF
 
23374
#define ${GLTYPE}_SUFFIX $result
 
23375
_ACEOF
 
23376
 
 
23377
  done
 
23378
 
 
23379
 
 
23380
 
 
23381
    STDINT_H=stdint.h
 
23382
  fi
 
23383
 
 
23384
 
 
23385
 
 
23386
 
 
23387
 
 
23388
 
 
23389
 
 
23390
 
 
23391
 
 
23392
 
 
23393
 
 
23394
 
 
23395
 
 
23396
 
 
23397
 
 
23398
     if test $gl_cv_have_include_next = yes; then
 
23399
       gl_cv_next_stdio_h='<'stdio.h'>'
 
23400
     else
 
23401
       { $as_echo "$as_me:$LINENO: checking absolute name of <stdio.h>" >&5
 
23402
$as_echo_n "checking absolute name of <stdio.h>... " >&6; }
 
23403
if test "${gl_cv_next_stdio_h+set}" = set; then
 
23404
  $as_echo_n "(cached) " >&6
 
23405
else
 
23406
 
 
23407
          if test $ac_cv_header_stdio_h = yes; then
 
23408
            cat >conftest.$ac_ext <<_ACEOF
 
23409
/* confdefs.h.  */
 
23410
_ACEOF
 
23411
cat confdefs.h >>conftest.$ac_ext
 
23412
cat >>conftest.$ac_ext <<_ACEOF
 
23413
/* end confdefs.h.  */
 
23414
#include <stdio.h>
 
23415
 
 
23416
_ACEOF
 
23417
                                                                    case "$host_os" in
 
23418
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
23419
              *)    gl_absname_cpp="$ac_cpp" ;;
 
23420
            esac
 
23421
                                    gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
23422
               sed -n '\#/stdio.h#{
 
23423
                 s#.*"\(.*/stdio.h\)".*#\1#
 
23424
                 s#^/[^/]#//&#
 
23425
                 p
 
23426
                 q
 
23427
               }'`'"'
 
23428
          else
 
23429
            gl_cv_next_stdio_h='<'stdio.h'>'
 
23430
          fi
 
23431
 
 
23432
fi
 
23433
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdio_h" >&5
 
23434
$as_echo "$gl_cv_next_stdio_h" >&6; }
 
23435
     fi
 
23436
     NEXT_STDIO_H=$gl_cv_next_stdio_h
 
23437
 
 
23438
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
23439
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
23440
       gl_next_as_first_directive='<'stdio.h'>'
 
23441
     else
 
23442
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
23443
       gl_next_as_first_directive=$gl_cv_next_stdio_h
 
23444
     fi
 
23445
     NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
 
23446
 
 
23447
 
 
23448
 
 
23449
      GNULIB_FPRINTF=1
 
23450
  GNULIB_PRINTF=1
 
23451
  GNULIB_VFPRINTF=1
 
23452
  GNULIB_VPRINTF=1
 
23453
  GNULIB_FPUTC=1
 
23454
  GNULIB_PUTC=1
 
23455
  GNULIB_PUTCHAR=1
 
23456
  GNULIB_FPUTS=1
 
23457
  GNULIB_PUTS=1
 
23458
  GNULIB_FWRITE=1
 
23459
 
 
23460
 
 
23461
 
 
23462
 
 
23463
 
 
23464
 
 
23465
 
 
23466
 
 
23467
 
 
23468
 
 
23469
 
 
23470
 
 
23471
 
 
23472
 
 
23473
 
 
23474
     if test $gl_cv_have_include_next = yes; then
 
23475
       gl_cv_next_stdlib_h='<'stdlib.h'>'
 
23476
     else
 
23477
       { $as_echo "$as_me:$LINENO: checking absolute name of <stdlib.h>" >&5
 
23478
$as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
 
23479
if test "${gl_cv_next_stdlib_h+set}" = set; then
 
23480
  $as_echo_n "(cached) " >&6
 
23481
else
 
23482
 
 
23483
          if test $ac_cv_header_stdlib_h = yes; then
 
23484
            cat >conftest.$ac_ext <<_ACEOF
 
23485
/* confdefs.h.  */
 
23486
_ACEOF
 
23487
cat confdefs.h >>conftest.$ac_ext
 
23488
cat >>conftest.$ac_ext <<_ACEOF
 
23489
/* end confdefs.h.  */
 
23490
#include <stdlib.h>
 
23491
 
 
23492
_ACEOF
 
23493
                                                                    case "$host_os" in
 
23494
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
23495
              *)    gl_absname_cpp="$ac_cpp" ;;
 
23496
            esac
 
23497
                                    gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
23498
               sed -n '\#/stdlib.h#{
 
23499
                 s#.*"\(.*/stdlib.h\)".*#\1#
 
23500
                 s#^/[^/]#//&#
 
23501
                 p
 
23502
                 q
 
23503
               }'`'"'
 
23504
          else
 
23505
            gl_cv_next_stdlib_h='<'stdlib.h'>'
 
23506
          fi
 
23507
 
 
23508
fi
 
23509
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdlib_h" >&5
 
23510
$as_echo "$gl_cv_next_stdlib_h" >&6; }
 
23511
     fi
 
23512
     NEXT_STDLIB_H=$gl_cv_next_stdlib_h
 
23513
 
 
23514
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
23515
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
23516
       gl_next_as_first_directive='<'stdlib.h'>'
 
23517
     else
 
23518
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
23519
       gl_next_as_first_directive=$gl_cv_next_stdlib_h
 
23520
     fi
 
23521
     NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
 
23522
 
 
23523
 
 
23524
 
 
23525
 
 
23526
for ac_header in random.h
 
23527
do
 
23528
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
23529
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
23530
$as_echo_n "checking for $ac_header... " >&6; }
 
23531
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
23532
  $as_echo_n "(cached) " >&6
 
23533
else
 
23534
  cat >conftest.$ac_ext <<_ACEOF
 
23535
/* confdefs.h.  */
 
23536
_ACEOF
 
23537
cat confdefs.h >>conftest.$ac_ext
 
23538
cat >>conftest.$ac_ext <<_ACEOF
 
23539
/* end confdefs.h.  */
 
23540
$ac_includes_default
 
23541
 
 
23542
#include <$ac_header>
 
23543
_ACEOF
 
23544
rm -f conftest.$ac_objext
 
23545
if { (ac_try="$ac_compile"
 
23546
case "(($ac_try" in
 
23547
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23548
  *) ac_try_echo=$ac_try;;
 
23549
esac
 
23550
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23551
$as_echo "$ac_try_echo") >&5
 
23552
  (eval "$ac_compile") 2>conftest.er1
 
23553
  ac_status=$?
 
23554
  grep -v '^ *+' conftest.er1 >conftest.err
 
23555
  rm -f conftest.er1
 
23556
  cat conftest.err >&5
 
23557
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23558
  (exit $ac_status); } && {
 
23559
         test -z "$ac_c_werror_flag" ||
 
23560
         test ! -s conftest.err
 
23561
       } && test -s conftest.$ac_objext; then
 
23562
  eval "$as_ac_Header=yes"
 
23563
else
 
23564
  $as_echo "$as_me: failed program was:" >&5
 
23565
sed 's/^/| /' conftest.$ac_ext >&5
 
23566
 
 
23567
        eval "$as_ac_Header=no"
 
23568
fi
 
23569
 
 
23570
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23571
fi
 
23572
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
23573
                 $as_echo "$as_val"'`
 
23574
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
23575
$as_echo "$ac_res" >&6; }
 
23576
as_val=`eval 'as_val=${'$as_ac_Header'}
 
23577
                 $as_echo "$as_val"'`
 
23578
   if test "x$as_val" = x""yes; then
 
23579
  cat >>confdefs.h <<_ACEOF
 
23580
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
23581
_ACEOF
 
23582
 
 
23583
fi
 
23584
 
 
23585
done
 
23586
 
 
23587
  if test $ac_cv_header_random_h = yes; then
 
23588
    HAVE_RANDOM_H=1
 
23589
  else
 
23590
    HAVE_RANDOM_H=0
 
23591
  fi
 
23592
 
 
23593
  { $as_echo "$as_me:$LINENO: checking for struct random_data" >&5
 
23594
$as_echo_n "checking for struct random_data... " >&6; }
 
23595
if test "${ac_cv_type_struct_random_data+set}" = set; then
 
23596
  $as_echo_n "(cached) " >&6
 
23597
else
 
23598
  ac_cv_type_struct_random_data=no
 
23599
cat >conftest.$ac_ext <<_ACEOF
 
23600
/* confdefs.h.  */
 
23601
_ACEOF
 
23602
cat confdefs.h >>conftest.$ac_ext
 
23603
cat >>conftest.$ac_ext <<_ACEOF
 
23604
/* end confdefs.h.  */
 
23605
#include <stdlib.h>
 
23606
      #if HAVE_RANDOM_H
 
23607
      # include <random.h>
 
23608
      #endif
 
23609
 
 
23610
 
 
23611
int
 
23612
main ()
 
23613
{
 
23614
if (sizeof (struct random_data))
 
23615
       return 0;
 
23616
  ;
 
23617
  return 0;
 
23618
}
 
23619
_ACEOF
 
23620
rm -f conftest.$ac_objext
 
23621
if { (ac_try="$ac_compile"
 
23622
case "(($ac_try" in
 
23623
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23624
  *) ac_try_echo=$ac_try;;
 
23625
esac
 
23626
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23627
$as_echo "$ac_try_echo") >&5
 
23628
  (eval "$ac_compile") 2>conftest.er1
 
23629
  ac_status=$?
 
23630
  grep -v '^ *+' conftest.er1 >conftest.err
 
23631
  rm -f conftest.er1
 
23632
  cat conftest.err >&5
 
23633
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23634
  (exit $ac_status); } && {
 
23635
         test -z "$ac_c_werror_flag" ||
 
23636
         test ! -s conftest.err
 
23637
       } && test -s conftest.$ac_objext; then
 
23638
  cat >conftest.$ac_ext <<_ACEOF
 
23639
/* confdefs.h.  */
 
23640
_ACEOF
 
23641
cat confdefs.h >>conftest.$ac_ext
 
23642
cat >>conftest.$ac_ext <<_ACEOF
 
23643
/* end confdefs.h.  */
 
23644
#include <stdlib.h>
 
23645
      #if HAVE_RANDOM_H
 
23646
      # include <random.h>
 
23647
      #endif
 
23648
 
 
23649
 
 
23650
int
 
23651
main ()
 
23652
{
 
23653
if (sizeof ((struct random_data)))
 
23654
          return 0;
 
23655
  ;
 
23656
  return 0;
 
23657
}
 
23658
_ACEOF
 
23659
rm -f conftest.$ac_objext
 
23660
if { (ac_try="$ac_compile"
 
23661
case "(($ac_try" in
 
23662
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23663
  *) ac_try_echo=$ac_try;;
 
23664
esac
 
23665
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23666
$as_echo "$ac_try_echo") >&5
 
23667
  (eval "$ac_compile") 2>conftest.er1
 
23668
  ac_status=$?
 
23669
  grep -v '^ *+' conftest.er1 >conftest.err
 
23670
  rm -f conftest.er1
 
23671
  cat conftest.err >&5
 
23672
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23673
  (exit $ac_status); } && {
 
23674
         test -z "$ac_c_werror_flag" ||
 
23675
         test ! -s conftest.err
 
23676
       } && test -s conftest.$ac_objext; then
 
23677
  :
 
23678
else
 
23679
  $as_echo "$as_me: failed program was:" >&5
 
23680
sed 's/^/| /' conftest.$ac_ext >&5
 
23681
 
 
23682
        ac_cv_type_struct_random_data=yes
 
23683
fi
 
23684
 
 
23685
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23686
else
 
23687
  $as_echo "$as_me: failed program was:" >&5
 
23688
sed 's/^/| /' conftest.$ac_ext >&5
 
23689
 
 
23690
 
 
23691
fi
 
23692
 
 
23693
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23694
fi
 
23695
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_random_data" >&5
 
23696
$as_echo "$ac_cv_type_struct_random_data" >&6; }
 
23697
if test "x$ac_cv_type_struct_random_data" = x""yes; then
 
23698
 
 
23699
cat >>confdefs.h <<_ACEOF
 
23700
#define HAVE_STRUCT_RANDOM_DATA 1
 
23701
_ACEOF
 
23702
 
 
23703
 
 
23704
else
 
23705
  HAVE_STRUCT_RANDOM_DATA=0
 
23706
fi
 
23707
 
 
23708
 
 
23709
 
 
23710
 
 
23711
 
 
23712
 
 
23713
 
 
23714
 
 
23715
 
 
23716
 
 
23717
 
 
23718
 
 
23719
 
 
23720
 
 
23721
for ac_func in strcasecmp
 
23722
do
 
23723
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
23724
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
23725
$as_echo_n "checking for $ac_func... " >&6; }
 
23726
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
23727
  $as_echo_n "(cached) " >&6
 
23728
else
 
23729
  cat >conftest.$ac_ext <<_ACEOF
 
23730
/* confdefs.h.  */
 
23731
_ACEOF
 
23732
cat confdefs.h >>conftest.$ac_ext
 
23733
cat >>conftest.$ac_ext <<_ACEOF
 
23734
/* end confdefs.h.  */
 
23735
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
23736
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
23737
#define $ac_func innocuous_$ac_func
 
23738
 
 
23739
/* System header to define __stub macros and hopefully few prototypes,
 
23740
    which can conflict with char $ac_func (); below.
 
23741
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
23742
    <limits.h> exists even on freestanding compilers.  */
 
23743
 
 
23744
#ifdef __STDC__
 
23745
# include <limits.h>
 
23746
#else
 
23747
# include <assert.h>
 
23748
#endif
 
23749
 
 
23750
#undef $ac_func
 
23751
 
 
23752
/* Override any GCC internal prototype to avoid an error.
 
23753
   Use char because int might match the return type of a GCC
 
23754
   builtin and then its argument prototype would still apply.  */
 
23755
#ifdef __cplusplus
 
23756
extern "C"
 
23757
#endif
 
23758
char $ac_func ();
 
23759
/* The GNU C library defines this for functions which it implements
 
23760
    to always fail with ENOSYS.  Some functions are actually named
 
23761
    something starting with __ and the normal name is an alias.  */
 
23762
#if defined __stub_$ac_func || defined __stub___$ac_func
 
23763
choke me
 
23764
#endif
 
23765
 
 
23766
int
 
23767
main ()
 
23768
{
 
23769
return $ac_func ();
 
23770
  ;
 
23771
  return 0;
 
23772
}
 
23773
_ACEOF
 
23774
rm -f conftest.$ac_objext conftest$ac_exeext
 
23775
if { (ac_try="$ac_link"
 
23776
case "(($ac_try" in
 
23777
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23778
  *) ac_try_echo=$ac_try;;
 
23779
esac
 
23780
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23781
$as_echo "$ac_try_echo") >&5
 
23782
  (eval "$ac_link") 2>conftest.er1
 
23783
  ac_status=$?
 
23784
  grep -v '^ *+' conftest.er1 >conftest.err
 
23785
  rm -f conftest.er1
 
23786
  cat conftest.err >&5
 
23787
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23788
  (exit $ac_status); } && {
 
23789
         test -z "$ac_c_werror_flag" ||
 
23790
         test ! -s conftest.err
 
23791
       } && test -s conftest$ac_exeext && {
 
23792
         test "$cross_compiling" = yes ||
 
23793
         $as_test_x conftest$ac_exeext
 
23794
       }; then
 
23795
  eval "$as_ac_var=yes"
 
23796
else
 
23797
  $as_echo "$as_me: failed program was:" >&5
 
23798
sed 's/^/| /' conftest.$ac_ext >&5
 
23799
 
 
23800
        eval "$as_ac_var=no"
 
23801
fi
 
23802
 
 
23803
rm -rf conftest.dSYM
 
23804
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23805
      conftest$ac_exeext conftest.$ac_ext
 
23806
fi
 
23807
ac_res=`eval 'as_val=${'$as_ac_var'}
 
23808
                 $as_echo "$as_val"'`
 
23809
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
23810
$as_echo "$ac_res" >&6; }
 
23811
as_val=`eval 'as_val=${'$as_ac_var'}
 
23812
                 $as_echo "$as_val"'`
 
23813
   if test "x$as_val" = x""yes; then
 
23814
  cat >>confdefs.h <<_ACEOF
 
23815
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
23816
_ACEOF
 
23817
 
 
23818
else
 
23819
 
 
23820
    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
 
23821
 
 
23822
fi
 
23823
done
 
23824
 
 
23825
 
 
23826
  if test $ac_cv_func_strcasecmp = no; then
 
23827
    HAVE_STRCASECMP=0
 
23828
 
 
23829
  :
 
23830
 
 
23831
  fi
 
23832
 
 
23833
 
 
23834
 
 
23835
 
 
23836
 
 
23837
 
 
23838
 
 
23839
 
 
23840
 
 
23841
 
 
23842
 
 
23843
 
 
23844
for ac_func in strncasecmp
 
23845
do
 
23846
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
23847
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
23848
$as_echo_n "checking for $ac_func... " >&6; }
 
23849
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
23850
  $as_echo_n "(cached) " >&6
 
23851
else
 
23852
  cat >conftest.$ac_ext <<_ACEOF
 
23853
/* confdefs.h.  */
 
23854
_ACEOF
 
23855
cat confdefs.h >>conftest.$ac_ext
 
23856
cat >>conftest.$ac_ext <<_ACEOF
 
23857
/* end confdefs.h.  */
 
23858
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
23859
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
23860
#define $ac_func innocuous_$ac_func
 
23861
 
 
23862
/* System header to define __stub macros and hopefully few prototypes,
 
23863
    which can conflict with char $ac_func (); below.
 
23864
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
23865
    <limits.h> exists even on freestanding compilers.  */
 
23866
 
 
23867
#ifdef __STDC__
 
23868
# include <limits.h>
 
23869
#else
 
23870
# include <assert.h>
 
23871
#endif
 
23872
 
 
23873
#undef $ac_func
 
23874
 
 
23875
/* Override any GCC internal prototype to avoid an error.
 
23876
   Use char because int might match the return type of a GCC
 
23877
   builtin and then its argument prototype would still apply.  */
 
23878
#ifdef __cplusplus
 
23879
extern "C"
 
23880
#endif
 
23881
char $ac_func ();
 
23882
/* The GNU C library defines this for functions which it implements
 
23883
    to always fail with ENOSYS.  Some functions are actually named
 
23884
    something starting with __ and the normal name is an alias.  */
 
23885
#if defined __stub_$ac_func || defined __stub___$ac_func
 
23886
choke me
 
23887
#endif
 
23888
 
 
23889
int
 
23890
main ()
 
23891
{
 
23892
return $ac_func ();
 
23893
  ;
 
23894
  return 0;
 
23895
}
 
23896
_ACEOF
 
23897
rm -f conftest.$ac_objext conftest$ac_exeext
 
23898
if { (ac_try="$ac_link"
 
23899
case "(($ac_try" in
 
23900
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23901
  *) ac_try_echo=$ac_try;;
 
23902
esac
 
23903
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23904
$as_echo "$ac_try_echo") >&5
 
23905
  (eval "$ac_link") 2>conftest.er1
 
23906
  ac_status=$?
 
23907
  grep -v '^ *+' conftest.er1 >conftest.err
 
23908
  rm -f conftest.er1
 
23909
  cat conftest.err >&5
 
23910
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23911
  (exit $ac_status); } && {
 
23912
         test -z "$ac_c_werror_flag" ||
 
23913
         test ! -s conftest.err
 
23914
       } && test -s conftest$ac_exeext && {
 
23915
         test "$cross_compiling" = yes ||
 
23916
         $as_test_x conftest$ac_exeext
 
23917
       }; then
 
23918
  eval "$as_ac_var=yes"
 
23919
else
 
23920
  $as_echo "$as_me: failed program was:" >&5
 
23921
sed 's/^/| /' conftest.$ac_ext >&5
 
23922
 
 
23923
        eval "$as_ac_var=no"
 
23924
fi
 
23925
 
 
23926
rm -rf conftest.dSYM
 
23927
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23928
      conftest$ac_exeext conftest.$ac_ext
 
23929
fi
 
23930
ac_res=`eval 'as_val=${'$as_ac_var'}
 
23931
                 $as_echo "$as_val"'`
 
23932
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
23933
$as_echo "$ac_res" >&6; }
 
23934
as_val=`eval 'as_val=${'$as_ac_var'}
 
23935
                 $as_echo "$as_val"'`
 
23936
   if test "x$as_val" = x""yes; then
 
23937
  cat >>confdefs.h <<_ACEOF
 
23938
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
23939
_ACEOF
 
23940
 
 
23941
else
 
23942
 
 
23943
    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
 
23944
 
 
23945
fi
 
23946
done
 
23947
 
 
23948
 
 
23949
  if test $ac_cv_func_strncasecmp = no; then
 
23950
 
 
23951
  :
 
23952
 
 
23953
  fi
 
23954
  { $as_echo "$as_me:$LINENO: checking whether strncasecmp is declared" >&5
 
23955
$as_echo_n "checking whether strncasecmp is declared... " >&6; }
 
23956
if test "${ac_cv_have_decl_strncasecmp+set}" = set; then
 
23957
  $as_echo_n "(cached) " >&6
 
23958
else
 
23959
  cat >conftest.$ac_ext <<_ACEOF
 
23960
/* confdefs.h.  */
 
23961
_ACEOF
 
23962
cat confdefs.h >>conftest.$ac_ext
 
23963
cat >>conftest.$ac_ext <<_ACEOF
 
23964
/* end confdefs.h.  */
 
23965
$ac_includes_default
 
23966
int
 
23967
main ()
 
23968
{
 
23969
#ifndef strncasecmp
 
23970
  (void) strncasecmp;
 
23971
#endif
 
23972
 
 
23973
  ;
 
23974
  return 0;
 
23975
}
 
23976
_ACEOF
 
23977
rm -f conftest.$ac_objext
 
23978
if { (ac_try="$ac_compile"
 
23979
case "(($ac_try" in
 
23980
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23981
  *) ac_try_echo=$ac_try;;
 
23982
esac
 
23983
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23984
$as_echo "$ac_try_echo") >&5
 
23985
  (eval "$ac_compile") 2>conftest.er1
 
23986
  ac_status=$?
 
23987
  grep -v '^ *+' conftest.er1 >conftest.err
 
23988
  rm -f conftest.er1
 
23989
  cat conftest.err >&5
 
23990
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23991
  (exit $ac_status); } && {
 
23992
         test -z "$ac_c_werror_flag" ||
 
23993
         test ! -s conftest.err
 
23994
       } && test -s conftest.$ac_objext; then
 
23995
  ac_cv_have_decl_strncasecmp=yes
 
23996
else
 
23997
  $as_echo "$as_me: failed program was:" >&5
 
23998
sed 's/^/| /' conftest.$ac_ext >&5
 
23999
 
 
24000
        ac_cv_have_decl_strncasecmp=no
 
24001
fi
 
24002
 
 
24003
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24004
fi
 
24005
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strncasecmp" >&5
 
24006
$as_echo "$ac_cv_have_decl_strncasecmp" >&6; }
 
24007
if test "x$ac_cv_have_decl_strncasecmp" = x""yes; then
 
24008
 
 
24009
cat >>confdefs.h <<_ACEOF
 
24010
#define HAVE_DECL_STRNCASECMP 1
 
24011
_ACEOF
 
24012
 
 
24013
 
 
24014
else
 
24015
  cat >>confdefs.h <<_ACEOF
 
24016
#define HAVE_DECL_STRNCASECMP 0
 
24017
_ACEOF
 
24018
 
 
24019
 
 
24020
fi
 
24021
 
 
24022
 
 
24023
  if test $ac_cv_have_decl_strncasecmp = no; then
 
24024
    HAVE_DECL_STRNCASECMP=0
 
24025
  fi
 
24026
 
 
24027
 
 
24028
 
 
24029
 
 
24030
  if test $HAVE_STRCASESTR = 1 && test $REPLACE_STRCASESTR = 0; then
 
24031
    { $as_echo "$as_me:$LINENO: checking whether strcasestr works in linear time" >&5
 
24032
$as_echo_n "checking whether strcasestr works in linear time... " >&6; }
 
24033
if test "${gl_cv_func_strcasestr_linear+set}" = set; then
 
24034
  $as_echo_n "(cached) " >&6
 
24035
else
 
24036
  if test "$cross_compiling" = yes; then
 
24037
                 cat >conftest.$ac_ext <<_ACEOF
 
24038
/* confdefs.h.  */
 
24039
_ACEOF
 
24040
cat confdefs.h >>conftest.$ac_ext
 
24041
cat >>conftest.$ac_ext <<_ACEOF
 
24042
/* end confdefs.h.  */
 
24043
 
 
24044
#include <features.h>
 
24045
#ifdef __GNU_LIBRARY__
 
24046
 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)
 
24047
  Lucky user
 
24048
 #endif
 
24049
#endif
 
24050
#ifdef __CYGWIN__
 
24051
 #include <cygwin/version.h>
 
24052
 #if CYGWIN_VERSION_DLL_MAJOR >= 1007
 
24053
  Lucky user
 
24054
 #endif
 
24055
#endif
 
24056
 
 
24057
_ACEOF
 
24058
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
24059
  $EGREP "Lucky user" >/dev/null 2>&1; then
 
24060
  gl_cv_func_strcasestr_linear=yes
 
24061
else
 
24062
  gl_cv_func_strcasestr_linear="guessing no"
 
24063
fi
 
24064
rm -f conftest*
 
24065
 
 
24066
 
 
24067
else
 
24068
  cat >conftest.$ac_ext <<_ACEOF
 
24069
/* confdefs.h.  */
 
24070
_ACEOF
 
24071
cat confdefs.h >>conftest.$ac_ext
 
24072
cat >>conftest.$ac_ext <<_ACEOF
 
24073
/* end confdefs.h.  */
 
24074
 
 
24075
#include <signal.h> /* for signal */
 
24076
#include <string.h> /* for memmem */
 
24077
#include <stdlib.h> /* for malloc */
 
24078
#include <unistd.h> /* for alarm */
 
24079
 
 
24080
int
 
24081
main ()
 
24082
{
 
24083
size_t m = 1000000;
 
24084
    char *haystack = (char *) malloc (2 * m + 2);
 
24085
    char *needle = (char *) malloc (m + 2);
 
24086
    void *result = 0;
 
24087
    /* Failure to compile this test due to missing alarm is okay,
 
24088
       since all such platforms (mingw) also lack strcasestr.  */
 
24089
    signal (SIGALRM, SIG_DFL);
 
24090
    alarm (5);
 
24091
    /* Check for quadratic performance.  */
 
24092
    if (haystack && needle)
 
24093
      {
 
24094
        memset (haystack, 'A', 2 * m);
 
24095
        haystack[2 * m] = 'B';
 
24096
        haystack[2 * m + 1] = 0;
 
24097
        memset (needle, 'A', m);
 
24098
        needle[m] = 'B';
 
24099
        needle[m + 1] = 0;
 
24100
        result = strcasestr (haystack, needle);
 
24101
      }
 
24102
    return !result;
 
24103
  ;
 
24104
  return 0;
 
24105
}
 
24106
_ACEOF
 
24107
rm -f conftest$ac_exeext
 
24108
if { (ac_try="$ac_link"
 
24109
case "(($ac_try" in
 
24110
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24111
  *) ac_try_echo=$ac_try;;
 
24112
esac
 
24113
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
24114
$as_echo "$ac_try_echo") >&5
 
24115
  (eval "$ac_link") 2>&5
 
24116
  ac_status=$?
 
24117
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24118
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
24119
  { (case "(($ac_try" in
 
24120
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24121
  *) ac_try_echo=$ac_try;;
 
24122
esac
 
24123
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
24124
$as_echo "$ac_try_echo") >&5
 
24125
  (eval "$ac_try") 2>&5
 
24126
  ac_status=$?
 
24127
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24128
  (exit $ac_status); }; }; then
 
24129
  gl_cv_func_strcasestr_linear=yes
 
24130
else
 
24131
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
24132
$as_echo "$as_me: failed program was:" >&5
 
24133
sed 's/^/| /' conftest.$ac_ext >&5
 
24134
 
 
24135
( exit $ac_status )
 
24136
gl_cv_func_strcasestr_linear=no
 
24137
fi
 
24138
rm -rf conftest.dSYM
 
24139
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
24140
fi
 
24141
 
 
24142
 
 
24143
 
 
24144
fi
 
24145
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_strcasestr_linear" >&5
 
24146
$as_echo "$gl_cv_func_strcasestr_linear" >&6; }
 
24147
    if test "$gl_cv_func_strcasestr_linear" != yes; then
 
24148
      REPLACE_STRCASESTR=1
 
24149
 
 
24150
 
 
24151
 
 
24152
 
 
24153
 
 
24154
 
 
24155
 
 
24156
 
 
24157
  gl_LIBOBJS="$gl_LIBOBJS strcasestr.$ac_objext"
 
24158
 
 
24159
 
 
24160
  :
 
24161
 
 
24162
    fi
 
24163
  fi
 
24164
 
 
24165
 
 
24166
 
 
24167
 
 
24168
 
 
24169
 
 
24170
 
 
24171
 
 
24172
for ac_func in strcasestr
 
24173
do
 
24174
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
24175
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
24176
$as_echo_n "checking for $ac_func... " >&6; }
 
24177
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
24178
  $as_echo_n "(cached) " >&6
 
24179
else
 
24180
  cat >conftest.$ac_ext <<_ACEOF
 
24181
/* confdefs.h.  */
 
24182
_ACEOF
 
24183
cat confdefs.h >>conftest.$ac_ext
 
24184
cat >>conftest.$ac_ext <<_ACEOF
 
24185
/* end confdefs.h.  */
 
24186
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
24187
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
24188
#define $ac_func innocuous_$ac_func
 
24189
 
 
24190
/* System header to define __stub macros and hopefully few prototypes,
 
24191
    which can conflict with char $ac_func (); below.
 
24192
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
24193
    <limits.h> exists even on freestanding compilers.  */
 
24194
 
 
24195
#ifdef __STDC__
 
24196
# include <limits.h>
 
24197
#else
 
24198
# include <assert.h>
 
24199
#endif
 
24200
 
 
24201
#undef $ac_func
 
24202
 
 
24203
/* Override any GCC internal prototype to avoid an error.
 
24204
   Use char because int might match the return type of a GCC
 
24205
   builtin and then its argument prototype would still apply.  */
 
24206
#ifdef __cplusplus
 
24207
extern "C"
 
24208
#endif
 
24209
char $ac_func ();
 
24210
/* The GNU C library defines this for functions which it implements
 
24211
    to always fail with ENOSYS.  Some functions are actually named
 
24212
    something starting with __ and the normal name is an alias.  */
 
24213
#if defined __stub_$ac_func || defined __stub___$ac_func
 
24214
choke me
 
24215
#endif
 
24216
 
 
24217
int
 
24218
main ()
 
24219
{
 
24220
return $ac_func ();
 
24221
  ;
 
24222
  return 0;
 
24223
}
 
24224
_ACEOF
 
24225
rm -f conftest.$ac_objext conftest$ac_exeext
 
24226
if { (ac_try="$ac_link"
 
24227
case "(($ac_try" in
 
24228
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24229
  *) ac_try_echo=$ac_try;;
 
24230
esac
 
24231
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
24232
$as_echo "$ac_try_echo") >&5
 
24233
  (eval "$ac_link") 2>conftest.er1
 
24234
  ac_status=$?
 
24235
  grep -v '^ *+' conftest.er1 >conftest.err
 
24236
  rm -f conftest.er1
 
24237
  cat conftest.err >&5
 
24238
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24239
  (exit $ac_status); } && {
 
24240
         test -z "$ac_c_werror_flag" ||
 
24241
         test ! -s conftest.err
 
24242
       } && test -s conftest$ac_exeext && {
 
24243
         test "$cross_compiling" = yes ||
 
24244
         $as_test_x conftest$ac_exeext
 
24245
       }; then
 
24246
  eval "$as_ac_var=yes"
 
24247
else
 
24248
  $as_echo "$as_me: failed program was:" >&5
 
24249
sed 's/^/| /' conftest.$ac_ext >&5
 
24250
 
 
24251
        eval "$as_ac_var=no"
 
24252
fi
 
24253
 
 
24254
rm -rf conftest.dSYM
 
24255
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
24256
      conftest$ac_exeext conftest.$ac_ext
 
24257
fi
 
24258
ac_res=`eval 'as_val=${'$as_ac_var'}
 
24259
                 $as_echo "$as_val"'`
 
24260
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
24261
$as_echo "$ac_res" >&6; }
 
24262
as_val=`eval 'as_val=${'$as_ac_var'}
 
24263
                 $as_echo "$as_val"'`
 
24264
   if test "x$as_val" = x""yes; then
 
24265
  cat >>confdefs.h <<_ACEOF
 
24266
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
24267
_ACEOF
 
24268
 
 
24269
fi
 
24270
done
 
24271
 
 
24272
  if test $ac_cv_func_strcasestr = no; then
 
24273
    HAVE_STRCASESTR=0
 
24274
  else
 
24275
    if test "$gl_cv_func_memchr_works" != yes; then
 
24276
      REPLACE_STRCASESTR=1
 
24277
    fi
 
24278
  fi
 
24279
  if test $HAVE_STRCASESTR = 0 || test $REPLACE_STRCASESTR = 1; then
 
24280
 
 
24281
 
 
24282
 
 
24283
 
 
24284
 
 
24285
 
 
24286
 
 
24287
 
 
24288
  gl_LIBOBJS="$gl_LIBOBJS strcasestr.$ac_objext"
 
24289
 
 
24290
 
 
24291
  :
 
24292
 
 
24293
  fi
 
24294
 
 
24295
 
 
24296
 
 
24297
  GNULIB_STRCASESTR=1
 
24298
 
 
24299
 
 
24300
 
 
24301
  if test $REPLACE_STRERROR = 1; then
 
24302
 
 
24303
 
 
24304
 
 
24305
 
 
24306
 
 
24307
 
 
24308
 
 
24309
 
 
24310
  gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
 
24311
 
 
24312
 
 
24313
cat >>confdefs.h <<_ACEOF
 
24314
#define REPLACE_STRERROR $REPLACE_STRERROR
 
24315
_ACEOF
 
24316
 
 
24317
  fi
 
24318
 
 
24319
 
 
24320
 
 
24321
  GNULIB_STRERROR=1
 
24322
 
 
24323
 
 
24324
 
 
24325
 
 
24326
 
 
24327
 
 
24328
 
 
24329
 
 
24330
 
 
24331
 
 
24332
 
 
24333
 
 
24334
 
 
24335
 
 
24336
 
 
24337
 
 
24338
 
 
24339
 
 
24340
 
 
24341
 
 
24342
 
 
24343
     if test $gl_cv_have_include_next = yes; then
 
24344
       gl_cv_next_unistd_h='<'unistd.h'>'
 
24345
     else
 
24346
       { $as_echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5
 
24347
$as_echo_n "checking absolute name of <unistd.h>... " >&6; }
 
24348
if test "${gl_cv_next_unistd_h+set}" = set; then
 
24349
  $as_echo_n "(cached) " >&6
 
24350
else
 
24351
 
 
24352
          if test $ac_cv_header_unistd_h = yes; then
 
24353
            cat >conftest.$ac_ext <<_ACEOF
 
24354
/* confdefs.h.  */
 
24355
_ACEOF
 
24356
cat confdefs.h >>conftest.$ac_ext
 
24357
cat >>conftest.$ac_ext <<_ACEOF
 
24358
/* end confdefs.h.  */
 
24359
#include <unistd.h>
 
24360
 
 
24361
_ACEOF
 
24362
                                                                    case "$host_os" in
 
24363
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
24364
              *)    gl_absname_cpp="$ac_cpp" ;;
 
24365
            esac
 
24366
                                    gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
24367
               sed -n '\#/unistd.h#{
 
24368
                 s#.*"\(.*/unistd.h\)".*#\1#
 
24369
                 s#^/[^/]#//&#
 
24370
                 p
 
24371
                 q
 
24372
               }'`'"'
 
24373
          else
 
24374
            gl_cv_next_unistd_h='<'unistd.h'>'
 
24375
          fi
 
24376
 
 
24377
fi
 
24378
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_unistd_h" >&5
 
24379
$as_echo "$gl_cv_next_unistd_h" >&6; }
 
24380
     fi
 
24381
     NEXT_UNISTD_H=$gl_cv_next_unistd_h
 
24382
 
 
24383
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
24384
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
24385
       gl_next_as_first_directive='<'unistd.h'>'
 
24386
     else
 
24387
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
24388
       gl_next_as_first_directive=$gl_cv_next_unistd_h
 
24389
     fi
 
24390
     NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
 
24391
 
 
24392
 
 
24393
 
 
24394
 
 
24395
 
 
24396
 
 
24397
 
 
24398
 
 
24399
 
 
24400
 
 
24401
  if test $ac_cv_header_unistd_h = yes; then
 
24402
    HAVE_UNISTD_H=1
 
24403
  else
 
24404
    HAVE_UNISTD_H=0
 
24405
  fi
 
24406
 
 
24407
 
 
24408
 
 
24409
 
 
24410
  { $as_echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
 
24411
$as_echo_n "checking whether <wchar.h> is standalone... " >&6; }
 
24412
if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
 
24413
  $as_echo_n "(cached) " >&6
 
24414
else
 
24415
  cat >conftest.$ac_ext <<_ACEOF
 
24416
#include <wchar.h>
 
24417
wchar_t w;
 
24418
_ACEOF
 
24419
rm -f conftest.$ac_objext
 
24420
if { (ac_try="$ac_compile"
 
24421
case "(($ac_try" in
 
24422
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24423
  *) ac_try_echo=$ac_try;;
 
24424
esac
 
24425
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
24426
$as_echo "$ac_try_echo") >&5
 
24427
  (eval "$ac_compile") 2>conftest.er1
 
24428
  ac_status=$?
 
24429
  grep -v '^ *+' conftest.er1 >conftest.err
 
24430
  rm -f conftest.er1
 
24431
  cat conftest.err >&5
 
24432
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24433
  (exit $ac_status); } && {
 
24434
         test -z "$ac_c_werror_flag" ||
 
24435
         test ! -s conftest.err
 
24436
       } && test -s conftest.$ac_objext; then
 
24437
  gl_cv_header_wchar_h_standalone=yes
 
24438
else
 
24439
  $as_echo "$as_me: failed program was:" >&5
 
24440
sed 's/^/| /' conftest.$ac_ext >&5
 
24441
 
 
24442
        gl_cv_header_wchar_h_standalone=no
 
24443
fi
 
24444
 
 
24445
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24446
fi
 
24447
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
 
24448
$as_echo "$gl_cv_header_wchar_h_standalone" >&6; }
 
24449
 
 
24450
 
 
24451
  if test $gt_cv_c_wint_t = yes; then
 
24452
    HAVE_WINT_T=1
 
24453
  else
 
24454
    HAVE_WINT_T=0
 
24455
  fi
 
24456
 
 
24457
 
 
24458
 
 
24459
 
 
24460
  if test $gl_cv_header_wchar_h_standalone != yes || test $gt_cv_c_wint_t != yes || test -n "$STDDEF_H"; then
 
24461
    WCHAR_H=wchar.h
 
24462
  fi
 
24463
 
 
24464
 
 
24465
 
 
24466
 
 
24467
 
 
24468
 
 
24469
 
 
24470
  if test $ac_cv_header_wchar_h = yes; then
 
24471
    HAVE_WCHAR_H=1
 
24472
  else
 
24473
    HAVE_WCHAR_H=0
 
24474
  fi
 
24475
 
 
24476
 
 
24477
 
 
24478
 
 
24479
 
 
24480
 
 
24481
 
 
24482
 
 
24483
 
 
24484
 
 
24485
 
 
24486
 
 
24487
     if test $gl_cv_have_include_next = yes; then
 
24488
       gl_cv_next_wchar_h='<'wchar.h'>'
 
24489
     else
 
24490
       { $as_echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
 
24491
$as_echo_n "checking absolute name of <wchar.h>... " >&6; }
 
24492
if test "${gl_cv_next_wchar_h+set}" = set; then
 
24493
  $as_echo_n "(cached) " >&6
 
24494
else
 
24495
 
 
24496
          if test $ac_cv_header_wchar_h = yes; then
 
24497
            cat >conftest.$ac_ext <<_ACEOF
 
24498
/* confdefs.h.  */
 
24499
_ACEOF
 
24500
cat confdefs.h >>conftest.$ac_ext
 
24501
cat >>conftest.$ac_ext <<_ACEOF
 
24502
/* end confdefs.h.  */
 
24503
#include <wchar.h>
 
24504
 
 
24505
_ACEOF
 
24506
                                                                    case "$host_os" in
 
24507
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
24508
              *)    gl_absname_cpp="$ac_cpp" ;;
 
24509
            esac
 
24510
                                    gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
24511
               sed -n '\#/wchar.h#{
 
24512
                 s#.*"\(.*/wchar.h\)".*#\1#
 
24513
                 s#^/[^/]#//&#
 
24514
                 p
 
24515
                 q
 
24516
               }'`'"'
 
24517
          else
 
24518
            gl_cv_next_wchar_h='<'wchar.h'>'
 
24519
          fi
 
24520
 
 
24521
fi
 
24522
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
 
24523
$as_echo "$gl_cv_next_wchar_h" >&6; }
 
24524
     fi
 
24525
     NEXT_WCHAR_H=$gl_cv_next_wchar_h
 
24526
 
 
24527
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
24528
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
24529
       gl_next_as_first_directive='<'wchar.h'>'
 
24530
     else
 
24531
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
24532
       gl_next_as_first_directive=$gl_cv_next_wchar_h
 
24533
     fi
 
24534
     NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
 
24535
 
 
24536
 
 
24537
 
 
24538
 
 
24539
 
 
24540
 
 
24541
 
 
24542
 
 
24543
 
 
24544
 
 
24545
 
 
24546
 
 
24547
  if test $ac_cv_func_iswcntrl = yes; then
 
24548
    HAVE_ISWCNTRL=1
 
24549
  else
 
24550
    HAVE_ISWCNTRL=0
 
24551
  fi
 
24552
 
 
24553
 
 
24554
 
 
24555
 
 
24556
 
 
24557
 
 
24558
 
 
24559
 
 
24560
 
 
24561
 
 
24562
  if test $gt_cv_c_wint_t = yes; then
 
24563
    HAVE_WINT_T=1
 
24564
  else
 
24565
    HAVE_WINT_T=0
 
24566
  fi
 
24567
 
 
24568
 
 
24569
  WCTYPE_H=wctype.h
 
24570
  if test $ac_cv_header_wctype_h = yes; then
 
24571
    if test $ac_cv_func_iswcntrl = yes; then
 
24572
                  { $as_echo "$as_me:$LINENO: checking whether iswcntrl works" >&5
 
24573
$as_echo_n "checking whether iswcntrl works... " >&6; }
 
24574
if test "${gl_cv_func_iswcntrl_works+set}" = set; then
 
24575
  $as_echo_n "(cached) " >&6
 
24576
else
 
24577
 
 
24578
          if test "$cross_compiling" = yes; then
 
24579
  cat >conftest.$ac_ext <<_ACEOF
 
24580
/* confdefs.h.  */
 
24581
_ACEOF
 
24582
cat confdefs.h >>conftest.$ac_ext
 
24583
cat >>conftest.$ac_ext <<_ACEOF
 
24584
/* end confdefs.h.  */
 
24585
#include <stdlib.h>
 
24586
                          #if __GNU_LIBRARY__ == 1
 
24587
                          Linux libc5 i18n is broken.
 
24588
                          #endif
 
24589
int
 
24590
main ()
 
24591
{
 
24592
 
 
24593
  ;
 
24594
  return 0;
 
24595
}
 
24596
_ACEOF
 
24597
rm -f conftest.$ac_objext
 
24598
if { (ac_try="$ac_compile"
 
24599
case "(($ac_try" in
 
24600
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24601
  *) ac_try_echo=$ac_try;;
 
24602
esac
 
24603
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
24604
$as_echo "$ac_try_echo") >&5
 
24605
  (eval "$ac_compile") 2>conftest.er1
 
24606
  ac_status=$?
 
24607
  grep -v '^ *+' conftest.er1 >conftest.err
 
24608
  rm -f conftest.er1
 
24609
  cat conftest.err >&5
 
24610
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24611
  (exit $ac_status); } && {
 
24612
         test -z "$ac_c_werror_flag" ||
 
24613
         test ! -s conftest.err
 
24614
       } && test -s conftest.$ac_objext; then
 
24615
  gl_cv_func_iswcntrl_works=yes
 
24616
else
 
24617
  $as_echo "$as_me: failed program was:" >&5
 
24618
sed 's/^/| /' conftest.$ac_ext >&5
 
24619
 
 
24620
        gl_cv_func_iswcntrl_works=no
 
24621
fi
 
24622
 
 
24623
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24624
 
 
24625
else
 
24626
  cat >conftest.$ac_ext <<_ACEOF
 
24627
/* confdefs.h.  */
 
24628
_ACEOF
 
24629
cat confdefs.h >>conftest.$ac_ext
 
24630
cat >>conftest.$ac_ext <<_ACEOF
 
24631
/* end confdefs.h.  */
 
24632
#include <stddef.h>
 
24633
                      #include <stdio.h>
 
24634
                      #include <time.h>
 
24635
                      #include <wchar.h>
 
24636
                      #include <wctype.h>
 
24637
                      int main () { return iswprint ('x') == 0; }
 
24638
_ACEOF
 
24639
rm -f conftest$ac_exeext
 
24640
if { (ac_try="$ac_link"
 
24641
case "(($ac_try" in
 
24642
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24643
  *) ac_try_echo=$ac_try;;
 
24644
esac
 
24645
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
24646
$as_echo "$ac_try_echo") >&5
 
24647
  (eval "$ac_link") 2>&5
 
24648
  ac_status=$?
 
24649
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24650
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
24651
  { (case "(($ac_try" in
 
24652
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24653
  *) ac_try_echo=$ac_try;;
 
24654
esac
 
24655
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
24656
$as_echo "$ac_try_echo") >&5
 
24657
  (eval "$ac_try") 2>&5
 
24658
  ac_status=$?
 
24659
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24660
  (exit $ac_status); }; }; then
 
24661
  gl_cv_func_iswcntrl_works=yes
 
24662
else
 
24663
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
24664
$as_echo "$as_me: failed program was:" >&5
 
24665
sed 's/^/| /' conftest.$ac_ext >&5
 
24666
 
 
24667
( exit $ac_status )
 
24668
gl_cv_func_iswcntrl_works=no
 
24669
fi
 
24670
rm -rf conftest.dSYM
 
24671
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
24672
fi
 
24673
 
 
24674
 
 
24675
 
 
24676
fi
 
24677
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_iswcntrl_works" >&5
 
24678
$as_echo "$gl_cv_func_iswcntrl_works" >&6; }
 
24679
      if test $gl_cv_func_iswcntrl_works = yes; then
 
24680
        WCTYPE_H=
 
24681
      fi
 
24682
    fi
 
24683
 
 
24684
 
 
24685
 
 
24686
 
 
24687
 
 
24688
 
 
24689
 
 
24690
 
 
24691
 
 
24692
 
 
24693
 
 
24694
     if test $gl_cv_have_include_next = yes; then
 
24695
       gl_cv_next_wctype_h='<'wctype.h'>'
 
24696
     else
 
24697
       { $as_echo "$as_me:$LINENO: checking absolute name of <wctype.h>" >&5
 
24698
$as_echo_n "checking absolute name of <wctype.h>... " >&6; }
 
24699
if test "${gl_cv_next_wctype_h+set}" = set; then
 
24700
  $as_echo_n "(cached) " >&6
 
24701
else
 
24702
 
 
24703
          if test $ac_cv_header_wctype_h = yes; then
 
24704
            cat >conftest.$ac_ext <<_ACEOF
 
24705
/* confdefs.h.  */
 
24706
_ACEOF
 
24707
cat confdefs.h >>conftest.$ac_ext
 
24708
cat >>conftest.$ac_ext <<_ACEOF
 
24709
/* end confdefs.h.  */
 
24710
#include <wctype.h>
 
24711
 
 
24712
_ACEOF
 
24713
                                                                    case "$host_os" in
 
24714
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
24715
              *)    gl_absname_cpp="$ac_cpp" ;;
 
24716
            esac
 
24717
                                    gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
24718
               sed -n '\#/wctype.h#{
 
24719
                 s#.*"\(.*/wctype.h\)".*#\1#
 
24720
                 s#^/[^/]#//&#
 
24721
                 p
 
24722
                 q
 
24723
               }'`'"'
 
24724
          else
 
24725
            gl_cv_next_wctype_h='<'wctype.h'>'
 
24726
          fi
 
24727
 
 
24728
fi
 
24729
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_wctype_h" >&5
 
24730
$as_echo "$gl_cv_next_wctype_h" >&6; }
 
24731
     fi
 
24732
     NEXT_WCTYPE_H=$gl_cv_next_wctype_h
 
24733
 
 
24734
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
24735
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
24736
       gl_next_as_first_directive='<'wctype.h'>'
 
24737
     else
 
24738
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
24739
       gl_next_as_first_directive=$gl_cv_next_wctype_h
 
24740
     fi
 
24741
     NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
 
24742
 
 
24743
 
 
24744
 
 
24745
    HAVE_WCTYPE_H=1
 
24746
  else
 
24747
    HAVE_WCTYPE_H=0
 
24748
  fi
 
24749
 
 
24750
 
 
24751
 
 
24752
  if test "$gl_cv_func_iswcntrl_works" = no; then
 
24753
    REPLACE_ISWCNTRL=1
 
24754
  else
 
24755
    REPLACE_ISWCNTRL=0
 
24756
  fi
 
24757
 
 
24758
 
 
24759
 
 
24760
 
 
24761
 
 
24762
 
 
24763
 
 
24764
 
 
24765
 
 
24766
 
 
24767
 
 
24768
  gl_LIBOBJS="$gl_LIBOBJS xmalloc.$ac_objext"
 
24769
 
 
24770
 
 
24771
 
 
24772
 
 
24773
  :
 
24774
 
 
24775
 
 
24776
  :
 
24777
 
 
24778
 
 
24779
 
 
24780
 
 
24781
 
 
24782
 
 
24783
 
 
24784
 
 
24785
 
 
24786
 
 
24787
 
 
24788
  gltests_libdeps=
 
24789
  gltests_ltlibdeps=
 
24790
 
 
24791
 
 
24792
 
 
24793
 
 
24794
 
 
24795
 
 
24796
 
 
24797
 
 
24798
 
 
24799
  gl_source_base='tests'
 
24800
 
 
24801
 
 
24802
 
 
24803
 
 
24804
 
 
24805
 
 
24806
 
 
24807
  LIBGNU_LIBDEPS="$gl_libdeps"
 
24808
 
 
24809
  LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
 
24810
 
 
24811
 
 
24812
 
 
24813
 
 
24814
 
8172
24815
for ac_header in stdlib.h unistd.h
8173
24816
do
8174
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8175
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8176
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
8177
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8178
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8179
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24817
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
24818
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
24819
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
24820
$as_echo_n "checking for $ac_header... " >&6; }
 
24821
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
24822
  $as_echo_n "(cached) " >&6
8180
24823
fi
8181
 
ac_res=`eval echo '${'$as_ac_Header'}'`
8182
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
8183
 
echo "${ECHO_T}$ac_res" >&6; }
 
24824
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
24825
                 $as_echo "$as_val"'`
 
24826
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
24827
$as_echo "$ac_res" >&6; }
8184
24828
else
8185
24829
  # Is the header compilable?
8186
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8187
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
24830
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
24831
$as_echo_n "checking $ac_header usability... " >&6; }
8188
24832
cat >conftest.$ac_ext <<_ACEOF
8189
24833
/* confdefs.h.  */
8190
24834
_ACEOF
8200
24844
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8201
24845
  *) ac_try_echo=$ac_try;;
8202
24846
esac
8203
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24847
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
24848
$as_echo "$ac_try_echo") >&5
8204
24849
  (eval "$ac_compile") 2>conftest.er1
8205
24850
  ac_status=$?
8206
24851
  grep -v '^ *+' conftest.er1 >conftest.err
8207
24852
  rm -f conftest.er1
8208
24853
  cat conftest.err >&5
8209
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24854
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210
24855
  (exit $ac_status); } && {
8211
24856
         test -z "$ac_c_werror_flag" ||
8212
24857
         test ! -s conftest.err
8213
24858
       } && test -s conftest.$ac_objext; then
8214
24859
  ac_header_compiler=yes
8215
24860
else
8216
 
  echo "$as_me: failed program was:" >&5
 
24861
  $as_echo "$as_me: failed program was:" >&5
8217
24862
sed 's/^/| /' conftest.$ac_ext >&5
8218
24863
 
8219
24864
        ac_header_compiler=no
8220
24865
fi
8221
24866
 
8222
24867
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8223
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8224
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
24868
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
24869
$as_echo "$ac_header_compiler" >&6; }
8225
24870
 
8226
24871
# Is the header present?
8227
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8228
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
24872
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
24873
$as_echo_n "checking $ac_header presence... " >&6; }
8229
24874
cat >conftest.$ac_ext <<_ACEOF
8230
24875
/* confdefs.h.  */
8231
24876
_ACEOF
8239
24884
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8240
24885
  *) ac_try_echo=$ac_try;;
8241
24886
esac
8242
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24887
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
24888
$as_echo "$ac_try_echo") >&5
8243
24889
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8244
24890
  ac_status=$?
8245
24891
  grep -v '^ *+' conftest.er1 >conftest.err
8246
24892
  rm -f conftest.er1
8247
24893
  cat conftest.err >&5
8248
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24894
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249
24895
  (exit $ac_status); } >/dev/null && {
8250
24896
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8251
24897
         test ! -s conftest.err
8252
24898
       }; then
8253
24899
  ac_header_preproc=yes
8254
24900
else
8255
 
  echo "$as_me: failed program was:" >&5
 
24901
  $as_echo "$as_me: failed program was:" >&5
8256
24902
sed 's/^/| /' conftest.$ac_ext >&5
8257
24903
 
8258
24904
  ac_header_preproc=no
8259
24905
fi
8260
24906
 
8261
24907
rm -f conftest.err conftest.$ac_ext
8262
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8263
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
24908
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
24909
$as_echo "$ac_header_preproc" >&6; }
8264
24910
 
8265
24911
# So?  What about this header?
8266
24912
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8267
24913
  yes:no: )
8268
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8269
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8270
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8271
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
24914
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
24915
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
24916
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
24917
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8272
24918
    ac_header_preproc=yes
8273
24919
    ;;
8274
24920
  no:yes:* )
8275
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8276
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8277
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8278
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8279
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8280
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8281
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8282
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8283
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8284
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8285
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8286
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8287
 
 
 
24921
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
24922
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
24923
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
24924
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
24925
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
24926
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
24927
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
24928
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
24929
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
24930
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
24931
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
24932
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
24933
    ( cat <<\_ASBOX
 
24934
## ------------------------------- ##
 
24935
## Report this to bug-wget@gnu.org ##
 
24936
## ------------------------------- ##
 
24937
_ASBOX
 
24938
     ) | sed "s/^/$as_me: WARNING:     /" >&2
8288
24939
    ;;
8289
24940
esac
8290
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8291
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
24941
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
24942
$as_echo_n "checking for $ac_header... " >&6; }
8292
24943
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8293
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24944
  $as_echo_n "(cached) " >&6
8294
24945
else
8295
24946
  eval "$as_ac_Header=\$ac_header_preproc"
8296
24947
fi
8297
 
ac_res=`eval echo '${'$as_ac_Header'}'`
8298
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
8299
 
echo "${ECHO_T}$ac_res" >&6; }
 
24948
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
24949
                 $as_echo "$as_val"'`
 
24950
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
24951
$as_echo "$ac_res" >&6; }
8300
24952
 
8301
24953
fi
8302
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
24954
as_val=`eval 'as_val=${'$as_ac_Header'}
 
24955
                 $as_echo "$as_val"'`
 
24956
   if test "x$as_val" = x""yes; then
8303
24957
  cat >>confdefs.h <<_ACEOF
8304
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
24958
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8305
24959
_ACEOF
8306
24960
 
8307
24961
fi
8311
24965
 
8312
24966
for ac_func in getpagesize
8313
24967
do
8314
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8315
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8316
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
24968
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
24969
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
24970
$as_echo_n "checking for $ac_func... " >&6; }
8317
24971
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8318
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24972
  $as_echo_n "(cached) " >&6
8319
24973
else
8320
24974
  cat >conftest.$ac_ext <<_ACEOF
8321
24975
/* confdefs.h.  */
8368
25022
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8369
25023
  *) ac_try_echo=$ac_try;;
8370
25024
esac
8371
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25025
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
25026
$as_echo "$ac_try_echo") >&5
8372
25027
  (eval "$ac_link") 2>conftest.er1
8373
25028
  ac_status=$?
8374
25029
  grep -v '^ *+' conftest.er1 >conftest.err
8375
25030
  rm -f conftest.er1
8376
25031
  cat conftest.err >&5
8377
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25032
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378
25033
  (exit $ac_status); } && {
8379
25034
         test -z "$ac_c_werror_flag" ||
8380
25035
         test ! -s conftest.err
8381
 
       } && test -s conftest$ac_exeext &&
8382
 
       $as_test_x conftest$ac_exeext; then
 
25036
       } && test -s conftest$ac_exeext && {
 
25037
         test "$cross_compiling" = yes ||
 
25038
         $as_test_x conftest$ac_exeext
 
25039
       }; then
8383
25040
  eval "$as_ac_var=yes"
8384
25041
else
8385
 
  echo "$as_me: failed program was:" >&5
 
25042
  $as_echo "$as_me: failed program was:" >&5
8386
25043
sed 's/^/| /' conftest.$ac_ext >&5
8387
25044
 
8388
25045
        eval "$as_ac_var=no"
8389
25046
fi
8390
25047
 
 
25048
rm -rf conftest.dSYM
8391
25049
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8392
25050
      conftest$ac_exeext conftest.$ac_ext
8393
25051
fi
8394
 
ac_res=`eval echo '${'$as_ac_var'}'`
8395
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
8396
 
echo "${ECHO_T}$ac_res" >&6; }
8397
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
25052
ac_res=`eval 'as_val=${'$as_ac_var'}
 
25053
                 $as_echo "$as_val"'`
 
25054
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
25055
$as_echo "$ac_res" >&6; }
 
25056
as_val=`eval 'as_val=${'$as_ac_var'}
 
25057
                 $as_echo "$as_val"'`
 
25058
   if test "x$as_val" = x""yes; then
8398
25059
  cat >>confdefs.h <<_ACEOF
8399
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
25060
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8400
25061
_ACEOF
8401
25062
 
8402
25063
fi
8403
25064
done
8404
25065
 
8405
 
{ echo "$as_me:$LINENO: checking for working mmap" >&5
8406
 
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
 
25066
{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
 
25067
$as_echo_n "checking for working mmap... " >&6; }
8407
25068
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8408
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25069
  $as_echo_n "(cached) " >&6
8409
25070
else
8410
25071
  if test "$cross_compiling" = yes; then
8411
25072
  ac_cv_func_mmap_fixed_mapped=no
8549
25210
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8550
25211
  *) ac_try_echo=$ac_try;;
8551
25212
esac
8552
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25213
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
25214
$as_echo "$ac_try_echo") >&5
8553
25215
  (eval "$ac_link") 2>&5
8554
25216
  ac_status=$?
8555
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25217
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556
25218
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8557
25219
  { (case "(($ac_try" in
8558
25220
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8559
25221
  *) ac_try_echo=$ac_try;;
8560
25222
esac
8561
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25223
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
25224
$as_echo "$ac_try_echo") >&5
8562
25225
  (eval "$ac_try") 2>&5
8563
25226
  ac_status=$?
8564
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25227
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565
25228
  (exit $ac_status); }; }; then
8566
25229
  ac_cv_func_mmap_fixed_mapped=yes
8567
25230
else
8568
 
  echo "$as_me: program exited with status $ac_status" >&5
8569
 
echo "$as_me: failed program was:" >&5
 
25231
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
25232
$as_echo "$as_me: failed program was:" >&5
8570
25233
sed 's/^/| /' conftest.$ac_ext >&5
8571
25234
 
8572
25235
( exit $ac_status )
8573
25236
ac_cv_func_mmap_fixed_mapped=no
8574
25237
fi
 
25238
rm -rf conftest.dSYM
8575
25239
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8576
25240
fi
8577
25241
 
8578
25242
 
8579
25243
fi
8580
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8581
 
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
 
25244
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
 
25245
$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8582
25246
if test $ac_cv_func_mmap_fixed_mapped = yes; then
8583
25247
 
8584
25248
cat >>confdefs.h <<\_ACEOF
8588
25252
fi
8589
25253
rm -f conftest.mmap
8590
25254
 
8591
 
{ echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
8592
 
echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
 
25255
{ $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
 
25256
$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
8593
25257
if test "${ac_cv_sys_largefile_source+set}" = set; then
8594
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25258
  $as_echo_n "(cached) " >&6
8595
25259
else
8596
25260
  while :; do
8597
25261
  cat >conftest.$ac_ext <<_ACEOF
8617
25281
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8618
25282
  *) ac_try_echo=$ac_try;;
8619
25283
esac
8620
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25284
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
25285
$as_echo "$ac_try_echo") >&5
8621
25286
  (eval "$ac_link") 2>conftest.er1
8622
25287
  ac_status=$?
8623
25288
  grep -v '^ *+' conftest.er1 >conftest.err
8624
25289
  rm -f conftest.er1
8625
25290
  cat conftest.err >&5
8626
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25291
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627
25292
  (exit $ac_status); } && {
8628
25293
         test -z "$ac_c_werror_flag" ||
8629
25294
         test ! -s conftest.err
8630
 
       } && test -s conftest$ac_exeext &&
8631
 
       $as_test_x conftest$ac_exeext; then
 
25295
       } && test -s conftest$ac_exeext && {
 
25296
         test "$cross_compiling" = yes ||
 
25297
         $as_test_x conftest$ac_exeext
 
25298
       }; then
8632
25299
  ac_cv_sys_largefile_source=no; break
8633
25300
else
8634
 
  echo "$as_me: failed program was:" >&5
 
25301
  $as_echo "$as_me: failed program was:" >&5
8635
25302
sed 's/^/| /' conftest.$ac_ext >&5
8636
25303
 
8637
25304
 
8638
25305
fi
8639
25306
 
 
25307
rm -rf conftest.dSYM
8640
25308
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8641
25309
      conftest$ac_exeext conftest.$ac_ext
8642
25310
  cat >conftest.$ac_ext <<_ACEOF
8663
25331
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8664
25332
  *) ac_try_echo=$ac_try;;
8665
25333
esac
8666
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25334
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
25335
$as_echo "$ac_try_echo") >&5
8667
25336
  (eval "$ac_link") 2>conftest.er1
8668
25337
  ac_status=$?
8669
25338
  grep -v '^ *+' conftest.er1 >conftest.err
8670
25339
  rm -f conftest.er1
8671
25340
  cat conftest.err >&5
8672
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25341
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673
25342
  (exit $ac_status); } && {
8674
25343
         test -z "$ac_c_werror_flag" ||
8675
25344
         test ! -s conftest.err
8676
 
       } && test -s conftest$ac_exeext &&
8677
 
       $as_test_x conftest$ac_exeext; then
 
25345
       } && test -s conftest$ac_exeext && {
 
25346
         test "$cross_compiling" = yes ||
 
25347
         $as_test_x conftest$ac_exeext
 
25348
       }; then
8678
25349
  ac_cv_sys_largefile_source=1; break
8679
25350
else
8680
 
  echo "$as_me: failed program was:" >&5
 
25351
  $as_echo "$as_me: failed program was:" >&5
8681
25352
sed 's/^/| /' conftest.$ac_ext >&5
8682
25353
 
8683
25354
 
8684
25355
fi
8685
25356
 
 
25357
rm -rf conftest.dSYM
8686
25358
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8687
25359
      conftest$ac_exeext conftest.$ac_ext
8688
25360
  ac_cv_sys_largefile_source=unknown
8689
25361
  break
8690
25362
done
8691
25363
fi
8692
 
{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
8693
 
echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
 
25364
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
 
25365
$as_echo "$ac_cv_sys_largefile_source" >&6; }
8694
25366
case $ac_cv_sys_largefile_source in #(
8695
25367
  no | unknown) ;;
8696
25368
  *)
8699
25371
_ACEOF
8700
25372
;;
8701
25373
esac
8702
 
rm -f conftest*
 
25374
rm -rf conftest*
8703
25375
 
8704
25376
# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
8705
25377
# in glibc 2.1.3, but that breaks too many other things.
8720
25392
 
8721
25393
for ac_func in strptime timegm snprintf vsnprintf vasprintf drand48
8722
25394
do
8723
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8724
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8725
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
25395
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
25396
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
25397
$as_echo_n "checking for $ac_func... " >&6; }
8726
25398
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8727
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25399
  $as_echo_n "(cached) " >&6
8728
25400
else
8729
25401
  cat >conftest.$ac_ext <<_ACEOF
8730
25402
/* confdefs.h.  */
8777
25449
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8778
25450
  *) ac_try_echo=$ac_try;;
8779
25451
esac
8780
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25452
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
25453
$as_echo "$ac_try_echo") >&5
8781
25454
  (eval "$ac_link") 2>conftest.er1
8782
25455
  ac_status=$?
8783
25456
  grep -v '^ *+' conftest.er1 >conftest.err
8784
25457
  rm -f conftest.er1
8785
25458
  cat conftest.err >&5
8786
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25459
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787
25460
  (exit $ac_status); } && {
8788
25461
         test -z "$ac_c_werror_flag" ||
8789
25462
         test ! -s conftest.err
8790
 
       } && test -s conftest$ac_exeext &&
8791
 
       $as_test_x conftest$ac_exeext; then
 
25463
       } && test -s conftest$ac_exeext && {
 
25464
         test "$cross_compiling" = yes ||
 
25465
         $as_test_x conftest$ac_exeext
 
25466
       }; then
8792
25467
  eval "$as_ac_var=yes"
8793
25468
else
8794
 
  echo "$as_me: failed program was:" >&5
 
25469
  $as_echo "$as_me: failed program was:" >&5
8795
25470
sed 's/^/| /' conftest.$ac_ext >&5
8796
25471
 
8797
25472
        eval "$as_ac_var=no"
8798
25473
fi
8799
25474
 
 
25475
rm -rf conftest.dSYM
8800
25476
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8801
25477
      conftest$ac_exeext conftest.$ac_ext
8802
25478
fi
8803
 
ac_res=`eval echo '${'$as_ac_var'}'`
8804
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
8805
 
echo "${ECHO_T}$ac_res" >&6; }
8806
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
25479
ac_res=`eval 'as_val=${'$as_ac_var'}
 
25480
                 $as_echo "$as_val"'`
 
25481
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
25482
$as_echo "$ac_res" >&6; }
 
25483
as_val=`eval 'as_val=${'$as_ac_var'}
 
25484
                 $as_echo "$as_val"'`
 
25485
   if test "x$as_val" = x""yes; then
8807
25486
  cat >>confdefs.h <<_ACEOF
8808
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
25487
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8809
25488
_ACEOF
8810
25489
 
8811
25490
fi
8821
25500
 
8822
25501
for ac_func in strtoll usleep ftello sigblock sigsetjmp memrchr wcwidth mbtowc
8823
25502
do
8824
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8825
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8826
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
25503
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
25504
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
25505
$as_echo_n "checking for $ac_func... " >&6; }
8827
25506
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8828
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25507
  $as_echo_n "(cached) " >&6
8829
25508
else
8830
25509
  cat >conftest.$ac_ext <<_ACEOF
8831
25510
/* confdefs.h.  */
8878
25557
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8879
25558
  *) ac_try_echo=$ac_try;;
8880
25559
esac
8881
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25560
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
25561
$as_echo "$ac_try_echo") >&5
8882
25562
  (eval "$ac_link") 2>conftest.er1
8883
25563
  ac_status=$?
8884
25564
  grep -v '^ *+' conftest.er1 >conftest.err
8885
25565
  rm -f conftest.er1
8886
25566
  cat conftest.err >&5
8887
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25567
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888
25568
  (exit $ac_status); } && {
8889
25569
         test -z "$ac_c_werror_flag" ||
8890
25570
         test ! -s conftest.err
8891
 
       } && test -s conftest$ac_exeext &&
8892
 
       $as_test_x conftest$ac_exeext; then
 
25571
       } && test -s conftest$ac_exeext && {
 
25572
         test "$cross_compiling" = yes ||
 
25573
         $as_test_x conftest$ac_exeext
 
25574
       }; then
8893
25575
  eval "$as_ac_var=yes"
8894
25576
else
8895
 
  echo "$as_me: failed program was:" >&5
 
25577
  $as_echo "$as_me: failed program was:" >&5
8896
25578
sed 's/^/| /' conftest.$ac_ext >&5
8897
25579
 
8898
25580
        eval "$as_ac_var=no"
8899
25581
fi
8900
25582
 
 
25583
rm -rf conftest.dSYM
8901
25584
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8902
25585
      conftest$ac_exeext conftest.$ac_ext
8903
25586
fi
8904
 
ac_res=`eval echo '${'$as_ac_var'}'`
8905
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
8906
 
echo "${ECHO_T}$ac_res" >&6; }
8907
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
25587
ac_res=`eval 'as_val=${'$as_ac_var'}
 
25588
                 $as_echo "$as_val"'`
 
25589
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
25590
$as_echo "$ac_res" >&6; }
 
25591
as_val=`eval 'as_val=${'$as_ac_var'}
 
25592
                 $as_echo "$as_val"'`
 
25593
   if test "x$as_val" = x""yes; then
8908
25594
  cat >>confdefs.h <<_ACEOF
8909
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
25595
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8910
25596
_ACEOF
8911
25597
 
8912
25598
fi
8913
25599
done
8914
25600
 
8915
25601
 
 
25602
if test x"$ENABLE_OPIE" = xyes; then
 
25603
  case " $LIBOBJS " in
 
25604
  *" ftp-opie.$ac_objext "* ) ;;
 
25605
  *) LIBOBJS="$LIBOBJS ftp-opie.$ac_objext"
 
25606
 ;;
 
25607
esac
 
25608
 
 
25609
fi
 
25610
 
8916
25611
 
8917
25612
cat >>confdefs.h <<\_ACEOF
8918
25613
#define HAVE_STRCASECMP 1
8940
25635
 
8941
25636
 
8942
25637
 
8943
 
  { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
8944
 
echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
 
25638
  { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
 
25639
$as_echo_n "checking for struct utimbuf... " >&6; }
8945
25640
if test "${ac_cv_type_struct_utimbuf+set}" = set; then
8946
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25641
  $as_echo_n "(cached) " >&6
8947
25642
else
 
25643
  ac_cv_type_struct_utimbuf=no
 
25644
cat >conftest.$ac_ext <<_ACEOF
 
25645
/* confdefs.h.  */
 
25646
_ACEOF
 
25647
cat confdefs.h >>conftest.$ac_ext
 
25648
cat >>conftest.$ac_ext <<_ACEOF
 
25649
/* end confdefs.h.  */
 
25650
 
 
25651
#include <stdio.h>
 
25652
#if HAVE_SYS_TYPES_H
 
25653
# include <sys/types.h>
 
25654
#endif
 
25655
#if HAVE_UTIME_H
 
25656
# include <utime.h>
 
25657
#endif
 
25658
 
 
25659
 
 
25660
int
 
25661
main ()
 
25662
{
 
25663
if (sizeof (struct utimbuf))
 
25664
       return 0;
 
25665
  ;
 
25666
  return 0;
 
25667
}
 
25668
_ACEOF
 
25669
rm -f conftest.$ac_objext
 
25670
if { (ac_try="$ac_compile"
 
25671
case "(($ac_try" in
 
25672
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25673
  *) ac_try_echo=$ac_try;;
 
25674
esac
 
25675
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
25676
$as_echo "$ac_try_echo") >&5
 
25677
  (eval "$ac_compile") 2>conftest.er1
 
25678
  ac_status=$?
 
25679
  grep -v '^ *+' conftest.er1 >conftest.err
 
25680
  rm -f conftest.er1
 
25681
  cat conftest.err >&5
 
25682
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25683
  (exit $ac_status); } && {
 
25684
         test -z "$ac_c_werror_flag" ||
 
25685
         test ! -s conftest.err
 
25686
       } && test -s conftest.$ac_objext; then
8948
25687
  cat >conftest.$ac_ext <<_ACEOF
8949
25688
/* confdefs.h.  */
8950
25689
_ACEOF
8961
25700
#endif
8962
25701
 
8963
25702
 
8964
 
typedef struct utimbuf ac__type_new_;
8965
25703
int
8966
25704
main ()
8967
25705
{
8968
 
if ((ac__type_new_ *) 0)
8969
 
  return 0;
8970
 
if (sizeof (ac__type_new_))
8971
 
  return 0;
 
25706
if (sizeof ((struct utimbuf)))
 
25707
          return 0;
8972
25708
  ;
8973
25709
  return 0;
8974
25710
}
8979
25715
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8980
25716
  *) ac_try_echo=$ac_try;;
8981
25717
esac
8982
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25718
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
25719
$as_echo "$ac_try_echo") >&5
8983
25720
  (eval "$ac_compile") 2>conftest.er1
8984
25721
  ac_status=$?
8985
25722
  grep -v '^ *+' conftest.er1 >conftest.err
8986
25723
  rm -f conftest.er1
8987
25724
  cat conftest.err >&5
8988
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25725
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989
25726
  (exit $ac_status); } && {
8990
25727
         test -z "$ac_c_werror_flag" ||
8991
25728
         test ! -s conftest.err
8992
25729
       } && test -s conftest.$ac_objext; then
8993
 
  ac_cv_type_struct_utimbuf=yes
8994
 
else
8995
 
  echo "$as_me: failed program was:" >&5
8996
 
sed 's/^/| /' conftest.$ac_ext >&5
8997
 
 
8998
 
        ac_cv_type_struct_utimbuf=no
8999
 
fi
9000
 
 
9001
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9002
 
fi
9003
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_utimbuf" >&5
9004
 
echo "${ECHO_T}$ac_cv_type_struct_utimbuf" >&6; }
9005
 
if test $ac_cv_type_struct_utimbuf = yes; then
 
25730
  :
 
25731
else
 
25732
  $as_echo "$as_me: failed program was:" >&5
 
25733
sed 's/^/| /' conftest.$ac_ext >&5
 
25734
 
 
25735
        ac_cv_type_struct_utimbuf=yes
 
25736
fi
 
25737
 
 
25738
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25739
else
 
25740
  $as_echo "$as_me: failed program was:" >&5
 
25741
sed 's/^/| /' conftest.$ac_ext >&5
 
25742
 
 
25743
 
 
25744
fi
 
25745
 
 
25746
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25747
fi
 
25748
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_utimbuf" >&5
 
25749
$as_echo "$ac_cv_type_struct_utimbuf" >&6; }
 
25750
if test "x$ac_cv_type_struct_utimbuf" = x""yes; then
9006
25751
 
9007
25752
cat >>confdefs.h <<_ACEOF
9008
25753
#define HAVE_STRUCT_UTIMBUF 1
9013
25758
 
9014
25759
 
9015
25760
 
9016
 
  { echo "$as_me:$LINENO: checking for socklen_t" >&5
9017
 
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
 
25761
  { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
 
25762
$as_echo_n "checking for socklen_t... " >&6; }
9018
25763
  cat >conftest.$ac_ext <<_ACEOF
9019
25764
 
9020
25765
#include <sys/types.h>
9028
25773
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9029
25774
  *) ac_try_echo=$ac_try;;
9030
25775
esac
9031
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25776
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
25777
$as_echo "$ac_try_echo") >&5
9032
25778
  (eval "$ac_compile") 2>conftest.er1
9033
25779
  ac_status=$?
9034
25780
  grep -v '^ *+' conftest.er1 >conftest.err
9035
25781
  rm -f conftest.er1
9036
25782
  cat conftest.err >&5
9037
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25783
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038
25784
  (exit $ac_status); } && {
9039
25785
         test -z "$ac_c_werror_flag" ||
9040
25786
         test ! -s conftest.err
9041
25787
       } && test -s conftest.$ac_objext; then
9042
 
  { echo "$as_me:$LINENO: result: socklen_t" >&5
9043
 
echo "${ECHO_T}socklen_t" >&6; }
 
25788
  { $as_echo "$as_me:$LINENO: result: socklen_t" >&5
 
25789
$as_echo "socklen_t" >&6; }
9044
25790
else
9045
 
  echo "$as_me: failed program was:" >&5
 
25791
  $as_echo "$as_me: failed program was:" >&5
9046
25792
sed 's/^/| /' conftest.$ac_ext >&5
9047
25793
 
9048
25794
 
9059
25805
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9060
25806
  *) ac_try_echo=$ac_try;;
9061
25807
esac
9062
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25808
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
25809
$as_echo "$ac_try_echo") >&5
9063
25810
  (eval "$ac_compile") 2>conftest.er1
9064
25811
  ac_status=$?
9065
25812
  grep -v '^ *+' conftest.er1 >conftest.err
9066
25813
  rm -f conftest.er1
9067
25814
  cat conftest.err >&5
9068
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25815
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069
25816
  (exit $ac_status); } && {
9070
25817
         test -z "$ac_c_werror_flag" ||
9071
25818
         test ! -s conftest.err
9072
25819
       } && test -s conftest.$ac_objext; then
9073
25820
 
9074
 
      { echo "$as_me:$LINENO: result: size_t" >&5
9075
 
echo "${ECHO_T}size_t" >&6; }
 
25821
      { $as_echo "$as_me:$LINENO: result: size_t" >&5
 
25822
$as_echo "size_t" >&6; }
9076
25823
 
9077
25824
cat >>confdefs.h <<\_ACEOF
9078
25825
#define socklen_t size_t
9080
25827
 
9081
25828
 
9082
25829
else
9083
 
  echo "$as_me: failed program was:" >&5
 
25830
  $as_echo "$as_me: failed program was:" >&5
9084
25831
sed 's/^/| /' conftest.$ac_ext >&5
9085
25832
 
9086
25833
 
9087
 
      { echo "$as_me:$LINENO: result: int" >&5
9088
 
echo "${ECHO_T}int" >&6; }
 
25834
      { $as_echo "$as_me:$LINENO: result: int" >&5
 
25835
$as_echo "int" >&6; }
9089
25836
 
9090
25837
cat >>confdefs.h <<\_ACEOF
9091
25838
#define socklen_t int
9101
25848
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9102
25849
 
9103
25850
 
9104
 
  { echo "$as_me:$LINENO: checking for working fnmatch.h" >&5
9105
 
echo $ECHO_N "checking for working fnmatch.h... $ECHO_C" >&6; }
 
25851
  { $as_echo "$as_me:$LINENO: checking for working fnmatch.h" >&5
 
25852
$as_echo_n "checking for working fnmatch.h... " >&6; }
9106
25853
  cat >conftest.$ac_ext <<_ACEOF
9107
25854
#include <fnmatch.h>
9108
25855
 
9113
25860
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9114
25861
  *) ac_try_echo=$ac_try;;
9115
25862
esac
9116
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25863
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
25864
$as_echo "$ac_try_echo") >&5
9117
25865
  (eval "$ac_compile") 2>conftest.er1
9118
25866
  ac_status=$?
9119
25867
  grep -v '^ *+' conftest.er1 >conftest.err
9120
25868
  rm -f conftest.er1
9121
25869
  cat conftest.err >&5
9122
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25870
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123
25871
  (exit $ac_status); } && {
9124
25872
         test -z "$ac_c_werror_flag" ||
9125
25873
         test ! -s conftest.err
9126
25874
       } && test -s conftest.$ac_objext; then
9127
25875
 
9128
 
    { echo "$as_me:$LINENO: result: yes" >&5
9129
 
echo "${ECHO_T}yes" >&6; }
 
25876
    { $as_echo "$as_me:$LINENO: result: yes" >&5
 
25877
$as_echo "yes" >&6; }
9130
25878
 
9131
25879
cat >>confdefs.h <<\_ACEOF
9132
25880
#define HAVE_WORKING_FNMATCH_H 1
9134
25882
 
9135
25883
 
9136
25884
else
9137
 
  echo "$as_me: failed program was:" >&5
 
25885
  $as_echo "$as_me: failed program was:" >&5
9138
25886
sed 's/^/| /' conftest.$ac_ext >&5
9139
25887
 
9140
25888
 
9141
 
    { echo "$as_me:$LINENO: result: no" >&5
9142
 
echo "${ECHO_T}no" >&6; }
 
25889
    { $as_echo "$as_me:$LINENO: result: no" >&5
 
25890
$as_echo "no" >&6; }
9143
25891
 
9144
25892
fi
9145
25893
 
9149
25897
 
9150
25898
for ac_func in nanosleep
9151
25899
do
9152
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9153
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9154
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
25900
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
25901
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
25902
$as_echo_n "checking for $ac_func... " >&6; }
9155
25903
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9156
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25904
  $as_echo_n "(cached) " >&6
9157
25905
else
9158
25906
  cat >conftest.$ac_ext <<_ACEOF
9159
25907
/* confdefs.h.  */
9206
25954
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9207
25955
  *) ac_try_echo=$ac_try;;
9208
25956
esac
9209
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25957
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
25958
$as_echo "$ac_try_echo") >&5
9210
25959
  (eval "$ac_link") 2>conftest.er1
9211
25960
  ac_status=$?
9212
25961
  grep -v '^ *+' conftest.er1 >conftest.err
9213
25962
  rm -f conftest.er1
9214
25963
  cat conftest.err >&5
9215
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25964
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216
25965
  (exit $ac_status); } && {
9217
25966
         test -z "$ac_c_werror_flag" ||
9218
25967
         test ! -s conftest.err
9219
 
       } && test -s conftest$ac_exeext &&
9220
 
       $as_test_x conftest$ac_exeext; then
 
25968
       } && test -s conftest$ac_exeext && {
 
25969
         test "$cross_compiling" = yes ||
 
25970
         $as_test_x conftest$ac_exeext
 
25971
       }; then
9221
25972
  eval "$as_ac_var=yes"
9222
25973
else
9223
 
  echo "$as_me: failed program was:" >&5
 
25974
  $as_echo "$as_me: failed program was:" >&5
9224
25975
sed 's/^/| /' conftest.$ac_ext >&5
9225
25976
 
9226
25977
        eval "$as_ac_var=no"
9227
25978
fi
9228
25979
 
 
25980
rm -rf conftest.dSYM
9229
25981
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9230
25982
      conftest$ac_exeext conftest.$ac_ext
9231
25983
fi
9232
 
ac_res=`eval echo '${'$as_ac_var'}'`
9233
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
9234
 
echo "${ECHO_T}$ac_res" >&6; }
9235
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
25984
ac_res=`eval 'as_val=${'$as_ac_var'}
 
25985
                 $as_echo "$as_val"'`
 
25986
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
25987
$as_echo "$ac_res" >&6; }
 
25988
as_val=`eval 'as_val=${'$as_ac_var'}
 
25989
                 $as_echo "$as_val"'`
 
25990
   if test "x$as_val" = x""yes; then
9236
25991
  cat >>confdefs.h <<_ACEOF
9237
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
25992
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9238
25993
_ACEOF
9239
25994
 
9240
25995
else
9241
25996
 
9242
 
    { echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
9243
 
echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; }
 
25997
    { $as_echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
 
25998
$as_echo_n "checking for nanosleep in -lrt... " >&6; }
9244
25999
if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
9245
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26000
  $as_echo_n "(cached) " >&6
9246
26001
else
9247
26002
  ac_check_lib_save_LIBS=$LIBS
9248
26003
LIBS="-lrt  $LIBS"
9274
26029
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9275
26030
  *) ac_try_echo=$ac_try;;
9276
26031
esac
9277
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26032
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
26033
$as_echo "$ac_try_echo") >&5
9278
26034
  (eval "$ac_link") 2>conftest.er1
9279
26035
  ac_status=$?
9280
26036
  grep -v '^ *+' conftest.er1 >conftest.err
9281
26037
  rm -f conftest.er1
9282
26038
  cat conftest.err >&5
9283
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26039
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284
26040
  (exit $ac_status); } && {
9285
26041
         test -z "$ac_c_werror_flag" ||
9286
26042
         test ! -s conftest.err
9287
 
       } && test -s conftest$ac_exeext &&
9288
 
       $as_test_x conftest$ac_exeext; then
 
26043
       } && test -s conftest$ac_exeext && {
 
26044
         test "$cross_compiling" = yes ||
 
26045
         $as_test_x conftest$ac_exeext
 
26046
       }; then
9289
26047
  ac_cv_lib_rt_nanosleep=yes
9290
26048
else
9291
 
  echo "$as_me: failed program was:" >&5
 
26049
  $as_echo "$as_me: failed program was:" >&5
9292
26050
sed 's/^/| /' conftest.$ac_ext >&5
9293
26051
 
9294
26052
        ac_cv_lib_rt_nanosleep=no
9295
26053
fi
9296
26054
 
 
26055
rm -rf conftest.dSYM
9297
26056
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9298
26057
      conftest$ac_exeext conftest.$ac_ext
9299
26058
LIBS=$ac_check_lib_save_LIBS
9300
26059
fi
9301
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
9302
 
echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; }
9303
 
if test $ac_cv_lib_rt_nanosleep = yes; then
 
26060
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
 
26061
$as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
 
26062
if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then
9304
26063
 
9305
26064
 
9306
26065
cat >>confdefs.h <<\_ACEOF
9311
26070
 
9312
26071
else
9313
26072
 
9314
 
      { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
9315
 
echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
 
26073
      { $as_echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
 
26074
$as_echo_n "checking for nanosleep in -lposix4... " >&6; }
9316
26075
if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
9317
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26076
  $as_echo_n "(cached) " >&6
9318
26077
else
9319
26078
  ac_check_lib_save_LIBS=$LIBS
9320
26079
LIBS="-lposix4  $LIBS"
9346
26105
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9347
26106
  *) ac_try_echo=$ac_try;;
9348
26107
esac
9349
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26108
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
26109
$as_echo "$ac_try_echo") >&5
9350
26110
  (eval "$ac_link") 2>conftest.er1
9351
26111
  ac_status=$?
9352
26112
  grep -v '^ *+' conftest.er1 >conftest.err
9353
26113
  rm -f conftest.er1
9354
26114
  cat conftest.err >&5
9355
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26115
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356
26116
  (exit $ac_status); } && {
9357
26117
         test -z "$ac_c_werror_flag" ||
9358
26118
         test ! -s conftest.err
9359
 
       } && test -s conftest$ac_exeext &&
9360
 
       $as_test_x conftest$ac_exeext; then
 
26119
       } && test -s conftest$ac_exeext && {
 
26120
         test "$cross_compiling" = yes ||
 
26121
         $as_test_x conftest$ac_exeext
 
26122
       }; then
9361
26123
  ac_cv_lib_posix4_nanosleep=yes
9362
26124
else
9363
 
  echo "$as_me: failed program was:" >&5
 
26125
  $as_echo "$as_me: failed program was:" >&5
9364
26126
sed 's/^/| /' conftest.$ac_ext >&5
9365
26127
 
9366
26128
        ac_cv_lib_posix4_nanosleep=no
9367
26129
fi
9368
26130
 
 
26131
rm -rf conftest.dSYM
9369
26132
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9370
26133
      conftest$ac_exeext conftest.$ac_ext
9371
26134
LIBS=$ac_check_lib_save_LIBS
9372
26135
fi
9373
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
9374
 
echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
9375
 
if test $ac_cv_lib_posix4_nanosleep = yes; then
 
26136
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
 
26137
$as_echo "$ac_cv_lib_posix4_nanosleep" >&6; }
 
26138
if test "x$ac_cv_lib_posix4_nanosleep" = x""yes; then
9376
26139
 
9377
26140
 
9378
26141
cat >>confdefs.h <<\_ACEOF
9395
26158
 
9396
26159
for ac_func in clock_gettime
9397
26160
do
9398
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9399
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9400
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
26161
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
26162
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
26163
$as_echo_n "checking for $ac_func... " >&6; }
9401
26164
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9402
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26165
  $as_echo_n "(cached) " >&6
9403
26166
else
9404
26167
  cat >conftest.$ac_ext <<_ACEOF
9405
26168
/* confdefs.h.  */
9452
26215
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9453
26216
  *) ac_try_echo=$ac_try;;
9454
26217
esac
9455
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26218
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
26219
$as_echo "$ac_try_echo") >&5
9456
26220
  (eval "$ac_link") 2>conftest.er1
9457
26221
  ac_status=$?
9458
26222
  grep -v '^ *+' conftest.er1 >conftest.err
9459
26223
  rm -f conftest.er1
9460
26224
  cat conftest.err >&5
9461
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26225
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462
26226
  (exit $ac_status); } && {
9463
26227
         test -z "$ac_c_werror_flag" ||
9464
26228
         test ! -s conftest.err
9465
 
       } && test -s conftest$ac_exeext &&
9466
 
       $as_test_x conftest$ac_exeext; then
 
26229
       } && test -s conftest$ac_exeext && {
 
26230
         test "$cross_compiling" = yes ||
 
26231
         $as_test_x conftest$ac_exeext
 
26232
       }; then
9467
26233
  eval "$as_ac_var=yes"
9468
26234
else
9469
 
  echo "$as_me: failed program was:" >&5
 
26235
  $as_echo "$as_me: failed program was:" >&5
9470
26236
sed 's/^/| /' conftest.$ac_ext >&5
9471
26237
 
9472
26238
        eval "$as_ac_var=no"
9473
26239
fi
9474
26240
 
 
26241
rm -rf conftest.dSYM
9475
26242
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9476
26243
      conftest$ac_exeext conftest.$ac_ext
9477
26244
fi
9478
 
ac_res=`eval echo '${'$as_ac_var'}'`
9479
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
9480
 
echo "${ECHO_T}$ac_res" >&6; }
9481
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
26245
ac_res=`eval 'as_val=${'$as_ac_var'}
 
26246
                 $as_echo "$as_val"'`
 
26247
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
26248
$as_echo "$ac_res" >&6; }
 
26249
as_val=`eval 'as_val=${'$as_ac_var'}
 
26250
                 $as_echo "$as_val"'`
 
26251
   if test "x$as_val" = x""yes; then
9482
26252
  cat >>confdefs.h <<_ACEOF
9483
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
26253
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9484
26254
_ACEOF
9485
26255
 
9486
26256
else
9487
26257
 
9488
26258
 
9489
 
{ echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
9490
 
echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
 
26259
{ $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
 
26260
$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
9491
26261
if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
9492
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26262
  $as_echo_n "(cached) " >&6
9493
26263
else
9494
26264
  ac_check_lib_save_LIBS=$LIBS
9495
26265
LIBS="-lrt  $LIBS"
9521
26291
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9522
26292
  *) ac_try_echo=$ac_try;;
9523
26293
esac
9524
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26294
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
26295
$as_echo "$ac_try_echo") >&5
9525
26296
  (eval "$ac_link") 2>conftest.er1
9526
26297
  ac_status=$?
9527
26298
  grep -v '^ *+' conftest.er1 >conftest.err
9528
26299
  rm -f conftest.er1
9529
26300
  cat conftest.err >&5
9530
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26301
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531
26302
  (exit $ac_status); } && {
9532
26303
         test -z "$ac_c_werror_flag" ||
9533
26304
         test ! -s conftest.err
9534
 
       } && test -s conftest$ac_exeext &&
9535
 
       $as_test_x conftest$ac_exeext; then
 
26305
       } && test -s conftest$ac_exeext && {
 
26306
         test "$cross_compiling" = yes ||
 
26307
         $as_test_x conftest$ac_exeext
 
26308
       }; then
9536
26309
  ac_cv_lib_rt_clock_gettime=yes
9537
26310
else
9538
 
  echo "$as_me: failed program was:" >&5
 
26311
  $as_echo "$as_me: failed program was:" >&5
9539
26312
sed 's/^/| /' conftest.$ac_ext >&5
9540
26313
 
9541
26314
        ac_cv_lib_rt_clock_gettime=no
9542
26315
fi
9543
26316
 
 
26317
rm -rf conftest.dSYM
9544
26318
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9545
26319
      conftest$ac_exeext conftest.$ac_ext
9546
26320
LIBS=$ac_check_lib_save_LIBS
9547
26321
fi
9548
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
9549
 
echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
9550
 
if test $ac_cv_lib_rt_clock_gettime = yes; then
 
26322
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
 
26323
$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
 
26324
if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
9551
26325
  cat >>confdefs.h <<_ACEOF
9552
26326
#define HAVE_LIBRT 1
9553
26327
_ACEOF
9566
26340
 
9567
26341
for ac_func in gethostbyname
9568
26342
do
9569
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9570
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9571
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
26343
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
26344
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
26345
$as_echo_n "checking for $ac_func... " >&6; }
9572
26346
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9573
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26347
  $as_echo_n "(cached) " >&6
9574
26348
else
9575
26349
  cat >conftest.$ac_ext <<_ACEOF
9576
26350
/* confdefs.h.  */
9623
26397
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9624
26398
  *) ac_try_echo=$ac_try;;
9625
26399
esac
9626
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26400
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
26401
$as_echo "$ac_try_echo") >&5
9627
26402
  (eval "$ac_link") 2>conftest.er1
9628
26403
  ac_status=$?
9629
26404
  grep -v '^ *+' conftest.er1 >conftest.err
9630
26405
  rm -f conftest.er1
9631
26406
  cat conftest.err >&5
9632
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26407
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633
26408
  (exit $ac_status); } && {
9634
26409
         test -z "$ac_c_werror_flag" ||
9635
26410
         test ! -s conftest.err
9636
 
       } && test -s conftest$ac_exeext &&
9637
 
       $as_test_x conftest$ac_exeext; then
 
26411
       } && test -s conftest$ac_exeext && {
 
26412
         test "$cross_compiling" = yes ||
 
26413
         $as_test_x conftest$ac_exeext
 
26414
       }; then
9638
26415
  eval "$as_ac_var=yes"
9639
26416
else
9640
 
  echo "$as_me: failed program was:" >&5
 
26417
  $as_echo "$as_me: failed program was:" >&5
9641
26418
sed 's/^/| /' conftest.$ac_ext >&5
9642
26419
 
9643
26420
        eval "$as_ac_var=no"
9644
26421
fi
9645
26422
 
 
26423
rm -rf conftest.dSYM
9646
26424
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9647
26425
      conftest$ac_exeext conftest.$ac_ext
9648
26426
fi
9649
 
ac_res=`eval echo '${'$as_ac_var'}'`
9650
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
9651
 
echo "${ECHO_T}$ac_res" >&6; }
9652
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
26427
ac_res=`eval 'as_val=${'$as_ac_var'}
 
26428
                 $as_echo "$as_val"'`
 
26429
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
26430
$as_echo "$ac_res" >&6; }
 
26431
as_val=`eval 'as_val=${'$as_ac_var'}
 
26432
                 $as_echo "$as_val"'`
 
26433
   if test "x$as_val" = x""yes; then
9653
26434
  cat >>confdefs.h <<_ACEOF
9654
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
26435
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9655
26436
_ACEOF
9656
26437
 
9657
26438
else
9664
26445
 
9665
26446
for ac_func in inet_ntoa
9666
26447
do
9667
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9668
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9669
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
26448
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
26449
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
26450
$as_echo_n "checking for $ac_func... " >&6; }
9670
26451
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9671
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26452
  $as_echo_n "(cached) " >&6
9672
26453
else
9673
26454
  cat >conftest.$ac_ext <<_ACEOF
9674
26455
/* confdefs.h.  */
9721
26502
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9722
26503
  *) ac_try_echo=$ac_try;;
9723
26504
esac
9724
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26505
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
26506
$as_echo "$ac_try_echo") >&5
9725
26507
  (eval "$ac_link") 2>conftest.er1
9726
26508
  ac_status=$?
9727
26509
  grep -v '^ *+' conftest.er1 >conftest.err
9728
26510
  rm -f conftest.er1
9729
26511
  cat conftest.err >&5
9730
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26512
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731
26513
  (exit $ac_status); } && {
9732
26514
         test -z "$ac_c_werror_flag" ||
9733
26515
         test ! -s conftest.err
9734
 
       } && test -s conftest$ac_exeext &&
9735
 
       $as_test_x conftest$ac_exeext; then
 
26516
       } && test -s conftest$ac_exeext && {
 
26517
         test "$cross_compiling" = yes ||
 
26518
         $as_test_x conftest$ac_exeext
 
26519
       }; then
9736
26520
  eval "$as_ac_var=yes"
9737
26521
else
9738
 
  echo "$as_me: failed program was:" >&5
 
26522
  $as_echo "$as_me: failed program was:" >&5
9739
26523
sed 's/^/| /' conftest.$ac_ext >&5
9740
26524
 
9741
26525
        eval "$as_ac_var=no"
9742
26526
fi
9743
26527
 
 
26528
rm -rf conftest.dSYM
9744
26529
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9745
26530
      conftest$ac_exeext conftest.$ac_ext
9746
26531
fi
9747
 
ac_res=`eval echo '${'$as_ac_var'}'`
9748
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
9749
 
echo "${ECHO_T}$ac_res" >&6; }
9750
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
26532
ac_res=`eval 'as_val=${'$as_ac_var'}
 
26533
                 $as_echo "$as_val"'`
 
26534
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
26535
$as_echo "$ac_res" >&6; }
 
26536
as_val=`eval 'as_val=${'$as_ac_var'}
 
26537
                 $as_echo "$as_val"'`
 
26538
   if test "x$as_val" = x""yes; then
9751
26539
  cat >>confdefs.h <<_ACEOF
9752
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
26540
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9753
26541
_ACEOF
9754
26542
 
9755
26543
else
9761
26549
 
9762
26550
  if test $wget_check_in_nsl != NONE; then
9763
26551
 
9764
 
as_ac_Lib=`echo "ac_cv_lib_nsl_$wget_check_in_nsl" | $as_tr_sh`
9765
 
{ echo "$as_me:$LINENO: checking for $wget_check_in_nsl in -lnsl" >&5
9766
 
echo $ECHO_N "checking for $wget_check_in_nsl in -lnsl... $ECHO_C" >&6; }
 
26552
as_ac_Lib=`$as_echo "ac_cv_lib_nsl_$wget_check_in_nsl" | $as_tr_sh`
 
26553
{ $as_echo "$as_me:$LINENO: checking for $wget_check_in_nsl in -lnsl" >&5
 
26554
$as_echo_n "checking for $wget_check_in_nsl in -lnsl... " >&6; }
9767
26555
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
9768
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26556
  $as_echo_n "(cached) " >&6
9769
26557
else
9770
26558
  ac_check_lib_save_LIBS=$LIBS
9771
26559
LIBS="-lnsl  $LIBS"
9797
26585
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9798
26586
  *) ac_try_echo=$ac_try;;
9799
26587
esac
9800
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26588
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
26589
$as_echo "$ac_try_echo") >&5
9801
26590
  (eval "$ac_link") 2>conftest.er1
9802
26591
  ac_status=$?
9803
26592
  grep -v '^ *+' conftest.er1 >conftest.err
9804
26593
  rm -f conftest.er1
9805
26594
  cat conftest.err >&5
9806
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26595
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807
26596
  (exit $ac_status); } && {
9808
26597
         test -z "$ac_c_werror_flag" ||
9809
26598
         test ! -s conftest.err
9810
 
       } && test -s conftest$ac_exeext &&
9811
 
       $as_test_x conftest$ac_exeext; then
 
26599
       } && test -s conftest$ac_exeext && {
 
26600
         test "$cross_compiling" = yes ||
 
26601
         $as_test_x conftest$ac_exeext
 
26602
       }; then
9812
26603
  eval "$as_ac_Lib=yes"
9813
26604
else
9814
 
  echo "$as_me: failed program was:" >&5
 
26605
  $as_echo "$as_me: failed program was:" >&5
9815
26606
sed 's/^/| /' conftest.$ac_ext >&5
9816
26607
 
9817
26608
        eval "$as_ac_Lib=no"
9818
26609
fi
9819
26610
 
 
26611
rm -rf conftest.dSYM
9820
26612
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9821
26613
      conftest$ac_exeext conftest.$ac_ext
9822
26614
LIBS=$ac_check_lib_save_LIBS
9823
26615
fi
9824
 
ac_res=`eval echo '${'$as_ac_Lib'}'`
9825
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
9826
 
echo "${ECHO_T}$ac_res" >&6; }
9827
 
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
 
26616
ac_res=`eval 'as_val=${'$as_ac_Lib'}
 
26617
                 $as_echo "$as_val"'`
 
26618
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
26619
$as_echo "$ac_res" >&6; }
 
26620
as_val=`eval 'as_val=${'$as_ac_Lib'}
 
26621
                 $as_echo "$as_val"'`
 
26622
   if test "x$as_val" = x""yes; then
9828
26623
  cat >>confdefs.h <<_ACEOF
9829
26624
#define HAVE_LIBNSL 1
9830
26625
_ACEOF
9835
26630
 
9836
26631
  fi
9837
26632
 
9838
 
{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
9839
 
echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
 
26633
{ $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
 
26634
$as_echo_n "checking for socket in -lsocket... " >&6; }
9840
26635
if test "${ac_cv_lib_socket_socket+set}" = set; then
9841
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26636
  $as_echo_n "(cached) " >&6
9842
26637
else
9843
26638
  ac_check_lib_save_LIBS=$LIBS
9844
26639
LIBS="-lsocket  $LIBS"
9870
26665
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871
26666
  *) ac_try_echo=$ac_try;;
9872
26667
esac
9873
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26668
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
26669
$as_echo "$ac_try_echo") >&5
9874
26670
  (eval "$ac_link") 2>conftest.er1
9875
26671
  ac_status=$?
9876
26672
  grep -v '^ *+' conftest.er1 >conftest.err
9877
26673
  rm -f conftest.er1
9878
26674
  cat conftest.err >&5
9879
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26675
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880
26676
  (exit $ac_status); } && {
9881
26677
         test -z "$ac_c_werror_flag" ||
9882
26678
         test ! -s conftest.err
9883
 
       } && test -s conftest$ac_exeext &&
9884
 
       $as_test_x conftest$ac_exeext; then
 
26679
       } && test -s conftest$ac_exeext && {
 
26680
         test "$cross_compiling" = yes ||
 
26681
         $as_test_x conftest$ac_exeext
 
26682
       }; then
9885
26683
  ac_cv_lib_socket_socket=yes
9886
26684
else
9887
 
  echo "$as_me: failed program was:" >&5
 
26685
  $as_echo "$as_me: failed program was:" >&5
9888
26686
sed 's/^/| /' conftest.$ac_ext >&5
9889
26687
 
9890
26688
        ac_cv_lib_socket_socket=no
9891
26689
fi
9892
26690
 
 
26691
rm -rf conftest.dSYM
9893
26692
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9894
26693
      conftest$ac_exeext conftest.$ac_ext
9895
26694
LIBS=$ac_check_lib_save_LIBS
9896
26695
fi
9897
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
9898
 
echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
9899
 
if test $ac_cv_lib_socket_socket = yes; then
 
26696
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
 
26697
$as_echo "$ac_cv_lib_socket_socket" >&6; }
 
26698
if test "x$ac_cv_lib_socket_socket" = x""yes; then
9900
26699
  cat >>confdefs.h <<_ACEOF
9901
26700
#define HAVE_LIBSOCKET 1
9902
26701
_ACEOF
9907
26706
 
9908
26707
 
9909
26708
 
9910
 
{ echo "$as_me:$LINENO: checking for getopt_long" >&5
9911
 
echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6; }
9912
 
if test "${ac_cv_func_getopt_long+set}" = set; then
9913
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9914
 
else
9915
 
  cat >conftest.$ac_ext <<_ACEOF
9916
 
/* confdefs.h.  */
9917
 
_ACEOF
9918
 
cat confdefs.h >>conftest.$ac_ext
9919
 
cat >>conftest.$ac_ext <<_ACEOF
9920
 
/* end confdefs.h.  */
9921
 
/* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long.
9922
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9923
 
#define getopt_long innocuous_getopt_long
9924
 
 
9925
 
/* System header to define __stub macros and hopefully few prototypes,
9926
 
    which can conflict with char getopt_long (); below.
9927
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9928
 
    <limits.h> exists even on freestanding compilers.  */
9929
 
 
9930
 
#ifdef __STDC__
9931
 
# include <limits.h>
9932
 
#else
9933
 
# include <assert.h>
9934
 
#endif
9935
 
 
9936
 
#undef getopt_long
9937
 
 
9938
 
/* Override any GCC internal prototype to avoid an error.
9939
 
   Use char because int might match the return type of a GCC
9940
 
   builtin and then its argument prototype would still apply.  */
9941
 
#ifdef __cplusplus
9942
 
extern "C"
9943
 
#endif
9944
 
char getopt_long ();
9945
 
/* The GNU C library defines this for functions which it implements
9946
 
    to always fail with ENOSYS.  Some functions are actually named
9947
 
    something starting with __ and the normal name is an alias.  */
9948
 
#if defined __stub_getopt_long || defined __stub___getopt_long
9949
 
choke me
9950
 
#endif
9951
 
 
9952
 
int
9953
 
main ()
9954
 
{
9955
 
return getopt_long ();
9956
 
  ;
9957
 
  return 0;
9958
 
}
9959
 
_ACEOF
9960
 
rm -f conftest.$ac_objext conftest$ac_exeext
9961
 
if { (ac_try="$ac_link"
9962
 
case "(($ac_try" in
9963
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9964
 
  *) ac_try_echo=$ac_try;;
9965
 
esac
9966
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9967
 
  (eval "$ac_link") 2>conftest.er1
9968
 
  ac_status=$?
9969
 
  grep -v '^ *+' conftest.er1 >conftest.err
9970
 
  rm -f conftest.er1
9971
 
  cat conftest.err >&5
9972
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973
 
  (exit $ac_status); } && {
9974
 
         test -z "$ac_c_werror_flag" ||
9975
 
         test ! -s conftest.err
9976
 
       } && test -s conftest$ac_exeext &&
9977
 
       $as_test_x conftest$ac_exeext; then
9978
 
  ac_cv_func_getopt_long=yes
9979
 
else
9980
 
  echo "$as_me: failed program was:" >&5
9981
 
sed 's/^/| /' conftest.$ac_ext >&5
9982
 
 
9983
 
        ac_cv_func_getopt_long=no
9984
 
fi
9985
 
 
9986
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9987
 
      conftest$ac_exeext conftest.$ac_ext
9988
 
fi
9989
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
9990
 
echo "${ECHO_T}$ac_cv_func_getopt_long" >&6; }
9991
 
if test $ac_cv_func_getopt_long = yes; then
9992
 
  :
9993
 
else
9994
 
 
9995
 
  GETOPT_OBJ='getopt.o'
9996
 
 
9997
 
fi
9998
 
 
9999
 
 
10000
 
 
10001
 
 
10002
 
 
10003
 
      if test "X$prefix" = "XNONE"; then
10004
 
    acl_final_prefix="$ac_default_prefix"
10005
 
  else
10006
 
    acl_final_prefix="$prefix"
10007
 
  fi
10008
 
  if test "X$exec_prefix" = "XNONE"; then
10009
 
    acl_final_exec_prefix='${prefix}'
10010
 
  else
10011
 
    acl_final_exec_prefix="$exec_prefix"
10012
 
  fi
10013
 
  acl_save_prefix="$prefix"
10014
 
  prefix="$acl_final_prefix"
10015
 
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10016
 
  prefix="$acl_save_prefix"
10017
 
 
10018
 
 
10019
 
# Check whether --with-gnu-ld was given.
10020
 
if test "${with_gnu_ld+set}" = set; then
10021
 
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10022
 
else
10023
 
  with_gnu_ld=no
10024
 
fi
10025
 
 
10026
 
# Prepare PATH_SEPARATOR.
10027
 
# The user is always right.
10028
 
if test "${PATH_SEPARATOR+set}" != set; then
10029
 
  echo "#! /bin/sh" >conf$$.sh
10030
 
  echo  "exit 0"   >>conf$$.sh
10031
 
  chmod +x conf$$.sh
10032
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10033
 
    PATH_SEPARATOR=';'
10034
 
  else
10035
 
    PATH_SEPARATOR=:
10036
 
  fi
10037
 
  rm -f conf$$.sh
10038
 
fi
10039
 
ac_prog=ld
10040
 
if test "$GCC" = yes; then
10041
 
  # Check if gcc -print-prog-name=ld gives a path.
10042
 
  { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10043
 
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
10044
 
  case $host in
10045
 
  *-*-mingw*)
10046
 
    # gcc leaves a trailing carriage return which upsets mingw
10047
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10048
 
  *)
10049
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10050
 
  esac
10051
 
  case $ac_prog in
10052
 
    # Accept absolute paths.
10053
 
    [\\/]* | [A-Za-z]:[\\/]*)
10054
 
      re_direlt='/[^/][^/]*/\.\./'
10055
 
      # Canonicalize the path of ld
10056
 
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10057
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10058
 
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10059
 
      done
10060
 
      test -z "$LD" && LD="$ac_prog"
10061
 
      ;;
10062
 
  "")
10063
 
    # If it fails, then pretend we aren't using GCC.
10064
 
    ac_prog=ld
10065
 
    ;;
10066
 
  *)
10067
 
    # If it is relative, then search for the first ld in PATH.
10068
 
    with_gnu_ld=unknown
10069
 
    ;;
10070
 
  esac
10071
 
elif test "$with_gnu_ld" = yes; then
10072
 
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
10073
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10074
 
else
10075
 
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10076
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10077
 
fi
10078
 
if test "${acl_cv_path_LD+set}" = set; then
10079
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10080
 
else
10081
 
  if test -z "$LD"; then
10082
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10083
 
  for ac_dir in $PATH; do
10084
 
    test -z "$ac_dir" && ac_dir=.
10085
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10086
 
      acl_cv_path_LD="$ac_dir/$ac_prog"
10087
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
10088
 
      # but apparently some GNU ld's only accept -v.
10089
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
10090
 
      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
10091
 
      *GNU* | *'with BFD'*)
10092
 
        test "$with_gnu_ld" != no && break ;;
10093
 
      *)
10094
 
        test "$with_gnu_ld" != yes && break ;;
10095
 
      esac
10096
 
    fi
10097
 
  done
10098
 
  IFS="$ac_save_ifs"
10099
 
else
10100
 
  acl_cv_path_LD="$LD" # Let the user override the test with a path.
10101
 
fi
10102
 
fi
10103
 
 
10104
 
LD="$acl_cv_path_LD"
10105
 
if test -n "$LD"; then
10106
 
  { echo "$as_me:$LINENO: result: $LD" >&5
10107
 
echo "${ECHO_T}$LD" >&6; }
10108
 
else
10109
 
  { echo "$as_me:$LINENO: result: no" >&5
10110
 
echo "${ECHO_T}no" >&6; }
10111
 
fi
10112
 
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10113
 
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10114
 
   { (exit 1); exit 1; }; }
10115
 
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10116
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10117
 
if test "${acl_cv_prog_gnu_ld+set}" = set; then
10118
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10119
 
else
10120
 
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10121
 
case `$LD -v 2>&1 </dev/null` in
10122
 
*GNU* | *'with BFD'*)
10123
 
  acl_cv_prog_gnu_ld=yes ;;
10124
 
*)
10125
 
  acl_cv_prog_gnu_ld=no ;;
10126
 
esac
10127
 
fi
10128
 
{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10129
 
echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
10130
 
with_gnu_ld=$acl_cv_prog_gnu_ld
10131
 
 
10132
 
 
10133
 
 
10134
 
 
10135
 
                                                { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10136
 
echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
10137
 
if test "${acl_cv_rpath+set}" = set; then
10138
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10139
 
else
10140
 
 
10141
 
    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10142
 
    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10143
 
    . ./conftest.sh
10144
 
    rm -f ./conftest.sh
10145
 
    acl_cv_rpath=done
10146
 
 
10147
 
fi
10148
 
{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10149
 
echo "${ECHO_T}$acl_cv_rpath" >&6; }
10150
 
  wl="$acl_cv_wl"
10151
 
  libext="$acl_cv_libext"
10152
 
  shlibext="$acl_cv_shlibext"
10153
 
  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10154
 
  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10155
 
  hardcode_direct="$acl_cv_hardcode_direct"
10156
 
  hardcode_minus_L="$acl_cv_hardcode_minus_L"
10157
 
    # Check whether --enable-rpath was given.
10158
 
if test "${enable_rpath+set}" = set; then
10159
 
  enableval=$enable_rpath; :
10160
 
else
10161
 
  enable_rpath=yes
10162
 
fi
10163
 
 
10164
26709
 
10165
26710
if test x"$with_ssl" = xgnutls; then
10166
26711
 
10172
26717
 
10173
26718
 
10174
26719
 
 
26720
 
 
26721
 
10175
26722
    use_additional=yes
10176
26723
 
10177
26724
  acl_save_prefix="$prefix"
10207
26754
 
10208
26755
      else
10209
26756
        additional_includedir="$withval/include"
10210
 
        additional_libdir="$withval/lib"
 
26757
        additional_libdir="$withval/$acl_libdirstem"
10211
26758
      fi
10212
26759
    fi
10213
26760
 
10216
26763
      LIBGNUTLS=
10217
26764
  LTLIBGNUTLS=
10218
26765
  INCGNUTLS=
 
26766
  LIBGNUTLS_PREFIX=
10219
26767
  rpathdirs=
10220
26768
  ltrpathdirs=
10221
26769
  names_already_handled=
10249
26797
          found_la=
10250
26798
          found_so=
10251
26799
          found_a=
 
26800
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
 
26801
          if test -n "$acl_shlibext"; then
 
26802
            shrext=".$acl_shlibext"             # typically: shrext=.so
 
26803
          else
 
26804
            shrext=
 
26805
          fi
10252
26806
          if test $use_additional = yes; then
10253
 
            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10254
 
              found_dir="$additional_libdir"
10255
 
              found_so="$additional_libdir/lib$name.$shlibext"
10256
 
              if test -f "$additional_libdir/lib$name.la"; then
10257
 
                found_la="$additional_libdir/lib$name.la"
10258
 
              fi
10259
 
            else
10260
 
              if test -f "$additional_libdir/lib$name.$libext"; then
10261
 
                found_dir="$additional_libdir"
10262
 
                found_a="$additional_libdir/lib$name.$libext"
10263
 
                if test -f "$additional_libdir/lib$name.la"; then
10264
 
                  found_la="$additional_libdir/lib$name.la"
 
26807
            dir="$additional_libdir"
 
26808
                                    if test -n "$acl_shlibext"; then
 
26809
              if test -f "$dir/$libname$shrext"; then
 
26810
                found_dir="$dir"
 
26811
                found_so="$dir/$libname$shrext"
 
26812
              else
 
26813
                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
26814
                  ver=`(cd "$dir" && \
 
26815
                        for f in "$libname$shrext".*; do echo "$f"; done \
 
26816
                        | sed -e "s,^$libname$shrext\\\\.,," \
 
26817
                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
26818
                        | sed 1q ) 2>/dev/null`
 
26819
                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
26820
                    found_dir="$dir"
 
26821
                    found_so="$dir/$libname$shrext.$ver"
 
26822
                  fi
 
26823
                else
 
26824
                  eval library_names=\"$acl_library_names_spec\"
 
26825
                  for f in $library_names; do
 
26826
                    if test -f "$dir/$f"; then
 
26827
                      found_dir="$dir"
 
26828
                      found_so="$dir/$f"
 
26829
                      break
 
26830
                    fi
 
26831
                  done
10265
26832
                fi
10266
26833
              fi
10267
26834
            fi
 
26835
                        if test "X$found_dir" = "X"; then
 
26836
              if test -f "$dir/$libname.$acl_libext"; then
 
26837
                found_dir="$dir"
 
26838
                found_a="$dir/$libname.$acl_libext"
 
26839
              fi
 
26840
            fi
 
26841
            if test "X$found_dir" != "X"; then
 
26842
              if test -f "$dir/$libname.la"; then
 
26843
                found_la="$dir/$libname.la"
 
26844
              fi
 
26845
            fi
10268
26846
          fi
10269
26847
          if test "X$found_dir" = "X"; then
10270
26848
            for x in $LDFLAGS $LTLIBGNUTLS; do
10280
26858
              case "$x" in
10281
26859
                -L*)
10282
26860
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
10283
 
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10284
 
                    found_dir="$dir"
10285
 
                    found_so="$dir/lib$name.$shlibext"
10286
 
                    if test -f "$dir/lib$name.la"; then
10287
 
                      found_la="$dir/lib$name.la"
10288
 
                    fi
10289
 
                  else
10290
 
                    if test -f "$dir/lib$name.$libext"; then
 
26861
                                    if test -n "$acl_shlibext"; then
 
26862
                    if test -f "$dir/$libname$shrext"; then
10291
26863
                      found_dir="$dir"
10292
 
                      found_a="$dir/lib$name.$libext"
10293
 
                      if test -f "$dir/lib$name.la"; then
10294
 
                        found_la="$dir/lib$name.la"
 
26864
                      found_so="$dir/$libname$shrext"
 
26865
                    else
 
26866
                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
26867
                        ver=`(cd "$dir" && \
 
26868
                              for f in "$libname$shrext".*; do echo "$f"; done \
 
26869
                              | sed -e "s,^$libname$shrext\\\\.,," \
 
26870
                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
26871
                              | sed 1q ) 2>/dev/null`
 
26872
                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
26873
                          found_dir="$dir"
 
26874
                          found_so="$dir/$libname$shrext.$ver"
 
26875
                        fi
 
26876
                      else
 
26877
                        eval library_names=\"$acl_library_names_spec\"
 
26878
                        for f in $library_names; do
 
26879
                          if test -f "$dir/$f"; then
 
26880
                            found_dir="$dir"
 
26881
                            found_so="$dir/$f"
 
26882
                            break
 
26883
                          fi
 
26884
                        done
10295
26885
                      fi
10296
26886
                    fi
10297
26887
                  fi
 
26888
                                    if test "X$found_dir" = "X"; then
 
26889
                    if test -f "$dir/$libname.$acl_libext"; then
 
26890
                      found_dir="$dir"
 
26891
                      found_a="$dir/$libname.$acl_libext"
 
26892
                    fi
 
26893
                  fi
 
26894
                  if test "X$found_dir" != "X"; then
 
26895
                    if test -f "$dir/$libname.la"; then
 
26896
                      found_la="$dir/$libname.la"
 
26897
                    fi
 
26898
                  fi
10298
26899
                  ;;
10299
26900
              esac
10300
26901
              if test "X$found_dir" != "X"; then
10305
26906
          if test "X$found_dir" != "X"; then
10306
26907
                        LTLIBGNUTLS="${LTLIBGNUTLS}${LTLIBGNUTLS:+ }-L$found_dir -l$name"
10307
26908
            if test "X$found_so" != "X"; then
10308
 
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
 
26909
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
10309
26910
                                LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$found_so"
10310
26911
              else
10311
26912
                                                                                haveit=
10318
26919
                if test -z "$haveit"; then
10319
26920
                  ltrpathdirs="$ltrpathdirs $found_dir"
10320
26921
                fi
10321
 
                                if test "$hardcode_direct" = yes; then
 
26922
                                if test "$acl_hardcode_direct" = yes; then
10322
26923
                                                      LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$found_so"
10323
26924
                else
10324
 
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
 
26925
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
10325
26926
                                                            LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$found_so"
10326
26927
                                                            haveit=
10327
26928
                    for x in $rpathdirs; do
10353
26954
                    if test -z "$haveit"; then
10354
26955
                      LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }-L$found_dir"
10355
26956
                    fi
10356
 
                    if test "$hardcode_minus_L" != no; then
 
26957
                    if test "$acl_hardcode_minus_L" != no; then
10357
26958
                                                                                        LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$found_so"
10358
26959
                    else
10359
26960
                                                                                                                                                                                LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }-l$name"
10370
26971
            fi
10371
26972
                        additional_includedir=
10372
26973
            case "$found_dir" in
10373
 
              */lib | */lib/)
10374
 
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
 
26974
              */$acl_libdirstem | */$acl_libdirstem/)
 
26975
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
 
26976
                LIBGNUTLS_PREFIX="$basedir"
10375
26977
                additional_includedir="$basedir/include"
10376
26978
                ;;
10377
26979
            esac
10420
27022
                case "$dep" in
10421
27023
                  -L*)
10422
27024
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10423
 
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
 
27025
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
10424
27026
                      haveit=
10425
 
                      if test "X$additional_libdir" = "X/usr/local/lib"; then
 
27027
                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
10426
27028
                        if test -n "$GCC"; then
10427
27029
                          case $host_os in
10428
27030
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10522
27124
    done
10523
27125
  done
10524
27126
  if test "X$rpathdirs" != "X"; then
10525
 
    if test -n "$hardcode_libdir_separator"; then
 
27127
    if test -n "$acl_hardcode_libdir_separator"; then
10526
27128
                        alldirs=
10527
27129
      for found_dir in $rpathdirs; do
10528
 
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
 
27130
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
10529
27131
      done
10530
27132
            acl_save_libdir="$libdir"
10531
27133
      libdir="$alldirs"
10532
 
      eval flag=\"$hardcode_libdir_flag_spec\"
 
27134
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
10533
27135
      libdir="$acl_save_libdir"
10534
27136
      LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$flag"
10535
27137
    else
10536
27138
            for found_dir in $rpathdirs; do
10537
27139
        acl_save_libdir="$libdir"
10538
27140
        libdir="$found_dir"
10539
 
        eval flag=\"$hardcode_libdir_flag_spec\"
 
27141
        eval flag=\"$acl_hardcode_libdir_flag_spec\"
10540
27142
        libdir="$acl_save_libdir"
10541
27143
        LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$flag"
10542
27144
      done
10574
27176
  done
10575
27177
 
10576
27178
 
10577
 
  { echo "$as_me:$LINENO: checking for libgnutls" >&5
10578
 
echo $ECHO_N "checking for libgnutls... $ECHO_C" >&6; }
 
27179
  { $as_echo "$as_me:$LINENO: checking for libgnutls" >&5
 
27180
$as_echo_n "checking for libgnutls... " >&6; }
10579
27181
if test "${ac_cv_libgnutls+set}" = set; then
10580
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27182
  $as_echo_n "(cached) " >&6
10581
27183
else
10582
27184
 
10583
27185
    ac_save_LIBS="$LIBS"
10605
27207
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10606
27208
  *) ac_try_echo=$ac_try;;
10607
27209
esac
10608
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
27210
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
27211
$as_echo "$ac_try_echo") >&5
10609
27212
  (eval "$ac_link") 2>conftest.er1
10610
27213
  ac_status=$?
10611
27214
  grep -v '^ *+' conftest.er1 >conftest.err
10612
27215
  rm -f conftest.er1
10613
27216
  cat conftest.err >&5
10614
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27217
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615
27218
  (exit $ac_status); } && {
10616
27219
         test -z "$ac_c_werror_flag" ||
10617
27220
         test ! -s conftest.err
10618
 
       } && test -s conftest$ac_exeext &&
10619
 
       $as_test_x conftest$ac_exeext; then
 
27221
       } && test -s conftest$ac_exeext && {
 
27222
         test "$cross_compiling" = yes ||
 
27223
         $as_test_x conftest$ac_exeext
 
27224
       }; then
10620
27225
  ac_cv_libgnutls=yes
10621
27226
else
10622
 
  echo "$as_me: failed program was:" >&5
 
27227
  $as_echo "$as_me: failed program was:" >&5
10623
27228
sed 's/^/| /' conftest.$ac_ext >&5
10624
27229
 
10625
27230
        ac_cv_libgnutls=no
10626
27231
fi
10627
27232
 
 
27233
rm -rf conftest.dSYM
10628
27234
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10629
27235
      conftest$ac_exeext conftest.$ac_ext
10630
27236
    LIBS="$ac_save_LIBS"
10631
27237
 
10632
27238
fi
10633
 
{ echo "$as_me:$LINENO: result: $ac_cv_libgnutls" >&5
10634
 
echo "${ECHO_T}$ac_cv_libgnutls" >&6; }
 
27239
{ $as_echo "$as_me:$LINENO: result: $ac_cv_libgnutls" >&5
 
27240
$as_echo "$ac_cv_libgnutls" >&6; }
10635
27241
  if test "$ac_cv_libgnutls" = yes; then
10636
27242
    HAVE_LIBGNUTLS=yes
10637
27243
 
10639
27245
#define HAVE_LIBGNUTLS 1
10640
27246
_ACEOF
10641
27247
 
10642
 
    { echo "$as_me:$LINENO: checking how to link with libgnutls" >&5
10643
 
echo $ECHO_N "checking how to link with libgnutls... $ECHO_C" >&6; }
10644
 
    { echo "$as_me:$LINENO: result: $LIBGNUTLS" >&5
10645
 
echo "${ECHO_T}$LIBGNUTLS" >&6; }
 
27248
    { $as_echo "$as_me:$LINENO: checking how to link with libgnutls" >&5
 
27249
$as_echo_n "checking how to link with libgnutls... " >&6; }
 
27250
    { $as_echo "$as_me:$LINENO: result: $LIBGNUTLS" >&5
 
27251
$as_echo "$LIBGNUTLS" >&6; }
10646
27252
  else
10647
27253
    HAVE_LIBGNUTLS=no
10648
27254
            CPPFLAGS="$ac_save_CPPFLAGS"
10649
27255
    LIBGNUTLS=
10650
27256
    LTLIBGNUTLS=
 
27257
    LIBGNUTLS_PREFIX=
10651
27258
  fi
10652
27259
 
10653
27260
 
10655
27262
 
10656
27263
 
10657
27264
 
 
27265
 
10658
27266
  if test x"$LIBGNUTLS" != x
10659
27267
  then
10660
 
    { echo "$as_me:$LINENO: compiling in support for SSL via GnuTLS" >&5
10661
 
echo "$as_me: compiling in support for SSL via GnuTLS" >&6;}
10662
 
    SSL_OBJ='gnutls.o'
 
27268
    { $as_echo "$as_me:$LINENO: compiling in support for SSL via GnuTLS" >&5
 
27269
$as_echo "$as_me: compiling in support for SSL via GnuTLS" >&6;}
 
27270
    case " $LIBOBJS " in
 
27271
  *" gnutls.$ac_objext "* ) ;;
 
27272
  *) LIBOBJS="$LIBOBJS gnutls.$ac_objext"
 
27273
 ;;
 
27274
esac
 
27275
 
10663
27276
  else
10664
 
    { { echo "$as_me:$LINENO: error: --with-ssl=gnutls was given, but GNUTLS is not available." >&5
10665
 
echo "$as_me: error: --with-ssl=gnutls was given, but GNUTLS is not available." >&2;}
 
27277
    { { $as_echo "$as_me:$LINENO: error: --with-ssl=gnutls was given, but GNUTLS is not available." >&5
 
27278
$as_echo "$as_me: error: --with-ssl=gnutls was given, but GNUTLS is not available." >&2;}
10666
27279
   { (exit 1); exit 1; }; }
10667
27280
  fi
10668
27281
 
10672
27285
  if test x"$with_ssl" != xno; then
10673
27286
 
10674
27287
 
10675
 
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10676
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
 
27288
{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
27289
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10677
27290
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10678
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27291
  $as_echo_n "(cached) " >&6
10679
27292
else
10680
27293
  ac_check_lib_save_LIBS=$LIBS
10681
27294
LIBS="-ldl  $LIBS"
10707
27320
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10708
27321
  *) ac_try_echo=$ac_try;;
10709
27322
esac
10710
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
27323
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
27324
$as_echo "$ac_try_echo") >&5
10711
27325
  (eval "$ac_link") 2>conftest.er1
10712
27326
  ac_status=$?
10713
27327
  grep -v '^ *+' conftest.er1 >conftest.err
10714
27328
  rm -f conftest.er1
10715
27329
  cat conftest.err >&5
10716
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27330
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717
27331
  (exit $ac_status); } && {
10718
27332
         test -z "$ac_c_werror_flag" ||
10719
27333
         test ! -s conftest.err
10720
 
       } && test -s conftest$ac_exeext &&
10721
 
       $as_test_x conftest$ac_exeext; then
 
27334
       } && test -s conftest$ac_exeext && {
 
27335
         test "$cross_compiling" = yes ||
 
27336
         $as_test_x conftest$ac_exeext
 
27337
       }; then
10722
27338
  ac_cv_lib_dl_dlopen=yes
10723
27339
else
10724
 
  echo "$as_me: failed program was:" >&5
 
27340
  $as_echo "$as_me: failed program was:" >&5
10725
27341
sed 's/^/| /' conftest.$ac_ext >&5
10726
27342
 
10727
27343
        ac_cv_lib_dl_dlopen=no
10728
27344
fi
10729
27345
 
 
27346
rm -rf conftest.dSYM
10730
27347
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10731
27348
      conftest$ac_exeext conftest.$ac_ext
10732
27349
LIBS=$ac_check_lib_save_LIBS
10733
27350
fi
10734
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10735
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10736
 
if test $ac_cv_lib_dl_dlopen = yes; then
 
27351
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
27352
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
27353
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10737
27354
  cat >>confdefs.h <<_ACEOF
10738
27355
#define HAVE_LIBDL 1
10739
27356
_ACEOF
10743
27360
else
10744
27361
 
10745
27362
 
10746
 
{ echo "$as_me:$LINENO: checking for shl_load in -ldl" >&5
10747
 
echo $ECHO_N "checking for shl_load in -ldl... $ECHO_C" >&6; }
 
27363
{ $as_echo "$as_me:$LINENO: checking for shl_load in -ldl" >&5
 
27364
$as_echo_n "checking for shl_load in -ldl... " >&6; }
10748
27365
if test "${ac_cv_lib_dl_shl_load+set}" = set; then
10749
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27366
  $as_echo_n "(cached) " >&6
10750
27367
else
10751
27368
  ac_check_lib_save_LIBS=$LIBS
10752
27369
LIBS="-ldl  $LIBS"
10778
27395
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10779
27396
  *) ac_try_echo=$ac_try;;
10780
27397
esac
10781
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
27398
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
27399
$as_echo "$ac_try_echo") >&5
10782
27400
  (eval "$ac_link") 2>conftest.er1
10783
27401
  ac_status=$?
10784
27402
  grep -v '^ *+' conftest.er1 >conftest.err
10785
27403
  rm -f conftest.er1
10786
27404
  cat conftest.err >&5
10787
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27405
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788
27406
  (exit $ac_status); } && {
10789
27407
         test -z "$ac_c_werror_flag" ||
10790
27408
         test ! -s conftest.err
10791
 
       } && test -s conftest$ac_exeext &&
10792
 
       $as_test_x conftest$ac_exeext; then
 
27409
       } && test -s conftest$ac_exeext && {
 
27410
         test "$cross_compiling" = yes ||
 
27411
         $as_test_x conftest$ac_exeext
 
27412
       }; then
10793
27413
  ac_cv_lib_dl_shl_load=yes
10794
27414
else
10795
 
  echo "$as_me: failed program was:" >&5
 
27415
  $as_echo "$as_me: failed program was:" >&5
10796
27416
sed 's/^/| /' conftest.$ac_ext >&5
10797
27417
 
10798
27418
        ac_cv_lib_dl_shl_load=no
10799
27419
fi
10800
27420
 
 
27421
rm -rf conftest.dSYM
10801
27422
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10802
27423
      conftest$ac_exeext conftest.$ac_ext
10803
27424
LIBS=$ac_check_lib_save_LIBS
10804
27425
fi
10805
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_shl_load" >&5
10806
 
echo "${ECHO_T}$ac_cv_lib_dl_shl_load" >&6; }
10807
 
if test $ac_cv_lib_dl_shl_load = yes; then
 
27426
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_shl_load" >&5
 
27427
$as_echo "$ac_cv_lib_dl_shl_load" >&6; }
 
27428
if test "x$ac_cv_lib_dl_shl_load" = x""yes; then
10808
27429
  cat >>confdefs.h <<_ACEOF
10809
27430
#define HAVE_LIBDL 1
10810
27431
_ACEOF
10825
27446
 
10826
27447
 
10827
27448
 
 
27449
 
 
27450
 
10828
27451
    use_additional=yes
10829
27452
 
10830
27453
  acl_save_prefix="$prefix"
10860
27483
 
10861
27484
      else
10862
27485
        additional_includedir="$withval/include"
10863
 
        additional_libdir="$withval/lib"
 
27486
        additional_libdir="$withval/$acl_libdirstem"
10864
27487
      fi
10865
27488
    fi
10866
27489
 
10869
27492
      LIBSSL=
10870
27493
  LTLIBSSL=
10871
27494
  INCSSL=
 
27495
  LIBSSL_PREFIX=
10872
27496
  rpathdirs=
10873
27497
  ltrpathdirs=
10874
27498
  names_already_handled=
10902
27526
          found_la=
10903
27527
          found_so=
10904
27528
          found_a=
 
27529
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
 
27530
          if test -n "$acl_shlibext"; then
 
27531
            shrext=".$acl_shlibext"             # typically: shrext=.so
 
27532
          else
 
27533
            shrext=
 
27534
          fi
10905
27535
          if test $use_additional = yes; then
10906
 
            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10907
 
              found_dir="$additional_libdir"
10908
 
              found_so="$additional_libdir/lib$name.$shlibext"
10909
 
              if test -f "$additional_libdir/lib$name.la"; then
10910
 
                found_la="$additional_libdir/lib$name.la"
10911
 
              fi
10912
 
            else
10913
 
              if test -f "$additional_libdir/lib$name.$libext"; then
10914
 
                found_dir="$additional_libdir"
10915
 
                found_a="$additional_libdir/lib$name.$libext"
10916
 
                if test -f "$additional_libdir/lib$name.la"; then
10917
 
                  found_la="$additional_libdir/lib$name.la"
 
27536
            dir="$additional_libdir"
 
27537
                                    if test -n "$acl_shlibext"; then
 
27538
              if test -f "$dir/$libname$shrext"; then
 
27539
                found_dir="$dir"
 
27540
                found_so="$dir/$libname$shrext"
 
27541
              else
 
27542
                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
27543
                  ver=`(cd "$dir" && \
 
27544
                        for f in "$libname$shrext".*; do echo "$f"; done \
 
27545
                        | sed -e "s,^$libname$shrext\\\\.,," \
 
27546
                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
27547
                        | sed 1q ) 2>/dev/null`
 
27548
                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
27549
                    found_dir="$dir"
 
27550
                    found_so="$dir/$libname$shrext.$ver"
 
27551
                  fi
 
27552
                else
 
27553
                  eval library_names=\"$acl_library_names_spec\"
 
27554
                  for f in $library_names; do
 
27555
                    if test -f "$dir/$f"; then
 
27556
                      found_dir="$dir"
 
27557
                      found_so="$dir/$f"
 
27558
                      break
 
27559
                    fi
 
27560
                  done
10918
27561
                fi
10919
27562
              fi
10920
27563
            fi
 
27564
                        if test "X$found_dir" = "X"; then
 
27565
              if test -f "$dir/$libname.$acl_libext"; then
 
27566
                found_dir="$dir"
 
27567
                found_a="$dir/$libname.$acl_libext"
 
27568
              fi
 
27569
            fi
 
27570
            if test "X$found_dir" != "X"; then
 
27571
              if test -f "$dir/$libname.la"; then
 
27572
                found_la="$dir/$libname.la"
 
27573
              fi
 
27574
            fi
10921
27575
          fi
10922
27576
          if test "X$found_dir" = "X"; then
10923
27577
            for x in $LDFLAGS $LTLIBSSL; do
10933
27587
              case "$x" in
10934
27588
                -L*)
10935
27589
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
10936
 
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10937
 
                    found_dir="$dir"
10938
 
                    found_so="$dir/lib$name.$shlibext"
10939
 
                    if test -f "$dir/lib$name.la"; then
10940
 
                      found_la="$dir/lib$name.la"
10941
 
                    fi
10942
 
                  else
10943
 
                    if test -f "$dir/lib$name.$libext"; then
 
27590
                                    if test -n "$acl_shlibext"; then
 
27591
                    if test -f "$dir/$libname$shrext"; then
10944
27592
                      found_dir="$dir"
10945
 
                      found_a="$dir/lib$name.$libext"
10946
 
                      if test -f "$dir/lib$name.la"; then
10947
 
                        found_la="$dir/lib$name.la"
 
27593
                      found_so="$dir/$libname$shrext"
 
27594
                    else
 
27595
                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
27596
                        ver=`(cd "$dir" && \
 
27597
                              for f in "$libname$shrext".*; do echo "$f"; done \
 
27598
                              | sed -e "s,^$libname$shrext\\\\.,," \
 
27599
                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
27600
                              | sed 1q ) 2>/dev/null`
 
27601
                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
27602
                          found_dir="$dir"
 
27603
                          found_so="$dir/$libname$shrext.$ver"
 
27604
                        fi
 
27605
                      else
 
27606
                        eval library_names=\"$acl_library_names_spec\"
 
27607
                        for f in $library_names; do
 
27608
                          if test -f "$dir/$f"; then
 
27609
                            found_dir="$dir"
 
27610
                            found_so="$dir/$f"
 
27611
                            break
 
27612
                          fi
 
27613
                        done
10948
27614
                      fi
10949
27615
                    fi
10950
27616
                  fi
 
27617
                                    if test "X$found_dir" = "X"; then
 
27618
                    if test -f "$dir/$libname.$acl_libext"; then
 
27619
                      found_dir="$dir"
 
27620
                      found_a="$dir/$libname.$acl_libext"
 
27621
                    fi
 
27622
                  fi
 
27623
                  if test "X$found_dir" != "X"; then
 
27624
                    if test -f "$dir/$libname.la"; then
 
27625
                      found_la="$dir/$libname.la"
 
27626
                    fi
 
27627
                  fi
10951
27628
                  ;;
10952
27629
              esac
10953
27630
              if test "X$found_dir" != "X"; then
10958
27635
          if test "X$found_dir" != "X"; then
10959
27636
                        LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }-L$found_dir -l$name"
10960
27637
            if test "X$found_so" != "X"; then
10961
 
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
 
27638
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
10962
27639
                                LIBSSL="${LIBSSL}${LIBSSL:+ }$found_so"
10963
27640
              else
10964
27641
                                                                                haveit=
10971
27648
                if test -z "$haveit"; then
10972
27649
                  ltrpathdirs="$ltrpathdirs $found_dir"
10973
27650
                fi
10974
 
                                if test "$hardcode_direct" = yes; then
 
27651
                                if test "$acl_hardcode_direct" = yes; then
10975
27652
                                                      LIBSSL="${LIBSSL}${LIBSSL:+ }$found_so"
10976
27653
                else
10977
 
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
 
27654
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
10978
27655
                                                            LIBSSL="${LIBSSL}${LIBSSL:+ }$found_so"
10979
27656
                                                            haveit=
10980
27657
                    for x in $rpathdirs; do
11006
27683
                    if test -z "$haveit"; then
11007
27684
                      LIBSSL="${LIBSSL}${LIBSSL:+ }-L$found_dir"
11008
27685
                    fi
11009
 
                    if test "$hardcode_minus_L" != no; then
 
27686
                    if test "$acl_hardcode_minus_L" != no; then
11010
27687
                                                                                        LIBSSL="${LIBSSL}${LIBSSL:+ }$found_so"
11011
27688
                    else
11012
27689
                                                                                                                                                                                LIBSSL="${LIBSSL}${LIBSSL:+ }-l$name"
11023
27700
            fi
11024
27701
                        additional_includedir=
11025
27702
            case "$found_dir" in
11026
 
              */lib | */lib/)
11027
 
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
 
27703
              */$acl_libdirstem | */$acl_libdirstem/)
 
27704
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
 
27705
                LIBSSL_PREFIX="$basedir"
11028
27706
                additional_includedir="$basedir/include"
11029
27707
                ;;
11030
27708
            esac
11073
27751
                case "$dep" in
11074
27752
                  -L*)
11075
27753
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11076
 
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
 
27754
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
11077
27755
                      haveit=
11078
 
                      if test "X$additional_libdir" = "X/usr/local/lib"; then
 
27756
                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
11079
27757
                        if test -n "$GCC"; then
11080
27758
                          case $host_os in
11081
27759
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11175
27853
    done
11176
27854
  done
11177
27855
  if test "X$rpathdirs" != "X"; then
11178
 
    if test -n "$hardcode_libdir_separator"; then
 
27856
    if test -n "$acl_hardcode_libdir_separator"; then
11179
27857
                        alldirs=
11180
27858
      for found_dir in $rpathdirs; do
11181
 
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
 
27859
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11182
27860
      done
11183
27861
            acl_save_libdir="$libdir"
11184
27862
      libdir="$alldirs"
11185
 
      eval flag=\"$hardcode_libdir_flag_spec\"
 
27863
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
11186
27864
      libdir="$acl_save_libdir"
11187
27865
      LIBSSL="${LIBSSL}${LIBSSL:+ }$flag"
11188
27866
    else
11189
27867
            for found_dir in $rpathdirs; do
11190
27868
        acl_save_libdir="$libdir"
11191
27869
        libdir="$found_dir"
11192
 
        eval flag=\"$hardcode_libdir_flag_spec\"
 
27870
        eval flag=\"$acl_hardcode_libdir_flag_spec\"
11193
27871
        libdir="$acl_save_libdir"
11194
27872
        LIBSSL="${LIBSSL}${LIBSSL:+ }$flag"
11195
27873
      done
11227
27905
  done
11228
27906
 
11229
27907
 
11230
 
  { echo "$as_me:$LINENO: checking for libssl" >&5
11231
 
echo $ECHO_N "checking for libssl... $ECHO_C" >&6; }
 
27908
  { $as_echo "$as_me:$LINENO: checking for libssl" >&5
 
27909
$as_echo_n "checking for libssl... " >&6; }
11232
27910
if test "${ac_cv_libssl+set}" = set; then
11233
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27911
  $as_echo_n "(cached) " >&6
11234
27912
else
11235
27913
 
11236
27914
    ac_save_LIBS="$LIBS"
11264
27942
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11265
27943
  *) ac_try_echo=$ac_try;;
11266
27944
esac
11267
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
27945
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
27946
$as_echo "$ac_try_echo") >&5
11268
27947
  (eval "$ac_link") 2>conftest.er1
11269
27948
  ac_status=$?
11270
27949
  grep -v '^ *+' conftest.er1 >conftest.err
11271
27950
  rm -f conftest.er1
11272
27951
  cat conftest.err >&5
11273
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27952
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274
27953
  (exit $ac_status); } && {
11275
27954
         test -z "$ac_c_werror_flag" ||
11276
27955
         test ! -s conftest.err
11277
 
       } && test -s conftest$ac_exeext &&
11278
 
       $as_test_x conftest$ac_exeext; then
 
27956
       } && test -s conftest$ac_exeext && {
 
27957
         test "$cross_compiling" = yes ||
 
27958
         $as_test_x conftest$ac_exeext
 
27959
       }; then
11279
27960
  ac_cv_libssl=yes
11280
27961
else
11281
 
  echo "$as_me: failed program was:" >&5
 
27962
  $as_echo "$as_me: failed program was:" >&5
11282
27963
sed 's/^/| /' conftest.$ac_ext >&5
11283
27964
 
11284
27965
        ac_cv_libssl=no
11285
27966
fi
11286
27967
 
 
27968
rm -rf conftest.dSYM
11287
27969
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11288
27970
      conftest$ac_exeext conftest.$ac_ext
11289
27971
    LIBS="$ac_save_LIBS"
11290
27972
 
11291
27973
fi
11292
 
{ echo "$as_me:$LINENO: result: $ac_cv_libssl" >&5
11293
 
echo "${ECHO_T}$ac_cv_libssl" >&6; }
 
27974
{ $as_echo "$as_me:$LINENO: result: $ac_cv_libssl" >&5
 
27975
$as_echo "$ac_cv_libssl" >&6; }
11294
27976
  if test "$ac_cv_libssl" = yes; then
11295
27977
    HAVE_LIBSSL=yes
11296
27978
 
11298
27980
#define HAVE_LIBSSL 1
11299
27981
_ACEOF
11300
27982
 
11301
 
    { echo "$as_me:$LINENO: checking how to link with libssl" >&5
11302
 
echo $ECHO_N "checking how to link with libssl... $ECHO_C" >&6; }
11303
 
    { echo "$as_me:$LINENO: result: $LIBSSL" >&5
11304
 
echo "${ECHO_T}$LIBSSL" >&6; }
 
27983
    { $as_echo "$as_me:$LINENO: checking how to link with libssl" >&5
 
27984
$as_echo_n "checking how to link with libssl... " >&6; }
 
27985
    { $as_echo "$as_me:$LINENO: result: $LIBSSL" >&5
 
27986
$as_echo "$LIBSSL" >&6; }
11305
27987
  else
11306
27988
    HAVE_LIBSSL=no
11307
27989
            CPPFLAGS="$ac_save_CPPFLAGS"
11308
27990
    LIBSSL=
11309
27991
    LTLIBSSL=
 
27992
    LIBSSL_PREFIX=
11310
27993
  fi
11311
27994
 
11312
27995
 
11314
27997
 
11315
27998
 
11316
27999
 
 
28000
 
11317
28001
    if test x"$LIBSSL" != x
11318
28002
    then
11319
 
      { echo "$as_me:$LINENO: compiling in support for SSL via OpenSSL" >&5
11320
 
echo "$as_me: compiling in support for SSL via OpenSSL" >&6;}
11321
 
      SSL_OBJ='openssl.o'
 
28003
      { $as_echo "$as_me:$LINENO: compiling in support for SSL via OpenSSL" >&5
 
28004
$as_echo "$as_me: compiling in support for SSL via OpenSSL" >&6;}
 
28005
      case " $LIBOBJS " in
 
28006
  *" openssl.$ac_objext "* ) ;;
 
28007
  *) LIBOBJS="$LIBOBJS openssl.$ac_objext"
 
28008
 ;;
 
28009
esac
 
28010
 
11322
28011
    elif test x"$with_ssl" != x
11323
28012
    then
11324
 
      { { echo "$as_me:$LINENO: error: --with-ssl was given, but SSL is not available." >&5
11325
 
echo "$as_me: error: --with-ssl was given, but SSL is not available." >&2;}
 
28013
      { { $as_echo "$as_me:$LINENO: error: --with-ssl was given, but SSL is not available." >&5
 
28014
$as_echo "$as_me: error: --with-ssl was given, but SSL is not available." >&2;}
11326
28015
   { (exit 1); exit 1; }; }
11327
28016
    fi
11328
28017
 
11333
28022
 # endif: --with-ssl == gnutls?
11334
28023
 
11335
28024
 
11336
 
 
11337
 
NTLM_OBJ=''
11338
28025
if test x"$LIBSSL" != x
11339
28026
then
11340
28027
  if test x"$ENABLE_NTLM" != xno
11344
28031
#define ENABLE_NTLM 1
11345
28032
_ACEOF
11346
28033
 
11347
 
    NTLM_OBJ='http-ntlm.o'
 
28034
    case " $LIBOBJS " in
 
28035
  *" http-ntlm.$ac_objext "* ) ;;
 
28036
  *) LIBOBJS="$LIBOBJS http-ntlm.$ac_objext"
 
28037
 ;;
 
28038
esac
 
28039
 
11348
28040
  fi
11349
28041
else
11350
28042
      if test x"$ENABLE_NTLM" = xyes
11351
28043
  then
11352
 
    { { echo "$as_me:$LINENO: error: NTLM authorization requested and OpenSSL not found; aborting" >&5
11353
 
echo "$as_me: error: NTLM authorization requested and OpenSSL not found; aborting" >&2;}
 
28044
    { { $as_echo "$as_me:$LINENO: error: NTLM authorization requested and OpenSSL not found; aborting" >&5
 
28045
$as_echo "$as_me: error: NTLM authorization requested and OpenSSL not found; aborting" >&2;}
11354
28046
   { (exit 1); exit 1; }; }
11355
28047
  fi
11356
28048
fi
11357
28049
 
11358
28050
 
11359
 
 
11360
28051
if test x"$wget_need_md5" = xyes
11361
28052
then
11362
28053
 
11363
 
  MD5_OBJ='gen-md5.o'
 
28054
  case " $LIBOBJS " in
 
28055
  *" gen-md5.$ac_objext "* ) ;;
 
28056
  *) LIBOBJS="$LIBOBJS gen-md5.$ac_objext"
 
28057
 ;;
 
28058
esac
 
28059
 
11364
28060
  found_md5=no
11365
28061
 
11366
28062
            if test x"$found_md5" = xno; then
11367
 
    { echo "$as_me:$LINENO: checking for md5_calc in -lmd5" >&5
11368
 
echo $ECHO_N "checking for md5_calc in -lmd5... $ECHO_C" >&6; }
 
28063
    { $as_echo "$as_me:$LINENO: checking for md5_calc in -lmd5" >&5
 
28064
$as_echo_n "checking for md5_calc in -lmd5... " >&6; }
11369
28065
if test "${ac_cv_lib_md5_md5_calc+set}" = set; then
11370
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28066
  $as_echo_n "(cached) " >&6
11371
28067
else
11372
28068
  ac_check_lib_save_LIBS=$LIBS
11373
28069
LIBS="-lmd5  $LIBS"
11399
28095
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11400
28096
  *) ac_try_echo=$ac_try;;
11401
28097
esac
11402
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
28098
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
28099
$as_echo "$ac_try_echo") >&5
11403
28100
  (eval "$ac_link") 2>conftest.er1
11404
28101
  ac_status=$?
11405
28102
  grep -v '^ *+' conftest.er1 >conftest.err
11406
28103
  rm -f conftest.er1
11407
28104
  cat conftest.err >&5
11408
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28105
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409
28106
  (exit $ac_status); } && {
11410
28107
         test -z "$ac_c_werror_flag" ||
11411
28108
         test ! -s conftest.err
11412
 
       } && test -s conftest$ac_exeext &&
11413
 
       $as_test_x conftest$ac_exeext; then
 
28109
       } && test -s conftest$ac_exeext && {
 
28110
         test "$cross_compiling" = yes ||
 
28111
         $as_test_x conftest$ac_exeext
 
28112
       }; then
11414
28113
  ac_cv_lib_md5_md5_calc=yes
11415
28114
else
11416
 
  echo "$as_me: failed program was:" >&5
 
28115
  $as_echo "$as_me: failed program was:" >&5
11417
28116
sed 's/^/| /' conftest.$ac_ext >&5
11418
28117
 
11419
28118
        ac_cv_lib_md5_md5_calc=no
11420
28119
fi
11421
28120
 
 
28121
rm -rf conftest.dSYM
11422
28122
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11423
28123
      conftest$ac_exeext conftest.$ac_ext
11424
28124
LIBS=$ac_check_lib_save_LIBS
11425
28125
fi
11426
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_md5_md5_calc" >&5
11427
 
echo "${ECHO_T}$ac_cv_lib_md5_md5_calc" >&6; }
11428
 
if test $ac_cv_lib_md5_md5_calc = yes; then
 
28126
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_md5_md5_calc" >&5
 
28127
$as_echo "$ac_cv_lib_md5_md5_calc" >&6; }
 
28128
if test "x$ac_cv_lib_md5_md5_calc" = x""yes; then
11429
28129
 
11430
 
                  { echo "$as_me:$LINENO: checking for working md5.h" >&5
11431
 
echo $ECHO_N "checking for working md5.h... $ECHO_C" >&6; }
 
28130
                  { $as_echo "$as_me:$LINENO: checking for working md5.h" >&5
 
28131
$as_echo_n "checking for working md5.h... " >&6; }
11432
28132
      cat >conftest.$ac_ext <<_ACEOF
11433
28133
#include <md5.h>
11434
28134
 
11439
28139
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11440
28140
  *) ac_try_echo=$ac_try;;
11441
28141
esac
11442
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
28142
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
28143
$as_echo "$ac_try_echo") >&5
11443
28144
  (eval "$ac_compile") 2>conftest.er1
11444
28145
  ac_status=$?
11445
28146
  grep -v '^ *+' conftest.er1 >conftest.err
11446
28147
  rm -f conftest.er1
11447
28148
  cat conftest.err >&5
11448
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28149
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449
28150
  (exit $ac_status); } && {
11450
28151
         test -z "$ac_c_werror_flag" ||
11451
28152
         test ! -s conftest.err
11452
28153
       } && test -s conftest.$ac_objext; then
11453
28154
 
11454
 
        { echo "$as_me:$LINENO: result: yes" >&5
11455
 
echo "${ECHO_T}yes" >&6; }
 
28155
        { $as_echo "$as_me:$LINENO: result: yes" >&5
 
28156
$as_echo "yes" >&6; }
11456
28157
 
11457
28158
cat >>confdefs.h <<\_ACEOF
11458
28159
#define HAVE_SOLARIS_MD5 1
11460
28161
 
11461
28162
        LIBS="-lmd5 $LIBS"
11462
28163
        found_md5=yes
11463
 
        { echo "$as_me:$LINENO: using the Solaris MD5 implementation" >&5
11464
 
echo "$as_me: using the Solaris MD5 implementation" >&6;}
 
28164
        { $as_echo "$as_me:$LINENO: using the Solaris MD5 implementation" >&5
 
28165
$as_echo "$as_me: using the Solaris MD5 implementation" >&6;}
11465
28166
 
11466
28167
else
11467
 
  echo "$as_me: failed program was:" >&5
 
28168
  $as_echo "$as_me: failed program was:" >&5
11468
28169
sed 's/^/| /' conftest.$ac_ext >&5
11469
28170
 
11470
 
        { echo "$as_me:$LINENO: result: no" >&5
11471
 
echo "${ECHO_T}no" >&6; }
 
28171
        { $as_echo "$as_me:$LINENO: result: no" >&5
 
28172
$as_echo "no" >&6; }
11472
28173
fi
11473
28174
 
11474
28175
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11485
28186
_ACEOF
11486
28187
 
11487
28188
      found_md5=yes
11488
 
      { echo "$as_me:$LINENO: using the OpenSSL MD5 implementation" >&5
11489
 
echo "$as_me: using the OpenSSL MD5 implementation" >&6;}
 
28189
      { $as_echo "$as_me:$LINENO: using the OpenSSL MD5 implementation" >&5
 
28190
$as_echo "$as_me: using the OpenSSL MD5 implementation" >&6;}
11490
28191
    fi
11491
28192
  fi
11492
28193
 
11496
28197
#define HAVE_BUILTIN_MD5 1
11497
28198
_ACEOF
11498
28199
 
11499
 
    MD5_OBJ="$MD5_OBJ gnu-md5.o"
11500
28200
    found_md5=yes
11501
 
    { echo "$as_me:$LINENO: using the built-in (GNU) MD5 implementation" >&5
11502
 
echo "$as_me: using the built-in (GNU) MD5 implementation" >&6;}
11503
 
    { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
11504
 
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
11505
 
if test "${ac_cv_c_bigendian+set}" = set; then
11506
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11507
 
else
11508
 
  # See if sys/param.h defines the BYTE_ORDER macro.
11509
 
cat >conftest.$ac_ext <<_ACEOF
11510
 
/* confdefs.h.  */
11511
 
_ACEOF
11512
 
cat confdefs.h >>conftest.$ac_ext
11513
 
cat >>conftest.$ac_ext <<_ACEOF
11514
 
/* end confdefs.h.  */
11515
 
#include <sys/types.h>
11516
 
#include <sys/param.h>
11517
 
 
11518
 
int
11519
 
main ()
11520
 
{
11521
 
#if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
11522
 
        && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
11523
 
 bogus endian macros
11524
 
#endif
11525
 
 
11526
 
  ;
11527
 
  return 0;
11528
 
}
11529
 
_ACEOF
11530
 
rm -f conftest.$ac_objext
11531
 
if { (ac_try="$ac_compile"
11532
 
case "(($ac_try" in
11533
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11534
 
  *) ac_try_echo=$ac_try;;
11535
 
esac
11536
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11537
 
  (eval "$ac_compile") 2>conftest.er1
11538
 
  ac_status=$?
11539
 
  grep -v '^ *+' conftest.er1 >conftest.err
11540
 
  rm -f conftest.er1
11541
 
  cat conftest.err >&5
11542
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543
 
  (exit $ac_status); } && {
11544
 
         test -z "$ac_c_werror_flag" ||
11545
 
         test ! -s conftest.err
11546
 
       } && test -s conftest.$ac_objext; then
11547
 
  # It does; now see whether it defined to BIG_ENDIAN or not.
11548
 
cat >conftest.$ac_ext <<_ACEOF
11549
 
/* confdefs.h.  */
11550
 
_ACEOF
11551
 
cat confdefs.h >>conftest.$ac_ext
11552
 
cat >>conftest.$ac_ext <<_ACEOF
11553
 
/* end confdefs.h.  */
11554
 
#include <sys/types.h>
11555
 
#include <sys/param.h>
11556
 
 
11557
 
int
11558
 
main ()
11559
 
{
11560
 
#if BYTE_ORDER != BIG_ENDIAN
11561
 
 not big endian
11562
 
#endif
11563
 
 
11564
 
  ;
11565
 
  return 0;
11566
 
}
11567
 
_ACEOF
11568
 
rm -f conftest.$ac_objext
11569
 
if { (ac_try="$ac_compile"
11570
 
case "(($ac_try" in
11571
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11572
 
  *) ac_try_echo=$ac_try;;
11573
 
esac
11574
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11575
 
  (eval "$ac_compile") 2>conftest.er1
11576
 
  ac_status=$?
11577
 
  grep -v '^ *+' conftest.er1 >conftest.err
11578
 
  rm -f conftest.er1
11579
 
  cat conftest.err >&5
11580
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581
 
  (exit $ac_status); } && {
11582
 
         test -z "$ac_c_werror_flag" ||
11583
 
         test ! -s conftest.err
11584
 
       } && test -s conftest.$ac_objext; then
11585
 
  ac_cv_c_bigendian=yes
11586
 
else
11587
 
  echo "$as_me: failed program was:" >&5
11588
 
sed 's/^/| /' conftest.$ac_ext >&5
11589
 
 
11590
 
        ac_cv_c_bigendian=no
11591
 
fi
11592
 
 
11593
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11594
 
else
11595
 
  echo "$as_me: failed program was:" >&5
11596
 
sed 's/^/| /' conftest.$ac_ext >&5
11597
 
 
11598
 
        # It does not; compile a test program.
11599
 
if test "$cross_compiling" = yes; then
11600
 
  # try to guess the endianness by grepping values into an object file
11601
 
  ac_cv_c_bigendian=unknown
11602
 
  cat >conftest.$ac_ext <<_ACEOF
11603
 
/* confdefs.h.  */
11604
 
_ACEOF
11605
 
cat confdefs.h >>conftest.$ac_ext
11606
 
cat >>conftest.$ac_ext <<_ACEOF
11607
 
/* end confdefs.h.  */
11608
 
short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11609
 
short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11610
 
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
11611
 
short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11612
 
short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11613
 
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
11614
 
int
11615
 
main ()
11616
 
{
11617
 
 _ascii (); _ebcdic ();
11618
 
  ;
11619
 
  return 0;
11620
 
}
11621
 
_ACEOF
11622
 
rm -f conftest.$ac_objext
11623
 
if { (ac_try="$ac_compile"
11624
 
case "(($ac_try" in
11625
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11626
 
  *) ac_try_echo=$ac_try;;
11627
 
esac
11628
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11629
 
  (eval "$ac_compile") 2>conftest.er1
11630
 
  ac_status=$?
11631
 
  grep -v '^ *+' conftest.er1 >conftest.err
11632
 
  rm -f conftest.er1
11633
 
  cat conftest.err >&5
11634
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635
 
  (exit $ac_status); } && {
11636
 
         test -z "$ac_c_werror_flag" ||
11637
 
         test ! -s conftest.err
11638
 
       } && test -s conftest.$ac_objext; then
11639
 
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
11640
 
  ac_cv_c_bigendian=yes
11641
 
fi
11642
 
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11643
 
  if test "$ac_cv_c_bigendian" = unknown; then
11644
 
    ac_cv_c_bigendian=no
11645
 
  else
11646
 
    # finding both strings is unlikely to happen, but who knows?
11647
 
    ac_cv_c_bigendian=unknown
11648
 
  fi
11649
 
fi
11650
 
else
11651
 
  echo "$as_me: failed program was:" >&5
11652
 
sed 's/^/| /' conftest.$ac_ext >&5
11653
 
 
11654
 
 
11655
 
fi
11656
 
 
11657
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11658
 
else
11659
 
  cat >conftest.$ac_ext <<_ACEOF
11660
 
/* confdefs.h.  */
11661
 
_ACEOF
11662
 
cat confdefs.h >>conftest.$ac_ext
11663
 
cat >>conftest.$ac_ext <<_ACEOF
11664
 
/* end confdefs.h.  */
11665
 
$ac_includes_default
11666
 
int
11667
 
main ()
11668
 
{
11669
 
 
11670
 
  /* Are we little or big endian?  From Harbison&Steele.  */
11671
 
  union
 
28201
    { $as_echo "$as_me:$LINENO: using the built-in (GNU) MD5 implementation" >&5
 
28202
$as_echo "$as_me: using the built-in (GNU) MD5 implementation" >&6;}
 
28203
 
 
28204
 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
 
28205
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
 
28206
if test "${ac_cv_c_bigendian+set}" = set; then
 
28207
  $as_echo_n "(cached) " >&6
 
28208
else
 
28209
  ac_cv_c_bigendian=unknown
 
28210
    # See if we're dealing with a universal compiler.
 
28211
    cat >conftest.$ac_ext <<_ACEOF
 
28212
/* confdefs.h.  */
 
28213
_ACEOF
 
28214
cat confdefs.h >>conftest.$ac_ext
 
28215
cat >>conftest.$ac_ext <<_ACEOF
 
28216
/* end confdefs.h.  */
 
28217
#ifndef __APPLE_CC__
 
28218
               not a universal capable compiler
 
28219
             #endif
 
28220
             typedef int dummy;
 
28221
 
 
28222
_ACEOF
 
28223
rm -f conftest.$ac_objext
 
28224
if { (ac_try="$ac_compile"
 
28225
case "(($ac_try" in
 
28226
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28227
  *) ac_try_echo=$ac_try;;
 
28228
esac
 
28229
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
28230
$as_echo "$ac_try_echo") >&5
 
28231
  (eval "$ac_compile") 2>conftest.er1
 
28232
  ac_status=$?
 
28233
  grep -v '^ *+' conftest.er1 >conftest.err
 
28234
  rm -f conftest.er1
 
28235
  cat conftest.err >&5
 
28236
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28237
  (exit $ac_status); } && {
 
28238
         test -z "$ac_c_werror_flag" ||
 
28239
         test ! -s conftest.err
 
28240
       } && test -s conftest.$ac_objext; then
 
28241
 
 
28242
        # Check for potential -arch flags.  It is not universal unless
 
28243
        # there are some -arch flags.  Note that *ppc* also matches
 
28244
        # ppc64.  This check is also rather less than ideal.
 
28245
        case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
 
28246
          *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
 
28247
        esac
 
28248
else
 
28249
  $as_echo "$as_me: failed program was:" >&5
 
28250
sed 's/^/| /' conftest.$ac_ext >&5
 
28251
 
 
28252
 
 
28253
fi
 
28254
 
 
28255
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
28256
    if test $ac_cv_c_bigendian = unknown; then
 
28257
      # See if sys/param.h defines the BYTE_ORDER macro.
 
28258
      cat >conftest.$ac_ext <<_ACEOF
 
28259
/* confdefs.h.  */
 
28260
_ACEOF
 
28261
cat confdefs.h >>conftest.$ac_ext
 
28262
cat >>conftest.$ac_ext <<_ACEOF
 
28263
/* end confdefs.h.  */
 
28264
#include <sys/types.h>
 
28265
             #include <sys/param.h>
 
28266
 
 
28267
int
 
28268
main ()
 
28269
{
 
28270
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
 
28271
                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
 
28272
                     && LITTLE_ENDIAN)
 
28273
              bogus endian macros
 
28274
             #endif
 
28275
 
 
28276
  ;
 
28277
  return 0;
 
28278
}
 
28279
_ACEOF
 
28280
rm -f conftest.$ac_objext
 
28281
if { (ac_try="$ac_compile"
 
28282
case "(($ac_try" in
 
28283
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28284
  *) ac_try_echo=$ac_try;;
 
28285
esac
 
28286
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
28287
$as_echo "$ac_try_echo") >&5
 
28288
  (eval "$ac_compile") 2>conftest.er1
 
28289
  ac_status=$?
 
28290
  grep -v '^ *+' conftest.er1 >conftest.err
 
28291
  rm -f conftest.er1
 
28292
  cat conftest.err >&5
 
28293
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28294
  (exit $ac_status); } && {
 
28295
         test -z "$ac_c_werror_flag" ||
 
28296
         test ! -s conftest.err
 
28297
       } && test -s conftest.$ac_objext; then
 
28298
  # It does; now see whether it defined to BIG_ENDIAN or not.
 
28299
         cat >conftest.$ac_ext <<_ACEOF
 
28300
/* confdefs.h.  */
 
28301
_ACEOF
 
28302
cat confdefs.h >>conftest.$ac_ext
 
28303
cat >>conftest.$ac_ext <<_ACEOF
 
28304
/* end confdefs.h.  */
 
28305
#include <sys/types.h>
 
28306
                #include <sys/param.h>
 
28307
 
 
28308
int
 
28309
main ()
 
28310
{
 
28311
#if BYTE_ORDER != BIG_ENDIAN
 
28312
                 not big endian
 
28313
                #endif
 
28314
 
 
28315
  ;
 
28316
  return 0;
 
28317
}
 
28318
_ACEOF
 
28319
rm -f conftest.$ac_objext
 
28320
if { (ac_try="$ac_compile"
 
28321
case "(($ac_try" in
 
28322
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28323
  *) ac_try_echo=$ac_try;;
 
28324
esac
 
28325
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
28326
$as_echo "$ac_try_echo") >&5
 
28327
  (eval "$ac_compile") 2>conftest.er1
 
28328
  ac_status=$?
 
28329
  grep -v '^ *+' conftest.er1 >conftest.err
 
28330
  rm -f conftest.er1
 
28331
  cat conftest.err >&5
 
28332
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28333
  (exit $ac_status); } && {
 
28334
         test -z "$ac_c_werror_flag" ||
 
28335
         test ! -s conftest.err
 
28336
       } && test -s conftest.$ac_objext; then
 
28337
  ac_cv_c_bigendian=yes
 
28338
else
 
28339
  $as_echo "$as_me: failed program was:" >&5
 
28340
sed 's/^/| /' conftest.$ac_ext >&5
 
28341
 
 
28342
        ac_cv_c_bigendian=no
 
28343
fi
 
28344
 
 
28345
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
28346
else
 
28347
  $as_echo "$as_me: failed program was:" >&5
 
28348
sed 's/^/| /' conftest.$ac_ext >&5
 
28349
 
 
28350
 
 
28351
fi
 
28352
 
 
28353
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
28354
    fi
 
28355
    if test $ac_cv_c_bigendian = unknown; then
 
28356
      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
 
28357
      cat >conftest.$ac_ext <<_ACEOF
 
28358
/* confdefs.h.  */
 
28359
_ACEOF
 
28360
cat confdefs.h >>conftest.$ac_ext
 
28361
cat >>conftest.$ac_ext <<_ACEOF
 
28362
/* end confdefs.h.  */
 
28363
#include <limits.h>
 
28364
 
 
28365
int
 
28366
main ()
 
28367
{
 
28368
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
 
28369
              bogus endian macros
 
28370
             #endif
 
28371
 
 
28372
  ;
 
28373
  return 0;
 
28374
}
 
28375
_ACEOF
 
28376
rm -f conftest.$ac_objext
 
28377
if { (ac_try="$ac_compile"
 
28378
case "(($ac_try" in
 
28379
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28380
  *) ac_try_echo=$ac_try;;
 
28381
esac
 
28382
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
28383
$as_echo "$ac_try_echo") >&5
 
28384
  (eval "$ac_compile") 2>conftest.er1
 
28385
  ac_status=$?
 
28386
  grep -v '^ *+' conftest.er1 >conftest.err
 
28387
  rm -f conftest.er1
 
28388
  cat conftest.err >&5
 
28389
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28390
  (exit $ac_status); } && {
 
28391
         test -z "$ac_c_werror_flag" ||
 
28392
         test ! -s conftest.err
 
28393
       } && test -s conftest.$ac_objext; then
 
28394
  # It does; now see whether it defined to _BIG_ENDIAN or not.
 
28395
         cat >conftest.$ac_ext <<_ACEOF
 
28396
/* confdefs.h.  */
 
28397
_ACEOF
 
28398
cat confdefs.h >>conftest.$ac_ext
 
28399
cat >>conftest.$ac_ext <<_ACEOF
 
28400
/* end confdefs.h.  */
 
28401
#include <limits.h>
 
28402
 
 
28403
int
 
28404
main ()
 
28405
{
 
28406
#ifndef _BIG_ENDIAN
 
28407
                 not big endian
 
28408
                #endif
 
28409
 
 
28410
  ;
 
28411
  return 0;
 
28412
}
 
28413
_ACEOF
 
28414
rm -f conftest.$ac_objext
 
28415
if { (ac_try="$ac_compile"
 
28416
case "(($ac_try" in
 
28417
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28418
  *) ac_try_echo=$ac_try;;
 
28419
esac
 
28420
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
28421
$as_echo "$ac_try_echo") >&5
 
28422
  (eval "$ac_compile") 2>conftest.er1
 
28423
  ac_status=$?
 
28424
  grep -v '^ *+' conftest.er1 >conftest.err
 
28425
  rm -f conftest.er1
 
28426
  cat conftest.err >&5
 
28427
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28428
  (exit $ac_status); } && {
 
28429
         test -z "$ac_c_werror_flag" ||
 
28430
         test ! -s conftest.err
 
28431
       } && test -s conftest.$ac_objext; then
 
28432
  ac_cv_c_bigendian=yes
 
28433
else
 
28434
  $as_echo "$as_me: failed program was:" >&5
 
28435
sed 's/^/| /' conftest.$ac_ext >&5
 
28436
 
 
28437
        ac_cv_c_bigendian=no
 
28438
fi
 
28439
 
 
28440
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
28441
else
 
28442
  $as_echo "$as_me: failed program was:" >&5
 
28443
sed 's/^/| /' conftest.$ac_ext >&5
 
28444
 
 
28445
 
 
28446
fi
 
28447
 
 
28448
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
28449
    fi
 
28450
    if test $ac_cv_c_bigendian = unknown; then
 
28451
      # Compile a test program.
 
28452
      if test "$cross_compiling" = yes; then
 
28453
  # Try to guess by grepping values from an object file.
 
28454
         cat >conftest.$ac_ext <<_ACEOF
 
28455
/* confdefs.h.  */
 
28456
_ACEOF
 
28457
cat confdefs.h >>conftest.$ac_ext
 
28458
cat >>conftest.$ac_ext <<_ACEOF
 
28459
/* end confdefs.h.  */
 
28460
short int ascii_mm[] =
 
28461
                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 
28462
                short int ascii_ii[] =
 
28463
                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 
28464
                int use_ascii (int i) {
 
28465
                  return ascii_mm[i] + ascii_ii[i];
 
28466
                }
 
28467
                short int ebcdic_ii[] =
 
28468
                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 
28469
                short int ebcdic_mm[] =
 
28470
                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 
28471
                int use_ebcdic (int i) {
 
28472
                  return ebcdic_mm[i] + ebcdic_ii[i];
 
28473
                }
 
28474
                extern int foo;
 
28475
 
 
28476
int
 
28477
main ()
 
28478
{
 
28479
return use_ascii (foo) == use_ebcdic (foo);
 
28480
  ;
 
28481
  return 0;
 
28482
}
 
28483
_ACEOF
 
28484
rm -f conftest.$ac_objext
 
28485
if { (ac_try="$ac_compile"
 
28486
case "(($ac_try" in
 
28487
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28488
  *) ac_try_echo=$ac_try;;
 
28489
esac
 
28490
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
28491
$as_echo "$ac_try_echo") >&5
 
28492
  (eval "$ac_compile") 2>conftest.er1
 
28493
  ac_status=$?
 
28494
  grep -v '^ *+' conftest.er1 >conftest.err
 
28495
  rm -f conftest.er1
 
28496
  cat conftest.err >&5
 
28497
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28498
  (exit $ac_status); } && {
 
28499
         test -z "$ac_c_werror_flag" ||
 
28500
         test ! -s conftest.err
 
28501
       } && test -s conftest.$ac_objext; then
 
28502
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
 
28503
              ac_cv_c_bigendian=yes
 
28504
            fi
 
28505
            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 
28506
              if test "$ac_cv_c_bigendian" = unknown; then
 
28507
                ac_cv_c_bigendian=no
 
28508
              else
 
28509
                # finding both strings is unlikely to happen, but who knows?
 
28510
                ac_cv_c_bigendian=unknown
 
28511
              fi
 
28512
            fi
 
28513
else
 
28514
  $as_echo "$as_me: failed program was:" >&5
 
28515
sed 's/^/| /' conftest.$ac_ext >&5
 
28516
 
 
28517
 
 
28518
fi
 
28519
 
 
28520
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
28521
else
 
28522
  cat >conftest.$ac_ext <<_ACEOF
 
28523
/* confdefs.h.  */
 
28524
_ACEOF
 
28525
cat confdefs.h >>conftest.$ac_ext
 
28526
cat >>conftest.$ac_ext <<_ACEOF
 
28527
/* end confdefs.h.  */
 
28528
$ac_includes_default
 
28529
int
 
28530
main ()
 
28531
{
 
28532
 
 
28533
             /* Are we little or big endian?  From Harbison&Steele.  */
 
28534
             union
 
28535
             {
 
28536
               long int l;
 
28537
               char c[sizeof (long int)];
 
28538
             } u;
 
28539
             u.l = 1;
 
28540
             return u.c[sizeof (long int) - 1] == 1;
 
28541
 
 
28542
  ;
 
28543
  return 0;
 
28544
}
 
28545
_ACEOF
 
28546
rm -f conftest$ac_exeext
 
28547
if { (ac_try="$ac_link"
 
28548
case "(($ac_try" in
 
28549
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28550
  *) ac_try_echo=$ac_try;;
 
28551
esac
 
28552
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
28553
$as_echo "$ac_try_echo") >&5
 
28554
  (eval "$ac_link") 2>&5
 
28555
  ac_status=$?
 
28556
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28557
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
28558
  { (case "(($ac_try" in
 
28559
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28560
  *) ac_try_echo=$ac_try;;
 
28561
esac
 
28562
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
28563
$as_echo "$ac_try_echo") >&5
 
28564
  (eval "$ac_try") 2>&5
 
28565
  ac_status=$?
 
28566
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28567
  (exit $ac_status); }; }; then
 
28568
  ac_cv_c_bigendian=no
 
28569
else
 
28570
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
28571
$as_echo "$as_me: failed program was:" >&5
 
28572
sed 's/^/| /' conftest.$ac_ext >&5
 
28573
 
 
28574
( exit $ac_status )
 
28575
ac_cv_c_bigendian=yes
 
28576
fi
 
28577
rm -rf conftest.dSYM
 
28578
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
28579
fi
 
28580
 
 
28581
 
 
28582
    fi
 
28583
fi
 
28584
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
 
28585
$as_echo "$ac_cv_c_bigendian" >&6; }
 
28586
 case $ac_cv_c_bigendian in #(
 
28587
   yes)
 
28588
     cat >>confdefs.h <<\_ACEOF
 
28589
#define WORDS_BIGENDIAN 1
 
28590
_ACEOF
 
28591
;; #(
 
28592
   no)
 
28593
      ;; #(
 
28594
   universal)
 
28595
 
 
28596
cat >>confdefs.h <<\_ACEOF
 
28597
#define AC_APPLE_UNIVERSAL_BUILD 1
 
28598
_ACEOF
 
28599
 
 
28600
     ;; #(
 
28601
   *)
 
28602
     { { $as_echo "$as_me:$LINENO: error: unknown endianness
 
28603
 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
 
28604
$as_echo "$as_me: error: unknown endianness
 
28605
 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
 
28606
   { (exit 1); exit 1; }; } ;;
 
28607
 esac
 
28608
 
 
28609
 
 
28610
    MD5_CPPFLAGS='-I $(top_srcdir)/md5'
 
28611
 
 
28612
    MD5_LDADD='../md5/libmd5.a'
 
28613
 
 
28614
    MD5_SUBDIR=md5
 
28615
 
 
28616
 
 
28617
 
 
28618
 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
 
28619
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
 
28620
if test "${ac_cv_c_bigendian+set}" = set; then
 
28621
  $as_echo_n "(cached) " >&6
 
28622
else
 
28623
  ac_cv_c_bigendian=unknown
 
28624
    # See if we're dealing with a universal compiler.
 
28625
    cat >conftest.$ac_ext <<_ACEOF
 
28626
/* confdefs.h.  */
 
28627
_ACEOF
 
28628
cat confdefs.h >>conftest.$ac_ext
 
28629
cat >>conftest.$ac_ext <<_ACEOF
 
28630
/* end confdefs.h.  */
 
28631
#ifndef __APPLE_CC__
 
28632
               not a universal capable compiler
 
28633
             #endif
 
28634
             typedef int dummy;
 
28635
 
 
28636
_ACEOF
 
28637
rm -f conftest.$ac_objext
 
28638
if { (ac_try="$ac_compile"
 
28639
case "(($ac_try" in
 
28640
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28641
  *) ac_try_echo=$ac_try;;
 
28642
esac
 
28643
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
28644
$as_echo "$ac_try_echo") >&5
 
28645
  (eval "$ac_compile") 2>conftest.er1
 
28646
  ac_status=$?
 
28647
  grep -v '^ *+' conftest.er1 >conftest.err
 
28648
  rm -f conftest.er1
 
28649
  cat conftest.err >&5
 
28650
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28651
  (exit $ac_status); } && {
 
28652
         test -z "$ac_c_werror_flag" ||
 
28653
         test ! -s conftest.err
 
28654
       } && test -s conftest.$ac_objext; then
 
28655
 
 
28656
        # Check for potential -arch flags.  It is not universal unless
 
28657
        # there are some -arch flags.  Note that *ppc* also matches
 
28658
        # ppc64.  This check is also rather less than ideal.
 
28659
        case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
 
28660
          *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
 
28661
        esac
 
28662
else
 
28663
  $as_echo "$as_me: failed program was:" >&5
 
28664
sed 's/^/| /' conftest.$ac_ext >&5
 
28665
 
 
28666
 
 
28667
fi
 
28668
 
 
28669
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
28670
    if test $ac_cv_c_bigendian = unknown; then
 
28671
      # See if sys/param.h defines the BYTE_ORDER macro.
 
28672
      cat >conftest.$ac_ext <<_ACEOF
 
28673
/* confdefs.h.  */
 
28674
_ACEOF
 
28675
cat confdefs.h >>conftest.$ac_ext
 
28676
cat >>conftest.$ac_ext <<_ACEOF
 
28677
/* end confdefs.h.  */
 
28678
#include <sys/types.h>
 
28679
             #include <sys/param.h>
 
28680
 
 
28681
int
 
28682
main ()
 
28683
{
 
28684
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
 
28685
                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
 
28686
                     && LITTLE_ENDIAN)
 
28687
              bogus endian macros
 
28688
             #endif
 
28689
 
 
28690
  ;
 
28691
  return 0;
 
28692
}
 
28693
_ACEOF
 
28694
rm -f conftest.$ac_objext
 
28695
if { (ac_try="$ac_compile"
 
28696
case "(($ac_try" in
 
28697
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28698
  *) ac_try_echo=$ac_try;;
 
28699
esac
 
28700
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
28701
$as_echo "$ac_try_echo") >&5
 
28702
  (eval "$ac_compile") 2>conftest.er1
 
28703
  ac_status=$?
 
28704
  grep -v '^ *+' conftest.er1 >conftest.err
 
28705
  rm -f conftest.er1
 
28706
  cat conftest.err >&5
 
28707
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28708
  (exit $ac_status); } && {
 
28709
         test -z "$ac_c_werror_flag" ||
 
28710
         test ! -s conftest.err
 
28711
       } && test -s conftest.$ac_objext; then
 
28712
  # It does; now see whether it defined to BIG_ENDIAN or not.
 
28713
         cat >conftest.$ac_ext <<_ACEOF
 
28714
/* confdefs.h.  */
 
28715
_ACEOF
 
28716
cat confdefs.h >>conftest.$ac_ext
 
28717
cat >>conftest.$ac_ext <<_ACEOF
 
28718
/* end confdefs.h.  */
 
28719
#include <sys/types.h>
 
28720
                #include <sys/param.h>
 
28721
 
 
28722
int
 
28723
main ()
 
28724
{
 
28725
#if BYTE_ORDER != BIG_ENDIAN
 
28726
                 not big endian
 
28727
                #endif
 
28728
 
 
28729
  ;
 
28730
  return 0;
 
28731
}
 
28732
_ACEOF
 
28733
rm -f conftest.$ac_objext
 
28734
if { (ac_try="$ac_compile"
 
28735
case "(($ac_try" in
 
28736
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28737
  *) ac_try_echo=$ac_try;;
 
28738
esac
 
28739
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
28740
$as_echo "$ac_try_echo") >&5
 
28741
  (eval "$ac_compile") 2>conftest.er1
 
28742
  ac_status=$?
 
28743
  grep -v '^ *+' conftest.er1 >conftest.err
 
28744
  rm -f conftest.er1
 
28745
  cat conftest.err >&5
 
28746
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28747
  (exit $ac_status); } && {
 
28748
         test -z "$ac_c_werror_flag" ||
 
28749
         test ! -s conftest.err
 
28750
       } && test -s conftest.$ac_objext; then
 
28751
  ac_cv_c_bigendian=yes
 
28752
else
 
28753
  $as_echo "$as_me: failed program was:" >&5
 
28754
sed 's/^/| /' conftest.$ac_ext >&5
 
28755
 
 
28756
        ac_cv_c_bigendian=no
 
28757
fi
 
28758
 
 
28759
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
28760
else
 
28761
  $as_echo "$as_me: failed program was:" >&5
 
28762
sed 's/^/| /' conftest.$ac_ext >&5
 
28763
 
 
28764
 
 
28765
fi
 
28766
 
 
28767
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
28768
    fi
 
28769
    if test $ac_cv_c_bigendian = unknown; then
 
28770
      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
 
28771
      cat >conftest.$ac_ext <<_ACEOF
 
28772
/* confdefs.h.  */
 
28773
_ACEOF
 
28774
cat confdefs.h >>conftest.$ac_ext
 
28775
cat >>conftest.$ac_ext <<_ACEOF
 
28776
/* end confdefs.h.  */
 
28777
#include <limits.h>
 
28778
 
 
28779
int
 
28780
main ()
 
28781
{
 
28782
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
 
28783
              bogus endian macros
 
28784
             #endif
 
28785
 
 
28786
  ;
 
28787
  return 0;
 
28788
}
 
28789
_ACEOF
 
28790
rm -f conftest.$ac_objext
 
28791
if { (ac_try="$ac_compile"
 
28792
case "(($ac_try" in
 
28793
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28794
  *) ac_try_echo=$ac_try;;
 
28795
esac
 
28796
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
28797
$as_echo "$ac_try_echo") >&5
 
28798
  (eval "$ac_compile") 2>conftest.er1
 
28799
  ac_status=$?
 
28800
  grep -v '^ *+' conftest.er1 >conftest.err
 
28801
  rm -f conftest.er1
 
28802
  cat conftest.err >&5
 
28803
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28804
  (exit $ac_status); } && {
 
28805
         test -z "$ac_c_werror_flag" ||
 
28806
         test ! -s conftest.err
 
28807
       } && test -s conftest.$ac_objext; then
 
28808
  # It does; now see whether it defined to _BIG_ENDIAN or not.
 
28809
         cat >conftest.$ac_ext <<_ACEOF
 
28810
/* confdefs.h.  */
 
28811
_ACEOF
 
28812
cat confdefs.h >>conftest.$ac_ext
 
28813
cat >>conftest.$ac_ext <<_ACEOF
 
28814
/* end confdefs.h.  */
 
28815
#include <limits.h>
 
28816
 
 
28817
int
 
28818
main ()
 
28819
{
 
28820
#ifndef _BIG_ENDIAN
 
28821
                 not big endian
 
28822
                #endif
 
28823
 
 
28824
  ;
 
28825
  return 0;
 
28826
}
 
28827
_ACEOF
 
28828
rm -f conftest.$ac_objext
 
28829
if { (ac_try="$ac_compile"
 
28830
case "(($ac_try" in
 
28831
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28832
  *) ac_try_echo=$ac_try;;
 
28833
esac
 
28834
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
28835
$as_echo "$ac_try_echo") >&5
 
28836
  (eval "$ac_compile") 2>conftest.er1
 
28837
  ac_status=$?
 
28838
  grep -v '^ *+' conftest.er1 >conftest.err
 
28839
  rm -f conftest.er1
 
28840
  cat conftest.err >&5
 
28841
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28842
  (exit $ac_status); } && {
 
28843
         test -z "$ac_c_werror_flag" ||
 
28844
         test ! -s conftest.err
 
28845
       } && test -s conftest.$ac_objext; then
 
28846
  ac_cv_c_bigendian=yes
 
28847
else
 
28848
  $as_echo "$as_me: failed program was:" >&5
 
28849
sed 's/^/| /' conftest.$ac_ext >&5
 
28850
 
 
28851
        ac_cv_c_bigendian=no
 
28852
fi
 
28853
 
 
28854
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
28855
else
 
28856
  $as_echo "$as_me: failed program was:" >&5
 
28857
sed 's/^/| /' conftest.$ac_ext >&5
 
28858
 
 
28859
 
 
28860
fi
 
28861
 
 
28862
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
28863
    fi
 
28864
    if test $ac_cv_c_bigendian = unknown; then
 
28865
      # Compile a test program.
 
28866
      if test "$cross_compiling" = yes; then
 
28867
  # Try to guess by grepping values from an object file.
 
28868
         cat >conftest.$ac_ext <<_ACEOF
 
28869
/* confdefs.h.  */
 
28870
_ACEOF
 
28871
cat confdefs.h >>conftest.$ac_ext
 
28872
cat >>conftest.$ac_ext <<_ACEOF
 
28873
/* end confdefs.h.  */
 
28874
short int ascii_mm[] =
 
28875
                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 
28876
                short int ascii_ii[] =
 
28877
                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 
28878
                int use_ascii (int i) {
 
28879
                  return ascii_mm[i] + ascii_ii[i];
 
28880
                }
 
28881
                short int ebcdic_ii[] =
 
28882
                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 
28883
                short int ebcdic_mm[] =
 
28884
                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 
28885
                int use_ebcdic (int i) {
 
28886
                  return ebcdic_mm[i] + ebcdic_ii[i];
 
28887
                }
 
28888
                extern int foo;
 
28889
 
 
28890
int
 
28891
main ()
 
28892
{
 
28893
return use_ascii (foo) == use_ebcdic (foo);
 
28894
  ;
 
28895
  return 0;
 
28896
}
 
28897
_ACEOF
 
28898
rm -f conftest.$ac_objext
 
28899
if { (ac_try="$ac_compile"
 
28900
case "(($ac_try" in
 
28901
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28902
  *) ac_try_echo=$ac_try;;
 
28903
esac
 
28904
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
28905
$as_echo "$ac_try_echo") >&5
 
28906
  (eval "$ac_compile") 2>conftest.er1
 
28907
  ac_status=$?
 
28908
  grep -v '^ *+' conftest.er1 >conftest.err
 
28909
  rm -f conftest.er1
 
28910
  cat conftest.err >&5
 
28911
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28912
  (exit $ac_status); } && {
 
28913
         test -z "$ac_c_werror_flag" ||
 
28914
         test ! -s conftest.err
 
28915
       } && test -s conftest.$ac_objext; then
 
28916
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
 
28917
              ac_cv_c_bigendian=yes
 
28918
            fi
 
28919
            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 
28920
              if test "$ac_cv_c_bigendian" = unknown; then
 
28921
                ac_cv_c_bigendian=no
 
28922
              else
 
28923
                # finding both strings is unlikely to happen, but who knows?
 
28924
                ac_cv_c_bigendian=unknown
 
28925
              fi
 
28926
            fi
 
28927
else
 
28928
  $as_echo "$as_me: failed program was:" >&5
 
28929
sed 's/^/| /' conftest.$ac_ext >&5
 
28930
 
 
28931
 
 
28932
fi
 
28933
 
 
28934
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
28935
else
 
28936
  cat >conftest.$ac_ext <<_ACEOF
 
28937
/* confdefs.h.  */
 
28938
_ACEOF
 
28939
cat confdefs.h >>conftest.$ac_ext
 
28940
cat >>conftest.$ac_ext <<_ACEOF
 
28941
/* end confdefs.h.  */
 
28942
$ac_includes_default
 
28943
int
 
28944
main ()
 
28945
{
 
28946
 
 
28947
             /* Are we little or big endian?  From Harbison&Steele.  */
 
28948
             union
 
28949
             {
 
28950
               long int l;
 
28951
               char c[sizeof (long int)];
 
28952
             } u;
 
28953
             u.l = 1;
 
28954
             return u.c[sizeof (long int) - 1] == 1;
 
28955
 
 
28956
  ;
 
28957
  return 0;
 
28958
}
 
28959
_ACEOF
 
28960
rm -f conftest$ac_exeext
 
28961
if { (ac_try="$ac_link"
 
28962
case "(($ac_try" in
 
28963
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28964
  *) ac_try_echo=$ac_try;;
 
28965
esac
 
28966
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
28967
$as_echo "$ac_try_echo") >&5
 
28968
  (eval "$ac_link") 2>&5
 
28969
  ac_status=$?
 
28970
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28971
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
28972
  { (case "(($ac_try" in
 
28973
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28974
  *) ac_try_echo=$ac_try;;
 
28975
esac
 
28976
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
28977
$as_echo "$ac_try_echo") >&5
 
28978
  (eval "$ac_try") 2>&5
 
28979
  ac_status=$?
 
28980
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28981
  (exit $ac_status); }; }; then
 
28982
  ac_cv_c_bigendian=no
 
28983
else
 
28984
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
28985
$as_echo "$as_me: failed program was:" >&5
 
28986
sed 's/^/| /' conftest.$ac_ext >&5
 
28987
 
 
28988
( exit $ac_status )
 
28989
ac_cv_c_bigendian=yes
 
28990
fi
 
28991
rm -rf conftest.dSYM
 
28992
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
28993
fi
 
28994
 
 
28995
 
 
28996
    fi
 
28997
fi
 
28998
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
 
28999
$as_echo "$ac_cv_c_bigendian" >&6; }
 
29000
 case $ac_cv_c_bigendian in #(
 
29001
   yes)
 
29002
     cat >>confdefs.h <<\_ACEOF
 
29003
#define WORDS_BIGENDIAN 1
 
29004
_ACEOF
 
29005
;; #(
 
29006
   no)
 
29007
      ;; #(
 
29008
   universal)
 
29009
 
 
29010
cat >>confdefs.h <<\_ACEOF
 
29011
#define AC_APPLE_UNIVERSAL_BUILD 1
 
29012
_ACEOF
 
29013
 
 
29014
     ;; #(
 
29015
   *)
 
29016
     { { $as_echo "$as_me:$LINENO: error: unknown endianness
 
29017
 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
 
29018
$as_echo "$as_me: error: unknown endianness
 
29019
 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
 
29020
   { (exit 1); exit 1; }; } ;;
 
29021
 esac
 
29022
 
 
29023
 
 
29024
 
 
29025
   if false; then
 
29026
  GL_COND_LIBTOOL_TRUE=
 
29027
  GL_COND_LIBTOOL_FALSE='#'
 
29028
else
 
29029
  GL_COND_LIBTOOL_TRUE='#'
 
29030
  GL_COND_LIBTOOL_FALSE=
 
29031
fi
 
29032
 
 
29033
  gl_cond_libtool=false
 
29034
  gl_libdeps=
 
29035
  gl_ltlibdeps=
 
29036
 
 
29037
 
 
29038
 
 
29039
 
 
29040
 
 
29041
 
 
29042
 
 
29043
 
 
29044
 
 
29045
  gl_source_base='md5'
 
29046
 
 
29047
 
 
29048
 
 
29049
 
 
29050
 
 
29051
 
 
29052
 
 
29053
 
 
29054
 
 
29055
  md5_LIBOBJS="$md5_LIBOBJS md5.$ac_objext"
 
29056
 
 
29057
 
 
29058
 
 
29059
 
 
29060
  :
 
29061
 
 
29062
 
 
29063
 
 
29064
 
 
29065
 
 
29066
  if test $gt_cv_c_wchar_t = no; then
 
29067
    HAVE_WCHAR_T=0
 
29068
    STDDEF_H=stddef.h
 
29069
  fi
 
29070
  { $as_echo "$as_me:$LINENO: checking whether NULL can be used in arbitrary expressions" >&5
 
29071
$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
 
29072
if test "${gl_cv_decl_null_works+set}" = set; then
 
29073
  $as_echo_n "(cached) " >&6
 
29074
else
 
29075
  cat >conftest.$ac_ext <<_ACEOF
 
29076
/* confdefs.h.  */
 
29077
_ACEOF
 
29078
cat confdefs.h >>conftest.$ac_ext
 
29079
cat >>conftest.$ac_ext <<_ACEOF
 
29080
/* end confdefs.h.  */
 
29081
#include <stddef.h>
 
29082
      int test[2 * (sizeof NULL == sizeof (void *)) -1];
 
29083
 
 
29084
int
 
29085
main ()
 
29086
{
 
29087
 
 
29088
  ;
 
29089
  return 0;
 
29090
}
 
29091
_ACEOF
 
29092
rm -f conftest.$ac_objext
 
29093
if { (ac_try="$ac_compile"
 
29094
case "(($ac_try" in
 
29095
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29096
  *) ac_try_echo=$ac_try;;
 
29097
esac
 
29098
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
29099
$as_echo "$ac_try_echo") >&5
 
29100
  (eval "$ac_compile") 2>conftest.er1
 
29101
  ac_status=$?
 
29102
  grep -v '^ *+' conftest.er1 >conftest.err
 
29103
  rm -f conftest.er1
 
29104
  cat conftest.err >&5
 
29105
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29106
  (exit $ac_status); } && {
 
29107
         test -z "$ac_c_werror_flag" ||
 
29108
         test ! -s conftest.err
 
29109
       } && test -s conftest.$ac_objext; then
 
29110
  gl_cv_decl_null_works=yes
 
29111
else
 
29112
  $as_echo "$as_me: failed program was:" >&5
 
29113
sed 's/^/| /' conftest.$ac_ext >&5
 
29114
 
 
29115
        gl_cv_decl_null_works=no
 
29116
fi
 
29117
 
 
29118
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
29119
fi
 
29120
{ $as_echo "$as_me:$LINENO: result: $gl_cv_decl_null_works" >&5
 
29121
$as_echo "$gl_cv_decl_null_works" >&6; }
 
29122
  if test $gl_cv_decl_null_works = no; then
 
29123
    REPLACE_NULL=1
 
29124
    STDDEF_H=stddef.h
 
29125
  fi
 
29126
  if test -n "$STDDEF_H"; then
 
29127
 
 
29128
 
 
29129
 
 
29130
 
 
29131
 
 
29132
 
 
29133
 
 
29134
 
 
29135
 
 
29136
 
 
29137
 
 
29138
     if test $gl_cv_have_include_next = yes; then
 
29139
       gl_cv_next_stddef_h='<'stddef.h'>'
 
29140
     else
 
29141
       { $as_echo "$as_me:$LINENO: checking absolute name of <stddef.h>" >&5
 
29142
$as_echo_n "checking absolute name of <stddef.h>... " >&6; }
 
29143
if test "${gl_cv_next_stddef_h+set}" = set; then
 
29144
  $as_echo_n "(cached) " >&6
 
29145
else
 
29146
 
 
29147
          if test $ac_cv_header_stddef_h = yes; then
 
29148
            cat >conftest.$ac_ext <<_ACEOF
 
29149
/* confdefs.h.  */
 
29150
_ACEOF
 
29151
cat confdefs.h >>conftest.$ac_ext
 
29152
cat >>conftest.$ac_ext <<_ACEOF
 
29153
/* end confdefs.h.  */
 
29154
#include <stddef.h>
 
29155
 
 
29156
_ACEOF
 
29157
                                                                    case "$host_os" in
 
29158
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
29159
              *)    gl_absname_cpp="$ac_cpp" ;;
 
29160
            esac
 
29161
                                    gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
29162
               sed -n '\#/stddef.h#{
 
29163
                 s#.*"\(.*/stddef.h\)".*#\1#
 
29164
                 s#^/[^/]#//&#
 
29165
                 p
 
29166
                 q
 
29167
               }'`'"'
 
29168
          else
 
29169
            gl_cv_next_stddef_h='<'stddef.h'>'
 
29170
          fi
 
29171
 
 
29172
fi
 
29173
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_stddef_h" >&5
 
29174
$as_echo "$gl_cv_next_stddef_h" >&6; }
 
29175
     fi
 
29176
     NEXT_STDDEF_H=$gl_cv_next_stddef_h
 
29177
 
 
29178
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
29179
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
29180
       gl_next_as_first_directive='<'stddef.h'>'
 
29181
     else
 
29182
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
29183
       gl_next_as_first_directive=$gl_cv_next_stddef_h
 
29184
     fi
 
29185
     NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
 
29186
 
 
29187
 
 
29188
 
 
29189
  fi
 
29190
 
 
29191
 
 
29192
 
 
29193
 
 
29194
  if test $ac_cv_type_long_long_int = yes; then
 
29195
    HAVE_LONG_LONG_INT=1
 
29196
  else
 
29197
    HAVE_LONG_LONG_INT=0
 
29198
  fi
 
29199
 
 
29200
 
 
29201
  if test $ac_cv_type_unsigned_long_long_int = yes; then
 
29202
    HAVE_UNSIGNED_LONG_LONG_INT=1
 
29203
  else
 
29204
    HAVE_UNSIGNED_LONG_LONG_INT=0
 
29205
  fi
 
29206
 
 
29207
 
 
29208
      if test $ac_cv_header_inttypes_h = yes; then
 
29209
    HAVE_INTTYPES_H=1
 
29210
  else
 
29211
    HAVE_INTTYPES_H=0
 
29212
  fi
 
29213
 
 
29214
 
 
29215
      if test $ac_cv_header_sys_types_h = yes; then
 
29216
    HAVE_SYS_TYPES_H=1
 
29217
  else
 
29218
    HAVE_SYS_TYPES_H=0
 
29219
  fi
 
29220
 
 
29221
 
 
29222
 
 
29223
 
 
29224
 
 
29225
 
 
29226
 
 
29227
 
 
29228
 
 
29229
 
 
29230
 
 
29231
 
 
29232
 
 
29233
     if test $gl_cv_have_include_next = yes; then
 
29234
       gl_cv_next_stdint_h='<'stdint.h'>'
 
29235
     else
 
29236
       { $as_echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
 
29237
$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
 
29238
if test "${gl_cv_next_stdint_h+set}" = set; then
 
29239
  $as_echo_n "(cached) " >&6
 
29240
else
 
29241
 
 
29242
          if test $ac_cv_header_stdint_h = yes; then
 
29243
            cat >conftest.$ac_ext <<_ACEOF
 
29244
/* confdefs.h.  */
 
29245
_ACEOF
 
29246
cat confdefs.h >>conftest.$ac_ext
 
29247
cat >>conftest.$ac_ext <<_ACEOF
 
29248
/* end confdefs.h.  */
 
29249
#include <stdint.h>
 
29250
 
 
29251
_ACEOF
 
29252
                                                                    case "$host_os" in
 
29253
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
29254
              *)    gl_absname_cpp="$ac_cpp" ;;
 
29255
            esac
 
29256
                                    gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
29257
               sed -n '\#/stdint.h#{
 
29258
                 s#.*"\(.*/stdint.h\)".*#\1#
 
29259
                 s#^/[^/]#//&#
 
29260
                 p
 
29261
                 q
 
29262
               }'`'"'
 
29263
          else
 
29264
            gl_cv_next_stdint_h='<'stdint.h'>'
 
29265
          fi
 
29266
 
 
29267
fi
 
29268
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
 
29269
$as_echo "$gl_cv_next_stdint_h" >&6; }
 
29270
     fi
 
29271
     NEXT_STDINT_H=$gl_cv_next_stdint_h
 
29272
 
 
29273
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
29274
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
29275
       gl_next_as_first_directive='<'stdint.h'>'
 
29276
     else
 
29277
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
29278
       gl_next_as_first_directive=$gl_cv_next_stdint_h
 
29279
     fi
 
29280
     NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
 
29281
 
 
29282
 
 
29283
 
 
29284
  if test $ac_cv_header_stdint_h = yes; then
 
29285
    HAVE_STDINT_H=1
 
29286
  else
 
29287
    HAVE_STDINT_H=0
 
29288
  fi
 
29289
 
 
29290
 
 
29291
    if test $ac_cv_header_stdint_h = yes; then
 
29292
    { $as_echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
 
29293
$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
 
29294
if test "${gl_cv_header_working_stdint_h+set}" = set; then
 
29295
  $as_echo_n "(cached) " >&6
 
29296
else
 
29297
  gl_cv_header_working_stdint_h=no
 
29298
       cat >conftest.$ac_ext <<_ACEOF
 
29299
 
 
29300
         /* confdefs.h.  */
 
29301
_ACEOF
 
29302
cat confdefs.h >>conftest.$ac_ext
 
29303
cat >>conftest.$ac_ext <<_ACEOF
 
29304
/* end confdefs.h.  */
 
29305
 
 
29306
#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
 
29307
#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
 
29308
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
 
29309
#include <stdint.h>
 
29310
/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
 
29311
#if !(defined WCHAR_MIN && defined WCHAR_MAX)
 
29312
#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
 
29313
#endif
 
29314
 
 
29315
 
 
29316
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
29317
     included before <wchar.h>.  */
 
29318
  #include <stddef.h>
 
29319
  #include <signal.h>
 
29320
  #if HAVE_WCHAR_H
 
29321
  # include <stdio.h>
 
29322
  # include <time.h>
 
29323
  # include <wchar.h>
 
29324
  #endif
 
29325
 
 
29326
 
 
29327
#ifdef INT8_MAX
 
29328
int8_t a1 = INT8_MAX;
 
29329
int8_t a1min = INT8_MIN;
 
29330
#endif
 
29331
#ifdef INT16_MAX
 
29332
int16_t a2 = INT16_MAX;
 
29333
int16_t a2min = INT16_MIN;
 
29334
#endif
 
29335
#ifdef INT32_MAX
 
29336
int32_t a3 = INT32_MAX;
 
29337
int32_t a3min = INT32_MIN;
 
29338
#endif
 
29339
#ifdef INT64_MAX
 
29340
int64_t a4 = INT64_MAX;
 
29341
int64_t a4min = INT64_MIN;
 
29342
#endif
 
29343
#ifdef UINT8_MAX
 
29344
uint8_t b1 = UINT8_MAX;
 
29345
#else
 
29346
typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
 
29347
#endif
 
29348
#ifdef UINT16_MAX
 
29349
uint16_t b2 = UINT16_MAX;
 
29350
#endif
 
29351
#ifdef UINT32_MAX
 
29352
uint32_t b3 = UINT32_MAX;
 
29353
#endif
 
29354
#ifdef UINT64_MAX
 
29355
uint64_t b4 = UINT64_MAX;
 
29356
#endif
 
29357
int_least8_t c1 = INT8_C (0x7f);
 
29358
int_least8_t c1max = INT_LEAST8_MAX;
 
29359
int_least8_t c1min = INT_LEAST8_MIN;
 
29360
int_least16_t c2 = INT16_C (0x7fff);
 
29361
int_least16_t c2max = INT_LEAST16_MAX;
 
29362
int_least16_t c2min = INT_LEAST16_MIN;
 
29363
int_least32_t c3 = INT32_C (0x7fffffff);
 
29364
int_least32_t c3max = INT_LEAST32_MAX;
 
29365
int_least32_t c3min = INT_LEAST32_MIN;
 
29366
int_least64_t c4 = INT64_C (0x7fffffffffffffff);
 
29367
int_least64_t c4max = INT_LEAST64_MAX;
 
29368
int_least64_t c4min = INT_LEAST64_MIN;
 
29369
uint_least8_t d1 = UINT8_C (0xff);
 
29370
uint_least8_t d1max = UINT_LEAST8_MAX;
 
29371
uint_least16_t d2 = UINT16_C (0xffff);
 
29372
uint_least16_t d2max = UINT_LEAST16_MAX;
 
29373
uint_least32_t d3 = UINT32_C (0xffffffff);
 
29374
uint_least32_t d3max = UINT_LEAST32_MAX;
 
29375
uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
 
29376
uint_least64_t d4max = UINT_LEAST64_MAX;
 
29377
int_fast8_t e1 = INT_FAST8_MAX;
 
29378
int_fast8_t e1min = INT_FAST8_MIN;
 
29379
int_fast16_t e2 = INT_FAST16_MAX;
 
29380
int_fast16_t e2min = INT_FAST16_MIN;
 
29381
int_fast32_t e3 = INT_FAST32_MAX;
 
29382
int_fast32_t e3min = INT_FAST32_MIN;
 
29383
int_fast64_t e4 = INT_FAST64_MAX;
 
29384
int_fast64_t e4min = INT_FAST64_MIN;
 
29385
uint_fast8_t f1 = UINT_FAST8_MAX;
 
29386
uint_fast16_t f2 = UINT_FAST16_MAX;
 
29387
uint_fast32_t f3 = UINT_FAST32_MAX;
 
29388
uint_fast64_t f4 = UINT_FAST64_MAX;
 
29389
#ifdef INTPTR_MAX
 
29390
intptr_t g = INTPTR_MAX;
 
29391
intptr_t gmin = INTPTR_MIN;
 
29392
#endif
 
29393
#ifdef UINTPTR_MAX
 
29394
uintptr_t h = UINTPTR_MAX;
 
29395
#endif
 
29396
intmax_t i = INTMAX_MAX;
 
29397
uintmax_t j = UINTMAX_MAX;
 
29398
 
 
29399
#include <limits.h> /* for CHAR_BIT */
 
29400
#define TYPE_MINIMUM(t) \
 
29401
  ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
 
29402
#define TYPE_MAXIMUM(t) \
 
29403
  ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
 
29404
struct s {
 
29405
  int check_PTRDIFF:
 
29406
      PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
 
29407
      && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
 
29408
      ? 1 : -1;
 
29409
  /* Detect bug in FreeBSD 6.0 / ia64.  */
 
29410
  int check_SIG_ATOMIC:
 
29411
      SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
 
29412
      && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
 
29413
      ? 1 : -1;
 
29414
  int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
 
29415
  int check_WCHAR:
 
29416
      WCHAR_MIN == TYPE_MINIMUM (wchar_t)
 
29417
      && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
 
29418
      ? 1 : -1;
 
29419
  /* Detect bug in mingw.  */
 
29420
  int check_WINT:
 
29421
      WINT_MIN == TYPE_MINIMUM (wint_t)
 
29422
      && WINT_MAX == TYPE_MAXIMUM (wint_t)
 
29423
      ? 1 : -1;
 
29424
 
 
29425
  /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
 
29426
  int check_UINT8_C:
 
29427
        (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
 
29428
  int check_UINT16_C:
 
29429
        (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
 
29430
 
 
29431
  /* Detect bugs in OpenBSD 3.9 stdint.h.  */
 
29432
#ifdef UINT8_MAX
 
29433
  int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
 
29434
#endif
 
29435
#ifdef UINT16_MAX
 
29436
  int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
 
29437
#endif
 
29438
#ifdef UINT32_MAX
 
29439
  int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
 
29440
#endif
 
29441
#ifdef UINT64_MAX
 
29442
  int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
 
29443
#endif
 
29444
  int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
 
29445
  int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
 
29446
  int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
 
29447
  int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
 
29448
  int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
 
29449
  int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
 
29450
  int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
 
29451
  int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
 
29452
  int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
 
29453
  int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
 
29454
  int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
 
29455
};
 
29456
 
 
29457
int
 
29458
main ()
 
29459
{
 
29460
 
 
29461
  ;
 
29462
  return 0;
 
29463
}
 
29464
_ACEOF
 
29465
rm -f conftest.$ac_objext
 
29466
if { (ac_try="$ac_compile"
 
29467
case "(($ac_try" in
 
29468
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29469
  *) ac_try_echo=$ac_try;;
 
29470
esac
 
29471
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
29472
$as_echo "$ac_try_echo") >&5
 
29473
  (eval "$ac_compile") 2>conftest.er1
 
29474
  ac_status=$?
 
29475
  grep -v '^ *+' conftest.er1 >conftest.err
 
29476
  rm -f conftest.er1
 
29477
  cat conftest.err >&5
 
29478
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29479
  (exit $ac_status); } && {
 
29480
         test -z "$ac_c_werror_flag" ||
 
29481
         test ! -s conftest.err
 
29482
       } && test -s conftest.$ac_objext; then
 
29483
                                                    if test "$cross_compiling" = yes; then
 
29484
                 gl_cv_header_working_stdint_h=yes
 
29485
 
 
29486
else
 
29487
  cat >conftest.$ac_ext <<_ACEOF
 
29488
 
 
29489
            /* confdefs.h.  */
 
29490
_ACEOF
 
29491
cat confdefs.h >>conftest.$ac_ext
 
29492
cat >>conftest.$ac_ext <<_ACEOF
 
29493
/* end confdefs.h.  */
 
29494
 
 
29495
#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
 
29496
#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
 
29497
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
 
29498
#include <stdint.h>
 
29499
 
 
29500
 
 
29501
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
29502
     included before <wchar.h>.  */
 
29503
  #include <stddef.h>
 
29504
  #include <signal.h>
 
29505
  #if HAVE_WCHAR_H
 
29506
  # include <stdio.h>
 
29507
  # include <time.h>
 
29508
  # include <wchar.h>
 
29509
  #endif
 
29510
 
 
29511
 
 
29512
#include <stdio.h>
 
29513
#include <string.h>
 
29514
#define MVAL(macro) MVAL1(macro)
 
29515
#define MVAL1(expression) #expression
 
29516
static const char *macro_values[] =
11672
29517
  {
11673
 
    long int l;
11674
 
    char c[sizeof (long int)];
11675
 
  } u;
11676
 
  u.l = 1;
11677
 
  return u.c[sizeof (long int) - 1] == 1;
11678
 
 
11679
 
  ;
11680
 
  return 0;
11681
 
}
11682
 
_ACEOF
11683
 
rm -f conftest$ac_exeext
11684
 
if { (ac_try="$ac_link"
11685
 
case "(($ac_try" in
11686
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11687
 
  *) ac_try_echo=$ac_try;;
11688
 
esac
11689
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11690
 
  (eval "$ac_link") 2>&5
11691
 
  ac_status=$?
11692
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11694
 
  { (case "(($ac_try" in
11695
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11696
 
  *) ac_try_echo=$ac_try;;
11697
 
esac
11698
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11699
 
  (eval "$ac_try") 2>&5
11700
 
  ac_status=$?
11701
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702
 
  (exit $ac_status); }; }; then
11703
 
  ac_cv_c_bigendian=no
11704
 
else
11705
 
  echo "$as_me: program exited with status $ac_status" >&5
11706
 
echo "$as_me: failed program was:" >&5
11707
 
sed 's/^/| /' conftest.$ac_ext >&5
11708
 
 
11709
 
( exit $ac_status )
11710
 
ac_cv_c_bigendian=yes
11711
 
fi
11712
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11713
 
fi
11714
 
 
11715
 
 
11716
 
fi
11717
 
 
11718
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11719
 
fi
11720
 
{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
11721
 
echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
11722
 
case $ac_cv_c_bigendian in
11723
 
  yes)
11724
 
 
11725
 
cat >>confdefs.h <<\_ACEOF
11726
 
#define WORDS_BIGENDIAN 1
11727
 
_ACEOF
11728
 
 ;;
11729
 
  no)
11730
 
     ;;
11731
 
  *)
11732
 
    { { echo "$as_me:$LINENO: error: unknown endianness
11733
 
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
11734
 
echo "$as_me: error: unknown endianness
11735
 
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
11736
 
   { (exit 1); exit 1; }; } ;;
11737
 
esac
11738
 
 
11739
 
  fi
11740
 
fi
 
29518
#ifdef INT8_MAX
 
29519
    MVAL (INT8_MAX),
 
29520
#endif
 
29521
#ifdef INT16_MAX
 
29522
    MVAL (INT16_MAX),
 
29523
#endif
 
29524
#ifdef INT32_MAX
 
29525
    MVAL (INT32_MAX),
 
29526
#endif
 
29527
#ifdef INT64_MAX
 
29528
    MVAL (INT64_MAX),
 
29529
#endif
 
29530
#ifdef UINT8_MAX
 
29531
    MVAL (UINT8_MAX),
 
29532
#endif
 
29533
#ifdef UINT16_MAX
 
29534
    MVAL (UINT16_MAX),
 
29535
#endif
 
29536
#ifdef UINT32_MAX
 
29537
    MVAL (UINT32_MAX),
 
29538
#endif
 
29539
#ifdef UINT64_MAX
 
29540
    MVAL (UINT64_MAX),
 
29541
#endif
 
29542
    NULL
 
29543
  };
 
29544
 
 
29545
int
 
29546
main ()
 
29547
{
 
29548
 
 
29549
  const char **mv;
 
29550
  for (mv = macro_values; *mv != NULL; mv++)
 
29551
    {
 
29552
      const char *value = *mv;
 
29553
      /* Test whether it looks like a cast expression.  */
 
29554
      if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
 
29555
          || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
 
29556
          || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
 
29557
          || strncmp (value, "((int)"/*)*/, 6) == 0
 
29558
          || strncmp (value, "((signed short)"/*)*/, 15) == 0
 
29559
          || strncmp (value, "((signed char)"/*)*/, 14) == 0)
 
29560
        return 1;
 
29561
    }
 
29562
  return 0;
 
29563
 
 
29564
  ;
 
29565
  return 0;
 
29566
}
 
29567
_ACEOF
 
29568
rm -f conftest$ac_exeext
 
29569
if { (ac_try="$ac_link"
 
29570
case "(($ac_try" in
 
29571
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29572
  *) ac_try_echo=$ac_try;;
 
29573
esac
 
29574
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
29575
$as_echo "$ac_try_echo") >&5
 
29576
  (eval "$ac_link") 2>&5
 
29577
  ac_status=$?
 
29578
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29579
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
29580
  { (case "(($ac_try" in
 
29581
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29582
  *) ac_try_echo=$ac_try;;
 
29583
esac
 
29584
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
29585
$as_echo "$ac_try_echo") >&5
 
29586
  (eval "$ac_try") 2>&5
 
29587
  ac_status=$?
 
29588
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29589
  (exit $ac_status); }; }; then
 
29590
  gl_cv_header_working_stdint_h=yes
 
29591
else
 
29592
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
29593
$as_echo "$as_me: failed program was:" >&5
 
29594
sed 's/^/| /' conftest.$ac_ext >&5
 
29595
 
 
29596
fi
 
29597
rm -rf conftest.dSYM
 
29598
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
29599
fi
 
29600
 
 
29601
 
 
29602
 
 
29603
else
 
29604
  $as_echo "$as_me: failed program was:" >&5
 
29605
sed 's/^/| /' conftest.$ac_ext >&5
 
29606
 
 
29607
 
 
29608
fi
 
29609
 
 
29610
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
29611
 
 
29612
fi
 
29613
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
 
29614
$as_echo "$gl_cv_header_working_stdint_h" >&6; }
 
29615
  fi
 
29616
  if test "$gl_cv_header_working_stdint_h" = yes; then
 
29617
    STDINT_H=
 
29618
  else
 
29619
 
 
29620
 
 
29621
for ac_header in sys/inttypes.h sys/bitypes.h
 
29622
do
 
29623
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
29624
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
29625
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
29626
$as_echo_n "checking for $ac_header... " >&6; }
 
29627
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
29628
  $as_echo_n "(cached) " >&6
 
29629
fi
 
29630
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
29631
                 $as_echo "$as_val"'`
 
29632
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
29633
$as_echo "$ac_res" >&6; }
 
29634
else
 
29635
  # Is the header compilable?
 
29636
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
29637
$as_echo_n "checking $ac_header usability... " >&6; }
 
29638
cat >conftest.$ac_ext <<_ACEOF
 
29639
/* confdefs.h.  */
 
29640
_ACEOF
 
29641
cat confdefs.h >>conftest.$ac_ext
 
29642
cat >>conftest.$ac_ext <<_ACEOF
 
29643
/* end confdefs.h.  */
 
29644
$ac_includes_default
 
29645
#include <$ac_header>
 
29646
_ACEOF
 
29647
rm -f conftest.$ac_objext
 
29648
if { (ac_try="$ac_compile"
 
29649
case "(($ac_try" in
 
29650
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29651
  *) ac_try_echo=$ac_try;;
 
29652
esac
 
29653
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
29654
$as_echo "$ac_try_echo") >&5
 
29655
  (eval "$ac_compile") 2>conftest.er1
 
29656
  ac_status=$?
 
29657
  grep -v '^ *+' conftest.er1 >conftest.err
 
29658
  rm -f conftest.er1
 
29659
  cat conftest.err >&5
 
29660
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29661
  (exit $ac_status); } && {
 
29662
         test -z "$ac_c_werror_flag" ||
 
29663
         test ! -s conftest.err
 
29664
       } && test -s conftest.$ac_objext; then
 
29665
  ac_header_compiler=yes
 
29666
else
 
29667
  $as_echo "$as_me: failed program was:" >&5
 
29668
sed 's/^/| /' conftest.$ac_ext >&5
 
29669
 
 
29670
        ac_header_compiler=no
 
29671
fi
 
29672
 
 
29673
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
29674
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
29675
$as_echo "$ac_header_compiler" >&6; }
 
29676
 
 
29677
# Is the header present?
 
29678
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
29679
$as_echo_n "checking $ac_header presence... " >&6; }
 
29680
cat >conftest.$ac_ext <<_ACEOF
 
29681
/* confdefs.h.  */
 
29682
_ACEOF
 
29683
cat confdefs.h >>conftest.$ac_ext
 
29684
cat >>conftest.$ac_ext <<_ACEOF
 
29685
/* end confdefs.h.  */
 
29686
#include <$ac_header>
 
29687
_ACEOF
 
29688
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
29689
case "(($ac_try" in
 
29690
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29691
  *) ac_try_echo=$ac_try;;
 
29692
esac
 
29693
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
29694
$as_echo "$ac_try_echo") >&5
 
29695
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
29696
  ac_status=$?
 
29697
  grep -v '^ *+' conftest.er1 >conftest.err
 
29698
  rm -f conftest.er1
 
29699
  cat conftest.err >&5
 
29700
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29701
  (exit $ac_status); } >/dev/null && {
 
29702
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
29703
         test ! -s conftest.err
 
29704
       }; then
 
29705
  ac_header_preproc=yes
 
29706
else
 
29707
  $as_echo "$as_me: failed program was:" >&5
 
29708
sed 's/^/| /' conftest.$ac_ext >&5
 
29709
 
 
29710
  ac_header_preproc=no
 
29711
fi
 
29712
 
 
29713
rm -f conftest.err conftest.$ac_ext
 
29714
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
29715
$as_echo "$ac_header_preproc" >&6; }
 
29716
 
 
29717
# So?  What about this header?
 
29718
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
29719
  yes:no: )
 
29720
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
29721
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
29722
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
29723
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
29724
    ac_header_preproc=yes
 
29725
    ;;
 
29726
  no:yes:* )
 
29727
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
29728
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
29729
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
29730
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
29731
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
29732
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
29733
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
29734
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
29735
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
29736
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
29737
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
29738
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
29739
    ( cat <<\_ASBOX
 
29740
## ------------------------------- ##
 
29741
## Report this to bug-wget@gnu.org ##
 
29742
## ------------------------------- ##
 
29743
_ASBOX
 
29744
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
29745
    ;;
 
29746
esac
 
29747
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
29748
$as_echo_n "checking for $ac_header... " >&6; }
 
29749
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
29750
  $as_echo_n "(cached) " >&6
 
29751
else
 
29752
  eval "$as_ac_Header=\$ac_header_preproc"
 
29753
fi
 
29754
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
29755
                 $as_echo "$as_val"'`
 
29756
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
29757
$as_echo "$ac_res" >&6; }
 
29758
 
 
29759
fi
 
29760
as_val=`eval 'as_val=${'$as_ac_Header'}
 
29761
                 $as_echo "$as_val"'`
 
29762
   if test "x$as_val" = x""yes; then
 
29763
  cat >>confdefs.h <<_ACEOF
 
29764
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
29765
_ACEOF
 
29766
 
 
29767
fi
 
29768
 
 
29769
done
 
29770
 
 
29771
    if test $ac_cv_header_sys_inttypes_h = yes; then
 
29772
      HAVE_SYS_INTTYPES_H=1
 
29773
    else
 
29774
      HAVE_SYS_INTTYPES_H=0
 
29775
    fi
 
29776
 
 
29777
    if test $ac_cv_header_sys_bitypes_h = yes; then
 
29778
      HAVE_SYS_BITYPES_H=1
 
29779
    else
 
29780
      HAVE_SYS_BITYPES_H=0
 
29781
    fi
 
29782
 
 
29783
 
 
29784
 
 
29785
 
 
29786
 
 
29787
 
 
29788
 
 
29789
 
 
29790
 
 
29791
 
 
29792
 
 
29793
  if test $APPLE_UNIVERSAL_BUILD = 0; then
 
29794
 
 
29795
 
 
29796
 
 
29797
 
 
29798
  for gltype in ptrdiff_t size_t ; do
 
29799
    { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
 
29800
$as_echo_n "checking for bit size of $gltype... " >&6; }
 
29801
if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
 
29802
  $as_echo_n "(cached) " >&6
 
29803
else
 
29804
  if test "$cross_compiling" = yes; then
 
29805
  # Depending upon the size, compute the lo and hi bounds.
 
29806
cat >conftest.$ac_ext <<_ACEOF
 
29807
/* confdefs.h.  */
 
29808
_ACEOF
 
29809
cat confdefs.h >>conftest.$ac_ext
 
29810
cat >>conftest.$ac_ext <<_ACEOF
 
29811
/* end confdefs.h.  */
 
29812
 
 
29813
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
29814
     included before <wchar.h>.  */
 
29815
  #include <stddef.h>
 
29816
  #include <signal.h>
 
29817
  #if HAVE_WCHAR_H
 
29818
  # include <stdio.h>
 
29819
  # include <time.h>
 
29820
  # include <wchar.h>
 
29821
  #endif
 
29822
 
 
29823
#include <limits.h>
 
29824
int
 
29825
main ()
 
29826
{
 
29827
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
 
29828
test_array [0] = 0
 
29829
 
 
29830
  ;
 
29831
  return 0;
 
29832
}
 
29833
_ACEOF
 
29834
rm -f conftest.$ac_objext
 
29835
if { (ac_try="$ac_compile"
 
29836
case "(($ac_try" in
 
29837
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29838
  *) ac_try_echo=$ac_try;;
 
29839
esac
 
29840
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
29841
$as_echo "$ac_try_echo") >&5
 
29842
  (eval "$ac_compile") 2>conftest.er1
 
29843
  ac_status=$?
 
29844
  grep -v '^ *+' conftest.er1 >conftest.err
 
29845
  rm -f conftest.er1
 
29846
  cat conftest.err >&5
 
29847
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29848
  (exit $ac_status); } && {
 
29849
         test -z "$ac_c_werror_flag" ||
 
29850
         test ! -s conftest.err
 
29851
       } && test -s conftest.$ac_objext; then
 
29852
  ac_lo=0 ac_mid=0
 
29853
  while :; do
 
29854
    cat >conftest.$ac_ext <<_ACEOF
 
29855
/* confdefs.h.  */
 
29856
_ACEOF
 
29857
cat confdefs.h >>conftest.$ac_ext
 
29858
cat >>conftest.$ac_ext <<_ACEOF
 
29859
/* end confdefs.h.  */
 
29860
 
 
29861
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
29862
     included before <wchar.h>.  */
 
29863
  #include <stddef.h>
 
29864
  #include <signal.h>
 
29865
  #if HAVE_WCHAR_H
 
29866
  # include <stdio.h>
 
29867
  # include <time.h>
 
29868
  # include <wchar.h>
 
29869
  #endif
 
29870
 
 
29871
#include <limits.h>
 
29872
int
 
29873
main ()
 
29874
{
 
29875
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
 
29876
test_array [0] = 0
 
29877
 
 
29878
  ;
 
29879
  return 0;
 
29880
}
 
29881
_ACEOF
 
29882
rm -f conftest.$ac_objext
 
29883
if { (ac_try="$ac_compile"
 
29884
case "(($ac_try" in
 
29885
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29886
  *) ac_try_echo=$ac_try;;
 
29887
esac
 
29888
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
29889
$as_echo "$ac_try_echo") >&5
 
29890
  (eval "$ac_compile") 2>conftest.er1
 
29891
  ac_status=$?
 
29892
  grep -v '^ *+' conftest.er1 >conftest.err
 
29893
  rm -f conftest.er1
 
29894
  cat conftest.err >&5
 
29895
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29896
  (exit $ac_status); } && {
 
29897
         test -z "$ac_c_werror_flag" ||
 
29898
         test ! -s conftest.err
 
29899
       } && test -s conftest.$ac_objext; then
 
29900
  ac_hi=$ac_mid; break
 
29901
else
 
29902
  $as_echo "$as_me: failed program was:" >&5
 
29903
sed 's/^/| /' conftest.$ac_ext >&5
 
29904
 
 
29905
        ac_lo=`expr $ac_mid + 1`
 
29906
                        if test $ac_lo -le $ac_mid; then
 
29907
                          ac_lo= ac_hi=
 
29908
                          break
 
29909
                        fi
 
29910
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
29911
fi
 
29912
 
 
29913
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
29914
  done
 
29915
else
 
29916
  $as_echo "$as_me: failed program was:" >&5
 
29917
sed 's/^/| /' conftest.$ac_ext >&5
 
29918
 
 
29919
        cat >conftest.$ac_ext <<_ACEOF
 
29920
/* confdefs.h.  */
 
29921
_ACEOF
 
29922
cat confdefs.h >>conftest.$ac_ext
 
29923
cat >>conftest.$ac_ext <<_ACEOF
 
29924
/* end confdefs.h.  */
 
29925
 
 
29926
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
29927
     included before <wchar.h>.  */
 
29928
  #include <stddef.h>
 
29929
  #include <signal.h>
 
29930
  #if HAVE_WCHAR_H
 
29931
  # include <stdio.h>
 
29932
  # include <time.h>
 
29933
  # include <wchar.h>
 
29934
  #endif
 
29935
 
 
29936
#include <limits.h>
 
29937
int
 
29938
main ()
 
29939
{
 
29940
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
 
29941
test_array [0] = 0
 
29942
 
 
29943
  ;
 
29944
  return 0;
 
29945
}
 
29946
_ACEOF
 
29947
rm -f conftest.$ac_objext
 
29948
if { (ac_try="$ac_compile"
 
29949
case "(($ac_try" in
 
29950
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29951
  *) ac_try_echo=$ac_try;;
 
29952
esac
 
29953
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
29954
$as_echo "$ac_try_echo") >&5
 
29955
  (eval "$ac_compile") 2>conftest.er1
 
29956
  ac_status=$?
 
29957
  grep -v '^ *+' conftest.er1 >conftest.err
 
29958
  rm -f conftest.er1
 
29959
  cat conftest.err >&5
 
29960
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29961
  (exit $ac_status); } && {
 
29962
         test -z "$ac_c_werror_flag" ||
 
29963
         test ! -s conftest.err
 
29964
       } && test -s conftest.$ac_objext; then
 
29965
  ac_hi=-1 ac_mid=-1
 
29966
  while :; do
 
29967
    cat >conftest.$ac_ext <<_ACEOF
 
29968
/* confdefs.h.  */
 
29969
_ACEOF
 
29970
cat confdefs.h >>conftest.$ac_ext
 
29971
cat >>conftest.$ac_ext <<_ACEOF
 
29972
/* end confdefs.h.  */
 
29973
 
 
29974
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
29975
     included before <wchar.h>.  */
 
29976
  #include <stddef.h>
 
29977
  #include <signal.h>
 
29978
  #if HAVE_WCHAR_H
 
29979
  # include <stdio.h>
 
29980
  # include <time.h>
 
29981
  # include <wchar.h>
 
29982
  #endif
 
29983
 
 
29984
#include <limits.h>
 
29985
int
 
29986
main ()
 
29987
{
 
29988
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
 
29989
test_array [0] = 0
 
29990
 
 
29991
  ;
 
29992
  return 0;
 
29993
}
 
29994
_ACEOF
 
29995
rm -f conftest.$ac_objext
 
29996
if { (ac_try="$ac_compile"
 
29997
case "(($ac_try" in
 
29998
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29999
  *) ac_try_echo=$ac_try;;
 
30000
esac
 
30001
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
30002
$as_echo "$ac_try_echo") >&5
 
30003
  (eval "$ac_compile") 2>conftest.er1
 
30004
  ac_status=$?
 
30005
  grep -v '^ *+' conftest.er1 >conftest.err
 
30006
  rm -f conftest.er1
 
30007
  cat conftest.err >&5
 
30008
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30009
  (exit $ac_status); } && {
 
30010
         test -z "$ac_c_werror_flag" ||
 
30011
         test ! -s conftest.err
 
30012
       } && test -s conftest.$ac_objext; then
 
30013
  ac_lo=$ac_mid; break
 
30014
else
 
30015
  $as_echo "$as_me: failed program was:" >&5
 
30016
sed 's/^/| /' conftest.$ac_ext >&5
 
30017
 
 
30018
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
30019
                        if test $ac_mid -le $ac_hi; then
 
30020
                          ac_lo= ac_hi=
 
30021
                          break
 
30022
                        fi
 
30023
                        ac_mid=`expr 2 '*' $ac_mid`
 
30024
fi
 
30025
 
 
30026
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
30027
  done
 
30028
else
 
30029
  $as_echo "$as_me: failed program was:" >&5
 
30030
sed 's/^/| /' conftest.$ac_ext >&5
 
30031
 
 
30032
        ac_lo= ac_hi=
 
30033
fi
 
30034
 
 
30035
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
30036
fi
 
30037
 
 
30038
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
30039
# Binary search between lo and hi bounds.
 
30040
while test "x$ac_lo" != "x$ac_hi"; do
 
30041
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
30042
  cat >conftest.$ac_ext <<_ACEOF
 
30043
/* confdefs.h.  */
 
30044
_ACEOF
 
30045
cat confdefs.h >>conftest.$ac_ext
 
30046
cat >>conftest.$ac_ext <<_ACEOF
 
30047
/* end confdefs.h.  */
 
30048
 
 
30049
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
30050
     included before <wchar.h>.  */
 
30051
  #include <stddef.h>
 
30052
  #include <signal.h>
 
30053
  #if HAVE_WCHAR_H
 
30054
  # include <stdio.h>
 
30055
  # include <time.h>
 
30056
  # include <wchar.h>
 
30057
  #endif
 
30058
 
 
30059
#include <limits.h>
 
30060
int
 
30061
main ()
 
30062
{
 
30063
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
 
30064
test_array [0] = 0
 
30065
 
 
30066
  ;
 
30067
  return 0;
 
30068
}
 
30069
_ACEOF
 
30070
rm -f conftest.$ac_objext
 
30071
if { (ac_try="$ac_compile"
 
30072
case "(($ac_try" in
 
30073
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30074
  *) ac_try_echo=$ac_try;;
 
30075
esac
 
30076
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
30077
$as_echo "$ac_try_echo") >&5
 
30078
  (eval "$ac_compile") 2>conftest.er1
 
30079
  ac_status=$?
 
30080
  grep -v '^ *+' conftest.er1 >conftest.err
 
30081
  rm -f conftest.er1
 
30082
  cat conftest.err >&5
 
30083
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30084
  (exit $ac_status); } && {
 
30085
         test -z "$ac_c_werror_flag" ||
 
30086
         test ! -s conftest.err
 
30087
       } && test -s conftest.$ac_objext; then
 
30088
  ac_hi=$ac_mid
 
30089
else
 
30090
  $as_echo "$as_me: failed program was:" >&5
 
30091
sed 's/^/| /' conftest.$ac_ext >&5
 
30092
 
 
30093
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
30094
fi
 
30095
 
 
30096
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
30097
done
 
30098
case $ac_lo in
 
30099
?*) result=$ac_lo;;
 
30100
'') result=unknown ;;
 
30101
esac
 
30102
else
 
30103
  cat >conftest.$ac_ext <<_ACEOF
 
30104
/* confdefs.h.  */
 
30105
_ACEOF
 
30106
cat confdefs.h >>conftest.$ac_ext
 
30107
cat >>conftest.$ac_ext <<_ACEOF
 
30108
/* end confdefs.h.  */
 
30109
 
 
30110
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
30111
     included before <wchar.h>.  */
 
30112
  #include <stddef.h>
 
30113
  #include <signal.h>
 
30114
  #if HAVE_WCHAR_H
 
30115
  # include <stdio.h>
 
30116
  # include <time.h>
 
30117
  # include <wchar.h>
 
30118
  #endif
 
30119
 
 
30120
#include <limits.h>
 
30121
static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
 
30122
static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
 
30123
#include <stdio.h>
 
30124
#include <stdlib.h>
 
30125
int
 
30126
main ()
 
30127
{
 
30128
 
 
30129
  FILE *f = fopen ("conftest.val", "w");
 
30130
  if (! f)
 
30131
    return 1;
 
30132
  if ((sizeof ($gltype) * CHAR_BIT) < 0)
 
30133
    {
 
30134
      long int i = longval ();
 
30135
      if (i != (sizeof ($gltype) * CHAR_BIT))
 
30136
        return 1;
 
30137
      fprintf (f, "%ld", i);
 
30138
    }
 
30139
  else
 
30140
    {
 
30141
      unsigned long int i = ulongval ();
 
30142
      if (i != (sizeof ($gltype) * CHAR_BIT))
 
30143
        return 1;
 
30144
      fprintf (f, "%lu", i);
 
30145
    }
 
30146
  /* Do not output a trailing newline, as this causes \r\n confusion
 
30147
     on some platforms.  */
 
30148
  return ferror (f) || fclose (f) != 0;
 
30149
 
 
30150
  ;
 
30151
  return 0;
 
30152
}
 
30153
_ACEOF
 
30154
rm -f conftest$ac_exeext
 
30155
if { (ac_try="$ac_link"
 
30156
case "(($ac_try" in
 
30157
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30158
  *) ac_try_echo=$ac_try;;
 
30159
esac
 
30160
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
30161
$as_echo "$ac_try_echo") >&5
 
30162
  (eval "$ac_link") 2>&5
 
30163
  ac_status=$?
 
30164
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30165
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
30166
  { (case "(($ac_try" in
 
30167
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30168
  *) ac_try_echo=$ac_try;;
 
30169
esac
 
30170
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
30171
$as_echo "$ac_try_echo") >&5
 
30172
  (eval "$ac_try") 2>&5
 
30173
  ac_status=$?
 
30174
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30175
  (exit $ac_status); }; }; then
 
30176
  result=`cat conftest.val`
 
30177
else
 
30178
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
30179
$as_echo "$as_me: failed program was:" >&5
 
30180
sed 's/^/| /' conftest.$ac_ext >&5
 
30181
 
 
30182
( exit $ac_status )
 
30183
result=unknown
 
30184
fi
 
30185
rm -rf conftest.dSYM
 
30186
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
30187
fi
 
30188
rm -f conftest.val
 
30189
       eval gl_cv_bitsizeof_${gltype}=\$result
 
30190
 
 
30191
fi
 
30192
ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
 
30193
                 $as_echo "$as_val"'`
 
30194
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
30195
$as_echo "$ac_res" >&6; }
 
30196
    eval result=\$gl_cv_bitsizeof_${gltype}
 
30197
    if test $result = unknown; then
 
30198
                                                result=0
 
30199
    fi
 
30200
    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
 
30201
    cat >>confdefs.h <<_ACEOF
 
30202
#define BITSIZEOF_${GLTYPE} $result
 
30203
_ACEOF
 
30204
 
 
30205
    eval BITSIZEOF_${GLTYPE}=\$result
 
30206
  done
 
30207
 
 
30208
 
 
30209
  fi
 
30210
 
 
30211
 
 
30212
 
 
30213
 
 
30214
 
 
30215
  for gltype in sig_atomic_t wchar_t wint_t ; do
 
30216
    { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
 
30217
$as_echo_n "checking for bit size of $gltype... " >&6; }
 
30218
if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
 
30219
  $as_echo_n "(cached) " >&6
 
30220
else
 
30221
  if test "$cross_compiling" = yes; then
 
30222
  # Depending upon the size, compute the lo and hi bounds.
 
30223
cat >conftest.$ac_ext <<_ACEOF
 
30224
/* confdefs.h.  */
 
30225
_ACEOF
 
30226
cat confdefs.h >>conftest.$ac_ext
 
30227
cat >>conftest.$ac_ext <<_ACEOF
 
30228
/* end confdefs.h.  */
 
30229
 
 
30230
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
30231
     included before <wchar.h>.  */
 
30232
  #include <stddef.h>
 
30233
  #include <signal.h>
 
30234
  #if HAVE_WCHAR_H
 
30235
  # include <stdio.h>
 
30236
  # include <time.h>
 
30237
  # include <wchar.h>
 
30238
  #endif
 
30239
 
 
30240
#include <limits.h>
 
30241
int
 
30242
main ()
 
30243
{
 
30244
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
 
30245
test_array [0] = 0
 
30246
 
 
30247
  ;
 
30248
  return 0;
 
30249
}
 
30250
_ACEOF
 
30251
rm -f conftest.$ac_objext
 
30252
if { (ac_try="$ac_compile"
 
30253
case "(($ac_try" in
 
30254
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30255
  *) ac_try_echo=$ac_try;;
 
30256
esac
 
30257
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
30258
$as_echo "$ac_try_echo") >&5
 
30259
  (eval "$ac_compile") 2>conftest.er1
 
30260
  ac_status=$?
 
30261
  grep -v '^ *+' conftest.er1 >conftest.err
 
30262
  rm -f conftest.er1
 
30263
  cat conftest.err >&5
 
30264
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30265
  (exit $ac_status); } && {
 
30266
         test -z "$ac_c_werror_flag" ||
 
30267
         test ! -s conftest.err
 
30268
       } && test -s conftest.$ac_objext; then
 
30269
  ac_lo=0 ac_mid=0
 
30270
  while :; do
 
30271
    cat >conftest.$ac_ext <<_ACEOF
 
30272
/* confdefs.h.  */
 
30273
_ACEOF
 
30274
cat confdefs.h >>conftest.$ac_ext
 
30275
cat >>conftest.$ac_ext <<_ACEOF
 
30276
/* end confdefs.h.  */
 
30277
 
 
30278
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
30279
     included before <wchar.h>.  */
 
30280
  #include <stddef.h>
 
30281
  #include <signal.h>
 
30282
  #if HAVE_WCHAR_H
 
30283
  # include <stdio.h>
 
30284
  # include <time.h>
 
30285
  # include <wchar.h>
 
30286
  #endif
 
30287
 
 
30288
#include <limits.h>
 
30289
int
 
30290
main ()
 
30291
{
 
30292
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
 
30293
test_array [0] = 0
 
30294
 
 
30295
  ;
 
30296
  return 0;
 
30297
}
 
30298
_ACEOF
 
30299
rm -f conftest.$ac_objext
 
30300
if { (ac_try="$ac_compile"
 
30301
case "(($ac_try" in
 
30302
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30303
  *) ac_try_echo=$ac_try;;
 
30304
esac
 
30305
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
30306
$as_echo "$ac_try_echo") >&5
 
30307
  (eval "$ac_compile") 2>conftest.er1
 
30308
  ac_status=$?
 
30309
  grep -v '^ *+' conftest.er1 >conftest.err
 
30310
  rm -f conftest.er1
 
30311
  cat conftest.err >&5
 
30312
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30313
  (exit $ac_status); } && {
 
30314
         test -z "$ac_c_werror_flag" ||
 
30315
         test ! -s conftest.err
 
30316
       } && test -s conftest.$ac_objext; then
 
30317
  ac_hi=$ac_mid; break
 
30318
else
 
30319
  $as_echo "$as_me: failed program was:" >&5
 
30320
sed 's/^/| /' conftest.$ac_ext >&5
 
30321
 
 
30322
        ac_lo=`expr $ac_mid + 1`
 
30323
                        if test $ac_lo -le $ac_mid; then
 
30324
                          ac_lo= ac_hi=
 
30325
                          break
 
30326
                        fi
 
30327
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
30328
fi
 
30329
 
 
30330
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
30331
  done
 
30332
else
 
30333
  $as_echo "$as_me: failed program was:" >&5
 
30334
sed 's/^/| /' conftest.$ac_ext >&5
 
30335
 
 
30336
        cat >conftest.$ac_ext <<_ACEOF
 
30337
/* confdefs.h.  */
 
30338
_ACEOF
 
30339
cat confdefs.h >>conftest.$ac_ext
 
30340
cat >>conftest.$ac_ext <<_ACEOF
 
30341
/* end confdefs.h.  */
 
30342
 
 
30343
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
30344
     included before <wchar.h>.  */
 
30345
  #include <stddef.h>
 
30346
  #include <signal.h>
 
30347
  #if HAVE_WCHAR_H
 
30348
  # include <stdio.h>
 
30349
  # include <time.h>
 
30350
  # include <wchar.h>
 
30351
  #endif
 
30352
 
 
30353
#include <limits.h>
 
30354
int
 
30355
main ()
 
30356
{
 
30357
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
 
30358
test_array [0] = 0
 
30359
 
 
30360
  ;
 
30361
  return 0;
 
30362
}
 
30363
_ACEOF
 
30364
rm -f conftest.$ac_objext
 
30365
if { (ac_try="$ac_compile"
 
30366
case "(($ac_try" in
 
30367
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30368
  *) ac_try_echo=$ac_try;;
 
30369
esac
 
30370
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
30371
$as_echo "$ac_try_echo") >&5
 
30372
  (eval "$ac_compile") 2>conftest.er1
 
30373
  ac_status=$?
 
30374
  grep -v '^ *+' conftest.er1 >conftest.err
 
30375
  rm -f conftest.er1
 
30376
  cat conftest.err >&5
 
30377
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30378
  (exit $ac_status); } && {
 
30379
         test -z "$ac_c_werror_flag" ||
 
30380
         test ! -s conftest.err
 
30381
       } && test -s conftest.$ac_objext; then
 
30382
  ac_hi=-1 ac_mid=-1
 
30383
  while :; do
 
30384
    cat >conftest.$ac_ext <<_ACEOF
 
30385
/* confdefs.h.  */
 
30386
_ACEOF
 
30387
cat confdefs.h >>conftest.$ac_ext
 
30388
cat >>conftest.$ac_ext <<_ACEOF
 
30389
/* end confdefs.h.  */
 
30390
 
 
30391
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
30392
     included before <wchar.h>.  */
 
30393
  #include <stddef.h>
 
30394
  #include <signal.h>
 
30395
  #if HAVE_WCHAR_H
 
30396
  # include <stdio.h>
 
30397
  # include <time.h>
 
30398
  # include <wchar.h>
 
30399
  #endif
 
30400
 
 
30401
#include <limits.h>
 
30402
int
 
30403
main ()
 
30404
{
 
30405
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
 
30406
test_array [0] = 0
 
30407
 
 
30408
  ;
 
30409
  return 0;
 
30410
}
 
30411
_ACEOF
 
30412
rm -f conftest.$ac_objext
 
30413
if { (ac_try="$ac_compile"
 
30414
case "(($ac_try" in
 
30415
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30416
  *) ac_try_echo=$ac_try;;
 
30417
esac
 
30418
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
30419
$as_echo "$ac_try_echo") >&5
 
30420
  (eval "$ac_compile") 2>conftest.er1
 
30421
  ac_status=$?
 
30422
  grep -v '^ *+' conftest.er1 >conftest.err
 
30423
  rm -f conftest.er1
 
30424
  cat conftest.err >&5
 
30425
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30426
  (exit $ac_status); } && {
 
30427
         test -z "$ac_c_werror_flag" ||
 
30428
         test ! -s conftest.err
 
30429
       } && test -s conftest.$ac_objext; then
 
30430
  ac_lo=$ac_mid; break
 
30431
else
 
30432
  $as_echo "$as_me: failed program was:" >&5
 
30433
sed 's/^/| /' conftest.$ac_ext >&5
 
30434
 
 
30435
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
30436
                        if test $ac_mid -le $ac_hi; then
 
30437
                          ac_lo= ac_hi=
 
30438
                          break
 
30439
                        fi
 
30440
                        ac_mid=`expr 2 '*' $ac_mid`
 
30441
fi
 
30442
 
 
30443
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
30444
  done
 
30445
else
 
30446
  $as_echo "$as_me: failed program was:" >&5
 
30447
sed 's/^/| /' conftest.$ac_ext >&5
 
30448
 
 
30449
        ac_lo= ac_hi=
 
30450
fi
 
30451
 
 
30452
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
30453
fi
 
30454
 
 
30455
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
30456
# Binary search between lo and hi bounds.
 
30457
while test "x$ac_lo" != "x$ac_hi"; do
 
30458
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
30459
  cat >conftest.$ac_ext <<_ACEOF
 
30460
/* confdefs.h.  */
 
30461
_ACEOF
 
30462
cat confdefs.h >>conftest.$ac_ext
 
30463
cat >>conftest.$ac_ext <<_ACEOF
 
30464
/* end confdefs.h.  */
 
30465
 
 
30466
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
30467
     included before <wchar.h>.  */
 
30468
  #include <stddef.h>
 
30469
  #include <signal.h>
 
30470
  #if HAVE_WCHAR_H
 
30471
  # include <stdio.h>
 
30472
  # include <time.h>
 
30473
  # include <wchar.h>
 
30474
  #endif
 
30475
 
 
30476
#include <limits.h>
 
30477
int
 
30478
main ()
 
30479
{
 
30480
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
 
30481
test_array [0] = 0
 
30482
 
 
30483
  ;
 
30484
  return 0;
 
30485
}
 
30486
_ACEOF
 
30487
rm -f conftest.$ac_objext
 
30488
if { (ac_try="$ac_compile"
 
30489
case "(($ac_try" in
 
30490
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30491
  *) ac_try_echo=$ac_try;;
 
30492
esac
 
30493
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
30494
$as_echo "$ac_try_echo") >&5
 
30495
  (eval "$ac_compile") 2>conftest.er1
 
30496
  ac_status=$?
 
30497
  grep -v '^ *+' conftest.er1 >conftest.err
 
30498
  rm -f conftest.er1
 
30499
  cat conftest.err >&5
 
30500
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30501
  (exit $ac_status); } && {
 
30502
         test -z "$ac_c_werror_flag" ||
 
30503
         test ! -s conftest.err
 
30504
       } && test -s conftest.$ac_objext; then
 
30505
  ac_hi=$ac_mid
 
30506
else
 
30507
  $as_echo "$as_me: failed program was:" >&5
 
30508
sed 's/^/| /' conftest.$ac_ext >&5
 
30509
 
 
30510
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
30511
fi
 
30512
 
 
30513
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
30514
done
 
30515
case $ac_lo in
 
30516
?*) result=$ac_lo;;
 
30517
'') result=unknown ;;
 
30518
esac
 
30519
else
 
30520
  cat >conftest.$ac_ext <<_ACEOF
 
30521
/* confdefs.h.  */
 
30522
_ACEOF
 
30523
cat confdefs.h >>conftest.$ac_ext
 
30524
cat >>conftest.$ac_ext <<_ACEOF
 
30525
/* end confdefs.h.  */
 
30526
 
 
30527
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
30528
     included before <wchar.h>.  */
 
30529
  #include <stddef.h>
 
30530
  #include <signal.h>
 
30531
  #if HAVE_WCHAR_H
 
30532
  # include <stdio.h>
 
30533
  # include <time.h>
 
30534
  # include <wchar.h>
 
30535
  #endif
 
30536
 
 
30537
#include <limits.h>
 
30538
static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
 
30539
static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
 
30540
#include <stdio.h>
 
30541
#include <stdlib.h>
 
30542
int
 
30543
main ()
 
30544
{
 
30545
 
 
30546
  FILE *f = fopen ("conftest.val", "w");
 
30547
  if (! f)
 
30548
    return 1;
 
30549
  if ((sizeof ($gltype) * CHAR_BIT) < 0)
 
30550
    {
 
30551
      long int i = longval ();
 
30552
      if (i != (sizeof ($gltype) * CHAR_BIT))
 
30553
        return 1;
 
30554
      fprintf (f, "%ld", i);
 
30555
    }
 
30556
  else
 
30557
    {
 
30558
      unsigned long int i = ulongval ();
 
30559
      if (i != (sizeof ($gltype) * CHAR_BIT))
 
30560
        return 1;
 
30561
      fprintf (f, "%lu", i);
 
30562
    }
 
30563
  /* Do not output a trailing newline, as this causes \r\n confusion
 
30564
     on some platforms.  */
 
30565
  return ferror (f) || fclose (f) != 0;
 
30566
 
 
30567
  ;
 
30568
  return 0;
 
30569
}
 
30570
_ACEOF
 
30571
rm -f conftest$ac_exeext
 
30572
if { (ac_try="$ac_link"
 
30573
case "(($ac_try" in
 
30574
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30575
  *) ac_try_echo=$ac_try;;
 
30576
esac
 
30577
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
30578
$as_echo "$ac_try_echo") >&5
 
30579
  (eval "$ac_link") 2>&5
 
30580
  ac_status=$?
 
30581
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30582
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
30583
  { (case "(($ac_try" in
 
30584
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30585
  *) ac_try_echo=$ac_try;;
 
30586
esac
 
30587
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
30588
$as_echo "$ac_try_echo") >&5
 
30589
  (eval "$ac_try") 2>&5
 
30590
  ac_status=$?
 
30591
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30592
  (exit $ac_status); }; }; then
 
30593
  result=`cat conftest.val`
 
30594
else
 
30595
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
30596
$as_echo "$as_me: failed program was:" >&5
 
30597
sed 's/^/| /' conftest.$ac_ext >&5
 
30598
 
 
30599
( exit $ac_status )
 
30600
result=unknown
 
30601
fi
 
30602
rm -rf conftest.dSYM
 
30603
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
30604
fi
 
30605
rm -f conftest.val
 
30606
       eval gl_cv_bitsizeof_${gltype}=\$result
 
30607
 
 
30608
fi
 
30609
ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
 
30610
                 $as_echo "$as_val"'`
 
30611
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
30612
$as_echo "$ac_res" >&6; }
 
30613
    eval result=\$gl_cv_bitsizeof_${gltype}
 
30614
    if test $result = unknown; then
 
30615
                                                result=0
 
30616
    fi
 
30617
    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
 
30618
    cat >>confdefs.h <<_ACEOF
 
30619
#define BITSIZEOF_${GLTYPE} $result
 
30620
_ACEOF
 
30621
 
 
30622
    eval BITSIZEOF_${GLTYPE}=\$result
 
30623
  done
 
30624
 
 
30625
 
 
30626
 
 
30627
 
 
30628
 
 
30629
 
 
30630
 
 
30631
  for gltype in sig_atomic_t wchar_t wint_t ; do
 
30632
    { $as_echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
 
30633
$as_echo_n "checking whether $gltype is signed... " >&6; }
 
30634
if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
 
30635
  $as_echo_n "(cached) " >&6
 
30636
else
 
30637
  cat >conftest.$ac_ext <<_ACEOF
 
30638
/* confdefs.h.  */
 
30639
_ACEOF
 
30640
cat confdefs.h >>conftest.$ac_ext
 
30641
cat >>conftest.$ac_ext <<_ACEOF
 
30642
/* end confdefs.h.  */
 
30643
 
 
30644
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
30645
     included before <wchar.h>.  */
 
30646
  #include <stddef.h>
 
30647
  #include <signal.h>
 
30648
  #if HAVE_WCHAR_H
 
30649
  # include <stdio.h>
 
30650
  # include <time.h>
 
30651
  # include <wchar.h>
 
30652
  #endif
 
30653
 
 
30654
            int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
 
30655
int
 
30656
main ()
 
30657
{
 
30658
 
 
30659
  ;
 
30660
  return 0;
 
30661
}
 
30662
_ACEOF
 
30663
rm -f conftest.$ac_objext
 
30664
if { (ac_try="$ac_compile"
 
30665
case "(($ac_try" in
 
30666
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30667
  *) ac_try_echo=$ac_try;;
 
30668
esac
 
30669
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
30670
$as_echo "$ac_try_echo") >&5
 
30671
  (eval "$ac_compile") 2>conftest.er1
 
30672
  ac_status=$?
 
30673
  grep -v '^ *+' conftest.er1 >conftest.err
 
30674
  rm -f conftest.er1
 
30675
  cat conftest.err >&5
 
30676
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30677
  (exit $ac_status); } && {
 
30678
         test -z "$ac_c_werror_flag" ||
 
30679
         test ! -s conftest.err
 
30680
       } && test -s conftest.$ac_objext; then
 
30681
  result=yes
 
30682
else
 
30683
  $as_echo "$as_me: failed program was:" >&5
 
30684
sed 's/^/| /' conftest.$ac_ext >&5
 
30685
 
 
30686
        result=no
 
30687
fi
 
30688
 
 
30689
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
30690
       eval gl_cv_type_${gltype}_signed=\$result
 
30691
 
 
30692
fi
 
30693
ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_signed'}
 
30694
                 $as_echo "$as_val"'`
 
30695
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
30696
$as_echo "$ac_res" >&6; }
 
30697
    eval result=\$gl_cv_type_${gltype}_signed
 
30698
    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
 
30699
    if test "$result" = yes; then
 
30700
      cat >>confdefs.h <<_ACEOF
 
30701
#define HAVE_SIGNED_${GLTYPE} 1
 
30702
_ACEOF
 
30703
 
 
30704
      eval HAVE_SIGNED_${GLTYPE}=1
 
30705
    else
 
30706
      eval HAVE_SIGNED_${GLTYPE}=0
 
30707
    fi
 
30708
  done
 
30709
 
 
30710
 
 
30711
  gl_cv_type_ptrdiff_t_signed=yes
 
30712
  gl_cv_type_size_t_signed=no
 
30713
  if test $APPLE_UNIVERSAL_BUILD = 0; then
 
30714
 
 
30715
 
 
30716
 
 
30717
 
 
30718
  for gltype in ptrdiff_t size_t ; do
 
30719
    { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
 
30720
$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
 
30721
if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
 
30722
  $as_echo_n "(cached) " >&6
 
30723
else
 
30724
  eval gl_cv_type_${gltype}_suffix=no
 
30725
       eval result=\$gl_cv_type_${gltype}_signed
 
30726
       if test "$result" = yes; then
 
30727
         glsufu=
 
30728
       else
 
30729
         glsufu=u
 
30730
       fi
 
30731
       for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
 
30732
         case $glsuf in
 
30733
           '')  gltype1='int';;
 
30734
           l)   gltype1='long int';;
 
30735
           ll)  gltype1='long long int';;
 
30736
           i64) gltype1='__int64';;
 
30737
           u)   gltype1='unsigned int';;
 
30738
           ul)  gltype1='unsigned long int';;
 
30739
           ull) gltype1='unsigned long long int';;
 
30740
           ui64)gltype1='unsigned __int64';;
 
30741
         esac
 
30742
         cat >conftest.$ac_ext <<_ACEOF
 
30743
/* confdefs.h.  */
 
30744
_ACEOF
 
30745
cat confdefs.h >>conftest.$ac_ext
 
30746
cat >>conftest.$ac_ext <<_ACEOF
 
30747
/* end confdefs.h.  */
 
30748
 
 
30749
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
30750
     included before <wchar.h>.  */
 
30751
  #include <stddef.h>
 
30752
  #include <signal.h>
 
30753
  #if HAVE_WCHAR_H
 
30754
  # include <stdio.h>
 
30755
  # include <time.h>
 
30756
  # include <wchar.h>
 
30757
  #endif
 
30758
 
 
30759
              extern $gltype foo;
 
30760
              extern $gltype1 foo;
 
30761
int
 
30762
main ()
 
30763
{
 
30764
 
 
30765
  ;
 
30766
  return 0;
 
30767
}
 
30768
_ACEOF
 
30769
rm -f conftest.$ac_objext
 
30770
if { (ac_try="$ac_compile"
 
30771
case "(($ac_try" in
 
30772
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30773
  *) ac_try_echo=$ac_try;;
 
30774
esac
 
30775
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
30776
$as_echo "$ac_try_echo") >&5
 
30777
  (eval "$ac_compile") 2>conftest.er1
 
30778
  ac_status=$?
 
30779
  grep -v '^ *+' conftest.er1 >conftest.err
 
30780
  rm -f conftest.er1
 
30781
  cat conftest.err >&5
 
30782
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30783
  (exit $ac_status); } && {
 
30784
         test -z "$ac_c_werror_flag" ||
 
30785
         test ! -s conftest.err
 
30786
       } && test -s conftest.$ac_objext; then
 
30787
  eval gl_cv_type_${gltype}_suffix=\$glsuf
 
30788
else
 
30789
  $as_echo "$as_me: failed program was:" >&5
 
30790
sed 's/^/| /' conftest.$ac_ext >&5
 
30791
 
 
30792
 
 
30793
fi
 
30794
 
 
30795
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
30796
         eval result=\$gl_cv_type_${gltype}_suffix
 
30797
         test "$result" != no && break
 
30798
       done
 
30799
fi
 
30800
ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
 
30801
                 $as_echo "$as_val"'`
 
30802
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
30803
$as_echo "$ac_res" >&6; }
 
30804
    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
 
30805
    eval result=\$gl_cv_type_${gltype}_suffix
 
30806
    test "$result" = no && result=
 
30807
    eval ${GLTYPE}_SUFFIX=\$result
 
30808
    cat >>confdefs.h <<_ACEOF
 
30809
#define ${GLTYPE}_SUFFIX $result
 
30810
_ACEOF
 
30811
 
 
30812
  done
 
30813
 
 
30814
 
 
30815
  fi
 
30816
 
 
30817
 
 
30818
 
 
30819
 
 
30820
 
 
30821
  for gltype in sig_atomic_t wchar_t wint_t ; do
 
30822
    { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
 
30823
$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
 
30824
if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
 
30825
  $as_echo_n "(cached) " >&6
 
30826
else
 
30827
  eval gl_cv_type_${gltype}_suffix=no
 
30828
       eval result=\$gl_cv_type_${gltype}_signed
 
30829
       if test "$result" = yes; then
 
30830
         glsufu=
 
30831
       else
 
30832
         glsufu=u
 
30833
       fi
 
30834
       for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
 
30835
         case $glsuf in
 
30836
           '')  gltype1='int';;
 
30837
           l)   gltype1='long int';;
 
30838
           ll)  gltype1='long long int';;
 
30839
           i64) gltype1='__int64';;
 
30840
           u)   gltype1='unsigned int';;
 
30841
           ul)  gltype1='unsigned long int';;
 
30842
           ull) gltype1='unsigned long long int';;
 
30843
           ui64)gltype1='unsigned __int64';;
 
30844
         esac
 
30845
         cat >conftest.$ac_ext <<_ACEOF
 
30846
/* confdefs.h.  */
 
30847
_ACEOF
 
30848
cat confdefs.h >>conftest.$ac_ext
 
30849
cat >>conftest.$ac_ext <<_ACEOF
 
30850
/* end confdefs.h.  */
 
30851
 
 
30852
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
30853
     included before <wchar.h>.  */
 
30854
  #include <stddef.h>
 
30855
  #include <signal.h>
 
30856
  #if HAVE_WCHAR_H
 
30857
  # include <stdio.h>
 
30858
  # include <time.h>
 
30859
  # include <wchar.h>
 
30860
  #endif
 
30861
 
 
30862
              extern $gltype foo;
 
30863
              extern $gltype1 foo;
 
30864
int
 
30865
main ()
 
30866
{
 
30867
 
 
30868
  ;
 
30869
  return 0;
 
30870
}
 
30871
_ACEOF
 
30872
rm -f conftest.$ac_objext
 
30873
if { (ac_try="$ac_compile"
 
30874
case "(($ac_try" in
 
30875
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30876
  *) ac_try_echo=$ac_try;;
 
30877
esac
 
30878
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
30879
$as_echo "$ac_try_echo") >&5
 
30880
  (eval "$ac_compile") 2>conftest.er1
 
30881
  ac_status=$?
 
30882
  grep -v '^ *+' conftest.er1 >conftest.err
 
30883
  rm -f conftest.er1
 
30884
  cat conftest.err >&5
 
30885
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30886
  (exit $ac_status); } && {
 
30887
         test -z "$ac_c_werror_flag" ||
 
30888
         test ! -s conftest.err
 
30889
       } && test -s conftest.$ac_objext; then
 
30890
  eval gl_cv_type_${gltype}_suffix=\$glsuf
 
30891
else
 
30892
  $as_echo "$as_me: failed program was:" >&5
 
30893
sed 's/^/| /' conftest.$ac_ext >&5
 
30894
 
 
30895
 
 
30896
fi
 
30897
 
 
30898
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
30899
         eval result=\$gl_cv_type_${gltype}_suffix
 
30900
         test "$result" != no && break
 
30901
       done
 
30902
fi
 
30903
ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
 
30904
                 $as_echo "$as_val"'`
 
30905
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
30906
$as_echo "$ac_res" >&6; }
 
30907
    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
 
30908
    eval result=\$gl_cv_type_${gltype}_suffix
 
30909
    test "$result" = no && result=
 
30910
    eval ${GLTYPE}_SUFFIX=\$result
 
30911
    cat >>confdefs.h <<_ACEOF
 
30912
#define ${GLTYPE}_SUFFIX $result
 
30913
_ACEOF
 
30914
 
 
30915
  done
 
30916
 
 
30917
 
 
30918
 
 
30919
    STDINT_H=stdint.h
 
30920
  fi
 
30921
 
 
30922
 
 
30923
 
 
30924
 
 
30925
  { $as_echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
 
30926
$as_echo_n "checking whether <wchar.h> is standalone... " >&6; }
 
30927
if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
 
30928
  $as_echo_n "(cached) " >&6
 
30929
else
 
30930
  cat >conftest.$ac_ext <<_ACEOF
 
30931
#include <wchar.h>
 
30932
wchar_t w;
 
30933
_ACEOF
 
30934
rm -f conftest.$ac_objext
 
30935
if { (ac_try="$ac_compile"
 
30936
case "(($ac_try" in
 
30937
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30938
  *) ac_try_echo=$ac_try;;
 
30939
esac
 
30940
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
30941
$as_echo "$ac_try_echo") >&5
 
30942
  (eval "$ac_compile") 2>conftest.er1
 
30943
  ac_status=$?
 
30944
  grep -v '^ *+' conftest.er1 >conftest.err
 
30945
  rm -f conftest.er1
 
30946
  cat conftest.err >&5
 
30947
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30948
  (exit $ac_status); } && {
 
30949
         test -z "$ac_c_werror_flag" ||
 
30950
         test ! -s conftest.err
 
30951
       } && test -s conftest.$ac_objext; then
 
30952
  gl_cv_header_wchar_h_standalone=yes
 
30953
else
 
30954
  $as_echo "$as_me: failed program was:" >&5
 
30955
sed 's/^/| /' conftest.$ac_ext >&5
 
30956
 
 
30957
        gl_cv_header_wchar_h_standalone=no
 
30958
fi
 
30959
 
 
30960
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
30961
fi
 
30962
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
 
30963
$as_echo "$gl_cv_header_wchar_h_standalone" >&6; }
 
30964
 
 
30965
 
 
30966
  if test $gt_cv_c_wint_t = yes; then
 
30967
    HAVE_WINT_T=1
 
30968
  else
 
30969
    HAVE_WINT_T=0
 
30970
  fi
 
30971
 
 
30972
 
 
30973
 
 
30974
 
 
30975
  if test $gl_cv_header_wchar_h_standalone != yes || test $gt_cv_c_wint_t != yes || test -n "$STDDEF_H"; then
 
30976
    WCHAR_H=wchar.h
 
30977
  fi
 
30978
 
 
30979
 
 
30980
 
 
30981
 
 
30982
 
 
30983
 
 
30984
 
 
30985
  if test $ac_cv_header_wchar_h = yes; then
 
30986
    HAVE_WCHAR_H=1
 
30987
  else
 
30988
    HAVE_WCHAR_H=0
 
30989
  fi
 
30990
 
 
30991
 
 
30992
 
 
30993
 
 
30994
 
 
30995
 
 
30996
 
 
30997
 
 
30998
 
 
30999
 
 
31000
 
 
31001
 
 
31002
     if test $gl_cv_have_include_next = yes; then
 
31003
       gl_cv_next_wchar_h='<'wchar.h'>'
 
31004
     else
 
31005
       { $as_echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
 
31006
$as_echo_n "checking absolute name of <wchar.h>... " >&6; }
 
31007
if test "${gl_cv_next_wchar_h+set}" = set; then
 
31008
  $as_echo_n "(cached) " >&6
 
31009
else
 
31010
 
 
31011
          if test $ac_cv_header_wchar_h = yes; then
 
31012
            cat >conftest.$ac_ext <<_ACEOF
 
31013
/* confdefs.h.  */
 
31014
_ACEOF
 
31015
cat confdefs.h >>conftest.$ac_ext
 
31016
cat >>conftest.$ac_ext <<_ACEOF
 
31017
/* end confdefs.h.  */
 
31018
#include <wchar.h>
 
31019
 
 
31020
_ACEOF
 
31021
                                                                    case "$host_os" in
 
31022
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
31023
              *)    gl_absname_cpp="$ac_cpp" ;;
 
31024
            esac
 
31025
                                    gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
31026
               sed -n '\#/wchar.h#{
 
31027
                 s#.*"\(.*/wchar.h\)".*#\1#
 
31028
                 s#^/[^/]#//&#
 
31029
                 p
 
31030
                 q
 
31031
               }'`'"'
 
31032
          else
 
31033
            gl_cv_next_wchar_h='<'wchar.h'>'
 
31034
          fi
 
31035
 
 
31036
fi
 
31037
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
 
31038
$as_echo "$gl_cv_next_wchar_h" >&6; }
 
31039
     fi
 
31040
     NEXT_WCHAR_H=$gl_cv_next_wchar_h
 
31041
 
 
31042
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
31043
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
31044
       gl_next_as_first_directive='<'wchar.h'>'
 
31045
     else
 
31046
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
31047
       gl_next_as_first_directive=$gl_cv_next_wchar_h
 
31048
     fi
 
31049
     NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
 
31050
 
 
31051
 
 
31052
 
 
31053
 
 
31054
 
 
31055
 
 
31056
 
 
31057
 
 
31058
 
 
31059
 
 
31060
 
 
31061
 
 
31062
 
 
31063
  gltests_libdeps=
 
31064
  gltests_ltlibdeps=
 
31065
 
 
31066
 
 
31067
 
 
31068
 
 
31069
 
 
31070
 
 
31071
 
 
31072
 
 
31073
 
 
31074
  gl_source_base='tests'
 
31075
 
 
31076
 
 
31077
 
 
31078
 
 
31079
 
 
31080
 
 
31081
 
 
31082
  LIBMD5_LIBDEPS="$gl_libdeps"
 
31083
 
 
31084
  LIBMD5_LTLIBDEPS="$gl_ltlibdeps"
 
31085
 
 
31086
 
 
31087
  fi
11741
31088
 
11742
31089
cat >>confdefs.h <<\_ACEOF
11743
31090
#define HAVE_MD5 1
11744
31091
_ACEOF
11745
31092
 
11746
 
 
 
31093
fi
11747
31094
 
11748
31095
 
11749
31096
 
11751
31098
if test "${enable_ipv6+set}" = set; then
11752
31099
  enableval=$enable_ipv6; case "${enable_ipv6}" in
11753
31100
    no)
11754
 
      { echo "$as_me:$LINENO: disabling IPv6 at user request" >&5
11755
 
echo "$as_me: disabling IPv6 at user request" >&6;}
 
31101
      { $as_echo "$as_me:$LINENO: disabling IPv6 at user request" >&5
 
31102
$as_echo "$as_me: disabling IPv6 at user request" >&6;}
11756
31103
            ipv6=no
11757
31104
      ;;
11758
31105
    yes)
11763
31110
            ipv6=yes
11764
31111
      ;;
11765
31112
    *)
11766
 
      { { echo "$as_me:$LINENO: error: Invalid --enable-ipv6 argument \`$enable_ipv6'" >&5
11767
 
echo "$as_me: error: Invalid --enable-ipv6 argument \`$enable_ipv6'" >&2;}
 
31113
      { { $as_echo "$as_me:$LINENO: error: Invalid --enable-ipv6 argument \`$enable_ipv6'" >&5
 
31114
$as_echo "$as_me: error: Invalid --enable-ipv6 argument \`$enable_ipv6'" >&2;}
11768
31115
   { (exit 1); exit 1; }; }
11769
31116
      ;;
11770
31117
    esac
11781
31128
 
11782
31129
for ac_func in getaddrinfo
11783
31130
do
11784
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11785
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11786
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
31131
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
31132
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
31133
$as_echo_n "checking for $ac_func... " >&6; }
11787
31134
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11788
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31135
  $as_echo_n "(cached) " >&6
11789
31136
else
11790
31137
  cat >conftest.$ac_ext <<_ACEOF
11791
31138
/* confdefs.h.  */
11838
31185
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11839
31186
  *) ac_try_echo=$ac_try;;
11840
31187
esac
11841
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
31188
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
31189
$as_echo "$ac_try_echo") >&5
11842
31190
  (eval "$ac_link") 2>conftest.er1
11843
31191
  ac_status=$?
11844
31192
  grep -v '^ *+' conftest.er1 >conftest.err
11845
31193
  rm -f conftest.er1
11846
31194
  cat conftest.err >&5
11847
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31195
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848
31196
  (exit $ac_status); } && {
11849
31197
         test -z "$ac_c_werror_flag" ||
11850
31198
         test ! -s conftest.err
11851
 
       } && test -s conftest$ac_exeext &&
11852
 
       $as_test_x conftest$ac_exeext; then
 
31199
       } && test -s conftest$ac_exeext && {
 
31200
         test "$cross_compiling" = yes ||
 
31201
         $as_test_x conftest$ac_exeext
 
31202
       }; then
11853
31203
  eval "$as_ac_var=yes"
11854
31204
else
11855
 
  echo "$as_me: failed program was:" >&5
 
31205
  $as_echo "$as_me: failed program was:" >&5
11856
31206
sed 's/^/| /' conftest.$ac_ext >&5
11857
31207
 
11858
31208
        eval "$as_ac_var=no"
11859
31209
fi
11860
31210
 
 
31211
rm -rf conftest.dSYM
11861
31212
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11862
31213
      conftest$ac_exeext conftest.$ac_ext
11863
31214
fi
11864
 
ac_res=`eval echo '${'$as_ac_var'}'`
11865
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
11866
 
echo "${ECHO_T}$ac_res" >&6; }
11867
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
31215
ac_res=`eval 'as_val=${'$as_ac_var'}
 
31216
                 $as_echo "$as_val"'`
 
31217
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
31218
$as_echo "$ac_res" >&6; }
 
31219
as_val=`eval 'as_val=${'$as_ac_var'}
 
31220
                 $as_echo "$as_val"'`
 
31221
   if test "x$as_val" = x""yes; then
11868
31222
  cat >>confdefs.h <<_ACEOF
11869
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
31223
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11870
31224
_ACEOF
11871
31225
 
11872
31226
else
11873
31227
 
11874
 
    { echo "$as_me:$LINENO: Disabling IPv6 support: your system does not support getaddrinfo(3)" >&5
11875
 
echo "$as_me: Disabling IPv6 support: your system does not support getaddrinfo(3)" >&6;}
 
31228
    { $as_echo "$as_me:$LINENO: Disabling IPv6 support: your system does not support getaddrinfo(3)" >&5
 
31229
$as_echo "$as_me: Disabling IPv6 support: your system does not support getaddrinfo(3)" >&6;}
11876
31230
    ipv6=no
11877
31231
 
11878
31232
fi
11882
31236
 
11883
31237
if test "X$ipv6" = "Xyes"; then
11884
31238
 
11885
 
  { echo "$as_me:$LINENO: checking for INET6 protocol support" >&5
11886
 
echo $ECHO_N "checking for INET6 protocol support... $ECHO_C" >&6; }
 
31239
  { $as_echo "$as_me:$LINENO: checking for INET6 protocol support" >&5
 
31240
$as_echo_n "checking for INET6 protocol support... " >&6; }
11887
31241
if test "${wget_cv_proto_inet6+set}" = set; then
11888
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31242
  $as_echo_n "(cached) " >&6
11889
31243
else
11890
31244
 
11891
31245
    cat >conftest.$ac_ext <<_ACEOF
11911
31265
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11912
31266
  *) ac_try_echo=$ac_try;;
11913
31267
esac
11914
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
31268
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
31269
$as_echo "$ac_try_echo") >&5
11915
31270
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11916
31271
  ac_status=$?
11917
31272
  grep -v '^ *+' conftest.er1 >conftest.err
11918
31273
  rm -f conftest.er1
11919
31274
  cat conftest.err >&5
11920
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31275
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921
31276
  (exit $ac_status); } >/dev/null && {
11922
31277
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11923
31278
         test ! -s conftest.err
11926
31281
      wget_cv_proto_inet6=yes
11927
31282
 
11928
31283
else
11929
 
  echo "$as_me: failed program was:" >&5
 
31284
  $as_echo "$as_me: failed program was:" >&5
11930
31285
sed 's/^/| /' conftest.$ac_ext >&5
11931
31286
 
11932
31287
 
11937
31292
rm -f conftest.err conftest.$ac_ext
11938
31293
 
11939
31294
fi
11940
 
{ echo "$as_me:$LINENO: result: $wget_cv_proto_inet6" >&5
11941
 
echo "${ECHO_T}$wget_cv_proto_inet6" >&6; }
 
31295
{ $as_echo "$as_me:$LINENO: result: $wget_cv_proto_inet6" >&5
 
31296
$as_echo "$wget_cv_proto_inet6" >&6; }
11942
31297
 
11943
31298
  if test "X$wget_cv_proto_inet6" = "Xyes"; then :
11944
31299
 
11945
31300
  else :
11946
31301
 
11947
 
    { echo "$as_me:$LINENO: Disabling IPv6 support: your system does not support the PF_INET6 protocol family" >&5
11948
 
echo "$as_me: Disabling IPv6 support: your system does not support the PF_INET6 protocol family" >&6;}
 
31302
    { $as_echo "$as_me:$LINENO: Disabling IPv6 support: your system does not support the PF_INET6 protocol family" >&5
 
31303
$as_echo "$as_me: Disabling IPv6 support: your system does not support the PF_INET6 protocol family" >&6;}
11949
31304
    ipv6=no
11950
31305
 
11951
31306
  fi
11955
31310
if test "X$ipv6" = "Xyes"; then
11956
31311
 
11957
31312
  wget_have_sockaddr_in6=
11958
 
  { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
11959
 
echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
 
31313
  { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
 
31314
$as_echo_n "checking for struct sockaddr_in6... " >&6; }
11960
31315
if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
11961
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31316
  $as_echo_n "(cached) " >&6
11962
31317
else
 
31318
  ac_cv_type_struct_sockaddr_in6=no
 
31319
cat >conftest.$ac_ext <<_ACEOF
 
31320
/* confdefs.h.  */
 
31321
_ACEOF
 
31322
cat confdefs.h >>conftest.$ac_ext
 
31323
cat >>conftest.$ac_ext <<_ACEOF
 
31324
/* end confdefs.h.  */
 
31325
 
 
31326
#include <sys/types.h>
 
31327
#include <sys/socket.h>
 
31328
#include <netinet/in.h>
 
31329
 
 
31330
 
 
31331
int
 
31332
main ()
 
31333
{
 
31334
if (sizeof (struct sockaddr_in6))
 
31335
       return 0;
 
31336
  ;
 
31337
  return 0;
 
31338
}
 
31339
_ACEOF
 
31340
rm -f conftest.$ac_objext
 
31341
if { (ac_try="$ac_compile"
 
31342
case "(($ac_try" in
 
31343
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
31344
  *) ac_try_echo=$ac_try;;
 
31345
esac
 
31346
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
31347
$as_echo "$ac_try_echo") >&5
 
31348
  (eval "$ac_compile") 2>conftest.er1
 
31349
  ac_status=$?
 
31350
  grep -v '^ *+' conftest.er1 >conftest.err
 
31351
  rm -f conftest.er1
 
31352
  cat conftest.err >&5
 
31353
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31354
  (exit $ac_status); } && {
 
31355
         test -z "$ac_c_werror_flag" ||
 
31356
         test ! -s conftest.err
 
31357
       } && test -s conftest.$ac_objext; then
11963
31358
  cat >conftest.$ac_ext <<_ACEOF
11964
31359
/* confdefs.h.  */
11965
31360
_ACEOF
11972
31367
#include <netinet/in.h>
11973
31368
 
11974
31369
 
11975
 
typedef struct sockaddr_in6 ac__type_new_;
11976
31370
int
11977
31371
main ()
11978
31372
{
11979
 
if ((ac__type_new_ *) 0)
11980
 
  return 0;
11981
 
if (sizeof (ac__type_new_))
11982
 
  return 0;
 
31373
if (sizeof ((struct sockaddr_in6)))
 
31374
          return 0;
11983
31375
  ;
11984
31376
  return 0;
11985
31377
}
11990
31382
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11991
31383
  *) ac_try_echo=$ac_try;;
11992
31384
esac
11993
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
31385
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
31386
$as_echo "$ac_try_echo") >&5
11994
31387
  (eval "$ac_compile") 2>conftest.er1
11995
31388
  ac_status=$?
11996
31389
  grep -v '^ *+' conftest.er1 >conftest.err
11997
31390
  rm -f conftest.er1
11998
31391
  cat conftest.err >&5
11999
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31392
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000
31393
  (exit $ac_status); } && {
12001
31394
         test -z "$ac_c_werror_flag" ||
12002
31395
         test ! -s conftest.err
12003
31396
       } && test -s conftest.$ac_objext; then
12004
 
  ac_cv_type_struct_sockaddr_in6=yes
12005
 
else
12006
 
  echo "$as_me: failed program was:" >&5
12007
 
sed 's/^/| /' conftest.$ac_ext >&5
12008
 
 
12009
 
        ac_cv_type_struct_sockaddr_in6=no
12010
 
fi
12011
 
 
12012
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12013
 
fi
12014
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
12015
 
echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
12016
 
if test $ac_cv_type_struct_sockaddr_in6 = yes; then
 
31397
  :
 
31398
else
 
31399
  $as_echo "$as_me: failed program was:" >&5
 
31400
sed 's/^/| /' conftest.$ac_ext >&5
 
31401
 
 
31402
        ac_cv_type_struct_sockaddr_in6=yes
 
31403
fi
 
31404
 
 
31405
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
31406
else
 
31407
  $as_echo "$as_me: failed program was:" >&5
 
31408
sed 's/^/| /' conftest.$ac_ext >&5
 
31409
 
 
31410
 
 
31411
fi
 
31412
 
 
31413
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
31414
fi
 
31415
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
 
31416
$as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
 
31417
if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
12017
31418
 
12018
31419
cat >>confdefs.h <<_ACEOF
12019
31420
#define HAVE_STRUCT_SOCKADDR_IN6 1
12033
31434
 
12034
31435
  else :
12035
31436
 
12036
 
    { echo "$as_me:$LINENO: Disabling IPv6 support: your system does not support \`struct sockaddr_in6'" >&5
12037
 
echo "$as_me: Disabling IPv6 support: your system does not support \`struct sockaddr_in6'" >&6;}
 
31437
    { $as_echo "$as_me:$LINENO: Disabling IPv6 support: your system does not support \`struct sockaddr_in6'" >&5
 
31438
$as_echo "$as_me: Disabling IPv6 support: your system does not support \`struct sockaddr_in6'" >&6;}
12038
31439
    ipv6=no
12039
31440
 
12040
31441
  fi
12041
31442
 
12042
31443
  if test "X$ipv6" = "Xyes"; then
12043
31444
 
12044
 
  { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
12045
 
echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
 
31445
  { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
 
31446
$as_echo_n "checking for struct sockaddr_storage... " >&6; }
12046
31447
if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
12047
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31448
  $as_echo_n "(cached) " >&6
12048
31449
else
 
31450
  ac_cv_type_struct_sockaddr_storage=no
 
31451
cat >conftest.$ac_ext <<_ACEOF
 
31452
/* confdefs.h.  */
 
31453
_ACEOF
 
31454
cat confdefs.h >>conftest.$ac_ext
 
31455
cat >>conftest.$ac_ext <<_ACEOF
 
31456
/* end confdefs.h.  */
 
31457
 
 
31458
#include <sys/types.h>
 
31459
#include <sys/socket.h>
 
31460
 
 
31461
 
 
31462
int
 
31463
main ()
 
31464
{
 
31465
if (sizeof (struct sockaddr_storage))
 
31466
       return 0;
 
31467
  ;
 
31468
  return 0;
 
31469
}
 
31470
_ACEOF
 
31471
rm -f conftest.$ac_objext
 
31472
if { (ac_try="$ac_compile"
 
31473
case "(($ac_try" in
 
31474
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
31475
  *) ac_try_echo=$ac_try;;
 
31476
esac
 
31477
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
31478
$as_echo "$ac_try_echo") >&5
 
31479
  (eval "$ac_compile") 2>conftest.er1
 
31480
  ac_status=$?
 
31481
  grep -v '^ *+' conftest.er1 >conftest.err
 
31482
  rm -f conftest.er1
 
31483
  cat conftest.err >&5
 
31484
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31485
  (exit $ac_status); } && {
 
31486
         test -z "$ac_c_werror_flag" ||
 
31487
         test ! -s conftest.err
 
31488
       } && test -s conftest.$ac_objext; then
12049
31489
  cat >conftest.$ac_ext <<_ACEOF
12050
31490
/* confdefs.h.  */
12051
31491
_ACEOF
12057
31497
#include <sys/socket.h>
12058
31498
 
12059
31499
 
12060
 
typedef struct sockaddr_storage ac__type_new_;
12061
31500
int
12062
31501
main ()
12063
31502
{
12064
 
if ((ac__type_new_ *) 0)
12065
 
  return 0;
12066
 
if (sizeof (ac__type_new_))
12067
 
  return 0;
 
31503
if (sizeof ((struct sockaddr_storage)))
 
31504
          return 0;
12068
31505
  ;
12069
31506
  return 0;
12070
31507
}
12075
31512
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12076
31513
  *) ac_try_echo=$ac_try;;
12077
31514
esac
12078
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
31515
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
31516
$as_echo "$ac_try_echo") >&5
12079
31517
  (eval "$ac_compile") 2>conftest.er1
12080
31518
  ac_status=$?
12081
31519
  grep -v '^ *+' conftest.er1 >conftest.err
12082
31520
  rm -f conftest.er1
12083
31521
  cat conftest.err >&5
12084
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31522
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085
31523
  (exit $ac_status); } && {
12086
31524
         test -z "$ac_c_werror_flag" ||
12087
31525
         test ! -s conftest.err
12088
31526
       } && test -s conftest.$ac_objext; then
12089
 
  ac_cv_type_struct_sockaddr_storage=yes
12090
 
else
12091
 
  echo "$as_me: failed program was:" >&5
12092
 
sed 's/^/| /' conftest.$ac_ext >&5
12093
 
 
12094
 
        ac_cv_type_struct_sockaddr_storage=no
12095
 
fi
12096
 
 
12097
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12098
 
fi
12099
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
12100
 
echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
12101
 
if test $ac_cv_type_struct_sockaddr_storage = yes; then
 
31527
  :
 
31528
else
 
31529
  $as_echo "$as_me: failed program was:" >&5
 
31530
sed 's/^/| /' conftest.$ac_ext >&5
 
31531
 
 
31532
        ac_cv_type_struct_sockaddr_storage=yes
 
31533
fi
 
31534
 
 
31535
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
31536
else
 
31537
  $as_echo "$as_me: failed program was:" >&5
 
31538
sed 's/^/| /' conftest.$ac_ext >&5
 
31539
 
 
31540
 
 
31541
fi
 
31542
 
 
31543
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
31544
fi
 
31545
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
 
31546
$as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
 
31547
if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
12102
31548
 
12103
31549
cat >>confdefs.h <<_ACEOF
12104
31550
#define HAVE_STRUCT_SOCKADDR_STORAGE 1
12113
31559
 
12114
31560
  wget_member_sin6_scope_id=
12115
31561
  if test "X$wget_have_sockaddr_in6" = "Xyes"; then
12116
 
    { echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
12117
 
echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; }
 
31562
    { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
 
31563
$as_echo_n "checking for struct sockaddr_in6.sin6_scope_id... " >&6; }
12118
31564
if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
12119
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31565
  $as_echo_n "(cached) " >&6
12120
31566
else
12121
31567
  cat >conftest.$ac_ext <<_ACEOF
12122
31568
/* confdefs.h.  */
12146
31592
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12147
31593
  *) ac_try_echo=$ac_try;;
12148
31594
esac
12149
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
31595
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
31596
$as_echo "$ac_try_echo") >&5
12150
31597
  (eval "$ac_compile") 2>conftest.er1
12151
31598
  ac_status=$?
12152
31599
  grep -v '^ *+' conftest.er1 >conftest.err
12153
31600
  rm -f conftest.er1
12154
31601
  cat conftest.err >&5
12155
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31602
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156
31603
  (exit $ac_status); } && {
12157
31604
         test -z "$ac_c_werror_flag" ||
12158
31605
         test ! -s conftest.err
12159
31606
       } && test -s conftest.$ac_objext; then
12160
31607
  ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
12161
31608
else
12162
 
  echo "$as_me: failed program was:" >&5
 
31609
  $as_echo "$as_me: failed program was:" >&5
12163
31610
sed 's/^/| /' conftest.$ac_ext >&5
12164
31611
 
12165
31612
        cat >conftest.$ac_ext <<_ACEOF
12190
31637
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12191
31638
  *) ac_try_echo=$ac_try;;
12192
31639
esac
12193
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
31640
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
31641
$as_echo "$ac_try_echo") >&5
12194
31642
  (eval "$ac_compile") 2>conftest.er1
12195
31643
  ac_status=$?
12196
31644
  grep -v '^ *+' conftest.er1 >conftest.err
12197
31645
  rm -f conftest.er1
12198
31646
  cat conftest.err >&5
12199
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31647
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200
31648
  (exit $ac_status); } && {
12201
31649
         test -z "$ac_c_werror_flag" ||
12202
31650
         test ! -s conftest.err
12203
31651
       } && test -s conftest.$ac_objext; then
12204
31652
  ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
12205
31653
else
12206
 
  echo "$as_me: failed program was:" >&5
 
31654
  $as_echo "$as_me: failed program was:" >&5
12207
31655
sed 's/^/| /' conftest.$ac_ext >&5
12208
31656
 
12209
31657
        ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
12214
31662
 
12215
31663
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12216
31664
fi
12217
 
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
12218
 
echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
12219
 
if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
 
31665
{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
 
31666
$as_echo "$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
 
31667
if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = x""yes; then
12220
31668
 
12221
31669
      wget_member_sin6_scope_id=yes
12222
31670
 
12248
31696
#define ENABLE_IPV6 1
12249
31697
_ACEOF
12250
31698
 
12251
 
  { echo "$as_me:$LINENO: Enabling support for IPv6." >&5
12252
 
echo "$as_me: Enabling support for IPv6." >&6;}
 
31699
  { $as_echo "$as_me:$LINENO: Enabling support for IPv6." >&5
 
31700
$as_echo "$as_me: Enabling support for IPv6." >&6;}
12253
31701
elif test "x$force_ipv6" = "xyes"; then
12254
 
  { { echo "$as_me:$LINENO: error: IPv6 support requested but not found; aborting" >&5
12255
 
echo "$as_me: error: IPv6 support requested but not found; aborting" >&2;}
 
31702
  { { $as_echo "$as_me:$LINENO: error: IPv6 support requested but not found; aborting" >&5
 
31703
$as_echo "$as_me: error: IPv6 support requested but not found; aborting" >&2;}
12256
31704
   { (exit 1); exit 1; }; }
12257
31705
fi
12258
31706
 
12259
31707
 
12260
 
ALL_LINGUAS=`(cd ${srcdir}/po && ls *.po | sed -e 's/\.po$//' | tr '\012' ' ')`
12261
 
 
12262
 
{ echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12263
 
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
12264
 
        # Check whether --enable-nls was given.
12265
 
if test "${enable_nls+set}" = set; then
12266
 
  enableval=$enable_nls; HAVE_NLS=$enableval
12267
 
else
12268
 
  HAVE_NLS=yes
12269
 
fi
12270
 
 
12271
 
    { echo "$as_me:$LINENO: result: $HAVE_NLS" >&5
12272
 
echo "${ECHO_T}$HAVE_NLS" >&6; }
12273
 
 
12274
 
 
12275
 
    if test x"$HAVE_NLS" = xyes; then
12276
 
                        if test x"$LINGUAS" != x; then
12277
 
        new_linguas=
12278
 
        for lang1 in $ALL_LINGUAS; do
12279
 
          for lang2 in $LINGUAS; do
12280
 
            if test "$lang1" = "$lang2"; then
12281
 
              new_linguas="$new_linguas $lang1"
12282
 
            fi
12283
 
          done
12284
 
        done
12285
 
        ALL_LINGUAS=$new_linguas
12286
 
      fi
12287
 
      { echo "$as_me:$LINENO: language catalogs: $ALL_LINGUAS" >&5
12288
 
echo "$as_me: language catalogs: $ALL_LINGUAS" >&6;}
12289
 
      # Extract the first word of "msgfmt", so it can be a program name with args.
12290
 
set dummy msgfmt; ac_word=$2
12291
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12292
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12293
 
if test "${ac_cv_path_MSGFMT+set}" = set; then
12294
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12295
 
else
12296
 
  case "$MSGFMT" in
12297
 
  /*)
12298
 
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12299
 
  ;;
12300
 
  *)
12301
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12302
 
  for ac_dir in $PATH; do
12303
 
    test -z "$ac_dir" && ac_dir=.
12304
 
    if test -f $ac_dir/$ac_word; then
12305
 
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
12306
 
        ac_cv_path_MSGFMT="$ac_dir/$ac_word"
12307
 
        break
12308
 
      fi
12309
 
    fi
12310
 
  done
12311
 
  IFS="$ac_save_ifs"
12312
 
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
12313
 
  ;;
12314
 
esac
12315
 
fi
12316
 
MSGFMT="$ac_cv_path_MSGFMT"
12317
 
if test -n "$MSGFMT"; then
12318
 
  { echo "$as_me:$LINENO: result: $MSGFMT" >&5
12319
 
echo "${ECHO_T}$MSGFMT" >&6; }
12320
 
else
12321
 
  { echo "$as_me:$LINENO: result: no" >&5
12322
 
echo "${ECHO_T}no" >&6; }
12323
 
fi
12324
 
 
12325
 
      # Extract the first word of "xgettext", so it can be a program name with args.
12326
 
set dummy xgettext; ac_word=$2
12327
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12328
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12329
 
if test "${ac_cv_path_XGETTEXT+set}" = set; then
12330
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12331
 
else
12332
 
  case "$XGETTEXT" in
12333
 
  /*)
12334
 
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12335
 
  ;;
12336
 
  *)
12337
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12338
 
  for ac_dir in $PATH; do
12339
 
    test -z "$ac_dir" && ac_dir=.
12340
 
    if test -f $ac_dir/$ac_word; then
12341
 
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
12342
 
        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
12343
 
        break
12344
 
      fi
12345
 
    fi
12346
 
  done
12347
 
  IFS="$ac_save_ifs"
12348
 
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12349
 
  ;;
12350
 
esac
12351
 
fi
12352
 
XGETTEXT="$ac_cv_path_XGETTEXT"
12353
 
if test -n "$XGETTEXT"; then
12354
 
  { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
12355
 
echo "${ECHO_T}$XGETTEXT" >&6; }
12356
 
else
12357
 
  { echo "$as_me:$LINENO: result: no" >&5
12358
 
echo "${ECHO_T}no" >&6; }
12359
 
fi
12360
 
 
12361
 
 
12362
 
      # Extract the first word of "gmsgfmt", so it can be a program name with args.
12363
 
set dummy gmsgfmt; ac_word=$2
12364
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12365
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12366
 
if test "${ac_cv_path_GMSGFMT+set}" = set; then
12367
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12368
 
else
12369
 
  case $GMSGFMT in
12370
 
  [\\/]* | ?:[\\/]*)
12371
 
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12372
 
  ;;
12373
 
  *)
12374
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12375
 
for as_dir in $PATH
12376
 
do
12377
 
  IFS=$as_save_IFS
12378
 
  test -z "$as_dir" && as_dir=.
12379
 
  for ac_exec_ext in '' $ac_executable_extensions; do
12380
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12381
 
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12382
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12383
 
    break 2
12384
 
  fi
12385
 
done
12386
 
done
12387
 
IFS=$as_save_IFS
12388
 
 
12389
 
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12390
 
  ;;
12391
 
esac
12392
 
fi
12393
 
GMSGFMT=$ac_cv_path_GMSGFMT
12394
 
if test -n "$GMSGFMT"; then
12395
 
  { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
12396
 
echo "${ECHO_T}$GMSGFMT" >&6; }
12397
 
else
12398
 
  { echo "$as_me:$LINENO: result: no" >&5
12399
 
echo "${ECHO_T}no" >&6; }
12400
 
fi
12401
 
 
12402
 
 
12403
 
      CATOBJEXT=.gmo
12404
 
      INSTOBJEXT=.mo
12405
 
      DATADIRNAME=share
12406
 
 
12407
 
            if test "$XGETTEXT" != ":"; then
12408
 
                        if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
12409
 
          : ;
12410
 
        else
12411
 
          { echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
12412
 
echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6; }
12413
 
          XGETTEXT=":"
12414
 
        fi
12415
 
      fi
12416
 
 
12417
 
 
12418
 
for ac_header in libintl.h
12419
 
do
12420
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12421
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12422
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
12423
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12424
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12425
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12426
 
fi
12427
 
ac_res=`eval echo '${'$as_ac_Header'}'`
12428
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
12429
 
echo "${ECHO_T}$ac_res" >&6; }
12430
 
else
12431
 
  # Is the header compilable?
12432
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12433
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12434
 
cat >conftest.$ac_ext <<_ACEOF
12435
 
/* confdefs.h.  */
12436
 
_ACEOF
12437
 
cat confdefs.h >>conftest.$ac_ext
12438
 
cat >>conftest.$ac_ext <<_ACEOF
12439
 
/* end confdefs.h.  */
12440
 
$ac_includes_default
12441
 
#include <$ac_header>
12442
 
_ACEOF
12443
 
rm -f conftest.$ac_objext
12444
 
if { (ac_try="$ac_compile"
12445
 
case "(($ac_try" in
12446
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12447
 
  *) ac_try_echo=$ac_try;;
12448
 
esac
12449
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12450
 
  (eval "$ac_compile") 2>conftest.er1
12451
 
  ac_status=$?
12452
 
  grep -v '^ *+' conftest.er1 >conftest.err
12453
 
  rm -f conftest.er1
12454
 
  cat conftest.err >&5
12455
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456
 
  (exit $ac_status); } && {
12457
 
         test -z "$ac_c_werror_flag" ||
12458
 
         test ! -s conftest.err
12459
 
       } && test -s conftest.$ac_objext; then
12460
 
  ac_header_compiler=yes
12461
 
else
12462
 
  echo "$as_me: failed program was:" >&5
12463
 
sed 's/^/| /' conftest.$ac_ext >&5
12464
 
 
12465
 
        ac_header_compiler=no
12466
 
fi
12467
 
 
12468
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12469
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12470
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
12471
 
 
12472
 
# Is the header present?
12473
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12474
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12475
 
cat >conftest.$ac_ext <<_ACEOF
12476
 
/* confdefs.h.  */
12477
 
_ACEOF
12478
 
cat confdefs.h >>conftest.$ac_ext
12479
 
cat >>conftest.$ac_ext <<_ACEOF
12480
 
/* end confdefs.h.  */
12481
 
#include <$ac_header>
12482
 
_ACEOF
12483
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
12484
 
case "(($ac_try" in
12485
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12486
 
  *) ac_try_echo=$ac_try;;
12487
 
esac
12488
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12489
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12490
 
  ac_status=$?
12491
 
  grep -v '^ *+' conftest.er1 >conftest.err
12492
 
  rm -f conftest.er1
12493
 
  cat conftest.err >&5
12494
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495
 
  (exit $ac_status); } >/dev/null && {
12496
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12497
 
         test ! -s conftest.err
12498
 
       }; then
12499
 
  ac_header_preproc=yes
12500
 
else
12501
 
  echo "$as_me: failed program was:" >&5
12502
 
sed 's/^/| /' conftest.$ac_ext >&5
12503
 
 
12504
 
  ac_header_preproc=no
12505
 
fi
12506
 
 
12507
 
rm -f conftest.err conftest.$ac_ext
12508
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12509
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
12510
 
 
12511
 
# So?  What about this header?
12512
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12513
 
  yes:no: )
12514
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12515
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12516
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12517
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12518
 
    ac_header_preproc=yes
12519
 
    ;;
12520
 
  no:yes:* )
12521
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12522
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12523
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12524
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12525
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12526
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12527
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12528
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12529
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12530
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12531
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12532
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12533
 
 
12534
 
    ;;
12535
 
esac
12536
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12537
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12538
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12539
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12540
 
else
12541
 
  eval "$as_ac_Header=\$ac_header_preproc"
12542
 
fi
12543
 
ac_res=`eval echo '${'$as_ac_Header'}'`
12544
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
12545
 
echo "${ECHO_T}$ac_res" >&6; }
12546
 
 
12547
 
fi
12548
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
12549
 
  cat >>confdefs.h <<_ACEOF
12550
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12551
 
_ACEOF
12552
 
 
12553
 
fi
12554
 
 
12555
 
done
12556
 
 
12557
 
 
12558
 
 
12559
 
      { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
12560
 
echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
12561
 
if test "${ac_cv_lib_intl_gettext+set}" = set; then
12562
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12563
 
else
12564
 
  ac_check_lib_save_LIBS=$LIBS
12565
 
LIBS="-lintl  $LIBS"
12566
 
cat >conftest.$ac_ext <<_ACEOF
12567
 
/* confdefs.h.  */
12568
 
_ACEOF
12569
 
cat confdefs.h >>conftest.$ac_ext
12570
 
cat >>conftest.$ac_ext <<_ACEOF
12571
 
/* end confdefs.h.  */
12572
 
 
12573
 
/* Override any GCC internal prototype to avoid an error.
12574
 
   Use char because int might match the return type of a GCC
12575
 
   builtin and then its argument prototype would still apply.  */
12576
 
#ifdef __cplusplus
12577
 
extern "C"
12578
 
#endif
12579
 
char gettext ();
12580
 
int
12581
 
main ()
12582
 
{
12583
 
return gettext ();
12584
 
  ;
12585
 
  return 0;
12586
 
}
12587
 
_ACEOF
12588
 
rm -f conftest.$ac_objext conftest$ac_exeext
12589
 
if { (ac_try="$ac_link"
12590
 
case "(($ac_try" in
12591
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12592
 
  *) ac_try_echo=$ac_try;;
12593
 
esac
12594
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12595
 
  (eval "$ac_link") 2>conftest.er1
12596
 
  ac_status=$?
12597
 
  grep -v '^ *+' conftest.er1 >conftest.err
12598
 
  rm -f conftest.er1
12599
 
  cat conftest.err >&5
12600
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601
 
  (exit $ac_status); } && {
12602
 
         test -z "$ac_c_werror_flag" ||
12603
 
         test ! -s conftest.err
12604
 
       } && test -s conftest$ac_exeext &&
12605
 
       $as_test_x conftest$ac_exeext; then
12606
 
  ac_cv_lib_intl_gettext=yes
12607
 
else
12608
 
  echo "$as_me: failed program was:" >&5
12609
 
sed 's/^/| /' conftest.$ac_ext >&5
12610
 
 
12611
 
        ac_cv_lib_intl_gettext=no
12612
 
fi
12613
 
 
12614
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12615
 
      conftest$ac_exeext conftest.$ac_ext
12616
 
LIBS=$ac_check_lib_save_LIBS
12617
 
fi
12618
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
12619
 
echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
12620
 
if test $ac_cv_lib_intl_gettext = yes; then
12621
 
 
12622
 
                LIBS="-lintl $LIBS"
12623
 
 
12624
 
cat >>confdefs.h <<\_ACEOF
12625
 
#define HAVE_GETTEXT 1
12626
 
_ACEOF
12627
 
 
12628
 
 
12629
 
else
12630
 
 
12631
 
 
12632
 
for ac_func in gettext
12633
 
do
12634
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12635
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12636
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12637
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12638
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12639
 
else
12640
 
  cat >conftest.$ac_ext <<_ACEOF
12641
 
/* confdefs.h.  */
12642
 
_ACEOF
12643
 
cat confdefs.h >>conftest.$ac_ext
12644
 
cat >>conftest.$ac_ext <<_ACEOF
12645
 
/* end confdefs.h.  */
12646
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12647
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12648
 
#define $ac_func innocuous_$ac_func
12649
 
 
12650
 
/* System header to define __stub macros and hopefully few prototypes,
12651
 
    which can conflict with char $ac_func (); below.
12652
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12653
 
    <limits.h> exists even on freestanding compilers.  */
12654
 
 
12655
 
#ifdef __STDC__
12656
 
# include <limits.h>
12657
 
#else
12658
 
# include <assert.h>
12659
 
#endif
12660
 
 
12661
 
#undef $ac_func
12662
 
 
12663
 
/* Override any GCC internal prototype to avoid an error.
12664
 
   Use char because int might match the return type of a GCC
12665
 
   builtin and then its argument prototype would still apply.  */
12666
 
#ifdef __cplusplus
12667
 
extern "C"
12668
 
#endif
12669
 
char $ac_func ();
12670
 
/* The GNU C library defines this for functions which it implements
12671
 
    to always fail with ENOSYS.  Some functions are actually named
12672
 
    something starting with __ and the normal name is an alias.  */
12673
 
#if defined __stub_$ac_func || defined __stub___$ac_func
12674
 
choke me
12675
 
#endif
12676
 
 
12677
 
int
12678
 
main ()
12679
 
{
12680
 
return $ac_func ();
12681
 
  ;
12682
 
  return 0;
12683
 
}
12684
 
_ACEOF
12685
 
rm -f conftest.$ac_objext conftest$ac_exeext
12686
 
if { (ac_try="$ac_link"
12687
 
case "(($ac_try" in
12688
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12689
 
  *) ac_try_echo=$ac_try;;
12690
 
esac
12691
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12692
 
  (eval "$ac_link") 2>conftest.er1
12693
 
  ac_status=$?
12694
 
  grep -v '^ *+' conftest.er1 >conftest.err
12695
 
  rm -f conftest.er1
12696
 
  cat conftest.err >&5
12697
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698
 
  (exit $ac_status); } && {
12699
 
         test -z "$ac_c_werror_flag" ||
12700
 
         test ! -s conftest.err
12701
 
       } && test -s conftest$ac_exeext &&
12702
 
       $as_test_x conftest$ac_exeext; then
12703
 
  eval "$as_ac_var=yes"
12704
 
else
12705
 
  echo "$as_me: failed program was:" >&5
12706
 
sed 's/^/| /' conftest.$ac_ext >&5
12707
 
 
12708
 
        eval "$as_ac_var=no"
12709
 
fi
12710
 
 
12711
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12712
 
      conftest$ac_exeext conftest.$ac_ext
12713
 
fi
12714
 
ac_res=`eval echo '${'$as_ac_var'}'`
12715
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
12716
 
echo "${ECHO_T}$ac_res" >&6; }
12717
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
12718
 
  cat >>confdefs.h <<_ACEOF
12719
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12720
 
_ACEOF
12721
 
 
12722
 
else
12723
 
 
12724
 
          { echo "$as_me:$LINENO: result: gettext not found; disabling NLS" >&5
12725
 
echo "${ECHO_T}gettext not found; disabling NLS" >&6; }
12726
 
          HAVE_NLS=no
12727
 
 
12728
 
fi
12729
 
done
12730
 
 
12731
 
 
12732
 
fi
12733
 
 
12734
 
 
12735
 
      for lang in $ALL_LINGUAS; do
12736
 
        GMOFILES="$GMOFILES $lang.gmo"
12737
 
        POFILES="$POFILES $lang.po"
12738
 
      done
12739
 
            for lang in $ALL_LINGUAS; do
12740
 
        CATALOGS="$CATALOGS ${lang}${CATOBJEXT}"
12741
 
      done
12742
 
 
12743
 
 
12744
 
 
12745
 
 
12746
 
 
12747
 
 
12748
 
 
12749
 
 
12750
 
    fi
12751
 
 
12752
 
            USE_NLS=$HAVE_NLS
12753
 
 
12754
 
    if test "x$HAVE_NLS" = xyes; then
12755
 
 
12756
 
cat >>confdefs.h <<\_ACEOF
12757
 
#define HAVE_NLS 1
12758
 
_ACEOF
12759
 
 
12760
 
    fi
12761
 
 
 
31708
ALL_LINGUAS="en@quot en@boldquot en_US $(cd ${srcdir}/po && ls *.po | grep -v 'en@.*quot' | grep -v 'en_US\.po' | sed -e 's/\.po$//' | tr '\012' ' ')"
12762
31709
 
12763
31710
 
12764
31711
for ac_prog in makeinfo
12765
31712
do
12766
31713
  # Extract the first word of "$ac_prog", so it can be a program name with args.
12767
31714
set dummy $ac_prog; ac_word=$2
12768
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12769
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
31715
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
31716
$as_echo_n "checking for $ac_word... " >&6; }
12770
31717
if test "${ac_cv_prog_MAKEINFO+set}" = set; then
12771
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31718
  $as_echo_n "(cached) " >&6
12772
31719
else
12773
31720
  if test -n "$MAKEINFO"; then
12774
31721
  ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12781
31728
  for ac_exec_ext in '' $ac_executable_extensions; do
12782
31729
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12783
31730
    ac_cv_prog_MAKEINFO="$ac_prog"
12784
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
31731
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12785
31732
    break 2
12786
31733
  fi
12787
31734
done
12792
31739
fi
12793
31740
MAKEINFO=$ac_cv_prog_MAKEINFO
12794
31741
if test -n "$MAKEINFO"; then
12795
 
  { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
12796
 
echo "${ECHO_T}$MAKEINFO" >&6; }
 
31742
  { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
 
31743
$as_echo "$MAKEINFO" >&6; }
12797
31744
else
12798
 
  { echo "$as_me:$LINENO: result: no" >&5
12799
 
echo "${ECHO_T}no" >&6; }
 
31745
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
31746
$as_echo "no" >&6; }
12800
31747
fi
12801
31748
 
12802
31749
 
12810
31757
do
12811
31758
  # Extract the first word of "$ac_prog", so it can be a program name with args.
12812
31759
set dummy $ac_prog; ac_word=$2
12813
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12814
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
31760
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
31761
$as_echo_n "checking for $ac_word... " >&6; }
12815
31762
if test "${ac_cv_path_PERL+set}" = set; then
12816
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31763
  $as_echo_n "(cached) " >&6
12817
31764
else
12818
31765
  case $PERL in
12819
31766
  [\\/]* | ?:[\\/]*)
12828
31775
  for ac_exec_ext in '' $ac_executable_extensions; do
12829
31776
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12830
31777
    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12831
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
31778
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12832
31779
    break 2
12833
31780
  fi
12834
31781
done
12840
31787
fi
12841
31788
PERL=$ac_cv_path_PERL
12842
31789
if test -n "$PERL"; then
12843
 
  { echo "$as_me:$LINENO: result: $PERL" >&5
12844
 
echo "${ECHO_T}$PERL" >&6; }
 
31790
  { $as_echo "$as_me:$LINENO: result: $PERL" >&5
 
31791
$as_echo "$PERL" >&6; }
12845
31792
else
12846
 
  { echo "$as_me:$LINENO: result: no" >&5
12847
 
echo "${ECHO_T}no" >&6; }
 
31793
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
31794
$as_echo "no" >&6; }
12848
31795
fi
12849
31796
 
12850
31797
 
12854
31801
 
12855
31802
# Extract the first word of "pod2man", so it can be a program name with args.
12856
31803
set dummy pod2man; ac_word=$2
12857
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12858
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
31804
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
31805
$as_echo_n "checking for $ac_word... " >&6; }
12859
31806
if test "${ac_cv_path_POD2MAN+set}" = set; then
12860
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31807
  $as_echo_n "(cached) " >&6
12861
31808
else
12862
31809
  case $POD2MAN in
12863
31810
  [\\/]* | ?:[\\/]*)
12872
31819
  for ac_exec_ext in '' $ac_executable_extensions; do
12873
31820
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12874
31821
    ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
12875
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
31822
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12876
31823
    break 2
12877
31824
  fi
12878
31825
done
12885
31832
fi
12886
31833
POD2MAN=$ac_cv_path_POD2MAN
12887
31834
if test -n "$POD2MAN"; then
12888
 
  { echo "$as_me:$LINENO: result: $POD2MAN" >&5
12889
 
echo "${ECHO_T}$POD2MAN" >&6; }
 
31835
  { $as_echo "$as_me:$LINENO: result: $POD2MAN" >&5
 
31836
$as_echo "$POD2MAN" >&6; }
12890
31837
else
12891
 
  { echo "$as_me:$LINENO: result: no" >&5
12892
 
echo "${ECHO_T}no" >&6; }
 
31838
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
31839
$as_echo "no" >&6; }
12893
31840
fi
12894
31841
 
12895
31842
 
12901
31848
fi
12902
31849
 
12903
31850
 
12904
 
ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile util/Makefile po/Makefile.in tests/Makefile tests/WgetTest.pm windows/Makefile"
 
31851
 
 
31852
 
 
31853
# Check whether --enable-iri was given.
 
31854
if test "${enable_iri+set}" = set; then
 
31855
  enableval=$enable_iri; case "${enable_iri}" in
 
31856
    no)
 
31857
            { $as_echo "$as_me:$LINENO: disabling IRIs at user request" >&5
 
31858
$as_echo "$as_me: disabling IRIs at user request" >&6;}
 
31859
      iri=no
 
31860
      ;;
 
31861
    yes)
 
31862
            iri=yes
 
31863
      force_iri=yes
 
31864
      ;;
 
31865
    auto)
 
31866
            iri=yes
 
31867
      ;;
 
31868
    *)
 
31869
      { { $as_echo "$as_me:$LINENO: error: Invalid --enable-iri argument \`$enable_iri'" >&5
 
31870
$as_echo "$as_me: error: Invalid --enable-iri argument \`$enable_iri'" >&2;}
 
31871
   { (exit 1); exit 1; }; }
 
31872
      ;;
 
31873
    esac
 
31874
 
 
31875
else
 
31876
 
 
31877
        iri=yes
 
31878
 
 
31879
 
 
31880
fi
 
31881
 
 
31882
 
 
31883
 
 
31884
# Check whether --with-libidn was given.
 
31885
if test "${with_libidn+set}" = set; then
 
31886
  withval=$with_libidn; libidn=$withval
 
31887
else
 
31888
  libidn=""
 
31889
fi
 
31890
 
 
31891
if test "X$iri" != "Xno"; then
 
31892
 
 
31893
 
 
31894
 
 
31895
 
 
31896
 
 
31897
 
 
31898
          am_save_CPPFLAGS="$CPPFLAGS"
 
31899
 
 
31900
  for element in $INCICONV; do
 
31901
    haveit=
 
31902
    for x in $CPPFLAGS; do
 
31903
 
 
31904
  acl_save_prefix="$prefix"
 
31905
  prefix="$acl_final_prefix"
 
31906
  acl_save_exec_prefix="$exec_prefix"
 
31907
  exec_prefix="$acl_final_exec_prefix"
 
31908
  eval x=\"$x\"
 
31909
  exec_prefix="$acl_save_exec_prefix"
 
31910
  prefix="$acl_save_prefix"
 
31911
 
 
31912
      if test "X$x" = "X$element"; then
 
31913
        haveit=yes
 
31914
        break
 
31915
      fi
 
31916
    done
 
31917
    if test -z "$haveit"; then
 
31918
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
31919
    fi
 
31920
  done
 
31921
 
 
31922
 
 
31923
  { $as_echo "$as_me:$LINENO: checking for iconv" >&5
 
31924
$as_echo_n "checking for iconv... " >&6; }
 
31925
if test "${am_cv_func_iconv+set}" = set; then
 
31926
  $as_echo_n "(cached) " >&6
 
31927
else
 
31928
 
 
31929
    am_cv_func_iconv="no, consider installing GNU libiconv"
 
31930
    am_cv_lib_iconv=no
 
31931
    cat >conftest.$ac_ext <<_ACEOF
 
31932
/* confdefs.h.  */
 
31933
_ACEOF
 
31934
cat confdefs.h >>conftest.$ac_ext
 
31935
cat >>conftest.$ac_ext <<_ACEOF
 
31936
/* end confdefs.h.  */
 
31937
#include <stdlib.h>
 
31938
#include <iconv.h>
 
31939
int
 
31940
main ()
 
31941
{
 
31942
iconv_t cd = iconv_open("","");
 
31943
       iconv(cd,NULL,NULL,NULL,NULL);
 
31944
       iconv_close(cd);
 
31945
  ;
 
31946
  return 0;
 
31947
}
 
31948
_ACEOF
 
31949
rm -f conftest.$ac_objext conftest$ac_exeext
 
31950
if { (ac_try="$ac_link"
 
31951
case "(($ac_try" in
 
31952
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
31953
  *) ac_try_echo=$ac_try;;
 
31954
esac
 
31955
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
31956
$as_echo "$ac_try_echo") >&5
 
31957
  (eval "$ac_link") 2>conftest.er1
 
31958
  ac_status=$?
 
31959
  grep -v '^ *+' conftest.er1 >conftest.err
 
31960
  rm -f conftest.er1
 
31961
  cat conftest.err >&5
 
31962
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31963
  (exit $ac_status); } && {
 
31964
         test -z "$ac_c_werror_flag" ||
 
31965
         test ! -s conftest.err
 
31966
       } && test -s conftest$ac_exeext && {
 
31967
         test "$cross_compiling" = yes ||
 
31968
         $as_test_x conftest$ac_exeext
 
31969
       }; then
 
31970
  am_cv_func_iconv=yes
 
31971
else
 
31972
  $as_echo "$as_me: failed program was:" >&5
 
31973
sed 's/^/| /' conftest.$ac_ext >&5
 
31974
 
 
31975
 
 
31976
fi
 
31977
 
 
31978
rm -rf conftest.dSYM
 
31979
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
31980
      conftest$ac_exeext conftest.$ac_ext
 
31981
    if test "$am_cv_func_iconv" != yes; then
 
31982
      am_save_LIBS="$LIBS"
 
31983
      LIBS="$LIBS $LIBICONV"
 
31984
      cat >conftest.$ac_ext <<_ACEOF
 
31985
/* confdefs.h.  */
 
31986
_ACEOF
 
31987
cat confdefs.h >>conftest.$ac_ext
 
31988
cat >>conftest.$ac_ext <<_ACEOF
 
31989
/* end confdefs.h.  */
 
31990
#include <stdlib.h>
 
31991
#include <iconv.h>
 
31992
int
 
31993
main ()
 
31994
{
 
31995
iconv_t cd = iconv_open("","");
 
31996
         iconv(cd,NULL,NULL,NULL,NULL);
 
31997
         iconv_close(cd);
 
31998
  ;
 
31999
  return 0;
 
32000
}
 
32001
_ACEOF
 
32002
rm -f conftest.$ac_objext conftest$ac_exeext
 
32003
if { (ac_try="$ac_link"
 
32004
case "(($ac_try" in
 
32005
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
32006
  *) ac_try_echo=$ac_try;;
 
32007
esac
 
32008
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
32009
$as_echo "$ac_try_echo") >&5
 
32010
  (eval "$ac_link") 2>conftest.er1
 
32011
  ac_status=$?
 
32012
  grep -v '^ *+' conftest.er1 >conftest.err
 
32013
  rm -f conftest.er1
 
32014
  cat conftest.err >&5
 
32015
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32016
  (exit $ac_status); } && {
 
32017
         test -z "$ac_c_werror_flag" ||
 
32018
         test ! -s conftest.err
 
32019
       } && test -s conftest$ac_exeext && {
 
32020
         test "$cross_compiling" = yes ||
 
32021
         $as_test_x conftest$ac_exeext
 
32022
       }; then
 
32023
  am_cv_lib_iconv=yes
 
32024
        am_cv_func_iconv=yes
 
32025
else
 
32026
  $as_echo "$as_me: failed program was:" >&5
 
32027
sed 's/^/| /' conftest.$ac_ext >&5
 
32028
 
 
32029
 
 
32030
fi
 
32031
 
 
32032
rm -rf conftest.dSYM
 
32033
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
32034
      conftest$ac_exeext conftest.$ac_ext
 
32035
      LIBS="$am_save_LIBS"
 
32036
    fi
 
32037
 
 
32038
fi
 
32039
{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
 
32040
$as_echo "$am_cv_func_iconv" >&6; }
 
32041
  if test "$am_cv_func_iconv" = yes; then
 
32042
    { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
 
32043
$as_echo_n "checking for working iconv... " >&6; }
 
32044
if test "${am_cv_func_iconv_works+set}" = set; then
 
32045
  $as_echo_n "(cached) " >&6
 
32046
else
 
32047
 
 
32048
            am_save_LIBS="$LIBS"
 
32049
      if test $am_cv_lib_iconv = yes; then
 
32050
        LIBS="$LIBS $LIBICONV"
 
32051
      fi
 
32052
      if test "$cross_compiling" = yes; then
 
32053
  case "$host_os" in
 
32054
           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
 
32055
           *)            am_cv_func_iconv_works="guessing yes" ;;
 
32056
         esac
 
32057
else
 
32058
  cat >conftest.$ac_ext <<_ACEOF
 
32059
/* confdefs.h.  */
 
32060
_ACEOF
 
32061
cat confdefs.h >>conftest.$ac_ext
 
32062
cat >>conftest.$ac_ext <<_ACEOF
 
32063
/* end confdefs.h.  */
 
32064
 
 
32065
#include <iconv.h>
 
32066
#include <string.h>
 
32067
int main ()
 
32068
{
 
32069
  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
 
32070
     returns.  */
 
32071
  {
 
32072
    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
 
32073
    if (cd_utf8_to_88591 != (iconv_t)(-1))
 
32074
      {
 
32075
        static const char input[] = "\342\202\254"; /* EURO SIGN */
 
32076
        char buf[10];
 
32077
        const char *inptr = input;
 
32078
        size_t inbytesleft = strlen (input);
 
32079
        char *outptr = buf;
 
32080
        size_t outbytesleft = sizeof (buf);
 
32081
        size_t res = iconv (cd_utf8_to_88591,
 
32082
                            (char **) &inptr, &inbytesleft,
 
32083
                            &outptr, &outbytesleft);
 
32084
        if (res == 0)
 
32085
          return 1;
 
32086
      }
 
32087
  }
 
32088
#if 0 /* This bug could be worked around by the caller.  */
 
32089
  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
 
32090
  {
 
32091
    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
 
32092
    if (cd_88591_to_utf8 != (iconv_t)(-1))
 
32093
      {
 
32094
        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
 
32095
        char buf[50];
 
32096
        const char *inptr = input;
 
32097
        size_t inbytesleft = strlen (input);
 
32098
        char *outptr = buf;
 
32099
        size_t outbytesleft = sizeof (buf);
 
32100
        size_t res = iconv (cd_88591_to_utf8,
 
32101
                            (char **) &inptr, &inbytesleft,
 
32102
                            &outptr, &outbytesleft);
 
32103
        if ((int)res > 0)
 
32104
          return 1;
 
32105
      }
 
32106
  }
 
32107
#endif
 
32108
  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
 
32109
     provided.  */
 
32110
  if (/* Try standardized names.  */
 
32111
      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
 
32112
      /* Try IRIX, OSF/1 names.  */
 
32113
      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
 
32114
      /* Try AIX names.  */
 
32115
      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
 
32116
      /* Try HP-UX names.  */
 
32117
      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
 
32118
    return 1;
 
32119
  return 0;
 
32120
}
 
32121
_ACEOF
 
32122
rm -f conftest$ac_exeext
 
32123
if { (ac_try="$ac_link"
 
32124
case "(($ac_try" in
 
32125
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
32126
  *) ac_try_echo=$ac_try;;
 
32127
esac
 
32128
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
32129
$as_echo "$ac_try_echo") >&5
 
32130
  (eval "$ac_link") 2>&5
 
32131
  ac_status=$?
 
32132
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32133
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
32134
  { (case "(($ac_try" in
 
32135
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
32136
  *) ac_try_echo=$ac_try;;
 
32137
esac
 
32138
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
32139
$as_echo "$ac_try_echo") >&5
 
32140
  (eval "$ac_try") 2>&5
 
32141
  ac_status=$?
 
32142
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32143
  (exit $ac_status); }; }; then
 
32144
  am_cv_func_iconv_works=yes
 
32145
else
 
32146
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
32147
$as_echo "$as_me: failed program was:" >&5
 
32148
sed 's/^/| /' conftest.$ac_ext >&5
 
32149
 
 
32150
( exit $ac_status )
 
32151
am_cv_func_iconv_works=no
 
32152
fi
 
32153
rm -rf conftest.dSYM
 
32154
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
32155
fi
 
32156
 
 
32157
 
 
32158
      LIBS="$am_save_LIBS"
 
32159
 
 
32160
fi
 
32161
{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
 
32162
$as_echo "$am_cv_func_iconv_works" >&6; }
 
32163
    case "$am_cv_func_iconv_works" in
 
32164
      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
 
32165
      *)   am_func_iconv=yes ;;
 
32166
    esac
 
32167
  else
 
32168
    am_func_iconv=no am_cv_lib_iconv=no
 
32169
  fi
 
32170
  if test "$am_func_iconv" = yes; then
 
32171
 
 
32172
cat >>confdefs.h <<\_ACEOF
 
32173
#define HAVE_ICONV 1
 
32174
_ACEOF
 
32175
 
 
32176
  fi
 
32177
  if test "$am_cv_lib_iconv" = yes; then
 
32178
    { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
 
32179
$as_echo_n "checking how to link with libiconv... " >&6; }
 
32180
    { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
 
32181
$as_echo "$LIBICONV" >&6; }
 
32182
  else
 
32183
            CPPFLAGS="$am_save_CPPFLAGS"
 
32184
    LIBICONV=
 
32185
    LTLIBICONV=
 
32186
  fi
 
32187
 
 
32188
 
 
32189
 
 
32190
  if test "$am_cv_func_iconv" = yes; then
 
32191
    { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
 
32192
$as_echo_n "checking for iconv declaration... " >&6; }
 
32193
    if test "${am_cv_proto_iconv+set}" = set; then
 
32194
  $as_echo_n "(cached) " >&6
 
32195
else
 
32196
 
 
32197
      cat >conftest.$ac_ext <<_ACEOF
 
32198
/* confdefs.h.  */
 
32199
_ACEOF
 
32200
cat confdefs.h >>conftest.$ac_ext
 
32201
cat >>conftest.$ac_ext <<_ACEOF
 
32202
/* end confdefs.h.  */
 
32203
 
 
32204
#include <stdlib.h>
 
32205
#include <iconv.h>
 
32206
extern
 
32207
#ifdef __cplusplus
 
32208
"C"
 
32209
#endif
 
32210
#if defined(__STDC__) || defined(__cplusplus)
 
32211
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
 
32212
#else
 
32213
size_t iconv();
 
32214
#endif
 
32215
 
 
32216
int
 
32217
main ()
 
32218
{
 
32219
 
 
32220
  ;
 
32221
  return 0;
 
32222
}
 
32223
_ACEOF
 
32224
rm -f conftest.$ac_objext
 
32225
if { (ac_try="$ac_compile"
 
32226
case "(($ac_try" in
 
32227
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
32228
  *) ac_try_echo=$ac_try;;
 
32229
esac
 
32230
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
32231
$as_echo "$ac_try_echo") >&5
 
32232
  (eval "$ac_compile") 2>conftest.er1
 
32233
  ac_status=$?
 
32234
  grep -v '^ *+' conftest.er1 >conftest.err
 
32235
  rm -f conftest.er1
 
32236
  cat conftest.err >&5
 
32237
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32238
  (exit $ac_status); } && {
 
32239
         test -z "$ac_c_werror_flag" ||
 
32240
         test ! -s conftest.err
 
32241
       } && test -s conftest.$ac_objext; then
 
32242
  am_cv_proto_iconv_arg1=""
 
32243
else
 
32244
  $as_echo "$as_me: failed program was:" >&5
 
32245
sed 's/^/| /' conftest.$ac_ext >&5
 
32246
 
 
32247
        am_cv_proto_iconv_arg1="const"
 
32248
fi
 
32249
 
 
32250
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
32251
      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
 
32252
fi
 
32253
 
 
32254
    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
 
32255
    { $as_echo "$as_me:$LINENO: result: ${ac_t:-
 
32256
         }$am_cv_proto_iconv" >&5
 
32257
$as_echo "${ac_t:-
 
32258
         }$am_cv_proto_iconv" >&6; }
 
32259
 
 
32260
cat >>confdefs.h <<_ACEOF
 
32261
#define ICONV_CONST $am_cv_proto_iconv_arg1
 
32262
_ACEOF
 
32263
 
 
32264
  fi
 
32265
 
 
32266
 
 
32267
  if test "X$am_cv_func_iconv" != "Xyes"; then
 
32268
    iri=no
 
32269
    if test "X$force_iri" = "Xyes"; then
 
32270
      { { $as_echo "$as_me:$LINENO: error: Libiconv is required for IRIs support" >&5
 
32271
$as_echo "$as_me: error: Libiconv is required for IRIs support" >&2;}
 
32272
   { (exit 1); exit 1; }; }
 
32273
    else
 
32274
      { $as_echo "$as_me:$LINENO: disabling IRIs because libiconv wasn't found" >&5
 
32275
$as_echo "$as_me: disabling IRIs because libiconv wasn't found" >&6;}
 
32276
    fi
 
32277
  fi
 
32278
 
 
32279
else
 
32280
    # else
 
32281
  # For some reason, this seems to be set even when we don't check.
 
32282
  # Explicitly unset.
 
32283
  LIBICONV=
 
32284
 
 
32285
fi
 
32286
 
 
32287
 
 
32288
if test "X$iri" != "Xno"; then
 
32289
  if test "$libidn" != ""; then
 
32290
    LDFLAGS="${LDFLAGS} -L$libidn/lib"
 
32291
    CPPFLAGS="${CPPFLAGS} -I$libidn/include"
 
32292
  fi
 
32293
 
 
32294
  # If idna.h can't be found, check to see if it was installed under
 
32295
  # /usr/include/idn (OpenSolaris, at least, places it there).
 
32296
  # Check for idn-int.h in that case, because idna.h won't find
 
32297
  # idn-int.h until we've decided to add -I/usr/include/idn.
 
32298
  if test "${ac_cv_header_idna_h+set}" = set; then
 
32299
  { $as_echo "$as_me:$LINENO: checking for idna.h" >&5
 
32300
$as_echo_n "checking for idna.h... " >&6; }
 
32301
if test "${ac_cv_header_idna_h+set}" = set; then
 
32302
  $as_echo_n "(cached) " >&6
 
32303
fi
 
32304
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_idna_h" >&5
 
32305
$as_echo "$ac_cv_header_idna_h" >&6; }
 
32306
else
 
32307
  # Is the header compilable?
 
32308
{ $as_echo "$as_me:$LINENO: checking idna.h usability" >&5
 
32309
$as_echo_n "checking idna.h usability... " >&6; }
 
32310
cat >conftest.$ac_ext <<_ACEOF
 
32311
/* confdefs.h.  */
 
32312
_ACEOF
 
32313
cat confdefs.h >>conftest.$ac_ext
 
32314
cat >>conftest.$ac_ext <<_ACEOF
 
32315
/* end confdefs.h.  */
 
32316
$ac_includes_default
 
32317
#include <idna.h>
 
32318
_ACEOF
 
32319
rm -f conftest.$ac_objext
 
32320
if { (ac_try="$ac_compile"
 
32321
case "(($ac_try" in
 
32322
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
32323
  *) ac_try_echo=$ac_try;;
 
32324
esac
 
32325
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
32326
$as_echo "$ac_try_echo") >&5
 
32327
  (eval "$ac_compile") 2>conftest.er1
 
32328
  ac_status=$?
 
32329
  grep -v '^ *+' conftest.er1 >conftest.err
 
32330
  rm -f conftest.er1
 
32331
  cat conftest.err >&5
 
32332
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32333
  (exit $ac_status); } && {
 
32334
         test -z "$ac_c_werror_flag" ||
 
32335
         test ! -s conftest.err
 
32336
       } && test -s conftest.$ac_objext; then
 
32337
  ac_header_compiler=yes
 
32338
else
 
32339
  $as_echo "$as_me: failed program was:" >&5
 
32340
sed 's/^/| /' conftest.$ac_ext >&5
 
32341
 
 
32342
        ac_header_compiler=no
 
32343
fi
 
32344
 
 
32345
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
32346
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
32347
$as_echo "$ac_header_compiler" >&6; }
 
32348
 
 
32349
# Is the header present?
 
32350
{ $as_echo "$as_me:$LINENO: checking idna.h presence" >&5
 
32351
$as_echo_n "checking idna.h presence... " >&6; }
 
32352
cat >conftest.$ac_ext <<_ACEOF
 
32353
/* confdefs.h.  */
 
32354
_ACEOF
 
32355
cat confdefs.h >>conftest.$ac_ext
 
32356
cat >>conftest.$ac_ext <<_ACEOF
 
32357
/* end confdefs.h.  */
 
32358
#include <idna.h>
 
32359
_ACEOF
 
32360
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
32361
case "(($ac_try" in
 
32362
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
32363
  *) ac_try_echo=$ac_try;;
 
32364
esac
 
32365
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
32366
$as_echo "$ac_try_echo") >&5
 
32367
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
32368
  ac_status=$?
 
32369
  grep -v '^ *+' conftest.er1 >conftest.err
 
32370
  rm -f conftest.er1
 
32371
  cat conftest.err >&5
 
32372
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32373
  (exit $ac_status); } >/dev/null && {
 
32374
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
32375
         test ! -s conftest.err
 
32376
       }; then
 
32377
  ac_header_preproc=yes
 
32378
else
 
32379
  $as_echo "$as_me: failed program was:" >&5
 
32380
sed 's/^/| /' conftest.$ac_ext >&5
 
32381
 
 
32382
  ac_header_preproc=no
 
32383
fi
 
32384
 
 
32385
rm -f conftest.err conftest.$ac_ext
 
32386
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
32387
$as_echo "$ac_header_preproc" >&6; }
 
32388
 
 
32389
# So?  What about this header?
 
32390
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
32391
  yes:no: )
 
32392
    { $as_echo "$as_me:$LINENO: WARNING: idna.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
32393
$as_echo "$as_me: WARNING: idna.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
32394
    { $as_echo "$as_me:$LINENO: WARNING: idna.h: proceeding with the compiler's result" >&5
 
32395
$as_echo "$as_me: WARNING: idna.h: proceeding with the compiler's result" >&2;}
 
32396
    ac_header_preproc=yes
 
32397
    ;;
 
32398
  no:yes:* )
 
32399
    { $as_echo "$as_me:$LINENO: WARNING: idna.h: present but cannot be compiled" >&5
 
32400
$as_echo "$as_me: WARNING: idna.h: present but cannot be compiled" >&2;}
 
32401
    { $as_echo "$as_me:$LINENO: WARNING: idna.h:     check for missing prerequisite headers?" >&5
 
32402
$as_echo "$as_me: WARNING: idna.h:     check for missing prerequisite headers?" >&2;}
 
32403
    { $as_echo "$as_me:$LINENO: WARNING: idna.h: see the Autoconf documentation" >&5
 
32404
$as_echo "$as_me: WARNING: idna.h: see the Autoconf documentation" >&2;}
 
32405
    { $as_echo "$as_me:$LINENO: WARNING: idna.h:     section \"Present But Cannot Be Compiled\"" >&5
 
32406
$as_echo "$as_me: WARNING: idna.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
32407
    { $as_echo "$as_me:$LINENO: WARNING: idna.h: proceeding with the preprocessor's result" >&5
 
32408
$as_echo "$as_me: WARNING: idna.h: proceeding with the preprocessor's result" >&2;}
 
32409
    { $as_echo "$as_me:$LINENO: WARNING: idna.h: in the future, the compiler will take precedence" >&5
 
32410
$as_echo "$as_me: WARNING: idna.h: in the future, the compiler will take precedence" >&2;}
 
32411
    ( cat <<\_ASBOX
 
32412
## ------------------------------- ##
 
32413
## Report this to bug-wget@gnu.org ##
 
32414
## ------------------------------- ##
 
32415
_ASBOX
 
32416
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
32417
    ;;
 
32418
esac
 
32419
{ $as_echo "$as_me:$LINENO: checking for idna.h" >&5
 
32420
$as_echo_n "checking for idna.h... " >&6; }
 
32421
if test "${ac_cv_header_idna_h+set}" = set; then
 
32422
  $as_echo_n "(cached) " >&6
 
32423
else
 
32424
  ac_cv_header_idna_h=$ac_header_preproc
 
32425
fi
 
32426
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_idna_h" >&5
 
32427
$as_echo "$ac_cv_header_idna_h" >&6; }
 
32428
 
 
32429
fi
 
32430
if test "x$ac_cv_header_idna_h" = x""yes; then
 
32431
  :
 
32432
else
 
32433
  if test "${ac_cv_header_idn_idn_int_h+set}" = set; then
 
32434
  { $as_echo "$as_me:$LINENO: checking for idn/idn-int.h" >&5
 
32435
$as_echo_n "checking for idn/idn-int.h... " >&6; }
 
32436
if test "${ac_cv_header_idn_idn_int_h+set}" = set; then
 
32437
  $as_echo_n "(cached) " >&6
 
32438
fi
 
32439
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_idn_idn_int_h" >&5
 
32440
$as_echo "$ac_cv_header_idn_idn_int_h" >&6; }
 
32441
else
 
32442
  # Is the header compilable?
 
32443
{ $as_echo "$as_me:$LINENO: checking idn/idn-int.h usability" >&5
 
32444
$as_echo_n "checking idn/idn-int.h usability... " >&6; }
 
32445
cat >conftest.$ac_ext <<_ACEOF
 
32446
/* confdefs.h.  */
 
32447
_ACEOF
 
32448
cat confdefs.h >>conftest.$ac_ext
 
32449
cat >>conftest.$ac_ext <<_ACEOF
 
32450
/* end confdefs.h.  */
 
32451
$ac_includes_default
 
32452
#include <idn/idn-int.h>
 
32453
_ACEOF
 
32454
rm -f conftest.$ac_objext
 
32455
if { (ac_try="$ac_compile"
 
32456
case "(($ac_try" in
 
32457
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
32458
  *) ac_try_echo=$ac_try;;
 
32459
esac
 
32460
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
32461
$as_echo "$ac_try_echo") >&5
 
32462
  (eval "$ac_compile") 2>conftest.er1
 
32463
  ac_status=$?
 
32464
  grep -v '^ *+' conftest.er1 >conftest.err
 
32465
  rm -f conftest.er1
 
32466
  cat conftest.err >&5
 
32467
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32468
  (exit $ac_status); } && {
 
32469
         test -z "$ac_c_werror_flag" ||
 
32470
         test ! -s conftest.err
 
32471
       } && test -s conftest.$ac_objext; then
 
32472
  ac_header_compiler=yes
 
32473
else
 
32474
  $as_echo "$as_me: failed program was:" >&5
 
32475
sed 's/^/| /' conftest.$ac_ext >&5
 
32476
 
 
32477
        ac_header_compiler=no
 
32478
fi
 
32479
 
 
32480
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
32481
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
32482
$as_echo "$ac_header_compiler" >&6; }
 
32483
 
 
32484
# Is the header present?
 
32485
{ $as_echo "$as_me:$LINENO: checking idn/idn-int.h presence" >&5
 
32486
$as_echo_n "checking idn/idn-int.h presence... " >&6; }
 
32487
cat >conftest.$ac_ext <<_ACEOF
 
32488
/* confdefs.h.  */
 
32489
_ACEOF
 
32490
cat confdefs.h >>conftest.$ac_ext
 
32491
cat >>conftest.$ac_ext <<_ACEOF
 
32492
/* end confdefs.h.  */
 
32493
#include <idn/idn-int.h>
 
32494
_ACEOF
 
32495
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
32496
case "(($ac_try" in
 
32497
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
32498
  *) ac_try_echo=$ac_try;;
 
32499
esac
 
32500
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
32501
$as_echo "$ac_try_echo") >&5
 
32502
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
32503
  ac_status=$?
 
32504
  grep -v '^ *+' conftest.er1 >conftest.err
 
32505
  rm -f conftest.er1
 
32506
  cat conftest.err >&5
 
32507
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32508
  (exit $ac_status); } >/dev/null && {
 
32509
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
32510
         test ! -s conftest.err
 
32511
       }; then
 
32512
  ac_header_preproc=yes
 
32513
else
 
32514
  $as_echo "$as_me: failed program was:" >&5
 
32515
sed 's/^/| /' conftest.$ac_ext >&5
 
32516
 
 
32517
  ac_header_preproc=no
 
32518
fi
 
32519
 
 
32520
rm -f conftest.err conftest.$ac_ext
 
32521
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
32522
$as_echo "$ac_header_preproc" >&6; }
 
32523
 
 
32524
# So?  What about this header?
 
32525
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
32526
  yes:no: )
 
32527
    { $as_echo "$as_me:$LINENO: WARNING: idn/idn-int.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
32528
$as_echo "$as_me: WARNING: idn/idn-int.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
32529
    { $as_echo "$as_me:$LINENO: WARNING: idn/idn-int.h: proceeding with the compiler's result" >&5
 
32530
$as_echo "$as_me: WARNING: idn/idn-int.h: proceeding with the compiler's result" >&2;}
 
32531
    ac_header_preproc=yes
 
32532
    ;;
 
32533
  no:yes:* )
 
32534
    { $as_echo "$as_me:$LINENO: WARNING: idn/idn-int.h: present but cannot be compiled" >&5
 
32535
$as_echo "$as_me: WARNING: idn/idn-int.h: present but cannot be compiled" >&2;}
 
32536
    { $as_echo "$as_me:$LINENO: WARNING: idn/idn-int.h:     check for missing prerequisite headers?" >&5
 
32537
$as_echo "$as_me: WARNING: idn/idn-int.h:     check for missing prerequisite headers?" >&2;}
 
32538
    { $as_echo "$as_me:$LINENO: WARNING: idn/idn-int.h: see the Autoconf documentation" >&5
 
32539
$as_echo "$as_me: WARNING: idn/idn-int.h: see the Autoconf documentation" >&2;}
 
32540
    { $as_echo "$as_me:$LINENO: WARNING: idn/idn-int.h:     section \"Present But Cannot Be Compiled\"" >&5
 
32541
$as_echo "$as_me: WARNING: idn/idn-int.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
32542
    { $as_echo "$as_me:$LINENO: WARNING: idn/idn-int.h: proceeding with the preprocessor's result" >&5
 
32543
$as_echo "$as_me: WARNING: idn/idn-int.h: proceeding with the preprocessor's result" >&2;}
 
32544
    { $as_echo "$as_me:$LINENO: WARNING: idn/idn-int.h: in the future, the compiler will take precedence" >&5
 
32545
$as_echo "$as_me: WARNING: idn/idn-int.h: in the future, the compiler will take precedence" >&2;}
 
32546
    ( cat <<\_ASBOX
 
32547
## ------------------------------- ##
 
32548
## Report this to bug-wget@gnu.org ##
 
32549
## ------------------------------- ##
 
32550
_ASBOX
 
32551
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
32552
    ;;
 
32553
esac
 
32554
{ $as_echo "$as_me:$LINENO: checking for idn/idn-int.h" >&5
 
32555
$as_echo_n "checking for idn/idn-int.h... " >&6; }
 
32556
if test "${ac_cv_header_idn_idn_int_h+set}" = set; then
 
32557
  $as_echo_n "(cached) " >&6
 
32558
else
 
32559
  ac_cv_header_idn_idn_int_h=$ac_header_preproc
 
32560
fi
 
32561
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_idn_idn_int_h" >&5
 
32562
$as_echo "$ac_cv_header_idn_idn_int_h" >&6; }
 
32563
 
 
32564
fi
 
32565
if test "x$ac_cv_header_idn_idn_int_h" = x""yes; then
 
32566
  CPPFLAGS="${CPPFLAGS} -I/usr/include/idn"
 
32567
else
 
32568
  iri=no
 
32569
fi
 
32570
 
 
32571
 
 
32572
 
 
32573
fi
 
32574
 
 
32575
 
 
32576
 
 
32577
  if test "X$iri" != "Xno"; then
 
32578
    { $as_echo "$as_me:$LINENO: checking for stringprep_check_version in -lidn" >&5
 
32579
$as_echo_n "checking for stringprep_check_version in -lidn... " >&6; }
 
32580
if test "${ac_cv_lib_idn_stringprep_check_version+set}" = set; then
 
32581
  $as_echo_n "(cached) " >&6
 
32582
else
 
32583
  ac_check_lib_save_LIBS=$LIBS
 
32584
LIBS="-lidn  $LIBS"
 
32585
cat >conftest.$ac_ext <<_ACEOF
 
32586
/* confdefs.h.  */
 
32587
_ACEOF
 
32588
cat confdefs.h >>conftest.$ac_ext
 
32589
cat >>conftest.$ac_ext <<_ACEOF
 
32590
/* end confdefs.h.  */
 
32591
 
 
32592
/* Override any GCC internal prototype to avoid an error.
 
32593
   Use char because int might match the return type of a GCC
 
32594
   builtin and then its argument prototype would still apply.  */
 
32595
#ifdef __cplusplus
 
32596
extern "C"
 
32597
#endif
 
32598
char stringprep_check_version ();
 
32599
int
 
32600
main ()
 
32601
{
 
32602
return stringprep_check_version ();
 
32603
  ;
 
32604
  return 0;
 
32605
}
 
32606
_ACEOF
 
32607
rm -f conftest.$ac_objext conftest$ac_exeext
 
32608
if { (ac_try="$ac_link"
 
32609
case "(($ac_try" in
 
32610
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
32611
  *) ac_try_echo=$ac_try;;
 
32612
esac
 
32613
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
32614
$as_echo "$ac_try_echo") >&5
 
32615
  (eval "$ac_link") 2>conftest.er1
 
32616
  ac_status=$?
 
32617
  grep -v '^ *+' conftest.er1 >conftest.err
 
32618
  rm -f conftest.er1
 
32619
  cat conftest.err >&5
 
32620
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32621
  (exit $ac_status); } && {
 
32622
         test -z "$ac_c_werror_flag" ||
 
32623
         test ! -s conftest.err
 
32624
       } && test -s conftest$ac_exeext && {
 
32625
         test "$cross_compiling" = yes ||
 
32626
         $as_test_x conftest$ac_exeext
 
32627
       }; then
 
32628
  ac_cv_lib_idn_stringprep_check_version=yes
 
32629
else
 
32630
  $as_echo "$as_me: failed program was:" >&5
 
32631
sed 's/^/| /' conftest.$ac_ext >&5
 
32632
 
 
32633
        ac_cv_lib_idn_stringprep_check_version=no
 
32634
fi
 
32635
 
 
32636
rm -rf conftest.dSYM
 
32637
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
32638
      conftest$ac_exeext conftest.$ac_ext
 
32639
LIBS=$ac_check_lib_save_LIBS
 
32640
fi
 
32641
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_idn_stringprep_check_version" >&5
 
32642
$as_echo "$ac_cv_lib_idn_stringprep_check_version" >&6; }
 
32643
if test "x$ac_cv_lib_idn_stringprep_check_version" = x""yes; then
 
32644
  iri=yes LIBS="${LIBS} -lidn"
 
32645
else
 
32646
  iri=no
 
32647
fi
 
32648
 
 
32649
  fi
 
32650
 
 
32651
  if test "X$iri" != "Xno" ; then
 
32652
 
 
32653
cat >>confdefs.h <<\_ACEOF
 
32654
#define ENABLE_IRI 1
 
32655
_ACEOF
 
32656
 
 
32657
    { $as_echo "$as_me:$LINENO: Enabling support for IRI." >&5
 
32658
$as_echo "$as_me: Enabling support for IRI." >&6;}
 
32659
  else
 
32660
    { $as_echo "$as_me:$LINENO: WARNING: Libidn not found" >&5
 
32661
$as_echo "$as_me: WARNING: Libidn not found" >&2;}
 
32662
  fi
 
32663
fi
 
32664
 
 
32665
 
 
32666
 if test "X$iri" != "Xno"; then
 
32667
  IRI_IS_ENABLED_TRUE=
 
32668
  IRI_IS_ENABLED_FALSE='#'
 
32669
else
 
32670
  IRI_IS_ENABLED_TRUE='#'
 
32671
  IRI_IS_ENABLED_FALSE=
 
32672
fi
 
32673
 
 
32674
 
 
32675
 
 
32676
ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile util/Makefile po/Makefile.in tests/Makefile tests/WgetTest.pm lib/Makefile md5/Makefile windows/Makefile"
12905
32677
 
12906
32678
ac_config_headers="$ac_config_headers src/config.h"
12907
32679
 
12908
 
 
12909
 
 
12910
 
ac_config_files="$ac_config_files stamp-h"
12911
 
 
12912
 
ac_config_commands="$ac_config_commands default"
12913
 
 
12914
32680
cat >confcache <<\_ACEOF
12915
32681
# This file is a shell script that caches the results of configure
12916
32682
# tests run on this system so they can be shared between configure
12938
32704
    case $ac_val in #(
12939
32705
    *${as_nl}*)
12940
32706
      case $ac_var in #(
12941
 
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12942
 
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
32707
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
 
32708
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12943
32709
      esac
12944
32710
      case $ac_var in #(
12945
32711
      _ | IFS | as_nl) ;; #(
 
32712
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12946
32713
      *) $as_unset $ac_var ;;
12947
32714
      esac ;;
12948
32715
    esac
12975
32742
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12976
32743
  if test -w "$cache_file"; then
12977
32744
    test "x$cache_file" != "x/dev/null" &&
12978
 
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12979
 
echo "$as_me: updating cache $cache_file" >&6;}
 
32745
      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
 
32746
$as_echo "$as_me: updating cache $cache_file" >&6;}
12980
32747
    cat confcache >$cache_file
12981
32748
  else
12982
 
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12983
 
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
32749
    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 
32750
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12984
32751
  fi
12985
32752
fi
12986
32753
rm -f confcache
12996
32763
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12997
32764
  # 1. Remove the extension, and $U if already installed.
12998
32765
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12999
 
  ac_i=`echo "$ac_i" | sed "$ac_script"`
 
32766
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13000
32767
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13001
32768
  #    will be set to the directory where LIBOBJS objects are built.
13002
32769
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13007
32774
LTLIBOBJS=$ac_ltlibobjs
13008
32775
 
13009
32776
 
 
32777
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
32778
  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
32779
Usually this means the macro was only invoked conditionally." >&5
 
32780
$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
32781
Usually this means the macro was only invoked conditionally." >&2;}
 
32782
   { (exit 1); exit 1; }; }
 
32783
fi
 
32784
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
32785
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
32786
Usually this means the macro was only invoked conditionally." >&5
 
32787
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
32788
Usually this means the macro was only invoked conditionally." >&2;}
 
32789
   { (exit 1); exit 1; }; }
 
32790
fi
 
32791
if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
 
32792
  { { $as_echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
 
32793
Usually this means the macro was only invoked conditionally." >&5
 
32794
$as_echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
 
32795
Usually this means the macro was only invoked conditionally." >&2;}
 
32796
   { (exit 1); exit 1; }; }
 
32797
fi
 
32798
 
 
32799
    gl_libobjs=
 
32800
    gl_ltlibobjs=
 
32801
    if test -n "$gl_LIBOBJS"; then
 
32802
      # Remove the extension.
 
32803
      sed_drop_objext='s/\.o$//;s/\.obj$//'
 
32804
      for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
 
32805
        gl_libobjs="$gl_libobjs $i.$ac_objext"
 
32806
        gl_ltlibobjs="$gl_ltlibobjs $i.lo"
 
32807
      done
 
32808
    fi
 
32809
    gl_LIBOBJS=$gl_libobjs
 
32810
 
 
32811
    gl_LTLIBOBJS=$gl_ltlibobjs
 
32812
 
 
32813
 
 
32814
 
 
32815
    gltests_libobjs=
 
32816
    gltests_ltlibobjs=
 
32817
    if test -n "$gltests_LIBOBJS"; then
 
32818
      # Remove the extension.
 
32819
      sed_drop_objext='s/\.o$//;s/\.obj$//'
 
32820
      for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
 
32821
        gltests_libobjs="$gltests_libobjs $i.$ac_objext"
 
32822
        gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
 
32823
      done
 
32824
    fi
 
32825
    gltests_LIBOBJS=$gltests_libobjs
 
32826
 
 
32827
    gltests_LTLIBOBJS=$gltests_ltlibobjs
 
32828
 
 
32829
 
 
32830
 
 
32831
if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
 
32832
  { { $as_echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
 
32833
Usually this means the macro was only invoked conditionally." >&5
 
32834
$as_echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
 
32835
Usually this means the macro was only invoked conditionally." >&2;}
 
32836
   { (exit 1); exit 1; }; }
 
32837
fi
 
32838
 
 
32839
 
 
32840
    md5_libobjs=
 
32841
    md5_ltlibobjs=
 
32842
    if test -n "$md5_LIBOBJS"; then
 
32843
      # Remove the extension.
 
32844
      sed_drop_objext='s/\.o$//;s/\.obj$//'
 
32845
      for i in `for i in $md5_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
 
32846
        md5_libobjs="$md5_libobjs $i.$ac_objext"
 
32847
        md5_ltlibobjs="$md5_ltlibobjs $i.lo"
 
32848
      done
 
32849
    fi
 
32850
    md5_LIBOBJS=$md5_libobjs
 
32851
 
 
32852
    md5_LTLIBOBJS=$md5_ltlibobjs
 
32853
 
 
32854
 
 
32855
 
 
32856
    md5tests_libobjs=
 
32857
    md5tests_ltlibobjs=
 
32858
    if test -n "$md5tests_LIBOBJS"; then
 
32859
      # Remove the extension.
 
32860
      sed_drop_objext='s/\.o$//;s/\.obj$//'
 
32861
      for i in `for i in $md5tests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
 
32862
        md5tests_libobjs="$md5tests_libobjs $i.$ac_objext"
 
32863
        md5tests_ltlibobjs="$md5tests_ltlibobjs $i.lo"
 
32864
      done
 
32865
    fi
 
32866
    md5tests_LIBOBJS=$md5tests_libobjs
 
32867
 
 
32868
    md5tests_LTLIBOBJS=$md5tests_ltlibobjs
 
32869
 
 
32870
 
 
32871
if test -z "${IRI_IS_ENABLED_TRUE}" && test -z "${IRI_IS_ENABLED_FALSE}"; then
 
32872
  { { $as_echo "$as_me:$LINENO: error: conditional \"IRI_IS_ENABLED\" was never defined.
 
32873
Usually this means the macro was only invoked conditionally." >&5
 
32874
$as_echo "$as_me: error: conditional \"IRI_IS_ENABLED\" was never defined.
 
32875
Usually this means the macro was only invoked conditionally." >&2;}
 
32876
   { (exit 1); exit 1; }; }
 
32877
fi
13010
32878
 
13011
32879
: ${CONFIG_STATUS=./config.status}
 
32880
ac_write_fail=0
13012
32881
ac_clean_files_save=$ac_clean_files
13013
32882
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13014
 
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13015
 
echo "$as_me: creating $CONFIG_STATUS" >&6;}
13016
 
cat >$CONFIG_STATUS <<_ACEOF
 
32883
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
32884
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
32885
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13017
32886
#! $SHELL
13018
32887
# Generated by $as_me.
13019
32888
# Run this file to recreate the current configuration.
13026
32895
SHELL=\${CONFIG_SHELL-$SHELL}
13027
32896
_ACEOF
13028
32897
 
13029
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
32898
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13030
32899
## --------------------- ##
13031
32900
## M4sh Initialization.  ##
13032
32901
## --------------------- ##
13036
32905
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13037
32906
  emulate sh
13038
32907
  NULLCMD=:
13039
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
32908
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13040
32909
  # is contrary to our usage.  Disable this feature.
13041
32910
  alias -g '${1+"$@"}'='"$@"'
13042
32911
  setopt NO_GLOB_SUBST
13058
32927
as_cr_digits='0123456789'
13059
32928
as_cr_alnum=$as_cr_Letters$as_cr_digits
13060
32929
 
 
32930
as_nl='
 
32931
'
 
32932
export as_nl
 
32933
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
32934
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
32935
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
32936
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
32937
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
32938
  as_echo='printf %s\n'
 
32939
  as_echo_n='printf %s'
 
32940
else
 
32941
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
32942
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
32943
    as_echo_n='/usr/ucb/echo -n'
 
32944
  else
 
32945
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
32946
    as_echo_n_body='eval
 
32947
      arg=$1;
 
32948
      case $arg in
 
32949
      *"$as_nl"*)
 
32950
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
32951
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
32952
      esac;
 
32953
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
32954
    '
 
32955
    export as_echo_n_body
 
32956
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
32957
  fi
 
32958
  export as_echo_body
 
32959
  as_echo='sh -c $as_echo_body as_echo'
 
32960
fi
 
32961
 
13061
32962
# The user is always right.
13062
32963
if test "${PATH_SEPARATOR+set}" != set; then
13063
 
  echo "#! /bin/sh" >conf$$.sh
13064
 
  echo  "exit 0"   >>conf$$.sh
13065
 
  chmod +x conf$$.sh
13066
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13067
 
    PATH_SEPARATOR=';'
13068
 
  else
13069
 
    PATH_SEPARATOR=:
13070
 
  fi
13071
 
  rm -f conf$$.sh
 
32964
  PATH_SEPARATOR=:
 
32965
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
32966
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
32967
      PATH_SEPARATOR=';'
 
32968
  }
13072
32969
fi
13073
32970
 
13074
32971
# Support unset when possible.
13084
32981
# there to prevent editors from complaining about space-tab.
13085
32982
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13086
32983
# splitting by setting IFS to empty value.)
13087
 
as_nl='
13088
 
'
13089
32984
IFS=" ""        $as_nl"
13090
32985
 
13091
32986
# Find who we are.  Look in the path if we contain no directory separator.
13108
33003
  as_myself=$0
13109
33004
fi
13110
33005
if test ! -f "$as_myself"; then
13111
 
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
33006
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13112
33007
  { (exit 1); exit 1; }
13113
33008
fi
13114
33009
 
13121
33016
PS4='+ '
13122
33017
 
13123
33018
# NLS nuisances.
13124
 
for as_var in \
13125
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13126
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13127
 
  LC_TELEPHONE LC_TIME
13128
 
do
13129
 
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13130
 
    eval $as_var=C; export $as_var
13131
 
  else
13132
 
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13133
 
  fi
13134
 
done
 
33019
LC_ALL=C
 
33020
export LC_ALL
 
33021
LANGUAGE=C
 
33022
export LANGUAGE
13135
33023
 
13136
33024
# Required to use basename.
13137
33025
if expr a : '\(a\)' >/dev/null 2>&1 &&
13153
33041
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13154
33042
         X"$0" : 'X\(//\)$' \| \
13155
33043
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13156
 
echo X/"$0" |
 
33044
$as_echo X/"$0" |
13157
33045
    sed '/^.*\/\([^/][^/]*\)\/*$/{
13158
33046
            s//\1/
13159
33047
            q
13204
33092
      s/-\n.*//
13205
33093
    ' >$as_me.lineno &&
13206
33094
  chmod +x "$as_me.lineno" ||
13207
 
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
33095
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13208
33096
   { (exit 1); exit 1; }; }
13209
33097
 
13210
33098
  # Don't try to exec as it changes $[0], causing all sort of problems
13232
33120
*)
13233
33121
  ECHO_N='-n';;
13234
33122
esac
13235
 
 
13236
33123
if expr a : '\(a\)' >/dev/null 2>&1 &&
13237
33124
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13238
33125
  as_expr=expr
13245
33132
  rm -f conf$$.dir/conf$$.file
13246
33133
else
13247
33134
  rm -f conf$$.dir
13248
 
  mkdir conf$$.dir
 
33135
  mkdir conf$$.dir 2>/dev/null
13249
33136
fi
13250
 
echo >conf$$.file
13251
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
13252
 
  as_ln_s='ln -s'
13253
 
  # ... but there are two gotchas:
13254
 
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13255
 
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13256
 
  # In both cases, we have to default to `cp -p'.
13257
 
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
33137
if (echo >conf$$.file) 2>/dev/null; then
 
33138
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
33139
    as_ln_s='ln -s'
 
33140
    # ... but there are two gotchas:
 
33141
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
33142
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
33143
    # In both cases, we have to default to `cp -p'.
 
33144
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
33145
      as_ln_s='cp -p'
 
33146
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
33147
    as_ln_s=ln
 
33148
  else
13258
33149
    as_ln_s='cp -p'
13259
 
elif ln conf$$.file conf$$ 2>/dev/null; then
13260
 
  as_ln_s=ln
 
33150
  fi
13261
33151
else
13262
33152
  as_ln_s='cp -p'
13263
33153
fi
13282
33172
  as_test_x='
13283
33173
    eval sh -c '\''
13284
33174
      if test -d "$1"; then
13285
 
        test -d "$1/.";
 
33175
        test -d "$1/.";
13286
33176
      else
13287
33177
        case $1 in
13288
 
        -*)set "./$1";;
 
33178
        -*)set "./$1";;
13289
33179
        esac;
13290
33180
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13291
33181
        ???[sx]*):;;*)false;;esac;fi
13307
33197
# report actual input values of CONFIG_FILES etc. instead of their
13308
33198
# values after options handling.
13309
33199
ac_log="
13310
 
This file was extended by $as_me, which was
13311
 
generated by GNU Autoconf 2.61.  Invocation command line was
 
33200
This file was extended by wget $as_me 1.12, which was
 
33201
generated by GNU Autoconf 2.63.  Invocation command line was
13312
33202
 
13313
33203
  CONFIG_FILES    = $CONFIG_FILES
13314
33204
  CONFIG_HEADERS  = $CONFIG_HEADERS
13321
33211
 
13322
33212
_ACEOF
13323
33213
 
13324
 
cat >>$CONFIG_STATUS <<_ACEOF
 
33214
case $ac_config_files in *"
 
33215
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
33216
esac
 
33217
 
 
33218
case $ac_config_headers in *"
 
33219
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
33220
esac
 
33221
 
 
33222
 
 
33223
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13325
33224
# Files that config.status was made for.
13326
33225
config_files="$ac_config_files"
13327
33226
config_headers="$ac_config_headers"
 
33227
config_links="$ac_config_links"
13328
33228
config_commands="$ac_config_commands"
13329
33229
 
13330
33230
_ACEOF
13331
33231
 
13332
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
33232
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13333
33233
ac_cs_usage="\
13334
33234
\`$as_me' instantiates files from templates according to the
13335
33235
current configuration.
13336
33236
 
13337
 
Usage: $0 [OPTIONS] [FILE]...
 
33237
Usage: $0 [OPTION]... [FILE]...
13338
33238
 
13339
33239
  -h, --help       print this help, then exit
13340
33240
  -V, --version    print version number and configuration settings, then exit
13341
 
  -q, --quiet      do not print progress messages
 
33241
  -q, --quiet, --silent
 
33242
                   do not print progress messages
13342
33243
  -d, --debug      don't remove temporary files
13343
33244
      --recheck    update $as_me by reconfiguring in the same conditions
13344
 
  --file=FILE[:TEMPLATE]
13345
 
                   instantiate the configuration file FILE
13346
 
  --header=FILE[:TEMPLATE]
13347
 
                   instantiate the configuration header FILE
 
33245
      --file=FILE[:TEMPLATE]
 
33246
                   instantiate the configuration file FILE
 
33247
      --header=FILE[:TEMPLATE]
 
33248
                   instantiate the configuration header FILE
13348
33249
 
13349
33250
Configuration files:
13350
33251
$config_files
13352
33253
Configuration headers:
13353
33254
$config_headers
13354
33255
 
 
33256
Configuration links:
 
33257
$config_links
 
33258
 
13355
33259
Configuration commands:
13356
33260
$config_commands
13357
33261
 
13358
33262
Report bugs to <bug-autoconf@gnu.org>."
13359
33263
 
13360
33264
_ACEOF
13361
 
cat >>$CONFIG_STATUS <<_ACEOF
 
33265
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13362
33266
ac_cs_version="\\
13363
 
config.status
13364
 
configured by $0, generated by GNU Autoconf 2.61,
13365
 
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
33267
wget config.status 1.12
 
33268
configured by $0, generated by GNU Autoconf 2.63,
 
33269
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13366
33270
 
13367
 
Copyright (C) 2006 Free Software Foundation, Inc.
 
33271
Copyright (C) 2008 Free Software Foundation, Inc.
13368
33272
This config.status script is free software; the Free Software Foundation
13369
33273
gives unlimited permission to copy, distribute and modify it."
13370
33274
 
13371
33275
ac_pwd='$ac_pwd'
13372
33276
srcdir='$srcdir'
13373
33277
INSTALL='$INSTALL'
 
33278
MKDIR_P='$MKDIR_P'
 
33279
AWK='$AWK'
 
33280
test -n "\$AWK" || AWK=awk
13374
33281
_ACEOF
13375
33282
 
13376
 
cat >>$CONFIG_STATUS <<\_ACEOF
13377
 
# If no file are specified by the user, then we need to provide default
13378
 
# value.  By we need to know if files were specified by the user.
 
33283
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
33284
# The default lists apply if the user does not specify any file.
13379
33285
ac_need_defaults=:
13380
33286
while test $# != 0
13381
33287
do
13397
33303
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13398
33304
    ac_cs_recheck=: ;;
13399
33305
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13400
 
    echo "$ac_cs_version"; exit ;;
 
33306
    $as_echo "$ac_cs_version"; exit ;;
13401
33307
  --debug | --debu | --deb | --de | --d | -d )
13402
33308
    debug=: ;;
13403
33309
  --file | --fil | --fi | --f )
13404
33310
    $ac_shift
13405
 
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
33311
    case $ac_optarg in
 
33312
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
33313
    esac
 
33314
    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13406
33315
    ac_need_defaults=false;;
13407
33316
  --header | --heade | --head | --hea )
13408
33317
    $ac_shift
13409
 
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
33318
    case $ac_optarg in
 
33319
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
33320
    esac
 
33321
    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
13410
33322
    ac_need_defaults=false;;
13411
33323
  --he | --h)
13412
33324
    # Conflict between --help and --header
13413
 
    { echo "$as_me: error: ambiguous option: $1
 
33325
    { $as_echo "$as_me: error: ambiguous option: $1
13414
33326
Try \`$0 --help' for more information." >&2
13415
33327
   { (exit 1); exit 1; }; };;
13416
33328
  --help | --hel | -h )
13417
 
    echo "$ac_cs_usage"; exit ;;
 
33329
    $as_echo "$ac_cs_usage"; exit ;;
13418
33330
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13419
33331
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13420
33332
    ac_cs_silent=: ;;
13421
33333
 
13422
33334
  # This is an error.
13423
 
  -*) { echo "$as_me: error: unrecognized option: $1
 
33335
  -*) { $as_echo "$as_me: error: unrecognized option: $1
13424
33336
Try \`$0 --help' for more information." >&2
13425
33337
   { (exit 1); exit 1; }; } ;;
13426
33338
 
13439
33351
fi
13440
33352
 
13441
33353
_ACEOF
13442
 
cat >>$CONFIG_STATUS <<_ACEOF
 
33354
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13443
33355
if \$ac_cs_recheck; then
13444
 
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13445
 
  CONFIG_SHELL=$SHELL
 
33356
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
33357
  shift
 
33358
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
33359
  CONFIG_SHELL='$SHELL'
13446
33360
  export CONFIG_SHELL
13447
 
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
33361
  exec "\$@"
13448
33362
fi
13449
33363
 
13450
33364
_ACEOF
13451
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
33365
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13452
33366
exec 5>>config.log
13453
33367
{
13454
33368
  echo
13455
33369
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13456
33370
## Running $as_me. ##
13457
33371
_ASBOX
13458
 
  echo "$ac_log"
 
33372
  $as_echo "$ac_log"
13459
33373
} >&5
13460
33374
 
13461
33375
_ACEOF
13462
 
cat >>$CONFIG_STATUS <<_ACEOF
 
33376
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
33377
#
 
33378
# INIT-COMMANDS
 
33379
#
 
33380
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
33381
# Capture the value of obsolete ALL_LINGUAS because we need it to compute
 
33382
    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
 
33383
    # from automake < 1.5.
 
33384
    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
 
33385
    # Capture the value of LINGUAS because we need it to compute CATALOGS.
 
33386
    LINGUAS="${LINGUAS-%UNSET%}"
 
33387
 
 
33388
GNUmakefile=$GNUmakefile
 
33389
 
13463
33390
_ACEOF
13464
33391
 
13465
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
33392
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13466
33393
 
13467
33394
# Handling of arguments.
13468
33395
for ac_config_target in $ac_config_targets
13469
33396
do
13470
33397
  case $ac_config_target in
 
33398
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
33399
    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
 
33400
    "$GNUmakefile") CONFIG_LINKS="$CONFIG_LINKS $GNUmakefile:$GNUmakefile" ;;
13471
33401
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13472
33402
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13473
33403
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13475
33405
    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
13476
33406
    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
13477
33407
    "tests/WgetTest.pm") CONFIG_FILES="$CONFIG_FILES tests/WgetTest.pm" ;;
 
33408
    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
 
33409
    "md5/Makefile") CONFIG_FILES="$CONFIG_FILES md5/Makefile" ;;
13478
33410
    "windows/Makefile") CONFIG_FILES="$CONFIG_FILES windows/Makefile" ;;
13479
33411
    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
13480
 
    "stamp-h") CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
13481
 
    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
13482
33412
 
13483
 
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13484
 
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
33413
  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
33414
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13485
33415
   { (exit 1); exit 1; }; };;
13486
33416
  esac
13487
33417
done
13494
33424
if $ac_need_defaults; then
13495
33425
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13496
33426
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
33427
  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
13497
33428
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13498
33429
fi
13499
33430
 
13522
33453
  (umask 077 && mkdir "$tmp")
13523
33454
} ||
13524
33455
{
13525
 
   echo "$me: cannot create a temporary directory in ." >&2
 
33456
   $as_echo "$as_me: cannot create a temporary directory in ." >&2
13526
33457
   { (exit 1); exit 1; }
13527
33458
}
13528
33459
 
13529
 
#
13530
 
# Set up the sed scripts for CONFIG_FILES section.
13531
 
#
13532
 
 
13533
 
# No need to generate the scripts if there are no CONFIG_FILES.
13534
 
# This happens for instance when ./config.status config.h
 
33460
# Set up the scripts for CONFIG_FILES section.
 
33461
# No need to generate them if there are no CONFIG_FILES.
 
33462
# This happens for instance with `./config.status config.h'.
13535
33463
if test -n "$CONFIG_FILES"; then
13536
33464
 
 
33465
 
 
33466
ac_cr='
 
 
b"'"
 
33467
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
33468
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
33469
  ac_cs_awk_cr='\\r'
 
33470
else
 
33471
  ac_cs_awk_cr=$ac_cr
 
33472
fi
 
33473
 
 
33474
echo 'BEGIN {' >"$tmp/subs1.awk" &&
13537
33475
_ACEOF
13538
33476
 
13539
33477
 
13540
 
 
 
33478
{
 
33479
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
33480
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
33481
  echo "_ACEOF"
 
33482
} >conf$$subs.sh ||
 
33483
  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
33484
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
33485
   { (exit 1); exit 1; }; }
 
33486
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13541
33487
ac_delim='%!_!# '
13542
33488
for ac_last_try in false false false false false :; do
13543
 
  cat >conf$$subs.sed <<_ACEOF
13544
 
SHELL!$SHELL$ac_delim
13545
 
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13546
 
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13547
 
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13548
 
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13549
 
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13550
 
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13551
 
exec_prefix!$exec_prefix$ac_delim
13552
 
prefix!$prefix$ac_delim
13553
 
program_transform_name!$program_transform_name$ac_delim
13554
 
bindir!$bindir$ac_delim
13555
 
sbindir!$sbindir$ac_delim
13556
 
libexecdir!$libexecdir$ac_delim
13557
 
datarootdir!$datarootdir$ac_delim
13558
 
datadir!$datadir$ac_delim
13559
 
sysconfdir!$sysconfdir$ac_delim
13560
 
sharedstatedir!$sharedstatedir$ac_delim
13561
 
localstatedir!$localstatedir$ac_delim
13562
 
includedir!$includedir$ac_delim
13563
 
oldincludedir!$oldincludedir$ac_delim
13564
 
docdir!$docdir$ac_delim
13565
 
infodir!$infodir$ac_delim
13566
 
htmldir!$htmldir$ac_delim
13567
 
dvidir!$dvidir$ac_delim
13568
 
pdfdir!$pdfdir$ac_delim
13569
 
psdir!$psdir$ac_delim
13570
 
libdir!$libdir$ac_delim
13571
 
localedir!$localedir$ac_delim
13572
 
mandir!$mandir$ac_delim
13573
 
DEFS!$DEFS$ac_delim
13574
 
ECHO_C!$ECHO_C$ac_delim
13575
 
ECHO_N!$ECHO_N$ac_delim
13576
 
ECHO_T!$ECHO_T$ac_delim
13577
 
LIBS!$LIBS$ac_delim
13578
 
build_alias!$build_alias$ac_delim
13579
 
host_alias!$host_alias$ac_delim
13580
 
target_alias!$target_alias$ac_delim
13581
 
VERSION!$VERSION$ac_delim
13582
 
PACKAGE!$PACKAGE$ac_delim
13583
 
build!$build$ac_delim
13584
 
build_cpu!$build_cpu$ac_delim
13585
 
build_vendor!$build_vendor$ac_delim
13586
 
build_os!$build_os$ac_delim
13587
 
host!$host$ac_delim
13588
 
host_cpu!$host_cpu$ac_delim
13589
 
host_vendor!$host_vendor$ac_delim
13590
 
host_os!$host_os$ac_delim
13591
 
OPIE_OBJ!$OPIE_OBJ$ac_delim
13592
 
SET_MAKE!$SET_MAKE$ac_delim
13593
 
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
13594
 
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
13595
 
INSTALL_DATA!$INSTALL_DATA$ac_delim
13596
 
CC!$CC$ac_delim
13597
 
CFLAGS!$CFLAGS$ac_delim
13598
 
LDFLAGS!$LDFLAGS$ac_delim
13599
 
CPPFLAGS!$CPPFLAGS$ac_delim
13600
 
ac_ct_CC!$ac_ct_CC$ac_delim
13601
 
EXEEXT!$EXEEXT$ac_delim
13602
 
OBJEXT!$OBJEXT$ac_delim
13603
 
CPP!$CPP$ac_delim
13604
 
GREP!$GREP$ac_delim
13605
 
EGREP!$EGREP$ac_delim
13606
 
ALLOCA!$ALLOCA$ac_delim
13607
 
GETOPT_OBJ!$GETOPT_OBJ$ac_delim
13608
 
HAVE_LIBGNUTLS!$HAVE_LIBGNUTLS$ac_delim
13609
 
LIBGNUTLS!$LIBGNUTLS$ac_delim
13610
 
LTLIBGNUTLS!$LTLIBGNUTLS$ac_delim
13611
 
HAVE_LIBSSL!$HAVE_LIBSSL$ac_delim
13612
 
LIBSSL!$LIBSSL$ac_delim
13613
 
LTLIBSSL!$LTLIBSSL$ac_delim
13614
 
SSL_OBJ!$SSL_OBJ$ac_delim
13615
 
NTLM_OBJ!$NTLM_OBJ$ac_delim
13616
 
MD5_OBJ!$MD5_OBJ$ac_delim
13617
 
MSGFMT!$MSGFMT$ac_delim
13618
 
XGETTEXT!$XGETTEXT$ac_delim
13619
 
GMSGFMT!$GMSGFMT$ac_delim
13620
 
CATALOGS!$CATALOGS$ac_delim
13621
 
CATOBJEXT!$CATOBJEXT$ac_delim
13622
 
DATADIRNAME!$DATADIRNAME$ac_delim
13623
 
GMOFILES!$GMOFILES$ac_delim
13624
 
INSTOBJEXT!$INSTOBJEXT$ac_delim
13625
 
INTLLIBS!$INTLLIBS$ac_delim
13626
 
POFILES!$POFILES$ac_delim
13627
 
HAVE_NLS!$HAVE_NLS$ac_delim
13628
 
USE_NLS!$USE_NLS$ac_delim
13629
 
MAKEINFO!$MAKEINFO$ac_delim
13630
 
PERL!$PERL$ac_delim
13631
 
POD2MAN!$POD2MAN$ac_delim
13632
 
COMMENT_IF_NO_POD2MAN!$COMMENT_IF_NO_POD2MAN$ac_delim
13633
 
LIBOBJS!$LIBOBJS$ac_delim
13634
 
LTLIBOBJS!$LTLIBOBJS$ac_delim
13635
 
_ACEOF
 
33489
  . ./conf$$subs.sh ||
 
33490
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
33491
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
33492
   { (exit 1); exit 1; }; }
13636
33493
 
13637
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
 
33494
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
33495
  if test $ac_delim_n = $ac_delim_num; then
13638
33496
    break
13639
33497
  elif $ac_last_try; then
13640
 
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13641
 
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
33498
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
33499
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13642
33500
   { (exit 1); exit 1; }; }
13643
33501
  else
13644
33502
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13645
33503
  fi
13646
33504
done
13647
 
 
13648
 
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13649
 
if test -n "$ac_eof"; then
13650
 
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13651
 
  ac_eof=`expr $ac_eof + 1`
13652
 
fi
13653
 
 
13654
 
cat >>$CONFIG_STATUS <<_ACEOF
13655
 
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13656
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13657
 
_ACEOF
13658
 
sed '
13659
 
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13660
 
s/^/s,@/; s/!/@,|#_!!_#|/
13661
 
:n
13662
 
t n
13663
 
s/'"$ac_delim"'$/,g/; t
13664
 
s/$/\\/; p
13665
 
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13666
 
' >>$CONFIG_STATUS <conf$$subs.sed
13667
 
rm -f conf$$subs.sed
13668
 
cat >>$CONFIG_STATUS <<_ACEOF
13669
 
:end
13670
 
s/|#_!!_#|//g
13671
 
CEOF$ac_eof
13672
 
_ACEOF
13673
 
 
 
33505
rm -f conf$$subs.sh
 
33506
 
 
33507
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
33508
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
 
33509
_ACEOF
 
33510
sed -n '
 
33511
h
 
33512
s/^/S["/; s/!.*/"]=/
 
33513
p
 
33514
g
 
33515
s/^[^!]*!//
 
33516
:repl
 
33517
t repl
 
33518
s/'"$ac_delim"'$//
 
33519
t delim
 
33520
:nl
 
33521
h
 
33522
s/\(.\{148\}\).*/\1/
 
33523
t more1
 
33524
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
33525
p
 
33526
n
 
33527
b repl
 
33528
:more1
 
33529
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
33530
p
 
33531
g
 
33532
s/.\{148\}//
 
33533
t nl
 
33534
:delim
 
33535
h
 
33536
s/\(.\{148\}\).*/\1/
 
33537
t more2
 
33538
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
33539
p
 
33540
b
 
33541
:more2
 
33542
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
33543
p
 
33544
g
 
33545
s/.\{148\}//
 
33546
t delim
 
33547
' <conf$$subs.awk | sed '
 
33548
/^[^""]/{
 
33549
  N
 
33550
  s/\n//
 
33551
}
 
33552
' >>$CONFIG_STATUS || ac_write_fail=1
 
33553
rm -f conf$$subs.awk
 
33554
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
33555
_ACAWK
 
33556
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
 
33557
  for (key in S) S_is_set[key] = 1
 
33558
  FS = ""
 
33559
 
 
33560
}
 
33561
{
 
33562
  line = $ 0
 
33563
  nfields = split(line, field, "@")
 
33564
  substed = 0
 
33565
  len = length(field[1])
 
33566
  for (i = 2; i < nfields; i++) {
 
33567
    key = field[i]
 
33568
    keylen = length(key)
 
33569
    if (S_is_set[key]) {
 
33570
      value = S[key]
 
33571
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
33572
      len += length(value) + length(field[++i])
 
33573
      substed = 1
 
33574
    } else
 
33575
      len += 1 + keylen
 
33576
  }
 
33577
 
 
33578
  print line
 
33579
}
 
33580
 
 
33581
_ACAWK
 
33582
_ACEOF
 
33583
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
33584
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
33585
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
33586
else
 
33587
  cat
 
33588
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
 
33589
  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
 
33590
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
 
33591
   { (exit 1); exit 1; }; }
 
33592
_ACEOF
13674
33593
 
13675
33594
# VPATH may cause trouble with some makes, so we remove $(srcdir),
13676
33595
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13687
33606
}'
13688
33607
fi
13689
33608
 
13690
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
33609
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13691
33610
fi # test -n "$CONFIG_FILES"
13692
33611
 
13693
 
 
13694
 
for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
 
33612
# Set up the scripts for CONFIG_HEADERS section.
 
33613
# No need to generate them if there are no CONFIG_HEADERS.
 
33614
# This happens for instance with `./config.status Makefile'.
 
33615
if test -n "$CONFIG_HEADERS"; then
 
33616
cat >"$tmp/defines.awk" <<\_ACAWK ||
 
33617
BEGIN {
 
33618
_ACEOF
 
33619
 
 
33620
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
33621
# here-document in config.status, that substitutes the proper values into
 
33622
# config.h.in to produce config.h.
 
33623
 
 
33624
# Create a delimiter string that does not exist in confdefs.h, to ease
 
33625
# handling of long lines.
 
33626
ac_delim='%!_!# '
 
33627
for ac_last_try in false false :; do
 
33628
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
 
33629
  if test -z "$ac_t"; then
 
33630
    break
 
33631
  elif $ac_last_try; then
 
33632
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
 
33633
$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
 
33634
   { (exit 1); exit 1; }; }
 
33635
  else
 
33636
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
33637
  fi
 
33638
done
 
33639
 
 
33640
# For the awk script, D is an array of macro values keyed by name,
 
33641
# likewise P contains macro parameters if any.  Preserve backslash
 
33642
# newline sequences.
 
33643
 
 
33644
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
33645
sed -n '
 
33646
s/.\{148\}/&'"$ac_delim"'/g
 
33647
t rset
 
33648
:rset
 
33649
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
33650
t def
 
33651
d
 
33652
:def
 
33653
s/\\$//
 
33654
t bsnl
 
33655
s/["\\]/\\&/g
 
33656
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
33657
D["\1"]=" \3"/p
 
33658
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
33659
d
 
33660
:bsnl
 
33661
s/["\\]/\\&/g
 
33662
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
33663
D["\1"]=" \3\\\\\\n"\\/p
 
33664
t cont
 
33665
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
33666
t cont
 
33667
d
 
33668
:cont
 
33669
n
 
33670
s/.\{148\}/&'"$ac_delim"'/g
 
33671
t clear
 
33672
:clear
 
33673
s/\\$//
 
33674
t bsnlc
 
33675
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
33676
d
 
33677
:bsnlc
 
33678
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
33679
b cont
 
33680
' <confdefs.h | sed '
 
33681
s/'"$ac_delim"'/"\\\
 
33682
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
33683
 
 
33684
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
33685
  for (key in D) D_is_set[key] = 1
 
33686
  FS = ""
 
33687
}
 
33688
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
33689
  line = \$ 0
 
33690
  split(line, arg, " ")
 
33691
  if (arg[1] == "#") {
 
33692
    defundef = arg[2]
 
33693
    mac1 = arg[3]
 
33694
  } else {
 
33695
    defundef = substr(arg[1], 2)
 
33696
    mac1 = arg[2]
 
33697
  }
 
33698
  split(mac1, mac2, "(") #)
 
33699
  macro = mac2[1]
 
33700
  prefix = substr(line, 1, index(line, defundef) - 1)
 
33701
  if (D_is_set[macro]) {
 
33702
    # Preserve the white space surrounding the "#".
 
33703
    print prefix "define", macro P[macro] D[macro]
 
33704
    next
 
33705
  } else {
 
33706
    # Replace #undef with comments.  This is necessary, for example,
 
33707
    # in the case of _POSIX_SOURCE, which is predefined and required
 
33708
    # on some systems where configure will not decide to define it.
 
33709
    if (defundef == "undef") {
 
33710
      print "/*", prefix defundef, macro, "*/"
 
33711
      next
 
33712
    }
 
33713
  }
 
33714
}
 
33715
{ print }
 
33716
_ACAWK
 
33717
_ACEOF
 
33718
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
33719
  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
 
33720
$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
 
33721
   { (exit 1); exit 1; }; }
 
33722
fi # test -n "$CONFIG_HEADERS"
 
33723
 
 
33724
 
 
33725
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
 
33726
shift
 
33727
for ac_tag
13695
33728
do
13696
33729
  case $ac_tag in
13697
33730
  :[FHLC]) ac_mode=$ac_tag; continue;;
13698
33731
  esac
13699
33732
  case $ac_mode$ac_tag in
13700
33733
  :[FHL]*:*);;
13701
 
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13702
 
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
 
33734
  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
 
33735
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
13703
33736
   { (exit 1); exit 1; }; };;
13704
33737
  :[FH]-) ac_tag=-:-;;
13705
33738
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13728
33761
           [\\/$]*) false;;
13729
33762
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13730
33763
           esac ||
13731
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13732
 
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 
33764
           { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 
33765
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13733
33766
   { (exit 1); exit 1; }; };;
13734
33767
      esac
13735
 
      ac_file_inputs="$ac_file_inputs $ac_f"
 
33768
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
33769
      ac_file_inputs="$ac_file_inputs '$ac_f'"
13736
33770
    done
13737
33771
 
13738
33772
    # Let's still pretend it is `configure' which instantiates (i.e., don't
13739
33773
    # use $as_me), people would be surprised to read:
13740
33774
    #    /* config.h.  Generated by config.status.  */
13741
 
    configure_input="Generated from "`IFS=:
13742
 
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
 
33775
    configure_input='Generated from '`
 
33776
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
33777
        `' by configure.'
13743
33778
    if test x"$ac_file" != x-; then
13744
33779
      configure_input="$ac_file.  $configure_input"
13745
 
      { echo "$as_me:$LINENO: creating $ac_file" >&5
13746
 
echo "$as_me: creating $ac_file" >&6;}
 
33780
      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
 
33781
$as_echo "$as_me: creating $ac_file" >&6;}
13747
33782
    fi
 
33783
    # Neutralize special characters interpreted by sed in replacement strings.
 
33784
    case $configure_input in #(
 
33785
    *\&* | *\|* | *\\* )
 
33786
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
33787
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
33788
    *) ac_sed_conf_input=$configure_input;;
 
33789
    esac
13748
33790
 
13749
33791
    case $ac_tag in
13750
 
    *:-:* | *:-) cat >"$tmp/stdin";;
 
33792
    *:-:* | *:-) cat >"$tmp/stdin" \
 
33793
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
33794
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
33795
   { (exit 1); exit 1; }; } ;;
13751
33796
    esac
13752
33797
    ;;
13753
33798
  esac
13757
33802
         X"$ac_file" : 'X\(//\)[^/]' \| \
13758
33803
         X"$ac_file" : 'X\(//\)$' \| \
13759
33804
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13760
 
echo X"$ac_file" |
 
33805
$as_echo X"$ac_file" |
13761
33806
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13762
33807
            s//\1/
13763
33808
            q
13783
33828
    as_dirs=
13784
33829
    while :; do
13785
33830
      case $as_dir in #(
13786
 
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
33831
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13787
33832
      *) as_qdir=$as_dir;;
13788
33833
      esac
13789
33834
      as_dirs="'$as_qdir' $as_dirs"
13792
33837
         X"$as_dir" : 'X\(//\)[^/]' \| \
13793
33838
         X"$as_dir" : 'X\(//\)$' \| \
13794
33839
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13795
 
echo X"$as_dir" |
 
33840
$as_echo X"$as_dir" |
13796
33841
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13797
33842
            s//\1/
13798
33843
            q
13813
33858
      test -d "$as_dir" && break
13814
33859
    done
13815
33860
    test -z "$as_dirs" || eval "mkdir $as_dirs"
13816
 
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13817
 
echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
33861
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
33862
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13818
33863
   { (exit 1); exit 1; }; }; }
13819
33864
  ac_builddir=.
13820
33865
 
13821
33866
case "$ac_dir" in
13822
33867
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13823
33868
*)
13824
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
33869
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13825
33870
  # A ".." for each directory in $ac_dir_suffix.
13826
 
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
33871
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13827
33872
  case $ac_top_builddir_sub in
13828
33873
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13829
33874
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13861
33906
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13862
33907
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13863
33908
  esac
 
33909
  ac_MKDIR_P=$MKDIR_P
 
33910
  case $MKDIR_P in
 
33911
  [\\/$]* | ?:[\\/]* ) ;;
 
33912
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
33913
  esac
13864
33914
_ACEOF
13865
33915
 
13866
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
33916
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13867
33917
# If the template does not know about datarootdir, expand it.
13868
33918
# FIXME: This hack should be removed a few years after 2.60.
13869
33919
ac_datarootdir_hack=; ac_datarootdir_seen=
13870
33920
 
13871
 
case `sed -n '/datarootdir/ {
 
33921
ac_sed_dataroot='
 
33922
/datarootdir/ {
13872
33923
  p
13873
33924
  q
13874
33925
}
13877
33928
/@infodir@/p
13878
33929
/@localedir@/p
13879
33930
/@mandir@/p
13880
 
' $ac_file_inputs` in
 
33931
'
 
33932
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13881
33933
*datarootdir*) ac_datarootdir_seen=yes;;
13882
33934
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13883
 
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13884
 
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
33935
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
33936
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13885
33937
_ACEOF
13886
 
cat >>$CONFIG_STATUS <<_ACEOF
 
33938
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13887
33939
  ac_datarootdir_hack='
13888
33940
  s&@datadir@&$datadir&g
13889
33941
  s&@docdir@&$docdir&g
13897
33949
# Neutralize VPATH when `$srcdir' = `.'.
13898
33950
# Shell code in configure.ac might set extrasub.
13899
33951
# FIXME: do we really want to maintain this feature?
13900
 
cat >>$CONFIG_STATUS <<_ACEOF
13901
 
  sed "$ac_vpsub
 
33952
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
33953
ac_sed_extra="$ac_vpsub
13902
33954
$extrasub
13903
33955
_ACEOF
13904
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
33956
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13905
33957
:t
13906
33958
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13907
 
s&@configure_input@&$configure_input&;t t
 
33959
s|@configure_input@|$ac_sed_conf_input|;t t
13908
33960
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
33961
s&@top_build_prefix@&$ac_top_build_prefix&;t t
13909
33962
s&@srcdir@&$ac_srcdir&;t t
13910
33963
s&@abs_srcdir@&$ac_abs_srcdir&;t t
13911
33964
s&@top_srcdir@&$ac_top_srcdir&;t t
13914
33967
s&@abs_builddir@&$ac_abs_builddir&;t t
13915
33968
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13916
33969
s&@INSTALL@&$ac_INSTALL&;t t
 
33970
s&@MKDIR_P@&$ac_MKDIR_P&;t t
13917
33971
$ac_datarootdir_hack
13918
 
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
 
33972
"
 
33973
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
 
33974
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
33975
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
33976
   { (exit 1); exit 1; }; }
13919
33977
 
13920
33978
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13921
33979
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13922
33980
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13923
 
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
33981
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13924
33982
which seems to be undefined.  Please make sure it is defined." >&5
13925
 
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
33983
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13926
33984
which seems to be undefined.  Please make sure it is defined." >&2;}
13927
33985
 
13928
33986
  rm -f "$tmp/stdin"
13929
33987
  case $ac_file in
13930
 
  -) cat "$tmp/out"; rm -f "$tmp/out";;
13931
 
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
13932
 
  esac
 
33988
  -) cat "$tmp/out" && rm -f "$tmp/out";;
 
33989
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
 
33990
  esac \
 
33991
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
33992
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
33993
   { (exit 1); exit 1; }; }
13933
33994
 ;;
13934
33995
  :H)
13935
33996
  #
13936
33997
  # CONFIG_HEADER
13937
33998
  #
13938
 
_ACEOF
13939
 
 
13940
 
# Transform confdefs.h into a sed script `conftest.defines', that
13941
 
# substitutes the proper values into config.h.in to produce config.h.
13942
 
rm -f conftest.defines conftest.tail
13943
 
# First, append a space to every undef/define line, to ease matching.
13944
 
echo 's/$/ /' >conftest.defines
13945
 
# Then, protect against being on the right side of a sed subst, or in
13946
 
# an unquoted here document, in config.status.  If some macros were
13947
 
# called several times there might be several #defines for the same
13948
 
# symbol, which is useless.  But do not sort them, since the last
13949
 
# AC_DEFINE must be honored.
13950
 
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13951
 
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
13952
 
# NAME is the cpp macro being defined, VALUE is the value it is being given.
13953
 
# PARAMS is the parameter list in the macro definition--in most cases, it's
13954
 
# just an empty string.
13955
 
ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
13956
 
ac_dB='\\)[      (].*,\\1define\\2'
13957
 
ac_dC=' '
13958
 
ac_dD=' ,'
13959
 
 
13960
 
uniq confdefs.h |
13961
 
  sed -n '
13962
 
        t rset
13963
 
        :rset
13964
 
        s/^[     ]*#[    ]*define[       ][      ]*//
13965
 
        t ok
13966
 
        d
13967
 
        :ok
13968
 
        s/[\\&,]/\\&/g
13969
 
        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
13970
 
        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
13971
 
  ' >>conftest.defines
13972
 
 
13973
 
# Remove the space that was appended to ease matching.
13974
 
# Then replace #undef with comments.  This is necessary, for
13975
 
# example, in the case of _POSIX_SOURCE, which is predefined and required
13976
 
# on some systems where configure will not decide to define it.
13977
 
# (The regexp can be short, since the line contains either #define or #undef.)
13978
 
echo 's/ $//
13979
 
s,^[     #]*u.*,/* & */,' >>conftest.defines
13980
 
 
13981
 
# Break up conftest.defines:
13982
 
ac_max_sed_lines=50
13983
 
 
13984
 
# First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
13985
 
# Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
13986
 
# Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
13987
 
# et cetera.
13988
 
ac_in='$ac_file_inputs'
13989
 
ac_out='"$tmp/out1"'
13990
 
ac_nxt='"$tmp/out2"'
13991
 
 
13992
 
while :
13993
 
do
13994
 
  # Write a here document:
13995
 
    cat >>$CONFIG_STATUS <<_ACEOF
13996
 
    # First, check the format of the line:
13997
 
    cat >"\$tmp/defines.sed" <<\\CEOF
13998
 
/^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
13999
 
/^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
14000
 
b
14001
 
:def
14002
 
_ACEOF
14003
 
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
14004
 
  echo 'CEOF
14005
 
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
14006
 
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
14007
 
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
14008
 
  grep . conftest.tail >/dev/null || break
14009
 
  rm -f conftest.defines
14010
 
  mv conftest.tail conftest.defines
14011
 
done
14012
 
rm -f conftest.defines conftest.tail
14013
 
 
14014
 
echo "ac_result=$ac_in" >>$CONFIG_STATUS
14015
 
cat >>$CONFIG_STATUS <<\_ACEOF
14016
33999
  if test x"$ac_file" != x-; then
14017
 
    echo "/* $configure_input  */" >"$tmp/config.h"
14018
 
    cat "$ac_result" >>"$tmp/config.h"
14019
 
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
14020
 
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14021
 
echo "$as_me: $ac_file is unchanged" >&6;}
 
34000
    {
 
34001
      $as_echo "/* $configure_input  */" \
 
34002
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
 
34003
    } >"$tmp/config.h" \
 
34004
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
34005
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
34006
   { (exit 1); exit 1; }; }
 
34007
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
 
34008
      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
34009
$as_echo "$as_me: $ac_file is unchanged" >&6;}
14022
34010
    else
14023
 
      rm -f $ac_file
14024
 
      mv "$tmp/config.h" $ac_file
14025
 
    fi
14026
 
  else
14027
 
    echo "/* $configure_input  */"
14028
 
    cat "$ac_result"
14029
 
  fi
14030
 
  rm -f "$tmp/out12"
14031
 
 ;;
14032
 
 
14033
 
  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
14034
 
echo "$as_me: executing $ac_file commands" >&6;}
 
34011
      rm -f "$ac_file"
 
34012
      mv "$tmp/config.h" "$ac_file" \
 
34013
        || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
34014
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
34015
   { (exit 1); exit 1; }; }
 
34016
    fi
 
34017
  else
 
34018
    $as_echo "/* $configure_input  */" \
 
34019
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
 
34020
      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
 
34021
$as_echo "$as_me: error: could not create -" >&2;}
 
34022
   { (exit 1); exit 1; }; }
 
34023
  fi
 
34024
# Compute "$ac_file"'s index in $config_headers.
 
34025
_am_arg="$ac_file"
 
34026
_am_stamp_count=1
 
34027
for _am_header in $config_headers :; do
 
34028
  case $_am_header in
 
34029
    $_am_arg | $_am_arg:* )
 
34030
      break ;;
 
34031
    * )
 
34032
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
34033
  esac
 
34034
done
 
34035
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 
34036
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
34037
         X"$_am_arg" : 'X\(//\)[^/]' \| \
 
34038
         X"$_am_arg" : 'X\(//\)$' \| \
 
34039
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 
34040
$as_echo X"$_am_arg" |
 
34041
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
34042
            s//\1/
 
34043
            q
 
34044
          }
 
34045
          /^X\(\/\/\)[^/].*/{
 
34046
            s//\1/
 
34047
            q
 
34048
          }
 
34049
          /^X\(\/\/\)$/{
 
34050
            s//\1/
 
34051
            q
 
34052
          }
 
34053
          /^X\(\/\).*/{
 
34054
            s//\1/
 
34055
            q
 
34056
          }
 
34057
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
34058
 ;;
 
34059
  :L)
 
34060
  #
 
34061
  # CONFIG_LINK
 
34062
  #
 
34063
 
 
34064
  if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
 
34065
    :
 
34066
  else
 
34067
    # Prefer the file from the source tree if names are identical.
 
34068
    if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
 
34069
      ac_source=$srcdir/$ac_source
 
34070
    fi
 
34071
 
 
34072
    { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
 
34073
$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
 
34074
 
 
34075
    if test ! -r "$ac_source"; then
 
34076
      { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
 
34077
$as_echo "$as_me: error: $ac_source: file not found" >&2;}
 
34078
   { (exit 1); exit 1; }; }
 
34079
    fi
 
34080
    rm -f "$ac_file"
 
34081
 
 
34082
    # Try a relative symlink, then a hard link, then a copy.
 
34083
    case $srcdir in
 
34084
    [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
 
34085
        *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
 
34086
    esac
 
34087
    ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
 
34088
      ln "$ac_source" "$ac_file" 2>/dev/null ||
 
34089
      cp -p "$ac_source" "$ac_file" ||
 
34090
      { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
 
34091
$as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
 
34092
   { (exit 1); exit 1; }; }
 
34093
  fi
 
34094
 ;;
 
34095
  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
 
34096
$as_echo "$as_me: executing $ac_file commands" >&6;}
14035
34097
 ;;
14036
34098
  esac
14037
34099
 
14038
34100
 
14039
34101
  case $ac_file$ac_mode in
14040
 
    "stamp-h":F) echo timestamp > stamp-h ;;
14041
 
    "default":C)
14042
 
      if test "x$srcdir" != "x."; then
14043
 
     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
14044
 
       posrcprefix="$srcdir/"
14045
 
     else
14046
 
       posrcprefix="../$srcdir/"
14047
 
     fi
14048
 
   else
14049
 
     posrcprefix="../"
14050
 
   fi
14051
 
   rm -f po/POTFILES
14052
 
         echo "generating po/POTFILES from $srcdir/po/POTFILES.in"
14053
 
   sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\,"  \
14054
 
       -e "\$s/\(.*\) \\\\/\1/" \
14055
 
        < $srcdir/po/POTFILES.in > po/POTFILES
14056
 
   echo "creating po/Makefile"
14057
 
   sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
14058
 
   ;;
 
34102
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
 
34103
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
34104
  # are listed without --file.  Let's play safe and only enable the eval
 
34105
  # if we detect the quoting.
 
34106
  case $CONFIG_FILES in
 
34107
  *\'*) eval set x "$CONFIG_FILES" ;;
 
34108
  *)   set x $CONFIG_FILES ;;
 
34109
  esac
 
34110
  shift
 
34111
  for mf
 
34112
  do
 
34113
    # Strip MF so we end up with the name of the file.
 
34114
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
34115
    # Check whether this is an Automake generated Makefile or not.
 
34116
    # We used to match only the files named `Makefile.in', but
 
34117
    # some people rename them; so instead we look at the file content.
 
34118
    # Grep'ing the first line is not enough: some people post-process
 
34119
    # each Makefile.in and add a new line on top of each file to say so.
 
34120
    # Grep'ing the whole file is not good either: AIX grep has a line
 
34121
    # limit of 2048, but all sed's we know have understand at least 4000.
 
34122
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
34123
      dirpart=`$as_dirname -- "$mf" ||
 
34124
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
34125
         X"$mf" : 'X\(//\)[^/]' \| \
 
34126
         X"$mf" : 'X\(//\)$' \| \
 
34127
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
34128
$as_echo X"$mf" |
 
34129
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
34130
            s//\1/
 
34131
            q
 
34132
          }
 
34133
          /^X\(\/\/\)[^/].*/{
 
34134
            s//\1/
 
34135
            q
 
34136
          }
 
34137
          /^X\(\/\/\)$/{
 
34138
            s//\1/
 
34139
            q
 
34140
          }
 
34141
          /^X\(\/\).*/{
 
34142
            s//\1/
 
34143
            q
 
34144
          }
 
34145
          s/.*/./; q'`
 
34146
    else
 
34147
      continue
 
34148
    fi
 
34149
    # Extract the definition of DEPDIR, am__include, and am__quote
 
34150
    # from the Makefile without running `make'.
 
34151
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
34152
    test -z "$DEPDIR" && continue
 
34153
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
34154
    test -z "am__include" && continue
 
34155
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
34156
    # When using ansi2knr, U may be empty or an underscore; expand it
 
34157
    U=`sed -n 's/^U = //p' < "$mf"`
 
34158
    # Find all dependency output files, they are included files with
 
34159
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
34160
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
34161
    # expansion.
 
34162
    for file in `sed -n "
 
34163
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
34164
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
34165
      # Make sure the directory exists.
 
34166
      test -f "$dirpart/$file" && continue
 
34167
      fdir=`$as_dirname -- "$file" ||
 
34168
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
34169
         X"$file" : 'X\(//\)[^/]' \| \
 
34170
         X"$file" : 'X\(//\)$' \| \
 
34171
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
34172
$as_echo X"$file" |
 
34173
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
34174
            s//\1/
 
34175
            q
 
34176
          }
 
34177
          /^X\(\/\/\)[^/].*/{
 
34178
            s//\1/
 
34179
            q
 
34180
          }
 
34181
          /^X\(\/\/\)$/{
 
34182
            s//\1/
 
34183
            q
 
34184
          }
 
34185
          /^X\(\/\).*/{
 
34186
            s//\1/
 
34187
            q
 
34188
          }
 
34189
          s/.*/./; q'`
 
34190
      { as_dir=$dirpart/$fdir
 
34191
  case $as_dir in #(
 
34192
  -*) as_dir=./$as_dir;;
 
34193
  esac
 
34194
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
34195
    as_dirs=
 
34196
    while :; do
 
34197
      case $as_dir in #(
 
34198
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
34199
      *) as_qdir=$as_dir;;
 
34200
      esac
 
34201
      as_dirs="'$as_qdir' $as_dirs"
 
34202
      as_dir=`$as_dirname -- "$as_dir" ||
 
34203
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
34204
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
34205
         X"$as_dir" : 'X\(//\)$' \| \
 
34206
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
34207
$as_echo X"$as_dir" |
 
34208
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
34209
            s//\1/
 
34210
            q
 
34211
          }
 
34212
          /^X\(\/\/\)[^/].*/{
 
34213
            s//\1/
 
34214
            q
 
34215
          }
 
34216
          /^X\(\/\/\)$/{
 
34217
            s//\1/
 
34218
            q
 
34219
          }
 
34220
          /^X\(\/\).*/{
 
34221
            s//\1/
 
34222
            q
 
34223
          }
 
34224
          s/.*/./; q'`
 
34225
      test -d "$as_dir" && break
 
34226
    done
 
34227
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
34228
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
34229
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
34230
   { (exit 1); exit 1; }; }; }
 
34231
      # echo "creating $dirpart/$file"
 
34232
      echo '# dummy' > "$dirpart/$file"
 
34233
    done
 
34234
  done
 
34235
}
 
34236
 ;;
 
34237
    "po-directories":C)
 
34238
    for ac_file in $CONFIG_FILES; do
 
34239
      # Support "outfile[:infile[:infile...]]"
 
34240
      case "$ac_file" in
 
34241
        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 
34242
      esac
 
34243
      # PO directories have a Makefile.in generated from Makefile.in.in.
 
34244
      case "$ac_file" in */Makefile.in)
 
34245
        # Adjust a relative srcdir.
 
34246
        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
 
34247
        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
 
34248
        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
 
34249
        # In autoconf-2.13 it is called $ac_given_srcdir.
 
34250
        # In autoconf-2.50 it is called $srcdir.
 
34251
        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
 
34252
        case "$ac_given_srcdir" in
 
34253
          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
 
34254
          /*) top_srcdir="$ac_given_srcdir" ;;
 
34255
          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
 
34256
        esac
 
34257
        # Treat a directory as a PO directory if and only if it has a
 
34258
        # POTFILES.in file. This allows packages to have multiple PO
 
34259
        # directories under different names or in different locations.
 
34260
        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
 
34261
          rm -f "$ac_dir/POTFILES"
 
34262
          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
 
34263
          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
 
34264
          POMAKEFILEDEPS="POTFILES.in"
 
34265
          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
 
34266
          # on $ac_dir but don't depend on user-specified configuration
 
34267
          # parameters.
 
34268
          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
 
34269
            # The LINGUAS file contains the set of available languages.
 
34270
            if test -n "$OBSOLETE_ALL_LINGUAS"; then
 
34271
              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
 
34272
            fi
 
34273
            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
 
34274
            # Hide the ALL_LINGUAS assigment from automake < 1.5.
 
34275
            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
 
34276
            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
 
34277
          else
 
34278
            # The set of available languages was given in configure.in.
 
34279
            # Hide the ALL_LINGUAS assigment from automake < 1.5.
 
34280
            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
 
34281
          fi
 
34282
          # Compute POFILES
 
34283
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
 
34284
          # Compute UPDATEPOFILES
 
34285
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
 
34286
          # Compute DUMMYPOFILES
 
34287
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
 
34288
          # Compute GMOFILES
 
34289
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
 
34290
          case "$ac_given_srcdir" in
 
34291
            .) srcdirpre= ;;
 
34292
            *) srcdirpre='$(srcdir)/' ;;
 
34293
          esac
 
34294
          POFILES=
 
34295
          UPDATEPOFILES=
 
34296
          DUMMYPOFILES=
 
34297
          GMOFILES=
 
34298
          for lang in $ALL_LINGUAS; do
 
34299
            POFILES="$POFILES $srcdirpre$lang.po"
 
34300
            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
 
34301
            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
 
34302
            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
 
34303
          done
 
34304
          # CATALOGS depends on both $ac_dir and the user's LINGUAS
 
34305
          # environment variable.
 
34306
          INST_LINGUAS=
 
34307
          if test -n "$ALL_LINGUAS"; then
 
34308
            for presentlang in $ALL_LINGUAS; do
 
34309
              useit=no
 
34310
              if test "%UNSET%" != "$LINGUAS"; then
 
34311
                desiredlanguages="$LINGUAS"
 
34312
              else
 
34313
                desiredlanguages="$ALL_LINGUAS"
 
34314
              fi
 
34315
              for desiredlang in $desiredlanguages; do
 
34316
                # Use the presentlang catalog if desiredlang is
 
34317
                #   a. equal to presentlang, or
 
34318
                #   b. a variant of presentlang (because in this case,
 
34319
                #      presentlang can be used as a fallback for messages
 
34320
                #      which are not translated in the desiredlang catalog).
 
34321
                case "$desiredlang" in
 
34322
                  "$presentlang"*) useit=yes;;
 
34323
                esac
 
34324
              done
 
34325
              if test $useit = yes; then
 
34326
                INST_LINGUAS="$INST_LINGUAS $presentlang"
 
34327
              fi
 
34328
            done
 
34329
          fi
 
34330
          CATALOGS=
 
34331
          if test -n "$INST_LINGUAS"; then
 
34332
            for lang in $INST_LINGUAS; do
 
34333
              CATALOGS="$CATALOGS $lang.gmo"
 
34334
            done
 
34335
          fi
 
34336
          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
 
34337
          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
 
34338
          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
 
34339
            if test -f "$f"; then
 
34340
              case "$f" in
 
34341
                *.orig | *.bak | *~) ;;
 
34342
                *) cat "$f" >> "$ac_dir/Makefile" ;;
 
34343
              esac
 
34344
            fi
 
34345
          done
 
34346
        fi
 
34347
        ;;
 
34348
      esac
 
34349
    done ;;
14059
34350
 
14060
34351
  esac
14061
34352
done # for ac_tag
14066
34357
chmod +x $CONFIG_STATUS
14067
34358
ac_clean_files=$ac_clean_files_save
14068
34359
 
 
34360
test $ac_write_fail = 0 ||
 
34361
  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
 
34362
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
 
34363
   { (exit 1); exit 1; }; }
 
34364
 
14069
34365
 
14070
34366
# configure is writing to config.log, and then calls config.status.
14071
34367
# config.status does its own redirection, appending to config.log.
14087
34383
  # would make configure fail if this is the last instruction.
14088
34384
  $ac_cs_success || { (exit 1); exit 1; }
14089
34385
fi
 
34386
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
34387
  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
34388
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 
34389
fi
14090
34390