~ubuntu-branches/ubuntu/quantal/gnutls26/quantal-security

« back to all changes in this revision

Viewing changes to .pc/16_unnecessarydep.diff/lib/configure

  • Committer: Package Import Robot
  • Author(s): Andreas Metzler
  • Date: 2011-10-01 15:28:13 UTC
  • mfrom: (12.1.20 sid)
  • Revision ID: package-import@ubuntu.com-20111001152813-yygm1c4cxonfxhzy
Tags: 2.12.11-1
* New upstream version.
  + Allow CA importing of 0 certificates to succeed. Closes: #640639
* Add libp11-kit-dev to libgnutls-dev dependencies. (see #643811)
* [20_guiledocstring.diff] guile: Fix docstring extraction with CPP 4.5+.

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.67 for libgnutls 2.10.5.
 
3
# Generated by GNU Autoconf 2.68 for libgnutls 2.12.11.
4
4
#
5
5
# Report bugs to <bug-gnutls@gnu.org>.
6
6
#
91
91
IFS=" ""        $as_nl"
92
92
 
93
93
# Find who we are.  Look in the path if we contain no directory separator.
 
94
as_myself=
94
95
case $0 in #((
95
96
  *[\\/]* ) as_myself=$0 ;;
96
97
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224
225
  # We cannot yet assume a decent shell, so we have to provide a
225
226
        # neutralization value for shells without unset; and this also
226
227
        # works around shells that cannot unset nonexistent variables.
 
228
        # Preserve -v and -x to the replacement shell.
227
229
        BASH_ENV=/dev/null
228
230
        ENV=/dev/null
229
231
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230
232
        export CONFIG_SHELL
231
 
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
233
        case $- in # ((((
 
234
          *v*x* | *x*v* ) as_opts=-vx ;;
 
235
          *v* ) as_opts=-v ;;
 
236
          *x* ) as_opts=-x ;;
 
237
          * ) as_opts= ;;
 
238
        esac
 
239
        exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232
240
fi
233
241
 
234
242
    if test x$as_have_required = xno; then :
562
570
# Identity of this package.
563
571
PACKAGE_NAME='libgnutls'
564
572
PACKAGE_TARNAME='libgnutls'
565
 
PACKAGE_VERSION='2.10.5'
566
 
PACKAGE_STRING='libgnutls 2.10.5'
 
573
PACKAGE_VERSION='2.12.11'
 
574
PACKAGE_STRING='libgnutls 2.12.11'
567
575
PACKAGE_BUGREPORT='bug-gnutls@gnu.org'
568
576
PACKAGE_URL=''
569
577
 
628
636
WERROR_CFLAGS
629
637
LIBGNUTLS_CFLAGS
630
638
LIBGNUTLS_LIBS
 
639
LIBPTHREAD_PREFIX
 
640
LTLIBPTHREAD
 
641
LIBPTHREAD
 
642
HAVE_LIBPTHREAD
631
643
LIBTESTS_LIBDEPS
 
644
NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
 
645
NEXT_INTTYPES_H
 
646
UINT64_MAX_EQ_ULONG_MAX
 
647
UINT32_MAX_LT_UINTMAX_MAX
 
648
PRIPTR_PREFIX
 
649
PRI_MACROS_BROKEN
 
650
INT64_MAX_EQ_LONG_MAX
 
651
INT32_MAX_LT_INTMAX_MAX
 
652
HAVE_DECL_STRTOUMAX
 
653
HAVE_DECL_STRTOIMAX
 
654
HAVE_DECL_IMAXDIV
 
655
HAVE_DECL_IMAXABS
 
656
GNULIB_STRTOUMAX
 
657
GNULIB_STRTOIMAX
 
658
GNULIB_IMAXDIV
 
659
GNULIB_IMAXABS
 
660
NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
 
661
NEXT_FCNTL_H
 
662
REPLACE_OPENAT
 
663
REPLACE_OPEN
 
664
REPLACE_FCNTL
 
665
HAVE_OPENAT
 
666
HAVE_FCNTL
 
667
GNULIB_OPENAT
 
668
GNULIB_OPEN
 
669
GNULIB_NONBLOCKING
 
670
GNULIB_FCNTL
632
671
lgltests_WITNESS
633
672
HAVE_WINT_T
634
 
HAVE_WCHAR_H
635
673
NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
636
674
NEXT_WCHAR_H
 
675
REPLACE_WCSWIDTH
637
676
REPLACE_WCWIDTH
638
677
REPLACE_WCSNRTOMBS
639
678
REPLACE_WCSRTOMBS
648
687
REPLACE_MBSTATE_T
649
688
HAVE_DECL_WCWIDTH
650
689
HAVE_DECL_WCTOB
 
690
HAVE_WCSWIDTH
 
691
HAVE_WCSTOK
 
692
HAVE_WCSSTR
 
693
HAVE_WCSPBRK
 
694
HAVE_WCSSPN
 
695
HAVE_WCSCSPN
 
696
HAVE_WCSRCHR
 
697
HAVE_WCSCHR
 
698
HAVE_WCSDUP
 
699
HAVE_WCSXFRM
 
700
HAVE_WCSCOLL
 
701
HAVE_WCSNCASECMP
 
702
HAVE_WCSCASECMP
 
703
HAVE_WCSNCMP
 
704
HAVE_WCSCMP
 
705
HAVE_WCSNCAT
 
706
HAVE_WCSCAT
 
707
HAVE_WCPNCPY
 
708
HAVE_WCSNCPY
 
709
HAVE_WCPCPY
 
710
HAVE_WCSCPY
 
711
HAVE_WCSNLEN
 
712
HAVE_WCSLEN
 
713
HAVE_WMEMSET
 
714
HAVE_WMEMMOVE
 
715
HAVE_WMEMCPY
 
716
HAVE_WMEMCMP
 
717
HAVE_WMEMCHR
651
718
HAVE_WCSNRTOMBS
652
719
HAVE_WCSRTOMBS
653
720
HAVE_WCRTOMB
657
724
HAVE_MBRTOWC
658
725
HAVE_MBSINIT
659
726
HAVE_BTOWC
 
727
GNULIB_WCSWIDTH
 
728
GNULIB_WCSTOK
 
729
GNULIB_WCSSTR
 
730
GNULIB_WCSPBRK
 
731
GNULIB_WCSSPN
 
732
GNULIB_WCSCSPN
 
733
GNULIB_WCSRCHR
 
734
GNULIB_WCSCHR
 
735
GNULIB_WCSDUP
 
736
GNULIB_WCSXFRM
 
737
GNULIB_WCSCOLL
 
738
GNULIB_WCSNCASECMP
 
739
GNULIB_WCSCASECMP
 
740
GNULIB_WCSNCMP
 
741
GNULIB_WCSCMP
 
742
GNULIB_WCSNCAT
 
743
GNULIB_WCSCAT
 
744
GNULIB_WCPNCPY
 
745
GNULIB_WCSNCPY
 
746
GNULIB_WCPCPY
 
747
GNULIB_WCSCPY
 
748
GNULIB_WCSNLEN
 
749
GNULIB_WCSLEN
 
750
GNULIB_WMEMSET
 
751
GNULIB_WMEMMOVE
 
752
GNULIB_WMEMCPY
 
753
GNULIB_WMEMCMP
 
754
GNULIB_WMEMCHR
660
755
GNULIB_WCWIDTH
661
756
GNULIB_WCSNRTOMBS
662
757
GNULIB_WCSRTOMBS
668
763
GNULIB_MBSINIT
669
764
GNULIB_WCTOB
670
765
GNULIB_BTOWC
 
766
HAVE_FEATURES_H
671
767
HAVE_UNISTD_H
672
768
NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
673
769
NEXT_UNISTD_H
683
779
HAVE_TIMEGM
684
780
HAVE_STRPTIME
685
781
HAVE_NANOSLEEP
686
 
HAVE_LOCALTIME_R
 
782
HAVE_DECL_LOCALTIME_R
687
783
GNULIB_TIME_R
688
784
GNULIB_TIMEGM
689
785
GNULIB_STRPTIME
690
786
GNULIB_NANOSLEEP
691
787
GNULIB_MKTIME
 
788
HAVE_SYS_UIO_H
 
789
NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H
 
790
NEXT_SYS_UIO_H
692
791
NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
693
792
NEXT_SYS_STAT_H
694
793
REPLACE_UTIMENSAT
723
822
GNULIB_FUTIMENS
724
823
GNULIB_FSTATAT
725
824
GNULIB_FCHMODAT
 
825
HAVE_WS2TCPIP_H
 
826
HAVE_SYS_SOCKET_H
 
827
NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
 
828
NEXT_SYS_SOCKET_H
 
829
HAVE_ACCEPT4
 
830
HAVE_SA_FAMILY_T
 
831
HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
 
832
HAVE_STRUCT_SOCKADDR_STORAGE
 
833
GNULIB_ACCEPT4
 
834
GNULIB_SHUTDOWN
 
835
GNULIB_SETSOCKOPT
 
836
GNULIB_SENDTO
 
837
GNULIB_RECVFROM
 
838
GNULIB_SEND
 
839
GNULIB_RECV
 
840
GNULIB_LISTEN
 
841
GNULIB_GETSOCKOPT
 
842
GNULIB_GETSOCKNAME
 
843
GNULIB_GETPEERNAME
 
844
GNULIB_BIND
 
845
GNULIB_ACCEPT
 
846
GNULIB_CONNECT
 
847
GNULIB_SOCKET
726
848
NEXT_AS_FIRST_DIRECTIVE_STRINGS_H
727
849
NEXT_STRINGS_H
728
850
NEXT_AS_FIRST_DIRECTIVE_STRING_H
729
851
NEXT_STRING_H
730
852
HAVE_DECL_STRNCASECMP
731
853
HAVE_STRCASECMP
732
 
HAVE_RANDOM_H
 
854
HAVE_FFS
 
855
GNULIB_FFS
733
856
NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
734
857
NEXT_STDLIB_H
735
858
NEXT_AS_FIRST_DIRECTIVE_STDIO_H
736
859
NEXT_STDIO_H
737
 
ASM_SYMBOL_PREFIX
 
860
GL_GENERATE_STDINT_H_FALSE
 
861
GL_GENERATE_STDINT_H_TRUE
738
862
STDINT_H
739
863
WINT_T_SUFFIX
740
864
WCHAR_T_SUFFIX
756
880
NEXT_STDINT_H
757
881
HAVE_SYS_TYPES_H
758
882
HAVE_INTTYPES_H
 
883
HAVE_WCHAR_H
759
884
HAVE_UNSIGNED_LONG_LONG_INT
760
885
HAVE_LONG_LONG_INT
761
886
NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
762
887
NEXT_STDDEF_H
 
888
GL_GENERATE_STDDEF_H_FALSE
 
889
GL_GENERATE_STDDEF_H_TRUE
763
890
STDDEF_H
764
891
HAVE_WCHAR_T
765
892
REPLACE_NULL
766
893
HAVE__BOOL
 
894
GL_GENERATE_STDBOOL_H_FALSE
 
895
GL_GENERATE_STDBOOL_H_TRUE
767
896
STDBOOL_H
768
 
HAVE_WS2TCPIP_H
769
 
HAVE_SYS_SOCKET_H
770
 
NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
771
 
NEXT_SYS_SOCKET_H
772
 
HAVE_ACCEPT4
773
 
HAVE_SA_FAMILY_T
774
 
HAVE_STRUCT_SOCKADDR_STORAGE
775
 
GNULIB_ACCEPT4
776
 
GNULIB_SHUTDOWN
777
 
GNULIB_SETSOCKOPT
778
 
GNULIB_SENDTO
779
 
GNULIB_RECVFROM
780
 
GNULIB_SEND
781
 
GNULIB_RECV
782
 
GNULIB_LISTEN
783
 
GNULIB_GETSOCKOPT
784
 
GNULIB_GETSOCKNAME
785
 
GNULIB_GETPEERNAME
786
 
GNULIB_BIND
787
 
GNULIB_ACCEPT
788
 
GNULIB_CONNECT
789
 
GNULIB_SOCKET
790
897
LIBSOCKET
791
898
HAVE_WINSOCK2_H
792
 
REPLACE_UNSETENV
793
 
REPLACE_STRTOD
794
 
REPLACE_SETENV
795
 
REPLACE_REALPATH
796
 
REPLACE_PUTENV
797
 
REPLACE_MKSTEMP
798
 
REPLACE_CANONICALIZE_FILE_NAME
799
 
HAVE_UNSETENV
800
 
HAVE_UNLOCKPT
801
 
HAVE_SYS_LOADAVG_H
802
 
HAVE_STRUCT_RANDOM_DATA
803
 
HAVE_STRTOULL
804
 
HAVE_STRTOLL
805
 
HAVE_STRTOD
806
 
HAVE_SETENV
807
 
HAVE_RPMATCH
808
 
HAVE_REALPATH
809
 
HAVE_RANDOM_R
810
 
HAVE_PTSNAME
811
 
HAVE_MKSTEMPS
812
 
HAVE_MKSTEMP
813
 
HAVE_MKOSTEMPS
814
 
HAVE_MKOSTEMP
815
 
HAVE_MKDTEMP
816
 
HAVE_MALLOC_POSIX
817
 
HAVE_GRANTPT
818
 
HAVE_GETSUBOPT
819
 
HAVE_DECL_GETLOADAVG
820
 
HAVE_CANONICALIZE_FILE_NAME
821
 
HAVE_CALLOC_POSIX
822
 
HAVE_ATOLL
823
 
GNULIB_UNSETENV
824
 
GNULIB_UNLOCKPT
825
 
GNULIB_STRTOULL
826
 
GNULIB_STRTOLL
827
 
GNULIB_STRTOD
828
 
GNULIB_SETENV
829
 
GNULIB_RPMATCH
830
 
GNULIB_REALPATH
831
 
GNULIB_REALLOC_POSIX
832
 
GNULIB_RANDOM_R
833
 
GNULIB_PUTENV
834
 
GNULIB_PTSNAME
835
 
GNULIB_MKSTEMPS
836
 
GNULIB_MKSTEMP
837
 
GNULIB_MKOSTEMPS
838
 
GNULIB_MKOSTEMP
839
 
GNULIB_MKDTEMP
840
 
GNULIB_MALLOC_POSIX
841
 
GNULIB_GRANTPT
842
 
GNULIB_GETSUBOPT
843
 
GNULIB_GETLOADAVG
844
 
GNULIB_CANONICALIZE_FILE_NAME
845
 
GNULIB_CALLOC_POSIX
846
 
GNULIB_ATOLL
847
 
HAVE_REALLOC_POSIX
848
899
HAVE_NETDB_H
849
900
NEXT_AS_FIRST_DIRECTIVE_NETDB_H
850
901
NEXT_NETDB_H
 
902
REPLACE_GAI_STRERROR
851
903
HAVE_DECL_GETNAMEINFO
852
904
HAVE_DECL_GETADDRINFO
853
905
HAVE_DECL_GAI_STRERROR
861
913
REPLACE_STRNLEN
862
914
REPLACE_STRNDUP
863
915
REPLACE_STRNCAT
 
916
REPLACE_STRERROR_R
864
917
REPLACE_STRERROR
 
918
REPLACE_STRCHRNUL
865
919
REPLACE_STRCASESTR
866
920
REPLACE_STRSTR
867
921
REPLACE_STRDUP
870
924
REPLACE_MEMCHR
871
925
HAVE_STRVERSCMP
872
926
HAVE_DECL_STRSIGNAL
 
927
HAVE_DECL_STRERROR_R
873
928
HAVE_DECL_STRTOK_R
874
929
HAVE_STRCASESTR
875
930
HAVE_STRSEP
885
940
HAVE_MEMPCPY
886
941
HAVE_DECL_MEMMEM
887
942
HAVE_MEMCHR
 
943
HAVE_FFSLL
 
944
HAVE_FFSL
888
945
HAVE_MBSLEN
889
946
GNULIB_STRVERSCMP
890
947
GNULIB_STRSIGNAL
 
948
GNULIB_STRERROR_R
891
949
GNULIB_STRERROR
892
950
GNULIB_MBSTOK_R
893
951
GNULIB_MBSSEP
920
978
GNULIB_MEMPCPY
921
979
GNULIB_MEMMEM
922
980
GNULIB_MEMCHR
 
981
GNULIB_FFSLL
 
982
GNULIB_FFSL
 
983
REPLACE_WCTOMB
 
984
REPLACE_UNSETENV
 
985
REPLACE_STRTOD
 
986
REPLACE_SETENV
 
987
REPLACE_REALPATH
 
988
REPLACE_REALLOC
 
989
REPLACE_PUTENV
 
990
REPLACE_MKSTEMP
 
991
REPLACE_MBTOWC
 
992
REPLACE_MALLOC
 
993
REPLACE_CANONICALIZE_FILE_NAME
 
994
REPLACE_CALLOC
 
995
HAVE_DECL_UNSETENV
 
996
HAVE_UNLOCKPT
 
997
HAVE_SYS_LOADAVG_H
 
998
HAVE_STRUCT_RANDOM_DATA
 
999
HAVE_STRTOULL
 
1000
HAVE_STRTOLL
 
1001
HAVE_STRTOD
 
1002
HAVE_DECL_SETENV
 
1003
HAVE_SETENV
 
1004
HAVE_RPMATCH
 
1005
HAVE_REALPATH
 
1006
HAVE_RANDOM_R
 
1007
HAVE_RANDOM_H
 
1008
HAVE_PTSNAME
 
1009
HAVE_MKSTEMPS
 
1010
HAVE_MKSTEMP
 
1011
HAVE_MKOSTEMPS
 
1012
HAVE_MKOSTEMP
 
1013
HAVE_MKDTEMP
 
1014
HAVE_GRANTPT
 
1015
HAVE_GETSUBOPT
 
1016
HAVE_DECL_GETLOADAVG
 
1017
HAVE_CANONICALIZE_FILE_NAME
 
1018
HAVE_ATOLL
 
1019
HAVE__EXIT
 
1020
GNULIB_WCTOMB
 
1021
GNULIB_UNSETENV
 
1022
GNULIB_UNLOCKPT
 
1023
GNULIB_SYSTEM_POSIX
 
1024
GNULIB_STRTOULL
 
1025
GNULIB_STRTOLL
 
1026
GNULIB_STRTOD
 
1027
GNULIB_SETENV
 
1028
GNULIB_RPMATCH
 
1029
GNULIB_REALPATH
 
1030
GNULIB_REALLOC_POSIX
 
1031
GNULIB_RANDOM_R
 
1032
GNULIB_PUTENV
 
1033
GNULIB_PTSNAME
 
1034
GNULIB_MKSTEMPS
 
1035
GNULIB_MKSTEMP
 
1036
GNULIB_MKOSTEMPS
 
1037
GNULIB_MKOSTEMP
 
1038
GNULIB_MKDTEMP
 
1039
GNULIB_MBTOWC
 
1040
GNULIB_MALLOC_POSIX
 
1041
GNULIB_GRANTPT
 
1042
GNULIB_GETSUBOPT
 
1043
GNULIB_GETLOADAVG
 
1044
GNULIB_CANONICALIZE_FILE_NAME
 
1045
GNULIB_CALLOC_POSIX
 
1046
GNULIB_ATOLL
 
1047
GNULIB__EXIT
923
1048
UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
924
1049
UNISTD_H_HAVE_WINSOCK2_H
925
1050
REPLACE_WRITE
931
1056
REPLACE_SLEEP
932
1057
REPLACE_RMDIR
933
1058
REPLACE_READLINK
 
1059
REPLACE_READ
934
1060
REPLACE_PWRITE
935
1061
REPLACE_PREAD
936
1062
REPLACE_LSEEK
939
1065
REPLACE_LCHOWN
940
1066
REPLACE_GETPAGESIZE
941
1067
REPLACE_GETGROUPS
 
1068
REPLACE_GETLOGIN_R
 
1069
REPLACE_GETDOMAINNAME
942
1070
REPLACE_GETCWD
943
1071
REPLACE_FCHOWNAT
944
1072
REPLACE_DUP2
947
1075
REPLACE_CHOWN
948
1076
HAVE_SYS_PARAM_H
949
1077
HAVE_OS_H
 
1078
HAVE_DECL_TTYNAME_R
950
1079
HAVE_DECL_GETUSERSHELL
951
1080
HAVE_DECL_GETPAGESIZE
952
1081
HAVE_DECL_GETLOGIN_R
 
1082
HAVE_DECL_GETDOMAINNAME
 
1083
HAVE_DECL_FCHDIR
953
1084
HAVE_DECL_ENVIRON
954
1085
HAVE_USLEEP
955
1086
HAVE_UNLINKAT
956
 
HAVE_TTYNAME_R
957
1087
HAVE_SYMLINKAT
958
1088
HAVE_SYMLINK
959
1089
HAVE_SLEEP
962
1092
HAVE_PWRITE
963
1093
HAVE_PREAD
964
1094
HAVE_PIPE2
 
1095
HAVE_PIPE
965
1096
HAVE_LINKAT
966
1097
HAVE_LINK
967
1098
HAVE_LCHOWN
 
1099
HAVE_GROUP_MEMBER
968
1100
HAVE_GETPAGESIZE
969
1101
HAVE_GETLOGIN
970
1102
HAVE_GETHOSTNAME
971
1103
HAVE_GETGROUPS
972
1104
HAVE_GETDTABLESIZE
973
 
HAVE_GETDOMAINNAME
974
1105
HAVE_FTRUNCATE
975
1106
HAVE_FSYNC
976
1107
HAVE_FCHOWNAT
985
1116
GNULIB_UNLINKAT
986
1117
GNULIB_UNLINK
987
1118
GNULIB_UNISTD_H_SIGPIPE
 
1119
GNULIB_UNISTD_H_NONBLOCKING
988
1120
GNULIB_UNISTD_H_GETOPT
989
1121
GNULIB_TTYNAME_R
990
1122
GNULIB_SYMLINKAT
993
1125
GNULIB_RMDIR
994
1126
GNULIB_READLINKAT
995
1127
GNULIB_READLINK
 
1128
GNULIB_READ
996
1129
GNULIB_PWRITE
997
1130
GNULIB_PREAD
998
1131
GNULIB_PIPE2
 
1132
GNULIB_PIPE
999
1133
GNULIB_LSEEK
1000
1134
GNULIB_LINKAT
1001
1135
GNULIB_LINK
1002
1136
GNULIB_LCHOWN
 
1137
GNULIB_GROUP_MEMBER
1003
1138
GNULIB_GETUSERSHELL
1004
1139
GNULIB_GETPAGESIZE
1005
1140
GNULIB_GETLOGIN_R
1032
1167
REPLACE_VASPRINTF
1033
1168
REPLACE_TMPFILE
1034
1169
REPLACE_STDIO_WRITE_FUNCS
 
1170
REPLACE_STDIO_READ_FUNCS
1035
1171
REPLACE_SPRINTF
1036
1172
REPLACE_SNPRINTF
1037
1173
REPLACE_RENAMEAT
1065
1201
HAVE_DECL_OBSTACK_PRINTF
1066
1202
HAVE_DECL_GETLINE
1067
1203
HAVE_DECL_GETDELIM
 
1204
HAVE_DECL_FTELLO
 
1205
HAVE_DECL_FSEEKO
1068
1206
HAVE_DECL_FPURGE
1069
1207
GNULIB_VSPRINTF_POSIX
1070
1208
GNULIB_VSNPRINTF
1073
1211
GNULIB_VFPRINTF_POSIX
1074
1212
GNULIB_VFPRINTF
1075
1213
GNULIB_VDPRINTF
 
1214
GNULIB_VSCANF
 
1215
GNULIB_VFSCANF
1076
1216
GNULIB_VASPRINTF
1077
1217
GNULIB_TMPFILE
1078
1218
GNULIB_STDIO_H_SIGPIPE
 
1219
GNULIB_STDIO_H_NONBLOCKING
1079
1220
GNULIB_SPRINTF_POSIX
1080
1221
GNULIB_SNPRINTF
 
1222
GNULIB_SCANF
1081
1223
GNULIB_RENAMEAT
1082
1224
GNULIB_RENAME
1083
1225
GNULIB_REMOVE
1090
1232
GNULIB_PERROR
1091
1233
GNULIB_OBSTACK_PRINTF_POSIX
1092
1234
GNULIB_OBSTACK_PRINTF
 
1235
GNULIB_GETS
1093
1236
GNULIB_GETLINE
1094
1237
GNULIB_GETDELIM
 
1238
GNULIB_GETCHAR
 
1239
GNULIB_GETC
1095
1240
GNULIB_FWRITE
1096
1241
GNULIB_FTELLO
1097
1242
GNULIB_FTELL
1098
1243
GNULIB_FSEEKO
1099
1244
GNULIB_FSEEK
 
1245
GNULIB_FSCANF
1100
1246
GNULIB_FREOPEN
 
1247
GNULIB_FREAD
1101
1248
GNULIB_FPUTS
1102
1249
GNULIB_FPUTC
1103
1250
GNULIB_FPURGE
1104
1251
GNULIB_FPRINTF_POSIX
1105
1252
GNULIB_FPRINTF
1106
1253
GNULIB_FOPEN
 
1254
GNULIB_FGETS
 
1255
GNULIB_FGETC
1107
1256
GNULIB_FFLUSH
1108
1257
GNULIB_FCLOSE
1109
1258
GNULIB_DPRINTF
 
1259
GL_GENERATE_FLOAT_H_FALSE
 
1260
GL_GENERATE_FLOAT_H_TRUE
1110
1261
FLOAT_H
1111
1262
NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1112
1263
NEXT_FLOAT_H
1116
1267
ENOLINK_HIDDEN
1117
1268
EMULTIHOP_VALUE
1118
1269
EMULTIHOP_HIDDEN
 
1270
GL_GENERATE_ERRNO_H_FALSE
 
1271
GL_GENERATE_ERRNO_H_TRUE
1119
1272
ERRNO_H
1120
1273
NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1121
1274
NEXT_ERRNO_H
 
1275
PRAGMA_COLUMNS
1122
1276
PRAGMA_SYSTEM_HEADER
1123
1277
INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1124
1278
INCLUDE_NEXT
 
1279
GL_GENERATE_BYTESWAP_H_FALSE
 
1280
GL_GENERATE_BYTESWAP_H_TRUE
1125
1281
BYTESWAP_H
 
1282
GL_GENERATE_ALLOCA_H_FALSE
 
1283
GL_GENERATE_ALLOCA_H_TRUE
1126
1284
ALLOCA_H
1127
1285
ALLOCA
1128
1286
GL_COND_LIBTOOL_FALSE
1129
1287
GL_COND_LIBTOOL_TRUE
 
1288
P11_KIT_LIBS
 
1289
P11_KIT_CFLAGS
 
1290
ENABLE_PKCS11_FALSE
 
1291
ENABLE_PKCS11_TRUE
 
1292
GNUTLS_ZLIB_LIBS_PRIVATE
1130
1293
GNUTLS_REQUIRES_PRIVATE
 
1294
PKG_CONFIG_LIBDIR
 
1295
PKG_CONFIG_PATH
 
1296
PKG_CONFIG
1131
1297
LIBZ_PREFIX
1132
1298
LTLIBZ
1133
1299
LIBZ
1177
1343
LTLIBTASN1
1178
1344
LIBTASN1
1179
1345
HAVE_LIBTASN1
 
1346
ENABLE_NETTLE_FALSE
 
1347
ENABLE_NETTLE_TRUE
 
1348
NETTLE_LIBS
 
1349
LIBNETTLE_PREFIX
 
1350
LTLIBNETTLE
 
1351
LIBNETTLE
 
1352
HAVE_LIBNETTLE
1180
1353
LIBGCRYPT_PREFIX
1181
1354
LTLIBGCRYPT
1182
1355
LIBGCRYPT
1183
1356
HAVE_LIBGCRYPT
1184
1357
DLL_VERSION
 
1358
CXX_LT_AGE
 
1359
CXX_LT_REVISION
 
1360
CXX_LT_CURRENT
 
1361
LT_SSL_AGE
 
1362
LT_SSL_REVISION
 
1363
LT_SSL_CURRENT
1185
1364
LT_AGE
1186
1365
LT_REVISION
1187
1366
LT_CURRENT
1190
1369
LIPO
1191
1370
NMEDIT
1192
1371
DSYMUTIL
1193
 
AR
 
1372
MANIFEST_TOOL
 
1373
ac_ct_AR
1194
1374
LN_S
1195
1375
NM
1196
1376
ac_ct_DUMPBIN
1202
1382
OBJDUMP
1203
1383
DLLTOOL
1204
1384
AS
1205
 
EGREP
1206
 
GREP
1207
 
CPP
1208
1385
host_os
1209
1386
host_vendor
1210
1387
host_cpu
1213
1390
build_vendor
1214
1391
build_cpu
1215
1392
build
 
1393
ARFLAGS
 
1394
AR
1216
1395
RANLIB
 
1396
EGREP
 
1397
GREP
 
1398
CPP
1217
1399
am__fastdepCC_FALSE
1218
1400
am__fastdepCC_TRUE
1219
1401
CCDEPMODE
1230
1412
LDFLAGS
1231
1413
CFLAGS
1232
1414
CC
 
1415
AM_BACKSLASH
 
1416
AM_DEFAULT_VERBOSITY
1233
1417
am__untar
1234
1418
am__tar
1235
1419
AMTAR
1294
1478
ac_subst_files=''
1295
1479
ac_user_opts='
1296
1480
enable_option_checking
 
1481
enable_silent_rules
1297
1482
enable_dependency_tracking
 
1483
enable_largefile
1298
1484
enable_shared
1299
1485
enable_static
1300
1486
with_pic
1301
1487
enable_fast_install
1302
1488
with_gnu_ld
 
1489
with_sysroot
1303
1490
enable_libtool_lock
 
1491
with_libgcrypt
1304
1492
enable_rpath
1305
1493
with_libgcrypt_prefix
 
1494
with_libnettle_prefix
1306
1495
with_included_libtasn1
1307
1496
with_libtasn1_prefix
1308
1497
with_lzo
1320
1509
with_libintl_prefix
1321
1510
with_zlib
1322
1511
with_libz_prefix
 
1512
with_p11_kit
1323
1513
enable_ld_version_script
 
1514
with_libpthread_prefix
1324
1515
'
1325
1516
      ac_precious_vars='build_alias
1326
1517
host_alias
1331
1522
LIBS
1332
1523
CPPFLAGS
1333
1524
CPP
 
1525
PKG_CONFIG
 
1526
PKG_CONFIG_PATH
 
1527
PKG_CONFIG_LIBDIR
 
1528
P11_KIT_CFLAGS
 
1529
P11_KIT_LIBS
1334
1530
CXX
1335
1531
CXXFLAGS
1336
1532
CCC
1739
1935
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1740
1936
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1741
1937
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1742
 
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1938
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1743
1939
    ;;
1744
1940
 
1745
1941
  esac
1877
2073
  # Omit some internal or obsolete options to make the list less imposing.
1878
2074
  # This message is too long to be a string in the A/UX 3.1 sh.
1879
2075
  cat <<_ACEOF
1880
 
\`configure' configures libgnutls 2.10.5 to adapt to many kinds of systems.
 
2076
\`configure' configures libgnutls 2.12.11 to adapt to many kinds of systems.
1881
2077
 
1882
2078
Usage: $0 [OPTION]... [VAR=VALUE]...
1883
2079
 
1947
2143
 
1948
2144
if test -n "$ac_init_help"; then
1949
2145
  case $ac_init_help in
1950
 
     short | recursive ) echo "Configuration of libgnutls 2.10.5:";;
 
2146
     short | recursive ) echo "Configuration of libgnutls 2.12.11:";;
1951
2147
   esac
1952
2148
  cat <<\_ACEOF
1953
2149
 
1955
2151
  --disable-option-checking  ignore unrecognized --enable/--with options
1956
2152
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1957
2153
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
2154
  --enable-silent-rules          less verbose build output (undo: `make V=1')
 
2155
  --disable-silent-rules         verbose build output (undo: `make V=0')
1958
2156
  --disable-dependency-tracking  speeds up one-time build
1959
2157
  --enable-dependency-tracking   do not reject slow dependency extractors
 
2158
  --disable-largefile     omit support for large files
1960
2159
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1961
2160
  --enable-static[=PKGS]  build static libraries [default=yes]
1962
2161
  --enable-fast-install[=PKGS]
1989
2188
  --with-pic              try to use only PIC/non-PIC objects [default=use
1990
2189
                          both]
1991
2190
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
2191
  --with-sysroot=DIR Search for dependent libraries within DIR
 
2192
                        (or the compiler's sysroot if not specified).
 
2193
  --with-libgcrypt        use libgcrypt as crypto library
1992
2194
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1993
2195
  --with-libgcrypt-prefix[=DIR]  search for libgcrypt in DIR/include and DIR/lib
1994
2196
  --without-libgcrypt-prefix     don't search for libgcrypt in includedir and libdir
 
2197
  --with-libnettle-prefix[=DIR]  search for libnettle in DIR/include and DIR/lib
 
2198
  --without-libnettle-prefix     don't search for libnettle in includedir and libdir
1995
2199
  --with-included-libtasn1
1996
2200
                          use the included libtasn1
1997
2201
  --with-libtasn1-prefix[=DIR]  search for libtasn1 in DIR/include and DIR/lib
2004
2208
  --without-zlib          disable zlib compression support
2005
2209
  --with-libz-prefix[=DIR]  search for libz in DIR/include and DIR/lib
2006
2210
  --without-libz-prefix     don't search for libz in includedir and libdir
 
2211
  --without-p11-kit       Build without p11-kit and PKCS#11 support
 
2212
  --with-libpthread-prefix[=DIR]  search for libpthread in DIR/include and DIR/lib
 
2213
  --without-libpthread-prefix     don't search for libpthread in includedir and libdir
2007
2214
 
2008
2215
Some influential environment variables:
2009
2216
  CC          C compiler command
2014
2221
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2015
2222
              you have headers in a nonstandard directory <include dir>
2016
2223
  CPP         C preprocessor
 
2224
  PKG_CONFIG  path to pkg-config utility
 
2225
  PKG_CONFIG_PATH
 
2226
              directories to add to pkg-config's search path
 
2227
  PKG_CONFIG_LIBDIR
 
2228
              path overriding pkg-config's built-in search path
 
2229
  P11_KIT_CFLAGS
 
2230
              C compiler flags for P11_KIT, overriding pkg-config
 
2231
  P11_KIT_LIBS
 
2232
              linker flags for P11_KIT, overriding pkg-config
2017
2233
  CXX         C++ compiler command
2018
2234
  CXXFLAGS    C++ compiler flags
2019
2235
  CXXCPP      C++ preprocessor
2084
2300
test -n "$ac_init_help" && exit $ac_status
2085
2301
if $ac_init_version; then
2086
2302
  cat <<\_ACEOF
2087
 
libgnutls configure 2.10.5
2088
 
generated by GNU Autoconf 2.67
 
2303
libgnutls configure 2.12.11
 
2304
generated by GNU Autoconf 2.68
2089
2305
 
2090
2306
Copyright (C) 2010 Free Software Foundation, Inc.
2091
2307
This configure script is free software; the Free Software Foundation
2131
2347
 
2132
2348
        ac_retval=1
2133
2349
fi
2134
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2350
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2135
2351
  as_fn_set_status $ac_retval
2136
2352
 
2137
2353
} # ac_fn_c_try_compile
2168
2384
 
2169
2385
    ac_retval=1
2170
2386
fi
2171
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2387
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2172
2388
  as_fn_set_status $ac_retval
2173
2389
 
2174
2390
} # ac_fn_c_try_cpp
2181
2397
ac_fn_c_check_header_mongrel ()
2182
2398
{
2183
2399
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2184
 
  if eval "test \"\${$3+set}\"" = set; then :
 
2400
  if eval \${$3+:} false; then :
2185
2401
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2186
2402
$as_echo_n "checking for $2... " >&6; }
2187
 
if eval "test \"\${$3+set}\"" = set; then :
 
2403
if eval \${$3+:} false; then :
2188
2404
  $as_echo_n "(cached) " >&6
2189
2405
fi
2190
2406
eval ac_res=\$$3
2251
2467
esac
2252
2468
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2253
2469
$as_echo_n "checking for $2... " >&6; }
2254
 
if eval "test \"\${$3+set}\"" = set; then :
 
2470
if eval \${$3+:} false; then :
2255
2471
  $as_echo_n "(cached) " >&6
2256
2472
else
2257
2473
  eval "$3=\$ac_header_compiler"
2260
2476
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2261
2477
$as_echo "$ac_res" >&6; }
2262
2478
fi
2263
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2479
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2264
2480
 
2265
2481
} # ac_fn_c_check_header_mongrel
2266
2482
 
2301
2517
       ac_retval=$ac_status
2302
2518
fi
2303
2519
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2304
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2520
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2305
2521
  as_fn_set_status $ac_retval
2306
2522
 
2307
2523
} # ac_fn_c_try_run
2315
2531
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2316
2532
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2317
2533
$as_echo_n "checking for $2... " >&6; }
2318
 
if eval "test \"\${$3+set}\"" = set; then :
 
2534
if eval \${$3+:} false; then :
2319
2535
  $as_echo_n "(cached) " >&6
2320
2536
else
2321
2537
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2333
2549
eval ac_res=\$$3
2334
2550
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2335
2551
$as_echo "$ac_res" >&6; }
2336
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2552
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2337
2553
 
2338
2554
} # ac_fn_c_check_header_compile
2339
2555
 
2378
2594
  # interfere with the next link command; also delete a directory that is
2379
2595
  # left behind by Apple's compiler.  We do this before executing the actions.
2380
2596
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2381
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2597
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2382
2598
  as_fn_set_status $ac_retval
2383
2599
 
2384
2600
} # ac_fn_c_try_link
2391
2607
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2392
2608
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2393
2609
$as_echo_n "checking for $2... " >&6; }
2394
 
if eval "test \"\${$3+set}\"" = set; then :
 
2610
if eval \${$3+:} false; then :
2395
2611
  $as_echo_n "(cached) " >&6
2396
2612
else
2397
2613
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2446
2662
eval ac_res=\$$3
2447
2663
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2448
2664
$as_echo "$ac_res" >&6; }
2449
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2665
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2450
2666
 
2451
2667
} # ac_fn_c_check_func
2452
2668
 
2623
2839
rm -f conftest.val
2624
2840
 
2625
2841
  fi
2626
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2842
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2627
2843
  as_fn_set_status $ac_retval
2628
2844
 
2629
2845
} # ac_fn_c_compute_int
2637
2853
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2638
2854
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2639
2855
$as_echo_n "checking for $2... " >&6; }
2640
 
if eval "test \"\${$3+set}\"" = set; then :
 
2856
if eval \${$3+:} false; then :
2641
2857
  $as_echo_n "(cached) " >&6
2642
2858
else
2643
2859
  eval "$3=no"
2678
2894
eval ac_res=\$$3
2679
2895
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2680
2896
$as_echo "$ac_res" >&6; }
2681
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2897
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2682
2898
 
2683
2899
} # ac_fn_c_check_type
2684
2900
 
2693
2909
  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2694
2910
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2695
2911
$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2696
 
if eval "test \"\${$3+set}\"" = set; then :
 
2912
if eval \${$3+:} false; then :
2697
2913
  $as_echo_n "(cached) " >&6
2698
2914
else
2699
2915
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2724
2940
eval ac_res=\$$3
2725
2941
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2726
2942
$as_echo "$ac_res" >&6; }
2727
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2943
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2728
2944
 
2729
2945
} # ac_fn_c_check_decl
2730
2946
 
 
2947
# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
 
2948
# ----------------------------------------------------
 
2949
# Tries to find if the field MEMBER exists in type AGGR, after including
 
2950
# INCLUDES, setting cache variable VAR accordingly.
 
2951
ac_fn_c_check_member ()
 
2952
{
 
2953
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2954
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
 
2955
$as_echo_n "checking for $2.$3... " >&6; }
 
2956
if eval \${$4+:} false; then :
 
2957
  $as_echo_n "(cached) " >&6
 
2958
else
 
2959
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2960
/* end confdefs.h.  */
 
2961
$5
 
2962
int
 
2963
main ()
 
2964
{
 
2965
static $2 ac_aggr;
 
2966
if (ac_aggr.$3)
 
2967
return 0;
 
2968
  ;
 
2969
  return 0;
 
2970
}
 
2971
_ACEOF
 
2972
if ac_fn_c_try_compile "$LINENO"; then :
 
2973
  eval "$4=yes"
 
2974
else
 
2975
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2976
/* end confdefs.h.  */
 
2977
$5
 
2978
int
 
2979
main ()
 
2980
{
 
2981
static $2 ac_aggr;
 
2982
if (sizeof ac_aggr.$3)
 
2983
return 0;
 
2984
  ;
 
2985
  return 0;
 
2986
}
 
2987
_ACEOF
 
2988
if ac_fn_c_try_compile "$LINENO"; then :
 
2989
  eval "$4=yes"
 
2990
else
 
2991
  eval "$4=no"
 
2992
fi
 
2993
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2994
fi
 
2995
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2996
fi
 
2997
eval ac_res=\$$4
 
2998
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2999
$as_echo "$ac_res" >&6; }
 
3000
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
3001
 
 
3002
} # ac_fn_c_check_member
 
3003
 
2731
3004
# ac_fn_cxx_try_compile LINENO
2732
3005
# ----------------------------
2733
3006
# Try to compile conftest.$ac_ext, and return whether this succeeded.
2761
3034
 
2762
3035
        ac_retval=1
2763
3036
fi
2764
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
3037
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2765
3038
  as_fn_set_status $ac_retval
2766
3039
 
2767
3040
} # ac_fn_cxx_try_compile
2798
3071
 
2799
3072
    ac_retval=1
2800
3073
fi
2801
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
3074
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2802
3075
  as_fn_set_status $ac_retval
2803
3076
 
2804
3077
} # ac_fn_cxx_try_cpp
2844
3117
  # interfere with the next link command; also delete a directory that is
2845
3118
  # left behind by Apple's compiler.  We do this before executing the actions.
2846
3119
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2847
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
3120
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2848
3121
  as_fn_set_status $ac_retval
2849
3122
 
2850
3123
} # ac_fn_cxx_try_link
2852
3125
This file contains any messages produced by compilers while
2853
3126
running configure, to aid debugging if configure makes a mistake.
2854
3127
 
2855
 
It was created by libgnutls $as_me 2.10.5, which was
2856
 
generated by GNU Autoconf 2.67.  Invocation command line was
 
3128
It was created by libgnutls $as_me 2.12.11, which was
 
3129
generated by GNU Autoconf 2.68.  Invocation command line was
2857
3130
 
2858
3131
  $ $0 $@
2859
3132
 
3111
3384
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3112
3385
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3113
3386
as_fn_error $? "failed to load site script $ac_site_file
3114
 
See \`config.log' for more details" "$LINENO" 5 ; }
 
3387
See \`config.log' for more details" "$LINENO" 5; }
3115
3388
  fi
3116
3389
done
3117
3390
 
3133
3406
fi
3134
3407
 
3135
3408
gt_needs="$gt_needs "
3136
 
as_fn_append ac_header_list " errno.h"
3137
 
as_fn_append ac_header_list " float.h"
3138
3409
as_fn_append ac_header_list " sys/mman.h"
3139
3410
as_fn_append ac_func_list " mprotect"
3140
 
as_fn_append ac_func_list " memchr"
3141
3411
as_fn_append ac_header_list " netdb.h"
3142
3412
as_fn_append ac_header_list " sys/socket.h"
3143
 
as_fn_append ac_header_list " stddef.h"
 
3413
as_fn_append ac_header_list " wchar.h"
3144
3414
as_fn_append ac_header_list " stdint.h"
3145
 
as_fn_append ac_header_list " wchar.h"
3146
 
as_fn_append ac_header_list " stdio.h"
3147
 
as_fn_append ac_header_list " stdlib.h"
3148
 
as_fn_append ac_header_list " string.h"
3149
3415
as_fn_append ac_header_list " strings.h"
3150
3416
as_fn_append ac_header_list " sys/stat.h"
3151
 
as_fn_append ac_header_list " time.h"
 
3417
as_fn_append ac_header_list " sys/uio.h"
3152
3418
as_fn_append ac_header_list " sys/time.h"
3153
3419
as_fn_append ac_func_list " localtime_r"
3154
3420
as_fn_append ac_header_list " unistd.h"
3155
3421
as_fn_append ac_func_list " vasnprintf"
 
3422
as_fn_append ac_header_list " features.h"
 
3423
as_fn_append ac_header_list " inttypes.h"
3156
3424
as_fn_append ac_func_list " shutdown"
3157
3425
# Check that the precious variables saved in the cache have kept the same
3158
3426
# value.
3272
3540
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3273
3541
$as_echo_n "checking for a BSD-compatible install... " >&6; }
3274
3542
if test -z "$INSTALL"; then
3275
 
if test "${ac_cv_path_install+set}" = set; then :
 
3543
if ${ac_cv_path_install+:} false; then :
3276
3544
  $as_echo_n "(cached) " >&6
3277
3545
else
3278
3546
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359
3627
'
3360
3628
case `pwd` in
3361
3629
  *[\\\"\#\$\&\'\`$am_lf]*)
3362
 
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
 
3630
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3363
3631
esac
3364
3632
case $srcdir in
3365
3633
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3366
 
    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
 
3634
    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3367
3635
esac
3368
3636
 
3369
3637
# Do `set' in a subshell so we don't clobber the current shell's
3449
3717
set dummy ${ac_tool_prefix}strip; ac_word=$2
3450
3718
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3451
3719
$as_echo_n "checking for $ac_word... " >&6; }
3452
 
if test "${ac_cv_prog_STRIP+set}" = set; then :
 
3720
if ${ac_cv_prog_STRIP+:} false; then :
3453
3721
  $as_echo_n "(cached) " >&6
3454
3722
else
3455
3723
  if test -n "$STRIP"; then
3489
3757
set dummy strip; ac_word=$2
3490
3758
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3491
3759
$as_echo_n "checking for $ac_word... " >&6; }
3492
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
 
3760
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3493
3761
  $as_echo_n "(cached) " >&6
3494
3762
else
3495
3763
  if test -n "$ac_ct_STRIP"; then
3542
3810
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3543
3811
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3544
3812
if test -z "$MKDIR_P"; then
3545
 
  if test "${ac_cv_path_mkdir+set}" = set; then :
 
3813
  if ${ac_cv_path_mkdir+:} false; then :
3546
3814
  $as_echo_n "(cached) " >&6
3547
3815
else
3548
3816
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594
3862
set dummy $ac_prog; ac_word=$2
3595
3863
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3596
3864
$as_echo_n "checking for $ac_word... " >&6; }
3597
 
if test "${ac_cv_prog_AWK+set}" = set; then :
 
3865
if ${ac_cv_prog_AWK+:} false; then :
3598
3866
  $as_echo_n "(cached) " >&6
3599
3867
else
3600
3868
  if test -n "$AWK"; then
3634
3902
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3635
3903
set x ${MAKE-make}
3636
3904
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3637
 
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
 
3905
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3638
3906
  $as_echo_n "(cached) " >&6
3639
3907
else
3640
3908
  cat >conftest.make <<\_ACEOF
3692
3960
 
3693
3961
# Define the identity of the package.
3694
3962
 PACKAGE='libgnutls'
3695
 
 VERSION='2.10.5'
 
3963
 VERSION='2.12.11'
3696
3964
 
3697
3965
 
3698
3966
cat >>confdefs.h <<_ACEOF
3732
4000
 
3733
4001
 
3734
4002
 
 
4003
# Check whether --enable-silent-rules was given.
 
4004
if test "${enable_silent_rules+set}" = set; then :
 
4005
  enableval=$enable_silent_rules;
 
4006
fi
 
4007
 
 
4008
case $enable_silent_rules in
 
4009
yes) AM_DEFAULT_VERBOSITY=0;;
 
4010
no)  AM_DEFAULT_VERBOSITY=1;;
 
4011
*)   AM_DEFAULT_VERBOSITY=0;;
 
4012
esac
 
4013
AM_BACKSLASH='\'
 
4014
 
3735
4015
ac_config_headers="$ac_config_headers config.h"
3736
4016
 
3737
4017
 
3745
4025
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3746
4026
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3747
4027
$as_echo_n "checking for $ac_word... " >&6; }
3748
 
if test "${ac_cv_prog_CC+set}" = set; then :
 
4028
if ${ac_cv_prog_CC+:} false; then :
3749
4029
  $as_echo_n "(cached) " >&6
3750
4030
else
3751
4031
  if test -n "$CC"; then
3785
4065
set dummy gcc; ac_word=$2
3786
4066
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3787
4067
$as_echo_n "checking for $ac_word... " >&6; }
3788
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
4068
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3789
4069
  $as_echo_n "(cached) " >&6
3790
4070
else
3791
4071
  if test -n "$ac_ct_CC"; then
3838
4118
set dummy ${ac_tool_prefix}cc; ac_word=$2
3839
4119
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3840
4120
$as_echo_n "checking for $ac_word... " >&6; }
3841
 
if test "${ac_cv_prog_CC+set}" = set; then :
 
4121
if ${ac_cv_prog_CC+:} false; then :
3842
4122
  $as_echo_n "(cached) " >&6
3843
4123
else
3844
4124
  if test -n "$CC"; then
3878
4158
set dummy cc; ac_word=$2
3879
4159
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3880
4160
$as_echo_n "checking for $ac_word... " >&6; }
3881
 
if test "${ac_cv_prog_CC+set}" = set; then :
 
4161
if ${ac_cv_prog_CC+:} false; then :
3882
4162
  $as_echo_n "(cached) " >&6
3883
4163
else
3884
4164
  if test -n "$CC"; then
3937
4217
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3938
4218
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3939
4219
$as_echo_n "checking for $ac_word... " >&6; }
3940
 
if test "${ac_cv_prog_CC+set}" = set; then :
 
4220
if ${ac_cv_prog_CC+:} false; then :
3941
4221
  $as_echo_n "(cached) " >&6
3942
4222
else
3943
4223
  if test -n "$CC"; then
3981
4261
set dummy $ac_prog; ac_word=$2
3982
4262
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3983
4263
$as_echo_n "checking for $ac_word... " >&6; }
3984
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
4264
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3985
4265
  $as_echo_n "(cached) " >&6
3986
4266
else
3987
4267
  if test -n "$ac_ct_CC"; then
4036
4316
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4037
4317
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4038
4318
as_fn_error $? "no acceptable C compiler found in \$PATH
4039
 
See \`config.log' for more details" "$LINENO" 5 ; }
 
4319
See \`config.log' for more details" "$LINENO" 5; }
4040
4320
 
4041
4321
# Provide some information about the compiler.
4042
4322
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4151
4431
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4152
4432
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4153
4433
as_fn_error 77 "C compiler cannot create executables
4154
 
See \`config.log' for more details" "$LINENO" 5 ; }
 
4434
See \`config.log' for more details" "$LINENO" 5; }
4155
4435
else
4156
4436
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4157
4437
$as_echo "yes" >&6; }
4194
4474
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4195
4475
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4196
4476
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4197
 
See \`config.log' for more details" "$LINENO" 5 ; }
 
4477
See \`config.log' for more details" "$LINENO" 5; }
4198
4478
fi
4199
4479
rm -f conftest conftest$ac_cv_exeext
4200
4480
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4253
4533
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4254
4534
as_fn_error $? "cannot run C compiled programs.
4255
4535
If you meant to cross compile, use \`--host'.
4256
 
See \`config.log' for more details" "$LINENO" 5 ; }
 
4536
See \`config.log' for more details" "$LINENO" 5; }
4257
4537
    fi
4258
4538
  fi
4259
4539
fi
4264
4544
ac_clean_files=$ac_clean_files_save
4265
4545
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4266
4546
$as_echo_n "checking for suffix of object files... " >&6; }
4267
 
if test "${ac_cv_objext+set}" = set; then :
 
4547
if ${ac_cv_objext+:} false; then :
4268
4548
  $as_echo_n "(cached) " >&6
4269
4549
else
4270
4550
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4305
4585
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4306
4586
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4307
4587
as_fn_error $? "cannot compute suffix of object files: cannot compile
4308
 
See \`config.log' for more details" "$LINENO" 5 ; }
 
4588
See \`config.log' for more details" "$LINENO" 5; }
4309
4589
fi
4310
4590
rm -f conftest.$ac_cv_objext conftest.$ac_ext
4311
4591
fi
4315
4595
ac_objext=$OBJEXT
4316
4596
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4317
4597
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4318
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
 
4598
if ${ac_cv_c_compiler_gnu+:} false; then :
4319
4599
  $as_echo_n "(cached) " >&6
4320
4600
else
4321
4601
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352
4632
ac_save_CFLAGS=$CFLAGS
4353
4633
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4354
4634
$as_echo_n "checking whether $CC accepts -g... " >&6; }
4355
 
if test "${ac_cv_prog_cc_g+set}" = set; then :
 
4635
if ${ac_cv_prog_cc_g+:} false; then :
4356
4636
  $as_echo_n "(cached) " >&6
4357
4637
else
4358
4638
  ac_save_c_werror_flag=$ac_c_werror_flag
4430
4710
fi
4431
4711
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4432
4712
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4433
 
if test "${ac_cv_prog_cc_c89+set}" = set; then :
 
4713
if ${ac_cv_prog_cc_c89+:} false; then :
4434
4714
  $as_echo_n "(cached) " >&6
4435
4715
else
4436
4716
  ac_cv_prog_cc_c89=no
4591
4871
 
4592
4872
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4593
4873
$as_echo_n "checking dependency style of $depcc... " >&6; }
4594
 
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
 
4874
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4595
4875
  $as_echo_n "(cached) " >&6
4596
4876
else
4597
4877
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4714
4994
fi
4715
4995
 
4716
4996
 
4717
 
if test -n "$ac_tool_prefix"; then
4718
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4719
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4720
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4721
 
$as_echo_n "checking for $ac_word... " >&6; }
4722
 
if test "${ac_cv_prog_RANLIB+set}" = set; then :
4723
 
  $as_echo_n "(cached) " >&6
4724
 
else
4725
 
  if test -n "$RANLIB"; then
4726
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4727
 
else
4728
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4729
 
for as_dir in $PATH
4730
 
do
4731
 
  IFS=$as_save_IFS
4732
 
  test -z "$as_dir" && as_dir=.
4733
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4734
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4735
 
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4736
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4737
 
    break 2
4738
 
  fi
4739
 
done
4740
 
  done
4741
 
IFS=$as_save_IFS
4742
 
 
4743
 
fi
4744
 
fi
4745
 
RANLIB=$ac_cv_prog_RANLIB
4746
 
if test -n "$RANLIB"; then
4747
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4748
 
$as_echo "$RANLIB" >&6; }
4749
 
else
4750
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4751
 
$as_echo "no" >&6; }
4752
 
fi
4753
 
 
4754
 
 
4755
 
fi
4756
 
if test -z "$ac_cv_prog_RANLIB"; then
4757
 
  ac_ct_RANLIB=$RANLIB
4758
 
  # Extract the first word of "ranlib", so it can be a program name with args.
4759
 
set dummy ranlib; ac_word=$2
4760
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4761
 
$as_echo_n "checking for $ac_word... " >&6; }
4762
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4763
 
  $as_echo_n "(cached) " >&6
4764
 
else
4765
 
  if test -n "$ac_ct_RANLIB"; then
4766
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4767
 
else
4768
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4769
 
for as_dir in $PATH
4770
 
do
4771
 
  IFS=$as_save_IFS
4772
 
  test -z "$as_dir" && as_dir=.
4773
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4774
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4775
 
    ac_cv_prog_ac_ct_RANLIB="ranlib"
4776
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4777
 
    break 2
4778
 
  fi
4779
 
done
4780
 
  done
4781
 
IFS=$as_save_IFS
4782
 
 
4783
 
fi
4784
 
fi
4785
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4786
 
if test -n "$ac_ct_RANLIB"; then
4787
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4788
 
$as_echo "$ac_ct_RANLIB" >&6; }
4789
 
else
4790
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4791
 
$as_echo "no" >&6; }
4792
 
fi
4793
 
 
4794
 
  if test "x$ac_ct_RANLIB" = x; then
4795
 
    RANLIB=":"
4796
 
  else
4797
 
    case $cross_compiling:$ac_tool_warned in
4798
 
yes:)
4799
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4800
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4801
 
ac_tool_warned=yes ;;
4802
 
esac
4803
 
    RANLIB=$ac_ct_RANLIB
4804
 
  fi
4805
 
else
4806
 
  RANLIB="$ac_cv_prog_RANLIB"
4807
 
fi
4808
 
 
4809
 
# Make sure we can run config.sub.
4810
 
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4811
 
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4812
 
 
4813
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4814
 
$as_echo_n "checking build system type... " >&6; }
4815
 
if test "${ac_cv_build+set}" = set; then :
4816
 
  $as_echo_n "(cached) " >&6
4817
 
else
4818
 
  ac_build_alias=$build_alias
4819
 
test "x$ac_build_alias" = x &&
4820
 
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4821
 
test "x$ac_build_alias" = x &&
4822
 
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4823
 
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4824
 
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4825
 
 
4826
 
fi
4827
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4828
 
$as_echo "$ac_cv_build" >&6; }
4829
 
case $ac_cv_build in
4830
 
*-*-*) ;;
4831
 
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
4832
 
esac
4833
 
build=$ac_cv_build
4834
 
ac_save_IFS=$IFS; IFS='-'
4835
 
set x $ac_cv_build
4836
 
shift
4837
 
build_cpu=$1
4838
 
build_vendor=$2
4839
 
shift; shift
4840
 
# Remember, the first character of IFS is used to create $*,
4841
 
# except with old shells:
4842
 
build_os=$*
4843
 
IFS=$ac_save_IFS
4844
 
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4845
 
 
4846
 
 
4847
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4848
 
$as_echo_n "checking host system type... " >&6; }
4849
 
if test "${ac_cv_host+set}" = set; then :
4850
 
  $as_echo_n "(cached) " >&6
4851
 
else
4852
 
  if test "x$host_alias" = x; then
4853
 
  ac_cv_host=$ac_cv_build
4854
 
else
4855
 
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4856
 
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4857
 
fi
4858
 
 
4859
 
fi
4860
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4861
 
$as_echo "$ac_cv_host" >&6; }
4862
 
case $ac_cv_host in
4863
 
*-*-*) ;;
4864
 
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
4865
 
esac
4866
 
host=$ac_cv_host
4867
 
ac_save_IFS=$IFS; IFS='-'
4868
 
set x $ac_cv_host
4869
 
shift
4870
 
host_cpu=$1
4871
 
host_vendor=$2
4872
 
shift; shift
4873
 
# Remember, the first character of IFS is used to create $*,
4874
 
# except with old shells:
4875
 
host_os=$*
4876
 
IFS=$ac_save_IFS
4877
 
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4878
 
 
4879
 
 
4880
4997
 
4881
4998
ac_ext=c
4882
4999
ac_cpp='$CPP $CPPFLAGS'
4890
5007
  CPP=
4891
5008
fi
4892
5009
if test -z "$CPP"; then
4893
 
  if test "${ac_cv_prog_CPP+set}" = set; then :
 
5010
  if ${ac_cv_prog_CPP+:} false; then :
4894
5011
  $as_echo_n "(cached) " >&6
4895
5012
else
4896
5013
      # Double quotes because CPP needs to be expanded
5006
5123
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5007
5124
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5008
5125
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5009
 
See \`config.log' for more details" "$LINENO" 5 ; }
 
5126
See \`config.log' for more details" "$LINENO" 5; }
5010
5127
fi
5011
5128
 
5012
5129
ac_ext=c
5018
5135
 
5019
5136
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5020
5137
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5021
 
if test "${ac_cv_path_GREP+set}" = set; then :
 
5138
if ${ac_cv_path_GREP+:} false; then :
5022
5139
  $as_echo_n "(cached) " >&6
5023
5140
else
5024
5141
  if test -z "$GREP"; then
5081
5198
 
5082
5199
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5083
5200
$as_echo_n "checking for egrep... " >&6; }
5084
 
if test "${ac_cv_path_EGREP+set}" = set; then :
 
5201
if ${ac_cv_path_EGREP+:} false; then :
5085
5202
  $as_echo_n "(cached) " >&6
5086
5203
else
5087
5204
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5146
5263
 EGREP="$ac_cv_path_EGREP"
5147
5264
 
5148
5265
 
 
5266
 
 
5267
 
 
5268
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5269
/* end confdefs.h.  */
 
5270
 
 
5271
#ifdef __ACK__
 
5272
Amsterdam
 
5273
#endif
 
5274
 
 
5275
_ACEOF
 
5276
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5277
  $EGREP "Amsterdam" >/dev/null 2>&1; then :
 
5278
  AR='cc -c.a'
 
5279
     ARFLAGS='-o'
 
5280
     RANLIB=':'
 
5281
 
 
5282
else
 
5283
       AR='ar'
 
5284
     ARFLAGS='cru'
 
5285
          if test -n "$ac_tool_prefix"; then
 
5286
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
5287
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
5288
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5289
$as_echo_n "checking for $ac_word... " >&6; }
 
5290
if ${ac_cv_prog_RANLIB+:} false; then :
 
5291
  $as_echo_n "(cached) " >&6
 
5292
else
 
5293
  if test -n "$RANLIB"; then
 
5294
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
5295
else
 
5296
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5297
for as_dir in $PATH
 
5298
do
 
5299
  IFS=$as_save_IFS
 
5300
  test -z "$as_dir" && as_dir=.
 
5301
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5302
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5303
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
5304
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5305
    break 2
 
5306
  fi
 
5307
done
 
5308
  done
 
5309
IFS=$as_save_IFS
 
5310
 
 
5311
fi
 
5312
fi
 
5313
RANLIB=$ac_cv_prog_RANLIB
 
5314
if test -n "$RANLIB"; then
 
5315
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 
5316
$as_echo "$RANLIB" >&6; }
 
5317
else
 
5318
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5319
$as_echo "no" >&6; }
 
5320
fi
 
5321
 
 
5322
 
 
5323
fi
 
5324
if test -z "$ac_cv_prog_RANLIB"; then
 
5325
  ac_ct_RANLIB=$RANLIB
 
5326
  # Extract the first word of "ranlib", so it can be a program name with args.
 
5327
set dummy ranlib; ac_word=$2
 
5328
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5329
$as_echo_n "checking for $ac_word... " >&6; }
 
5330
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
 
5331
  $as_echo_n "(cached) " >&6
 
5332
else
 
5333
  if test -n "$ac_ct_RANLIB"; then
 
5334
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
5335
else
 
5336
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5337
for as_dir in $PATH
 
5338
do
 
5339
  IFS=$as_save_IFS
 
5340
  test -z "$as_dir" && as_dir=.
 
5341
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5342
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5343
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
5344
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5345
    break 2
 
5346
  fi
 
5347
done
 
5348
  done
 
5349
IFS=$as_save_IFS
 
5350
 
 
5351
fi
 
5352
fi
 
5353
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
5354
if test -n "$ac_ct_RANLIB"; then
 
5355
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 
5356
$as_echo "$ac_ct_RANLIB" >&6; }
 
5357
else
 
5358
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5359
$as_echo "no" >&6; }
 
5360
fi
 
5361
 
 
5362
  if test "x$ac_ct_RANLIB" = x; then
 
5363
    RANLIB=":"
 
5364
  else
 
5365
    case $cross_compiling:$ac_tool_warned in
 
5366
yes:)
 
5367
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5368
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5369
ac_tool_warned=yes ;;
 
5370
esac
 
5371
    RANLIB=$ac_ct_RANLIB
 
5372
  fi
 
5373
else
 
5374
  RANLIB="$ac_cv_prog_RANLIB"
 
5375
fi
 
5376
 
 
5377
 
 
5378
fi
 
5379
rm -f conftest*
 
5380
 
 
5381
 
 
5382
 
 
5383
 
 
5384
# Make sure we can run config.sub.
 
5385
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
5386
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
 
5387
 
 
5388
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 
5389
$as_echo_n "checking build system type... " >&6; }
 
5390
if ${ac_cv_build+:} false; then :
 
5391
  $as_echo_n "(cached) " >&6
 
5392
else
 
5393
  ac_build_alias=$build_alias
 
5394
test "x$ac_build_alias" = x &&
 
5395
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
5396
test "x$ac_build_alias" = x &&
 
5397
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
 
5398
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
5399
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
 
5400
 
 
5401
fi
 
5402
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 
5403
$as_echo "$ac_cv_build" >&6; }
 
5404
case $ac_cv_build in
 
5405
*-*-*) ;;
 
5406
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
 
5407
esac
 
5408
build=$ac_cv_build
 
5409
ac_save_IFS=$IFS; IFS='-'
 
5410
set x $ac_cv_build
 
5411
shift
 
5412
build_cpu=$1
 
5413
build_vendor=$2
 
5414
shift; shift
 
5415
# Remember, the first character of IFS is used to create $*,
 
5416
# except with old shells:
 
5417
build_os=$*
 
5418
IFS=$ac_save_IFS
 
5419
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
5420
 
 
5421
 
 
5422
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 
5423
$as_echo_n "checking host system type... " >&6; }
 
5424
if ${ac_cv_host+:} false; then :
 
5425
  $as_echo_n "(cached) " >&6
 
5426
else
 
5427
  if test "x$host_alias" = x; then
 
5428
  ac_cv_host=$ac_cv_build
 
5429
else
 
5430
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
5431
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 
5432
fi
 
5433
 
 
5434
fi
 
5435
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 
5436
$as_echo "$ac_cv_host" >&6; }
 
5437
case $ac_cv_host in
 
5438
*-*-*) ;;
 
5439
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
 
5440
esac
 
5441
host=$ac_cv_host
 
5442
ac_save_IFS=$IFS; IFS='-'
 
5443
set x $ac_cv_host
 
5444
shift
 
5445
host_cpu=$1
 
5446
host_vendor=$2
 
5447
shift; shift
 
5448
# Remember, the first character of IFS is used to create $*,
 
5449
# except with old shells:
 
5450
host_os=$*
 
5451
IFS=$ac_save_IFS
 
5452
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
5453
 
 
5454
 
5149
5455
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5150
5456
$as_echo_n "checking for ANSI C header files... " >&6; }
5151
 
if test "${ac_cv_header_stdc+set}" = set; then :
 
5457
if ${ac_cv_header_stdc+:} false; then :
5152
5458
  $as_echo_n "(cached) " >&6
5153
5459
else
5154
5460
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5279
5585
 
5280
5586
 
5281
5587
  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5282
 
if test "x$ac_cv_header_minix_config_h" = x""yes; then :
 
5588
if test "x$ac_cv_header_minix_config_h" = xyes; then :
5283
5589
  MINIX=yes
5284
5590
else
5285
5591
  MINIX=
5309
5615
 
5310
5616
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5311
5617
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5312
 
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
 
5618
if ${ac_cv_safe_to_define___extensions__+:} false; then :
5313
5619
  $as_echo_n "(cached) " >&6
5314
5620
else
5315
5621
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5339
5645
 
5340
5646
  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5341
5647
 
 
5648
  $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
 
5649
 
5342
5650
  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5343
5651
 
5344
5652
  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5352
5660
 
5353
5661
 
5354
5662
 
 
5663
 
 
5664
 
 
5665
 
 
5666
  # IEEE behaviour is the default on all CPUs except Alpha and SH
 
5667
  # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
 
5668
  # and the GCC 4.1.2 manual).
 
5669
  case "$host_cpu" in
 
5670
    alpha*)
 
5671
      # On Alpha systems, a compiler option provides the behaviour.
 
5672
      # See the ieee(3) manual page, also available at
 
5673
      # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
 
5674
      if test -n "$GCC"; then
 
5675
        # GCC has the option -mieee.
 
5676
        CPPFLAGS="$CPPFLAGS -mieee"
 
5677
      else
 
5678
        # Compaq (ex-DEC) C has the option -ieee.
 
5679
        CPPFLAGS="$CPPFLAGS -ieee"
 
5680
      fi
 
5681
      ;;
 
5682
    sh*)
 
5683
      if test -n "$GCC"; then
 
5684
        # GCC has the option -mieee.
 
5685
        CPPFLAGS="$CPPFLAGS -mieee"
 
5686
      fi
 
5687
      ;;
 
5688
  esac
 
5689
 
5355
5690
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5356
5691
$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
5357
 
if test "${ac_cv_sys_largefile_source+set}" = set; then :
 
5692
if ${ac_cv_sys_largefile_source+:} false; then :
5358
5693
  $as_echo_n "(cached) " >&6
5359
5694
else
5360
5695
  while :; do
5420
5755
 
5421
5756
fi
5422
5757
 
 
5758
# Check whether --enable-largefile was given.
 
5759
if test "${enable_largefile+set}" = set; then :
 
5760
  enableval=$enable_largefile;
 
5761
fi
 
5762
 
 
5763
if test "$enable_largefile" != no; then
 
5764
 
 
5765
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
 
5766
$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
 
5767
if ${ac_cv_sys_largefile_CC+:} false; then :
 
5768
  $as_echo_n "(cached) " >&6
 
5769
else
 
5770
  ac_cv_sys_largefile_CC=no
 
5771
     if test "$GCC" != yes; then
 
5772
       ac_save_CC=$CC
 
5773
       while :; do
 
5774
         # IRIX 6.2 and later do not support large files by default,
 
5775
         # so use the C compiler's -n32 option if that helps.
 
5776
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5777
/* end confdefs.h.  */
 
5778
#include <sys/types.h>
 
5779
 /* Check that off_t can represent 2**63 - 1 correctly.
 
5780
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
5781
    since some C++ compilers masquerading as C compilers
 
5782
    incorrectly reject 9223372036854775807.  */
 
5783
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
5784
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
5785
                       && LARGE_OFF_T % 2147483647 == 1)
 
5786
                      ? 1 : -1];
 
5787
int
 
5788
main ()
 
5789
{
 
5790
 
 
5791
  ;
 
5792
  return 0;
 
5793
}
 
5794
_ACEOF
 
5795
         if ac_fn_c_try_compile "$LINENO"; then :
 
5796
  break
 
5797
fi
 
5798
rm -f core conftest.err conftest.$ac_objext
 
5799
         CC="$CC -n32"
 
5800
         if ac_fn_c_try_compile "$LINENO"; then :
 
5801
  ac_cv_sys_largefile_CC=' -n32'; break
 
5802
fi
 
5803
rm -f core conftest.err conftest.$ac_objext
 
5804
         break
 
5805
       done
 
5806
       CC=$ac_save_CC
 
5807
       rm -f conftest.$ac_ext
 
5808
    fi
 
5809
fi
 
5810
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
 
5811
$as_echo "$ac_cv_sys_largefile_CC" >&6; }
 
5812
  if test "$ac_cv_sys_largefile_CC" != no; then
 
5813
    CC=$CC$ac_cv_sys_largefile_CC
 
5814
  fi
 
5815
 
 
5816
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
 
5817
$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
 
5818
if ${ac_cv_sys_file_offset_bits+:} false; then :
 
5819
  $as_echo_n "(cached) " >&6
 
5820
else
 
5821
  while :; do
 
5822
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5823
/* end confdefs.h.  */
 
5824
#include <sys/types.h>
 
5825
 /* Check that off_t can represent 2**63 - 1 correctly.
 
5826
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
5827
    since some C++ compilers masquerading as C compilers
 
5828
    incorrectly reject 9223372036854775807.  */
 
5829
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
5830
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
5831
                       && LARGE_OFF_T % 2147483647 == 1)
 
5832
                      ? 1 : -1];
 
5833
int
 
5834
main ()
 
5835
{
 
5836
 
 
5837
  ;
 
5838
  return 0;
 
5839
}
 
5840
_ACEOF
 
5841
if ac_fn_c_try_compile "$LINENO"; then :
 
5842
  ac_cv_sys_file_offset_bits=no; break
 
5843
fi
 
5844
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5845
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5846
/* end confdefs.h.  */
 
5847
#define _FILE_OFFSET_BITS 64
 
5848
#include <sys/types.h>
 
5849
 /* Check that off_t can represent 2**63 - 1 correctly.
 
5850
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
5851
    since some C++ compilers masquerading as C compilers
 
5852
    incorrectly reject 9223372036854775807.  */
 
5853
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
5854
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
5855
                       && LARGE_OFF_T % 2147483647 == 1)
 
5856
                      ? 1 : -1];
 
5857
int
 
5858
main ()
 
5859
{
 
5860
 
 
5861
  ;
 
5862
  return 0;
 
5863
}
 
5864
_ACEOF
 
5865
if ac_fn_c_try_compile "$LINENO"; then :
 
5866
  ac_cv_sys_file_offset_bits=64; break
 
5867
fi
 
5868
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5869
  ac_cv_sys_file_offset_bits=unknown
 
5870
  break
 
5871
done
 
5872
fi
 
5873
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
 
5874
$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
 
5875
case $ac_cv_sys_file_offset_bits in #(
 
5876
  no | unknown) ;;
 
5877
  *)
 
5878
cat >>confdefs.h <<_ACEOF
 
5879
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
 
5880
_ACEOF
 
5881
;;
 
5882
esac
 
5883
rm -rf conftest*
 
5884
  if test $ac_cv_sys_file_offset_bits = unknown; then
 
5885
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
 
5886
$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
 
5887
if ${ac_cv_sys_large_files+:} false; then :
 
5888
  $as_echo_n "(cached) " >&6
 
5889
else
 
5890
  while :; do
 
5891
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5892
/* end confdefs.h.  */
 
5893
#include <sys/types.h>
 
5894
 /* Check that off_t can represent 2**63 - 1 correctly.
 
5895
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
5896
    since some C++ compilers masquerading as C compilers
 
5897
    incorrectly reject 9223372036854775807.  */
 
5898
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
5899
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
5900
                       && LARGE_OFF_T % 2147483647 == 1)
 
5901
                      ? 1 : -1];
 
5902
int
 
5903
main ()
 
5904
{
 
5905
 
 
5906
  ;
 
5907
  return 0;
 
5908
}
 
5909
_ACEOF
 
5910
if ac_fn_c_try_compile "$LINENO"; then :
 
5911
  ac_cv_sys_large_files=no; break
 
5912
fi
 
5913
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5914
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5915
/* end confdefs.h.  */
 
5916
#define _LARGE_FILES 1
 
5917
#include <sys/types.h>
 
5918
 /* Check that off_t can represent 2**63 - 1 correctly.
 
5919
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
5920
    since some C++ compilers masquerading as C compilers
 
5921
    incorrectly reject 9223372036854775807.  */
 
5922
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
5923
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
5924
                       && LARGE_OFF_T % 2147483647 == 1)
 
5925
                      ? 1 : -1];
 
5926
int
 
5927
main ()
 
5928
{
 
5929
 
 
5930
  ;
 
5931
  return 0;
 
5932
}
 
5933
_ACEOF
 
5934
if ac_fn_c_try_compile "$LINENO"; then :
 
5935
  ac_cv_sys_large_files=1; break
 
5936
fi
 
5937
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5938
  ac_cv_sys_large_files=unknown
 
5939
  break
 
5940
done
 
5941
fi
 
5942
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
 
5943
$as_echo "$ac_cv_sys_large_files" >&6; }
 
5944
case $ac_cv_sys_large_files in #(
 
5945
  no | unknown) ;;
 
5946
  *)
 
5947
cat >>confdefs.h <<_ACEOF
 
5948
#define _LARGE_FILES $ac_cv_sys_large_files
 
5949
_ACEOF
 
5950
;;
 
5951
esac
 
5952
rm -rf conftest*
 
5953
  fi
 
5954
 
 
5955
 
 
5956
fi
 
5957
 
5423
5958
 
5424
5959
 
5425
5960
  # Code from module alignof:
5426
5961
  # Code from module alloca-opt:
5427
5962
  # Code from module alloca-opt-tests:
5428
 
  # Code from module arg-nonnull:
 
5963
  # Code from module binary-io:
 
5964
  # Code from module binary-io-tests:
5429
5965
  # Code from module byteswap:
5430
5966
  # Code from module byteswap-tests:
5431
 
  # Code from module c++defs:
5432
5967
  # Code from module c-ctype:
5433
5968
  # Code from module c-ctype-tests:
5434
 
  # Code from module close-hook:
5435
5969
  # Code from module errno:
5436
5970
  # Code from module errno-tests:
5437
5971
  # Code from module extensions:
5438
5972
 
 
5973
  # Code from module fcntl-h:
 
5974
  # Code from module fcntl-h-tests:
 
5975
  # Code from module fd-hook:
5439
5976
  # Code from module float:
 
5977
  # Code from module float-tests:
 
5978
  # Code from module fpieee:
 
5979
 
 
5980
  # Code from module fpucw:
 
5981
  # Code from module fseek:
 
5982
  # Code from module fseek-tests:
5440
5983
  # Code from module fseeko:
5441
5984
 
5442
5985
  # Code from module fseeko-tests:
 
5986
  # Code from module ftell:
 
5987
  # Code from module ftell-tests:
 
5988
  # Code from module ftello:
 
5989
 
 
5990
  # Code from module ftello-tests:
5443
5991
  # Code from module func:
5444
5992
  # Code from module func-tests:
 
5993
  # Code from module getpagesize:
5445
5994
  # Code from module gettext:
5446
5995
  # Code from module gettext-h:
5447
5996
  # Code from module havelib:
5448
5997
  # Code from module include_next:
5449
5998
  # Code from module intprops:
 
5999
  # Code from module intprops-tests:
 
6000
  # Code from module inttypes:
 
6001
  # Code from module inttypes-incomplete:
 
6002
  # Code from module inttypes-tests:
 
6003
  # Code from module largefile:
 
6004
 
5450
6005
  # Code from module lib-msvc-compat:
5451
6006
  # Code from module lib-symbol-versions:
5452
6007
  # Code from module lseek:
 
6008
  # Code from module malloc-posix:
5453
6009
  # Code from module memchr:
5454
6010
  # Code from module memchr-tests:
5455
6011
  # Code from module memmem-simple:
5461
6017
  # Code from module read-file-tests:
5462
6018
  # Code from module realloc-posix:
5463
6019
  # Code from module size_max:
 
6020
  # Code from module snippet/_Noreturn:
 
6021
  # Code from module snippet/arg-nonnull:
 
6022
  # Code from module snippet/c++defs:
 
6023
  # Code from module snippet/warn-on-use:
5464
6024
  # Code from module snprintf:
5465
6025
  # Code from module snprintf-tests:
 
6026
  # Code from module socketlib:
5466
6027
  # Code from module sockets:
5467
6028
  # Code from module sockets-tests:
5468
6029
  # Code from module socklen:
5487
6048
  # Code from module sys_socket-tests:
5488
6049
  # Code from module sys_stat:
5489
6050
  # Code from module sys_stat-tests:
 
6051
  # Code from module sys_uio:
 
6052
  # Code from module sys_uio-tests:
5490
6053
  # Code from module time:
5491
6054
  # Code from module time-tests:
5492
6055
  # Code from module time_r:
5500
6063
  # Code from module verify-tests:
5501
6064
  # Code from module vsnprintf:
5502
6065
  # Code from module vsnprintf-tests:
5503
 
  # Code from module warn-on-use:
5504
6066
  # Code from module wchar:
5505
6067
  # Code from module wchar-tests:
5506
6068
  # Code from module xsize:
5515
6077
set dummy ${ac_tool_prefix}as; ac_word=$2
5516
6078
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5517
6079
$as_echo_n "checking for $ac_word... " >&6; }
5518
 
if test "${ac_cv_prog_AS+set}" = set; then :
 
6080
if ${ac_cv_prog_AS+:} false; then :
5519
6081
  $as_echo_n "(cached) " >&6
5520
6082
else
5521
6083
  if test -n "$AS"; then
5555
6117
set dummy as; ac_word=$2
5556
6118
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5557
6119
$as_echo_n "checking for $ac_word... " >&6; }
5558
 
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
 
6120
if ${ac_cv_prog_ac_ct_AS+:} false; then :
5559
6121
  $as_echo_n "(cached) " >&6
5560
6122
else
5561
6123
  if test -n "$ac_ct_AS"; then
5607
6169
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5608
6170
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5609
6171
$as_echo_n "checking for $ac_word... " >&6; }
5610
 
if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
 
6172
if ${ac_cv_prog_DLLTOOL+:} false; then :
5611
6173
  $as_echo_n "(cached) " >&6
5612
6174
else
5613
6175
  if test -n "$DLLTOOL"; then
5647
6209
set dummy dlltool; ac_word=$2
5648
6210
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5649
6211
$as_echo_n "checking for $ac_word... " >&6; }
5650
 
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
 
6212
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5651
6213
  $as_echo_n "(cached) " >&6
5652
6214
else
5653
6215
  if test -n "$ac_ct_DLLTOOL"; then
5699
6261
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5700
6262
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5701
6263
$as_echo_n "checking for $ac_word... " >&6; }
5702
 
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
 
6264
if ${ac_cv_prog_OBJDUMP+:} false; then :
5703
6265
  $as_echo_n "(cached) " >&6
5704
6266
else
5705
6267
  if test -n "$OBJDUMP"; then
5739
6301
set dummy objdump; ac_word=$2
5740
6302
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5741
6303
$as_echo_n "checking for $ac_word... " >&6; }
5742
 
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
 
6304
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5743
6305
  $as_echo_n "(cached) " >&6
5744
6306
else
5745
6307
  if test -n "$ac_ct_OBJDUMP"; then
5817
6379
 
5818
6380
 
5819
6381
 
5820
 
macro_version='2.2.10'
5821
 
macro_revision='1.3175'
 
6382
macro_version='2.4'
 
6383
macro_revision='1.3293'
5822
6384
 
5823
6385
 
5824
6386
 
5858
6420
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5859
6421
$as_echo_n "checking how to print strings... " >&6; }
5860
6422
# Test print first, because it will be a builtin if present.
5861
 
if test "X`print -r -- -n 2>/dev/null`" = X-n && \
 
6423
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5862
6424
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5863
6425
  ECHO='print -r --'
5864
6426
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5905
6467
 
5906
6468
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5907
6469
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5908
 
if test "${ac_cv_path_SED+set}" = set; then :
 
6470
if ${ac_cv_path_SED+:} false; then :
5909
6471
  $as_echo_n "(cached) " >&6
5910
6472
else
5911
6473
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5987
6549
 
5988
6550
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5989
6551
$as_echo_n "checking for fgrep... " >&6; }
5990
 
if test "${ac_cv_path_FGREP+set}" = set; then :
 
6552
if ${ac_cv_path_FGREP+:} false; then :
5991
6553
  $as_echo_n "(cached) " >&6
5992
6554
else
5993
6555
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6118
6680
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6119
6681
$as_echo_n "checking for non-GNU ld... " >&6; }
6120
6682
fi
6121
 
if test "${lt_cv_path_LD+set}" = set; then :
 
6683
if ${lt_cv_path_LD+:} false; then :
6122
6684
  $as_echo_n "(cached) " >&6
6123
6685
else
6124
6686
  if test -z "$LD"; then
6158
6720
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6159
6721
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6160
6722
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6161
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
 
6723
if ${lt_cv_prog_gnu_ld+:} false; then :
6162
6724
  $as_echo_n "(cached) " >&6
6163
6725
else
6164
6726
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6185
6747
 
6186
6748
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6187
6749
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6188
 
if test "${lt_cv_path_NM+set}" = set; then :
 
6750
if ${lt_cv_path_NM+:} false; then :
6189
6751
  $as_echo_n "(cached) " >&6
6190
6752
else
6191
6753
  if test -n "$NM"; then
6248
6810
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6249
6811
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6250
6812
$as_echo_n "checking for $ac_word... " >&6; }
6251
 
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
 
6813
if ${ac_cv_prog_DUMPBIN+:} false; then :
6252
6814
  $as_echo_n "(cached) " >&6
6253
6815
else
6254
6816
  if test -n "$DUMPBIN"; then
6292
6854
set dummy $ac_prog; ac_word=$2
6293
6855
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6294
6856
$as_echo_n "checking for $ac_word... " >&6; }
6295
 
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
 
6857
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6296
6858
  $as_echo_n "(cached) " >&6
6297
6859
else
6298
6860
  if test -n "$ac_ct_DUMPBIN"; then
6364
6926
 
6365
6927
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6366
6928
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6367
 
if test "${lt_cv_nm_interface+set}" = set; then :
 
6929
if ${lt_cv_nm_interface+:} false; then :
6368
6930
  $as_echo_n "(cached) " >&6
6369
6931
else
6370
6932
  lt_cv_nm_interface="BSD nm"
6399
6961
# find the maximum length of command line arguments
6400
6962
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6401
6963
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6402
 
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
 
6964
if ${lt_cv_sys_max_cmd_len+:} false; then :
6403
6965
  $as_echo_n "(cached) " >&6
6404
6966
else
6405
6967
    i=0
6544
7106
# Try some XSI features
6545
7107
xsi_shell=no
6546
7108
( _lt_dummy="a/b/c"
6547
 
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6548
 
      = c,a/b,, \
 
7109
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
 
7110
      = c,a/b,b/c, \
6549
7111
    && eval 'test $(( 1 + 1 )) -eq 2 \
6550
7112
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6551
7113
  && xsi_shell=yes
6594
7156
 
6595
7157
 
6596
7158
 
 
7159
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
 
7160
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
 
7161
if ${lt_cv_to_host_file_cmd+:} false; then :
 
7162
  $as_echo_n "(cached) " >&6
 
7163
else
 
7164
  case $host in
 
7165
  *-*-mingw* )
 
7166
    case $build in
 
7167
      *-*-mingw* ) # actually msys
 
7168
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
 
7169
        ;;
 
7170
      *-*-cygwin* )
 
7171
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
 
7172
        ;;
 
7173
      * ) # otherwise, assume *nix
 
7174
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
 
7175
        ;;
 
7176
    esac
 
7177
    ;;
 
7178
  *-*-cygwin* )
 
7179
    case $build in
 
7180
      *-*-mingw* ) # actually msys
 
7181
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
 
7182
        ;;
 
7183
      *-*-cygwin* )
 
7184
        lt_cv_to_host_file_cmd=func_convert_file_noop
 
7185
        ;;
 
7186
      * ) # otherwise, assume *nix
 
7187
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
 
7188
        ;;
 
7189
    esac
 
7190
    ;;
 
7191
  * ) # unhandled hosts (and "normal" native builds)
 
7192
    lt_cv_to_host_file_cmd=func_convert_file_noop
 
7193
    ;;
 
7194
esac
 
7195
 
 
7196
fi
 
7197
 
 
7198
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
7199
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
 
7200
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
 
7201
 
 
7202
 
 
7203
 
 
7204
 
 
7205
 
 
7206
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
 
7207
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
 
7208
if ${lt_cv_to_tool_file_cmd+:} false; then :
 
7209
  $as_echo_n "(cached) " >&6
 
7210
else
 
7211
  #assume ordinary cross tools, or native build.
 
7212
lt_cv_to_tool_file_cmd=func_convert_file_noop
 
7213
case $host in
 
7214
  *-*-mingw* )
 
7215
    case $build in
 
7216
      *-*-mingw* ) # actually msys
 
7217
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
 
7218
        ;;
 
7219
    esac
 
7220
    ;;
 
7221
esac
 
7222
 
 
7223
fi
 
7224
 
 
7225
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
7226
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
 
7227
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
 
7228
 
 
7229
 
 
7230
 
 
7231
 
 
7232
 
6597
7233
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6598
7234
$as_echo_n "checking for $LD option to reload object files... " >&6; }
6599
 
if test "${lt_cv_ld_reload_flag+set}" = set; then :
 
7235
if ${lt_cv_ld_reload_flag+:} false; then :
6600
7236
  $as_echo_n "(cached) " >&6
6601
7237
else
6602
7238
  lt_cv_ld_reload_flag='-r'
6610
7246
esac
6611
7247
reload_cmds='$LD$reload_flag -o $output$reload_objs'
6612
7248
case $host_os in
 
7249
  cygwin* | mingw* | pw32* | cegcc*)
 
7250
    if test "$GCC" != yes; then
 
7251
      reload_cmds=false
 
7252
    fi
 
7253
    ;;
6613
7254
  darwin*)
6614
7255
    if test "$GCC" = yes; then
6615
7256
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6632
7273
set dummy ${ac_tool_prefix}objdump; ac_word=$2
6633
7274
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6634
7275
$as_echo_n "checking for $ac_word... " >&6; }
6635
 
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
 
7276
if ${ac_cv_prog_OBJDUMP+:} false; then :
6636
7277
  $as_echo_n "(cached) " >&6
6637
7278
else
6638
7279
  if test -n "$OBJDUMP"; then
6672
7313
set dummy objdump; ac_word=$2
6673
7314
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6674
7315
$as_echo_n "checking for $ac_word... " >&6; }
6675
 
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
 
7316
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6676
7317
  $as_echo_n "(cached) " >&6
6677
7318
else
6678
7319
  if test -n "$ac_ct_OBJDUMP"; then
6728
7369
 
6729
7370
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6730
7371
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6731
 
if test "${lt_cv_deplibs_check_method+set}" = set; then :
 
7372
if ${lt_cv_deplibs_check_method+:} false; then :
6732
7373
  $as_echo_n "(cached) " >&6
6733
7374
else
6734
7375
  lt_cv_file_magic_cmd='$MAGIC_CMD'
6853
7494
  lt_cv_deplibs_check_method=pass_all
6854
7495
  ;;
6855
7496
 
6856
 
netbsd*)
 
7497
netbsd* | netbsdelf*-gnu)
6857
7498
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6858
7499
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6859
7500
  else
6930
7571
fi
6931
7572
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6932
7573
$as_echo "$lt_cv_deplibs_check_method" >&6; }
 
7574
 
 
7575
file_magic_glob=
 
7576
want_nocaseglob=no
 
7577
if test "$build" = "$host"; then
 
7578
  case $host_os in
 
7579
  mingw* | pw32*)
 
7580
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
 
7581
      want_nocaseglob=yes
 
7582
    else
 
7583
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
 
7584
    fi
 
7585
    ;;
 
7586
  esac
 
7587
fi
 
7588
 
6933
7589
file_magic_cmd=$lt_cv_file_magic_cmd
6934
7590
deplibs_check_method=$lt_cv_deplibs_check_method
6935
7591
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6945
7601
 
6946
7602
 
6947
7603
 
6948
 
if test -n "$ac_tool_prefix"; then
6949
 
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6950
 
set dummy ${ac_tool_prefix}ar; ac_word=$2
6951
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6952
 
$as_echo_n "checking for $ac_word... " >&6; }
6953
 
if test "${ac_cv_prog_AR+set}" = set; then :
 
7604
 
 
7605
 
 
7606
 
 
7607
 
 
7608
 
 
7609
 
 
7610
 
 
7611
 
 
7612
 
 
7613
 
 
7614
if test -n "$ac_tool_prefix"; then
 
7615
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 
7616
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 
7617
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7618
$as_echo_n "checking for $ac_word... " >&6; }
 
7619
if ${ac_cv_prog_DLLTOOL+:} false; then :
 
7620
  $as_echo_n "(cached) " >&6
 
7621
else
 
7622
  if test -n "$DLLTOOL"; then
 
7623
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 
7624
else
 
7625
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7626
for as_dir in $PATH
 
7627
do
 
7628
  IFS=$as_save_IFS
 
7629
  test -z "$as_dir" && as_dir=.
 
7630
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7631
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7632
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 
7633
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7634
    break 2
 
7635
  fi
 
7636
done
 
7637
  done
 
7638
IFS=$as_save_IFS
 
7639
 
 
7640
fi
 
7641
fi
 
7642
DLLTOOL=$ac_cv_prog_DLLTOOL
 
7643
if test -n "$DLLTOOL"; then
 
7644
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
 
7645
$as_echo "$DLLTOOL" >&6; }
 
7646
else
 
7647
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7648
$as_echo "no" >&6; }
 
7649
fi
 
7650
 
 
7651
 
 
7652
fi
 
7653
if test -z "$ac_cv_prog_DLLTOOL"; then
 
7654
  ac_ct_DLLTOOL=$DLLTOOL
 
7655
  # Extract the first word of "dlltool", so it can be a program name with args.
 
7656
set dummy dlltool; ac_word=$2
 
7657
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7658
$as_echo_n "checking for $ac_word... " >&6; }
 
7659
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
 
7660
  $as_echo_n "(cached) " >&6
 
7661
else
 
7662
  if test -n "$ac_ct_DLLTOOL"; then
 
7663
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 
7664
else
 
7665
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7666
for as_dir in $PATH
 
7667
do
 
7668
  IFS=$as_save_IFS
 
7669
  test -z "$as_dir" && as_dir=.
 
7670
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7671
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7672
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 
7673
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7674
    break 2
 
7675
  fi
 
7676
done
 
7677
  done
 
7678
IFS=$as_save_IFS
 
7679
 
 
7680
fi
 
7681
fi
 
7682
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 
7683
if test -n "$ac_ct_DLLTOOL"; then
 
7684
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
 
7685
$as_echo "$ac_ct_DLLTOOL" >&6; }
 
7686
else
 
7687
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7688
$as_echo "no" >&6; }
 
7689
fi
 
7690
 
 
7691
  if test "x$ac_ct_DLLTOOL" = x; then
 
7692
    DLLTOOL="false"
 
7693
  else
 
7694
    case $cross_compiling:$ac_tool_warned in
 
7695
yes:)
 
7696
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7697
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7698
ac_tool_warned=yes ;;
 
7699
esac
 
7700
    DLLTOOL=$ac_ct_DLLTOOL
 
7701
  fi
 
7702
else
 
7703
  DLLTOOL="$ac_cv_prog_DLLTOOL"
 
7704
fi
 
7705
 
 
7706
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
7707
 
 
7708
 
 
7709
 
 
7710
 
 
7711
 
 
7712
 
 
7713
 
 
7714
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
 
7715
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
 
7716
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
 
7717
  $as_echo_n "(cached) " >&6
 
7718
else
 
7719
  lt_cv_sharedlib_from_linklib_cmd='unknown'
 
7720
 
 
7721
case $host_os in
 
7722
cygwin* | mingw* | pw32* | cegcc*)
 
7723
  # two different shell functions defined in ltmain.sh
 
7724
  # decide which to use based on capabilities of $DLLTOOL
 
7725
  case `$DLLTOOL --help 2>&1` in
 
7726
  *--identify-strict*)
 
7727
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
 
7728
    ;;
 
7729
  *)
 
7730
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
 
7731
    ;;
 
7732
  esac
 
7733
  ;;
 
7734
*)
 
7735
  # fallback: assume linklib IS sharedlib
 
7736
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
 
7737
  ;;
 
7738
esac
 
7739
 
 
7740
fi
 
7741
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
 
7742
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
 
7743
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
 
7744
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
 
7745
 
 
7746
 
 
7747
 
 
7748
 
 
7749
 
 
7750
 
 
7751
 
 
7752
if test -n "$ac_tool_prefix"; then
 
7753
  for ac_prog in ar
 
7754
  do
 
7755
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
7756
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
7757
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7758
$as_echo_n "checking for $ac_word... " >&6; }
 
7759
if ${ac_cv_prog_AR+:} false; then :
6954
7760
  $as_echo_n "(cached) " >&6
6955
7761
else
6956
7762
  if test -n "$AR"; then
6963
7769
  test -z "$as_dir" && as_dir=.
6964
7770
    for ac_exec_ext in '' $ac_executable_extensions; do
6965
7771
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6966
 
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
7772
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6967
7773
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6968
7774
    break 2
6969
7775
  fi
6983
7789
fi
6984
7790
 
6985
7791
 
 
7792
    test -n "$AR" && break
 
7793
  done
6986
7794
fi
6987
 
if test -z "$ac_cv_prog_AR"; then
 
7795
if test -z "$AR"; then
6988
7796
  ac_ct_AR=$AR
6989
 
  # Extract the first word of "ar", so it can be a program name with args.
6990
 
set dummy ar; ac_word=$2
 
7797
  for ac_prog in ar
 
7798
do
 
7799
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
7800
set dummy $ac_prog; ac_word=$2
6991
7801
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6992
7802
$as_echo_n "checking for $ac_word... " >&6; }
6993
 
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
 
7803
if ${ac_cv_prog_ac_ct_AR+:} false; then :
6994
7804
  $as_echo_n "(cached) " >&6
6995
7805
else
6996
7806
  if test -n "$ac_ct_AR"; then
7003
7813
  test -z "$as_dir" && as_dir=.
7004
7814
    for ac_exec_ext in '' $ac_executable_extensions; do
7005
7815
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7006
 
    ac_cv_prog_ac_ct_AR="ar"
 
7816
    ac_cv_prog_ac_ct_AR="$ac_prog"
7007
7817
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7008
7818
    break 2
7009
7819
  fi
7022
7832
$as_echo "no" >&6; }
7023
7833
fi
7024
7834
 
 
7835
 
 
7836
  test -n "$ac_ct_AR" && break
 
7837
done
 
7838
 
7025
7839
  if test "x$ac_ct_AR" = x; then
7026
7840
    AR="false"
7027
7841
  else
7033
7847
esac
7034
7848
    AR=$ac_ct_AR
7035
7849
  fi
7036
 
else
7037
 
  AR="$ac_cv_prog_AR"
7038
 
fi
7039
 
 
7040
 
test -z "$AR" && AR=ar
7041
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
7042
 
 
7043
 
 
7044
 
 
7045
 
 
 
7850
fi
 
7851
 
 
7852
: ${AR=ar}
 
7853
: ${AR_FLAGS=cru}
 
7854
 
 
7855
 
 
7856
 
 
7857
 
 
7858
 
 
7859
 
 
7860
 
 
7861
 
 
7862
 
 
7863
 
 
7864
 
 
7865
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
 
7866
$as_echo_n "checking for archiver @FILE support... " >&6; }
 
7867
if ${lt_cv_ar_at_file+:} false; then :
 
7868
  $as_echo_n "(cached) " >&6
 
7869
else
 
7870
  lt_cv_ar_at_file=no
 
7871
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7872
/* end confdefs.h.  */
 
7873
 
 
7874
int
 
7875
main ()
 
7876
{
 
7877
 
 
7878
  ;
 
7879
  return 0;
 
7880
}
 
7881
_ACEOF
 
7882
if ac_fn_c_try_compile "$LINENO"; then :
 
7883
  echo conftest.$ac_objext > conftest.lst
 
7884
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
 
7885
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 
7886
  (eval $lt_ar_try) 2>&5
 
7887
  ac_status=$?
 
7888
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7889
  test $ac_status = 0; }
 
7890
      if test "$ac_status" -eq 0; then
 
7891
        # Ensure the archiver fails upon bogus file names.
 
7892
        rm -f conftest.$ac_objext libconftest.a
 
7893
        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 
7894
  (eval $lt_ar_try) 2>&5
 
7895
  ac_status=$?
 
7896
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7897
  test $ac_status = 0; }
 
7898
        if test "$ac_status" -ne 0; then
 
7899
          lt_cv_ar_at_file=@
 
7900
        fi
 
7901
      fi
 
7902
      rm -f conftest.* libconftest.a
 
7903
 
 
7904
fi
 
7905
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7906
 
 
7907
fi
 
7908
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
 
7909
$as_echo "$lt_cv_ar_at_file" >&6; }
 
7910
 
 
7911
if test "x$lt_cv_ar_at_file" = xno; then
 
7912
  archiver_list_spec=
 
7913
else
 
7914
  archiver_list_spec=$lt_cv_ar_at_file
 
7915
fi
7046
7916
 
7047
7917
 
7048
7918
 
7055
7925
set dummy ${ac_tool_prefix}strip; ac_word=$2
7056
7926
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7057
7927
$as_echo_n "checking for $ac_word... " >&6; }
7058
 
if test "${ac_cv_prog_STRIP+set}" = set; then :
 
7928
if ${ac_cv_prog_STRIP+:} false; then :
7059
7929
  $as_echo_n "(cached) " >&6
7060
7930
else
7061
7931
  if test -n "$STRIP"; then
7095
7965
set dummy strip; ac_word=$2
7096
7966
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7097
7967
$as_echo_n "checking for $ac_word... " >&6; }
7098
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
 
7968
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7099
7969
  $as_echo_n "(cached) " >&6
7100
7970
else
7101
7971
  if test -n "$ac_ct_STRIP"; then
7154
8024
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7155
8025
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7156
8026
$as_echo_n "checking for $ac_word... " >&6; }
7157
 
if test "${ac_cv_prog_RANLIB+set}" = set; then :
 
8027
if ${ac_cv_prog_RANLIB+:} false; then :
7158
8028
  $as_echo_n "(cached) " >&6
7159
8029
else
7160
8030
  if test -n "$RANLIB"; then
7194
8064
set dummy ranlib; ac_word=$2
7195
8065
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7196
8066
$as_echo_n "checking for $ac_word... " >&6; }
7197
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
 
8067
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7198
8068
  $as_echo_n "(cached) " >&6
7199
8069
else
7200
8070
  if test -n "$ac_ct_RANLIB"; then
7323
8193
# Check for command to grab the raw symbol name followed by C symbol from nm.
7324
8194
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7325
8195
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7326
 
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
 
8196
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7327
8197
  $as_echo_n "(cached) " >&6
7328
8198
else
7329
8199
 
7384
8254
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7385
8255
 
7386
8256
# Transform an extracted symbol line into symbol name and symbol address
7387
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7388
 
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
 
8257
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
8258
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
7389
8259
 
7390
8260
# Handle CRLF in mingw tool chain
7391
8261
opt_cr=
7421
8291
  else
7422
8292
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7423
8293
  fi
 
8294
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7424
8295
 
7425
8296
  # Check to see that the pipe works correctly.
7426
8297
  pipe_works=no
7462
8333
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7463
8334
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7464
8335
          cat <<_LT_EOF > conftest.$ac_ext
 
8336
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
 
8337
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
 
8338
/* DATA imports from DLLs on WIN32 con't be const, because runtime
 
8339
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
 
8340
# define LT_DLSYM_CONST
 
8341
#elif defined(__osf__)
 
8342
/* This system does not cope well with relocations in const data.  */
 
8343
# define LT_DLSYM_CONST
 
8344
#else
 
8345
# define LT_DLSYM_CONST const
 
8346
#endif
 
8347
 
7465
8348
#ifdef __cplusplus
7466
8349
extern "C" {
7467
8350
#endif
7473
8356
          cat <<_LT_EOF >> conftest.$ac_ext
7474
8357
 
7475
8358
/* The mapping between symbol names and symbols.  */
7476
 
const struct {
 
8359
LT_DLSYM_CONST struct {
7477
8360
  const char *name;
7478
8361
  void       *address;
7479
8362
}
7499
8382
_LT_EOF
7500
8383
          # Now try linking the two files.
7501
8384
          mv conftest.$ac_objext conftstm.$ac_objext
7502
 
          lt_save_LIBS="$LIBS"
7503
 
          lt_save_CFLAGS="$CFLAGS"
 
8385
          lt_globsym_save_LIBS=$LIBS
 
8386
          lt_globsym_save_CFLAGS=$CFLAGS
7504
8387
          LIBS="conftstm.$ac_objext"
7505
8388
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7506
8389
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7510
8393
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7511
8394
            pipe_works=yes
7512
8395
          fi
7513
 
          LIBS="$lt_save_LIBS"
7514
 
          CFLAGS="$lt_save_CFLAGS"
 
8396
          LIBS=$lt_globsym_save_LIBS
 
8397
          CFLAGS=$lt_globsym_save_CFLAGS
7515
8398
        else
7516
8399
          echo "cannot find nm_test_func in $nlist" >&5
7517
8400
        fi
7548
8431
$as_echo "ok" >&6; }
7549
8432
fi
7550
8433
 
7551
 
 
7552
 
 
7553
 
 
7554
 
 
7555
 
 
7556
 
 
7557
 
 
7558
 
 
7559
 
 
7560
 
 
7561
 
 
7562
 
 
7563
 
 
7564
 
 
7565
 
 
7566
 
 
 
8434
# Response file support.
 
8435
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
8436
  nm_file_list_spec='@'
 
8437
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
 
8438
  nm_file_list_spec='@'
 
8439
fi
 
8440
 
 
8441
 
 
8442
 
 
8443
 
 
8444
 
 
8445
 
 
8446
 
 
8447
 
 
8448
 
 
8449
 
 
8450
 
 
8451
 
 
8452
 
 
8453
 
 
8454
 
 
8455
 
 
8456
 
 
8457
 
 
8458
 
 
8459
 
 
8460
 
 
8461
 
 
8462
 
 
8463
 
 
8464
 
 
8465
 
 
8466
 
 
8467
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
 
8468
$as_echo_n "checking for sysroot... " >&6; }
 
8469
 
 
8470
# Check whether --with-sysroot was given.
 
8471
if test "${with_sysroot+set}" = set; then :
 
8472
  withval=$with_sysroot;
 
8473
else
 
8474
  with_sysroot=no
 
8475
fi
 
8476
 
 
8477
 
 
8478
lt_sysroot=
 
8479
case ${with_sysroot} in #(
 
8480
 yes)
 
8481
   if test "$GCC" = yes; then
 
8482
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
 
8483
   fi
 
8484
   ;; #(
 
8485
 /*)
 
8486
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
 
8487
   ;; #(
 
8488
 no|'')
 
8489
   ;; #(
 
8490
 *)
 
8491
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
 
8492
$as_echo "${with_sysroot}" >&6; }
 
8493
   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
 
8494
   ;;
 
8495
esac
 
8496
 
 
8497
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
 
8498
$as_echo "${lt_sysroot:-no}" >&6; }
7567
8499
 
7568
8500
 
7569
8501
 
7694
8626
  CFLAGS="$CFLAGS -belf"
7695
8627
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7696
8628
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7697
 
if test "${lt_cv_cc_needs_belf+set}" = set; then :
 
8629
if ${lt_cv_cc_needs_belf+:} false; then :
7698
8630
  $as_echo_n "(cached) " >&6
7699
8631
else
7700
8632
  ac_ext=c
7762
8694
 
7763
8695
need_locks="$enable_libtool_lock"
7764
8696
 
 
8697
if test -n "$ac_tool_prefix"; then
 
8698
  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
 
8699
set dummy ${ac_tool_prefix}mt; ac_word=$2
 
8700
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8701
$as_echo_n "checking for $ac_word... " >&6; }
 
8702
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
 
8703
  $as_echo_n "(cached) " >&6
 
8704
else
 
8705
  if test -n "$MANIFEST_TOOL"; then
 
8706
  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
 
8707
else
 
8708
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8709
for as_dir in $PATH
 
8710
do
 
8711
  IFS=$as_save_IFS
 
8712
  test -z "$as_dir" && as_dir=.
 
8713
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8714
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8715
    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
 
8716
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8717
    break 2
 
8718
  fi
 
8719
done
 
8720
  done
 
8721
IFS=$as_save_IFS
 
8722
 
 
8723
fi
 
8724
fi
 
8725
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
 
8726
if test -n "$MANIFEST_TOOL"; then
 
8727
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
 
8728
$as_echo "$MANIFEST_TOOL" >&6; }
 
8729
else
 
8730
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8731
$as_echo "no" >&6; }
 
8732
fi
 
8733
 
 
8734
 
 
8735
fi
 
8736
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
 
8737
  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
 
8738
  # Extract the first word of "mt", so it can be a program name with args.
 
8739
set dummy mt; ac_word=$2
 
8740
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8741
$as_echo_n "checking for $ac_word... " >&6; }
 
8742
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
 
8743
  $as_echo_n "(cached) " >&6
 
8744
else
 
8745
  if test -n "$ac_ct_MANIFEST_TOOL"; then
 
8746
  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
 
8747
else
 
8748
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8749
for as_dir in $PATH
 
8750
do
 
8751
  IFS=$as_save_IFS
 
8752
  test -z "$as_dir" && as_dir=.
 
8753
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8754
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8755
    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
 
8756
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8757
    break 2
 
8758
  fi
 
8759
done
 
8760
  done
 
8761
IFS=$as_save_IFS
 
8762
 
 
8763
fi
 
8764
fi
 
8765
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
 
8766
if test -n "$ac_ct_MANIFEST_TOOL"; then
 
8767
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
 
8768
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
 
8769
else
 
8770
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8771
$as_echo "no" >&6; }
 
8772
fi
 
8773
 
 
8774
  if test "x$ac_ct_MANIFEST_TOOL" = x; then
 
8775
    MANIFEST_TOOL=":"
 
8776
  else
 
8777
    case $cross_compiling:$ac_tool_warned in
 
8778
yes:)
 
8779
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
8780
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
8781
ac_tool_warned=yes ;;
 
8782
esac
 
8783
    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
 
8784
  fi
 
8785
else
 
8786
  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
 
8787
fi
 
8788
 
 
8789
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
 
8790
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
 
8791
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
 
8792
if ${lt_cv_path_mainfest_tool+:} false; then :
 
8793
  $as_echo_n "(cached) " >&6
 
8794
else
 
8795
  lt_cv_path_mainfest_tool=no
 
8796
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
 
8797
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
 
8798
  cat conftest.err >&5
 
8799
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
 
8800
    lt_cv_path_mainfest_tool=yes
 
8801
  fi
 
8802
  rm -f conftest*
 
8803
fi
 
8804
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
 
8805
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
 
8806
if test "x$lt_cv_path_mainfest_tool" != xyes; then
 
8807
  MANIFEST_TOOL=:
 
8808
fi
 
8809
 
 
8810
 
 
8811
 
 
8812
 
 
8813
 
7765
8814
 
7766
8815
  case $host_os in
7767
8816
    rhapsody* | darwin*)
7770
8819
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7771
8820
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7772
8821
$as_echo_n "checking for $ac_word... " >&6; }
7773
 
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
 
8822
if ${ac_cv_prog_DSYMUTIL+:} false; then :
7774
8823
  $as_echo_n "(cached) " >&6
7775
8824
else
7776
8825
  if test -n "$DSYMUTIL"; then
7810
8859
set dummy dsymutil; ac_word=$2
7811
8860
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7812
8861
$as_echo_n "checking for $ac_word... " >&6; }
7813
 
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
 
8862
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7814
8863
  $as_echo_n "(cached) " >&6
7815
8864
else
7816
8865
  if test -n "$ac_ct_DSYMUTIL"; then
7862
8911
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7863
8912
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7864
8913
$as_echo_n "checking for $ac_word... " >&6; }
7865
 
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
 
8914
if ${ac_cv_prog_NMEDIT+:} false; then :
7866
8915
  $as_echo_n "(cached) " >&6
7867
8916
else
7868
8917
  if test -n "$NMEDIT"; then
7902
8951
set dummy nmedit; ac_word=$2
7903
8952
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7904
8953
$as_echo_n "checking for $ac_word... " >&6; }
7905
 
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
 
8954
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7906
8955
  $as_echo_n "(cached) " >&6
7907
8956
else
7908
8957
  if test -n "$ac_ct_NMEDIT"; then
7954
9003
set dummy ${ac_tool_prefix}lipo; ac_word=$2
7955
9004
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7956
9005
$as_echo_n "checking for $ac_word... " >&6; }
7957
 
if test "${ac_cv_prog_LIPO+set}" = set; then :
 
9006
if ${ac_cv_prog_LIPO+:} false; then :
7958
9007
  $as_echo_n "(cached) " >&6
7959
9008
else
7960
9009
  if test -n "$LIPO"; then
7994
9043
set dummy lipo; ac_word=$2
7995
9044
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7996
9045
$as_echo_n "checking for $ac_word... " >&6; }
7997
 
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
 
9046
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7998
9047
  $as_echo_n "(cached) " >&6
7999
9048
else
8000
9049
  if test -n "$ac_ct_LIPO"; then
8046
9095
set dummy ${ac_tool_prefix}otool; ac_word=$2
8047
9096
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8048
9097
$as_echo_n "checking for $ac_word... " >&6; }
8049
 
if test "${ac_cv_prog_OTOOL+set}" = set; then :
 
9098
if ${ac_cv_prog_OTOOL+:} false; then :
8050
9099
  $as_echo_n "(cached) " >&6
8051
9100
else
8052
9101
  if test -n "$OTOOL"; then
8086
9135
set dummy otool; ac_word=$2
8087
9136
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8088
9137
$as_echo_n "checking for $ac_word... " >&6; }
8089
 
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
 
9138
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8090
9139
  $as_echo_n "(cached) " >&6
8091
9140
else
8092
9141
  if test -n "$ac_ct_OTOOL"; then
8138
9187
set dummy ${ac_tool_prefix}otool64; ac_word=$2
8139
9188
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8140
9189
$as_echo_n "checking for $ac_word... " >&6; }
8141
 
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
 
9190
if ${ac_cv_prog_OTOOL64+:} false; then :
8142
9191
  $as_echo_n "(cached) " >&6
8143
9192
else
8144
9193
  if test -n "$OTOOL64"; then
8178
9227
set dummy otool64; ac_word=$2
8179
9228
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8180
9229
$as_echo_n "checking for $ac_word... " >&6; }
8181
 
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
 
9230
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8182
9231
  $as_echo_n "(cached) " >&6
8183
9232
else
8184
9233
  if test -n "$ac_ct_OTOOL64"; then
8253
9302
 
8254
9303
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8255
9304
$as_echo_n "checking for -single_module linker flag... " >&6; }
8256
 
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
 
9305
if ${lt_cv_apple_cc_single_mod+:} false; then :
8257
9306
  $as_echo_n "(cached) " >&6
8258
9307
else
8259
9308
  lt_cv_apple_cc_single_mod=no
8282
9331
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8283
9332
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8284
9333
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8285
 
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
 
9334
if ${lt_cv_ld_exported_symbols_list+:} false; then :
8286
9335
  $as_echo_n "(cached) " >&6
8287
9336
else
8288
9337
  lt_cv_ld_exported_symbols_list=no
8314
9363
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8315
9364
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8316
9365
$as_echo_n "checking for -force_load linker flag... " >&6; }
8317
 
if test "${lt_cv_ld_force_load+set}" = set; then :
 
9366
if ${lt_cv_ld_force_load+:} false; then :
8318
9367
  $as_echo_n "(cached) " >&6
8319
9368
else
8320
9369
  lt_cv_ld_force_load=no
8383
9432
do :
8384
9433
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8385
9434
"
8386
 
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
 
9435
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8387
9436
  cat >>confdefs.h <<_ACEOF
8388
9437
#define HAVE_DLFCN_H 1
8389
9438
_ACEOF
8568
9617
 
8569
9618
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8570
9619
$as_echo_n "checking for objdir... " >&6; }
8571
 
if test "${lt_cv_objdir+set}" = set; then :
 
9620
if ${lt_cv_objdir+:} false; then :
8572
9621
  $as_echo_n "(cached) " >&6
8573
9622
else
8574
9623
  rm -f .libs 2>/dev/null
8646
9695
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8647
9696
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8648
9697
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8649
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
 
9698
if ${lt_cv_path_MAGIC_CMD+:} false; then :
8650
9699
  $as_echo_n "(cached) " >&6
8651
9700
else
8652
9701
  case $MAGIC_CMD in
8712
9761
  if test -n "$ac_tool_prefix"; then
8713
9762
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8714
9763
$as_echo_n "checking for file... " >&6; }
8715
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
 
9764
if ${lt_cv_path_MAGIC_CMD+:} false; then :
8716
9765
  $as_echo_n "(cached) " >&6
8717
9766
else
8718
9767
  case $MAGIC_CMD in
8854
9903
 
8855
9904
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8856
9905
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8857
 
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
 
9906
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8858
9907
  $as_echo_n "(cached) " >&6
8859
9908
else
8860
9909
  lt_cv_prog_compiler_rtti_exceptions=no
8907
9956
lt_prog_compiler_pic=
8908
9957
lt_prog_compiler_static=
8909
9958
 
8910
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8911
 
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8912
9959
 
8913
9960
  if test "$GCC" = yes; then
8914
9961
    lt_prog_compiler_wl='-Wl,'
9073
10120
        lt_prog_compiler_pic='--shared'
9074
10121
        lt_prog_compiler_static='--static'
9075
10122
        ;;
 
10123
      nagfor*)
 
10124
        # NAG Fortran compiler
 
10125
        lt_prog_compiler_wl='-Wl,-Wl,,'
 
10126
        lt_prog_compiler_pic='-PIC'
 
10127
        lt_prog_compiler_static='-Bstatic'
 
10128
        ;;
9076
10129
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9077
10130
        # Portland Group compilers (*not* the Pentium gcc compiler,
9078
10131
        # which looks to be a dead project)
9192
10245
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9193
10246
    ;;
9194
10247
esac
9195
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9196
 
$as_echo "$lt_prog_compiler_pic" >&6; }
9197
 
 
9198
 
 
9199
 
 
9200
 
 
9201
 
 
 
10248
 
 
10249
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
10250
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
10251
if ${lt_cv_prog_compiler_pic+:} false; then :
 
10252
  $as_echo_n "(cached) " >&6
 
10253
else
 
10254
  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
 
10255
fi
 
10256
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
 
10257
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
 
10258
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9202
10259
 
9203
10260
#
9204
10261
# Check to make sure the PIC flag actually works.
9206
10263
if test -n "$lt_prog_compiler_pic"; then
9207
10264
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9208
10265
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9209
 
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
 
10266
if ${lt_cv_prog_compiler_pic_works+:} false; then :
9210
10267
  $as_echo_n "(cached) " >&6
9211
10268
else
9212
10269
  lt_cv_prog_compiler_pic_works=no
9259
10316
 
9260
10317
 
9261
10318
 
 
10319
 
 
10320
 
 
10321
 
 
10322
 
 
10323
 
9262
10324
#
9263
10325
# Check to make sure the static flag actually works.
9264
10326
#
9265
10327
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9266
10328
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9267
10329
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9268
 
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
 
10330
if ${lt_cv_prog_compiler_static_works+:} false; then :
9269
10331
  $as_echo_n "(cached) " >&6
9270
10332
else
9271
10333
  lt_cv_prog_compiler_static_works=no
9308
10370
 
9309
10371
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9310
10372
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9311
 
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
 
10373
if ${lt_cv_prog_compiler_c_o+:} false; then :
9312
10374
  $as_echo_n "(cached) " >&6
9313
10375
else
9314
10376
  lt_cv_prog_compiler_c_o=no
9363
10425
 
9364
10426
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9365
10427
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9366
 
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
 
10428
if ${lt_cv_prog_compiler_c_o+:} false; then :
9367
10429
  $as_echo_n "(cached) " >&6
9368
10430
else
9369
10431
  lt_cv_prog_compiler_c_o=no
9501
10563
  openbsd*)
9502
10564
    with_gnu_ld=no
9503
10565
    ;;
 
10566
  linux* | k*bsd*-gnu | gnu*)
 
10567
    link_all_deplibs=no
 
10568
    ;;
9504
10569
  esac
9505
10570
 
9506
10571
  ld_shlibs=yes
9609
10674
      allow_undefined_flag=unsupported
9610
10675
      always_export_symbols=no
9611
10676
      enable_shared_with_static_runtimes=yes
9612
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
10677
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
 
10678
      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9613
10679
 
9614
10680
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9615
10681
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9657
10723
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9658
10724
         && test "$tmp_diet" = no
9659
10725
      then
9660
 
        tmp_addflag=
 
10726
        tmp_addflag=' $pic_flag'
9661
10727
        tmp_sharedflag='-shared'
9662
10728
        case $cc_basename,$host_cpu in
9663
10729
        pgcc*)                          # Portland Group C compiler
9722
10788
      fi
9723
10789
      ;;
9724
10790
 
9725
 
    netbsd*)
 
10791
    netbsd* | netbsdelf*-gnu)
9726
10792
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9727
10793
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9728
10794
        wlarc=
9729
10795
      else
9730
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9731
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
10796
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10797
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9732
10798
      fi
9733
10799
      ;;
9734
10800
 
9746
10812
 
9747
10813
_LT_EOF
9748
10814
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9749
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9750
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
10815
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10816
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9751
10817
      else
9752
10818
        ld_shlibs=no
9753
10819
      fi
9793
10859
 
9794
10860
    *)
9795
10861
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9796
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9797
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
10862
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10863
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9798
10864
      else
9799
10865
        ld_shlibs=no
9800
10866
      fi
9899
10965
        if test "$aix_use_runtimelinking" = yes; then
9900
10966
          shared_flag="$shared_flag "'${wl}-G'
9901
10967
        fi
 
10968
        link_all_deplibs=no
9902
10969
      else
9903
10970
        # not using gcc
9904
10971
        if test "$host_cpu" = ia64; then
9924
10991
        allow_undefined_flag='-berok'
9925
10992
        # Determine the default libpath from the value encoded in an
9926
10993
        # empty executable.
9927
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10994
        if test "${lt_cv_aix_libpath+set}" = set; then
 
10995
  aix_libpath=$lt_cv_aix_libpath
 
10996
else
 
10997
  if ${lt_cv_aix_libpath_+:} false; then :
 
10998
  $as_echo_n "(cached) " >&6
 
10999
else
 
11000
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9928
11001
/* end confdefs.h.  */
9929
11002
 
9930
11003
int
9937
11010
_ACEOF
9938
11011
if ac_fn_c_try_link "$LINENO"; then :
9939
11012
 
9940
 
lt_aix_libpath_sed='
9941
 
    /Import File Strings/,/^$/ {
9942
 
        /^0/ {
9943
 
            s/^0  *\(.*\)$/\1/
9944
 
            p
9945
 
        }
9946
 
    }'
9947
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9948
 
# Check for a 64-bit object if we didn't find anything.
9949
 
if test -z "$aix_libpath"; then
9950
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9951
 
fi
 
11013
  lt_aix_libpath_sed='
 
11014
      /Import File Strings/,/^$/ {
 
11015
          /^0/ {
 
11016
              s/^0  *\([^ ]*\) *$/\1/
 
11017
              p
 
11018
          }
 
11019
      }'
 
11020
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11021
  # Check for a 64-bit object if we didn't find anything.
 
11022
  if test -z "$lt_cv_aix_libpath_"; then
 
11023
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11024
  fi
9952
11025
fi
9953
11026
rm -f core conftest.err conftest.$ac_objext \
9954
11027
    conftest$ac_exeext conftest.$ac_ext
9955
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11028
  if test -z "$lt_cv_aix_libpath_"; then
 
11029
    lt_cv_aix_libpath_="/usr/lib:/lib"
 
11030
  fi
 
11031
 
 
11032
fi
 
11033
 
 
11034
  aix_libpath=$lt_cv_aix_libpath_
 
11035
fi
9956
11036
 
9957
11037
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9958
11038
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9964
11044
        else
9965
11045
         # Determine the default libpath from the value encoded in an
9966
11046
         # empty executable.
9967
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11047
         if test "${lt_cv_aix_libpath+set}" = set; then
 
11048
  aix_libpath=$lt_cv_aix_libpath
 
11049
else
 
11050
  if ${lt_cv_aix_libpath_+:} false; then :
 
11051
  $as_echo_n "(cached) " >&6
 
11052
else
 
11053
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9968
11054
/* end confdefs.h.  */
9969
11055
 
9970
11056
int
9977
11063
_ACEOF
9978
11064
if ac_fn_c_try_link "$LINENO"; then :
9979
11065
 
9980
 
lt_aix_libpath_sed='
9981
 
    /Import File Strings/,/^$/ {
9982
 
        /^0/ {
9983
 
            s/^0  *\(.*\)$/\1/
9984
 
            p
9985
 
        }
9986
 
    }'
9987
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9988
 
# Check for a 64-bit object if we didn't find anything.
9989
 
if test -z "$aix_libpath"; then
9990
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9991
 
fi
 
11066
  lt_aix_libpath_sed='
 
11067
      /Import File Strings/,/^$/ {
 
11068
          /^0/ {
 
11069
              s/^0  *\([^ ]*\) *$/\1/
 
11070
              p
 
11071
          }
 
11072
      }'
 
11073
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11074
  # Check for a 64-bit object if we didn't find anything.
 
11075
  if test -z "$lt_cv_aix_libpath_"; then
 
11076
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11077
  fi
9992
11078
fi
9993
11079
rm -f core conftest.err conftest.$ac_objext \
9994
11080
    conftest$ac_exeext conftest.$ac_ext
9995
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11081
  if test -z "$lt_cv_aix_libpath_"; then
 
11082
    lt_cv_aix_libpath_="/usr/lib:/lib"
 
11083
  fi
 
11084
 
 
11085
fi
 
11086
 
 
11087
  aix_libpath=$lt_cv_aix_libpath_
 
11088
fi
9996
11089
 
9997
11090
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9998
11091
          # Warning - without using the other run time loading flags,
10037
11130
      # Microsoft Visual C++.
10038
11131
      # hardcode_libdir_flag_spec is actually meaningless, as there is
10039
11132
      # no search path for DLLs.
10040
 
      hardcode_libdir_flag_spec=' '
10041
 
      allow_undefined_flag=unsupported
10042
 
      # Tell ltmain to make .lib files, not .a files.
10043
 
      libext=lib
10044
 
      # Tell ltmain to make .dll files, not .so files.
10045
 
      shrext_cmds=".dll"
10046
 
      # FIXME: Setting linknames here is a bad hack.
10047
 
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10048
 
      # The linker will automatically build a .lib file if we build a DLL.
10049
 
      old_archive_from_new_cmds='true'
10050
 
      # FIXME: Should let the user specify the lib program.
10051
 
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10052
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
10053
 
      enable_shared_with_static_runtimes=yes
 
11133
      case $cc_basename in
 
11134
      cl*)
 
11135
        # Native MSVC
 
11136
        hardcode_libdir_flag_spec=' '
 
11137
        allow_undefined_flag=unsupported
 
11138
        always_export_symbols=yes
 
11139
        file_list_spec='@'
 
11140
        # Tell ltmain to make .lib files, not .a files.
 
11141
        libext=lib
 
11142
        # Tell ltmain to make .dll files, not .so files.
 
11143
        shrext_cmds=".dll"
 
11144
        # FIXME: Setting linknames here is a bad hack.
 
11145
        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
11146
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
11147
            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
11148
          else
 
11149
            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
11150
          fi~
 
11151
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
11152
          linknames='
 
11153
        # The linker will not automatically build a static lib if we build a DLL.
 
11154
        # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
 
11155
        enable_shared_with_static_runtimes=yes
 
11156
        export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
11157
        # Don't use ranlib
 
11158
        old_postinstall_cmds='chmod 644 $oldlib'
 
11159
        postlink_cmds='lt_outputfile="@OUTPUT@"~
 
11160
          lt_tool_outputfile="@TOOL_OUTPUT@"~
 
11161
          case $lt_outputfile in
 
11162
            *.exe|*.EXE) ;;
 
11163
            *)
 
11164
              lt_outputfile="$lt_outputfile.exe"
 
11165
              lt_tool_outputfile="$lt_tool_outputfile.exe"
 
11166
              ;;
 
11167
          esac~
 
11168
          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
11169
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
11170
            $RM "$lt_outputfile.manifest";
 
11171
          fi'
 
11172
        ;;
 
11173
      *)
 
11174
        # Assume MSVC wrapper
 
11175
        hardcode_libdir_flag_spec=' '
 
11176
        allow_undefined_flag=unsupported
 
11177
        # Tell ltmain to make .lib files, not .a files.
 
11178
        libext=lib
 
11179
        # Tell ltmain to make .dll files, not .so files.
 
11180
        shrext_cmds=".dll"
 
11181
        # FIXME: Setting linknames here is a bad hack.
 
11182
        archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
 
11183
        # The linker will automatically build a .lib file if we build a DLL.
 
11184
        old_archive_from_new_cmds='true'
 
11185
        # FIXME: Should let the user specify the lib program.
 
11186
        old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
11187
        enable_shared_with_static_runtimes=yes
 
11188
        ;;
 
11189
      esac
10054
11190
      ;;
10055
11191
 
10056
11192
    darwin* | rhapsody*)
10115
11251
 
10116
11252
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10117
11253
    freebsd* | dragonfly*)
10118
 
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
11254
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10119
11255
      hardcode_libdir_flag_spec='-R$libdir'
10120
11256
      hardcode_direct=yes
10121
11257
      hardcode_shlibpath_var=no
10123
11259
 
10124
11260
    hpux9*)
10125
11261
      if test "$GCC" = yes; then
10126
 
        archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
11262
        archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10127
11263
      else
10128
11264
        archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10129
11265
      fi
10139
11275
 
10140
11276
    hpux10*)
10141
11277
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10142
 
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
11278
        archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10143
11279
      else
10144
11280
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10145
11281
      fi
10163
11299
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10164
11300
          ;;
10165
11301
        ia64*)
10166
 
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
11302
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10167
11303
          ;;
10168
11304
        *)
10169
 
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
11305
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10170
11306
          ;;
10171
11307
        esac
10172
11308
      else
10183
11319
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10184
11320
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10185
11321
$as_echo_n "checking if $CC understands -b... " >&6; }
10186
 
if test "${lt_cv_prog_compiler__b+set}" = set; then :
 
11322
if ${lt_cv_prog_compiler__b+:} false; then :
10187
11323
  $as_echo_n "(cached) " >&6
10188
11324
else
10189
11325
  lt_cv_prog_compiler__b=no
10245
11381
 
10246
11382
    irix5* | irix6* | nonstopux*)
10247
11383
      if test "$GCC" = yes; then
10248
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
11384
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10249
11385
        # Try to use the -exported_symbol ld option, if it does not
10250
11386
        # work, assume that -exports_file does not work either and
10251
11387
        # implicitly export all symbols.
10252
 
        save_LDFLAGS="$LDFLAGS"
10253
 
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10254
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11388
        # This should be the same for all languages, so no per-tag cache variable.
 
11389
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
 
11390
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
 
11391
if ${lt_cv_irix_exported_symbol+:} false; then :
 
11392
  $as_echo_n "(cached) " >&6
 
11393
else
 
11394
  save_LDFLAGS="$LDFLAGS"
 
11395
           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
11396
           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10255
11397
/* end confdefs.h.  */
10256
 
int foo(void) {}
 
11398
int foo (void) { return 0; }
10257
11399
_ACEOF
10258
11400
if ac_fn_c_try_link "$LINENO"; then :
10259
 
  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10260
 
 
 
11401
  lt_cv_irix_exported_symbol=yes
 
11402
else
 
11403
  lt_cv_irix_exported_symbol=no
10261
11404
fi
10262
11405
rm -f core conftest.err conftest.$ac_objext \
10263
11406
    conftest$ac_exeext conftest.$ac_ext
10264
 
        LDFLAGS="$save_LDFLAGS"
 
11407
           LDFLAGS="$save_LDFLAGS"
 
11408
fi
 
11409
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
 
11410
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
 
11411
        if test "$lt_cv_irix_exported_symbol" = yes; then
 
11412
          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
 
11413
        fi
10265
11414
      else
10266
11415
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10267
11416
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10273
11422
      link_all_deplibs=yes
10274
11423
      ;;
10275
11424
 
10276
 
    netbsd*)
 
11425
    netbsd* | netbsdelf*-gnu)
10277
11426
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10278
11427
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10279
11428
      else
10346
11495
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10347
11496
      if test "$GCC" = yes; then
10348
11497
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10349
 
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
11498
        archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10350
11499
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10351
11500
      else
10352
11501
        allow_undefined_flag=' -expect_unresolved \*'
10365
11514
      no_undefined_flag=' -z defs'
10366
11515
      if test "$GCC" = yes; then
10367
11516
        wlarc='${wl}'
10368
 
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11517
        archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10369
11518
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10370
 
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
11519
          $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10371
11520
      else
10372
11521
        case `$CC -V 2>&1` in
10373
11522
        *"Compilers 5.0"*)
10555
11704
      # to ld, don't add -lc before -lgcc.
10556
11705
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10557
11706
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10558
 
if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
 
11707
if ${lt_cv_archive_cmds_need_lc+:} false; then :
10559
11708
  $as_echo_n "(cached) " >&6
10560
11709
else
10561
11710
  $RM conftest*
10943
12092
  need_version=no
10944
12093
  need_lib_prefix=no
10945
12094
 
10946
 
  case $GCC,$host_os in
10947
 
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
 
12095
  case $GCC,$cc_basename in
 
12096
  yes,*)
 
12097
    # gcc
10948
12098
    library_names_spec='$libname.dll.a'
10949
12099
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10950
12100
    postinstall_cmds='base_file=`basename \${file}`~
10977
12127
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10978
12128
      ;;
10979
12129
    esac
 
12130
    dynamic_linker='Win32 ld.exe'
 
12131
    ;;
 
12132
 
 
12133
  *,cl*)
 
12134
    # Native MSVC
 
12135
    libname_spec='$name'
 
12136
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12137
    library_names_spec='${libname}.dll.lib'
 
12138
 
 
12139
    case $build_os in
 
12140
    mingw*)
 
12141
      sys_lib_search_path_spec=
 
12142
      lt_save_ifs=$IFS
 
12143
      IFS=';'
 
12144
      for lt_path in $LIB
 
12145
      do
 
12146
        IFS=$lt_save_ifs
 
12147
        # Let DOS variable expansion print the short 8.3 style file name.
 
12148
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
12149
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
12150
      done
 
12151
      IFS=$lt_save_ifs
 
12152
      # Convert to MSYS style.
 
12153
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
 
12154
      ;;
 
12155
    cygwin*)
 
12156
      # Convert to unix form, then to dos form, then back to unix form
 
12157
      # but this time dos style (no spaces!) so that the unix form looks
 
12158
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
12159
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
12160
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
12161
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
12162
      ;;
 
12163
    *)
 
12164
      sys_lib_search_path_spec="$LIB"
 
12165
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
12166
        # It is most probably a Windows format PATH.
 
12167
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
12168
      else
 
12169
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
12170
      fi
 
12171
      # FIXME: find the short name or the path components, as spaces are
 
12172
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
12173
      ;;
 
12174
    esac
 
12175
 
 
12176
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
12177
    postinstall_cmds='base_file=`basename \${file}`~
 
12178
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
12179
      dldir=$destdir/`dirname \$dlpath`~
 
12180
      test -d \$dldir || mkdir -p \$dldir~
 
12181
      $install_prog $dir/$dlname \$dldir/$dlname'
 
12182
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
12183
      dlpath=$dir/\$dldll~
 
12184
       $RM \$dlpath'
 
12185
    shlibpath_overrides_runpath=yes
 
12186
    dynamic_linker='Win32 link.exe'
10980
12187
    ;;
10981
12188
 
10982
12189
  *)
 
12190
    # Assume MSVC wrapper
10983
12191
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
12192
    dynamic_linker='Win32 ld.exe'
10984
12193
    ;;
10985
12194
  esac
10986
 
  dynamic_linker='Win32 ld.exe'
10987
12195
  # FIXME: first we should search . and the directory the executable is in
10988
12196
  shlibpath_var=PATH
10989
12197
  ;;
11067
12275
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11068
12276
  soname_spec='${libname}${release}${shared_ext}$major'
11069
12277
  shlibpath_var=LD_LIBRARY_PATH
 
12278
  shlibpath_overrides_runpath=no
11070
12279
  hardcode_into_libs=yes
11071
12280
  ;;
11072
12281
 
11197
12406
  shlibpath_overrides_runpath=no
11198
12407
 
11199
12408
  # Some binutils ld are patched to set DT_RUNPATH
11200
 
  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
 
12409
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11201
12410
  $as_echo_n "(cached) " >&6
11202
12411
else
11203
12412
  lt_cv_shlibpath_overrides_runpath=no
11250
12459
  dynamic_linker='GNU/Linux ld.so'
11251
12460
  ;;
11252
12461
 
 
12462
netbsdelf*-gnu)
 
12463
  version_type=linux
 
12464
  need_lib_prefix=no
 
12465
  need_version=no
 
12466
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12467
  soname_spec='${libname}${release}${shared_ext}$major'
 
12468
  shlibpath_var=LD_LIBRARY_PATH
 
12469
  shlibpath_overrides_runpath=no
 
12470
  hardcode_into_libs=yes
 
12471
  dynamic_linker='NetBSD ld.elf_so'
 
12472
  ;;
 
12473
 
11253
12474
netbsd*)
11254
12475
  version_type=sunos
11255
12476
  need_lib_prefix=no
11617
12838
  # if libdl is installed we need to link against it
11618
12839
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11619
12840
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11620
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
 
12841
if ${ac_cv_lib_dl_dlopen+:} false; then :
11621
12842
  $as_echo_n "(cached) " >&6
11622
12843
else
11623
12844
  ac_check_lib_save_LIBS=$LIBS
11651
12872
fi
11652
12873
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11653
12874
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11654
 
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
 
12875
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11655
12876
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11656
12877
else
11657
12878
 
11665
12886
 
11666
12887
  *)
11667
12888
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11668
 
if test "x$ac_cv_func_shl_load" = x""yes; then :
 
12889
if test "x$ac_cv_func_shl_load" = xyes; then :
11669
12890
  lt_cv_dlopen="shl_load"
11670
12891
else
11671
12892
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11672
12893
$as_echo_n "checking for shl_load in -ldld... " >&6; }
11673
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
 
12894
if ${ac_cv_lib_dld_shl_load+:} false; then :
11674
12895
  $as_echo_n "(cached) " >&6
11675
12896
else
11676
12897
  ac_check_lib_save_LIBS=$LIBS
11704
12925
fi
11705
12926
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11706
12927
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11707
 
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
 
12928
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11708
12929
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11709
12930
else
11710
12931
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11711
 
if test "x$ac_cv_func_dlopen" = x""yes; then :
 
12932
if test "x$ac_cv_func_dlopen" = xyes; then :
11712
12933
  lt_cv_dlopen="dlopen"
11713
12934
else
11714
12935
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11715
12936
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11716
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
 
12937
if ${ac_cv_lib_dl_dlopen+:} false; then :
11717
12938
  $as_echo_n "(cached) " >&6
11718
12939
else
11719
12940
  ac_check_lib_save_LIBS=$LIBS
11747
12968
fi
11748
12969
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11749
12970
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11750
 
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
 
12971
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11751
12972
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11752
12973
else
11753
12974
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11754
12975
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11755
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
 
12976
if ${ac_cv_lib_svld_dlopen+:} false; then :
11756
12977
  $as_echo_n "(cached) " >&6
11757
12978
else
11758
12979
  ac_check_lib_save_LIBS=$LIBS
11786
13007
fi
11787
13008
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11788
13009
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11789
 
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
 
13010
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11790
13011
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11791
13012
else
11792
13013
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11793
13014
$as_echo_n "checking for dld_link in -ldld... " >&6; }
11794
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
 
13015
if ${ac_cv_lib_dld_dld_link+:} false; then :
11795
13016
  $as_echo_n "(cached) " >&6
11796
13017
else
11797
13018
  ac_check_lib_save_LIBS=$LIBS
11825
13046
fi
11826
13047
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11827
13048
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11828
 
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
 
13049
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11829
13050
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11830
13051
fi
11831
13052
 
11866
13087
 
11867
13088
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11868
13089
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11869
 
if test "${lt_cv_dlopen_self+set}" = set; then :
 
13090
if ${lt_cv_dlopen_self+:} false; then :
11870
13091
  $as_echo_n "(cached) " >&6
11871
13092
else
11872
13093
          if test "$cross_compiling" = yes; then :
11919
13140
/* When -fvisbility=hidden is used, assume the code has been annotated
11920
13141
   correspondingly for the symbols needed.  */
11921
13142
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11922
 
void fnord () __attribute__((visibility("default")));
 
13143
int fnord () __attribute__((visibility("default")));
11923
13144
#endif
11924
13145
 
11925
 
void fnord () { int i=42; }
 
13146
int fnord () { return 42; }
11926
13147
int main ()
11927
13148
{
11928
13149
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11972
13193
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11973
13194
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11974
13195
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11975
 
if test "${lt_cv_dlopen_self_static+set}" = set; then :
 
13196
if ${lt_cv_dlopen_self_static+:} false; then :
11976
13197
  $as_echo_n "(cached) " >&6
11977
13198
else
11978
13199
          if test "$cross_compiling" = yes; then :
12025
13246
/* When -fvisbility=hidden is used, assume the code has been annotated
12026
13247
   correspondingly for the symbols needed.  */
12027
13248
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12028
 
void fnord () __attribute__((visibility("default")));
 
13249
int fnord () __attribute__((visibility("default")));
12029
13250
#endif
12030
13251
 
12031
 
void fnord () { int i=42; }
 
13252
int fnord () { return 42; }
12032
13253
int main ()
12033
13254
{
12034
13255
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12295
13516
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12296
13517
$as_echo_n "checking for non-GNU ld... " >&6; }
12297
13518
fi
12298
 
if test "${acl_cv_path_LD+set}" = set; then :
 
13519
if ${acl_cv_path_LD+:} false; then :
12299
13520
  $as_echo_n "(cached) " >&6
12300
13521
else
12301
13522
  if test -z "$LD"; then
12332
13553
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12333
13554
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12334
13555
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12335
 
if test "${acl_cv_prog_gnu_ld+set}" = set; then :
 
13556
if ${acl_cv_prog_gnu_ld+:} false; then :
12336
13557
  $as_echo_n "(cached) " >&6
12337
13558
else
12338
13559
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12352
13573
 
12353
13574
                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12354
13575
$as_echo_n "checking for shared library run path origin... " >&6; }
12355
 
if test "${acl_cv_rpath+set}" = set; then :
 
13576
if ${acl_cv_rpath+:} false; then :
12356
13577
  $as_echo_n "(cached) " >&6
12357
13578
else
12358
13579
 
12406
13627
  # Interfaces changed/added/removed:   CURRENT++       REVISION=0
12407
13628
  # Interfaces added:                             AGE++
12408
13629
  # Interfaces removed:                           AGE=0
12409
 
  LT_CURRENT=42
12410
 
 
12411
 
  LT_REVISION=14
12412
 
 
12413
 
  LT_AGE=16
 
13630
  LT_CURRENT=47
 
13631
 
 
13632
  LT_REVISION=5
 
13633
 
 
13634
  LT_AGE=21
 
13635
 
 
13636
 
 
13637
  LT_SSL_CURRENT=27
 
13638
 
 
13639
  LT_SSL_REVISION=0
 
13640
 
 
13641
  LT_SSL_AGE=0
 
13642
 
 
13643
 
 
13644
  CXX_LT_CURRENT=27
 
13645
 
 
13646
  CXX_LT_REVISION=0
 
13647
 
 
13648
  CXX_LT_AGE=0
12414
13649
 
12415
13650
 
12416
13651
  # Used when creating the Windows libgnutls-XX.def files.
12417
13652
  DLL_VERSION=`expr ${LT_CURRENT} - ${LT_AGE}`
12418
13653
 
12419
13654
 
 
13655
  cryptolib="nettle"
 
13656
 
 
13657
 
 
13658
# Check whether --with-libgcrypt was given.
 
13659
if test "${with_libgcrypt+set}" = set; then :
 
13660
  withval=$with_libgcrypt; libgcrypt=$withval
 
13661
else
 
13662
  libgcrypt=no
 
13663
fi
 
13664
 
 
13665
    if test "$libgcrypt" = "yes"; then
 
13666
        cryptolib=libgcrypt
 
13667
 
 
13668
$as_echo "#define HAVE_GCRYPT 1" >>confdefs.h
 
13669
 
12420
13670
 
12421
13671
 
12422
13672
 
12886
14136
 
12887
14137
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgcrypt" >&5
12888
14138
$as_echo_n "checking for libgcrypt... " >&6; }
12889
 
if test "${ac_cv_libgcrypt+set}" = set; then :
 
14139
if ${ac_cv_libgcrypt+:} false; then :
12890
14140
  $as_echo_n "(cached) " >&6
12891
14141
else
12892
14142
 
12938
14188
 
12939
14189
 
12940
14190
 
12941
 
  if test "$ac_cv_libgcrypt" != yes; then
12942
 
    as_fn_error $? "
 
14191
      if test "$ac_cv_libgcrypt" != yes; then
 
14192
        as_fn_error $? "
12943
14193
***
12944
 
*** libgcrypt was not found. You may want to get it from
 
14194
*** Libgcrypt v1.4.0 or later was not found. You may want to get it from
12945
14195
*** ftp://ftp.gnupg.org/gcrypt/libgcrypt/
12946
14196
***
12947
14197
    " "$LINENO" 5
12948
 
  fi
 
14198
      fi
 
14199
    fi
 
14200
 
 
14201
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use nettle" >&5
 
14202
$as_echo_n "checking whether to use nettle... " >&6; }
 
14203
if test "$cryptolib" = "nettle";then
 
14204
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
14205
$as_echo "yes" >&6; }
 
14206
 
 
14207
 
 
14208
 
 
14209
 
 
14210
 
 
14211
 
 
14212
 
 
14213
 
 
14214
 
 
14215
 
 
14216
    use_additional=yes
 
14217
 
 
14218
  acl_save_prefix="$prefix"
 
14219
  prefix="$acl_final_prefix"
 
14220
  acl_save_exec_prefix="$exec_prefix"
 
14221
  exec_prefix="$acl_final_exec_prefix"
 
14222
 
 
14223
    eval additional_includedir=\"$includedir\"
 
14224
    eval additional_libdir=\"$libdir\"
 
14225
 
 
14226
  exec_prefix="$acl_save_exec_prefix"
 
14227
  prefix="$acl_save_prefix"
 
14228
 
 
14229
 
 
14230
# Check whether --with-libnettle-prefix was given.
 
14231
if test "${with_libnettle_prefix+set}" = set; then :
 
14232
  withval=$with_libnettle_prefix;
 
14233
    if test "X$withval" = "Xno"; then
 
14234
      use_additional=no
 
14235
    else
 
14236
      if test "X$withval" = "X"; then
 
14237
 
 
14238
  acl_save_prefix="$prefix"
 
14239
  prefix="$acl_final_prefix"
 
14240
  acl_save_exec_prefix="$exec_prefix"
 
14241
  exec_prefix="$acl_final_exec_prefix"
 
14242
 
 
14243
          eval additional_includedir=\"$includedir\"
 
14244
          eval additional_libdir=\"$libdir\"
 
14245
 
 
14246
  exec_prefix="$acl_save_exec_prefix"
 
14247
  prefix="$acl_save_prefix"
 
14248
 
 
14249
      else
 
14250
        additional_includedir="$withval/include"
 
14251
        additional_libdir="$withval/$acl_libdirstem"
 
14252
      fi
 
14253
    fi
 
14254
 
 
14255
fi
 
14256
 
 
14257
      LIBNETTLE=
 
14258
  LTLIBNETTLE=
 
14259
  INCNETTLE=
 
14260
  LIBNETTLE_PREFIX=
 
14261
  rpathdirs=
 
14262
  ltrpathdirs=
 
14263
  names_already_handled=
 
14264
  names_next_round='nettle '
 
14265
  while test -n "$names_next_round"; do
 
14266
    names_this_round="$names_next_round"
 
14267
    names_next_round=
 
14268
    for name in $names_this_round; do
 
14269
      already_handled=
 
14270
      for n in $names_already_handled; do
 
14271
        if test "$n" = "$name"; then
 
14272
          already_handled=yes
 
14273
          break
 
14274
        fi
 
14275
      done
 
14276
      if test -z "$already_handled"; then
 
14277
        names_already_handled="$names_already_handled $name"
 
14278
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
 
14279
        eval value=\"\$HAVE_LIB$uppername\"
 
14280
        if test -n "$value"; then
 
14281
          if test "$value" = yes; then
 
14282
            eval value=\"\$LIB$uppername\"
 
14283
            test -z "$value" || LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$value"
 
14284
            eval value=\"\$LTLIB$uppername\"
 
14285
            test -z "$value" || LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }$value"
 
14286
          else
 
14287
                                    :
 
14288
          fi
 
14289
        else
 
14290
                              found_dir=
 
14291
          found_la=
 
14292
          found_so=
 
14293
          found_a=
 
14294
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
 
14295
          if test -n "$acl_shlibext"; then
 
14296
            shrext=".$acl_shlibext"             # typically: shrext=.so
 
14297
          else
 
14298
            shrext=
 
14299
          fi
 
14300
          if test $use_additional = yes; then
 
14301
            dir="$additional_libdir"
 
14302
                                    if test -n "$acl_shlibext"; then
 
14303
              if test -f "$dir/$libname$shrext"; then
 
14304
                found_dir="$dir"
 
14305
                found_so="$dir/$libname$shrext"
 
14306
              else
 
14307
                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
14308
                  ver=`(cd "$dir" && \
 
14309
                        for f in "$libname$shrext".*; do echo "$f"; done \
 
14310
                        | sed -e "s,^$libname$shrext\\\\.,," \
 
14311
                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
14312
                        | sed 1q ) 2>/dev/null`
 
14313
                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
14314
                    found_dir="$dir"
 
14315
                    found_so="$dir/$libname$shrext.$ver"
 
14316
                  fi
 
14317
                else
 
14318
                  eval library_names=\"$acl_library_names_spec\"
 
14319
                  for f in $library_names; do
 
14320
                    if test -f "$dir/$f"; then
 
14321
                      found_dir="$dir"
 
14322
                      found_so="$dir/$f"
 
14323
                      break
 
14324
                    fi
 
14325
                  done
 
14326
                fi
 
14327
              fi
 
14328
            fi
 
14329
                        if test "X$found_dir" = "X"; then
 
14330
              if test -f "$dir/$libname.$acl_libext"; then
 
14331
                found_dir="$dir"
 
14332
                found_a="$dir/$libname.$acl_libext"
 
14333
              fi
 
14334
            fi
 
14335
            if test "X$found_dir" != "X"; then
 
14336
              if test -f "$dir/$libname.la"; then
 
14337
                found_la="$dir/$libname.la"
 
14338
              fi
 
14339
            fi
 
14340
          fi
 
14341
          if test "X$found_dir" = "X"; then
 
14342
            for x in $LDFLAGS $LTLIBNETTLE; do
 
14343
 
 
14344
  acl_save_prefix="$prefix"
 
14345
  prefix="$acl_final_prefix"
 
14346
  acl_save_exec_prefix="$exec_prefix"
 
14347
  exec_prefix="$acl_final_exec_prefix"
 
14348
  eval x=\"$x\"
 
14349
  exec_prefix="$acl_save_exec_prefix"
 
14350
  prefix="$acl_save_prefix"
 
14351
 
 
14352
              case "$x" in
 
14353
                -L*)
 
14354
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
 
14355
                                    if test -n "$acl_shlibext"; then
 
14356
                    if test -f "$dir/$libname$shrext"; then
 
14357
                      found_dir="$dir"
 
14358
                      found_so="$dir/$libname$shrext"
 
14359
                    else
 
14360
                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
14361
                        ver=`(cd "$dir" && \
 
14362
                              for f in "$libname$shrext".*; do echo "$f"; done \
 
14363
                              | sed -e "s,^$libname$shrext\\\\.,," \
 
14364
                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
14365
                              | sed 1q ) 2>/dev/null`
 
14366
                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
14367
                          found_dir="$dir"
 
14368
                          found_so="$dir/$libname$shrext.$ver"
 
14369
                        fi
 
14370
                      else
 
14371
                        eval library_names=\"$acl_library_names_spec\"
 
14372
                        for f in $library_names; do
 
14373
                          if test -f "$dir/$f"; then
 
14374
                            found_dir="$dir"
 
14375
                            found_so="$dir/$f"
 
14376
                            break
 
14377
                          fi
 
14378
                        done
 
14379
                      fi
 
14380
                    fi
 
14381
                  fi
 
14382
                                    if test "X$found_dir" = "X"; then
 
14383
                    if test -f "$dir/$libname.$acl_libext"; then
 
14384
                      found_dir="$dir"
 
14385
                      found_a="$dir/$libname.$acl_libext"
 
14386
                    fi
 
14387
                  fi
 
14388
                  if test "X$found_dir" != "X"; then
 
14389
                    if test -f "$dir/$libname.la"; then
 
14390
                      found_la="$dir/$libname.la"
 
14391
                    fi
 
14392
                  fi
 
14393
                  ;;
 
14394
              esac
 
14395
              if test "X$found_dir" != "X"; then
 
14396
                break
 
14397
              fi
 
14398
            done
 
14399
          fi
 
14400
          if test "X$found_dir" != "X"; then
 
14401
                        LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }-L$found_dir -l$name"
 
14402
            if test "X$found_so" != "X"; then
 
14403
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
 
14404
                                LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$found_so"
 
14405
              else
 
14406
                                                                                haveit=
 
14407
                for x in $ltrpathdirs; do
 
14408
                  if test "X$x" = "X$found_dir"; then
 
14409
                    haveit=yes
 
14410
                    break
 
14411
                  fi
 
14412
                done
 
14413
                if test -z "$haveit"; then
 
14414
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
14415
                fi
 
14416
                                if test "$acl_hardcode_direct" = yes; then
 
14417
                                                      LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$found_so"
 
14418
                else
 
14419
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
 
14420
                                                            LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$found_so"
 
14421
                                                            haveit=
 
14422
                    for x in $rpathdirs; do
 
14423
                      if test "X$x" = "X$found_dir"; then
 
14424
                        haveit=yes
 
14425
                        break
 
14426
                      fi
 
14427
                    done
 
14428
                    if test -z "$haveit"; then
 
14429
                      rpathdirs="$rpathdirs $found_dir"
 
14430
                    fi
 
14431
                  else
 
14432
                                                                                haveit=
 
14433
                    for x in $LDFLAGS $LIBNETTLE; do
 
14434
 
 
14435
  acl_save_prefix="$prefix"
 
14436
  prefix="$acl_final_prefix"
 
14437
  acl_save_exec_prefix="$exec_prefix"
 
14438
  exec_prefix="$acl_final_exec_prefix"
 
14439
  eval x=\"$x\"
 
14440
  exec_prefix="$acl_save_exec_prefix"
 
14441
  prefix="$acl_save_prefix"
 
14442
 
 
14443
                      if test "X$x" = "X-L$found_dir"; then
 
14444
                        haveit=yes
 
14445
                        break
 
14446
                      fi
 
14447
                    done
 
14448
                    if test -z "$haveit"; then
 
14449
                      LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }-L$found_dir"
 
14450
                    fi
 
14451
                    if test "$acl_hardcode_minus_L" != no; then
 
14452
                                                                                        LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$found_so"
 
14453
                    else
 
14454
                                                                                                                                                                                LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }-l$name"
 
14455
                    fi
 
14456
                  fi
 
14457
                fi
 
14458
              fi
 
14459
            else
 
14460
              if test "X$found_a" != "X"; then
 
14461
                                LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$found_a"
 
14462
              else
 
14463
                                                LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }-L$found_dir -l$name"
 
14464
              fi
 
14465
            fi
 
14466
                        additional_includedir=
 
14467
            case "$found_dir" in
 
14468
              */$acl_libdirstem | */$acl_libdirstem/)
 
14469
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
 
14470
                LIBNETTLE_PREFIX="$basedir"
 
14471
                additional_includedir="$basedir/include"
 
14472
                ;;
 
14473
            esac
 
14474
            if test "X$additional_includedir" != "X"; then
 
14475
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
 
14476
                haveit=
 
14477
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
14478
                  if test -n "$GCC"; then
 
14479
                    case $host_os in
 
14480
                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
14481
                    esac
 
14482
                  fi
 
14483
                fi
 
14484
                if test -z "$haveit"; then
 
14485
                  for x in $CPPFLAGS $INCNETTLE; do
 
14486
 
 
14487
  acl_save_prefix="$prefix"
 
14488
  prefix="$acl_final_prefix"
 
14489
  acl_save_exec_prefix="$exec_prefix"
 
14490
  exec_prefix="$acl_final_exec_prefix"
 
14491
  eval x=\"$x\"
 
14492
  exec_prefix="$acl_save_exec_prefix"
 
14493
  prefix="$acl_save_prefix"
 
14494
 
 
14495
                    if test "X$x" = "X-I$additional_includedir"; then
 
14496
                      haveit=yes
 
14497
                      break
 
14498
                    fi
 
14499
                  done
 
14500
                  if test -z "$haveit"; then
 
14501
                    if test -d "$additional_includedir"; then
 
14502
                                            INCNETTLE="${INCNETTLE}${INCNETTLE:+ }-I$additional_includedir"
 
14503
                    fi
 
14504
                  fi
 
14505
                fi
 
14506
              fi
 
14507
            fi
 
14508
                        if test -n "$found_la"; then
 
14509
                                                        save_libdir="$libdir"
 
14510
              case "$found_la" in
 
14511
                */* | *\\*) . "$found_la" ;;
 
14512
                *) . "./$found_la" ;;
 
14513
              esac
 
14514
              libdir="$save_libdir"
 
14515
                            for dep in $dependency_libs; do
 
14516
                case "$dep" in
 
14517
                  -L*)
 
14518
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
14519
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
 
14520
                      haveit=
 
14521
                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
 
14522
                        if test -n "$GCC"; then
 
14523
                          case $host_os in
 
14524
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
14525
                          esac
 
14526
                        fi
 
14527
                      fi
 
14528
                      if test -z "$haveit"; then
 
14529
                        haveit=
 
14530
                        for x in $LDFLAGS $LIBNETTLE; do
 
14531
 
 
14532
  acl_save_prefix="$prefix"
 
14533
  prefix="$acl_final_prefix"
 
14534
  acl_save_exec_prefix="$exec_prefix"
 
14535
  exec_prefix="$acl_final_exec_prefix"
 
14536
  eval x=\"$x\"
 
14537
  exec_prefix="$acl_save_exec_prefix"
 
14538
  prefix="$acl_save_prefix"
 
14539
 
 
14540
                          if test "X$x" = "X-L$additional_libdir"; then
 
14541
                            haveit=yes
 
14542
                            break
 
14543
                          fi
 
14544
                        done
 
14545
                        if test -z "$haveit"; then
 
14546
                          if test -d "$additional_libdir"; then
 
14547
                                                        LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }-L$additional_libdir"
 
14548
                          fi
 
14549
                        fi
 
14550
                        haveit=
 
14551
                        for x in $LDFLAGS $LTLIBNETTLE; do
 
14552
 
 
14553
  acl_save_prefix="$prefix"
 
14554
  prefix="$acl_final_prefix"
 
14555
  acl_save_exec_prefix="$exec_prefix"
 
14556
  exec_prefix="$acl_final_exec_prefix"
 
14557
  eval x=\"$x\"
 
14558
  exec_prefix="$acl_save_exec_prefix"
 
14559
  prefix="$acl_save_prefix"
 
14560
 
 
14561
                          if test "X$x" = "X-L$additional_libdir"; then
 
14562
                            haveit=yes
 
14563
                            break
 
14564
                          fi
 
14565
                        done
 
14566
                        if test -z "$haveit"; then
 
14567
                          if test -d "$additional_libdir"; then
 
14568
                                                        LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }-L$additional_libdir"
 
14569
                          fi
 
14570
                        fi
 
14571
                      fi
 
14572
                    fi
 
14573
                    ;;
 
14574
                  -R*)
 
14575
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
14576
                    if test "$enable_rpath" != no; then
 
14577
                                                                  haveit=
 
14578
                      for x in $rpathdirs; do
 
14579
                        if test "X$x" = "X$dir"; then
 
14580
                          haveit=yes
 
14581
                          break
 
14582
                        fi
 
14583
                      done
 
14584
                      if test -z "$haveit"; then
 
14585
                        rpathdirs="$rpathdirs $dir"
 
14586
                      fi
 
14587
                                                                  haveit=
 
14588
                      for x in $ltrpathdirs; do
 
14589
                        if test "X$x" = "X$dir"; then
 
14590
                          haveit=yes
 
14591
                          break
 
14592
                        fi
 
14593
                      done
 
14594
                      if test -z "$haveit"; then
 
14595
                        ltrpathdirs="$ltrpathdirs $dir"
 
14596
                      fi
 
14597
                    fi
 
14598
                    ;;
 
14599
                  -l*)
 
14600
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
14601
                    ;;
 
14602
                  *.la)
 
14603
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
14604
                    ;;
 
14605
                  *)
 
14606
                                        LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$dep"
 
14607
                    LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }$dep"
 
14608
                    ;;
 
14609
                esac
 
14610
              done
 
14611
            fi
 
14612
          else
 
14613
                                                            LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }-l$name"
 
14614
            LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }-l$name"
 
14615
          fi
 
14616
        fi
 
14617
      fi
 
14618
    done
 
14619
  done
 
14620
  if test "X$rpathdirs" != "X"; then
 
14621
    if test -n "$acl_hardcode_libdir_separator"; then
 
14622
                        alldirs=
 
14623
      for found_dir in $rpathdirs; do
 
14624
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
 
14625
      done
 
14626
            acl_save_libdir="$libdir"
 
14627
      libdir="$alldirs"
 
14628
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
14629
      libdir="$acl_save_libdir"
 
14630
      LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$flag"
 
14631
    else
 
14632
            for found_dir in $rpathdirs; do
 
14633
        acl_save_libdir="$libdir"
 
14634
        libdir="$found_dir"
 
14635
        eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
14636
        libdir="$acl_save_libdir"
 
14637
        LIBNETTLE="${LIBNETTLE}${LIBNETTLE:+ }$flag"
 
14638
      done
 
14639
    fi
 
14640
  fi
 
14641
  if test "X$ltrpathdirs" != "X"; then
 
14642
            for found_dir in $ltrpathdirs; do
 
14643
      LTLIBNETTLE="${LTLIBNETTLE}${LTLIBNETTLE:+ }-R$found_dir"
 
14644
    done
 
14645
  fi
 
14646
 
 
14647
 
 
14648
        ac_save_CPPFLAGS="$CPPFLAGS"
 
14649
 
 
14650
  for element in $INCNETTLE; do
 
14651
    haveit=
 
14652
    for x in $CPPFLAGS; do
 
14653
 
 
14654
  acl_save_prefix="$prefix"
 
14655
  prefix="$acl_final_prefix"
 
14656
  acl_save_exec_prefix="$exec_prefix"
 
14657
  exec_prefix="$acl_final_exec_prefix"
 
14658
  eval x=\"$x\"
 
14659
  exec_prefix="$acl_save_exec_prefix"
 
14660
  prefix="$acl_save_prefix"
 
14661
 
 
14662
      if test "X$x" = "X$element"; then
 
14663
        haveit=yes
 
14664
        break
 
14665
      fi
 
14666
    done
 
14667
    if test -z "$haveit"; then
 
14668
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
14669
    fi
 
14670
  done
 
14671
 
 
14672
 
 
14673
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnettle" >&5
 
14674
$as_echo_n "checking for libnettle... " >&6; }
 
14675
if ${ac_cv_libnettle+:} false; then :
 
14676
  $as_echo_n "(cached) " >&6
 
14677
else
 
14678
 
 
14679
    ac_save_LIBS="$LIBS"
 
14680
    LIBS="$LIBS $LIBNETTLE"
 
14681
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14682
/* end confdefs.h.  */
 
14683
#include <nettle/aes.h>
 
14684
int
 
14685
main ()
 
14686
{
 
14687
nettle_aes_invert_key (0, 0)
 
14688
  ;
 
14689
  return 0;
 
14690
}
 
14691
_ACEOF
 
14692
if ac_fn_c_try_link "$LINENO"; then :
 
14693
  ac_cv_libnettle=yes
 
14694
else
 
14695
  ac_cv_libnettle=no
 
14696
fi
 
14697
rm -f core conftest.err conftest.$ac_objext \
 
14698
    conftest$ac_exeext conftest.$ac_ext
 
14699
    LIBS="$ac_save_LIBS"
 
14700
 
 
14701
fi
 
14702
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libnettle" >&5
 
14703
$as_echo "$ac_cv_libnettle" >&6; }
 
14704
  if test "$ac_cv_libnettle" = yes; then
 
14705
    HAVE_LIBNETTLE=yes
 
14706
 
 
14707
$as_echo "#define HAVE_LIBNETTLE 1" >>confdefs.h
 
14708
 
 
14709
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libnettle" >&5
 
14710
$as_echo_n "checking how to link with libnettle... " >&6; }
 
14711
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBNETTLE" >&5
 
14712
$as_echo "$LIBNETTLE" >&6; }
 
14713
  else
 
14714
    HAVE_LIBNETTLE=no
 
14715
            CPPFLAGS="$ac_save_CPPFLAGS"
 
14716
    LIBNETTLE=
 
14717
    LTLIBNETTLE=
 
14718
    LIBNETTLE_PREFIX=
 
14719
  fi
 
14720
 
 
14721
 
 
14722
 
 
14723
 
 
14724
 
 
14725
 
 
14726
 
 
14727
    if test "$ac_cv_libnettle" != yes; then
 
14728
      as_fn_error $? "
 
14729
  ***
 
14730
  *** Libnettle 2.1 was not found.
 
14731
  " "$LINENO" 5
 
14732
    fi
 
14733
    NETTLE_LIBS="-lgmp -lhogweed"
 
14734
else
 
14735
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
14736
$as_echo "no" >&6; }
 
14737
fi
 
14738
 
 
14739
   if test "$cryptolib" = "nettle"; then
 
14740
  ENABLE_NETTLE_TRUE=
 
14741
  ENABLE_NETTLE_FALSE='#'
 
14742
else
 
14743
  ENABLE_NETTLE_TRUE='#'
 
14744
  ENABLE_NETTLE_FALSE=
 
14745
fi
 
14746
 
12949
14747
 
12950
14748
 
12951
14749
# Check whether --with-included-libtasn1 was given.
13425
15223
 
13426
15224
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libtasn1" >&5
13427
15225
$as_echo_n "checking for libtasn1... " >&6; }
13428
 
if test "${ac_cv_libtasn1+set}" = set; then :
 
15226
if ${ac_cv_libtasn1+:} false; then :
13429
15227
  $as_echo_n "(cached) " >&6
13430
15228
else
13431
15229
 
13501
15299
  ENABLE_MINITASN1_FALSE=
13502
15300
fi
13503
15301
 
 
15302
 
13504
15303
  if test "$included_libtasn1" = "no"; then
13505
15304
    GNUTLS_REQUIRES_PRIVATE="Requires.private: libtasn1"
13506
15305
  fi
13521
15320
  if test "$use_lzo" = "yes"; then
13522
15321
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
13523
15322
$as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
13524
 
if test "${ac_cv_lib_lzo2_lzo1x_1_compress+set}" = set; then :
 
15323
if ${ac_cv_lib_lzo2_lzo1x_1_compress+:} false; then :
13525
15324
  $as_echo_n "(cached) " >&6
13526
15325
else
13527
15326
  ac_check_lib_save_LIBS=$LIBS
13555
15354
fi
13556
15355
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
13557
15356
$as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
13558
 
if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = x""yes; then :
 
15357
if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = xyes; then :
13559
15358
  LZO_LIBS=-llzo2
13560
15359
fi
13561
15360
 
13562
15361
    if test "$LZO_LIBS" = ""; then
13563
15362
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo" >&5
13564
15363
$as_echo_n "checking for lzo1x_1_compress in -llzo... " >&6; }
13565
 
if test "${ac_cv_lib_lzo_lzo1x_1_compress+set}" = set; then :
 
15364
if ${ac_cv_lib_lzo_lzo1x_1_compress+:} false; then :
13566
15365
  $as_echo_n "(cached) " >&6
13567
15366
else
13568
15367
  ac_check_lib_save_LIBS=$LIBS
13596
15395
fi
13597
15396
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo_lzo1x_1_compress" >&5
13598
15397
$as_echo "$ac_cv_lib_lzo_lzo1x_1_compress" >&6; }
13599
 
if test "x$ac_cv_lib_lzo_lzo1x_1_compress" = x""yes; then :
 
15398
if test "x$ac_cv_lib_lzo_lzo1x_1_compress" = xyes; then :
13600
15399
  LZO_LIBS=-llzo
13601
15400
else
13602
15401
 
13621
15420
      for ac_header in lzo1x.h
13622
15421
do :
13623
15422
  ac_fn_c_check_header_mongrel "$LINENO" "lzo1x.h" "ac_cv_header_lzo1x_h" "$ac_includes_default"
13624
 
if test "x$ac_cv_header_lzo1x_h" = x""yes; then :
 
15423
if test "x$ac_cv_header_lzo1x_h" = xyes; then :
13625
15424
  cat >>confdefs.h <<_ACEOF
13626
15425
#define HAVE_LZO1X_H 1
13627
15426
_ACEOF
13634
15433
      for ac_header in lzo/lzo1x.h
13635
15434
do :
13636
15435
  ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
13637
 
if test "x$ac_cv_header_lzo_lzo1x_h" = x""yes; then :
 
15436
if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
13638
15437
  cat >>confdefs.h <<_ACEOF
13639
15438
#define HAVE_LZO_LZO1X_H 1
13640
15439
_ACEOF
13815
15614
 
13816
15615
 
13817
15616
  # Allow disabling Camellia
 
15617
  if test "$nettle" != "yes";then
13818
15618
  # Check whether --enable-camellia was given.
13819
15619
if test "${enable_camellia+set}" = set; then :
13820
15620
  enableval=$enable_camellia; enable_camellia=$enableval
13822
15622
  enable_camellia=yes
13823
15623
fi
13824
15624
 
 
15625
  else
 
15626
    enable_camellia=no
 
15627
  fi
 
15628
 
13825
15629
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable Camellia cipher" >&5
13826
15630
$as_echo_n "checking whether to disable Camellia cipher... " >&6; }
13827
15631
  if test "$enable_camellia" != "no"; then
13946
15750
# This bug is HP SR number 8606223364.
13947
15751
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13948
15752
$as_echo_n "checking size of void *... " >&6; }
13949
 
if test "${ac_cv_sizeof_void_p+set}" = set; then :
 
15753
if ${ac_cv_sizeof_void_p+:} false; then :
13950
15754
  $as_echo_n "(cached) " >&6
13951
15755
else
13952
15756
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
13956
15760
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13957
15761
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13958
15762
as_fn_error 77 "cannot compute sizeof (void *)
13959
 
See \`config.log' for more details" "$LINENO" 5 ; }
 
15763
See \`config.log' for more details" "$LINENO" 5; }
13960
15764
   else
13961
15765
     ac_cv_sizeof_void_p=0
13962
15766
   fi
13979
15783
# This bug is HP SR number 8606223364.
13980
15784
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13981
15785
$as_echo_n "checking size of long... " >&6; }
13982
 
if test "${ac_cv_sizeof_long+set}" = set; then :
 
15786
if ${ac_cv_sizeof_long+:} false; then :
13983
15787
  $as_echo_n "(cached) " >&6
13984
15788
else
13985
15789
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
13989
15793
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13990
15794
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13991
15795
as_fn_error 77 "cannot compute sizeof (long)
13992
 
See \`config.log' for more details" "$LINENO" 5 ; }
 
15796
See \`config.log' for more details" "$LINENO" 5; }
13993
15797
   else
13994
15798
     ac_cv_sizeof_long=0
13995
15799
   fi
14012
15816
# This bug is HP SR number 8606223364.
14013
15817
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14014
15818
$as_echo_n "checking size of int... " >&6; }
14015
 
if test "${ac_cv_sizeof_int+set}" = set; then :
 
15819
if ${ac_cv_sizeof_int+:} false; then :
14016
15820
  $as_echo_n "(cached) " >&6
14017
15821
else
14018
15822
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
14022
15826
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14023
15827
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14024
15828
as_fn_error 77 "cannot compute sizeof (int)
14025
 
See \`config.log' for more details" "$LINENO" 5 ; }
 
15829
See \`config.log' for more details" "$LINENO" 5; }
14026
15830
   else
14027
15831
     ac_cv_sizeof_int=0
14028
15832
   fi
14105
15909
set dummy msgfmt; ac_word=$2
14106
15910
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14107
15911
$as_echo_n "checking for $ac_word... " >&6; }
14108
 
if test "${ac_cv_path_MSGFMT+set}" = set; then :
 
15912
if ${ac_cv_path_MSGFMT+:} false; then :
14109
15913
  $as_echo_n "(cached) " >&6
14110
15914
else
14111
15915
  case "$MSGFMT" in
14146
15950
set dummy gmsgfmt; ac_word=$2
14147
15951
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14148
15952
$as_echo_n "checking for $ac_word... " >&6; }
14149
 
if test "${ac_cv_path_GMSGFMT+set}" = set; then :
 
15953
if ${ac_cv_path_GMSGFMT+:} false; then :
14150
15954
  $as_echo_n "(cached) " >&6
14151
15955
else
14152
15956
  case $GMSGFMT in
14228
16032
set dummy xgettext; ac_word=$2
14229
16033
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14230
16034
$as_echo_n "checking for $ac_word... " >&6; }
14231
 
if test "${ac_cv_path_XGETTEXT+set}" = set; then :
 
16035
if ${ac_cv_path_XGETTEXT+:} false; then :
14232
16036
  $as_echo_n "(cached) " >&6
14233
16037
else
14234
16038
  case "$XGETTEXT" in
14306
16110
set dummy msgmerge; ac_word=$2
14307
16111
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14308
16112
$as_echo_n "checking for $ac_word... " >&6; }
14309
 
if test "${ac_cv_path_MSGMERGE+set}" = set; then :
 
16113
if ${ac_cv_path_MSGMERGE+:} false; then :
14310
16114
  $as_echo_n "(cached) " >&6
14311
16115
else
14312
16116
  case "$MSGMERGE" in
14817
16621
 
14818
16622
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
14819
16623
$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
14820
 
if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
 
16624
if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
14821
16625
  $as_echo_n "(cached) " >&6
14822
16626
else
14823
16627
  gt_save_LIBS="$LIBS"
14851
16655
  fi
14852
16656
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
14853
16657
$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
14854
 
if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
 
16658
if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
14855
16659
  $as_echo_n "(cached) " >&6
14856
16660
else
14857
16661
  gt_save_LIBS="$LIBS"
14927
16731
 
14928
16732
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
14929
16733
$as_echo_n "checking for GNU gettext in libc... " >&6; }
14930
 
if eval "test \"\${$gt_func_gnugettext_libc+set}\"" = set; then :
 
16734
if eval \${$gt_func_gnugettext_libc+:} false; then :
14931
16735
  $as_echo_n "(cached) " >&6
14932
16736
else
14933
16737
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14990
16794
 
14991
16795
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14992
16796
$as_echo_n "checking for iconv... " >&6; }
14993
 
if test "${am_cv_func_iconv+set}" = set; then :
 
16797
if ${am_cv_func_iconv+:} false; then :
14994
16798
  $as_echo_n "(cached) " >&6
14995
16799
else
14996
16800
 
15047
16851
  if test "$am_cv_func_iconv" = yes; then
15048
16852
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
15049
16853
$as_echo_n "checking for working iconv... " >&6; }
15050
 
if test "${am_cv_func_iconv_works+set}" = set; then :
 
16854
if ${am_cv_func_iconv_works+:} false; then :
15051
16855
  $as_echo_n "(cached) " >&6
15052
16856
else
15053
16857
 
15598
17402
 
15599
17403
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
15600
17404
$as_echo_n "checking for GNU gettext in libintl... " >&6; }
15601
 
if eval "test \"\${$gt_func_gnugettext_libintl+set}\"" = set; then :
 
17405
if eval \${$gt_func_gnugettext_libintl+:} false; then :
15602
17406
  $as_echo_n "(cached) " >&6
15603
17407
else
15604
17408
  gt_save_CPPFLAGS="$CPPFLAGS"
15777
17581
 
15778
17582
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15779
17583
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15780
 
if test "${ac_cv_c_bigendian+set}" = set; then :
 
17584
if ${ac_cv_c_bigendian+:} false; then :
15781
17585
  $as_echo_n "(cached) " >&6
15782
17586
else
15783
17587
  ac_cv_c_bigendian=unknown
15996
17800
     ;; #(
15997
17801
   *)
15998
17802
     as_fn_error $? "unknown endianness
15999
 
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5  ;;
 
17803
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16000
17804
 esac
16001
17805
 
16002
17806
 
16013
17817
    #include <sys/types.h>
16014
17818
 
16015
17819
"
16016
 
if test "x$ac_cv_type_ssize_t" = x""yes; then :
 
17820
if test "x$ac_cv_type_ssize_t" = xyes; then :
16017
17821
 
16018
17822
    DEFINE_SSIZE_T="#include <sys/types.h>"
16019
17823
 
16036
17840
# This bug is HP SR number 8606223364.
16037
17841
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long int" >&5
16038
17842
$as_echo_n "checking size of unsigned long int... " >&6; }
16039
 
if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then :
 
17843
if ${ac_cv_sizeof_unsigned_long_int+:} false; then :
16040
17844
  $as_echo_n "(cached) " >&6
16041
17845
else
16042
17846
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long int))" "ac_cv_sizeof_unsigned_long_int"        "$ac_includes_default"; then :
16046
17850
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16047
17851
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16048
17852
as_fn_error 77 "cannot compute sizeof (unsigned long int)
16049
 
See \`config.log' for more details" "$LINENO" 5 ; }
 
17853
See \`config.log' for more details" "$LINENO" 5; }
16050
17854
   else
16051
17855
     ac_cv_sizeof_unsigned_long_int=0
16052
17856
   fi
16069
17873
# This bug is HP SR number 8606223364.
16070
17874
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
16071
17875
$as_echo_n "checking size of unsigned int... " >&6; }
16072
 
if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
 
17876
if ${ac_cv_sizeof_unsigned_int+:} false; then :
16073
17877
  $as_echo_n "(cached) " >&6
16074
17878
else
16075
17879
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
16079
17883
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16080
17884
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16081
17885
as_fn_error 77 "cannot compute sizeof (unsigned int)
16082
 
See \`config.log' for more details" "$LINENO" 5 ; }
 
17886
See \`config.log' for more details" "$LINENO" 5; }
16083
17887
   else
16084
17888
     ac_cv_sizeof_unsigned_int=0
16085
17889
   fi
16579
18383
 
16580
18384
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libz" >&5
16581
18385
$as_echo_n "checking for libz... " >&6; }
16582
 
if test "${ac_cv_libz+set}" = set; then :
 
18386
if ${ac_cv_libz+:} false; then :
16583
18387
  $as_echo_n "(cached) " >&6
16584
18388
else
16585
18389
 
16642
18446
$as_echo "no" >&6; }
16643
18447
fi
16644
18448
 
 
18449
 
 
18450
 
 
18451
 
 
18452
 
 
18453
 
 
18454
 
 
18455
 
 
18456
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
18457
        if test -n "$ac_tool_prefix"; then
 
18458
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 
18459
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
 
18460
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
18461
$as_echo_n "checking for $ac_word... " >&6; }
 
18462
if ${ac_cv_path_PKG_CONFIG+:} false; then :
 
18463
  $as_echo_n "(cached) " >&6
 
18464
else
 
18465
  case $PKG_CONFIG in
 
18466
  [\\/]* | ?:[\\/]*)
 
18467
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
18468
  ;;
 
18469
  *)
 
18470
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
18471
for as_dir in $PATH
 
18472
do
 
18473
  IFS=$as_save_IFS
 
18474
  test -z "$as_dir" && as_dir=.
 
18475
    for ac_exec_ext in '' $ac_executable_extensions; do
 
18476
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
18477
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
18478
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
18479
    break 2
 
18480
  fi
 
18481
done
 
18482
  done
 
18483
IFS=$as_save_IFS
 
18484
 
 
18485
  ;;
 
18486
esac
 
18487
fi
 
18488
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
18489
if test -n "$PKG_CONFIG"; then
 
18490
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
 
18491
$as_echo "$PKG_CONFIG" >&6; }
 
18492
else
 
18493
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18494
$as_echo "no" >&6; }
 
18495
fi
 
18496
 
 
18497
 
 
18498
fi
 
18499
if test -z "$ac_cv_path_PKG_CONFIG"; then
 
18500
  ac_pt_PKG_CONFIG=$PKG_CONFIG
 
18501
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
18502
set dummy pkg-config; ac_word=$2
 
18503
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
18504
$as_echo_n "checking for $ac_word... " >&6; }
 
18505
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
 
18506
  $as_echo_n "(cached) " >&6
 
18507
else
 
18508
  case $ac_pt_PKG_CONFIG in
 
18509
  [\\/]* | ?:[\\/]*)
 
18510
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 
18511
  ;;
 
18512
  *)
 
18513
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
18514
for as_dir in $PATH
 
18515
do
 
18516
  IFS=$as_save_IFS
 
18517
  test -z "$as_dir" && as_dir=.
 
18518
    for ac_exec_ext in '' $ac_executable_extensions; do
 
18519
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
18520
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
18521
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
18522
    break 2
 
18523
  fi
 
18524
done
 
18525
  done
 
18526
IFS=$as_save_IFS
 
18527
 
 
18528
  ;;
 
18529
esac
 
18530
fi
 
18531
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 
18532
if test -n "$ac_pt_PKG_CONFIG"; then
 
18533
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
 
18534
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
 
18535
else
 
18536
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18537
$as_echo "no" >&6; }
 
18538
fi
 
18539
 
 
18540
  if test "x$ac_pt_PKG_CONFIG" = x; then
 
18541
    PKG_CONFIG=""
 
18542
  else
 
18543
    case $cross_compiling:$ac_tool_warned in
 
18544
yes:)
 
18545
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
18546
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
18547
ac_tool_warned=yes ;;
 
18548
esac
 
18549
    PKG_CONFIG=$ac_pt_PKG_CONFIG
 
18550
  fi
 
18551
else
 
18552
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 
18553
fi
 
18554
 
 
18555
fi
 
18556
if test -n "$PKG_CONFIG"; then
 
18557
        _pkg_min_version=0.9.0
 
18558
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
 
18559
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
 
18560
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
18561
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
18562
$as_echo "yes" >&6; }
 
18563
        else
 
18564
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18565
$as_echo "no" >&6; }
 
18566
                PKG_CONFIG=""
 
18567
        fi
 
18568
fi
 
18569
if test -n "$PKG_CONFIG" && \
 
18570
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
 
18571
  ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
 
18572
  ac_status=$?
 
18573
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
18574
  test $ac_status = 0; }; then
 
18575
  ZLIB_HAS_PKGCONFIG=y
 
18576
else
 
18577
  ZLIB_HAS_PKGCONFIG=n
 
18578
fi
 
18579
 
16645
18580
if test x$ac_zlib != xno; then
16646
 
  if test "$GNUTLS_REQUIRES_PRIVATE" = ""; then
16647
 
    GNUTLS_REQUIRES_PRIVATE="Requires.private: zlib"
 
18581
  if test "$ZLIB_HAS_PKGCONFIG" = "y" ; then
 
18582
    if test "x$GNUTLS_REQUIRES_PRIVATE" = "x"; then
 
18583
      GNUTLS_REQUIRES_PRIVATE="Requires.private: zlib"
 
18584
    else
 
18585
      GNUTLS_REQUIRES_PRIVATE="$GNUTLS_REQUIRES_PRIVATE , zlib"
 
18586
    fi
16648
18587
  else
16649
 
    GNUTLS_REQUIRES_PRIVATE="$GNUTLS_REQUIRES_PRIVATE , zlib"
 
18588
    GNUTLS_ZLIB_LIBS_PRIVATE="$LTLIBZ"
16650
18589
  fi
16651
18590
fi
16652
18591
 
16653
18592
 
16654
18593
 
16655
18594
 
 
18595
# Check whether --with-p11-kit was given.
 
18596
if test "${with_p11_kit+set}" = set; then :
 
18597
  withval=$with_p11_kit;
 
18598
fi
 
18599
 
 
18600
 if test "$with_p11_kit" != "no"; then
 
18601
  ENABLE_PKCS11_TRUE=
 
18602
  ENABLE_PKCS11_FALSE='#'
 
18603
else
 
18604
  ENABLE_PKCS11_TRUE='#'
 
18605
  ENABLE_PKCS11_FALSE=
 
18606
fi
 
18607
 
 
18608
if test "$with_p11_kit" != "no"; then
 
18609
 
 
18610
pkg_failed=no
 
18611
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for P11_KIT" >&5
 
18612
$as_echo_n "checking for P11_KIT... " >&6; }
 
18613
 
 
18614
if test -n "$P11_KIT_CFLAGS"; then
 
18615
    pkg_cv_P11_KIT_CFLAGS="$P11_KIT_CFLAGS"
 
18616
 elif test -n "$PKG_CONFIG"; then
 
18617
    if test -n "$PKG_CONFIG" && \
 
18618
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"p11-kit-1 >= 0.4\""; } >&5
 
18619
  ($PKG_CONFIG --exists --print-errors "p11-kit-1 >= 0.4") 2>&5
 
18620
  ac_status=$?
 
18621
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
18622
  test $ac_status = 0; }; then
 
18623
  pkg_cv_P11_KIT_CFLAGS=`$PKG_CONFIG --cflags "p11-kit-1 >= 0.4" 2>/dev/null`
 
18624
                      test "x$?" != "x0" && pkg_failed=yes
 
18625
else
 
18626
  pkg_failed=yes
 
18627
fi
 
18628
 else
 
18629
    pkg_failed=untried
 
18630
fi
 
18631
if test -n "$P11_KIT_LIBS"; then
 
18632
    pkg_cv_P11_KIT_LIBS="$P11_KIT_LIBS"
 
18633
 elif test -n "$PKG_CONFIG"; then
 
18634
    if test -n "$PKG_CONFIG" && \
 
18635
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"p11-kit-1 >= 0.4\""; } >&5
 
18636
  ($PKG_CONFIG --exists --print-errors "p11-kit-1 >= 0.4") 2>&5
 
18637
  ac_status=$?
 
18638
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
18639
  test $ac_status = 0; }; then
 
18640
  pkg_cv_P11_KIT_LIBS=`$PKG_CONFIG --libs "p11-kit-1 >= 0.4" 2>/dev/null`
 
18641
                      test "x$?" != "x0" && pkg_failed=yes
 
18642
else
 
18643
  pkg_failed=yes
 
18644
fi
 
18645
 else
 
18646
    pkg_failed=untried
 
18647
fi
 
18648
 
 
18649
 
 
18650
 
 
18651
if test $pkg_failed = yes; then
 
18652
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18653
$as_echo "no" >&6; }
 
18654
 
 
18655
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
18656
        _pkg_short_errors_supported=yes
 
18657
else
 
18658
        _pkg_short_errors_supported=no
 
18659
fi
 
18660
        if test $_pkg_short_errors_supported = yes; then
 
18661
                P11_KIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "p11-kit-1 >= 0.4" 2>&1`
 
18662
        else
 
18663
                P11_KIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "p11-kit-1 >= 0.4" 2>&1`
 
18664
        fi
 
18665
        # Put the nasty error message in config.log where it belongs
 
18666
        echo "$P11_KIT_PKG_ERRORS" >&5
 
18667
 
 
18668
        with_p11_kit=no
 
18669
elif test $pkg_failed = untried; then
 
18670
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18671
$as_echo "no" >&6; }
 
18672
        with_p11_kit=no
 
18673
else
 
18674
        P11_KIT_CFLAGS=$pkg_cv_P11_KIT_CFLAGS
 
18675
        P11_KIT_LIBS=$pkg_cv_P11_KIT_LIBS
 
18676
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
18677
$as_echo "yes" >&6; }
 
18678
        with_p11_kit=yes
 
18679
fi
 
18680
        if test "$with_p11_kit" != "no";then
 
18681
 
 
18682
$as_echo "#define ENABLE_PKCS11 1" >>confdefs.h
 
18683
 
 
18684
                CFLAGS="$CFLAGS $P11_KIT_CFLAGS"
 
18685
                LIBS="$LIBS $P11_KIT_LIBS"
 
18686
                if test "x$GNUTLS_REQUIRES_PRIVATE" = "x"; then
 
18687
                        GNUTLS_REQUIRES_PRIVATE="Requires.private: p11-kit-1"
 
18688
                else
 
18689
                        GNUTLS_REQUIRES_PRIVATE="${GNUTLS_REQUIRES_PRIVATE}, p11-kit-1"
 
18690
                fi
 
18691
        else
 
18692
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
 
18693
***
 
18694
*** p11-kit was not found. PKCS #11 support will be disabled.
 
18695
*** You may get it from http://p11-glue.freedesktop.org/p11-kit.html
 
18696
*** " >&5
 
18697
$as_echo "$as_me: WARNING:
 
18698
***
 
18699
*** p11-kit was not found. PKCS #11 support will be disabled.
 
18700
*** You may get it from http://p11-glue.freedesktop.org/p11-kit.html
 
18701
*** " >&2;}
 
18702
        fi
 
18703
fi
 
18704
 
 
18705
 
 
18706
 
 
18707
 
16656
18708
 
16657
18709
 
16658
18710
          LIBC_FATAL_STDERR_=1
16659
18711
  export LIBC_FATAL_STDERR_
16660
18712
 
 
18713
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
 
18714
if test "x$ac_cv_type_size_t" = xyes; then :
 
18715
 
 
18716
else
 
18717
 
 
18718
cat >>confdefs.h <<_ACEOF
 
18719
#define size_t unsigned int
 
18720
_ACEOF
 
18721
 
 
18722
fi
 
18723
 
16661
18724
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16662
18725
# for constant arguments.  Useless!
16663
18726
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16664
18727
$as_echo_n "checking for working alloca.h... " >&6; }
16665
 
if test "${ac_cv_working_alloca_h+set}" = set; then :
 
18728
if ${ac_cv_working_alloca_h+:} false; then :
16666
18729
  $as_echo_n "(cached) " >&6
16667
18730
else
16668
18731
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16695
18758
 
16696
18759
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16697
18760
$as_echo_n "checking for alloca... " >&6; }
16698
 
if test "${ac_cv_func_alloca_works+set}" = set; then :
 
18761
if ${ac_cv_func_alloca_works+:} false; then :
16699
18762
  $as_echo_n "(cached) " >&6
16700
18763
else
16701
18764
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16714
18777
 #pragma alloca
16715
18778
#   else
16716
18779
#    ifndef alloca /* predefined by HP cc +Olibcalls */
16717
 
char *alloca ();
 
18780
void *alloca (size_t);
16718
18781
#    endif
16719
18782
#   endif
16720
18783
#  endif
16762
18825
 
16763
18826
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16764
18827
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16765
 
if test "${ac_cv_os_cray+set}" = set; then :
 
18828
if ${ac_cv_os_cray+:} false; then :
16766
18829
  $as_echo_n "(cached) " >&6
16767
18830
else
16768
18831
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16803
18866
 
16804
18867
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16805
18868
$as_echo_n "checking stack direction for C alloca... " >&6; }
16806
 
if test "${ac_cv_c_stack_direction+set}" = set; then :
 
18869
if ${ac_cv_c_stack_direction+:} false; then :
16807
18870
  $as_echo_n "(cached) " >&6
16808
18871
else
16809
18872
  if test "$cross_compiling" = yes; then :
16813
18876
/* end confdefs.h.  */
16814
18877
$ac_includes_default
16815
18878
int
16816
 
find_stack_direction ()
 
18879
find_stack_direction (int *addr, int depth)
16817
18880
{
16818
 
  static char *addr = 0;
16819
 
  auto char dummy;
16820
 
  if (addr == 0)
16821
 
    {
16822
 
      addr = &dummy;
16823
 
      return find_stack_direction ();
16824
 
    }
16825
 
  else
16826
 
    return (&dummy > addr) ? 1 : -1;
 
18881
  int dir, dummy = 0;
 
18882
  if (! addr)
 
18883
    addr = &dummy;
 
18884
  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
 
18885
  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
 
18886
  return dir + dummy;
16827
18887
}
16828
18888
 
16829
18889
int
16830
 
main ()
 
18890
main (int argc, char **argv)
16831
18891
{
16832
 
  return find_stack_direction () < 0;
 
18892
  return find_stack_direction (0, argc + !argv + 20) < 0;
16833
18893
}
16834
18894
_ACEOF
16835
18895
if ac_fn_c_try_run "$LINENO"; then :
16855
18915
 
16856
18916
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16857
18917
$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16858
 
if test "${gl_cv_have_include_next+set}" = set; then :
 
18918
if ${gl_cv_have_include_next+:} false; then :
16859
18919
  $as_echo_n "(cached) " >&6
16860
18920
else
16861
18921
  rm -rf conftestd1a conftestd1b conftestd2
16933
18993
 
16934
18994
 
16935
18995
 
16936
 
 
16937
 
 
16938
 
 
16939
 
 
16940
 
  for ac_header in $ac_header_list
16941
 
do :
16942
 
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16943
 
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16944
 
"
16945
 
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16946
 
  cat >>confdefs.h <<_ACEOF
16947
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
18996
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
 
18997
$as_echo_n "checking whether system header files limit the line length... " >&6; }
 
18998
if ${gl_cv_pragma_columns+:} false; then :
 
18999
  $as_echo_n "(cached) " >&6
 
19000
else
 
19001
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19002
/* end confdefs.h.  */
 
19003
 
 
19004
#ifdef __TANDEM
 
19005
choke me
 
19006
#endif
 
19007
 
16948
19008
_ACEOF
16949
 
 
16950
 
fi
16951
 
 
16952
 
done
16953
 
 
 
19009
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
19010
  $EGREP "choke me" >/dev/null 2>&1; then :
 
19011
  gl_cv_pragma_columns=yes
 
19012
else
 
19013
  gl_cv_pragma_columns=no
 
19014
fi
 
19015
rm -f conftest*
 
19016
 
 
19017
 
 
19018
fi
 
19019
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
 
19020
$as_echo "$gl_cv_pragma_columns" >&6; }
 
19021
  if test $gl_cv_pragma_columns = yes; then
 
19022
    PRAGMA_COLUMNS="#pragma COLUMNS 10000"
 
19023
  else
 
19024
    PRAGMA_COLUMNS=
 
19025
  fi
16954
19026
 
16955
19027
 
16956
19028
 
16957
19029
 
16958
19030
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
16959
19031
$as_echo_n "checking for complete errno.h... " >&6; }
16960
 
if test "${gl_cv_header_errno_h_complete+set}" = set; then :
 
19032
if ${gl_cv_header_errno_h_complete+:} false; then :
16961
19033
  $as_echo_n "(cached) " >&6
16962
19034
else
16963
19035
 
16989
19061
#if !defined ENOTSUP
16990
19062
booboo
16991
19063
#endif
 
19064
#if !defined ENETRESET
 
19065
booboo
 
19066
#endif
 
19067
#if !defined ECONNABORTED
 
19068
booboo
 
19069
#endif
16992
19070
#if !defined ESTALE
16993
19071
booboo
16994
19072
#endif
 
19073
#if !defined EDQUOT
 
19074
booboo
 
19075
#endif
16995
19076
#if !defined ECANCELED
16996
19077
booboo
16997
19078
#endif
17018
19099
 
17019
19100
 
17020
19101
 
 
19102
 
 
19103
 
17021
19104
     if test $gl_cv_have_include_next = yes; then
17022
19105
       gl_cv_next_errno_h='<'errno.h'>'
17023
19106
     else
17024
19107
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
17025
19108
$as_echo_n "checking absolute name of <errno.h>... " >&6; }
17026
 
if test "${gl_cv_next_errno_h+set}" = set; then :
 
19109
if ${gl_cv_next_errno_h+:} false; then :
17027
19110
  $as_echo_n "(cached) " >&6
17028
19111
else
17029
19112
 
17030
 
          if test $ac_cv_header_errno_h = yes; then
17031
 
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19113
               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17032
19114
/* end confdefs.h.  */
17033
19115
#include <errno.h>
17034
19116
 
17035
19117
_ACEOF
17036
 
                                                                                                case "$host_os" in
17037
 
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
17038
 
              *)    gl_absname_cpp="$ac_cpp" ;;
17039
 
            esac
17040
 
                                                gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17041
 
               sed -n '\#/errno.h#{
17042
 
                 s#.*"\(.*/errno.h\)".*#\1#
17043
 
                 s#^/[^/]#//&#
17044
 
                 p
17045
 
                 q
17046
 
               }'`'"'
17047
 
          else
17048
 
            gl_cv_next_errno_h='<'errno.h'>'
17049
 
          fi
 
19118
                                                                                                                        case "$host_os" in
 
19119
                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
19120
                 *)    gl_absname_cpp="$ac_cpp" ;;
 
19121
               esac
 
19122
                                                            gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
19123
                  sed -n '\#/errno.h#{
 
19124
                    s#.*"\(.*/errno.h\)".*#\1#
 
19125
                    s#^/[^/]#//&#
 
19126
                    p
 
19127
                    q
 
19128
                  }'`'"'
 
19129
 
17050
19130
 
17051
19131
fi
17052
19132
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
17065
19145
 
17066
19146
 
17067
19147
 
 
19148
 
17068
19149
    ERRNO_H='errno.h'
17069
19150
  fi
17070
19151
 
 
19152
   if test -n "$ERRNO_H"; then
 
19153
  GL_GENERATE_ERRNO_H_TRUE=
 
19154
  GL_GENERATE_ERRNO_H_FALSE='#'
 
19155
else
 
19156
  GL_GENERATE_ERRNO_H_TRUE='#'
 
19157
  GL_GENERATE_ERRNO_H_FALSE=
 
19158
fi
 
19159
 
17071
19160
 
17072
19161
  if test -n "$ERRNO_H"; then
17073
19162
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
17074
19163
$as_echo_n "checking for EMULTIHOP value... " >&6; }
17075
 
if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
 
19164
if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
17076
19165
  $as_echo_n "(cached) " >&6
17077
19166
else
17078
19167
 
17143
19232
  if test -n "$ERRNO_H"; then
17144
19233
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
17145
19234
$as_echo_n "checking for ENOLINK value... " >&6; }
17146
 
if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
 
19235
if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
17147
19236
  $as_echo_n "(cached) " >&6
17148
19237
else
17149
19238
 
17214
19303
  if test -n "$ERRNO_H"; then
17215
19304
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
17216
19305
$as_echo_n "checking for EOVERFLOW value... " >&6; }
17217
 
if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
 
19306
if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
17218
19307
  $as_echo_n "(cached) " >&6
17219
19308
else
17220
19309
 
17283
19372
 
17284
19373
 
17285
19374
 
17286
 
 
17287
 
 
17288
19375
  GNULIB_DPRINTF=0;
17289
19376
  GNULIB_FCLOSE=0;
17290
19377
  GNULIB_FFLUSH=0;
 
19378
  GNULIB_FGETC=0;
 
19379
  GNULIB_FGETS=0;
17291
19380
  GNULIB_FOPEN=0;
17292
19381
  GNULIB_FPRINTF=0;
17293
19382
  GNULIB_FPRINTF_POSIX=0;
17294
19383
  GNULIB_FPURGE=0;
17295
19384
  GNULIB_FPUTC=0;
17296
19385
  GNULIB_FPUTS=0;
 
19386
  GNULIB_FREAD=0;
17297
19387
  GNULIB_FREOPEN=0;
 
19388
  GNULIB_FSCANF=0;
17298
19389
  GNULIB_FSEEK=0;
17299
19390
  GNULIB_FSEEKO=0;
17300
19391
  GNULIB_FTELL=0;
17301
19392
  GNULIB_FTELLO=0;
17302
19393
  GNULIB_FWRITE=0;
 
19394
  GNULIB_GETC=0;
 
19395
  GNULIB_GETCHAR=0;
17303
19396
  GNULIB_GETDELIM=0;
17304
19397
  GNULIB_GETLINE=0;
 
19398
  GNULIB_GETS=0;
17305
19399
  GNULIB_OBSTACK_PRINTF=0;
17306
19400
  GNULIB_OBSTACK_PRINTF_POSIX=0;
17307
19401
  GNULIB_PERROR=0;
17314
19408
  GNULIB_REMOVE=0;
17315
19409
  GNULIB_RENAME=0;
17316
19410
  GNULIB_RENAMEAT=0;
 
19411
  GNULIB_SCANF=0;
17317
19412
  GNULIB_SNPRINTF=0;
17318
19413
  GNULIB_SPRINTF_POSIX=0;
 
19414
  GNULIB_STDIO_H_NONBLOCKING=0;
17319
19415
  GNULIB_STDIO_H_SIGPIPE=0;
17320
19416
  GNULIB_TMPFILE=0;
17321
19417
  GNULIB_VASPRINTF=0;
 
19418
  GNULIB_VFSCANF=0;
 
19419
  GNULIB_VSCANF=0;
17322
19420
  GNULIB_VDPRINTF=0;
17323
19421
  GNULIB_VFPRINTF=0;
17324
19422
  GNULIB_VFPRINTF_POSIX=0;
17327
19425
  GNULIB_VSNPRINTF=0;
17328
19426
  GNULIB_VSPRINTF_POSIX=0;
17329
19427
    HAVE_DECL_FPURGE=1;
 
19428
  HAVE_DECL_FSEEKO=1;
 
19429
  HAVE_DECL_FTELLO=1;
17330
19430
  HAVE_DECL_GETDELIM=1;
17331
19431
  HAVE_DECL_GETLINE=1;
17332
19432
  HAVE_DECL_OBSTACK_PRINTF=1;
17360
19460
  REPLACE_RENAMEAT=0;
17361
19461
  REPLACE_SNPRINTF=0;
17362
19462
  REPLACE_SPRINTF=0;
 
19463
  REPLACE_STDIO_READ_FUNCS=0;
17363
19464
  REPLACE_STDIO_WRITE_FUNCS=0;
17364
19465
  REPLACE_TMPFILE=0;
17365
19466
  REPLACE_VASPRINTF=0;
17370
19471
  REPLACE_VSPRINTF=0;
17371
19472
 
17372
19473
 
17373
 
 
17374
 
 
17375
 
 
17376
 
 
17377
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5
17378
 
$as_echo_n "checking for fseeko... " >&6; }
17379
 
if test "${gl_cv_func_fseeko+set}" = set; then :
17380
 
  $as_echo_n "(cached) " >&6
17381
 
else
17382
 
 
17383
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17384
 
/* end confdefs.h.  */
17385
 
#include <stdio.h>
17386
 
 
17387
 
int
17388
 
main ()
17389
 
{
17390
 
fseeko (stdin, 0, 0);
17391
 
  ;
17392
 
  return 0;
17393
 
}
17394
 
_ACEOF
17395
 
if ac_fn_c_try_link "$LINENO"; then :
17396
 
  gl_cv_func_fseeko=yes
17397
 
else
17398
 
  gl_cv_func_fseeko=no
17399
 
fi
17400
 
rm -f core conftest.err conftest.$ac_objext \
17401
 
    conftest$ac_exeext conftest.$ac_ext
17402
 
 
17403
 
fi
17404
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fseeko" >&5
17405
 
$as_echo "$gl_cv_func_fseeko" >&6; }
17406
 
 
17407
 
 
17408
19474
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdin defaults to large file offsets" >&5
17409
19475
$as_echo_n "checking whether stdin defaults to large file offsets... " >&6; }
17410
 
if test "${gl_cv_var_stdin_large_offset+set}" = set; then :
 
19476
if ${gl_cv_var_stdin_large_offset+:} false; then :
17411
19477
  $as_echo_n "(cached) " >&6
17412
19478
else
17413
19479
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17440
19506
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var_stdin_large_offset" >&5
17441
19507
$as_echo "$gl_cv_var_stdin_large_offset" >&6; }
17442
19508
 
 
19509
ac_fn_c_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "$ac_includes_default"
 
19510
if test "x$ac_cv_have_decl_fseeko" = xyes; then :
 
19511
  ac_have_decl=1
 
19512
else
 
19513
  ac_have_decl=0
 
19514
fi
 
19515
 
 
19516
cat >>confdefs.h <<_ACEOF
 
19517
#define HAVE_DECL_FSEEKO $ac_have_decl
 
19518
_ACEOF
 
19519
 
 
19520
 
 
19521
 
 
19522
 
 
19523
 
 
19524
 
 
19525
 
 
19526
 
 
19527
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5
 
19528
$as_echo_n "checking for fseeko... " >&6; }
 
19529
if ${gl_cv_func_fseeko+:} false; then :
 
19530
  $as_echo_n "(cached) " >&6
 
19531
else
 
19532
 
 
19533
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19534
/* end confdefs.h.  */
 
19535
#include <stdio.h>
 
19536
 
 
19537
int
 
19538
main ()
 
19539
{
 
19540
fseeko (stdin, 0, 0);
 
19541
  ;
 
19542
  return 0;
 
19543
}
 
19544
_ACEOF
 
19545
if ac_fn_c_try_link "$LINENO"; then :
 
19546
  gl_cv_func_fseeko=yes
 
19547
else
 
19548
  gl_cv_func_fseeko=no
 
19549
fi
 
19550
rm -f core conftest.err conftest.$ac_objext \
 
19551
    conftest$ac_exeext conftest.$ac_ext
 
19552
 
 
19553
fi
 
19554
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fseeko" >&5
 
19555
$as_echo "$gl_cv_func_fseeko" >&6; }
 
19556
 
 
19557
 
 
19558
  if test $ac_cv_have_decl_fseeko = no; then
 
19559
    HAVE_DECL_FSEEKO=0
 
19560
  fi
 
19561
 
 
19562
  if test $gl_cv_func_fseeko = no; then
 
19563
    HAVE_FSEEKO=0
 
19564
  else
 
19565
    if test $gl_cv_var_stdin_large_offset = no; then
 
19566
      REPLACE_FSEEKO=1
 
19567
    fi
 
19568
 
 
19569
  fi
 
19570
 
 
19571
ac_fn_c_check_decl "$LINENO" "ftello" "ac_cv_have_decl_ftello" "$ac_includes_default"
 
19572
if test "x$ac_cv_have_decl_ftello" = xyes; then :
 
19573
  ac_have_decl=1
 
19574
else
 
19575
  ac_have_decl=0
 
19576
fi
 
19577
 
 
19578
cat >>confdefs.h <<_ACEOF
 
19579
#define HAVE_DECL_FTELLO $ac_have_decl
 
19580
_ACEOF
 
19581
 
 
19582
 
 
19583
 
 
19584
 
 
19585
 
 
19586
 
 
19587
 
 
19588
 
 
19589
 
 
19590
  if test $ac_cv_have_decl_ftello = no; then
 
19591
    HAVE_DECL_FTELLO=0
 
19592
  fi
 
19593
 
 
19594
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
 
19595
$as_echo_n "checking for ftello... " >&6; }
 
19596
if ${gl_cv_func_ftello+:} false; then :
 
19597
  $as_echo_n "(cached) " >&6
 
19598
else
 
19599
 
 
19600
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19601
/* end confdefs.h.  */
 
19602
#include <stdio.h>
 
19603
int
 
19604
main ()
 
19605
{
 
19606
ftello (stdin);
 
19607
  ;
 
19608
  return 0;
 
19609
}
 
19610
_ACEOF
 
19611
if ac_fn_c_try_link "$LINENO"; then :
 
19612
  gl_cv_func_ftello=yes
 
19613
else
 
19614
  gl_cv_func_ftello=no
 
19615
fi
 
19616
rm -f core conftest.err conftest.$ac_objext \
 
19617
    conftest$ac_exeext conftest.$ac_ext
 
19618
 
 
19619
fi
 
19620
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
 
19621
$as_echo "$gl_cv_func_ftello" >&6; }
 
19622
  if test $gl_cv_func_ftello = no; then
 
19623
    HAVE_FTELLO=0
 
19624
  else
 
19625
    if test $gl_cv_var_stdin_large_offset = no; then
 
19626
      REPLACE_FTELLO=1
 
19627
    else
 
19628
 
 
19629
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
 
19630
$as_echo_n "checking whether ftello works... " >&6; }
 
19631
if ${gl_cv_func_ftello_works+:} false; then :
 
19632
  $as_echo_n "(cached) " >&6
 
19633
else
 
19634
 
 
19635
                              case "$host_os" in
 
19636
                      # Guess no on Solaris.
 
19637
            solaris*) gl_cv_func_ftello_works="guessing no" ;;
 
19638
                      # Guess yes otherwise.
 
19639
            *)        gl_cv_func_ftello_works="guessing yes" ;;
 
19640
          esac
 
19641
          if test "$cross_compiling" = yes; then :
 
19642
  :
 
19643
else
 
19644
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19645
/* end confdefs.h.  */
 
19646
 
 
19647
#include <stdio.h>
 
19648
#include <stdlib.h>
 
19649
#include <string.h>
 
19650
#define TESTFILE "conftest.tmp"
 
19651
int
 
19652
main (void)
 
19653
{
 
19654
  FILE *fp;
 
19655
 
 
19656
  /* Create a file with some contents.  */
 
19657
  fp = fopen (TESTFILE, "w");
 
19658
  if (fp == NULL)
 
19659
    return 70;
 
19660
  if (fwrite ("foogarsh", 1, 8, fp) < 8)
 
19661
    return 71;
 
19662
  if (fclose (fp))
 
19663
    return 72;
 
19664
 
 
19665
  /* The file's contents is now "foogarsh".  */
 
19666
 
 
19667
  /* Try writing after reading to EOF.  */
 
19668
  fp = fopen (TESTFILE, "r+");
 
19669
  if (fp == NULL)
 
19670
    return 73;
 
19671
  if (fseek (fp, -1, SEEK_END))
 
19672
    return 74;
 
19673
  if (!(getc (fp) == 'h'))
 
19674
    return 1;
 
19675
  if (!(getc (fp) == EOF))
 
19676
    return 2;
 
19677
  if (!(ftell (fp) == 8))
 
19678
    return 3;
 
19679
  if (!(ftell (fp) == 8))
 
19680
    return 4;
 
19681
  if (!(putc ('!', fp) == '!'))
 
19682
    return 5;
 
19683
  if (!(ftell (fp) == 9))
 
19684
    return 6;
 
19685
  if (!(fclose (fp) == 0))
 
19686
    return 7;
 
19687
  fp = fopen (TESTFILE, "r");
 
19688
  if (fp == NULL)
 
19689
    return 75;
 
19690
  {
 
19691
    char buf[10];
 
19692
    if (!(fread (buf, 1, 10, fp) == 9))
 
19693
      return 10;
 
19694
    if (!(memcmp (buf, "foogarsh!", 9) == 0))
 
19695
      return 11;
 
19696
  }
 
19697
  if (!(fclose (fp) == 0))
 
19698
    return 12;
 
19699
 
 
19700
  /* The file's contents is now "foogarsh!".  */
 
19701
 
 
19702
  return 0;
 
19703
}
 
19704
_ACEOF
 
19705
if ac_fn_c_try_run "$LINENO"; then :
 
19706
  gl_cv_func_ftello_works=yes
 
19707
else
 
19708
  gl_cv_func_ftello_works=no
 
19709
fi
 
19710
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
19711
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
19712
fi
 
19713
 
 
19714
 
 
19715
fi
 
19716
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
 
19717
$as_echo "$gl_cv_func_ftello_works" >&6; }
 
19718
      case "$gl_cv_func_ftello_works" in
 
19719
        *yes) ;;
 
19720
        *)
 
19721
          REPLACE_FTELLO=1
 
19722
 
 
19723
$as_echo "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
 
19724
 
 
19725
          ;;
 
19726
      esac
 
19727
    fi
 
19728
  fi
 
19729
 
17443
19730
 
17444
19731
  GNULIB_CHOWN=0;
17445
19732
  GNULIB_CLOSE=0;
17461
19748
  GNULIB_GETLOGIN_R=0;
17462
19749
  GNULIB_GETPAGESIZE=0;
17463
19750
  GNULIB_GETUSERSHELL=0;
 
19751
  GNULIB_GROUP_MEMBER=0;
17464
19752
  GNULIB_LCHOWN=0;
17465
19753
  GNULIB_LINK=0;
17466
19754
  GNULIB_LINKAT=0;
17467
19755
  GNULIB_LSEEK=0;
 
19756
  GNULIB_PIPE=0;
17468
19757
  GNULIB_PIPE2=0;
17469
19758
  GNULIB_PREAD=0;
17470
19759
  GNULIB_PWRITE=0;
 
19760
  GNULIB_READ=0;
17471
19761
  GNULIB_READLINK=0;
17472
19762
  GNULIB_READLINKAT=0;
17473
19763
  GNULIB_RMDIR=0;
17476
19766
  GNULIB_SYMLINKAT=0;
17477
19767
  GNULIB_TTYNAME_R=0;
17478
19768
  GNULIB_UNISTD_H_GETOPT=0;
 
19769
  GNULIB_UNISTD_H_NONBLOCKING=0;
17479
19770
  GNULIB_UNISTD_H_SIGPIPE=0;
17480
19771
  GNULIB_UNLINK=0;
17481
19772
  GNULIB_UNLINKAT=0;
17490
19781
  HAVE_FCHOWNAT=1;
17491
19782
  HAVE_FSYNC=1;
17492
19783
  HAVE_FTRUNCATE=1;
17493
 
  HAVE_GETDOMAINNAME=1;
17494
19784
  HAVE_GETDTABLESIZE=1;
17495
19785
  HAVE_GETGROUPS=1;
17496
19786
  HAVE_GETHOSTNAME=1;
17497
19787
  HAVE_GETLOGIN=1;
17498
19788
  HAVE_GETPAGESIZE=1;
 
19789
  HAVE_GROUP_MEMBER=1;
17499
19790
  HAVE_LCHOWN=1;
17500
19791
  HAVE_LINK=1;
17501
19792
  HAVE_LINKAT=1;
 
19793
  HAVE_PIPE=1;
17502
19794
  HAVE_PIPE2=1;
17503
19795
  HAVE_PREAD=1;
17504
19796
  HAVE_PWRITE=1;
17507
19799
  HAVE_SLEEP=1;
17508
19800
  HAVE_SYMLINK=1;
17509
19801
  HAVE_SYMLINKAT=1;
17510
 
  HAVE_TTYNAME_R=1;
17511
19802
  HAVE_UNLINKAT=1;
17512
19803
  HAVE_USLEEP=1;
17513
19804
  HAVE_DECL_ENVIRON=1;
 
19805
  HAVE_DECL_FCHDIR=1;
 
19806
  HAVE_DECL_GETDOMAINNAME=1;
17514
19807
  HAVE_DECL_GETLOGIN_R=1;
17515
19808
  HAVE_DECL_GETPAGESIZE=1;
17516
19809
  HAVE_DECL_GETUSERSHELL=1;
 
19810
  HAVE_DECL_TTYNAME_R=1;
17517
19811
  HAVE_OS_H=0;
17518
19812
  HAVE_SYS_PARAM_H=0;
17519
19813
  REPLACE_CHOWN=0;
17522
19816
  REPLACE_DUP2=0;
17523
19817
  REPLACE_FCHOWNAT=0;
17524
19818
  REPLACE_GETCWD=0;
 
19819
  REPLACE_GETDOMAINNAME=0;
 
19820
  REPLACE_GETLOGIN_R=0;
17525
19821
  REPLACE_GETGROUPS=0;
17526
19822
  REPLACE_GETPAGESIZE=0;
17527
19823
  REPLACE_LCHOWN=0;
17530
19826
  REPLACE_LSEEK=0;
17531
19827
  REPLACE_PREAD=0;
17532
19828
  REPLACE_PWRITE=0;
 
19829
  REPLACE_READ=0;
17533
19830
  REPLACE_READLINK=0;
17534
19831
  REPLACE_RMDIR=0;
17535
19832
  REPLACE_SLEEP=0;
17544
19841
 
17545
19842
 
17546
19843
 
 
19844
  GNULIB__EXIT=0;
 
19845
  GNULIB_ATOLL=0;
 
19846
  GNULIB_CALLOC_POSIX=0;
 
19847
  GNULIB_CANONICALIZE_FILE_NAME=0;
 
19848
  GNULIB_GETLOADAVG=0;
 
19849
  GNULIB_GETSUBOPT=0;
 
19850
  GNULIB_GRANTPT=0;
 
19851
  GNULIB_MALLOC_POSIX=0;
 
19852
  GNULIB_MBTOWC=0;
 
19853
  GNULIB_MKDTEMP=0;
 
19854
  GNULIB_MKOSTEMP=0;
 
19855
  GNULIB_MKOSTEMPS=0;
 
19856
  GNULIB_MKSTEMP=0;
 
19857
  GNULIB_MKSTEMPS=0;
 
19858
  GNULIB_PTSNAME=0;
 
19859
  GNULIB_PUTENV=0;
 
19860
  GNULIB_RANDOM_R=0;
 
19861
  GNULIB_REALLOC_POSIX=0;
 
19862
  GNULIB_REALPATH=0;
 
19863
  GNULIB_RPMATCH=0;
 
19864
  GNULIB_SETENV=0;
 
19865
  GNULIB_STRTOD=0;
 
19866
  GNULIB_STRTOLL=0;
 
19867
  GNULIB_STRTOULL=0;
 
19868
  GNULIB_SYSTEM_POSIX=0;
 
19869
  GNULIB_UNLOCKPT=0;
 
19870
  GNULIB_UNSETENV=0;
 
19871
  GNULIB_WCTOMB=0;
 
19872
    HAVE__EXIT=1;
 
19873
  HAVE_ATOLL=1;
 
19874
  HAVE_CANONICALIZE_FILE_NAME=1;
 
19875
  HAVE_DECL_GETLOADAVG=1;
 
19876
  HAVE_GETSUBOPT=1;
 
19877
  HAVE_GRANTPT=1;
 
19878
  HAVE_MKDTEMP=1;
 
19879
  HAVE_MKOSTEMP=1;
 
19880
  HAVE_MKOSTEMPS=1;
 
19881
  HAVE_MKSTEMP=1;
 
19882
  HAVE_MKSTEMPS=1;
 
19883
  HAVE_PTSNAME=1;
 
19884
  HAVE_RANDOM_H=1;
 
19885
  HAVE_RANDOM_R=1;
 
19886
  HAVE_REALPATH=1;
 
19887
  HAVE_RPMATCH=1;
 
19888
  HAVE_SETENV=1;
 
19889
  HAVE_DECL_SETENV=1;
 
19890
  HAVE_STRTOD=1;
 
19891
  HAVE_STRTOLL=1;
 
19892
  HAVE_STRTOULL=1;
 
19893
  HAVE_STRUCT_RANDOM_DATA=1;
 
19894
  HAVE_SYS_LOADAVG_H=0;
 
19895
  HAVE_UNLOCKPT=1;
 
19896
  HAVE_DECL_UNSETENV=1;
 
19897
  REPLACE_CALLOC=0;
 
19898
  REPLACE_CANONICALIZE_FILE_NAME=0;
 
19899
  REPLACE_MALLOC=0;
 
19900
  REPLACE_MBTOWC=0;
 
19901
  REPLACE_MKSTEMP=0;
 
19902
  REPLACE_PUTENV=0;
 
19903
  REPLACE_REALLOC=0;
 
19904
  REPLACE_REALPATH=0;
 
19905
  REPLACE_SETENV=0;
 
19906
  REPLACE_STRTOD=0;
 
19907
  REPLACE_UNSETENV=0;
 
19908
  REPLACE_WCTOMB=0;
 
19909
 
 
19910
 
 
19911
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
 
19912
$as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
 
19913
if ${gl_cv_func_malloc_posix+:} false; then :
 
19914
  $as_echo_n "(cached) " >&6
 
19915
else
 
19916
 
 
19917
                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19918
/* end confdefs.h.  */
 
19919
 
 
19920
int
 
19921
main ()
 
19922
{
 
19923
#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
 
19924
             choke me
 
19925
             #endif
 
19926
 
 
19927
  ;
 
19928
  return 0;
 
19929
}
 
19930
_ACEOF
 
19931
if ac_fn_c_try_compile "$LINENO"; then :
 
19932
  gl_cv_func_malloc_posix=yes
 
19933
else
 
19934
  gl_cv_func_malloc_posix=no
 
19935
fi
 
19936
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19937
 
 
19938
fi
 
19939
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
 
19940
$as_echo "$gl_cv_func_malloc_posix" >&6; }
 
19941
 
 
19942
 
 
19943
 
 
19944
 
 
19945
  for ac_header in $ac_header_list
 
19946
do :
 
19947
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
19948
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
19949
"
 
19950
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
19951
  cat >>confdefs.h <<_ACEOF
 
19952
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
19953
_ACEOF
 
19954
 
 
19955
fi
 
19956
 
 
19957
done
 
19958
 
 
19959
 
17547
19960
 
17548
19961
 
17549
19962
 
17563
19976
 
17564
19977
 
17565
19978
 
 
19979
  GNULIB_FFSL=0;
 
19980
  GNULIB_FFSLL=0;
17566
19981
  GNULIB_MEMCHR=0;
17567
19982
  GNULIB_MEMMEM=0;
17568
19983
  GNULIB_MEMPCPY=0;
17595
20010
  GNULIB_MBSSEP=0;
17596
20011
  GNULIB_MBSTOK_R=0;
17597
20012
  GNULIB_STRERROR=0;
 
20013
  GNULIB_STRERROR_R=0;
17598
20014
  GNULIB_STRSIGNAL=0;
17599
20015
  GNULIB_STRVERSCMP=0;
17600
20016
  HAVE_MBSLEN=0;
17601
 
    HAVE_MEMCHR=1;
 
20017
    HAVE_FFSL=1;
 
20018
  HAVE_FFSLL=1;
 
20019
  HAVE_MEMCHR=1;
17602
20020
  HAVE_DECL_MEMMEM=1;
17603
20021
  HAVE_MEMPCPY=1;
17604
20022
  HAVE_DECL_MEMRCHR=1;
17613
20031
  HAVE_STRSEP=1;
17614
20032
  HAVE_STRCASESTR=1;
17615
20033
  HAVE_DECL_STRTOK_R=1;
 
20034
  HAVE_DECL_STRERROR_R=1;
17616
20035
  HAVE_DECL_STRSIGNAL=1;
17617
20036
  HAVE_STRVERSCMP=1;
17618
20037
  REPLACE_MEMCHR=0;
17621
20040
  REPLACE_STRDUP=0;
17622
20041
  REPLACE_STRSTR=0;
17623
20042
  REPLACE_STRCASESTR=0;
 
20043
  REPLACE_STRCHRNUL=0;
17624
20044
  REPLACE_STRERROR=0;
 
20045
  REPLACE_STRERROR_R=0;
17625
20046
  REPLACE_STRNCAT=0;
17626
20047
  REPLACE_STRNDUP=0;
17627
20048
  REPLACE_STRNLEN=0;
17633
20054
 
17634
20055
 
17635
20056
 
17636
 
 
17637
 
 
17638
 
 
17639
 
 
17640
 
 
17641
20057
  # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
17642
20058
  # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
17643
20059
  # irrelevant for anonymous mappings.
17644
20060
  ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
17645
 
if test "x$ac_cv_func_mmap" = x""yes; then :
 
20061
if test "x$ac_cv_func_mmap" = xyes; then :
17646
20062
  gl_have_mmap=yes
17647
20063
else
17648
20064
  gl_have_mmap=no
17659
20075
 
17660
20076
#include <sys/mman.h>
17661
20077
#ifdef MAP_ANONYMOUS
17662
 
    I cant identify this map.
 
20078
    I cant identify this map
17663
20079
#endif
17664
20080
 
17665
20081
_ACEOF
17666
20082
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17667
 
  $EGREP "I cant identify this map." >/dev/null 2>&1; then :
 
20083
  $EGREP "I cant identify this map" >/dev/null 2>&1; then :
17668
20084
  gl_have_mmap_anonymous=yes
17669
20085
fi
17670
20086
rm -f conftest*
17675
20091
 
17676
20092
#include <sys/mman.h>
17677
20093
#ifdef MAP_ANON
17678
 
    I cant identify this map.
 
20094
    I cant identify this map
17679
20095
#endif
17680
20096
 
17681
20097
_ACEOF
17682
20098
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17683
 
  $EGREP "I cant identify this map." >/dev/null 2>&1; then :
 
20099
  $EGREP "I cant identify this map" >/dev/null 2>&1; then :
17684
20100
 
17685
20101
$as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
17686
20102
 
17703
20119
 
17704
20120
 
17705
20121
 
17706
 
  if test $ac_cv_func_memchr = yes; then
 
20122
  if test $HAVE_MEMCHR = 1; then
17707
20123
    # Detect platform-specific bugs in some versions of glibc:
17708
20124
    # memchr should not dereference anything with length 0
17709
20125
    #   http://bugzilla.redhat.com/499689
17713
20129
    # Assume that memchr works on platforms that lack mprotect.
17714
20130
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
17715
20131
$as_echo_n "checking whether memchr works... " >&6; }
17716
 
if test "${gl_cv_func_memchr_works+set}" = set; then :
 
20132
if ${gl_cv_func_memchr_works+:} false; then :
17717
20133
  $as_echo_n "(cached) " >&6
17718
20134
else
17719
20135
  if test "$cross_compiling" = yes; then :
17737
20153
main ()
17738
20154
{
17739
20155
 
 
20156
  int result = 0;
17740
20157
  char *fence = NULL;
17741
20158
#if HAVE_SYS_MMAN_H && HAVE_MPROTECT
17742
20159
# if HAVE_MAP_ANONYMOUS
17760
20177
  if (fence)
17761
20178
    {
17762
20179
      if (memchr (fence, 0, 0))
17763
 
        return 1;
 
20180
        result |= 1;
17764
20181
      strcpy (fence - 9, "12345678");
17765
20182
      if (memchr (fence - 9, 0, 79) != fence - 1)
17766
 
        return 2;
 
20183
        result |= 2;
 
20184
      if (memchr (fence - 1, 0, 3) != fence - 1)
 
20185
        result |= 4;
17767
20186
    }
17768
 
  return 0;
 
20187
  return result;
17769
20188
 
17770
20189
  ;
17771
20190
  return 0;
17786
20205
    if test "$gl_cv_func_memchr_works" != yes; then
17787
20206
      REPLACE_MEMCHR=1
17788
20207
    fi
17789
 
  else
17790
 
    HAVE_MEMCHR=0
17791
 
  fi
17792
 
  if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
17793
 
 
17794
 
 
17795
 
 
17796
 
 
17797
 
 
17798
 
 
17799
 
 
17800
 
 
17801
 
  lgl_LIBOBJS="$lgl_LIBOBJS memchr.$ac_objext"
17802
 
 
17803
 
 
17804
 
  for ac_header in bp-sym.h
17805
 
do :
17806
 
  ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
17807
 
if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
17808
 
  cat >>confdefs.h <<_ACEOF
17809
 
#define HAVE_BP_SYM_H 1
17810
 
_ACEOF
17811
 
 
17812
 
fi
17813
 
 
17814
 
done
17815
 
 
17816
 
 
17817
20208
  fi
17818
20209
 
17819
20210
ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
17820
 
if test "x$ac_cv_have_decl_memmem" = x""yes; then :
 
20211
if test "x$ac_cv_have_decl_memmem" = xyes; then :
17821
20212
  ac_have_decl=1
17822
20213
else
17823
20214
  ac_have_decl=0
17833
20224
 
17834
20225
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <limits.h> defines MIN and MAX" >&5
17835
20226
$as_echo_n "checking whether <limits.h> defines MIN and MAX... " >&6; }
17836
 
if test "${gl_cv_minmax_in_limits_h+set}" = set; then :
 
20227
if ${gl_cv_minmax_in_limits_h+:} false; then :
17837
20228
  $as_echo_n "(cached) " >&6
17838
20229
else
17839
20230
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17840
20231
/* end confdefs.h.  */
17841
20232
#include <limits.h>
17842
 
int x = MIN (42, 17);
 
20233
            int x = MIN (42, 17);
17843
20234
int
17844
20235
main ()
17845
20236
{
17870
20261
 
17871
20262
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/param.h> defines MIN and MAX" >&5
17872
20263
$as_echo_n "checking whether <sys/param.h> defines MIN and MAX... " >&6; }
17873
 
if test "${gl_cv_minmax_in_sys_param_h+set}" = set; then :
 
20264
if ${gl_cv_minmax_in_sys_param_h+:} false; then :
17874
20265
  $as_echo_n "(cached) " >&6
17875
20266
else
17876
20267
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17877
20268
/* end confdefs.h.  */
17878
20269
#include <sys/param.h>
17879
 
int x = MIN (42, 17);
 
20270
            int x = MIN (42, 17);
17880
20271
int
17881
20272
main ()
17882
20273
{
17939
20330
fi
17940
20331
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17941
20332
  if test $gl_cv_c_multiarch = yes; then
17942
 
 
17943
 
$as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
17944
 
 
17945
20333
    APPLE_UNIVERSAL_BUILD=1
17946
20334
  else
17947
20335
    APPLE_UNIVERSAL_BUILD=0
17955
20343
  HAVE_DECL_GAI_STRERROR=1;
17956
20344
  HAVE_DECL_GETADDRINFO=1;
17957
20345
  HAVE_DECL_GETNAMEINFO=1;
17958
 
 
17959
 
 
17960
 
 
17961
 
 
17962
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
17963
 
$as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
17964
 
if test "${gl_cv_func_malloc_posix+set}" = set; then :
 
20346
  REPLACE_GAI_STRERROR=0;
 
20347
 
 
20348
 
 
20349
 
 
20350
 
 
20351
 
 
20352
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
 
20353
$as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
 
20354
if ${gl_cv_func_snprintf_retval_c99+:} false; then :
17965
20355
  $as_echo_n "(cached) " >&6
17966
20356
else
17967
20357
 
17968
 
                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20358
      if test "$cross_compiling" = yes; then :
 
20359
 
 
20360
         case "$host_os" in
 
20361
                                 # Guess yes on glibc systems.
 
20362
           *-gnu*)               gl_cv_func_snprintf_retval_c99="guessing yes";;
 
20363
                                 # Guess yes on FreeBSD >= 5.
 
20364
           freebsd[1-4]*)        gl_cv_func_snprintf_retval_c99="guessing no";;
 
20365
           freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
 
20366
                                 # Guess yes on MacOS X >= 10.3.
 
20367
           darwin[1-6].*)        gl_cv_func_snprintf_retval_c99="guessing no";;
 
20368
           darwin*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
 
20369
                                 # Guess yes on OpenBSD >= 3.9.
 
20370
           openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
 
20371
                                 gl_cv_func_snprintf_retval_c99="guessing no";;
 
20372
           openbsd*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
 
20373
                                 # Guess yes on Solaris >= 2.10.
 
20374
           solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
 
20375
           solaris*)             gl_cv_func_printf_sizes_c99="guessing no";;
 
20376
                                 # Guess yes on AIX >= 4.
 
20377
           aix[1-3]*)            gl_cv_func_snprintf_retval_c99="guessing no";;
 
20378
           aix*)                 gl_cv_func_snprintf_retval_c99="guessing yes";;
 
20379
                                 # Guess yes on NetBSD >= 3.
 
20380
           netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
 
20381
                                 gl_cv_func_snprintf_retval_c99="guessing no";;
 
20382
           netbsd*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
 
20383
                                 # Guess yes on BeOS.
 
20384
           beos*)                gl_cv_func_snprintf_retval_c99="guessing yes";;
 
20385
                                 # If we don't know, assume the worst.
 
20386
           *)                    gl_cv_func_snprintf_retval_c99="guessing no";;
 
20387
         esac
 
20388
 
 
20389
else
 
20390
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17969
20391
/* end confdefs.h.  */
17970
20392
 
17971
 
int
17972
 
main ()
 
20393
#include <stdio.h>
 
20394
#include <string.h>
 
20395
static char buf[100];
 
20396
int main ()
17973
20397
{
17974
 
#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17975
 
         choke me
17976
 
         #endif
17977
 
 
17978
 
  ;
 
20398
  strcpy (buf, "ABCDEF");
 
20399
  if (snprintf (buf, 3, "%d %d", 4567, 89) != 7)
 
20400
    return 1;
 
20401
  if (snprintf (buf, 0, "%d %d", 4567, 89) != 7)
 
20402
    return 2;
 
20403
  if (snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
 
20404
    return 3;
17979
20405
  return 0;
17980
20406
}
17981
20407
_ACEOF
17982
 
if ac_fn_c_try_compile "$LINENO"; then :
17983
 
  gl_cv_func_malloc_posix=yes
 
20408
if ac_fn_c_try_run "$LINENO"; then :
 
20409
  gl_cv_func_snprintf_retval_c99=yes
17984
20410
else
17985
 
  gl_cv_func_malloc_posix=no
17986
 
fi
17987
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17988
 
 
17989
 
fi
17990
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
17991
 
$as_echo "$gl_cv_func_malloc_posix" >&6; }
17992
 
 
17993
 
 
17994
 
  GNULIB_ATOLL=0;
17995
 
  GNULIB_CALLOC_POSIX=0;
17996
 
  GNULIB_CANONICALIZE_FILE_NAME=0;
17997
 
  GNULIB_GETLOADAVG=0;
17998
 
  GNULIB_GETSUBOPT=0;
17999
 
  GNULIB_GRANTPT=0;
18000
 
  GNULIB_MALLOC_POSIX=0;
18001
 
  GNULIB_MKDTEMP=0;
18002
 
  GNULIB_MKOSTEMP=0;
18003
 
  GNULIB_MKOSTEMPS=0;
18004
 
  GNULIB_MKSTEMP=0;
18005
 
  GNULIB_MKSTEMPS=0;
18006
 
  GNULIB_PTSNAME=0;
18007
 
  GNULIB_PUTENV=0;
18008
 
  GNULIB_RANDOM_R=0;
18009
 
  GNULIB_REALLOC_POSIX=0;
18010
 
  GNULIB_REALPATH=0;
18011
 
  GNULIB_RPMATCH=0;
18012
 
  GNULIB_SETENV=0;
18013
 
  GNULIB_STRTOD=0;
18014
 
  GNULIB_STRTOLL=0;
18015
 
  GNULIB_STRTOULL=0;
18016
 
  GNULIB_UNLOCKPT=0;
18017
 
  GNULIB_UNSETENV=0;
18018
 
    HAVE_ATOLL=1;
18019
 
  HAVE_CALLOC_POSIX=1;
18020
 
  HAVE_CANONICALIZE_FILE_NAME=1;
18021
 
  HAVE_DECL_GETLOADAVG=1;
18022
 
  HAVE_GETSUBOPT=1;
18023
 
  HAVE_GRANTPT=1;
18024
 
  HAVE_MALLOC_POSIX=1;
18025
 
  HAVE_MKDTEMP=1;
18026
 
  HAVE_MKOSTEMP=1;
18027
 
  HAVE_MKOSTEMPS=1;
18028
 
  HAVE_MKSTEMP=1;
18029
 
  HAVE_MKSTEMPS=1;
18030
 
  HAVE_PTSNAME=1;
18031
 
  HAVE_RANDOM_R=1;
18032
 
  HAVE_REALLOC_POSIX=1;
18033
 
  HAVE_REALPATH=1;
18034
 
  HAVE_RPMATCH=1;
18035
 
  HAVE_SETENV=1;
18036
 
  HAVE_STRTOD=1;
18037
 
  HAVE_STRTOLL=1;
18038
 
  HAVE_STRTOULL=1;
18039
 
  HAVE_STRUCT_RANDOM_DATA=1;
18040
 
  HAVE_SYS_LOADAVG_H=0;
18041
 
  HAVE_UNLOCKPT=1;
18042
 
  HAVE_UNSETENV=1;
18043
 
  REPLACE_CANONICALIZE_FILE_NAME=0;
18044
 
  REPLACE_MKSTEMP=0;
18045
 
  REPLACE_PUTENV=0;
18046
 
  REPLACE_REALPATH=0;
18047
 
  REPLACE_SETENV=0;
18048
 
  REPLACE_STRTOD=0;
18049
 
  REPLACE_UNSETENV=0;
 
20411
  gl_cv_func_snprintf_retval_c99=no
 
20412
fi
 
20413
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
20414
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
20415
fi
 
20416
 
 
20417
 
 
20418
fi
 
20419
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
 
20420
$as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
18050
20421
 
18051
20422
ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
18052
 
if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
 
20423
if test "x$ac_cv_have_decl_snprintf" = xyes; then :
18053
20424
  ac_have_decl=1
18054
20425
else
18055
20426
  ac_have_decl=0
18059
20430
#define HAVE_DECL_SNPRINTF $ac_have_decl
18060
20431
_ACEOF
18061
20432
 
 
20433
 
 
20434
 
18062
20435
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18063
20436
$as_echo_n "checking for inline... " >&6; }
18064
 
if test "${ac_cv_c_inline+set}" = set; then :
 
20437
if ${ac_cv_c_inline+:} false; then :
18065
20438
  $as_echo_n "(cached) " >&6
18066
20439
else
18067
20440
  ac_cv_c_inline=no
18102
20475
esac
18103
20476
 
18104
20477
 
18105
 
 
18106
 
 
18107
 
  GNULIB_SOCKET=0;
18108
 
  GNULIB_CONNECT=0;
18109
 
  GNULIB_ACCEPT=0;
18110
 
  GNULIB_BIND=0;
18111
 
  GNULIB_GETPEERNAME=0;
18112
 
  GNULIB_GETSOCKNAME=0;
18113
 
  GNULIB_GETSOCKOPT=0;
18114
 
  GNULIB_LISTEN=0;
18115
 
  GNULIB_RECV=0;
18116
 
  GNULIB_SEND=0;
18117
 
  GNULIB_RECVFROM=0;
18118
 
  GNULIB_SENDTO=0;
18119
 
  GNULIB_SETSOCKOPT=0;
18120
 
  GNULIB_SHUTDOWN=0;
18121
 
  GNULIB_ACCEPT4=0;
18122
 
  HAVE_STRUCT_SOCKADDR_STORAGE=1;
18123
 
  HAVE_SA_FAMILY_T=1;
18124
 
  HAVE_ACCEPT4=1;
18125
 
 
18126
 
 
18127
 
 
18128
 
 
18129
 
 
18130
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
18131
 
$as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
18132
 
if test "${gl_cv_header_sys_socket_h_selfcontained+set}" = set; then :
18133
 
  $as_echo_n "(cached) " >&6
18134
 
else
18135
 
 
18136
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18137
 
/* end confdefs.h.  */
18138
 
#include <sys/socket.h>
18139
 
int
18140
 
main ()
18141
 
{
18142
 
 
18143
 
  ;
18144
 
  return 0;
18145
 
}
18146
 
_ACEOF
18147
 
if ac_fn_c_try_compile "$LINENO"; then :
18148
 
  gl_cv_header_sys_socket_h_selfcontained=yes
18149
 
else
18150
 
  gl_cv_header_sys_socket_h_selfcontained=no
18151
 
fi
18152
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18153
 
 
18154
 
fi
18155
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
18156
 
$as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
18157
 
  if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
18158
 
            for ac_func in shutdown
18159
 
do :
18160
 
  ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
18161
 
if test "x$ac_cv_func_shutdown" = x""yes; then :
18162
 
  cat >>confdefs.h <<_ACEOF
18163
 
#define HAVE_SHUTDOWN 1
18164
 
_ACEOF
18165
 
 
18166
 
fi
18167
 
done
18168
 
 
18169
 
    if test $ac_cv_func_shutdown = yes; then
18170
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
18171
 
$as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
18172
 
if test "${gl_cv_header_sys_socket_h_shut+set}" = set; then :
18173
 
  $as_echo_n "(cached) " >&6
18174
 
else
18175
 
 
18176
 
          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18177
 
/* end confdefs.h.  */
18178
 
#include <sys/socket.h>
18179
 
int
18180
 
main ()
18181
 
{
18182
 
int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
18183
 
  ;
18184
 
  return 0;
18185
 
}
18186
 
_ACEOF
18187
 
if ac_fn_c_try_compile "$LINENO"; then :
18188
 
  gl_cv_header_sys_socket_h_shut=yes
18189
 
else
18190
 
  gl_cv_header_sys_socket_h_shut=no
18191
 
fi
18192
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18193
 
 
18194
 
fi
18195
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
18196
 
$as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
18197
 
      if test $gl_cv_header_sys_socket_h_shut = no; then
18198
 
        SYS_SOCKET_H='sys/socket.h'
18199
 
      fi
18200
 
    fi
18201
 
  fi
18202
 
  # We need to check for ws2tcpip.h now.
18203
 
 
18204
 
 
18205
 
 
18206
 
 
18207
 
 
18208
 
 
18209
 
 
18210
 
     if test $gl_cv_have_include_next = yes; then
18211
 
       gl_cv_next_sys_socket_h='<'sys/socket.h'>'
18212
 
     else
18213
 
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
18214
 
$as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
18215
 
if test "${gl_cv_next_sys_socket_h+set}" = set; then :
18216
 
  $as_echo_n "(cached) " >&6
18217
 
else
18218
 
 
18219
 
          if test $ac_cv_header_sys_socket_h = yes; then
18220
 
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18221
 
/* end confdefs.h.  */
18222
 
#include <sys/socket.h>
18223
 
 
18224
 
_ACEOF
18225
 
                                                                                                case "$host_os" in
18226
 
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
18227
 
              *)    gl_absname_cpp="$ac_cpp" ;;
18228
 
            esac
18229
 
                                                gl_cv_next_sys_socket_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18230
 
               sed -n '\#/sys/socket.h#{
18231
 
                 s#.*"\(.*/sys/socket.h\)".*#\1#
18232
 
                 s#^/[^/]#//&#
18233
 
                 p
18234
 
                 q
18235
 
               }'`'"'
18236
 
          else
18237
 
            gl_cv_next_sys_socket_h='<'sys/socket.h'>'
18238
 
          fi
18239
 
 
18240
 
fi
18241
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
18242
 
$as_echo "$gl_cv_next_sys_socket_h" >&6; }
18243
 
     fi
18244
 
     NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
18245
 
 
18246
 
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18247
 
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18248
 
       gl_next_as_first_directive='<'sys/socket.h'>'
18249
 
     else
18250
 
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18251
 
       gl_next_as_first_directive=$gl_cv_next_sys_socket_h
18252
 
     fi
18253
 
     NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
18254
 
 
18255
 
 
18256
 
 
18257
 
  if test $ac_cv_header_sys_socket_h = yes; then
18258
 
    HAVE_SYS_SOCKET_H=1
18259
 
    HAVE_WS2TCPIP_H=0
18260
 
  else
18261
 
    HAVE_SYS_SOCKET_H=0
18262
 
                    for ac_header in ws2tcpip.h
 
20478
   if test $ac_cv_header_sys_socket_h = no; then
 
20479
                         for ac_header in ws2tcpip.h
18263
20480
do :
18264
20481
  ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
18265
 
if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
 
20482
if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
18266
20483
  cat >>confdefs.h <<_ACEOF
18267
20484
#define HAVE_WS2TCPIP_H 1
18268
20485
_ACEOF
18271
20488
 
18272
20489
done
18273
20490
 
18274
 
    if test $ac_cv_header_ws2tcpip_h = yes; then
18275
 
      HAVE_WS2TCPIP_H=1
18276
 
    else
18277
 
      HAVE_WS2TCPIP_H=0
18278
 
    fi
18279
 
  fi
18280
 
 
18281
 
 
18282
 
 
18283
 
  ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
18284
 
  /* sys/types.h is not needed according to POSIX, but the
18285
 
     sys/socket.h in i386-unknown-freebsd4.10 and
18286
 
     powerpc-apple-darwin5.5 required it. */
18287
 
#include <sys/types.h>
18288
 
#ifdef HAVE_SYS_SOCKET_H
18289
 
#include <sys/socket.h>
18290
 
#endif
18291
 
#ifdef HAVE_WS2TCPIP_H
18292
 
#include <ws2tcpip.h>
18293
 
#endif
18294
 
 
18295
 
"
18296
 
if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then :
18297
 
 
18298
 
cat >>confdefs.h <<_ACEOF
18299
 
#define HAVE_STRUCT_SOCKADDR_STORAGE 1
18300
 
_ACEOF
18301
 
 
18302
 
 
18303
 
fi
18304
 
ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
18305
 
  /* sys/types.h is not needed according to POSIX, but the
18306
 
     sys/socket.h in i386-unknown-freebsd4.10 and
18307
 
     powerpc-apple-darwin5.5 required it. */
18308
 
#include <sys/types.h>
18309
 
#ifdef HAVE_SYS_SOCKET_H
18310
 
#include <sys/socket.h>
18311
 
#endif
18312
 
#ifdef HAVE_WS2TCPIP_H
18313
 
#include <ws2tcpip.h>
18314
 
#endif
18315
 
 
18316
 
"
18317
 
if test "x$ac_cv_type_sa_family_t" = x""yes; then :
18318
 
 
18319
 
cat >>confdefs.h <<_ACEOF
18320
 
#define HAVE_SA_FAMILY_T 1
18321
 
_ACEOF
18322
 
 
18323
 
 
18324
 
fi
18325
 
 
18326
 
  if test $ac_cv_type_struct_sockaddr_storage = no; then
18327
 
    HAVE_STRUCT_SOCKADDR_STORAGE=0
18328
 
  fi
18329
 
  if test $ac_cv_type_sa_family_t = no; then
18330
 
    HAVE_SA_FAMILY_T=0
18331
 
  fi
18332
 
 
18333
 
 
18334
 
 
18335
 
 
18336
 
  if test $ac_cv_header_sys_socket_h != yes; then
18337
 
                    for ac_header in winsock2.h
18338
 
do :
18339
 
  ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
18340
 
if test "x$ac_cv_header_winsock2_h" = x""yes; then :
18341
 
  cat >>confdefs.h <<_ACEOF
18342
 
#define HAVE_WINSOCK2_H 1
18343
 
_ACEOF
18344
 
 
18345
 
fi
18346
 
 
18347
 
done
18348
 
 
18349
 
  fi
18350
 
  if test "$ac_cv_header_winsock2_h" = yes; then
18351
 
    HAVE_WINSOCK2_H=1
18352
 
    UNISTD_H_HAVE_WINSOCK2_H=1
18353
 
    SYS_IOCTL_H_HAVE_WINSOCK2_H=1
18354
 
  else
18355
 
    HAVE_WINSOCK2_H=0
18356
 
  fi
18357
 
 
18358
 
 
18359
 
 
18360
 
 
18361
 
    for gl_func in socket connect accept bind getpeername getsockname getsockopt     listen recv send recvfrom sendto setsockopt shutdown accept4; do
18362
 
    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18363
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18364
 
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18365
 
if eval "test \"\${$as_gl_Symbol+set}\"" = set; then :
18366
 
  $as_echo_n "(cached) " >&6
18367
 
else
18368
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18369
 
/* end confdefs.h.  */
18370
 
 
18371
 
/* Some systems require prerequisite headers.  */
18372
 
#include <sys/types.h>
18373
 
#if !defined __GLIBC__ && HAVE_SYS_TIME_H
18374
 
# include <sys/time.h>
18375
 
#endif
18376
 
#include <sys/select.h>
18377
 
 
18378
 
int
18379
 
main ()
18380
 
{
18381
 
#undef $gl_func
18382
 
  (void) $gl_func;
18383
 
  ;
18384
 
  return 0;
18385
 
}
18386
 
_ACEOF
18387
 
if ac_fn_c_try_compile "$LINENO"; then :
18388
 
  eval "$as_gl_Symbol=yes"
18389
 
else
18390
 
  eval "$as_gl_Symbol=no"
18391
 
fi
18392
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18393
 
fi
18394
 
eval ac_res=\$$as_gl_Symbol
18395
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18396
 
$as_echo "$ac_res" >&6; }
18397
 
     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
18398
 
  cat >>confdefs.h <<_ACEOF
18399
 
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18400
 
_ACEOF
18401
 
 
18402
 
                     eval ac_cv_have_decl_$gl_func=yes
18403
 
fi
18404
 
      done
18405
 
 
 
20491
   fi
18406
20492
 
18407
20493
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
18408
20494
$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
18409
 
if test "${ac_cv_header_stdbool_h+set}" = set; then :
 
20495
if ${ac_cv_header_stdbool_h+:} false; then :
18410
20496
  $as_echo_n "(cached) " >&6
18411
20497
else
18412
20498
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18413
20499
/* end confdefs.h.  */
18414
20500
 
18415
 
          #include <stdbool.h>
18416
 
          #ifndef bool
18417
 
           "error: bool is not defined"
18418
 
          #endif
18419
 
          #ifndef false
18420
 
           "error: false is not defined"
18421
 
          #endif
18422
 
          #if false
18423
 
           "error: false is not 0"
18424
 
          #endif
18425
 
          #ifndef true
18426
 
           "error: true is not defined"
18427
 
          #endif
18428
 
          #if true != 1
18429
 
           "error: true is not 1"
18430
 
          #endif
18431
 
          #ifndef __bool_true_false_are_defined
18432
 
           "error: __bool_true_false_are_defined is not defined"
18433
 
          #endif
18434
 
 
18435
 
          struct s { _Bool s: 1; _Bool t; } s;
18436
 
 
18437
 
          char a[true == 1 ? 1 : -1];
18438
 
          char b[false == 0 ? 1 : -1];
18439
 
          char c[__bool_true_false_are_defined == 1 ? 1 : -1];
18440
 
          char d[(bool) 0.5 == true ? 1 : -1];
18441
 
          bool e = &s;
18442
 
          char f[(_Bool) 0.0 == false ? 1 : -1];
18443
 
          char g[true];
18444
 
          char h[sizeof (_Bool)];
18445
 
          char i[sizeof s.t];
18446
 
          enum { j = false, k = true, l = false * true, m = true * 256 };
18447
 
          _Bool n[m];
18448
 
          char o[sizeof n == m * sizeof n[0] ? 1 : -1];
18449
 
          char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
18450
 
          #if defined __xlc__ || defined __GNUC__
18451
 
           /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
18452
 
              reported by James Lemley on 2005-10-05; see
18453
 
              http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
18454
 
              This test is not quite right, since xlc is allowed to
18455
 
              reject this program, as the initializer for xlcbug is
18456
 
              not one of the forms that C requires support for.
18457
 
              However, doing the test right would require a run-time
18458
 
              test, and that would make cross-compilation harder.
18459
 
              Let us hope that IBM fixes the xlc bug, and also adds
18460
 
              support for this kind of constant expression.  In the
18461
 
              meantime, this test will reject xlc, which is OK, since
18462
 
              our stdbool.h substitute should suffice.  We also test
18463
 
              this with GCC, where it should work, to detect more
18464
 
              quickly whether someone messes up the test in the
18465
 
              future.  */
18466
 
           char digs[] = "0123456789";
18467
 
           int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
18468
 
          #endif
18469
 
          /* Catch a bug in an HP-UX C compiler.  See
18470
 
             http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
18471
 
             http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
18472
 
           */
18473
 
          _Bool q = true;
18474
 
          _Bool *pq = &q;
 
20501
             #include <stdbool.h>
 
20502
             #ifndef bool
 
20503
              "error: bool is not defined"
 
20504
             #endif
 
20505
             #ifndef false
 
20506
              "error: false is not defined"
 
20507
             #endif
 
20508
             #if false
 
20509
              "error: false is not 0"
 
20510
             #endif
 
20511
             #ifndef true
 
20512
              "error: true is not defined"
 
20513
             #endif
 
20514
             #if true != 1
 
20515
              "error: true is not 1"
 
20516
             #endif
 
20517
             #ifndef __bool_true_false_are_defined
 
20518
              "error: __bool_true_false_are_defined is not defined"
 
20519
             #endif
 
20520
 
 
20521
             struct s { _Bool s: 1; _Bool t; } s;
 
20522
 
 
20523
             char a[true == 1 ? 1 : -1];
 
20524
             char b[false == 0 ? 1 : -1];
 
20525
             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
 
20526
             char d[(bool) 0.5 == true ? 1 : -1];
 
20527
             /* See body of main program for 'e'.  */
 
20528
             char f[(_Bool) 0.0 == false ? 1 : -1];
 
20529
             char g[true];
 
20530
             char h[sizeof (_Bool)];
 
20531
             char i[sizeof s.t];
 
20532
             enum { j = false, k = true, l = false * true, m = true * 256 };
 
20533
             /* The following fails for
 
20534
                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
 
20535
             _Bool n[m];
 
20536
             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
 
20537
             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
 
20538
             /* Catch a bug in an HP-UX C compiler.  See
 
20539
                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
 
20540
                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
 
20541
              */
 
20542
             _Bool q = true;
 
20543
             _Bool *pq = &q;
18475
20544
 
18476
20545
int
18477
20546
main ()
18478
20547
{
18479
20548
 
18480
 
          *pq |= q;
18481
 
          *pq |= ! q;
18482
 
          /* Refer to every declared value, to avoid compiler optimizations.  */
18483
 
          return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
18484
 
                  + !m + !n + !o + !p + !q + !pq);
 
20549
             bool e = &s;
 
20550
             *pq |= q;
 
20551
             *pq |= ! q;
 
20552
             /* Refer to every declared value, to avoid compiler optimizations.  */
 
20553
             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
 
20554
                     + !m + !n + !o + !p + !q + !pq);
18485
20555
 
18486
20556
  ;
18487
20557
  return 0;
18497
20567
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
18498
20568
$as_echo "$ac_cv_header_stdbool_h" >&6; }
18499
20569
   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
18500
 
if test "x$ac_cv_type__Bool" = x""yes; then :
 
20570
if test "x$ac_cv_type__Bool" = xyes; then :
18501
20571
 
18502
20572
cat >>confdefs.h <<_ACEOF
18503
20573
#define HAVE__BOOL 1
18506
20576
 
18507
20577
fi
18508
20578
 
18509
 
   if test $ac_cv_header_stdbool_h = yes; then
18510
 
 
18511
 
$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
18512
 
 
18513
 
   fi
 
20579
 
18514
20580
 
18515
20581
    REPLACE_NULL=0;
18516
20582
  HAVE_WCHAR_T=1;
18517
 
  STDDEF_H='';
18518
20583
 
18519
20584
 
18520
20585
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18521
20586
$as_echo_n "checking for wchar_t... " >&6; }
18522
 
if test "${gt_cv_c_wchar_t+set}" = set; then :
 
20587
if ${gt_cv_c_wchar_t+:} false; then :
18523
20588
  $as_echo_n "(cached) " >&6
18524
20589
else
18525
20590
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18550
20615
  fi
18551
20616
 
18552
20617
 
18553
 
 
18554
 
 
18555
20618
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
18556
20619
$as_echo_n "checking for long long int... " >&6; }
18557
 
if test "${ac_cv_type_long_long_int+set}" = set; then :
 
20620
if ${ac_cv_type_long_long_int+:} false; then :
18558
20621
  $as_echo_n "(cached) " >&6
18559
20622
else
18560
20623
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18648
20711
 
18649
20712
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
18650
20713
$as_echo_n "checking for unsigned long long int... " >&6; }
18651
 
if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
 
20714
if ${ac_cv_type_unsigned_long_long_int+:} false; then :
18652
20715
  $as_echo_n "(cached) " >&6
18653
20716
else
18654
20717
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18707
20770
 
18708
20771
 
18709
20772
 
18710
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C symbols are prefixed with underscore at the linker level" >&5
18711
 
$as_echo_n "checking whether C symbols are prefixed with underscore at the linker level... " >&6; }
18712
 
if test "${gl_cv_prog_as_underscore+set}" = set; then :
18713
 
  $as_echo_n "(cached) " >&6
18714
 
else
18715
 
  cat > conftest.c <<EOF
18716
 
#ifdef __cplusplus
18717
 
extern "C" int foo (void);
18718
 
#endif
18719
 
int foo(void) { return 0; }
18720
 
EOF
18721
 
     # Look for the assembly language name in the .s file.
18722
 
     { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S conftest.c'
18723
 
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18724
 
  (eval $ac_try) 2>&5
18725
 
  ac_status=$?
18726
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18727
 
  test $ac_status = 0; }; } >/dev/null 2>&1
18728
 
     if grep _foo conftest.s >/dev/null ; then
18729
 
       gl_cv_prog_as_underscore=yes
18730
 
     else
18731
 
       gl_cv_prog_as_underscore=no
18732
 
     fi
18733
 
     rm -f conftest*
18734
 
 
18735
 
fi
18736
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_as_underscore" >&5
18737
 
$as_echo "$gl_cv_prog_as_underscore" >&6; }
18738
 
  if test $gl_cv_prog_as_underscore = yes; then
18739
 
    USER_LABEL_PREFIX=_
18740
 
  else
18741
 
    USER_LABEL_PREFIX=
18742
 
  fi
18743
 
 
18744
 
cat >>confdefs.h <<_ACEOF
18745
 
#define USER_LABEL_PREFIX $USER_LABEL_PREFIX
18746
 
_ACEOF
18747
 
 
18748
 
  ASM_SYMBOL_PREFIX='"'${USER_LABEL_PREFIX}'"'
18749
 
 
18750
 
 
18751
 
 
18752
 
 
18753
 
 
18754
 
 
18755
 
 
18756
 
    HAVE_STRCASECMP=1;
 
20773
 
 
20774
 
 
20775
  if test $ac_cv_type_long_long_int = yes; then
 
20776
    HAVE_LONG_LONG_INT=1
 
20777
  else
 
20778
    HAVE_LONG_LONG_INT=0
 
20779
  fi
 
20780
 
 
20781
 
 
20782
  if test $ac_cv_type_unsigned_long_long_int = yes; then
 
20783
    HAVE_UNSIGNED_LONG_LONG_INT=1
 
20784
  else
 
20785
    HAVE_UNSIGNED_LONG_LONG_INT=0
 
20786
  fi
 
20787
 
 
20788
 
 
20789
 
 
20790
  if test $ac_cv_header_wchar_h = yes; then
 
20791
    HAVE_WCHAR_H=1
 
20792
  else
 
20793
    HAVE_WCHAR_H=0
 
20794
  fi
 
20795
 
 
20796
 
 
20797
      if test $ac_cv_header_inttypes_h = yes; then
 
20798
    HAVE_INTTYPES_H=1
 
20799
  else
 
20800
    HAVE_INTTYPES_H=0
 
20801
  fi
 
20802
 
 
20803
 
 
20804
      if test $ac_cv_header_sys_types_h = yes; then
 
20805
    HAVE_SYS_TYPES_H=1
 
20806
  else
 
20807
    HAVE_SYS_TYPES_H=0
 
20808
  fi
 
20809
 
 
20810
 
 
20811
 
 
20812
 
 
20813
 
 
20814
 
 
20815
 
 
20816
 
 
20817
 
 
20818
 
 
20819
 
 
20820
     if test $gl_cv_have_include_next = yes; then
 
20821
       gl_cv_next_stdint_h='<'stdint.h'>'
 
20822
     else
 
20823
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
 
20824
$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
 
20825
if ${gl_cv_next_stdint_h+:} false; then :
 
20826
  $as_echo_n "(cached) " >&6
 
20827
else
 
20828
 
 
20829
             if test $ac_cv_header_stdint_h = yes; then
 
20830
 
 
20831
 
 
20832
               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20833
/* end confdefs.h.  */
 
20834
#include <stdint.h>
 
20835
 
 
20836
_ACEOF
 
20837
                                                                                                                        case "$host_os" in
 
20838
                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
20839
                 *)    gl_absname_cpp="$ac_cpp" ;;
 
20840
               esac
 
20841
                                                            gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
20842
                  sed -n '\#/stdint.h#{
 
20843
                    s#.*"\(.*/stdint.h\)".*#\1#
 
20844
                    s#^/[^/]#//&#
 
20845
                    p
 
20846
                    q
 
20847
                  }'`'"'
 
20848
          else
 
20849
               gl_cv_next_stdint_h='<'stdint.h'>'
 
20850
             fi
 
20851
 
 
20852
 
 
20853
fi
 
20854
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
 
20855
$as_echo "$gl_cv_next_stdint_h" >&6; }
 
20856
     fi
 
20857
     NEXT_STDINT_H=$gl_cv_next_stdint_h
 
20858
 
 
20859
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
20860
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
20861
       gl_next_as_first_directive='<'stdint.h'>'
 
20862
     else
 
20863
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
20864
       gl_next_as_first_directive=$gl_cv_next_stdint_h
 
20865
     fi
 
20866
     NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
 
20867
 
 
20868
 
 
20869
 
 
20870
 
 
20871
  if test $ac_cv_header_stdint_h = yes; then
 
20872
    HAVE_STDINT_H=1
 
20873
  else
 
20874
    HAVE_STDINT_H=0
 
20875
  fi
 
20876
 
 
20877
 
 
20878
    if test $ac_cv_header_stdint_h = yes; then
 
20879
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
 
20880
$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
 
20881
if ${gl_cv_header_working_stdint_h+:} false; then :
 
20882
  $as_echo_n "(cached) " >&6
 
20883
else
 
20884
  gl_cv_header_working_stdint_h=no
 
20885
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20886
/* end confdefs.h.  */
 
20887
 
 
20888
 
 
20889
#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
 
20890
#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
 
20891
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
 
20892
#include <stdint.h>
 
20893
/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
 
20894
#if !(defined WCHAR_MIN && defined WCHAR_MAX)
 
20895
#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
 
20896
#endif
 
20897
 
 
20898
 
 
20899
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
20900
     included before <wchar.h>.  */
 
20901
  #include <stddef.h>
 
20902
  #include <signal.h>
 
20903
  #if HAVE_WCHAR_H
 
20904
  # include <stdio.h>
 
20905
  # include <time.h>
 
20906
  # include <wchar.h>
 
20907
  #endif
 
20908
 
 
20909
 
 
20910
#ifdef INT8_MAX
 
20911
int8_t a1 = INT8_MAX;
 
20912
int8_t a1min = INT8_MIN;
 
20913
#endif
 
20914
#ifdef INT16_MAX
 
20915
int16_t a2 = INT16_MAX;
 
20916
int16_t a2min = INT16_MIN;
 
20917
#endif
 
20918
#ifdef INT32_MAX
 
20919
int32_t a3 = INT32_MAX;
 
20920
int32_t a3min = INT32_MIN;
 
20921
#endif
 
20922
#ifdef INT64_MAX
 
20923
int64_t a4 = INT64_MAX;
 
20924
int64_t a4min = INT64_MIN;
 
20925
#endif
 
20926
#ifdef UINT8_MAX
 
20927
uint8_t b1 = UINT8_MAX;
 
20928
#else
 
20929
typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
 
20930
#endif
 
20931
#ifdef UINT16_MAX
 
20932
uint16_t b2 = UINT16_MAX;
 
20933
#endif
 
20934
#ifdef UINT32_MAX
 
20935
uint32_t b3 = UINT32_MAX;
 
20936
#endif
 
20937
#ifdef UINT64_MAX
 
20938
uint64_t b4 = UINT64_MAX;
 
20939
#endif
 
20940
int_least8_t c1 = INT8_C (0x7f);
 
20941
int_least8_t c1max = INT_LEAST8_MAX;
 
20942
int_least8_t c1min = INT_LEAST8_MIN;
 
20943
int_least16_t c2 = INT16_C (0x7fff);
 
20944
int_least16_t c2max = INT_LEAST16_MAX;
 
20945
int_least16_t c2min = INT_LEAST16_MIN;
 
20946
int_least32_t c3 = INT32_C (0x7fffffff);
 
20947
int_least32_t c3max = INT_LEAST32_MAX;
 
20948
int_least32_t c3min = INT_LEAST32_MIN;
 
20949
int_least64_t c4 = INT64_C (0x7fffffffffffffff);
 
20950
int_least64_t c4max = INT_LEAST64_MAX;
 
20951
int_least64_t c4min = INT_LEAST64_MIN;
 
20952
uint_least8_t d1 = UINT8_C (0xff);
 
20953
uint_least8_t d1max = UINT_LEAST8_MAX;
 
20954
uint_least16_t d2 = UINT16_C (0xffff);
 
20955
uint_least16_t d2max = UINT_LEAST16_MAX;
 
20956
uint_least32_t d3 = UINT32_C (0xffffffff);
 
20957
uint_least32_t d3max = UINT_LEAST32_MAX;
 
20958
uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
 
20959
uint_least64_t d4max = UINT_LEAST64_MAX;
 
20960
int_fast8_t e1 = INT_FAST8_MAX;
 
20961
int_fast8_t e1min = INT_FAST8_MIN;
 
20962
int_fast16_t e2 = INT_FAST16_MAX;
 
20963
int_fast16_t e2min = INT_FAST16_MIN;
 
20964
int_fast32_t e3 = INT_FAST32_MAX;
 
20965
int_fast32_t e3min = INT_FAST32_MIN;
 
20966
int_fast64_t e4 = INT_FAST64_MAX;
 
20967
int_fast64_t e4min = INT_FAST64_MIN;
 
20968
uint_fast8_t f1 = UINT_FAST8_MAX;
 
20969
uint_fast16_t f2 = UINT_FAST16_MAX;
 
20970
uint_fast32_t f3 = UINT_FAST32_MAX;
 
20971
uint_fast64_t f4 = UINT_FAST64_MAX;
 
20972
#ifdef INTPTR_MAX
 
20973
intptr_t g = INTPTR_MAX;
 
20974
intptr_t gmin = INTPTR_MIN;
 
20975
#endif
 
20976
#ifdef UINTPTR_MAX
 
20977
uintptr_t h = UINTPTR_MAX;
 
20978
#endif
 
20979
intmax_t i = INTMAX_MAX;
 
20980
uintmax_t j = UINTMAX_MAX;
 
20981
 
 
20982
#include <limits.h> /* for CHAR_BIT */
 
20983
#define TYPE_MINIMUM(t) \
 
20984
  ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
 
20985
#define TYPE_MAXIMUM(t) \
 
20986
  ((t) ((t) 0 < (t) -1 \
 
20987
        ? (t) -1 \
 
20988
        : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
 
20989
struct s {
 
20990
  int check_PTRDIFF:
 
20991
      PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
 
20992
      && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
 
20993
      ? 1 : -1;
 
20994
  /* Detect bug in FreeBSD 6.0 / ia64.  */
 
20995
  int check_SIG_ATOMIC:
 
20996
      SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
 
20997
      && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
 
20998
      ? 1 : -1;
 
20999
  int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
 
21000
  int check_WCHAR:
 
21001
      WCHAR_MIN == TYPE_MINIMUM (wchar_t)
 
21002
      && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
 
21003
      ? 1 : -1;
 
21004
  /* Detect bug in mingw.  */
 
21005
  int check_WINT:
 
21006
      WINT_MIN == TYPE_MINIMUM (wint_t)
 
21007
      && WINT_MAX == TYPE_MAXIMUM (wint_t)
 
21008
      ? 1 : -1;
 
21009
 
 
21010
  /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
 
21011
  int check_UINT8_C:
 
21012
        (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
 
21013
  int check_UINT16_C:
 
21014
        (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
 
21015
 
 
21016
  /* Detect bugs in OpenBSD 3.9 stdint.h.  */
 
21017
#ifdef UINT8_MAX
 
21018
  int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
 
21019
#endif
 
21020
#ifdef UINT16_MAX
 
21021
  int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
 
21022
#endif
 
21023
#ifdef UINT32_MAX
 
21024
  int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
 
21025
#endif
 
21026
#ifdef UINT64_MAX
 
21027
  int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
 
21028
#endif
 
21029
  int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
 
21030
  int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
 
21031
  int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
 
21032
  int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
 
21033
  int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
 
21034
  int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
 
21035
  int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
 
21036
  int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
 
21037
  int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
 
21038
  int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
 
21039
  int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
 
21040
};
 
21041
 
 
21042
int
 
21043
main ()
 
21044
{
 
21045
 
 
21046
  ;
 
21047
  return 0;
 
21048
}
 
21049
_ACEOF
 
21050
if ac_fn_c_try_compile "$LINENO"; then :
 
21051
                                                    if test "$cross_compiling" = yes; then :
 
21052
                 gl_cv_header_working_stdint_h=yes
 
21053
 
 
21054
else
 
21055
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
21056
/* end confdefs.h.  */
 
21057
 
 
21058
 
 
21059
#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
 
21060
#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
 
21061
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
 
21062
#include <stdint.h>
 
21063
 
 
21064
 
 
21065
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
21066
     included before <wchar.h>.  */
 
21067
  #include <stddef.h>
 
21068
  #include <signal.h>
 
21069
  #if HAVE_WCHAR_H
 
21070
  # include <stdio.h>
 
21071
  # include <time.h>
 
21072
  # include <wchar.h>
 
21073
  #endif
 
21074
 
 
21075
 
 
21076
#include <stdio.h>
 
21077
#include <string.h>
 
21078
#define MVAL(macro) MVAL1(macro)
 
21079
#define MVAL1(expression) #expression
 
21080
static const char *macro_values[] =
 
21081
  {
 
21082
#ifdef INT8_MAX
 
21083
    MVAL (INT8_MAX),
 
21084
#endif
 
21085
#ifdef INT16_MAX
 
21086
    MVAL (INT16_MAX),
 
21087
#endif
 
21088
#ifdef INT32_MAX
 
21089
    MVAL (INT32_MAX),
 
21090
#endif
 
21091
#ifdef INT64_MAX
 
21092
    MVAL (INT64_MAX),
 
21093
#endif
 
21094
#ifdef UINT8_MAX
 
21095
    MVAL (UINT8_MAX),
 
21096
#endif
 
21097
#ifdef UINT16_MAX
 
21098
    MVAL (UINT16_MAX),
 
21099
#endif
 
21100
#ifdef UINT32_MAX
 
21101
    MVAL (UINT32_MAX),
 
21102
#endif
 
21103
#ifdef UINT64_MAX
 
21104
    MVAL (UINT64_MAX),
 
21105
#endif
 
21106
    NULL
 
21107
  };
 
21108
 
 
21109
int
 
21110
main ()
 
21111
{
 
21112
 
 
21113
  const char **mv;
 
21114
  for (mv = macro_values; *mv != NULL; mv++)
 
21115
    {
 
21116
      const char *value = *mv;
 
21117
      /* Test whether it looks like a cast expression.  */
 
21118
      if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
 
21119
          || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
 
21120
          || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
 
21121
          || strncmp (value, "((int)"/*)*/, 6) == 0
 
21122
          || strncmp (value, "((signed short)"/*)*/, 15) == 0
 
21123
          || strncmp (value, "((signed char)"/*)*/, 14) == 0)
 
21124
        return mv - macro_values + 1;
 
21125
    }
 
21126
  return 0;
 
21127
 
 
21128
  ;
 
21129
  return 0;
 
21130
}
 
21131
_ACEOF
 
21132
if ac_fn_c_try_run "$LINENO"; then :
 
21133
  gl_cv_header_working_stdint_h=yes
 
21134
fi
 
21135
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
21136
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
21137
fi
 
21138
 
 
21139
 
 
21140
fi
 
21141
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21142
 
 
21143
fi
 
21144
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
 
21145
$as_echo "$gl_cv_header_working_stdint_h" >&6; }
 
21146
  fi
 
21147
  if test "$gl_cv_header_working_stdint_h" = yes; then
 
21148
    STDINT_H=
 
21149
  else
 
21150
            for ac_header in sys/inttypes.h sys/bitypes.h
 
21151
do :
 
21152
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
21153
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
21154
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
21155
  cat >>confdefs.h <<_ACEOF
 
21156
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
21157
_ACEOF
 
21158
 
 
21159
fi
 
21160
 
 
21161
done
 
21162
 
 
21163
    if test $ac_cv_header_sys_inttypes_h = yes; then
 
21164
      HAVE_SYS_INTTYPES_H=1
 
21165
    else
 
21166
      HAVE_SYS_INTTYPES_H=0
 
21167
    fi
 
21168
 
 
21169
    if test $ac_cv_header_sys_bitypes_h = yes; then
 
21170
      HAVE_SYS_BITYPES_H=1
 
21171
    else
 
21172
      HAVE_SYS_BITYPES_H=0
 
21173
    fi
 
21174
 
 
21175
 
 
21176
 
 
21177
 
 
21178
  if test $APPLE_UNIVERSAL_BUILD = 0; then
 
21179
 
 
21180
 
 
21181
  for gltype in ptrdiff_t size_t ; do
 
21182
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
 
21183
$as_echo_n "checking for bit size of $gltype... " >&6; }
 
21184
if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
 
21185
  $as_echo_n "(cached) " >&6
 
21186
else
 
21187
  if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
 
21188
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
21189
     included before <wchar.h>.  */
 
21190
  #include <stddef.h>
 
21191
  #include <signal.h>
 
21192
  #if HAVE_WCHAR_H
 
21193
  # include <stdio.h>
 
21194
  # include <time.h>
 
21195
  # include <wchar.h>
 
21196
  #endif
 
21197
 
 
21198
#include <limits.h>"; then :
 
21199
 
 
21200
else
 
21201
  result=unknown
 
21202
fi
 
21203
 
 
21204
       eval gl_cv_bitsizeof_${gltype}=\$result
 
21205
 
 
21206
fi
 
21207
eval ac_res=\$gl_cv_bitsizeof_${gltype}
 
21208
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
21209
$as_echo "$ac_res" >&6; }
 
21210
    eval result=\$gl_cv_bitsizeof_${gltype}
 
21211
    if test $result = unknown; then
 
21212
                                                result=0
 
21213
    fi
 
21214
    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
 
21215
    cat >>confdefs.h <<_ACEOF
 
21216
#define BITSIZEOF_${GLTYPE} $result
 
21217
_ACEOF
 
21218
 
 
21219
    eval BITSIZEOF_${GLTYPE}=\$result
 
21220
  done
 
21221
 
 
21222
 
 
21223
  fi
 
21224
 
 
21225
 
 
21226
  for gltype in sig_atomic_t wchar_t wint_t ; do
 
21227
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
 
21228
$as_echo_n "checking for bit size of $gltype... " >&6; }
 
21229
if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
 
21230
  $as_echo_n "(cached) " >&6
 
21231
else
 
21232
  if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
 
21233
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
21234
     included before <wchar.h>.  */
 
21235
  #include <stddef.h>
 
21236
  #include <signal.h>
 
21237
  #if HAVE_WCHAR_H
 
21238
  # include <stdio.h>
 
21239
  # include <time.h>
 
21240
  # include <wchar.h>
 
21241
  #endif
 
21242
 
 
21243
#include <limits.h>"; then :
 
21244
 
 
21245
else
 
21246
  result=unknown
 
21247
fi
 
21248
 
 
21249
       eval gl_cv_bitsizeof_${gltype}=\$result
 
21250
 
 
21251
fi
 
21252
eval ac_res=\$gl_cv_bitsizeof_${gltype}
 
21253
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
21254
$as_echo "$ac_res" >&6; }
 
21255
    eval result=\$gl_cv_bitsizeof_${gltype}
 
21256
    if test $result = unknown; then
 
21257
                                                result=0
 
21258
    fi
 
21259
    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
 
21260
    cat >>confdefs.h <<_ACEOF
 
21261
#define BITSIZEOF_${GLTYPE} $result
 
21262
_ACEOF
 
21263
 
 
21264
    eval BITSIZEOF_${GLTYPE}=\$result
 
21265
  done
 
21266
 
 
21267
 
 
21268
 
 
21269
 
 
21270
  for gltype in sig_atomic_t wchar_t wint_t ; do
 
21271
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
 
21272
$as_echo_n "checking whether $gltype is signed... " >&6; }
 
21273
if eval \${gl_cv_type_${gltype}_signed+:} false; then :
 
21274
  $as_echo_n "(cached) " >&6
 
21275
else
 
21276
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
21277
/* end confdefs.h.  */
 
21278
 
 
21279
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
21280
     included before <wchar.h>.  */
 
21281
  #include <stddef.h>
 
21282
  #include <signal.h>
 
21283
  #if HAVE_WCHAR_H
 
21284
  # include <stdio.h>
 
21285
  # include <time.h>
 
21286
  # include <wchar.h>
 
21287
  #endif
 
21288
 
 
21289
            int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
 
21290
int
 
21291
main ()
 
21292
{
 
21293
 
 
21294
  ;
 
21295
  return 0;
 
21296
}
 
21297
_ACEOF
 
21298
if ac_fn_c_try_compile "$LINENO"; then :
 
21299
  result=yes
 
21300
else
 
21301
  result=no
 
21302
fi
 
21303
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21304
       eval gl_cv_type_${gltype}_signed=\$result
 
21305
 
 
21306
fi
 
21307
eval ac_res=\$gl_cv_type_${gltype}_signed
 
21308
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
21309
$as_echo "$ac_res" >&6; }
 
21310
    eval result=\$gl_cv_type_${gltype}_signed
 
21311
    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
 
21312
    if test "$result" = yes; then
 
21313
      cat >>confdefs.h <<_ACEOF
 
21314
#define HAVE_SIGNED_${GLTYPE} 1
 
21315
_ACEOF
 
21316
 
 
21317
      eval HAVE_SIGNED_${GLTYPE}=1
 
21318
    else
 
21319
      eval HAVE_SIGNED_${GLTYPE}=0
 
21320
    fi
 
21321
  done
 
21322
 
 
21323
 
 
21324
  gl_cv_type_ptrdiff_t_signed=yes
 
21325
  gl_cv_type_size_t_signed=no
 
21326
  if test $APPLE_UNIVERSAL_BUILD = 0; then
 
21327
 
 
21328
 
 
21329
  for gltype in ptrdiff_t size_t ; do
 
21330
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
 
21331
$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
 
21332
if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
 
21333
  $as_echo_n "(cached) " >&6
 
21334
else
 
21335
  eval gl_cv_type_${gltype}_suffix=no
 
21336
       eval result=\$gl_cv_type_${gltype}_signed
 
21337
       if test "$result" = yes; then
 
21338
         glsufu=
 
21339
       else
 
21340
         glsufu=u
 
21341
       fi
 
21342
       for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
 
21343
         case $glsuf in
 
21344
           '')  gltype1='int';;
 
21345
           l)   gltype1='long int';;
 
21346
           ll)  gltype1='long long int';;
 
21347
           i64) gltype1='__int64';;
 
21348
           u)   gltype1='unsigned int';;
 
21349
           ul)  gltype1='unsigned long int';;
 
21350
           ull) gltype1='unsigned long long int';;
 
21351
           ui64)gltype1='unsigned __int64';;
 
21352
         esac
 
21353
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
21354
/* end confdefs.h.  */
 
21355
 
 
21356
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
21357
     included before <wchar.h>.  */
 
21358
  #include <stddef.h>
 
21359
  #include <signal.h>
 
21360
  #if HAVE_WCHAR_H
 
21361
  # include <stdio.h>
 
21362
  # include <time.h>
 
21363
  # include <wchar.h>
 
21364
  #endif
 
21365
 
 
21366
              extern $gltype foo;
 
21367
              extern $gltype1 foo;
 
21368
int
 
21369
main ()
 
21370
{
 
21371
 
 
21372
  ;
 
21373
  return 0;
 
21374
}
 
21375
_ACEOF
 
21376
if ac_fn_c_try_compile "$LINENO"; then :
 
21377
  eval gl_cv_type_${gltype}_suffix=\$glsuf
 
21378
fi
 
21379
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21380
         eval result=\$gl_cv_type_${gltype}_suffix
 
21381
         test "$result" != no && break
 
21382
       done
 
21383
fi
 
21384
eval ac_res=\$gl_cv_type_${gltype}_suffix
 
21385
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
21386
$as_echo "$ac_res" >&6; }
 
21387
    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
 
21388
    eval result=\$gl_cv_type_${gltype}_suffix
 
21389
    test "$result" = no && result=
 
21390
    eval ${GLTYPE}_SUFFIX=\$result
 
21391
    cat >>confdefs.h <<_ACEOF
 
21392
#define ${GLTYPE}_SUFFIX $result
 
21393
_ACEOF
 
21394
 
 
21395
  done
 
21396
 
 
21397
 
 
21398
  fi
 
21399
 
 
21400
 
 
21401
  for gltype in sig_atomic_t wchar_t wint_t ; do
 
21402
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
 
21403
$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
 
21404
if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
 
21405
  $as_echo_n "(cached) " >&6
 
21406
else
 
21407
  eval gl_cv_type_${gltype}_suffix=no
 
21408
       eval result=\$gl_cv_type_${gltype}_signed
 
21409
       if test "$result" = yes; then
 
21410
         glsufu=
 
21411
       else
 
21412
         glsufu=u
 
21413
       fi
 
21414
       for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
 
21415
         case $glsuf in
 
21416
           '')  gltype1='int';;
 
21417
           l)   gltype1='long int';;
 
21418
           ll)  gltype1='long long int';;
 
21419
           i64) gltype1='__int64';;
 
21420
           u)   gltype1='unsigned int';;
 
21421
           ul)  gltype1='unsigned long int';;
 
21422
           ull) gltype1='unsigned long long int';;
 
21423
           ui64)gltype1='unsigned __int64';;
 
21424
         esac
 
21425
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
21426
/* end confdefs.h.  */
 
21427
 
 
21428
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
21429
     included before <wchar.h>.  */
 
21430
  #include <stddef.h>
 
21431
  #include <signal.h>
 
21432
  #if HAVE_WCHAR_H
 
21433
  # include <stdio.h>
 
21434
  # include <time.h>
 
21435
  # include <wchar.h>
 
21436
  #endif
 
21437
 
 
21438
              extern $gltype foo;
 
21439
              extern $gltype1 foo;
 
21440
int
 
21441
main ()
 
21442
{
 
21443
 
 
21444
  ;
 
21445
  return 0;
 
21446
}
 
21447
_ACEOF
 
21448
if ac_fn_c_try_compile "$LINENO"; then :
 
21449
  eval gl_cv_type_${gltype}_suffix=\$glsuf
 
21450
fi
 
21451
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21452
         eval result=\$gl_cv_type_${gltype}_suffix
 
21453
         test "$result" != no && break
 
21454
       done
 
21455
fi
 
21456
eval ac_res=\$gl_cv_type_${gltype}_suffix
 
21457
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
21458
$as_echo "$ac_res" >&6; }
 
21459
    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
 
21460
    eval result=\$gl_cv_type_${gltype}_suffix
 
21461
    test "$result" = no && result=
 
21462
    eval ${GLTYPE}_SUFFIX=\$result
 
21463
    cat >>confdefs.h <<_ACEOF
 
21464
#define ${GLTYPE}_SUFFIX $result
 
21465
_ACEOF
 
21466
 
 
21467
  done
 
21468
 
 
21469
 
 
21470
 
 
21471
    STDINT_H=stdint.h
 
21472
  fi
 
21473
 
 
21474
   if test -n "$STDINT_H"; then
 
21475
  GL_GENERATE_STDINT_H_TRUE=
 
21476
  GL_GENERATE_STDINT_H_FALSE='#'
 
21477
else
 
21478
  GL_GENERATE_STDINT_H_TRUE='#'
 
21479
  GL_GENERATE_STDINT_H_FALSE=
 
21480
fi
 
21481
 
 
21482
 
 
21483
 
 
21484
  GNULIB_FFS=0;
 
21485
    HAVE_FFS=1;
 
21486
  HAVE_STRCASECMP=1;
18757
21487
  HAVE_DECL_STRNCASECMP=1;
18758
21488
 
18759
21489
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
18760
21490
$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
18761
 
if test "${ac_cv_c_restrict+set}" = set; then :
 
21491
if ${ac_cv_c_restrict+:} false; then :
18762
21492
  $as_echo_n "(cached) " >&6
18763
21493
else
18764
21494
  ac_cv_c_restrict=no
18818
21548
     else
18819
21549
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
18820
21550
$as_echo_n "checking absolute name of <string.h>... " >&6; }
18821
 
if test "${gl_cv_next_string_h+set}" = set; then :
 
21551
if ${gl_cv_next_string_h+:} false; then :
18822
21552
  $as_echo_n "(cached) " >&6
18823
21553
else
18824
21554
 
18825
 
          if test $ac_cv_header_string_h = yes; then
18826
 
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
21555
               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18827
21556
/* end confdefs.h.  */
18828
21557
#include <string.h>
18829
21558
 
18830
21559
_ACEOF
18831
 
                                                                                                case "$host_os" in
18832
 
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
18833
 
              *)    gl_absname_cpp="$ac_cpp" ;;
18834
 
            esac
18835
 
                                                gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18836
 
               sed -n '\#/string.h#{
18837
 
                 s#.*"\(.*/string.h\)".*#\1#
18838
 
                 s#^/[^/]#//&#
18839
 
                 p
18840
 
                 q
18841
 
               }'`'"'
18842
 
          else
18843
 
            gl_cv_next_string_h='<'string.h'>'
18844
 
          fi
 
21560
                                                                                                                        case "$host_os" in
 
21561
                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
21562
                 *)    gl_absname_cpp="$ac_cpp" ;;
 
21563
               esac
 
21564
                                                            gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
21565
                  sed -n '\#/string.h#{
 
21566
                    s#.*"\(.*/string.h\)".*#\1#
 
21567
                    s#^/[^/]#//&#
 
21568
                    p
 
21569
                    q
 
21570
                  }'`'"'
 
21571
 
18845
21572
 
18846
21573
fi
18847
21574
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
18862
21589
 
18863
21590
 
18864
21591
 
18865
 
    for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup      strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal      strverscmp; do
 
21592
 
 
21593
    for gl_func in ffsl ffsll memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul      strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r      strerror_r strsignal strverscmp; do
18866
21594
    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18867
21595
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18868
21596
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18869
 
if eval "test \"\${$as_gl_Symbol+set}\"" = set; then :
 
21597
if eval \${$as_gl_Symbol+:} false; then :
18870
21598
  $as_echo_n "(cached) " >&6
18871
21599
else
18872
21600
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18892
21620
eval ac_res=\$$as_gl_Symbol
18893
21621
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18894
21622
$as_echo "$ac_res" >&6; }
18895
 
     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
 
21623
    if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
18896
21624
  cat >>confdefs.h <<_ACEOF
18897
21625
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18898
21626
_ACEOF
18912
21640
 
18913
21641
 
18914
21642
 
 
21643
 
 
21644
 
 
21645
 
18915
21646
     if test $gl_cv_have_include_next = yes; then
18916
21647
       gl_cv_next_strings_h='<'strings.h'>'
18917
21648
     else
18918
21649
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <strings.h>" >&5
18919
21650
$as_echo_n "checking absolute name of <strings.h>... " >&6; }
18920
 
if test "${gl_cv_next_strings_h+set}" = set; then :
 
21651
if ${gl_cv_next_strings_h+:} false; then :
18921
21652
  $as_echo_n "(cached) " >&6
18922
21653
else
18923
21654
 
18924
 
          if test $ac_cv_header_strings_h = yes; then
18925
 
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
21655
             if test $ac_cv_header_strings_h = yes; then
 
21656
 
 
21657
 
 
21658
               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18926
21659
/* end confdefs.h.  */
18927
21660
#include <strings.h>
18928
21661
 
18929
21662
_ACEOF
18930
 
                                                                                                case "$host_os" in
18931
 
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
18932
 
              *)    gl_absname_cpp="$ac_cpp" ;;
18933
 
            esac
18934
 
                                                gl_cv_next_strings_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18935
 
               sed -n '\#/strings.h#{
18936
 
                 s#.*"\(.*/strings.h\)".*#\1#
18937
 
                 s#^/[^/]#//&#
18938
 
                 p
18939
 
                 q
18940
 
               }'`'"'
 
21663
                                                                                                                        case "$host_os" in
 
21664
                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
21665
                 *)    gl_absname_cpp="$ac_cpp" ;;
 
21666
               esac
 
21667
                                                            gl_cv_next_strings_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
21668
                  sed -n '\#/strings.h#{
 
21669
                    s#.*"\(.*/strings.h\)".*#\1#
 
21670
                    s#^/[^/]#//&#
 
21671
                    p
 
21672
                    q
 
21673
                  }'`'"'
18941
21674
          else
18942
 
            gl_cv_next_strings_h='<'strings.h'>'
18943
 
          fi
 
21675
               gl_cv_next_strings_h='<'strings.h'>'
 
21676
             fi
 
21677
 
18944
21678
 
18945
21679
fi
18946
21680
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_strings_h" >&5
18961
21695
 
18962
21696
 
18963
21697
 
18964
 
    for gl_func in strcasecmp strncasecmp; do
 
21698
 
 
21699
    for gl_func in ffs strcasecmp strncasecmp; do
18965
21700
    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18966
21701
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18967
21702
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18968
 
if eval "test \"\${$as_gl_Symbol+set}\"" = set; then :
 
21703
if eval \${$as_gl_Symbol+:} false; then :
18969
21704
  $as_echo_n "(cached) " >&6
18970
21705
else
18971
21706
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18972
21707
/* end confdefs.h.  */
18973
 
#include <strings.h>
 
21708
 
 
21709
    /* Minix 3.1.8 has a bug: <sys/types.h> must be included before
 
21710
       <strings.h>.  */
 
21711
    #include <sys/types.h>
 
21712
    #include <strings.h>
18974
21713
 
18975
21714
int
18976
21715
main ()
18991
21730
eval ac_res=\$$as_gl_Symbol
18992
21731
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18993
21732
$as_echo "$ac_res" >&6; }
18994
 
     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
 
21733
    if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
18995
21734
  cat >>confdefs.h <<_ACEOF
18996
21735
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18997
21736
_ACEOF
19002
21741
 
19003
21742
 
19004
21743
 
 
21744
  GNULIB_SOCKET=0;
 
21745
  GNULIB_CONNECT=0;
 
21746
  GNULIB_ACCEPT=0;
 
21747
  GNULIB_BIND=0;
 
21748
  GNULIB_GETPEERNAME=0;
 
21749
  GNULIB_GETSOCKNAME=0;
 
21750
  GNULIB_GETSOCKOPT=0;
 
21751
  GNULIB_LISTEN=0;
 
21752
  GNULIB_RECV=0;
 
21753
  GNULIB_SEND=0;
 
21754
  GNULIB_RECVFROM=0;
 
21755
  GNULIB_SENDTO=0;
 
21756
  GNULIB_SETSOCKOPT=0;
 
21757
  GNULIB_SHUTDOWN=0;
 
21758
  GNULIB_ACCEPT4=0;
 
21759
  HAVE_STRUCT_SOCKADDR_STORAGE=1;
 
21760
  HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=1;
 
21761
 
 
21762
  HAVE_SA_FAMILY_T=1;
 
21763
  HAVE_ACCEPT4=1;
 
21764
 
 
21765
 
19005
21766
     GNULIB_FCHMODAT=0;
19006
21767
  GNULIB_FSTATAT=0;
19007
21768
  GNULIB_FUTIMENS=0;
19037
21798
 
19038
21799
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19039
21800
$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19040
 
if test "${ac_cv_header_stat_broken+set}" = set; then :
 
21801
if ${ac_cv_header_stat_broken+:} false; then :
19041
21802
  $as_echo_n "(cached) " >&6
19042
21803
else
19043
21804
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19080
21841
 
19081
21842
 
19082
21843
 
 
21844
 
 
21845
 
 
21846
 
 
21847
 
19083
21848
  GNULIB_MKTIME=0;
19084
21849
  GNULIB_NANOSLEEP=0;
19085
21850
  GNULIB_STRPTIME=0;
19086
21851
  GNULIB_TIMEGM=0;
19087
21852
  GNULIB_TIME_R=0;
19088
 
    HAVE_LOCALTIME_R=1;
 
21853
    HAVE_DECL_LOCALTIME_R=1;
19089
21854
  HAVE_NANOSLEEP=1;
19090
21855
  HAVE_STRPTIME=1;
19091
21856
  HAVE_TIMEGM=1;
19098
21863
 
19099
21864
 
19100
21865
 
19101
 
 
19102
 
 
19103
21866
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19104
21867
$as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19105
 
if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
 
21868
if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
19106
21869
  $as_echo_n "(cached) " >&6
19107
21870
else
19108
21871
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19135
21898
  else
19136
21899
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19137
21900
$as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19138
 
if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
 
21901
if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
19139
21902
  $as_echo_n "(cached) " >&6
19140
21903
else
19141
21904
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19164
21927
    else
19165
21928
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19166
21929
$as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19167
 
if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
 
21930
if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
19168
21931
  $as_echo_n "(cached) " >&6
19169
21932
else
19170
21933
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19206
21969
 
19207
21970
 
19208
21971
 
 
21972
 
 
21973
 
19209
21974
     if test $gl_cv_have_include_next = yes; then
19210
21975
       gl_cv_next_time_h='<'time.h'>'
19211
21976
     else
19212
21977
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19213
21978
$as_echo_n "checking absolute name of <time.h>... " >&6; }
19214
 
if test "${gl_cv_next_time_h+set}" = set; then :
 
21979
if ${gl_cv_next_time_h+:} false; then :
19215
21980
  $as_echo_n "(cached) " >&6
19216
21981
else
19217
21982
 
19218
 
          if test $ac_cv_header_time_h = yes; then
19219
 
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
21983
               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19220
21984
/* end confdefs.h.  */
19221
21985
#include <time.h>
19222
21986
 
19223
21987
_ACEOF
19224
 
                                                                                                case "$host_os" in
19225
 
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
19226
 
              *)    gl_absname_cpp="$ac_cpp" ;;
19227
 
            esac
19228
 
                                                gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19229
 
               sed -n '\#/time.h#{
19230
 
                 s#.*"\(.*/time.h\)".*#\1#
19231
 
                 s#^/[^/]#//&#
19232
 
                 p
19233
 
                 q
19234
 
               }'`'"'
19235
 
          else
19236
 
            gl_cv_next_time_h='<'time.h'>'
19237
 
          fi
 
21988
                                                                                                                        case "$host_os" in
 
21989
                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
21990
                 *)    gl_absname_cpp="$ac_cpp" ;;
 
21991
               esac
 
21992
                                                            gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
21993
                  sed -n '\#/time.h#{
 
21994
                    s#.*"\(.*/time.h\)".*#\1#
 
21995
                    s#^/[^/]#//&#
 
21996
                    p
 
21997
                    q
 
21998
                  }'`'"'
 
21999
 
19238
22000
 
19239
22001
fi
19240
22002
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19256
22018
 
19257
22019
 
19258
22020
 
 
22021
ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
 
22022
if test "x$ac_cv_have_decl_localtime_r" = xyes; then :
 
22023
  ac_have_decl=1
 
22024
else
 
22025
  ac_have_decl=0
 
22026
fi
 
22027
 
 
22028
cat >>confdefs.h <<_ACEOF
 
22029
#define HAVE_DECL_LOCALTIME_R $ac_have_decl
 
22030
_ACEOF
 
22031
 
 
22032
 
19259
22033
 
19260
22034
 
19261
22035
 
19264
22038
 
19265
22039
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19266
22040
$as_echo_n "checking for wint_t... " >&6; }
19267
 
if test "${gt_cv_c_wint_t+set}" = set; then :
 
22041
if ${gt_cv_c_wint_t+:} false; then :
19268
22042
  $as_echo_n "(cached) " >&6
19269
22043
else
19270
22044
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19302
22076
 
19303
22077
  fi
19304
22078
 
19305
 
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19306
 
if test "x$ac_cv_type_size_t" = x""yes; then :
19307
 
 
19308
 
else
19309
 
 
19310
 
cat >>confdefs.h <<_ACEOF
19311
 
#define size_t unsigned int
19312
 
_ACEOF
19313
 
 
19314
 
fi
 
22079
 
 
22080
 
 
22081
 
 
22082
 
 
22083
  if test $ac_cv_header_features_h = yes; then
 
22084
    HAVE_FEATURES_H=1
 
22085
  else
 
22086
    HAVE_FEATURES_H=0
 
22087
  fi
 
22088
 
19315
22089
 
19316
22090
 
19317
22091
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19318
22092
$as_echo_n "checking for inttypes.h... " >&6; }
19319
 
if test "${gl_cv_header_inttypes_h+set}" = set; then :
 
22093
if ${gl_cv_header_inttypes_h+:} false; then :
19320
22094
  $as_echo_n "(cached) " >&6
19321
22095
else
19322
22096
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19351
22125
 
19352
22126
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
19353
22127
$as_echo_n "checking for stdint.h... " >&6; }
19354
 
if test "${gl_cv_header_stdint_h+set}" = set; then :
 
22128
if ${gl_cv_header_stdint_h+:} false; then :
19355
22129
  $as_echo_n "(cached) " >&6
19356
22130
else
19357
22131
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19388
22162
 
19389
22163
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
19390
22164
$as_echo_n "checking for intmax_t... " >&6; }
19391
 
if test "${gt_cv_c_intmax_t+set}" = set; then :
 
22165
if ${gt_cv_c_intmax_t+:} false; then :
19392
22166
  $as_echo_n "(cached) " >&6
19393
22167
else
19394
22168
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19438
22212
 
19439
22213
 
19440
22214
 
19441
 
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
19442
 
$as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
19443
 
if test "${gl_cv_func_snprintf_retval_c99+set}" = set; then :
19444
 
  $as_echo_n "(cached) " >&6
19445
 
else
19446
 
 
19447
 
      if test "$cross_compiling" = yes; then :
19448
 
 
19449
 
       case "$host_os" in
19450
 
                               # Guess yes on glibc systems.
19451
 
         *-gnu*)               gl_cv_func_snprintf_retval_c99="guessing yes";;
19452
 
                               # Guess yes on FreeBSD >= 5.
19453
 
         freebsd[1-4]*)        gl_cv_func_snprintf_retval_c99="guessing no";;
19454
 
         freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
19455
 
                               # Guess yes on MacOS X >= 10.3.
19456
 
         darwin[1-6].*)        gl_cv_func_snprintf_retval_c99="guessing no";;
19457
 
         darwin*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
19458
 
                               # Guess yes on OpenBSD >= 3.9.
19459
 
         openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
19460
 
                               gl_cv_func_snprintf_retval_c99="guessing no";;
19461
 
         openbsd*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
19462
 
                               # Guess yes on Solaris >= 2.6.
19463
 
         solaris2.[0-5]*)      gl_cv_func_snprintf_retval_c99="guessing no";;
19464
 
         solaris*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
19465
 
                               # Guess yes on AIX >= 4.
19466
 
         aix[1-3]*)            gl_cv_func_snprintf_retval_c99="guessing no";;
19467
 
         aix*)                 gl_cv_func_snprintf_retval_c99="guessing yes";;
19468
 
                               # Guess yes on NetBSD >= 3.
19469
 
         netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
19470
 
                               gl_cv_func_snprintf_retval_c99="guessing no";;
19471
 
         netbsd*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
19472
 
                               # Guess yes on BeOS.
19473
 
         beos*)                gl_cv_func_snprintf_retval_c99="guessing yes";;
19474
 
                               # If we don't know, assume the worst.
19475
 
         *)                    gl_cv_func_snprintf_retval_c99="guessing no";;
19476
 
       esac
19477
 
 
19478
 
else
19479
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19480
 
/* end confdefs.h.  */
19481
 
 
19482
 
#include <stdio.h>
19483
 
#include <string.h>
19484
 
static char buf[100];
19485
 
int main ()
19486
 
{
19487
 
  strcpy (buf, "ABCDEF");
19488
 
  if (snprintf (buf, 3, "%d %d", 4567, 89) != 7)
19489
 
    return 1;
19490
 
  return 0;
19491
 
}
19492
 
_ACEOF
19493
 
if ac_fn_c_try_run "$LINENO"; then :
19494
 
  gl_cv_func_snprintf_retval_c99=yes
19495
 
else
19496
 
  gl_cv_func_snprintf_retval_c99=no
19497
 
fi
19498
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19499
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
19500
 
fi
19501
 
 
19502
 
 
19503
 
fi
19504
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
19505
 
$as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
19506
 
 
19507
 
 
19508
 
 
19509
22215
 
19510
22216
 
19511
22217
 
19524
22230
 
19525
22231
      ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
19526
22232
"
19527
 
if test "x$ac_cv_have_decl__snprintf" = x""yes; then :
 
22233
if test "x$ac_cv_have_decl__snprintf" = xyes; then :
19528
22234
  ac_have_decl=1
19529
22235
else
19530
22236
  ac_have_decl=0
19547
22253
  XGETTEXT_EXTRA_OPTIONS=
19548
22254
 
19549
22255
ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
19550
 
if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
 
22256
if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
19551
22257
  ac_have_decl=1
19552
22258
else
19553
22259
  ac_have_decl=0
19569
22275
  GNULIB_WCSRTOMBS=0;
19570
22276
  GNULIB_WCSNRTOMBS=0;
19571
22277
  GNULIB_WCWIDTH=0;
 
22278
  GNULIB_WMEMCHR=0;
 
22279
  GNULIB_WMEMCMP=0;
 
22280
  GNULIB_WMEMCPY=0;
 
22281
  GNULIB_WMEMMOVE=0;
 
22282
  GNULIB_WMEMSET=0;
 
22283
  GNULIB_WCSLEN=0;
 
22284
  GNULIB_WCSNLEN=0;
 
22285
  GNULIB_WCSCPY=0;
 
22286
  GNULIB_WCPCPY=0;
 
22287
  GNULIB_WCSNCPY=0;
 
22288
  GNULIB_WCPNCPY=0;
 
22289
  GNULIB_WCSCAT=0;
 
22290
  GNULIB_WCSNCAT=0;
 
22291
  GNULIB_WCSCMP=0;
 
22292
  GNULIB_WCSNCMP=0;
 
22293
  GNULIB_WCSCASECMP=0;
 
22294
  GNULIB_WCSNCASECMP=0;
 
22295
  GNULIB_WCSCOLL=0;
 
22296
  GNULIB_WCSXFRM=0;
 
22297
  GNULIB_WCSDUP=0;
 
22298
  GNULIB_WCSCHR=0;
 
22299
  GNULIB_WCSRCHR=0;
 
22300
  GNULIB_WCSCSPN=0;
 
22301
  GNULIB_WCSSPN=0;
 
22302
  GNULIB_WCSPBRK=0;
 
22303
  GNULIB_WCSSTR=0;
 
22304
  GNULIB_WCSTOK=0;
 
22305
  GNULIB_WCSWIDTH=0;
19572
22306
    HAVE_BTOWC=1;
19573
22307
  HAVE_MBSINIT=1;
19574
22308
  HAVE_MBRTOWC=1;
19578
22312
  HAVE_WCRTOMB=1;
19579
22313
  HAVE_WCSRTOMBS=1;
19580
22314
  HAVE_WCSNRTOMBS=1;
 
22315
  HAVE_WMEMCHR=1;
 
22316
  HAVE_WMEMCMP=1;
 
22317
  HAVE_WMEMCPY=1;
 
22318
  HAVE_WMEMMOVE=1;
 
22319
  HAVE_WMEMSET=1;
 
22320
  HAVE_WCSLEN=1;
 
22321
  HAVE_WCSNLEN=1;
 
22322
  HAVE_WCSCPY=1;
 
22323
  HAVE_WCPCPY=1;
 
22324
  HAVE_WCSNCPY=1;
 
22325
  HAVE_WCPNCPY=1;
 
22326
  HAVE_WCSCAT=1;
 
22327
  HAVE_WCSNCAT=1;
 
22328
  HAVE_WCSCMP=1;
 
22329
  HAVE_WCSNCMP=1;
 
22330
  HAVE_WCSCASECMP=1;
 
22331
  HAVE_WCSNCASECMP=1;
 
22332
  HAVE_WCSCOLL=1;
 
22333
  HAVE_WCSXFRM=1;
 
22334
  HAVE_WCSDUP=1;
 
22335
  HAVE_WCSCHR=1;
 
22336
  HAVE_WCSRCHR=1;
 
22337
  HAVE_WCSCSPN=1;
 
22338
  HAVE_WCSSPN=1;
 
22339
  HAVE_WCSPBRK=1;
 
22340
  HAVE_WCSSTR=1;
 
22341
  HAVE_WCSTOK=1;
 
22342
  HAVE_WCSWIDTH=1;
19581
22343
  HAVE_DECL_WCTOB=1;
19582
22344
  HAVE_DECL_WCWIDTH=1;
19583
22345
  REPLACE_MBSTATE_T=0;
19592
22354
  REPLACE_WCSRTOMBS=0;
19593
22355
  REPLACE_WCSNRTOMBS=0;
19594
22356
  REPLACE_WCWIDTH=0;
 
22357
  REPLACE_WCSWIDTH=0;
19595
22358
 
19596
22359
 
19597
22360
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
19598
22361
$as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
19599
 
if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
 
22362
if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
19600
22363
  $as_echo_n "(cached) " >&6
19601
22364
else
19602
22365
  gl_cv_header_wchar_h_correct_inline=yes
19604
22367
/* end confdefs.h.  */
19605
22368
 
19606
22369
       #define wcstod renamed_wcstod
 
22370
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
 
22371
   <wchar.h>.
 
22372
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
22373
   included before <wchar.h>.  */
 
22374
#include <stddef.h>
 
22375
#include <stdio.h>
 
22376
#include <time.h>
19607
22377
#include <wchar.h>
19608
22378
extern int zero (void);
19609
22379
int main () { return zero(); }
19619
22389
/* end confdefs.h.  */
19620
22390
 
19621
22391
         #define wcstod renamed_wcstod
 
22392
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
 
22393
   <wchar.h>.
 
22394
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
22395
   included before <wchar.h>.  */
 
22396
#include <stddef.h>
 
22397
#include <stdio.h>
 
22398
#include <time.h>
19622
22399
#include <wchar.h>
19623
22400
int zero (void) { return 0; }
19624
22401
 
19654
22431
  fi
19655
22432
 
19656
22433
 
 
22434
  GNULIB_FCNTL=0;
 
22435
  GNULIB_NONBLOCKING=0;
 
22436
  GNULIB_OPEN=0;
 
22437
  GNULIB_OPENAT=0;
 
22438
    HAVE_FCNTL=1;
 
22439
  HAVE_OPENAT=1;
 
22440
  REPLACE_FCNTL=0;
 
22441
  REPLACE_OPEN=0;
 
22442
  REPLACE_OPENAT=0;
 
22443
 
 
22444
 
 
22445
 
 
22446
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
 
22447
$as_echo_n "checking for working fcntl.h... " >&6; }
 
22448
if ${gl_cv_header_working_fcntl_h+:} false; then :
 
22449
  $as_echo_n "(cached) " >&6
 
22450
else
 
22451
  if test "$cross_compiling" = yes; then :
 
22452
  gl_cv_header_working_fcntl_h=cross-compiling
 
22453
else
 
22454
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
22455
/* end confdefs.h.  */
 
22456
#include <sys/types.h>
 
22457
           #include <sys/stat.h>
 
22458
           #include <unistd.h>
 
22459
           #include <fcntl.h>
 
22460
           #ifndef O_NOATIME
 
22461
            #define O_NOATIME 0
 
22462
           #endif
 
22463
           #ifndef O_NOFOLLOW
 
22464
            #define O_NOFOLLOW 0
 
22465
           #endif
 
22466
           static int const constants[] =
 
22467
            {
 
22468
              O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
 
22469
              O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
 
22470
            };
 
22471
 
 
22472
int
 
22473
main ()
 
22474
{
 
22475
 
 
22476
            int result = !constants;
 
22477
            {
 
22478
              static char const sym[] = "conftest.sym";
 
22479
              if (symlink (".", sym) != 0)
 
22480
                result |= 2;
 
22481
              else
 
22482
                {
 
22483
                  int fd = open (sym, O_RDONLY | O_NOFOLLOW);
 
22484
                  if (fd >= 0)
 
22485
                    {
 
22486
                      close (fd);
 
22487
                      result |= 4;
 
22488
                    }
 
22489
                }
 
22490
              unlink (sym);
 
22491
            }
 
22492
            {
 
22493
              static char const file[] = "confdefs.h";
 
22494
              int fd = open (file, O_RDONLY | O_NOATIME);
 
22495
              if (fd < 0)
 
22496
                result |= 8;
 
22497
              else
 
22498
                {
 
22499
                  struct stat st0;
 
22500
                  if (fstat (fd, &st0) != 0)
 
22501
                    result |= 16;
 
22502
                  else
 
22503
                    {
 
22504
                      char c;
 
22505
                      sleep (1);
 
22506
                      if (read (fd, &c, 1) != 1)
 
22507
                        result |= 24;
 
22508
                      else
 
22509
                        {
 
22510
                          if (close (fd) != 0)
 
22511
                            result |= 32;
 
22512
                          else
 
22513
                            {
 
22514
                              struct stat st1;
 
22515
                              if (stat (file, &st1) != 0)
 
22516
                                result |= 40;
 
22517
                              else
 
22518
                                if (st0.st_atime != st1.st_atime)
 
22519
                                  result |= 64;
 
22520
                            }
 
22521
                        }
 
22522
                    }
 
22523
                }
 
22524
            }
 
22525
            return result;
 
22526
  ;
 
22527
  return 0;
 
22528
}
 
22529
_ACEOF
 
22530
if ac_fn_c_try_run "$LINENO"; then :
 
22531
  gl_cv_header_working_fcntl_h=yes
 
22532
else
 
22533
  case $? in #(
 
22534
        4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
 
22535
        64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
 
22536
        68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
 
22537
         *) gl_cv_header_working_fcntl_h='no';;
 
22538
        esac
 
22539
fi
 
22540
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
22541
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
22542
fi
 
22543
 
 
22544
fi
 
22545
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
 
22546
$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
 
22547
 
 
22548
  case $gl_cv_header_working_fcntl_h in #(
 
22549
  *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
 
22550
  *) ac_val=1;;
 
22551
  esac
 
22552
 
 
22553
cat >>confdefs.h <<_ACEOF
 
22554
#define HAVE_WORKING_O_NOATIME $ac_val
 
22555
_ACEOF
 
22556
 
 
22557
 
 
22558
  case $gl_cv_header_working_fcntl_h in #(
 
22559
  *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
 
22560
  *) ac_val=1;;
 
22561
  esac
 
22562
 
 
22563
cat >>confdefs.h <<_ACEOF
 
22564
#define HAVE_WORKING_O_NOFOLLOW $ac_val
 
22565
_ACEOF
 
22566
 
 
22567
 
 
22568
 
19657
22569
 
19658
22570
 
19659
22571
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ungetc works on arbitrary bytes" >&5
19660
22572
$as_echo_n "checking whether ungetc works on arbitrary bytes... " >&6; }
19661
 
if test "${gl_cv_func_ungetc_works+set}" = set; then :
 
22573
if ${gl_cv_func_ungetc_works+:} false; then :
19662
22574
  $as_echo_n "(cached) " >&6
19663
22575
else
19664
22576
  if test "$cross_compiling" = yes; then :
19712
22624
 
19713
22625
 
19714
22626
 
 
22627
  GNULIB_IMAXABS=0;
 
22628
  GNULIB_IMAXDIV=0;
 
22629
  GNULIB_STRTOIMAX=0;
 
22630
  GNULIB_STRTOUMAX=0;
 
22631
    HAVE_DECL_IMAXABS=1;
 
22632
  HAVE_DECL_IMAXDIV=1;
 
22633
  HAVE_DECL_STRTOIMAX=1;
 
22634
  HAVE_DECL_STRTOUMAX=1;
 
22635
  INT32_MAX_LT_INTMAX_MAX=1;
 
22636
  INT64_MAX_EQ_LONG_MAX='defined _LP64';
 
22637
  PRI_MACROS_BROKEN=0;
 
22638
  PRIPTR_PREFIX=__PRIPTR_PREFIX;
 
22639
  UINT32_MAX_LT_UINTMAX_MAX=1;
 
22640
  UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
 
22641
 
 
22642
 
 
22643
 
 
22644
 
 
22645
 
 
22646
 
 
22647
 
 
22648
 
 
22649
 
 
22650
 
 
22651
 
 
22652
 
 
22653
 
 
22654
 
 
22655
 
 
22656
     if test $gl_cv_have_include_next = yes; then
 
22657
       gl_cv_next_inttypes_h='<'inttypes.h'>'
 
22658
     else
 
22659
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
 
22660
$as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
 
22661
if ${gl_cv_next_inttypes_h+:} false; then :
 
22662
  $as_echo_n "(cached) " >&6
 
22663
else
 
22664
 
 
22665
             if test $ac_cv_header_inttypes_h = yes; then
 
22666
 
 
22667
 
 
22668
               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
22669
/* end confdefs.h.  */
 
22670
#include <inttypes.h>
 
22671
 
 
22672
_ACEOF
 
22673
                                                                                                                        case "$host_os" in
 
22674
                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
22675
                 *)    gl_absname_cpp="$ac_cpp" ;;
 
22676
               esac
 
22677
                                                            gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
22678
                  sed -n '\#/inttypes.h#{
 
22679
                    s#.*"\(.*/inttypes.h\)".*#\1#
 
22680
                    s#^/[^/]#//&#
 
22681
                    p
 
22682
                    q
 
22683
                  }'`'"'
 
22684
          else
 
22685
               gl_cv_next_inttypes_h='<'inttypes.h'>'
 
22686
             fi
 
22687
 
 
22688
 
 
22689
fi
 
22690
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
 
22691
$as_echo "$gl_cv_next_inttypes_h" >&6; }
 
22692
     fi
 
22693
     NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
 
22694
 
 
22695
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
22696
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
22697
       gl_next_as_first_directive='<'inttypes.h'>'
 
22698
     else
 
22699
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
22700
       gl_next_as_first_directive=$gl_cv_next_inttypes_h
 
22701
     fi
 
22702
     NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
 
22703
 
 
22704
 
 
22705
 
 
22706
 
 
22707
 
 
22708
 
 
22709
 
 
22710
 
 
22711
$as_echo "#define GL_TRIGGER_STDC_LIMIT_MACROS 1" >>confdefs.h
 
22712
 
 
22713
 
 
22714
 
 
22715
 
 
22716
    for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
 
22717
    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
 
22718
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
 
22719
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
 
22720
if eval \${$as_gl_Symbol+:} false; then :
 
22721
  $as_echo_n "(cached) " >&6
 
22722
else
 
22723
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
22724
/* end confdefs.h.  */
 
22725
#include <inttypes.h>
 
22726
 
 
22727
int
 
22728
main ()
 
22729
{
 
22730
#undef $gl_func
 
22731
  (void) $gl_func;
 
22732
  ;
 
22733
  return 0;
 
22734
}
 
22735
_ACEOF
 
22736
if ac_fn_c_try_compile "$LINENO"; then :
 
22737
  eval "$as_gl_Symbol=yes"
 
22738
else
 
22739
  eval "$as_gl_Symbol=no"
 
22740
fi
 
22741
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22742
fi
 
22743
eval ac_res=\$$as_gl_Symbol
 
22744
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
22745
$as_echo "$ac_res" >&6; }
 
22746
    if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
 
22747
  cat >>confdefs.h <<_ACEOF
 
22748
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
 
22749
_ACEOF
 
22750
 
 
22751
                     eval ac_cv_have_decl_$gl_func=yes
 
22752
fi
 
22753
      done
 
22754
 
 
22755
 
 
22756
 
 
22757
  for ac_header in inttypes.h
 
22758
do :
 
22759
  ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
 
22760
if test "x$ac_cv_header_inttypes_h" = xyes; then :
 
22761
  cat >>confdefs.h <<_ACEOF
 
22762
#define HAVE_INTTYPES_H 1
 
22763
_ACEOF
 
22764
 
 
22765
fi
 
22766
 
 
22767
done
 
22768
 
 
22769
  if test $ac_cv_header_inttypes_h = yes; then
 
22770
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
 
22771
$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
 
22772
if ${gt_cv_inttypes_pri_broken+:} false; then :
 
22773
  $as_echo_n "(cached) " >&6
 
22774
else
 
22775
 
 
22776
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
22777
/* end confdefs.h.  */
 
22778
#include <inttypes.h>
 
22779
#ifdef PRId32
 
22780
char *p = PRId32;
 
22781
#endif
 
22782
 
 
22783
int
 
22784
main ()
 
22785
{
 
22786
 
 
22787
  ;
 
22788
  return 0;
 
22789
}
 
22790
_ACEOF
 
22791
if ac_fn_c_try_compile "$LINENO"; then :
 
22792
  gt_cv_inttypes_pri_broken=no
 
22793
else
 
22794
  gt_cv_inttypes_pri_broken=yes
 
22795
fi
 
22796
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22797
 
 
22798
fi
 
22799
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
 
22800
$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
 
22801
  fi
 
22802
  if test "$gt_cv_inttypes_pri_broken" = yes; then
 
22803
 
 
22804
cat >>confdefs.h <<_ACEOF
 
22805
#define PRI_MACROS_BROKEN 1
 
22806
_ACEOF
 
22807
 
 
22808
    PRI_MACROS_BROKEN=1
 
22809
  else
 
22810
    PRI_MACROS_BROKEN=0
 
22811
  fi
 
22812
 
 
22813
 
 
22814
 
 
22815
 
 
22816
 
19715
22817
   if true; then
19716
22818
  GL_COND_LIBTOOL_TRUE=
19717
22819
  GL_COND_LIBTOOL_FALSE='#'
19732
22834
 
19733
22835
 
19734
22836
  gl_source_base='gl'
19735
 
  # Code from module alignof:
19736
 
  # Code from module alloca-opt:
19737
 
 
19738
 
 
19739
 
 
19740
22837
 
19741
22838
 
19742
22839
  if test $ac_cv_func_alloca_works = no; then
19747
22844
  if test $ac_cv_working_alloca_h = yes; then
19748
22845
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
19749
22846
$as_echo_n "checking for alloca as a compiler built-in... " >&6; }
19750
 
if test "${gl_cv_rpl_alloca+set}" = set; then :
 
22847
if ${gl_cv_rpl_alloca+:} false; then :
19751
22848
  $as_echo_n "(cached) " >&6
19752
22849
else
19753
22850
 
19783
22880
    ALLOCA_H=alloca.h
19784
22881
  fi
19785
22882
 
19786
 
 
19787
 
  # Code from module arg-nonnull:
19788
 
  # Code from module byteswap:
 
22883
   if test -n "$ALLOCA_H"; then
 
22884
  GL_GENERATE_ALLOCA_H_TRUE=
 
22885
  GL_GENERATE_ALLOCA_H_FALSE='#'
 
22886
else
 
22887
  GL_GENERATE_ALLOCA_H_TRUE='#'
 
22888
  GL_GENERATE_ALLOCA_H_FALSE=
 
22889
fi
 
22890
 
 
22891
 
19789
22892
 
19790
22893
    for ac_header in byteswap.h
19791
22894
do :
19792
22895
  ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
19793
 
if test "x$ac_cv_header_byteswap_h" = x""yes; then :
 
22896
if test "x$ac_cv_header_byteswap_h" = xyes; then :
19794
22897
  cat >>confdefs.h <<_ACEOF
19795
22898
#define HAVE_BYTESWAP_H 1
19796
22899
_ACEOF
19806
22909
done
19807
22910
 
19808
22911
 
19809
 
 
19810
 
  # Code from module c++defs:
19811
 
  # Code from module c-ctype:
19812
 
  # Code from module close-hook:
19813
 
  # Code from module errno:
19814
 
 
19815
 
  # Code from module extensions:
19816
 
  # Code from module float:
 
22912
   if test -n "$BYTESWAP_H"; then
 
22913
  GL_GENERATE_BYTESWAP_H_TRUE=
 
22914
  GL_GENERATE_BYTESWAP_H_FALSE='#'
 
22915
else
 
22916
  GL_GENERATE_BYTESWAP_H_TRUE='#'
 
22917
  GL_GENERATE_BYTESWAP_H_FALSE=
 
22918
fi
 
22919
 
 
22920
 
 
22921
 
19817
22922
 
19818
22923
 
19819
22924
 
19820
22925
  FLOAT_H=
 
22926
  REPLACE_FLOAT_LDBL=0
19821
22927
  case "$host_os" in
19822
 
    beos* | openbsd*)
 
22928
    aix* | beos* | openbsd* | mirbsd* | irix*)
19823
22929
      FLOAT_H=float.h
 
22930
      ;;
 
22931
    freebsd*)
 
22932
      case "$host_cpu" in
 
22933
        i[34567]86 )
 
22934
          FLOAT_H=float.h
 
22935
          ;;
 
22936
        x86_64 )
 
22937
          # On x86_64 systems, the C compiler may still be generating
 
22938
          # 32-bit code.
 
22939
          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
22940
/* end confdefs.h.  */
 
22941
#if defined __LP64__ || defined __x86_64__ || defined __amd64__
 
22942
             yes
 
22943
             #endif
 
22944
_ACEOF
 
22945
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
22946
  $EGREP "yes" >/dev/null 2>&1; then :
 
22947
 
 
22948
else
 
22949
  FLOAT_H=float.h
 
22950
fi
 
22951
rm -f conftest*
 
22952
 
 
22953
          ;;
 
22954
      esac
 
22955
      ;;
 
22956
  esac
 
22957
  case "$host_os" in
 
22958
    aix* | freebsd*)
 
22959
      if test -n "$FLOAT_H"; then
 
22960
        REPLACE_FLOAT_LDBL=1
 
22961
      fi
 
22962
      ;;
 
22963
  esac
 
22964
  if test -n "$FLOAT_H"; then
 
22965
 
 
22966
 
19824
22967
 
19825
22968
 
19826
22969
 
19832
22975
     else
19833
22976
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
19834
22977
$as_echo_n "checking absolute name of <float.h>... " >&6; }
19835
 
if test "${gl_cv_next_float_h+set}" = set; then :
 
22978
if ${gl_cv_next_float_h+:} false; then :
19836
22979
  $as_echo_n "(cached) " >&6
19837
22980
else
19838
22981
 
19839
 
          if test $ac_cv_header_float_h = yes; then
19840
 
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
22982
               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19841
22983
/* end confdefs.h.  */
19842
22984
#include <float.h>
19843
22985
 
19844
22986
_ACEOF
19845
 
                                                                                                case "$host_os" in
19846
 
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
19847
 
              *)    gl_absname_cpp="$ac_cpp" ;;
19848
 
            esac
19849
 
                                                gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19850
 
               sed -n '\#/float.h#{
19851
 
                 s#.*"\(.*/float.h\)".*#\1#
19852
 
                 s#^/[^/]#//&#
19853
 
                 p
19854
 
                 q
19855
 
               }'`'"'
19856
 
          else
19857
 
            gl_cv_next_float_h='<'float.h'>'
19858
 
          fi
 
22987
                                                                                                                        case "$host_os" in
 
22988
                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
22989
                 *)    gl_absname_cpp="$ac_cpp" ;;
 
22990
               esac
 
22991
                                                            gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
22992
                  sed -n '\#/float.h#{
 
22993
                    s#.*"\(.*/float.h\)".*#\1#
 
22994
                    s#^/[^/]#//&#
 
22995
                    p
 
22996
                    q
 
22997
                  }'`'"'
 
22998
 
19859
22999
 
19860
23000
fi
19861
23001
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
19874
23014
 
19875
23015
 
19876
23016
 
19877
 
      ;;
19878
 
  esac
19879
 
 
19880
 
 
19881
 
  # Code from module fseeko:
19882
 
 
19883
 
 
19884
 
 
19885
 
 
 
23017
 
 
23018
  fi
 
23019
 
 
23020
   if test -n "$FLOAT_H"; then
 
23021
  GL_GENERATE_FLOAT_H_TRUE=
 
23022
  GL_GENERATE_FLOAT_H_FALSE='#'
 
23023
else
 
23024
  GL_GENERATE_FLOAT_H_TRUE='#'
 
23025
  GL_GENERATE_FLOAT_H_FALSE=
 
23026
fi
 
23027
 
 
23028
 
 
23029
if test $REPLACE_FLOAT_LDBL = 1; then
 
23030
 
 
23031
 
 
23032
 
 
23033
 
 
23034
 
 
23035
 
 
23036
 
 
23037
 
 
23038
  lgl_LIBOBJS="$lgl_LIBOBJS float.$ac_objext"
 
23039
 
 
23040
fi
 
23041
 
 
23042
 
 
23043
 
 
23044
    if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then
 
23045
    REPLACE_FSEEK=1
 
23046
  fi
 
23047
 
 
23048
if test $REPLACE_FSEEK = 1; then
 
23049
 
 
23050
 
 
23051
 
 
23052
 
 
23053
 
 
23054
 
 
23055
 
 
23056
 
 
23057
  lgl_LIBOBJS="$lgl_LIBOBJS fseek.$ac_objext"
 
23058
 
 
23059
fi
 
23060
 
 
23061
 
 
23062
 
 
23063
 
 
23064
 
 
23065
          GNULIB_FSEEK=1
 
23066
 
 
23067
 
 
23068
 
 
23069
 
 
23070
 
 
23071
$as_echo "#define GNULIB_TEST_FSEEK 1" >>confdefs.h
 
23072
 
 
23073
 
 
23074
 
 
23075
 
 
23076
 
 
23077
 
 
23078
 
 
23079
 
 
23080
 
 
23081
 
 
23082
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5
 
23083
$as_echo_n "checking for fseeko... " >&6; }
 
23084
if ${gl_cv_func_fseeko+:} false; then :
 
23085
  $as_echo_n "(cached) " >&6
 
23086
else
 
23087
 
 
23088
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
23089
/* end confdefs.h.  */
 
23090
#include <stdio.h>
 
23091
 
 
23092
int
 
23093
main ()
 
23094
{
 
23095
fseeko (stdin, 0, 0);
 
23096
  ;
 
23097
  return 0;
 
23098
}
 
23099
_ACEOF
 
23100
if ac_fn_c_try_link "$LINENO"; then :
 
23101
  gl_cv_func_fseeko=yes
 
23102
else
 
23103
  gl_cv_func_fseeko=no
 
23104
fi
 
23105
rm -f core conftest.err conftest.$ac_objext \
 
23106
    conftest$ac_exeext conftest.$ac_ext
 
23107
 
 
23108
fi
 
23109
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fseeko" >&5
 
23110
$as_echo "$gl_cv_func_fseeko" >&6; }
 
23111
 
 
23112
 
 
23113
  if test $ac_cv_have_decl_fseeko = no; then
 
23114
    HAVE_DECL_FSEEKO=0
 
23115
  fi
19886
23116
 
19887
23117
  if test $gl_cv_func_fseeko = no; then
19888
23118
    HAVE_FSEEKO=0
19889
 
 
19890
 
 
19891
 
 
19892
 
  if test $gl_cv_func_fseeko = yes; then
19893
 
    REPLACE_FSEEKO=1
19894
 
  fi
19895
 
 
19896
 
 
19897
 
 
19898
 
 
19899
 
 
19900
 
 
19901
 
 
19902
 
 
19903
 
  lgl_LIBOBJS="$lgl_LIBOBJS fseeko.$ac_objext"
19904
 
 
19905
 
 
19906
 
 
19907
23119
  else
19908
23120
    if test $gl_cv_var_stdin_large_offset = no; then
19909
 
 
19910
 
 
19911
 
 
19912
 
  if test $gl_cv_func_fseeko = yes; then
19913
 
    REPLACE_FSEEKO=1
19914
 
  fi
19915
 
 
19916
 
 
19917
 
 
19918
 
 
19919
 
 
19920
 
 
19921
 
 
19922
 
 
19923
 
  lgl_LIBOBJS="$lgl_LIBOBJS fseeko.$ac_objext"
19924
 
 
19925
 
 
19926
 
 
 
23121
      REPLACE_FSEEKO=1
19927
23122
    fi
 
23123
 
19928
23124
  fi
19929
23125
 
19930
 
 
19931
 
 
19932
 
 
19933
 
  GNULIB_FSEEKO=1
 
23126
if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then
 
23127
 
 
23128
 
 
23129
 
 
23130
 
 
23131
 
 
23132
 
 
23133
 
 
23134
 
 
23135
  lgl_LIBOBJS="$lgl_LIBOBJS fseeko.$ac_objext"
 
23136
 
 
23137
fi
 
23138
 
 
23139
 
 
23140
 
 
23141
 
 
23142
 
 
23143
          GNULIB_FSEEKO=1
 
23144
 
 
23145
 
19934
23146
 
19935
23147
 
19936
23148
 
19938
23150
 
19939
23151
 
19940
23152
 
19941
 
  # Code from module func:
 
23153
 
 
23154
 
 
23155
 
 
23156
    if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
 
23157
    REPLACE_FTELL=1
 
23158
  fi
 
23159
 
 
23160
if test $REPLACE_FTELL = 1; then
 
23161
 
 
23162
 
 
23163
 
 
23164
 
 
23165
 
 
23166
 
 
23167
 
 
23168
 
 
23169
  lgl_LIBOBJS="$lgl_LIBOBJS ftell.$ac_objext"
 
23170
 
 
23171
fi
 
23172
 
 
23173
 
 
23174
 
 
23175
 
 
23176
 
 
23177
          GNULIB_FTELL=1
 
23178
 
 
23179
 
 
23180
 
 
23181
 
 
23182
 
 
23183
$as_echo "#define GNULIB_TEST_FTELL 1" >>confdefs.h
 
23184
 
 
23185
 
 
23186
 
 
23187
 
 
23188
 
 
23189
 
 
23190
 
 
23191
 
 
23192
 
 
23193
 
 
23194
 
 
23195
  if test $ac_cv_have_decl_ftello = no; then
 
23196
    HAVE_DECL_FTELLO=0
 
23197
  fi
 
23198
 
 
23199
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
 
23200
$as_echo_n "checking for ftello... " >&6; }
 
23201
if ${gl_cv_func_ftello+:} false; then :
 
23202
  $as_echo_n "(cached) " >&6
 
23203
else
 
23204
 
 
23205
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
23206
/* end confdefs.h.  */
 
23207
#include <stdio.h>
 
23208
int
 
23209
main ()
 
23210
{
 
23211
ftello (stdin);
 
23212
  ;
 
23213
  return 0;
 
23214
}
 
23215
_ACEOF
 
23216
if ac_fn_c_try_link "$LINENO"; then :
 
23217
  gl_cv_func_ftello=yes
 
23218
else
 
23219
  gl_cv_func_ftello=no
 
23220
fi
 
23221
rm -f core conftest.err conftest.$ac_objext \
 
23222
    conftest$ac_exeext conftest.$ac_ext
 
23223
 
 
23224
fi
 
23225
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
 
23226
$as_echo "$gl_cv_func_ftello" >&6; }
 
23227
  if test $gl_cv_func_ftello = no; then
 
23228
    HAVE_FTELLO=0
 
23229
  else
 
23230
    if test $gl_cv_var_stdin_large_offset = no; then
 
23231
      REPLACE_FTELLO=1
 
23232
    else
 
23233
 
 
23234
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
 
23235
$as_echo_n "checking whether ftello works... " >&6; }
 
23236
if ${gl_cv_func_ftello_works+:} false; then :
 
23237
  $as_echo_n "(cached) " >&6
 
23238
else
 
23239
 
 
23240
                              case "$host_os" in
 
23241
                      # Guess no on Solaris.
 
23242
            solaris*) gl_cv_func_ftello_works="guessing no" ;;
 
23243
                      # Guess yes otherwise.
 
23244
            *)        gl_cv_func_ftello_works="guessing yes" ;;
 
23245
          esac
 
23246
          if test "$cross_compiling" = yes; then :
 
23247
  :
 
23248
else
 
23249
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
23250
/* end confdefs.h.  */
 
23251
 
 
23252
#include <stdio.h>
 
23253
#include <stdlib.h>
 
23254
#include <string.h>
 
23255
#define TESTFILE "conftest.tmp"
 
23256
int
 
23257
main (void)
 
23258
{
 
23259
  FILE *fp;
 
23260
 
 
23261
  /* Create a file with some contents.  */
 
23262
  fp = fopen (TESTFILE, "w");
 
23263
  if (fp == NULL)
 
23264
    return 70;
 
23265
  if (fwrite ("foogarsh", 1, 8, fp) < 8)
 
23266
    return 71;
 
23267
  if (fclose (fp))
 
23268
    return 72;
 
23269
 
 
23270
  /* The file's contents is now "foogarsh".  */
 
23271
 
 
23272
  /* Try writing after reading to EOF.  */
 
23273
  fp = fopen (TESTFILE, "r+");
 
23274
  if (fp == NULL)
 
23275
    return 73;
 
23276
  if (fseek (fp, -1, SEEK_END))
 
23277
    return 74;
 
23278
  if (!(getc (fp) == 'h'))
 
23279
    return 1;
 
23280
  if (!(getc (fp) == EOF))
 
23281
    return 2;
 
23282
  if (!(ftell (fp) == 8))
 
23283
    return 3;
 
23284
  if (!(ftell (fp) == 8))
 
23285
    return 4;
 
23286
  if (!(putc ('!', fp) == '!'))
 
23287
    return 5;
 
23288
  if (!(ftell (fp) == 9))
 
23289
    return 6;
 
23290
  if (!(fclose (fp) == 0))
 
23291
    return 7;
 
23292
  fp = fopen (TESTFILE, "r");
 
23293
  if (fp == NULL)
 
23294
    return 75;
 
23295
  {
 
23296
    char buf[10];
 
23297
    if (!(fread (buf, 1, 10, fp) == 9))
 
23298
      return 10;
 
23299
    if (!(memcmp (buf, "foogarsh!", 9) == 0))
 
23300
      return 11;
 
23301
  }
 
23302
  if (!(fclose (fp) == 0))
 
23303
    return 12;
 
23304
 
 
23305
  /* The file's contents is now "foogarsh!".  */
 
23306
 
 
23307
  return 0;
 
23308
}
 
23309
_ACEOF
 
23310
if ac_fn_c_try_run "$LINENO"; then :
 
23311
  gl_cv_func_ftello_works=yes
 
23312
else
 
23313
  gl_cv_func_ftello_works=no
 
23314
fi
 
23315
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
23316
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
23317
fi
 
23318
 
 
23319
 
 
23320
fi
 
23321
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
 
23322
$as_echo "$gl_cv_func_ftello_works" >&6; }
 
23323
      case "$gl_cv_func_ftello_works" in
 
23324
        *yes) ;;
 
23325
        *)
 
23326
          REPLACE_FTELLO=1
 
23327
 
 
23328
$as_echo "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
 
23329
 
 
23330
          ;;
 
23331
      esac
 
23332
    fi
 
23333
  fi
 
23334
 
 
23335
if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
 
23336
 
 
23337
 
 
23338
 
 
23339
 
 
23340
 
 
23341
 
 
23342
 
 
23343
 
 
23344
  lgl_LIBOBJS="$lgl_LIBOBJS ftello.$ac_objext"
 
23345
 
 
23346
fi
 
23347
 
 
23348
 
 
23349
 
 
23350
 
 
23351
 
 
23352
          GNULIB_FTELLO=1
 
23353
 
 
23354
 
 
23355
 
 
23356
 
 
23357
 
 
23358
$as_echo "#define GNULIB_TEST_FTELLO 1" >>confdefs.h
 
23359
 
 
23360
 
 
23361
 
19942
23362
 
19943
23363
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __func__ is available" >&5
19944
23364
$as_echo_n "checking whether __func__ is available... " >&6; }
19945
 
if test "${gl_cv_var_func+set}" = set; then :
 
23365
if ${gl_cv_var_func+:} false; then :
19946
23366
  $as_echo_n "(cached) " >&6
19947
23367
else
19948
23368
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19971
23391
 
19972
23392
  fi
19973
23393
 
19974
 
  # Code from module gettext:
19975
 
 
19976
 
  # Code from module gettext-h:
19977
 
 
19978
 
 
19979
 
  # Code from module havelib:
19980
 
  # Code from module include_next:
19981
 
  # Code from module lib-msvc-compat:
 
23394
 
 
23395
 
 
23396
 
19982
23397
 
19983
23398
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc/ld supports -Wl,--output-def" >&5
19984
23399
$as_echo_n "checking if gcc/ld supports -Wl,--output-def... " >&6; }
19985
 
if test "${gl_cv_ld_output_def+set}" = set; then :
 
23400
if ${gl_cv_ld_output_def+:} false; then :
19986
23401
  $as_echo_n "(cached) " >&6
19987
23402
else
19988
23403
  if test "$enable_shared" = no; then
20023
23438
fi
20024
23439
 
20025
23440
 
20026
 
  # Code from module lib-symbol-versions:
20027
23441
 
20028
23442
  # Check whether --enable-ld-version-script was given.
20029
23443
if test "${enable_ld_version_script+set}" = set; then :
20076
23490
fi
20077
23491
 
20078
23492
 
20079
 
  # Code from module lseek:
20080
23493
 
20081
23494
 
20082
23495
 
20083
23496
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek detects pipes" >&5
20084
23497
$as_echo_n "checking whether lseek detects pipes... " >&6; }
20085
 
if test "${gl_cv_func_lseek_pipe+set}" = set; then :
 
23498
if ${gl_cv_func_lseek_pipe+:} false; then :
20086
23499
  $as_echo_n "(cached) " >&6
20087
23500
else
20088
23501
  if test $cross_compiling = no; then
20092
23505
#include <sys/types.h> /* for off_t */
20093
23506
#include <stdio.h> /* for SEEK_CUR */
20094
23507
#include <unistd.h>
20095
 
int main ()
 
23508
int
 
23509
main ()
20096
23510
{
 
23511
 
20097
23512
  /* Exit with success only if stdin is seekable.  */
20098
23513
  return lseek (0, (off_t)0, SEEK_CUR) < 0;
 
23514
 
 
23515
  ;
 
23516
  return 0;
20099
23517
}
20100
23518
_ACEOF
20101
23519
if ac_fn_c_try_link "$LINENO"; then :
20132
23550
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lseek_pipe" >&5
20133
23551
$as_echo "$gl_cv_func_lseek_pipe" >&6; }
20134
23552
  if test $gl_cv_func_lseek_pipe = no; then
20135
 
 
 
23553
    REPLACE_LSEEK=1
 
23554
 
 
23555
$as_echo "#define LSEEK_PIPE_BROKEN 1" >>confdefs.h
 
23556
 
 
23557
  fi
 
23558
 
 
23559
if test $REPLACE_LSEEK = 1; then
20136
23560
 
20137
23561
 
20138
23562
 
20143
23567
 
20144
23568
  lgl_LIBOBJS="$lgl_LIBOBJS lseek.$ac_objext"
20145
23569
 
20146
 
 
20147
 
  REPLACE_LSEEK=1
20148
 
 
20149
 
$as_echo "#define LSEEK_PIPE_BROKEN 1" >>confdefs.h
20150
 
 
20151
 
 
20152
 
  fi
20153
 
 
20154
 
 
20155
 
 
20156
 
 
20157
 
  GNULIB_LSEEK=1
 
23570
fi
 
23571
 
 
23572
 
 
23573
 
 
23574
 
 
23575
 
 
23576
          GNULIB_LSEEK=1
 
23577
 
 
23578
 
20158
23579
 
20159
23580
 
20160
23581
 
20162
23583
 
20163
23584
 
20164
23585
 
20165
 
  # Code from module memchr:
20166
 
 
20167
 
 
20168
 
 
20169
 
 
20170
 
  GNULIB_MEMCHR=1
 
23586
 
 
23587
 
 
23588
 
 
23589
  if test $gl_cv_func_malloc_posix = yes; then
 
23590
 
 
23591
$as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
 
23592
 
 
23593
  else
 
23594
    REPLACE_MALLOC=1
 
23595
  fi
 
23596
 
 
23597
if test $REPLACE_MALLOC = 1; then
 
23598
 
 
23599
 
 
23600
 
 
23601
 
 
23602
 
 
23603
 
 
23604
 
 
23605
 
 
23606
  lgl_LIBOBJS="$lgl_LIBOBJS malloc.$ac_objext"
 
23607
 
 
23608
fi
 
23609
 
 
23610
 
 
23611
 
 
23612
 
 
23613
 
 
23614
          GNULIB_MALLOC_POSIX=1
 
23615
 
 
23616
 
 
23617
 
 
23618
 
 
23619
 
 
23620
$as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
 
23621
 
 
23622
 
 
23623
 
 
23624
 
 
23625
if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
 
23626
 
 
23627
 
 
23628
 
 
23629
 
 
23630
 
 
23631
 
 
23632
 
 
23633
 
 
23634
  lgl_LIBOBJS="$lgl_LIBOBJS memchr.$ac_objext"
 
23635
 
 
23636
 
 
23637
  for ac_header in bp-sym.h
 
23638
do :
 
23639
  ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
 
23640
if test "x$ac_cv_header_bp_sym_h" = xyes; then :
 
23641
  cat >>confdefs.h <<_ACEOF
 
23642
#define HAVE_BP_SYM_H 1
 
23643
_ACEOF
 
23644
 
 
23645
fi
 
23646
 
 
23647
done
 
23648
 
 
23649
 
 
23650
fi
 
23651
 
 
23652
 
 
23653
 
 
23654
 
 
23655
 
 
23656
          GNULIB_MEMCHR=1
 
23657
 
 
23658
 
20171
23659
 
20172
23660
 
20173
23661
 
20175
23663
 
20176
23664
 
20177
23665
 
20178
 
  # Code from module memmem-simple:
20179
 
 
20180
 
 
20181
 
 
20182
 
 
20183
 
 
20184
 
 
20185
 
 
20186
 
 
20187
23666
 
20188
23667
 
20189
23668
 
20191
23670
  for ac_func in memmem
20192
23671
do :
20193
23672
  ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
20194
 
if test "x$ac_cv_func_memmem" = x""yes; then :
 
23673
if test "x$ac_cv_func_memmem" = xyes; then :
20195
23674
  cat >>confdefs.h <<_ACEOF
20196
23675
#define HAVE_MEMMEM 1
20197
23676
_ACEOF
20198
23677
 
20199
 
else
20200
 
 
20201
 
    lgl_LIBOBJS="$lgl_LIBOBJS $ac_func.$ac_objext"
20202
 
 
20203
23678
fi
20204
23679
done
20205
23680
 
20206
 
 
 
23681
  if test $ac_cv_func_memmem = yes; then
 
23682
    HAVE_MEMMEM=1
 
23683
  else
 
23684
    HAVE_MEMMEM=0
 
23685
  fi
20207
23686
 
20208
23687
  if test $ac_cv_have_decl_memmem = no; then
20209
23688
    HAVE_DECL_MEMMEM=0
 
23689
  else
 
23690
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
 
23691
$as_echo_n "checking whether memmem works... " >&6; }
 
23692
if ${gl_cv_func_memmem_works_always+:} false; then :
 
23693
  $as_echo_n "(cached) " >&6
 
23694
else
 
23695
  if test "$cross_compiling" = yes; then :
 
23696
                                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
23697
/* end confdefs.h.  */
 
23698
 
 
23699
#ifdef __GNU_LIBRARY__
 
23700
 #include <features.h>
 
23701
 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
 
23702
                          || __GLIBC_MINOR__ > 12)) \
 
23703
      || (__GLIBC__ > 2)) \
 
23704
     || defined __UCLIBC__
 
23705
  Lucky user
 
23706
 #endif
 
23707
#elif defined __CYGWIN__
 
23708
 #include <cygwin/version.h>
 
23709
 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
 
23710
  Lucky user
 
23711
 #endif
 
23712
#else
 
23713
  Lucky user
 
23714
#endif
 
23715
 
 
23716
_ACEOF
 
23717
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
23718
  $EGREP "Lucky user" >/dev/null 2>&1; then :
 
23719
  gl_cv_func_memmem_works_always=yes
 
23720
else
 
23721
  gl_cv_func_memmem_works_always="guessing no"
 
23722
fi
 
23723
rm -f conftest*
 
23724
 
 
23725
 
 
23726
else
 
23727
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
23728
/* end confdefs.h.  */
 
23729
 
 
23730
#include <string.h> /* for memmem */
 
23731
#define P "_EF_BF_BD"
 
23732
#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
 
23733
#define NEEDLE P P P P P
 
23734
 
 
23735
int
 
23736
main ()
 
23737
{
 
23738
 
 
23739
    int result = 0;
 
23740
    if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
 
23741
      result |= 1;
 
23742
    /* Check for empty needle behavior.  */
 
23743
    {
 
23744
      const char *haystack = "AAA";
 
23745
      if (memmem (haystack, 3, NULL, 0) != haystack)
 
23746
        result |= 2;
 
23747
    }
 
23748
    return result;
 
23749
 
 
23750
  ;
 
23751
  return 0;
 
23752
}
 
23753
_ACEOF
 
23754
if ac_fn_c_try_run "$LINENO"; then :
 
23755
  gl_cv_func_memmem_works_always=yes
 
23756
else
 
23757
  gl_cv_func_memmem_works_always=no
 
23758
fi
 
23759
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
23760
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
23761
fi
 
23762
 
 
23763
 
 
23764
fi
 
23765
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
 
23766
$as_echo "$gl_cv_func_memmem_works_always" >&6; }
 
23767
    if test "$gl_cv_func_memmem_works_always" != yes; then
 
23768
      REPLACE_MEMMEM=1
 
23769
    fi
20210
23770
  fi
20211
23771
  :
20212
23772
 
20213
 
 
20214
 
 
20215
 
 
20216
 
  GNULIB_MEMMEM=1
 
23773
if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
 
23774
 
 
23775
 
 
23776
 
 
23777
 
 
23778
 
 
23779
 
 
23780
 
 
23781
 
 
23782
  lgl_LIBOBJS="$lgl_LIBOBJS memmem.$ac_objext"
 
23783
 
 
23784
fi
 
23785
 
 
23786
 
 
23787
 
 
23788
 
 
23789
 
 
23790
          GNULIB_MEMMEM=1
 
23791
 
 
23792
 
20217
23793
 
20218
23794
 
20219
23795
 
20221
23797
 
20222
23798
 
20223
23799
 
20224
 
  # Code from module minmax:
20225
 
 
20226
 
 
20227
 
 
20228
 
  # Code from module multiarch:
20229
 
 
20230
 
  # Code from module netdb:
 
23800
 
 
23801
 
 
23802
 
 
23803
 
 
23804
 
 
23805
 
20231
23806
 
20232
23807
 
20233
23808
 
20242
23817
     else
20243
23818
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netdb.h>" >&5
20244
23819
$as_echo_n "checking absolute name of <netdb.h>... " >&6; }
20245
 
if test "${gl_cv_next_netdb_h+set}" = set; then :
 
23820
if ${gl_cv_next_netdb_h+:} false; then :
20246
23821
  $as_echo_n "(cached) " >&6
20247
23822
else
20248
23823
 
20249
 
          if test $ac_cv_header_netdb_h = yes; then
20250
 
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
23824
             if test $ac_cv_header_netdb_h = yes; then
 
23825
 
 
23826
 
 
23827
               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20251
23828
/* end confdefs.h.  */
20252
23829
#include <netdb.h>
20253
23830
 
20254
23831
_ACEOF
20255
 
                                                                                                case "$host_os" in
20256
 
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
20257
 
              *)    gl_absname_cpp="$ac_cpp" ;;
20258
 
            esac
20259
 
                                                gl_cv_next_netdb_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20260
 
               sed -n '\#/netdb.h#{
20261
 
                 s#.*"\(.*/netdb.h\)".*#\1#
20262
 
                 s#^/[^/]#//&#
20263
 
                 p
20264
 
                 q
20265
 
               }'`'"'
 
23832
                                                                                                                        case "$host_os" in
 
23833
                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
23834
                 *)    gl_absname_cpp="$ac_cpp" ;;
 
23835
               esac
 
23836
                                                            gl_cv_next_netdb_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
23837
                  sed -n '\#/netdb.h#{
 
23838
                    s#.*"\(.*/netdb.h\)".*#\1#
 
23839
                    s#^/[^/]#//&#
 
23840
                    p
 
23841
                    q
 
23842
                  }'`'"'
20266
23843
          else
20267
 
            gl_cv_next_netdb_h='<'netdb.h'>'
20268
 
          fi
 
23844
               gl_cv_next_netdb_h='<'netdb.h'>'
 
23845
             fi
 
23846
 
20269
23847
 
20270
23848
fi
20271
23849
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netdb_h" >&5
20284
23862
 
20285
23863
 
20286
23864
 
 
23865
 
20287
23866
  if test $ac_cv_header_netdb_h = yes; then
20288
23867
    HAVE_NETDB_H=1
20289
23868
  else
20296
23875
    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
20297
23876
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
20298
23877
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
20299
 
if eval "test \"\${$as_gl_Symbol+set}\"" = set; then :
 
23878
if eval \${$as_gl_Symbol+:} false; then :
20300
23879
  $as_echo_n "(cached) " >&6
20301
23880
else
20302
23881
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20321
23900
eval ac_res=\$$as_gl_Symbol
20322
23901
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20323
23902
$as_echo "$ac_res" >&6; }
20324
 
     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
 
23903
    if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
20325
23904
  cat >>confdefs.h <<_ACEOF
20326
23905
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
20327
23906
_ACEOF
20331
23910
      done
20332
23911
 
20333
23912
 
20334
 
  # Code from module read-file:
20335
 
 
20336
 
 
20337
 
 
20338
 
 
20339
 
 
20340
 
 
20341
 
 
20342
 
 
20343
 
 
20344
 
  lgl_LIBOBJS="$lgl_LIBOBJS read-file.$ac_objext"
20345
 
 
20346
 
  :
20347
 
 
20348
 
  # Code from module realloc-posix:
 
23913
:
 
23914
 
20349
23915
 
20350
23916
 
20351
23917
  if test $gl_cv_func_malloc_posix = yes; then
20352
 
    HAVE_REALLOC_POSIX=1
20353
23918
 
20354
23919
$as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
20355
23920
 
20356
23921
  else
 
23922
    REPLACE_REALLOC=1
 
23923
  fi
 
23924
 
 
23925
if test $REPLACE_REALLOC = 1; then
20357
23926
 
20358
23927
 
20359
23928
 
20364
23933
 
20365
23934
  lgl_LIBOBJS="$lgl_LIBOBJS realloc.$ac_objext"
20366
23935
 
20367
 
    HAVE_REALLOC_POSIX=0
20368
 
  fi
20369
 
 
20370
 
 
20371
 
 
20372
 
 
20373
 
 
20374
 
  GNULIB_REALLOC_POSIX=1
 
23936
fi
 
23937
 
 
23938
 
 
23939
 
 
23940
 
 
23941
 
 
23942
          GNULIB_REALLOC_POSIX=1
 
23943
 
 
23944
 
20375
23945
 
20376
23946
 
20377
23947
 
20379
23949
 
20380
23950
 
20381
23951
 
20382
 
  # Code from module size_max:
20383
23952
 
20384
23953
  for ac_header in stdint.h
20385
23954
do :
20386
23955
  ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20387
 
if test "x$ac_cv_header_stdint_h" = x""yes; then :
 
23956
if test "x$ac_cv_header_stdint_h" = xyes; then :
20388
23957
  cat >>confdefs.h <<_ACEOF
20389
23958
#define HAVE_STDINT_H 1
20390
23959
_ACEOF
20395
23964
 
20396
23965
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
20397
23966
$as_echo_n "checking for SIZE_MAX... " >&6; }
20398
 
  if test "${gl_cv_size_max+set}" = set; then :
 
23967
  if ${gl_cv_size_max+:} false; then :
20399
23968
  $as_echo_n "(cached) " >&6
20400
23969
else
20401
23970
 
20475
24044
 
20476
24045
  fi
20477
24046
 
20478
 
  # Code from module snprintf:
20479
24047
 
20480
24048
 
20481
24049
  gl_cv_func_snprintf_usable=no
20482
24050
  for ac_func in snprintf
20483
24051
do :
20484
24052
  ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
20485
 
if test "x$ac_cv_func_snprintf" = x""yes; then :
 
24053
if test "x$ac_cv_func_snprintf" = xyes; then :
20486
24054
  cat >>confdefs.h <<_ACEOF
20487
24055
#define HAVE_SNPRINTF 1
20488
24056
_ACEOF
20495
24063
 
20496
24064
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
20497
24065
$as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
20498
 
if test "${gl_cv_func_snprintf_size1+set}" = set; then :
 
24066
if ${gl_cv_func_snprintf_size1+:} false; then :
20499
24067
  $as_echo_n "(cached) " >&6
20500
24068
else
20501
24069
 
20529
24097
 
20530
24098
    case "$gl_cv_func_snprintf_size1" in
20531
24099
      *yes)
20532
 
        gl_cv_func_snprintf_usable=yes
 
24100
 
 
24101
        case "$gl_cv_func_snprintf_retval_c99" in
 
24102
          *yes)
 
24103
 
 
24104
 
 
24105
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
 
24106
$as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
 
24107
if ${gl_cv_func_printf_positions+:} false; then :
 
24108
  $as_echo_n "(cached) " >&6
 
24109
else
 
24110
 
 
24111
      if test "$cross_compiling" = yes; then :
 
24112
 
 
24113
         case "$host_os" in
 
24114
           netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
 
24115
                         gl_cv_func_printf_positions="guessing no";;
 
24116
           beos*)        gl_cv_func_printf_positions="guessing no";;
 
24117
           mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
 
24118
           *)            gl_cv_func_printf_positions="guessing yes";;
 
24119
         esac
 
24120
 
 
24121
else
 
24122
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
24123
/* end confdefs.h.  */
 
24124
 
 
24125
#include <stdio.h>
 
24126
#include <string.h>
 
24127
/* The string "%2$d %1$d", with dollar characters protected from the shell's
 
24128
   dollar expansion (possibly an autoconf bug).  */
 
24129
static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
 
24130
static char buf[100];
 
24131
int main ()
 
24132
{
 
24133
  sprintf (buf, format, 33, 55);
 
24134
  return (strcmp (buf, "55 33") != 0);
 
24135
}
 
24136
_ACEOF
 
24137
if ac_fn_c_try_run "$LINENO"; then :
 
24138
  gl_cv_func_printf_positions=yes
 
24139
else
 
24140
  gl_cv_func_printf_positions=no
 
24141
fi
 
24142
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
24143
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
24144
fi
 
24145
 
 
24146
 
 
24147
fi
 
24148
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
 
24149
$as_echo "$gl_cv_func_printf_positions" >&6; }
 
24150
 
 
24151
            case "$gl_cv_func_printf_positions" in
 
24152
              *yes)
 
24153
                gl_cv_func_snprintf_usable=yes
 
24154
                ;;
 
24155
            esac
 
24156
            ;;
 
24157
        esac
20533
24158
        ;;
20534
24159
    esac
20535
24160
  fi
20560
24185
 
20561
24186
 
20562
24187
 
20563
 
  GNULIB_SNPRINTF=1
 
24188
 
 
24189
 
 
24190
          GNULIB_SNPRINTF=1
 
24191
 
 
24192
 
20564
24193
 
20565
24194
 
20566
24195
 
20568
24197
 
20569
24198
 
20570
24199
 
20571
 
  # Code from module sockets:
 
24200
 
 
24201
 
 
24202
cat >>confdefs.h <<_ACEOF
 
24203
#define GNULIB_SNPRINTF 1
 
24204
_ACEOF
20572
24205
 
20573
24206
 
20574
24207
 
20580
24213
                    for ac_header in winsock2.h
20581
24214
do :
20582
24215
  ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
20583
 
if test "x$ac_cv_header_winsock2_h" = x""yes; then :
 
24216
if test "x$ac_cv_header_winsock2_h" = xyes; then :
20584
24217
  cat >>confdefs.h <<_ACEOF
20585
24218
#define HAVE_WINSOCK2_H 1
20586
24219
_ACEOF
20602
24235
  if test $HAVE_WINSOCK2_H = 1; then
20603
24236
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to call WSAStartup in winsock2.h and -lws2_32" >&5
20604
24237
$as_echo_n "checking if we need to call WSAStartup in winsock2.h and -lws2_32... " >&6; }
20605
 
if test "${gl_cv_func_wsastartup+set}" = set; then :
 
24238
if ${gl_cv_func_wsastartup+:} false; then :
20606
24239
  $as_echo_n "(cached) " >&6
20607
24240
else
20608
24241
 
20647
24280
  else
20648
24281
                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
20649
24282
$as_echo_n "checking for library containing setsockopt... " >&6; }
20650
 
if test "${gl_cv_lib_socket+set}" = set; then :
 
24283
if ${gl_cv_lib_socket+:} false; then :
20651
24284
  $as_echo_n "(cached) " >&6
20652
24285
else
20653
24286
 
20756
24389
  fi
20757
24390
 
20758
24391
 
 
24392
 
 
24393
 
 
24394
 
 
24395
 
20759
24396
  :
20760
24397
 
20761
24398
 
20762
 
  # Code from module socklen:
20763
 
     ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
20764
 
      #if HAVE_SYS_SOCKET_H
20765
 
      # include <sys/socket.h>
20766
 
      #elif HAVE_WS2TCPIP_H
20767
 
      # include <ws2tcpip.h>
20768
 
      #endif
 
24399
   ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
 
24400
/* <sys/types.h> is not needed according to POSIX, but the
 
24401
   <sys/socket.h> in i386-unknown-freebsd4.10 and
 
24402
   powerpc-apple-darwin5.5 required it. */
 
24403
#include <sys/types.h>
 
24404
#if HAVE_SYS_SOCKET_H
 
24405
# include <sys/socket.h>
 
24406
#elif HAVE_WS2TCPIP_H
 
24407
# include <ws2tcpip.h>
 
24408
#endif
 
24409
 
20769
24410
"
20770
 
if test "x$ac_cv_type_socklen_t" = x""yes; then :
 
24411
if test "x$ac_cv_type_socklen_t" = xyes; then :
20771
24412
 
20772
24413
else
20773
24414
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
20774
24415
$as_echo_n "checking for socklen_t equivalent... " >&6; }
20775
 
      if test "${gl_cv_socklen_t_equiv+set}" = set; then :
 
24416
      if ${gl_cv_socklen_t_equiv+:} false; then :
20776
24417
  $as_echo_n "(cached) " >&6
20777
24418
else
20778
24419
  # Systems have either "struct sockaddr *" or
20818
24459
 
20819
24460
fi
20820
24461
 
20821
 
  # Code from module stdbool:
20822
24462
 
20823
24463
 
20824
24464
 
20830
24470
    STDBOOL_H='stdbool.h'
20831
24471
  fi
20832
24472
 
 
24473
   if test -n "$STDBOOL_H"; then
 
24474
  GL_GENERATE_STDBOOL_H_TRUE=
 
24475
  GL_GENERATE_STDBOOL_H_FALSE='#'
 
24476
else
 
24477
  GL_GENERATE_STDBOOL_H_TRUE='#'
 
24478
  GL_GENERATE_STDBOOL_H_FALSE=
 
24479
fi
 
24480
 
20833
24481
 
20834
24482
  if test "$ac_cv_type__Bool" = yes; then
20835
24483
    HAVE__BOOL=1
20838
24486
  fi
20839
24487
 
20840
24488
 
20841
 
  # Code from module stddef:
20842
 
 
20843
 
 
20844
 
 
 
24489
 
 
24490
 
 
24491
 
 
24492
  STDDEF_H=
20845
24493
  if test $gt_cv_c_wchar_t = no; then
20846
24494
    HAVE_WCHAR_T=0
20847
24495
    STDDEF_H=stddef.h
20848
24496
  fi
20849
24497
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
20850
24498
$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
20851
 
if test "${gl_cv_decl_null_works+set}" = set; then :
 
24499
if ${gl_cv_decl_null_works+:} false; then :
20852
24500
  $as_echo_n "(cached) " >&6
20853
24501
else
20854
24502
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20877
24525
    REPLACE_NULL=1
20878
24526
    STDDEF_H=stddef.h
20879
24527
  fi
 
24528
 
 
24529
   if test -n "$STDDEF_H"; then
 
24530
  GL_GENERATE_STDDEF_H_TRUE=
 
24531
  GL_GENERATE_STDDEF_H_FALSE='#'
 
24532
else
 
24533
  GL_GENERATE_STDDEF_H_TRUE='#'
 
24534
  GL_GENERATE_STDDEF_H_FALSE=
 
24535
fi
 
24536
 
20880
24537
  if test -n "$STDDEF_H"; then
20881
24538
 
20882
24539
 
20884
24541
 
20885
24542
 
20886
24543
 
 
24544
 
 
24545
 
20887
24546
     if test $gl_cv_have_include_next = yes; then
20888
24547
       gl_cv_next_stddef_h='<'stddef.h'>'
20889
24548
     else
20890
24549
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
20891
24550
$as_echo_n "checking absolute name of <stddef.h>... " >&6; }
20892
 
if test "${gl_cv_next_stddef_h+set}" = set; then :
 
24551
if ${gl_cv_next_stddef_h+:} false; then :
20893
24552
  $as_echo_n "(cached) " >&6
20894
24553
else
20895
24554
 
20896
 
          if test $ac_cv_header_stddef_h = yes; then
20897
 
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
24555
               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20898
24556
/* end confdefs.h.  */
20899
24557
#include <stddef.h>
20900
24558
 
20901
24559
_ACEOF
20902
 
                                                                                                case "$host_os" in
20903
 
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
20904
 
              *)    gl_absname_cpp="$ac_cpp" ;;
20905
 
            esac
20906
 
                                                gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20907
 
               sed -n '\#/stddef.h#{
20908
 
                 s#.*"\(.*/stddef.h\)".*#\1#
20909
 
                 s#^/[^/]#//&#
20910
 
                 p
20911
 
                 q
20912
 
               }'`'"'
20913
 
          else
20914
 
            gl_cv_next_stddef_h='<'stddef.h'>'
20915
 
          fi
 
24560
                                                                                                                        case "$host_os" in
 
24561
                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
24562
                 *)    gl_absname_cpp="$ac_cpp" ;;
 
24563
               esac
 
24564
                                                            gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
24565
                  sed -n '\#/stddef.h#{
 
24566
                    s#.*"\(.*/stddef.h\)".*#\1#
 
24567
                    s#^/[^/]#//&#
 
24568
                    p
 
24569
                    q
 
24570
                  }'`'"'
 
24571
 
20916
24572
 
20917
24573
fi
20918
24574
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
20931
24587
 
20932
24588
 
20933
24589
 
20934
 
  fi
20935
 
 
20936
 
  # Code from module stdint:
20937
 
 
20938
 
 
20939
 
 
20940
 
  if test $ac_cv_type_long_long_int = yes; then
20941
 
    HAVE_LONG_LONG_INT=1
20942
 
  else
20943
 
    HAVE_LONG_LONG_INT=0
20944
 
  fi
20945
 
 
20946
 
 
20947
 
  if test $ac_cv_type_unsigned_long_long_int = yes; then
20948
 
    HAVE_UNSIGNED_LONG_LONG_INT=1
20949
 
  else
20950
 
    HAVE_UNSIGNED_LONG_LONG_INT=0
20951
 
  fi
20952
 
 
20953
 
 
20954
 
      if test $ac_cv_header_inttypes_h = yes; then
20955
 
    HAVE_INTTYPES_H=1
20956
 
  else
20957
 
    HAVE_INTTYPES_H=0
20958
 
  fi
20959
 
 
20960
 
 
20961
 
      if test $ac_cv_header_sys_types_h = yes; then
20962
 
    HAVE_SYS_TYPES_H=1
20963
 
  else
20964
 
    HAVE_SYS_TYPES_H=0
20965
 
  fi
20966
 
 
20967
 
 
20968
 
 
20969
 
 
20970
 
 
20971
 
 
20972
 
 
20973
 
 
20974
 
     if test $gl_cv_have_include_next = yes; then
20975
 
       gl_cv_next_stdint_h='<'stdint.h'>'
20976
 
     else
20977
 
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
20978
 
$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
20979
 
if test "${gl_cv_next_stdint_h+set}" = set; then :
20980
 
  $as_echo_n "(cached) " >&6
20981
 
else
20982
 
 
20983
 
          if test $ac_cv_header_stdint_h = yes; then
20984
 
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20985
 
/* end confdefs.h.  */
20986
 
#include <stdint.h>
20987
 
 
20988
 
_ACEOF
20989
 
                                                                                                case "$host_os" in
20990
 
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
20991
 
              *)    gl_absname_cpp="$ac_cpp" ;;
20992
 
            esac
20993
 
                                                gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20994
 
               sed -n '\#/stdint.h#{
20995
 
                 s#.*"\(.*/stdint.h\)".*#\1#
20996
 
                 s#^/[^/]#//&#
20997
 
                 p
20998
 
                 q
20999
 
               }'`'"'
21000
 
          else
21001
 
            gl_cv_next_stdint_h='<'stdint.h'>'
21002
 
          fi
21003
 
 
21004
 
fi
21005
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
21006
 
$as_echo "$gl_cv_next_stdint_h" >&6; }
21007
 
     fi
21008
 
     NEXT_STDINT_H=$gl_cv_next_stdint_h
21009
 
 
21010
 
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21011
 
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21012
 
       gl_next_as_first_directive='<'stdint.h'>'
21013
 
     else
21014
 
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21015
 
       gl_next_as_first_directive=$gl_cv_next_stdint_h
21016
 
     fi
21017
 
     NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
21018
 
 
21019
 
 
21020
 
 
21021
 
  if test $ac_cv_header_stdint_h = yes; then
21022
 
    HAVE_STDINT_H=1
21023
 
  else
21024
 
    HAVE_STDINT_H=0
21025
 
  fi
21026
 
 
21027
 
 
21028
 
    if test $ac_cv_header_stdint_h = yes; then
21029
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
21030
 
$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
21031
 
if test "${gl_cv_header_working_stdint_h+set}" = set; then :
21032
 
  $as_echo_n "(cached) " >&6
21033
 
else
21034
 
  gl_cv_header_working_stdint_h=no
21035
 
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21036
 
/* end confdefs.h.  */
21037
 
 
21038
 
 
21039
 
#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
21040
 
#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
21041
 
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
21042
 
#include <stdint.h>
21043
 
/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
21044
 
#if !(defined WCHAR_MIN && defined WCHAR_MAX)
21045
 
#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
21046
 
#endif
21047
 
 
21048
 
 
21049
 
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21050
 
     included before <wchar.h>.  */
21051
 
  #include <stddef.h>
21052
 
  #include <signal.h>
21053
 
  #if HAVE_WCHAR_H
21054
 
  # include <stdio.h>
21055
 
  # include <time.h>
21056
 
  # include <wchar.h>
21057
 
  #endif
21058
 
 
21059
 
 
21060
 
#ifdef INT8_MAX
21061
 
int8_t a1 = INT8_MAX;
21062
 
int8_t a1min = INT8_MIN;
21063
 
#endif
21064
 
#ifdef INT16_MAX
21065
 
int16_t a2 = INT16_MAX;
21066
 
int16_t a2min = INT16_MIN;
21067
 
#endif
21068
 
#ifdef INT32_MAX
21069
 
int32_t a3 = INT32_MAX;
21070
 
int32_t a3min = INT32_MIN;
21071
 
#endif
21072
 
#ifdef INT64_MAX
21073
 
int64_t a4 = INT64_MAX;
21074
 
int64_t a4min = INT64_MIN;
21075
 
#endif
21076
 
#ifdef UINT8_MAX
21077
 
uint8_t b1 = UINT8_MAX;
21078
 
#else
21079
 
typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
21080
 
#endif
21081
 
#ifdef UINT16_MAX
21082
 
uint16_t b2 = UINT16_MAX;
21083
 
#endif
21084
 
#ifdef UINT32_MAX
21085
 
uint32_t b3 = UINT32_MAX;
21086
 
#endif
21087
 
#ifdef UINT64_MAX
21088
 
uint64_t b4 = UINT64_MAX;
21089
 
#endif
21090
 
int_least8_t c1 = INT8_C (0x7f);
21091
 
int_least8_t c1max = INT_LEAST8_MAX;
21092
 
int_least8_t c1min = INT_LEAST8_MIN;
21093
 
int_least16_t c2 = INT16_C (0x7fff);
21094
 
int_least16_t c2max = INT_LEAST16_MAX;
21095
 
int_least16_t c2min = INT_LEAST16_MIN;
21096
 
int_least32_t c3 = INT32_C (0x7fffffff);
21097
 
int_least32_t c3max = INT_LEAST32_MAX;
21098
 
int_least32_t c3min = INT_LEAST32_MIN;
21099
 
int_least64_t c4 = INT64_C (0x7fffffffffffffff);
21100
 
int_least64_t c4max = INT_LEAST64_MAX;
21101
 
int_least64_t c4min = INT_LEAST64_MIN;
21102
 
uint_least8_t d1 = UINT8_C (0xff);
21103
 
uint_least8_t d1max = UINT_LEAST8_MAX;
21104
 
uint_least16_t d2 = UINT16_C (0xffff);
21105
 
uint_least16_t d2max = UINT_LEAST16_MAX;
21106
 
uint_least32_t d3 = UINT32_C (0xffffffff);
21107
 
uint_least32_t d3max = UINT_LEAST32_MAX;
21108
 
uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
21109
 
uint_least64_t d4max = UINT_LEAST64_MAX;
21110
 
int_fast8_t e1 = INT_FAST8_MAX;
21111
 
int_fast8_t e1min = INT_FAST8_MIN;
21112
 
int_fast16_t e2 = INT_FAST16_MAX;
21113
 
int_fast16_t e2min = INT_FAST16_MIN;
21114
 
int_fast32_t e3 = INT_FAST32_MAX;
21115
 
int_fast32_t e3min = INT_FAST32_MIN;
21116
 
int_fast64_t e4 = INT_FAST64_MAX;
21117
 
int_fast64_t e4min = INT_FAST64_MIN;
21118
 
uint_fast8_t f1 = UINT_FAST8_MAX;
21119
 
uint_fast16_t f2 = UINT_FAST16_MAX;
21120
 
uint_fast32_t f3 = UINT_FAST32_MAX;
21121
 
uint_fast64_t f4 = UINT_FAST64_MAX;
21122
 
#ifdef INTPTR_MAX
21123
 
intptr_t g = INTPTR_MAX;
21124
 
intptr_t gmin = INTPTR_MIN;
21125
 
#endif
21126
 
#ifdef UINTPTR_MAX
21127
 
uintptr_t h = UINTPTR_MAX;
21128
 
#endif
21129
 
intmax_t i = INTMAX_MAX;
21130
 
uintmax_t j = UINTMAX_MAX;
21131
 
 
21132
 
#include <limits.h> /* for CHAR_BIT */
21133
 
#define TYPE_MINIMUM(t) \
21134
 
  ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
21135
 
#define TYPE_MAXIMUM(t) \
21136
 
  ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
21137
 
struct s {
21138
 
  int check_PTRDIFF:
21139
 
      PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
21140
 
      && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
21141
 
      ? 1 : -1;
21142
 
  /* Detect bug in FreeBSD 6.0 / ia64.  */
21143
 
  int check_SIG_ATOMIC:
21144
 
      SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
21145
 
      && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
21146
 
      ? 1 : -1;
21147
 
  int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
21148
 
  int check_WCHAR:
21149
 
      WCHAR_MIN == TYPE_MINIMUM (wchar_t)
21150
 
      && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
21151
 
      ? 1 : -1;
21152
 
  /* Detect bug in mingw.  */
21153
 
  int check_WINT:
21154
 
      WINT_MIN == TYPE_MINIMUM (wint_t)
21155
 
      && WINT_MAX == TYPE_MAXIMUM (wint_t)
21156
 
      ? 1 : -1;
21157
 
 
21158
 
  /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
21159
 
  int check_UINT8_C:
21160
 
        (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
21161
 
  int check_UINT16_C:
21162
 
        (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
21163
 
 
21164
 
  /* Detect bugs in OpenBSD 3.9 stdint.h.  */
21165
 
#ifdef UINT8_MAX
21166
 
  int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
21167
 
#endif
21168
 
#ifdef UINT16_MAX
21169
 
  int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
21170
 
#endif
21171
 
#ifdef UINT32_MAX
21172
 
  int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
21173
 
#endif
21174
 
#ifdef UINT64_MAX
21175
 
  int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
21176
 
#endif
21177
 
  int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
21178
 
  int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
21179
 
  int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
21180
 
  int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
21181
 
  int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
21182
 
  int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
21183
 
  int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
21184
 
  int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
21185
 
  int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
21186
 
  int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
21187
 
  int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
21188
 
};
21189
 
 
21190
 
int
21191
 
main ()
21192
 
{
21193
 
 
21194
 
  ;
21195
 
  return 0;
21196
 
}
21197
 
_ACEOF
21198
 
if ac_fn_c_try_compile "$LINENO"; then :
21199
 
                                                    if test "$cross_compiling" = yes; then :
21200
 
                 gl_cv_header_working_stdint_h=yes
21201
 
 
21202
 
else
21203
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21204
 
/* end confdefs.h.  */
21205
 
 
21206
 
 
21207
 
#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
21208
 
#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
21209
 
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
21210
 
#include <stdint.h>
21211
 
 
21212
 
 
21213
 
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21214
 
     included before <wchar.h>.  */
21215
 
  #include <stddef.h>
21216
 
  #include <signal.h>
21217
 
  #if HAVE_WCHAR_H
21218
 
  # include <stdio.h>
21219
 
  # include <time.h>
21220
 
  # include <wchar.h>
21221
 
  #endif
21222
 
 
21223
 
 
21224
 
#include <stdio.h>
21225
 
#include <string.h>
21226
 
#define MVAL(macro) MVAL1(macro)
21227
 
#define MVAL1(expression) #expression
21228
 
static const char *macro_values[] =
21229
 
  {
21230
 
#ifdef INT8_MAX
21231
 
    MVAL (INT8_MAX),
21232
 
#endif
21233
 
#ifdef INT16_MAX
21234
 
    MVAL (INT16_MAX),
21235
 
#endif
21236
 
#ifdef INT32_MAX
21237
 
    MVAL (INT32_MAX),
21238
 
#endif
21239
 
#ifdef INT64_MAX
21240
 
    MVAL (INT64_MAX),
21241
 
#endif
21242
 
#ifdef UINT8_MAX
21243
 
    MVAL (UINT8_MAX),
21244
 
#endif
21245
 
#ifdef UINT16_MAX
21246
 
    MVAL (UINT16_MAX),
21247
 
#endif
21248
 
#ifdef UINT32_MAX
21249
 
    MVAL (UINT32_MAX),
21250
 
#endif
21251
 
#ifdef UINT64_MAX
21252
 
    MVAL (UINT64_MAX),
21253
 
#endif
21254
 
    NULL
21255
 
  };
21256
 
 
21257
 
int
21258
 
main ()
21259
 
{
21260
 
 
21261
 
  const char **mv;
21262
 
  for (mv = macro_values; *mv != NULL; mv++)
21263
 
    {
21264
 
      const char *value = *mv;
21265
 
      /* Test whether it looks like a cast expression.  */
21266
 
      if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
21267
 
          || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
21268
 
          || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
21269
 
          || strncmp (value, "((int)"/*)*/, 6) == 0
21270
 
          || strncmp (value, "((signed short)"/*)*/, 15) == 0
21271
 
          || strncmp (value, "((signed char)"/*)*/, 14) == 0)
21272
 
        return 1;
21273
 
    }
21274
 
  return 0;
21275
 
 
21276
 
  ;
21277
 
  return 0;
21278
 
}
21279
 
_ACEOF
21280
 
if ac_fn_c_try_run "$LINENO"; then :
21281
 
  gl_cv_header_working_stdint_h=yes
21282
 
fi
21283
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21284
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
21285
 
fi
21286
 
 
21287
 
 
21288
 
fi
21289
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21290
 
 
21291
 
fi
21292
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
21293
 
$as_echo "$gl_cv_header_working_stdint_h" >&6; }
21294
 
  fi
21295
 
  if test "$gl_cv_header_working_stdint_h" = yes; then
21296
 
    STDINT_H=
21297
 
  else
21298
 
            for ac_header in sys/inttypes.h sys/bitypes.h
21299
 
do :
21300
 
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21301
 
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21302
 
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21303
 
  cat >>confdefs.h <<_ACEOF
21304
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21305
 
_ACEOF
21306
 
 
21307
 
fi
21308
 
 
21309
 
done
21310
 
 
21311
 
    if test $ac_cv_header_sys_inttypes_h = yes; then
21312
 
      HAVE_SYS_INTTYPES_H=1
21313
 
    else
21314
 
      HAVE_SYS_INTTYPES_H=0
21315
 
    fi
21316
 
 
21317
 
    if test $ac_cv_header_sys_bitypes_h = yes; then
21318
 
      HAVE_SYS_BITYPES_H=1
21319
 
    else
21320
 
      HAVE_SYS_BITYPES_H=0
21321
 
    fi
21322
 
 
21323
 
 
21324
 
 
21325
 
 
21326
 
 
21327
 
 
21328
 
  if test $APPLE_UNIVERSAL_BUILD = 0; then
21329
 
 
21330
 
 
21331
 
  for gltype in ptrdiff_t size_t ; do
21332
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
21333
 
$as_echo_n "checking for bit size of $gltype... " >&6; }
21334
 
if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\"" = set; then :
21335
 
  $as_echo_n "(cached) " >&6
21336
 
else
21337
 
  if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
21338
 
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21339
 
     included before <wchar.h>.  */
21340
 
  #include <stddef.h>
21341
 
  #include <signal.h>
21342
 
  #if HAVE_WCHAR_H
21343
 
  # include <stdio.h>
21344
 
  # include <time.h>
21345
 
  # include <wchar.h>
21346
 
  #endif
21347
 
 
21348
 
#include <limits.h>"; then :
21349
 
 
21350
 
else
21351
 
  result=unknown
21352
 
fi
21353
 
 
21354
 
       eval gl_cv_bitsizeof_${gltype}=\$result
21355
 
 
21356
 
fi
21357
 
eval ac_res=\$gl_cv_bitsizeof_${gltype}
21358
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21359
 
$as_echo "$ac_res" >&6; }
21360
 
    eval result=\$gl_cv_bitsizeof_${gltype}
21361
 
    if test $result = unknown; then
21362
 
                                                result=0
21363
 
    fi
21364
 
    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21365
 
    cat >>confdefs.h <<_ACEOF
21366
 
#define BITSIZEOF_${GLTYPE} $result
21367
 
_ACEOF
21368
 
 
21369
 
    eval BITSIZEOF_${GLTYPE}=\$result
21370
 
  done
21371
 
 
21372
 
 
21373
 
  fi
21374
 
 
21375
 
 
21376
 
  for gltype in sig_atomic_t wchar_t wint_t ; do
21377
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
21378
 
$as_echo_n "checking for bit size of $gltype... " >&6; }
21379
 
if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\"" = set; then :
21380
 
  $as_echo_n "(cached) " >&6
21381
 
else
21382
 
  if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
21383
 
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21384
 
     included before <wchar.h>.  */
21385
 
  #include <stddef.h>
21386
 
  #include <signal.h>
21387
 
  #if HAVE_WCHAR_H
21388
 
  # include <stdio.h>
21389
 
  # include <time.h>
21390
 
  # include <wchar.h>
21391
 
  #endif
21392
 
 
21393
 
#include <limits.h>"; then :
21394
 
 
21395
 
else
21396
 
  result=unknown
21397
 
fi
21398
 
 
21399
 
       eval gl_cv_bitsizeof_${gltype}=\$result
21400
 
 
21401
 
fi
21402
 
eval ac_res=\$gl_cv_bitsizeof_${gltype}
21403
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21404
 
$as_echo "$ac_res" >&6; }
21405
 
    eval result=\$gl_cv_bitsizeof_${gltype}
21406
 
    if test $result = unknown; then
21407
 
                                                result=0
21408
 
    fi
21409
 
    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21410
 
    cat >>confdefs.h <<_ACEOF
21411
 
#define BITSIZEOF_${GLTYPE} $result
21412
 
_ACEOF
21413
 
 
21414
 
    eval BITSIZEOF_${GLTYPE}=\$result
21415
 
  done
21416
 
 
21417
 
 
21418
 
 
21419
 
 
21420
 
  for gltype in sig_atomic_t wchar_t wint_t ; do
21421
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
21422
 
$as_echo_n "checking whether $gltype is signed... " >&6; }
21423
 
if eval "test \"\${gl_cv_type_${gltype}_signed+set}\"" = set; then :
21424
 
  $as_echo_n "(cached) " >&6
21425
 
else
21426
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21427
 
/* end confdefs.h.  */
21428
 
 
21429
 
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21430
 
     included before <wchar.h>.  */
21431
 
  #include <stddef.h>
21432
 
  #include <signal.h>
21433
 
  #if HAVE_WCHAR_H
21434
 
  # include <stdio.h>
21435
 
  # include <time.h>
21436
 
  # include <wchar.h>
21437
 
  #endif
21438
 
 
21439
 
            int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
21440
 
int
21441
 
main ()
21442
 
{
21443
 
 
21444
 
  ;
21445
 
  return 0;
21446
 
}
21447
 
_ACEOF
21448
 
if ac_fn_c_try_compile "$LINENO"; then :
21449
 
  result=yes
21450
 
else
21451
 
  result=no
21452
 
fi
21453
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21454
 
       eval gl_cv_type_${gltype}_signed=\$result
21455
 
 
21456
 
fi
21457
 
eval ac_res=\$gl_cv_type_${gltype}_signed
21458
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21459
 
$as_echo "$ac_res" >&6; }
21460
 
    eval result=\$gl_cv_type_${gltype}_signed
21461
 
    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21462
 
    if test "$result" = yes; then
21463
 
      cat >>confdefs.h <<_ACEOF
21464
 
#define HAVE_SIGNED_${GLTYPE} 1
21465
 
_ACEOF
21466
 
 
21467
 
      eval HAVE_SIGNED_${GLTYPE}=1
21468
 
    else
21469
 
      eval HAVE_SIGNED_${GLTYPE}=0
21470
 
    fi
21471
 
  done
21472
 
 
21473
 
 
21474
 
  gl_cv_type_ptrdiff_t_signed=yes
21475
 
  gl_cv_type_size_t_signed=no
21476
 
  if test $APPLE_UNIVERSAL_BUILD = 0; then
21477
 
 
21478
 
 
21479
 
  for gltype in ptrdiff_t size_t ; do
21480
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
21481
 
$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
21482
 
if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\"" = set; then :
21483
 
  $as_echo_n "(cached) " >&6
21484
 
else
21485
 
  eval gl_cv_type_${gltype}_suffix=no
21486
 
       eval result=\$gl_cv_type_${gltype}_signed
21487
 
       if test "$result" = yes; then
21488
 
         glsufu=
21489
 
       else
21490
 
         glsufu=u
21491
 
       fi
21492
 
       for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
21493
 
         case $glsuf in
21494
 
           '')  gltype1='int';;
21495
 
           l)   gltype1='long int';;
21496
 
           ll)  gltype1='long long int';;
21497
 
           i64) gltype1='__int64';;
21498
 
           u)   gltype1='unsigned int';;
21499
 
           ul)  gltype1='unsigned long int';;
21500
 
           ull) gltype1='unsigned long long int';;
21501
 
           ui64)gltype1='unsigned __int64';;
21502
 
         esac
21503
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21504
 
/* end confdefs.h.  */
21505
 
 
21506
 
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21507
 
     included before <wchar.h>.  */
21508
 
  #include <stddef.h>
21509
 
  #include <signal.h>
21510
 
  #if HAVE_WCHAR_H
21511
 
  # include <stdio.h>
21512
 
  # include <time.h>
21513
 
  # include <wchar.h>
21514
 
  #endif
21515
 
 
21516
 
              extern $gltype foo;
21517
 
              extern $gltype1 foo;
21518
 
int
21519
 
main ()
21520
 
{
21521
 
 
21522
 
  ;
21523
 
  return 0;
21524
 
}
21525
 
_ACEOF
21526
 
if ac_fn_c_try_compile "$LINENO"; then :
21527
 
  eval gl_cv_type_${gltype}_suffix=\$glsuf
21528
 
fi
21529
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21530
 
         eval result=\$gl_cv_type_${gltype}_suffix
21531
 
         test "$result" != no && break
21532
 
       done
21533
 
fi
21534
 
eval ac_res=\$gl_cv_type_${gltype}_suffix
21535
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21536
 
$as_echo "$ac_res" >&6; }
21537
 
    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21538
 
    eval result=\$gl_cv_type_${gltype}_suffix
21539
 
    test "$result" = no && result=
21540
 
    eval ${GLTYPE}_SUFFIX=\$result
21541
 
    cat >>confdefs.h <<_ACEOF
21542
 
#define ${GLTYPE}_SUFFIX $result
21543
 
_ACEOF
21544
 
 
21545
 
  done
21546
 
 
21547
 
 
21548
 
  fi
21549
 
 
21550
 
 
21551
 
  for gltype in sig_atomic_t wchar_t wint_t ; do
21552
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
21553
 
$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
21554
 
if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\"" = set; then :
21555
 
  $as_echo_n "(cached) " >&6
21556
 
else
21557
 
  eval gl_cv_type_${gltype}_suffix=no
21558
 
       eval result=\$gl_cv_type_${gltype}_signed
21559
 
       if test "$result" = yes; then
21560
 
         glsufu=
21561
 
       else
21562
 
         glsufu=u
21563
 
       fi
21564
 
       for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
21565
 
         case $glsuf in
21566
 
           '')  gltype1='int';;
21567
 
           l)   gltype1='long int';;
21568
 
           ll)  gltype1='long long int';;
21569
 
           i64) gltype1='__int64';;
21570
 
           u)   gltype1='unsigned int';;
21571
 
           ul)  gltype1='unsigned long int';;
21572
 
           ull) gltype1='unsigned long long int';;
21573
 
           ui64)gltype1='unsigned __int64';;
21574
 
         esac
21575
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21576
 
/* end confdefs.h.  */
21577
 
 
21578
 
  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21579
 
     included before <wchar.h>.  */
21580
 
  #include <stddef.h>
21581
 
  #include <signal.h>
21582
 
  #if HAVE_WCHAR_H
21583
 
  # include <stdio.h>
21584
 
  # include <time.h>
21585
 
  # include <wchar.h>
21586
 
  #endif
21587
 
 
21588
 
              extern $gltype foo;
21589
 
              extern $gltype1 foo;
21590
 
int
21591
 
main ()
21592
 
{
21593
 
 
21594
 
  ;
21595
 
  return 0;
21596
 
}
21597
 
_ACEOF
21598
 
if ac_fn_c_try_compile "$LINENO"; then :
21599
 
  eval gl_cv_type_${gltype}_suffix=\$glsuf
21600
 
fi
21601
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21602
 
         eval result=\$gl_cv_type_${gltype}_suffix
21603
 
         test "$result" != no && break
21604
 
       done
21605
 
fi
21606
 
eval ac_res=\$gl_cv_type_${gltype}_suffix
21607
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21608
 
$as_echo "$ac_res" >&6; }
21609
 
    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21610
 
    eval result=\$gl_cv_type_${gltype}_suffix
21611
 
    test "$result" = no && result=
21612
 
    eval ${GLTYPE}_SUFFIX=\$result
21613
 
    cat >>confdefs.h <<_ACEOF
21614
 
#define ${GLTYPE}_SUFFIX $result
21615
 
_ACEOF
21616
 
 
21617
 
  done
21618
 
 
21619
 
 
21620
 
 
21621
 
    STDINT_H=stdint.h
21622
 
  fi
21623
 
 
21624
 
 
21625
 
  # Code from module stdio:
 
24590
 
 
24591
  fi
 
24592
 
 
24593
 
 
24594
 
21626
24595
 
21627
24596
 
21628
24597
 
21638
24607
     else
21639
24608
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
21640
24609
$as_echo_n "checking absolute name of <stdio.h>... " >&6; }
21641
 
if test "${gl_cv_next_stdio_h+set}" = set; then :
 
24610
if ${gl_cv_next_stdio_h+:} false; then :
21642
24611
  $as_echo_n "(cached) " >&6
21643
24612
else
21644
24613
 
21645
 
          if test $ac_cv_header_stdio_h = yes; then
21646
 
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
24614
               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21647
24615
/* end confdefs.h.  */
21648
24616
#include <stdio.h>
21649
24617
 
21650
24618
_ACEOF
21651
 
                                                                                                case "$host_os" in
21652
 
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
21653
 
              *)    gl_absname_cpp="$ac_cpp" ;;
21654
 
            esac
21655
 
                                                gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21656
 
               sed -n '\#/stdio.h#{
21657
 
                 s#.*"\(.*/stdio.h\)".*#\1#
21658
 
                 s#^/[^/]#//&#
21659
 
                 p
21660
 
                 q
21661
 
               }'`'"'
21662
 
          else
21663
 
            gl_cv_next_stdio_h='<'stdio.h'>'
21664
 
          fi
 
24619
                                                                                                                        case "$host_os" in
 
24620
                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
24621
                 *)    gl_absname_cpp="$ac_cpp" ;;
 
24622
               esac
 
24623
                                                            gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
24624
                  sed -n '\#/stdio.h#{
 
24625
                    s#.*"\(.*/stdio.h\)".*#\1#
 
24626
                    s#^/[^/]#//&#
 
24627
                    p
 
24628
                    q
 
24629
                  }'`'"'
 
24630
 
21665
24631
 
21666
24632
fi
21667
24633
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
21680
24646
 
21681
24647
 
21682
24648
 
 
24649
 
 
24650
 
 
24651
      GNULIB_FSCANF=1
 
24652
  GNULIB_SCANF=1
 
24653
  GNULIB_FGETC=1
 
24654
  GNULIB_GETC=1
 
24655
  GNULIB_GETCHAR=1
 
24656
  GNULIB_FGETS=1
 
24657
  GNULIB_GETS=1
 
24658
  GNULIB_FREAD=1
 
24659
 
 
24660
 
21683
24661
      GNULIB_FPRINTF=1
21684
24662
  GNULIB_PRINTF=1
21685
24663
  GNULIB_VFPRINTF=1
21693
24671
 
21694
24672
 
21695
24673
 
 
24674
 
21696
24675
    for gl_func in dprintf fpurge fseeko ftello getdelim getline popen renameat     snprintf tmpfile vdprintf vsnprintf; do
21697
24676
    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
21698
24677
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
21699
24678
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
21700
 
if eval "test \"\${$as_gl_Symbol+set}\"" = set; then :
 
24679
if eval \${$as_gl_Symbol+:} false; then :
21701
24680
  $as_echo_n "(cached) " >&6
21702
24681
else
21703
24682
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21723
24702
eval ac_res=\$$as_gl_Symbol
21724
24703
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21725
24704
$as_echo "$ac_res" >&6; }
21726
 
     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
 
24705
    if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
21727
24706
  cat >>confdefs.h <<_ACEOF
21728
24707
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
21729
24708
_ACEOF
21733
24712
      done
21734
24713
 
21735
24714
 
21736
 
  # Code from module stdlib:
 
24715
 
 
24716
 
21737
24717
 
21738
24718
 
21739
24719
 
21747
24727
     else
21748
24728
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
21749
24729
$as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
21750
 
if test "${gl_cv_next_stdlib_h+set}" = set; then :
 
24730
if ${gl_cv_next_stdlib_h+:} false; then :
21751
24731
  $as_echo_n "(cached) " >&6
21752
24732
else
21753
24733
 
21754
 
          if test $ac_cv_header_stdlib_h = yes; then
21755
 
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
24734
               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21756
24735
/* end confdefs.h.  */
21757
24736
#include <stdlib.h>
21758
24737
 
21759
24738
_ACEOF
21760
 
                                                                                                case "$host_os" in
21761
 
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
21762
 
              *)    gl_absname_cpp="$ac_cpp" ;;
21763
 
            esac
21764
 
                                                gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21765
 
               sed -n '\#/stdlib.h#{
21766
 
                 s#.*"\(.*/stdlib.h\)".*#\1#
21767
 
                 s#^/[^/]#//&#
21768
 
                 p
21769
 
                 q
21770
 
               }'`'"'
21771
 
          else
21772
 
            gl_cv_next_stdlib_h='<'stdlib.h'>'
21773
 
          fi
 
24739
                                                                                                                        case "$host_os" in
 
24740
                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
24741
                 *)    gl_absname_cpp="$ac_cpp" ;;
 
24742
               esac
 
24743
                                                            gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
24744
                  sed -n '\#/stdlib.h#{
 
24745
                    s#.*"\(.*/stdlib.h\)".*#\1#
 
24746
                    s#^/[^/]#//&#
 
24747
                    p
 
24748
                    q
 
24749
                  }'`'"'
 
24750
 
21774
24751
 
21775
24752
fi
21776
24753
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
21789
24766
 
21790
24767
 
21791
24768
 
21792
 
  for ac_header in random.h
21793
 
do :
21794
 
  ac_fn_c_check_header_compile "$LINENO" "random.h" "ac_cv_header_random_h" "$ac_includes_default
21795
 
"
21796
 
if test "x$ac_cv_header_random_h" = x""yes; then :
21797
 
  cat >>confdefs.h <<_ACEOF
21798
 
#define HAVE_RANDOM_H 1
21799
 
_ACEOF
21800
 
 
21801
 
fi
21802
 
 
21803
 
done
21804
 
 
21805
 
  if test $ac_cv_header_random_h = yes; then
21806
 
    HAVE_RANDOM_H=1
21807
 
  else
21808
 
    HAVE_RANDOM_H=0
21809
 
  fi
21810
 
 
21811
 
  ac_fn_c_check_type "$LINENO" "struct random_data" "ac_cv_type_struct_random_data" "#include <stdlib.h>
21812
 
      #if HAVE_RANDOM_H
21813
 
      # include <random.h>
21814
 
      #endif
21815
 
 
21816
 
"
21817
 
if test "x$ac_cv_type_struct_random_data" = x""yes; then :
21818
 
 
21819
 
cat >>confdefs.h <<_ACEOF
21820
 
#define HAVE_STRUCT_RANDOM_DATA 1
21821
 
_ACEOF
21822
 
 
21823
 
 
21824
 
else
21825
 
  HAVE_STRUCT_RANDOM_DATA=0
21826
 
fi
21827
 
 
21828
 
 
21829
 
 
21830
 
    for gl_func in atoll canonicalize_file_name getloadavg getsubopt grantpt mkdtemp     mkostemp mkostemps mkstemp mkstemps ptsname random_r initstat_r srandom_r     setstate_r realpath rpmatch setenv strtod strtoll strtoull unlockpt     unsetenv; do
 
24769
 
 
24770
 
 
24771
 
 
24772
    for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt mkdtemp     mkostemp mkostemps mkstemp mkstemps ptsname random_r initstat_r srandom_r     setstate_r realpath rpmatch setenv strtod strtoll strtoull unlockpt     unsetenv; do
21831
24773
    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
21832
24774
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
21833
24775
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
21834
 
if eval "test \"\${$as_gl_Symbol+set}\"" = set; then :
 
24776
if eval \${$as_gl_Symbol+:} false; then :
21835
24777
  $as_echo_n "(cached) " >&6
21836
24778
else
21837
24779
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21863
24805
eval ac_res=\$$as_gl_Symbol
21864
24806
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21865
24807
$as_echo "$ac_res" >&6; }
21866
 
     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
 
24808
    if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
21867
24809
  cat >>confdefs.h <<_ACEOF
21868
24810
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
21869
24811
_ACEOF
21873
24815
      done
21874
24816
 
21875
24817
 
21876
 
  # Code from module strcase:
21877
 
 
21878
 
 
21879
 
 
21880
 
 
21881
 
 
21882
 
 
21883
 
 
21884
 
 
21885
24818
 
21886
24819
 
21887
24820
 
21888
24821
  for ac_func in strcasecmp
21889
24822
do :
21890
24823
  ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
21891
 
if test "x$ac_cv_func_strcasecmp" = x""yes; then :
 
24824
if test "x$ac_cv_func_strcasecmp" = xyes; then :
21892
24825
  cat >>confdefs.h <<_ACEOF
21893
24826
#define HAVE_STRCASECMP 1
21894
24827
_ACEOF
21895
24828
 
21896
 
else
21897
 
 
21898
 
    lgl_LIBOBJS="$lgl_LIBOBJS $ac_func.$ac_objext"
21899
 
 
21900
24829
fi
21901
24830
done
21902
24831
 
21903
 
 
21904
24832
  if test $ac_cv_func_strcasecmp = no; then
21905
24833
    HAVE_STRCASECMP=0
21906
 
 
21907
 
  :
21908
 
 
21909
24834
  fi
21910
24835
 
21911
24836
 
21912
24837
 
21913
 
 
21914
 
 
21915
 
 
21916
 
 
21917
 
 
21918
 
 
21919
 
 
21920
 
 
21921
24838
  for ac_func in strncasecmp
21922
24839
do :
21923
24840
  ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
21924
 
if test "x$ac_cv_func_strncasecmp" = x""yes; then :
 
24841
if test "x$ac_cv_func_strncasecmp" = xyes; then :
21925
24842
  cat >>confdefs.h <<_ACEOF
21926
24843
#define HAVE_STRNCASECMP 1
21927
24844
_ACEOF
21928
24845
 
21929
 
else
21930
 
 
21931
 
    lgl_LIBOBJS="$lgl_LIBOBJS $ac_func.$ac_objext"
21932
 
 
21933
24846
fi
21934
24847
done
21935
24848
 
21936
 
 
21937
 
  if test $ac_cv_func_strncasecmp = no; then
21938
 
 
21939
 
  :
21940
 
 
 
24849
  if test $ac_cv_func_strncasecmp = yes; then
 
24850
    HAVE_STRNCASECMP=1
 
24851
  else
 
24852
    HAVE_STRNCASECMP=0
21941
24853
  fi
21942
24854
  ac_fn_c_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default"
21943
 
if test "x$ac_cv_have_decl_strncasecmp" = x""yes; then :
 
24855
if test "x$ac_cv_have_decl_strncasecmp" = xyes; then :
21944
24856
  ac_have_decl=1
21945
24857
else
21946
24858
  ac_have_decl=0
21955
24867
  fi
21956
24868
 
21957
24869
 
21958
 
  # Code from module string:
21959
 
 
21960
 
 
21961
 
 
21962
 
  # Code from module strings:
21963
 
 
21964
 
 
21965
 
 
21966
 
  # Code from module strverscmp:
21967
 
 
21968
 
 
 
24870
if test $HAVE_STRCASECMP = 0; then
 
24871
 
 
24872
 
 
24873
 
 
24874
 
 
24875
 
 
24876
 
 
24877
 
 
24878
 
 
24879
  lgl_LIBOBJS="$lgl_LIBOBJS strcasecmp.$ac_objext"
 
24880
 
 
24881
 
 
24882
  :
 
24883
 
 
24884
fi
 
24885
if test $HAVE_STRNCASECMP = 0; then
 
24886
 
 
24887
 
 
24888
 
 
24889
 
 
24890
 
 
24891
 
 
24892
 
 
24893
 
 
24894
  lgl_LIBOBJS="$lgl_LIBOBJS strncasecmp.$ac_objext"
 
24895
 
 
24896
 
 
24897
  :
 
24898
 
 
24899
fi
21969
24900
 
21970
24901
 
21971
24902
 
21979
24910
  for ac_func in strverscmp
21980
24911
do :
21981
24912
  ac_fn_c_check_func "$LINENO" "strverscmp" "ac_cv_func_strverscmp"
21982
 
if test "x$ac_cv_func_strverscmp" = x""yes; then :
 
24913
if test "x$ac_cv_func_strverscmp" = xyes; then :
21983
24914
  cat >>confdefs.h <<_ACEOF
21984
24915
#define HAVE_STRVERSCMP 1
21985
24916
_ACEOF
21986
24917
 
21987
 
else
21988
 
 
21989
 
    lgl_LIBOBJS="$lgl_LIBOBJS $ac_func.$ac_objext"
21990
 
 
21991
24918
fi
21992
24919
done
21993
24920
 
21994
 
 
21995
24921
  if test $ac_cv_func_strverscmp = no; then
21996
 
 
21997
 
  :
21998
 
 
21999
24922
    HAVE_STRVERSCMP=0
22000
24923
  fi
22001
24924
 
22002
 
 
22003
 
 
22004
 
 
22005
 
  GNULIB_STRVERSCMP=1
 
24925
if test $HAVE_STRVERSCMP = 0; then
 
24926
 
 
24927
 
 
24928
 
 
24929
 
 
24930
 
 
24931
 
 
24932
 
 
24933
 
 
24934
  lgl_LIBOBJS="$lgl_LIBOBJS strverscmp.$ac_objext"
 
24935
 
 
24936
 
 
24937
  :
 
24938
 
 
24939
fi
 
24940
 
 
24941
 
 
24942
 
 
24943
 
 
24944
 
 
24945
          GNULIB_STRVERSCMP=1
 
24946
 
 
24947
 
22006
24948
 
22007
24949
 
22008
24950
 
22010
24952
 
22011
24953
 
22012
24954
 
22013
 
  # Code from module sys_socket:
22014
 
 
22015
 
 
22016
 
 
 
24955
 
 
24956
 
 
24957
 
 
24958
 
 
24959
 
 
24960
        case "$host_os" in
 
24961
    osf*)
 
24962
 
 
24963
$as_echo "#define _POSIX_PII_SOCKET 1" >>confdefs.h
 
24964
 
 
24965
      ;;
 
24966
  esac
22017
24967
 
22018
24968
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
22019
24969
$as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
22020
 
if test "${gl_cv_header_sys_socket_h_selfcontained+set}" = set; then :
 
24970
if ${gl_cv_header_sys_socket_h_selfcontained+:} false; then :
22021
24971
  $as_echo_n "(cached) " >&6
22022
24972
else
22023
24973
 
22046
24996
            for ac_func in shutdown
22047
24997
do :
22048
24998
  ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
22049
 
if test "x$ac_cv_func_shutdown" = x""yes; then :
 
24999
if test "x$ac_cv_func_shutdown" = xyes; then :
22050
25000
  cat >>confdefs.h <<_ACEOF
22051
25001
#define HAVE_SHUTDOWN 1
22052
25002
_ACEOF
22057
25007
    if test $ac_cv_func_shutdown = yes; then
22058
25008
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
22059
25009
$as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
22060
 
if test "${gl_cv_header_sys_socket_h_shut+set}" = set; then :
 
25010
if ${gl_cv_header_sys_socket_h_shut+:} false; then :
22061
25011
  $as_echo_n "(cached) " >&6
22062
25012
else
22063
25013
 
22095
25045
 
22096
25046
 
22097
25047
 
 
25048
 
 
25049
 
 
25050
 
 
25051
 
22098
25052
     if test $gl_cv_have_include_next = yes; then
22099
25053
       gl_cv_next_sys_socket_h='<'sys/socket.h'>'
22100
25054
     else
22101
25055
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
22102
25056
$as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
22103
 
if test "${gl_cv_next_sys_socket_h+set}" = set; then :
 
25057
if ${gl_cv_next_sys_socket_h+:} false; then :
22104
25058
  $as_echo_n "(cached) " >&6
22105
25059
else
22106
25060
 
22107
 
          if test $ac_cv_header_sys_socket_h = yes; then
22108
 
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
25061
             if test $ac_cv_header_sys_socket_h = yes; then
 
25062
 
 
25063
 
 
25064
               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22109
25065
/* end confdefs.h.  */
22110
25066
#include <sys/socket.h>
22111
25067
 
22112
25068
_ACEOF
22113
 
                                                                                                case "$host_os" in
22114
 
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
22115
 
              *)    gl_absname_cpp="$ac_cpp" ;;
22116
 
            esac
22117
 
                                                gl_cv_next_sys_socket_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22118
 
               sed -n '\#/sys/socket.h#{
22119
 
                 s#.*"\(.*/sys/socket.h\)".*#\1#
22120
 
                 s#^/[^/]#//&#
22121
 
                 p
22122
 
                 q
22123
 
               }'`'"'
 
25069
                                                                                                                        case "$host_os" in
 
25070
                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
25071
                 *)    gl_absname_cpp="$ac_cpp" ;;
 
25072
               esac
 
25073
                                                            gl_cv_next_sys_socket_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
25074
                  sed -n '\#/sys/socket.h#{
 
25075
                    s#.*"\(.*/sys/socket.h\)".*#\1#
 
25076
                    s#^/[^/]#//&#
 
25077
                    p
 
25078
                    q
 
25079
                  }'`'"'
22124
25080
          else
22125
 
            gl_cv_next_sys_socket_h='<'sys/socket.h'>'
22126
 
          fi
 
25081
               gl_cv_next_sys_socket_h='<'sys/socket.h'>'
 
25082
             fi
 
25083
 
22127
25084
 
22128
25085
fi
22129
25086
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
22142
25099
 
22143
25100
 
22144
25101
 
 
25102
 
22145
25103
  if test $ac_cv_header_sys_socket_h = yes; then
22146
25104
    HAVE_SYS_SOCKET_H=1
22147
25105
    HAVE_WS2TCPIP_H=0
22148
25106
  else
22149
25107
    HAVE_SYS_SOCKET_H=0
22150
 
                    for ac_header in ws2tcpip.h
22151
 
do :
22152
 
  ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
22153
 
if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
22154
 
  cat >>confdefs.h <<_ACEOF
22155
 
#define HAVE_WS2TCPIP_H 1
22156
 
_ACEOF
22157
 
 
22158
 
fi
22159
 
 
22160
 
done
22161
 
 
22162
25108
    if test $ac_cv_header_ws2tcpip_h = yes; then
22163
25109
      HAVE_WS2TCPIP_H=1
22164
25110
    else
22181
25127
#endif
22182
25128
 
22183
25129
"
22184
 
if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then :
 
25130
if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
22185
25131
 
22186
25132
cat >>confdefs.h <<_ACEOF
22187
25133
#define HAVE_STRUCT_SOCKADDR_STORAGE 1
22202
25148
#endif
22203
25149
 
22204
25150
"
22205
 
if test "x$ac_cv_type_sa_family_t" = x""yes; then :
 
25151
if test "x$ac_cv_type_sa_family_t" = xyes; then :
22206
25152
 
22207
25153
cat >>confdefs.h <<_ACEOF
22208
25154
#define HAVE_SA_FAMILY_T 1
22217
25163
  if test $ac_cv_type_sa_family_t = no; then
22218
25164
    HAVE_SA_FAMILY_T=0
22219
25165
  fi
 
25166
  if test $ac_cv_type_struct_sockaddr_storage != no; then
 
25167
    ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
 
25168
       #ifdef HAVE_SYS_SOCKET_H
 
25169
       #include <sys/socket.h>
 
25170
       #endif
 
25171
       #ifdef HAVE_WS2TCPIP_H
 
25172
       #include <ws2tcpip.h>
 
25173
       #endif
 
25174
 
 
25175
"
 
25176
if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
 
25177
 
 
25178
cat >>confdefs.h <<_ACEOF
 
25179
#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
 
25180
_ACEOF
 
25181
 
 
25182
 
 
25183
else
 
25184
  HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=0
 
25185
fi
 
25186
 
 
25187
  fi
 
25188
  if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 || test $HAVE_SA_FAMILY_T = 0 \
 
25189
     || test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then
 
25190
    SYS_SOCKET_H='sys/socket.h'
 
25191
  fi
22220
25192
 
22221
25193
 
22222
25194
 
22225
25197
                    for ac_header in winsock2.h
22226
25198
do :
22227
25199
  ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
22228
 
if test "x$ac_cv_header_winsock2_h" = x""yes; then :
 
25200
if test "x$ac_cv_header_winsock2_h" = xyes; then :
22229
25201
  cat >>confdefs.h <<_ACEOF
22230
25202
#define HAVE_WINSOCK2_H 1
22231
25203
_ACEOF
22250
25222
    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22251
25223
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22252
25224
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22253
 
if eval "test \"\${$as_gl_Symbol+set}\"" = set; then :
 
25225
if eval \${$as_gl_Symbol+:} false; then :
22254
25226
  $as_echo_n "(cached) " >&6
22255
25227
else
22256
25228
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22258
25230
 
22259
25231
/* Some systems require prerequisite headers.  */
22260
25232
#include <sys/types.h>
22261
 
#if !defined __GLIBC__ && HAVE_SYS_TIME_H
22262
 
# include <sys/time.h>
22263
 
#endif
22264
 
#include <sys/select.h>
 
25233
#include <sys/socket.h>
22265
25234
 
22266
25235
int
22267
25236
main ()
22282
25251
eval ac_res=\$$as_gl_Symbol
22283
25252
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22284
25253
$as_echo "$ac_res" >&6; }
22285
 
     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
 
25254
    if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
22286
25255
  cat >>confdefs.h <<_ACEOF
22287
25256
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22288
25257
_ACEOF
22293
25262
 
22294
25263
 
22295
25264
 
22296
 
  # Code from module sys_stat:
 
25265
 
 
25266
 
 
25267
 
22297
25268
 
22298
25269
 
22299
25270
 
22312
25283
     else
22313
25284
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
22314
25285
$as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
22315
 
if test "${gl_cv_next_sys_stat_h+set}" = set; then :
 
25286
if ${gl_cv_next_sys_stat_h+:} false; then :
22316
25287
  $as_echo_n "(cached) " >&6
22317
25288
else
22318
25289
 
22319
 
          if test $ac_cv_header_sys_stat_h = yes; then
22320
 
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
25290
             if test $ac_cv_header_sys_stat_h = yes; then
 
25291
 
 
25292
 
 
25293
               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22321
25294
/* end confdefs.h.  */
22322
25295
#include <sys/stat.h>
22323
25296
 
22324
25297
_ACEOF
22325
 
                                                                                                case "$host_os" in
22326
 
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
22327
 
              *)    gl_absname_cpp="$ac_cpp" ;;
22328
 
            esac
22329
 
                                                gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22330
 
               sed -n '\#/sys/stat.h#{
22331
 
                 s#.*"\(.*/sys/stat.h\)".*#\1#
22332
 
                 s#^/[^/]#//&#
22333
 
                 p
22334
 
                 q
22335
 
               }'`'"'
 
25298
                                                                                                                        case "$host_os" in
 
25299
                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
25300
                 *)    gl_absname_cpp="$ac_cpp" ;;
 
25301
               esac
 
25302
                                                            gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
25303
                  sed -n '\#/sys/stat.h#{
 
25304
                    s#.*"\(.*/sys/stat.h\)".*#\1#
 
25305
                    s#^/[^/]#//&#
 
25306
                    p
 
25307
                    q
 
25308
                  }'`'"'
22336
25309
          else
22337
 
            gl_cv_next_sys_stat_h='<'sys/stat.h'>'
22338
 
          fi
 
25310
               gl_cv_next_sys_stat_h='<'sys/stat.h'>'
 
25311
             fi
 
25312
 
22339
25313
 
22340
25314
fi
22341
25315
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
22355
25329
 
22356
25330
 
22357
25331
 
 
25332
 
22358
25333
      ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
22359
25334
     #include <sys/stat.h>
22360
25335
"
22361
 
if test "x$ac_cv_type_nlink_t" = x""yes; then :
 
25336
if test "x$ac_cv_type_nlink_t" = xyes; then :
22362
25337
 
22363
25338
else
22364
25339
 
22372
25347
    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22373
25348
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22374
25349
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22375
 
if eval "test \"\${$as_gl_Symbol+set}\"" = set; then :
 
25350
if eval \${$as_gl_Symbol+:} false; then :
22376
25351
  $as_echo_n "(cached) " >&6
22377
25352
else
22378
25353
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22398
25373
eval ac_res=\$$as_gl_Symbol
22399
25374
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22400
25375
$as_echo "$ac_res" >&6; }
22401
 
     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
 
25376
    if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
22402
25377
  cat >>confdefs.h <<_ACEOF
22403
25378
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22404
25379
_ACEOF
22409
25384
 
22410
25385
 
22411
25386
 
22412
 
  # Code from module time:
22413
 
 
22414
 
 
22415
 
 
22416
 
  # Code from module time_r:
22417
 
 
22418
 
 
22419
 
 
22420
 
 
22421
 
 
 
25387
 
 
25388
 
 
25389
 
 
25390
 
 
25391
 
 
25392
 
 
25393
 
 
25394
 
 
25395
 
 
25396
 
 
25397
 
 
25398
     if test $gl_cv_have_include_next = yes; then
 
25399
       gl_cv_next_sys_uio_h='<'sys/uio.h'>'
 
25400
     else
 
25401
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/uio.h>" >&5
 
25402
$as_echo_n "checking absolute name of <sys/uio.h>... " >&6; }
 
25403
if ${gl_cv_next_sys_uio_h+:} false; then :
 
25404
  $as_echo_n "(cached) " >&6
 
25405
else
 
25406
 
 
25407
             if test $ac_cv_header_sys_uio_h = yes; then
 
25408
 
 
25409
 
 
25410
               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
25411
/* end confdefs.h.  */
 
25412
#include <sys/uio.h>
 
25413
 
 
25414
_ACEOF
 
25415
                                                                                                                        case "$host_os" in
 
25416
                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
25417
                 *)    gl_absname_cpp="$ac_cpp" ;;
 
25418
               esac
 
25419
                                                            gl_cv_next_sys_uio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
25420
                  sed -n '\#/sys/uio.h#{
 
25421
                    s#.*"\(.*/sys/uio.h\)".*#\1#
 
25422
                    s#^/[^/]#//&#
 
25423
                    p
 
25424
                    q
 
25425
                  }'`'"'
 
25426
          else
 
25427
               gl_cv_next_sys_uio_h='<'sys/uio.h'>'
 
25428
             fi
 
25429
 
 
25430
 
 
25431
fi
 
25432
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_uio_h" >&5
 
25433
$as_echo "$gl_cv_next_sys_uio_h" >&6; }
 
25434
     fi
 
25435
     NEXT_SYS_UIO_H=$gl_cv_next_sys_uio_h
 
25436
 
 
25437
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
25438
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
25439
       gl_next_as_first_directive='<'sys/uio.h'>'
 
25440
     else
 
25441
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
25442
       gl_next_as_first_directive=$gl_cv_next_sys_uio_h
 
25443
     fi
 
25444
     NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H=$gl_next_as_first_directive
 
25445
 
 
25446
 
 
25447
 
 
25448
 
 
25449
  if test $ac_cv_header_sys_uio_h = yes; then
 
25450
    HAVE_SYS_UIO_H=1
 
25451
  else
 
25452
    HAVE_SYS_UIO_H=0
 
25453
  fi
 
25454
 
 
25455
 
 
25456
 
 
25457
 
 
25458
 
 
25459
 
 
25460
 
 
25461
 
 
25462
 
 
25463
 
 
25464
 
 
25465
 
 
25466
 
 
25467
  if test $ac_cv_have_decl_localtime_r = no; then
 
25468
    HAVE_DECL_LOCALTIME_R=0
 
25469
  fi
22422
25470
 
22423
25471
 
22424
25472
  if test $ac_cv_func_localtime_r = yes; then
 
25473
    HAVE_LOCALTIME_R=1
22425
25474
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
22426
25475
$as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
22427
 
if test "${gl_cv_time_r_posix+set}" = set; then :
 
25476
if ${gl_cv_time_r_posix+:} false; then :
22428
25477
  $as_echo_n "(cached) " >&6
22429
25478
else
22430
25479
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22464
25513
  else
22465
25514
    HAVE_LOCALTIME_R=0
22466
25515
  fi
22467
 
  if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
 
25516
 
 
25517
if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
22468
25518
 
22469
25519
 
22470
25520
 
22478
25528
 
22479
25529
  :
22480
25530
 
22481
 
  fi
22482
 
 
22483
 
 
22484
 
 
22485
 
 
22486
 
  GNULIB_TIME_R=1
 
25531
fi
 
25532
 
 
25533
 
 
25534
 
 
25535
 
 
25536
 
 
25537
          GNULIB_TIME_R=1
 
25538
 
 
25539
 
22487
25540
 
22488
25541
 
22489
25542
 
22491
25544
 
22492
25545
 
22493
25546
 
22494
 
  # Code from module unistd:
 
25547
 
 
25548
 
 
25549
 
22495
25550
 
22496
25551
 
22497
25552
 
22507
25562
     else
22508
25563
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
22509
25564
$as_echo_n "checking absolute name of <unistd.h>... " >&6; }
22510
 
if test "${gl_cv_next_unistd_h+set}" = set; then :
 
25565
if ${gl_cv_next_unistd_h+:} false; then :
22511
25566
  $as_echo_n "(cached) " >&6
22512
25567
else
22513
25568
 
22514
 
          if test $ac_cv_header_unistd_h = yes; then
22515
 
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
25569
             if test $ac_cv_header_unistd_h = yes; then
 
25570
 
 
25571
 
 
25572
               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22516
25573
/* end confdefs.h.  */
22517
25574
#include <unistd.h>
22518
25575
 
22519
25576
_ACEOF
22520
 
                                                                                                case "$host_os" in
22521
 
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
22522
 
              *)    gl_absname_cpp="$ac_cpp" ;;
22523
 
            esac
22524
 
                                                gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22525
 
               sed -n '\#/unistd.h#{
22526
 
                 s#.*"\(.*/unistd.h\)".*#\1#
22527
 
                 s#^/[^/]#//&#
22528
 
                 p
22529
 
                 q
22530
 
               }'`'"'
 
25577
                                                                                                                        case "$host_os" in
 
25578
                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
25579
                 *)    gl_absname_cpp="$ac_cpp" ;;
 
25580
               esac
 
25581
                                                            gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
25582
                  sed -n '\#/unistd.h#{
 
25583
                    s#.*"\(.*/unistd.h\)".*#\1#
 
25584
                    s#^/[^/]#//&#
 
25585
                    p
 
25586
                    q
 
25587
                  }'`'"'
22531
25588
          else
22532
 
            gl_cv_next_unistd_h='<'unistd.h'>'
22533
 
          fi
 
25589
               gl_cv_next_unistd_h='<'unistd.h'>'
 
25590
             fi
 
25591
 
22534
25592
 
22535
25593
fi
22536
25594
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
22550
25608
 
22551
25609
 
22552
25610
 
22553
 
 
22554
25611
  if test $ac_cv_header_unistd_h = yes; then
22555
25612
    HAVE_UNISTD_H=1
22556
25613
  else
22559
25616
 
22560
25617
 
22561
25618
 
22562
 
    for gl_func in chown dup2 dup3 environ euidaccess faccessat fchdir fchownat     fsync ftruncate getcwd getdomainname getdtablesize getgroups     gethostname getlogin getlogin_r getpagesize getusershell setusershell     endusershell lchown link linkat lseek pipe2 pread pwrite readlink     readlinkat rmdir sleep symlink symlinkat ttyname_r unlink unlinkat     usleep; do
 
25619
    for gl_func in chown dup2 dup3 environ euidaccess faccessat fchdir fchownat     fsync ftruncate getcwd getdomainname getdtablesize getgroups     gethostname getlogin getlogin_r getpagesize getusershell setusershell     endusershell group_member lchown link linkat lseek pipe pipe2 pread pwrite     readlink readlinkat rmdir sleep symlink symlinkat ttyname_r unlink unlinkat     usleep; do
22563
25620
    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22564
25621
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22565
25622
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22566
 
if eval "test \"\${$as_gl_Symbol+set}\"" = set; then :
 
25623
if eval \${$as_gl_Symbol+:} false; then :
22567
25624
  $as_echo_n "(cached) " >&6
22568
25625
else
22569
25626
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22570
25627
/* end confdefs.h.  */
22571
25628
#include <unistd.h>
22572
25629
/* Some systems declare various items in the wrong headers.  */
22573
 
#ifndef __GLIBC__
 
25630
#if !(defined __GLIBC__ && !defined __UCLIBC__)
22574
25631
# include <fcntl.h>
22575
25632
# include <stdio.h>
22576
25633
# include <stdlib.h>
22598
25655
eval ac_res=\$$as_gl_Symbol
22599
25656
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22600
25657
$as_echo "$ac_res" >&6; }
22601
 
     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
 
25658
    if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
22602
25659
  cat >>confdefs.h <<_ACEOF
22603
25660
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22604
25661
_ACEOF
22608
25665
      done
22609
25666
 
22610
25667
 
22611
 
  # Code from module vasnprintf:
22612
25668
 
22613
25669
 
22614
25670
  if test $ac_cv_func_vasnprintf = no; then
22669
25725
 
22670
25726
 
22671
25727
 
 
25728
 
22672
25729
  ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
22673
 
if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
 
25730
if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
22674
25731
 
22675
25732
else
22676
25733
 
22687
25744
 
22688
25745
  fi
22689
25746
 
22690
 
  # Code from module vasprintf:
22691
25747
 
22692
25748
  for ac_func in vasprintf
22693
25749
do :
22694
25750
  ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
22695
 
if test "x$ac_cv_func_vasprintf" = x""yes; then :
 
25751
if test "x$ac_cv_func_vasprintf" = xyes; then :
22696
25752
  cat >>confdefs.h <<_ACEOF
22697
25753
#define HAVE_VASPRINTF 1
22698
25754
_ACEOF
22741
25797
 
22742
25798
 
22743
25799
 
22744
 
  GNULIB_VASPRINTF=1
 
25800
 
 
25801
 
 
25802
          GNULIB_VASPRINTF=1
 
25803
 
 
25804
 
22745
25805
 
22746
25806
 
22747
25807
 
22757
25817
 
22758
25818
  XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
22759
25819
 
22760
 
  # Code from module vsnprintf:
22761
25820
 
22762
25821
 
22763
25822
  gl_cv_func_vsnprintf_usable=no
22764
25823
  for ac_func in vsnprintf
22765
25824
do :
22766
25825
  ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
22767
 
if test "x$ac_cv_func_vsnprintf" = x""yes; then :
 
25826
if test "x$ac_cv_func_vsnprintf" = xyes; then :
22768
25827
  cat >>confdefs.h <<_ACEOF
22769
25828
#define HAVE_VSNPRINTF 1
22770
25829
_ACEOF
22777
25836
 
22778
25837
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
22779
25838
$as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
22780
 
if test "${gl_cv_func_snprintf_size1+set}" = set; then :
 
25839
if ${gl_cv_func_snprintf_size1+:} false; then :
22781
25840
  $as_echo_n "(cached) " >&6
22782
25841
else
22783
25842
 
22811
25870
 
22812
25871
    case "$gl_cv_func_snprintf_size1" in
22813
25872
      *yes)
22814
 
        gl_cv_func_vsnprintf_usable=yes
 
25873
 
 
25874
        case "$gl_cv_func_snprintf_retval_c99" in
 
25875
          *yes)
 
25876
 
 
25877
 
 
25878
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
 
25879
$as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
 
25880
if ${gl_cv_func_printf_positions+:} false; then :
 
25881
  $as_echo_n "(cached) " >&6
 
25882
else
 
25883
 
 
25884
      if test "$cross_compiling" = yes; then :
 
25885
 
 
25886
         case "$host_os" in
 
25887
           netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
 
25888
                         gl_cv_func_printf_positions="guessing no";;
 
25889
           beos*)        gl_cv_func_printf_positions="guessing no";;
 
25890
           mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
 
25891
           *)            gl_cv_func_printf_positions="guessing yes";;
 
25892
         esac
 
25893
 
 
25894
else
 
25895
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
25896
/* end confdefs.h.  */
 
25897
 
 
25898
#include <stdio.h>
 
25899
#include <string.h>
 
25900
/* The string "%2$d %1$d", with dollar characters protected from the shell's
 
25901
   dollar expansion (possibly an autoconf bug).  */
 
25902
static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
 
25903
static char buf[100];
 
25904
int main ()
 
25905
{
 
25906
  sprintf (buf, format, 33, 55);
 
25907
  return (strcmp (buf, "55 33") != 0);
 
25908
}
 
25909
_ACEOF
 
25910
if ac_fn_c_try_run "$LINENO"; then :
 
25911
  gl_cv_func_printf_positions=yes
 
25912
else
 
25913
  gl_cv_func_printf_positions=no
 
25914
fi
 
25915
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
25916
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
25917
fi
 
25918
 
 
25919
 
 
25920
fi
 
25921
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
 
25922
$as_echo "$gl_cv_func_printf_positions" >&6; }
 
25923
 
 
25924
            case "$gl_cv_func_printf_positions" in
 
25925
              *yes)
 
25926
                gl_cv_func_vsnprintf_usable=yes
 
25927
                ;;
 
25928
            esac
 
25929
            ;;
 
25930
        esac
22815
25931
        ;;
22816
25932
    esac
22817
25933
  fi
22842
25958
 
22843
25959
 
22844
25960
 
22845
 
  GNULIB_VSNPRINTF=1
 
25961
 
 
25962
 
 
25963
          GNULIB_VSNPRINTF=1
 
25964
 
 
25965
 
22846
25966
 
22847
25967
 
22848
25968
 
22850
25970
 
22851
25971
 
22852
25972
 
22853
 
  # Code from module warn-on-use:
22854
 
  # Code from module wchar:
 
25973
 
 
25974
 
22855
25975
 
22856
25976
 
22857
25977
 
22867
25987
     else
22868
25988
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
22869
25989
$as_echo_n "checking absolute name of <wchar.h>... " >&6; }
22870
 
if test "${gl_cv_next_wchar_h+set}" = set; then :
 
25990
if ${gl_cv_next_wchar_h+:} false; then :
22871
25991
  $as_echo_n "(cached) " >&6
22872
25992
else
22873
25993
 
22874
 
          if test $ac_cv_header_wchar_h = yes; then
22875
 
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
25994
             if test $ac_cv_header_wchar_h = yes; then
 
25995
 
 
25996
 
 
25997
               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22876
25998
/* end confdefs.h.  */
22877
25999
#include <wchar.h>
22878
26000
 
22879
26001
_ACEOF
22880
 
                                                                                                case "$host_os" in
22881
 
              aix*) gl_absname_cpp="$ac_cpp -C" ;;
22882
 
              *)    gl_absname_cpp="$ac_cpp" ;;
22883
 
            esac
22884
 
                                                gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22885
 
               sed -n '\#/wchar.h#{
22886
 
                 s#.*"\(.*/wchar.h\)".*#\1#
22887
 
                 s#^/[^/]#//&#
22888
 
                 p
22889
 
                 q
22890
 
               }'`'"'
 
26002
                                                                                                                        case "$host_os" in
 
26003
                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
26004
                 *)    gl_absname_cpp="$ac_cpp" ;;
 
26005
               esac
 
26006
                                                            gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
26007
                  sed -n '\#/wchar.h#{
 
26008
                    s#.*"\(.*/wchar.h\)".*#\1#
 
26009
                    s#^/[^/]#//&#
 
26010
                    p
 
26011
                    q
 
26012
                  }'`'"'
22891
26013
          else
22892
 
            gl_cv_next_wchar_h='<'wchar.h'>'
22893
 
          fi
 
26014
               gl_cv_next_wchar_h='<'wchar.h'>'
 
26015
             fi
 
26016
 
22894
26017
 
22895
26018
fi
22896
26019
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
22909
26032
 
22910
26033
 
22911
26034
 
 
26035
 
22912
26036
  if test $ac_cv_header_wchar_h = yes; then
22913
26037
    HAVE_WCHAR_H=1
22914
26038
  else
22917
26041
 
22918
26042
 
22919
26043
 
 
26044
 
 
26045
 
22920
26046
  if test $gt_cv_c_wint_t = yes; then
22921
26047
    HAVE_WINT_T=1
22922
26048
  else
22925
26051
 
22926
26052
 
22927
26053
 
22928
 
    for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb     wcsrtombs wcsnrtombs wcwidth; do
 
26054
    for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb      wcsrtombs wcsnrtombs wcwidth wmemchr wmemcmp wmemcpy wmemmove wmemset      wcslen wcsnlen wcscpy wcpcpy wcsncpy wcpncpy wcscat wcsncat wcscmp      wcsncmp wcscasecmp wcsncasecmp wcscoll wcsxfrm wcsdup wcschr wcsrchr      wcscspn wcsspn wcspbrk wcsstr wcstok wcswidth     ; do
22929
26055
    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22930
26056
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22931
26057
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22932
 
if eval "test \"\${$as_gl_Symbol+set}\"" = set; then :
 
26058
if eval \${$as_gl_Symbol+:} false; then :
22933
26059
  $as_echo_n "(cached) " >&6
22934
26060
else
22935
26061
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22936
26062
/* end confdefs.h.  */
22937
26063
 
22938
 
/* Some systems require additional headers.  */
22939
 
#ifndef __GLIBC__
 
26064
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
 
26065
   <wchar.h>.
 
26066
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
 
26067
   included before <wchar.h>.  */
 
26068
#if !(defined __GLIBC__ && !defined __UCLIBC__)
22940
26069
# include <stddef.h>
22941
26070
# include <stdio.h>
22942
26071
# include <time.h>
22962
26091
eval ac_res=\$$as_gl_Symbol
22963
26092
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22964
26093
$as_echo "$ac_res" >&6; }
22965
 
     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
 
26094
    if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
22966
26095
  cat >>confdefs.h <<_ACEOF
22967
26096
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22968
26097
_ACEOF
22972
26101
      done
22973
26102
 
22974
26103
 
22975
 
  # Code from module xsize:
22976
26104
 
22977
26105
 
22978
26106
 
22979
26107
  for ac_header in stdint.h
22980
26108
do :
22981
26109
  ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
22982
 
if test "x$ac_cv_header_stdint_h" = x""yes; then :
 
26110
if test "x$ac_cv_header_stdint_h" = xyes; then :
22983
26111
  cat >>confdefs.h <<_ACEOF
22984
26112
#define HAVE_STDINT_H 1
22985
26113
_ACEOF
23017
26145
 
23018
26146
 
23019
26147
 
 
26148
 
 
26149
 
 
26150
 
 
26151
 
 
26152
 
 
26153
 
 
26154
 
 
26155
 
 
26156
 
 
26157
     if test $gl_cv_have_include_next = yes; then
 
26158
       gl_cv_next_fcntl_h='<'fcntl.h'>'
 
26159
     else
 
26160
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
 
26161
$as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
 
26162
if ${gl_cv_next_fcntl_h+:} false; then :
 
26163
  $as_echo_n "(cached) " >&6
 
26164
else
 
26165
 
 
26166
               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
26167
/* end confdefs.h.  */
 
26168
#include <fcntl.h>
 
26169
 
 
26170
_ACEOF
 
26171
                                                                                                                        case "$host_os" in
 
26172
                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
26173
                 *)    gl_absname_cpp="$ac_cpp" ;;
 
26174
               esac
 
26175
                                                            gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
26176
                  sed -n '\#/fcntl.h#{
 
26177
                    s#.*"\(.*/fcntl.h\)".*#\1#
 
26178
                    s#^/[^/]#//&#
 
26179
                    p
 
26180
                    q
 
26181
                  }'`'"'
 
26182
 
 
26183
 
 
26184
fi
 
26185
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
 
26186
$as_echo "$gl_cv_next_fcntl_h" >&6; }
 
26187
     fi
 
26188
     NEXT_FCNTL_H=$gl_cv_next_fcntl_h
 
26189
 
 
26190
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
26191
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
26192
       gl_next_as_first_directive='<'fcntl.h'>'
 
26193
     else
 
26194
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
26195
       gl_next_as_first_directive=$gl_cv_next_fcntl_h
 
26196
     fi
 
26197
     NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
 
26198
 
 
26199
 
 
26200
 
 
26201
 
 
26202
 
 
26203
 
 
26204
    for gl_func in fcntl openat; do
 
26205
    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
 
26206
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
 
26207
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
 
26208
if eval \${$as_gl_Symbol+:} false; then :
 
26209
  $as_echo_n "(cached) " >&6
 
26210
else
 
26211
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
26212
/* end confdefs.h.  */
 
26213
#include <fcntl.h>
 
26214
 
 
26215
int
 
26216
main ()
 
26217
{
 
26218
#undef $gl_func
 
26219
  (void) $gl_func;
 
26220
  ;
 
26221
  return 0;
 
26222
}
 
26223
_ACEOF
 
26224
if ac_fn_c_try_compile "$LINENO"; then :
 
26225
  eval "$as_gl_Symbol=yes"
 
26226
else
 
26227
  eval "$as_gl_Symbol=no"
 
26228
fi
 
26229
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
26230
fi
 
26231
eval ac_res=\$$as_gl_Symbol
 
26232
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
26233
$as_echo "$ac_res" >&6; }
 
26234
    if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
 
26235
  cat >>confdefs.h <<_ACEOF
 
26236
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
 
26237
_ACEOF
 
26238
 
 
26239
                     eval ac_cv_have_decl_$gl_func=yes
 
26240
fi
 
26241
      done
 
26242
 
 
26243
 
 
26244
 
 
26245
 
 
26246
 
 
26247
 
 
26248
 
 
26249
 
 
26250
 
 
26251
  for ac_func in getpagesize
 
26252
do :
 
26253
  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
 
26254
if test "x$ac_cv_func_getpagesize" = xyes; then :
 
26255
  cat >>confdefs.h <<_ACEOF
 
26256
#define HAVE_GETPAGESIZE 1
 
26257
_ACEOF
 
26258
 
 
26259
fi
 
26260
done
 
26261
 
 
26262
  if test $ac_cv_func_getpagesize = no; then
 
26263
    HAVE_GETPAGESIZE=0
 
26264
    for ac_header in OS.h
 
26265
do :
 
26266
  ac_fn_c_check_header_mongrel "$LINENO" "OS.h" "ac_cv_header_OS_h" "$ac_includes_default"
 
26267
if test "x$ac_cv_header_OS_h" = xyes; then :
 
26268
  cat >>confdefs.h <<_ACEOF
 
26269
#define HAVE_OS_H 1
 
26270
_ACEOF
 
26271
 
 
26272
fi
 
26273
 
 
26274
done
 
26275
 
 
26276
    if test $ac_cv_header_OS_h = yes; then
 
26277
      HAVE_OS_H=1
 
26278
    fi
 
26279
    for ac_header in sys/param.h
 
26280
do :
 
26281
  ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
 
26282
if test "x$ac_cv_header_sys_param_h" = xyes; then :
 
26283
  cat >>confdefs.h <<_ACEOF
 
26284
#define HAVE_SYS_PARAM_H 1
 
26285
_ACEOF
 
26286
 
 
26287
fi
 
26288
 
 
26289
done
 
26290
 
 
26291
    if test $ac_cv_header_sys_param_h = yes; then
 
26292
      HAVE_SYS_PARAM_H=1
 
26293
    fi
 
26294
  fi
 
26295
  case "$host_os" in
 
26296
    mingw*)
 
26297
      REPLACE_GETPAGESIZE=1
 
26298
      ;;
 
26299
  esac
 
26300
      ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default"
 
26301
if test "x$ac_cv_have_decl_getpagesize" = xyes; then :
 
26302
 
 
26303
else
 
26304
  HAVE_DECL_GETPAGESIZE=0
 
26305
fi
 
26306
 
 
26307
 
 
26308
if test $REPLACE_GETPAGESIZE = 1; then
 
26309
 
 
26310
 
 
26311
 
 
26312
 
 
26313
 
 
26314
 
 
26315
 
 
26316
 
 
26317
  lgltests_LIBOBJS="$lgltests_LIBOBJS getpagesize.$ac_objext"
 
26318
 
 
26319
fi
 
26320
 
 
26321
 
 
26322
 
 
26323
 
 
26324
 
 
26325
    if test "$GNULIB_GETPAGESIZE" != 1; then
 
26326
        if test "$GNULIB_GETPAGESIZE" = 0; then
 
26327
      GNULIB_GETPAGESIZE=$gl_module_indicator_condition
 
26328
    else
 
26329
      GNULIB_GETPAGESIZE="($GNULIB_GETPAGESIZE || $gl_module_indicator_condition)"
 
26330
    fi
 
26331
  fi
 
26332
 
 
26333
 
 
26334
 
 
26335
 
 
26336
 
 
26337
$as_echo "#define GNULIB_TEST_GETPAGESIZE 1" >>confdefs.h
 
26338
 
 
26339
 
 
26340
 
 
26341
 
 
26342
 
 
26343
 
 
26344
 
 
26345
 
 
26346
  PRIPTR_PREFIX=
 
26347
  if test -n "$STDINT_H"; then
 
26348
        PRIPTR_PREFIX='"l"'
 
26349
  else
 
26350
        for glpfx in '' l ll I64; do
 
26351
      case $glpfx in
 
26352
        '')  gltype1='int';;
 
26353
        l)   gltype1='long int';;
 
26354
        ll)  gltype1='long long int';;
 
26355
        I64) gltype1='__int64';;
 
26356
      esac
 
26357
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
26358
/* end confdefs.h.  */
 
26359
#include <stdint.h>
 
26360
           extern intptr_t foo;
 
26361
           extern $gltype1 foo;
 
26362
int
 
26363
main ()
 
26364
{
 
26365
 
 
26366
  ;
 
26367
  return 0;
 
26368
}
 
26369
_ACEOF
 
26370
if ac_fn_c_try_compile "$LINENO"; then :
 
26371
  PRIPTR_PREFIX='"'$glpfx'"'
 
26372
fi
 
26373
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
26374
      test -n "$PRIPTR_PREFIX" && break
 
26375
    done
 
26376
  fi
 
26377
 
 
26378
 
 
26379
 
 
26380
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
 
26381
$as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
 
26382
if ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+:} false; then :
 
26383
  $as_echo_n "(cached) " >&6
 
26384
else
 
26385
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
26386
/* end confdefs.h.  */
 
26387
/* Work also in C++ mode.  */
 
26388
            #define __STDC_LIMIT_MACROS 1
 
26389
 
 
26390
            /* Work if build is not clean.  */
 
26391
            #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
 
26392
 
 
26393
            #include <limits.h>
 
26394
            #if HAVE_STDINT_H
 
26395
             #include <stdint.h>
 
26396
            #endif
 
26397
 
 
26398
            #if defined INT32_MAX && defined INTMAX_MAX
 
26399
             #define CONDITION (INT32_MAX < INTMAX_MAX)
 
26400
            #elif HAVE_LONG_LONG_INT
 
26401
             #define CONDITION (sizeof (int) < sizeof (long long int))
 
26402
            #else
 
26403
             #define CONDITION 0
 
26404
            #endif
 
26405
            int test[CONDITION ? 1 : -1];
 
26406
int
 
26407
main ()
 
26408
{
 
26409
 
 
26410
  ;
 
26411
  return 0;
 
26412
}
 
26413
_ACEOF
 
26414
if ac_fn_c_try_compile "$LINENO"; then :
 
26415
  gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
 
26416
else
 
26417
  gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
 
26418
fi
 
26419
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
26420
fi
 
26421
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
 
26422
$as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
 
26423
  if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
 
26424
    INT32_MAX_LT_INTMAX_MAX=1;
 
26425
  else
 
26426
    INT32_MAX_LT_INTMAX_MAX=0;
 
26427
  fi
 
26428
 
 
26429
 
 
26430
  if test $APPLE_UNIVERSAL_BUILD = 0; then
 
26431
 
 
26432
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
 
26433
$as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
 
26434
if ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+:} false; then :
 
26435
  $as_echo_n "(cached) " >&6
 
26436
else
 
26437
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
26438
/* end confdefs.h.  */
 
26439
/* Work also in C++ mode.  */
 
26440
            #define __STDC_LIMIT_MACROS 1
 
26441
 
 
26442
            /* Work if build is not clean.  */
 
26443
            #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
 
26444
 
 
26445
            #include <limits.h>
 
26446
            #if HAVE_STDINT_H
 
26447
             #include <stdint.h>
 
26448
            #endif
 
26449
 
 
26450
            #if defined INT64_MAX
 
26451
             #define CONDITION (INT64_MAX == LONG_MAX)
 
26452
            #elif HAVE_LONG_LONG_INT
 
26453
             #define CONDITION (sizeof (long long int) == sizeof (long int))
 
26454
            #else
 
26455
             #define CONDITION 0
 
26456
            #endif
 
26457
            int test[CONDITION ? 1 : -1];
 
26458
int
 
26459
main ()
 
26460
{
 
26461
 
 
26462
  ;
 
26463
  return 0;
 
26464
}
 
26465
_ACEOF
 
26466
if ac_fn_c_try_compile "$LINENO"; then :
 
26467
  gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
 
26468
else
 
26469
  gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
 
26470
fi
 
26471
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
26472
fi
 
26473
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
 
26474
$as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
 
26475
  if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
 
26476
    INT64_MAX_EQ_LONG_MAX=1;
 
26477
  else
 
26478
    INT64_MAX_EQ_LONG_MAX=0;
 
26479
  fi
 
26480
 
 
26481
 
 
26482
  else
 
26483
    INT64_MAX_EQ_LONG_MAX=-1
 
26484
  fi
 
26485
 
 
26486
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
 
26487
$as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
 
26488
if ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+:} false; then :
 
26489
  $as_echo_n "(cached) " >&6
 
26490
else
 
26491
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
26492
/* end confdefs.h.  */
 
26493
/* Work also in C++ mode.  */
 
26494
            #define __STDC_LIMIT_MACROS 1
 
26495
 
 
26496
            /* Work if build is not clean.  */
 
26497
            #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
 
26498
 
 
26499
            #include <limits.h>
 
26500
            #if HAVE_STDINT_H
 
26501
             #include <stdint.h>
 
26502
            #endif
 
26503
 
 
26504
            #if defined UINT32_MAX && defined UINTMAX_MAX
 
26505
             #define CONDITION (UINT32_MAX < UINTMAX_MAX)
 
26506
            #elif HAVE_LONG_LONG_INT
 
26507
             #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
 
26508
            #else
 
26509
             #define CONDITION 0
 
26510
            #endif
 
26511
            int test[CONDITION ? 1 : -1];
 
26512
int
 
26513
main ()
 
26514
{
 
26515
 
 
26516
  ;
 
26517
  return 0;
 
26518
}
 
26519
_ACEOF
 
26520
if ac_fn_c_try_compile "$LINENO"; then :
 
26521
  gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
 
26522
else
 
26523
  gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
 
26524
fi
 
26525
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
26526
fi
 
26527
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
 
26528
$as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
 
26529
  if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
 
26530
    UINT32_MAX_LT_UINTMAX_MAX=1;
 
26531
  else
 
26532
    UINT32_MAX_LT_UINTMAX_MAX=0;
 
26533
  fi
 
26534
 
 
26535
 
 
26536
  if test $APPLE_UNIVERSAL_BUILD = 0; then
 
26537
 
 
26538
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
 
26539
$as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
 
26540
if ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+:} false; then :
 
26541
  $as_echo_n "(cached) " >&6
 
26542
else
 
26543
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
26544
/* end confdefs.h.  */
 
26545
/* Work also in C++ mode.  */
 
26546
            #define __STDC_LIMIT_MACROS 1
 
26547
 
 
26548
            /* Work if build is not clean.  */
 
26549
            #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
 
26550
 
 
26551
            #include <limits.h>
 
26552
            #if HAVE_STDINT_H
 
26553
             #include <stdint.h>
 
26554
            #endif
 
26555
 
 
26556
            #if defined UINT64_MAX
 
26557
             #define CONDITION (UINT64_MAX == ULONG_MAX)
 
26558
            #elif HAVE_LONG_LONG_INT
 
26559
             #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
 
26560
            #else
 
26561
             #define CONDITION 0
 
26562
            #endif
 
26563
            int test[CONDITION ? 1 : -1];
 
26564
int
 
26565
main ()
 
26566
{
 
26567
 
 
26568
  ;
 
26569
  return 0;
 
26570
}
 
26571
_ACEOF
 
26572
if ac_fn_c_try_compile "$LINENO"; then :
 
26573
  gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
 
26574
else
 
26575
  gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
 
26576
fi
 
26577
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
26578
fi
 
26579
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
 
26580
$as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
 
26581
  if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
 
26582
    UINT64_MAX_EQ_ULONG_MAX=1;
 
26583
  else
 
26584
    UINT64_MAX_EQ_ULONG_MAX=0;
 
26585
  fi
 
26586
 
 
26587
 
 
26588
  else
 
26589
    UINT64_MAX_EQ_ULONG_MAX=-1
 
26590
  fi
 
26591
 
 
26592
 
 
26593
 
 
26594
 
 
26595
 
 
26596
 
 
26597
  # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
 
26598
  # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
 
26599
  # irrelevant for anonymous mappings.
 
26600
  ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
 
26601
if test "x$ac_cv_func_mmap" = xyes; then :
 
26602
  gl_have_mmap=yes
 
26603
else
 
26604
  gl_have_mmap=no
 
26605
fi
 
26606
 
 
26607
 
 
26608
  # Try to allow MAP_ANONYMOUS.
 
26609
  gl_have_mmap_anonymous=no
 
26610
  if test $gl_have_mmap = yes; then
 
26611
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
 
26612
$as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
 
26613
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
26614
/* end confdefs.h.  */
 
26615
 
 
26616
#include <sys/mman.h>
 
26617
#ifdef MAP_ANONYMOUS
 
26618
    I cant identify this map
 
26619
#endif
 
26620
 
 
26621
_ACEOF
 
26622
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
26623
  $EGREP "I cant identify this map" >/dev/null 2>&1; then :
 
26624
  gl_have_mmap_anonymous=yes
 
26625
fi
 
26626
rm -f conftest*
 
26627
 
 
26628
    if test $gl_have_mmap_anonymous != yes; then
 
26629
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
26630
/* end confdefs.h.  */
 
26631
 
 
26632
#include <sys/mman.h>
 
26633
#ifdef MAP_ANON
 
26634
    I cant identify this map
 
26635
#endif
 
26636
 
 
26637
_ACEOF
 
26638
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
26639
  $EGREP "I cant identify this map" >/dev/null 2>&1; then :
 
26640
 
 
26641
$as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
 
26642
 
 
26643
         gl_have_mmap_anonymous=yes
 
26644
fi
 
26645
rm -f conftest*
 
26646
 
 
26647
    fi
 
26648
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
 
26649
$as_echo "$gl_have_mmap_anonymous" >&6; }
 
26650
    if test $gl_have_mmap_anonymous = yes; then
 
26651
 
 
26652
$as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
 
26653
 
 
26654
    fi
 
26655
  fi
 
26656
 
 
26657
 
 
26658
 
 
26659
 
23020
26660
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
23021
26661
$as_echo_n "checking for wchar_t... " >&6; }
23022
 
if test "${gt_cv_c_wchar_t+set}" = set; then :
 
26662
if ${gt_cv_c_wchar_t+:} false; then :
23023
26663
  $as_echo_n "(cached) " >&6
23024
26664
else
23025
26665
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23052
26692
 
23053
26693
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
23054
26694
$as_echo_n "checking for wint_t... " >&6; }
23055
 
if test "${gt_cv_c_wint_t+set}" = set; then :
 
26695
if ${gt_cv_c_wint_t+:} false; then :
23056
26696
  $as_echo_n "(cached) " >&6
23057
26697
else
23058
26698
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23099
26739
 
23100
26740
 
23101
26741
 
 
26742
 
 
26743
 
23102
26744
  LIBTESTS_LIBDEPS="$gltests_libdeps"
23103
26745
 
23104
26746
 
23105
26747
 
 
26748
for ac_func in getrusage
 
26749
do :
 
26750
  ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
 
26751
if test "x$ac_cv_func_getrusage" = xyes; then :
 
26752
  cat >>confdefs.h <<_ACEOF
 
26753
#define HAVE_GETRUSAGE 1
 
26754
_ACEOF
 
26755
 
 
26756
fi
 
26757
done
 
26758
 
 
26759
 
 
26760
 
 
26761
 
 
26762
 
 
26763
 
 
26764
 
 
26765
 
 
26766
 
 
26767
 
 
26768
 
 
26769
    use_additional=yes
 
26770
 
 
26771
  acl_save_prefix="$prefix"
 
26772
  prefix="$acl_final_prefix"
 
26773
  acl_save_exec_prefix="$exec_prefix"
 
26774
  exec_prefix="$acl_final_exec_prefix"
 
26775
 
 
26776
    eval additional_includedir=\"$includedir\"
 
26777
    eval additional_libdir=\"$libdir\"
 
26778
 
 
26779
  exec_prefix="$acl_save_exec_prefix"
 
26780
  prefix="$acl_save_prefix"
 
26781
 
 
26782
 
 
26783
# Check whether --with-libpthread-prefix was given.
 
26784
if test "${with_libpthread_prefix+set}" = set; then :
 
26785
  withval=$with_libpthread_prefix;
 
26786
    if test "X$withval" = "Xno"; then
 
26787
      use_additional=no
 
26788
    else
 
26789
      if test "X$withval" = "X"; then
 
26790
 
 
26791
  acl_save_prefix="$prefix"
 
26792
  prefix="$acl_final_prefix"
 
26793
  acl_save_exec_prefix="$exec_prefix"
 
26794
  exec_prefix="$acl_final_exec_prefix"
 
26795
 
 
26796
          eval additional_includedir=\"$includedir\"
 
26797
          eval additional_libdir=\"$libdir\"
 
26798
 
 
26799
  exec_prefix="$acl_save_exec_prefix"
 
26800
  prefix="$acl_save_prefix"
 
26801
 
 
26802
      else
 
26803
        additional_includedir="$withval/include"
 
26804
        additional_libdir="$withval/$acl_libdirstem"
 
26805
      fi
 
26806
    fi
 
26807
 
 
26808
fi
 
26809
 
 
26810
      LIBPTHREAD=
 
26811
  LTLIBPTHREAD=
 
26812
  INCPTHREAD=
 
26813
  LIBPTHREAD_PREFIX=
 
26814
  rpathdirs=
 
26815
  ltrpathdirs=
 
26816
  names_already_handled=
 
26817
  names_next_round='pthread '
 
26818
  while test -n "$names_next_round"; do
 
26819
    names_this_round="$names_next_round"
 
26820
    names_next_round=
 
26821
    for name in $names_this_round; do
 
26822
      already_handled=
 
26823
      for n in $names_already_handled; do
 
26824
        if test "$n" = "$name"; then
 
26825
          already_handled=yes
 
26826
          break
 
26827
        fi
 
26828
      done
 
26829
      if test -z "$already_handled"; then
 
26830
        names_already_handled="$names_already_handled $name"
 
26831
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
 
26832
        eval value=\"\$HAVE_LIB$uppername\"
 
26833
        if test -n "$value"; then
 
26834
          if test "$value" = yes; then
 
26835
            eval value=\"\$LIB$uppername\"
 
26836
            test -z "$value" || LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$value"
 
26837
            eval value=\"\$LTLIB$uppername\"
 
26838
            test -z "$value" || LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }$value"
 
26839
          else
 
26840
                                    :
 
26841
          fi
 
26842
        else
 
26843
                              found_dir=
 
26844
          found_la=
 
26845
          found_so=
 
26846
          found_a=
 
26847
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
 
26848
          if test -n "$acl_shlibext"; then
 
26849
            shrext=".$acl_shlibext"             # typically: shrext=.so
 
26850
          else
 
26851
            shrext=
 
26852
          fi
 
26853
          if test $use_additional = yes; then
 
26854
            dir="$additional_libdir"
 
26855
                                    if test -n "$acl_shlibext"; then
 
26856
              if test -f "$dir/$libname$shrext"; then
 
26857
                found_dir="$dir"
 
26858
                found_so="$dir/$libname$shrext"
 
26859
              else
 
26860
                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
26861
                  ver=`(cd "$dir" && \
 
26862
                        for f in "$libname$shrext".*; do echo "$f"; done \
 
26863
                        | sed -e "s,^$libname$shrext\\\\.,," \
 
26864
                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
26865
                        | sed 1q ) 2>/dev/null`
 
26866
                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
26867
                    found_dir="$dir"
 
26868
                    found_so="$dir/$libname$shrext.$ver"
 
26869
                  fi
 
26870
                else
 
26871
                  eval library_names=\"$acl_library_names_spec\"
 
26872
                  for f in $library_names; do
 
26873
                    if test -f "$dir/$f"; then
 
26874
                      found_dir="$dir"
 
26875
                      found_so="$dir/$f"
 
26876
                      break
 
26877
                    fi
 
26878
                  done
 
26879
                fi
 
26880
              fi
 
26881
            fi
 
26882
                        if test "X$found_dir" = "X"; then
 
26883
              if test -f "$dir/$libname.$acl_libext"; then
 
26884
                found_dir="$dir"
 
26885
                found_a="$dir/$libname.$acl_libext"
 
26886
              fi
 
26887
            fi
 
26888
            if test "X$found_dir" != "X"; then
 
26889
              if test -f "$dir/$libname.la"; then
 
26890
                found_la="$dir/$libname.la"
 
26891
              fi
 
26892
            fi
 
26893
          fi
 
26894
          if test "X$found_dir" = "X"; then
 
26895
            for x in $LDFLAGS $LTLIBPTHREAD; do
 
26896
 
 
26897
  acl_save_prefix="$prefix"
 
26898
  prefix="$acl_final_prefix"
 
26899
  acl_save_exec_prefix="$exec_prefix"
 
26900
  exec_prefix="$acl_final_exec_prefix"
 
26901
  eval x=\"$x\"
 
26902
  exec_prefix="$acl_save_exec_prefix"
 
26903
  prefix="$acl_save_prefix"
 
26904
 
 
26905
              case "$x" in
 
26906
                -L*)
 
26907
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
 
26908
                                    if test -n "$acl_shlibext"; then
 
26909
                    if test -f "$dir/$libname$shrext"; then
 
26910
                      found_dir="$dir"
 
26911
                      found_so="$dir/$libname$shrext"
 
26912
                    else
 
26913
                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
26914
                        ver=`(cd "$dir" && \
 
26915
                              for f in "$libname$shrext".*; do echo "$f"; done \
 
26916
                              | sed -e "s,^$libname$shrext\\\\.,," \
 
26917
                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
26918
                              | sed 1q ) 2>/dev/null`
 
26919
                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
26920
                          found_dir="$dir"
 
26921
                          found_so="$dir/$libname$shrext.$ver"
 
26922
                        fi
 
26923
                      else
 
26924
                        eval library_names=\"$acl_library_names_spec\"
 
26925
                        for f in $library_names; do
 
26926
                          if test -f "$dir/$f"; then
 
26927
                            found_dir="$dir"
 
26928
                            found_so="$dir/$f"
 
26929
                            break
 
26930
                          fi
 
26931
                        done
 
26932
                      fi
 
26933
                    fi
 
26934
                  fi
 
26935
                                    if test "X$found_dir" = "X"; then
 
26936
                    if test -f "$dir/$libname.$acl_libext"; then
 
26937
                      found_dir="$dir"
 
26938
                      found_a="$dir/$libname.$acl_libext"
 
26939
                    fi
 
26940
                  fi
 
26941
                  if test "X$found_dir" != "X"; then
 
26942
                    if test -f "$dir/$libname.la"; then
 
26943
                      found_la="$dir/$libname.la"
 
26944
                    fi
 
26945
                  fi
 
26946
                  ;;
 
26947
              esac
 
26948
              if test "X$found_dir" != "X"; then
 
26949
                break
 
26950
              fi
 
26951
            done
 
26952
          fi
 
26953
          if test "X$found_dir" != "X"; then
 
26954
                        LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }-L$found_dir -l$name"
 
26955
            if test "X$found_so" != "X"; then
 
26956
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
 
26957
                                LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$found_so"
 
26958
              else
 
26959
                                                                                haveit=
 
26960
                for x in $ltrpathdirs; do
 
26961
                  if test "X$x" = "X$found_dir"; then
 
26962
                    haveit=yes
 
26963
                    break
 
26964
                  fi
 
26965
                done
 
26966
                if test -z "$haveit"; then
 
26967
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
26968
                fi
 
26969
                                if test "$acl_hardcode_direct" = yes; then
 
26970
                                                      LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$found_so"
 
26971
                else
 
26972
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
 
26973
                                                            LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$found_so"
 
26974
                                                            haveit=
 
26975
                    for x in $rpathdirs; do
 
26976
                      if test "X$x" = "X$found_dir"; then
 
26977
                        haveit=yes
 
26978
                        break
 
26979
                      fi
 
26980
                    done
 
26981
                    if test -z "$haveit"; then
 
26982
                      rpathdirs="$rpathdirs $found_dir"
 
26983
                    fi
 
26984
                  else
 
26985
                                                                                haveit=
 
26986
                    for x in $LDFLAGS $LIBPTHREAD; do
 
26987
 
 
26988
  acl_save_prefix="$prefix"
 
26989
  prefix="$acl_final_prefix"
 
26990
  acl_save_exec_prefix="$exec_prefix"
 
26991
  exec_prefix="$acl_final_exec_prefix"
 
26992
  eval x=\"$x\"
 
26993
  exec_prefix="$acl_save_exec_prefix"
 
26994
  prefix="$acl_save_prefix"
 
26995
 
 
26996
                      if test "X$x" = "X-L$found_dir"; then
 
26997
                        haveit=yes
 
26998
                        break
 
26999
                      fi
 
27000
                    done
 
27001
                    if test -z "$haveit"; then
 
27002
                      LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }-L$found_dir"
 
27003
                    fi
 
27004
                    if test "$acl_hardcode_minus_L" != no; then
 
27005
                                                                                        LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$found_so"
 
27006
                    else
 
27007
                                                                                                                                                                                LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }-l$name"
 
27008
                    fi
 
27009
                  fi
 
27010
                fi
 
27011
              fi
 
27012
            else
 
27013
              if test "X$found_a" != "X"; then
 
27014
                                LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$found_a"
 
27015
              else
 
27016
                                                LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }-L$found_dir -l$name"
 
27017
              fi
 
27018
            fi
 
27019
                        additional_includedir=
 
27020
            case "$found_dir" in
 
27021
              */$acl_libdirstem | */$acl_libdirstem/)
 
27022
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
 
27023
                LIBPTHREAD_PREFIX="$basedir"
 
27024
                additional_includedir="$basedir/include"
 
27025
                ;;
 
27026
            esac
 
27027
            if test "X$additional_includedir" != "X"; then
 
27028
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
 
27029
                haveit=
 
27030
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
27031
                  if test -n "$GCC"; then
 
27032
                    case $host_os in
 
27033
                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
27034
                    esac
 
27035
                  fi
 
27036
                fi
 
27037
                if test -z "$haveit"; then
 
27038
                  for x in $CPPFLAGS $INCPTHREAD; do
 
27039
 
 
27040
  acl_save_prefix="$prefix"
 
27041
  prefix="$acl_final_prefix"
 
27042
  acl_save_exec_prefix="$exec_prefix"
 
27043
  exec_prefix="$acl_final_exec_prefix"
 
27044
  eval x=\"$x\"
 
27045
  exec_prefix="$acl_save_exec_prefix"
 
27046
  prefix="$acl_save_prefix"
 
27047
 
 
27048
                    if test "X$x" = "X-I$additional_includedir"; then
 
27049
                      haveit=yes
 
27050
                      break
 
27051
                    fi
 
27052
                  done
 
27053
                  if test -z "$haveit"; then
 
27054
                    if test -d "$additional_includedir"; then
 
27055
                                            INCPTHREAD="${INCPTHREAD}${INCPTHREAD:+ }-I$additional_includedir"
 
27056
                    fi
 
27057
                  fi
 
27058
                fi
 
27059
              fi
 
27060
            fi
 
27061
                        if test -n "$found_la"; then
 
27062
                                                        save_libdir="$libdir"
 
27063
              case "$found_la" in
 
27064
                */* | *\\*) . "$found_la" ;;
 
27065
                *) . "./$found_la" ;;
 
27066
              esac
 
27067
              libdir="$save_libdir"
 
27068
                            for dep in $dependency_libs; do
 
27069
                case "$dep" in
 
27070
                  -L*)
 
27071
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
27072
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
 
27073
                      haveit=
 
27074
                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
 
27075
                        if test -n "$GCC"; then
 
27076
                          case $host_os in
 
27077
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
27078
                          esac
 
27079
                        fi
 
27080
                      fi
 
27081
                      if test -z "$haveit"; then
 
27082
                        haveit=
 
27083
                        for x in $LDFLAGS $LIBPTHREAD; do
 
27084
 
 
27085
  acl_save_prefix="$prefix"
 
27086
  prefix="$acl_final_prefix"
 
27087
  acl_save_exec_prefix="$exec_prefix"
 
27088
  exec_prefix="$acl_final_exec_prefix"
 
27089
  eval x=\"$x\"
 
27090
  exec_prefix="$acl_save_exec_prefix"
 
27091
  prefix="$acl_save_prefix"
 
27092
 
 
27093
                          if test "X$x" = "X-L$additional_libdir"; then
 
27094
                            haveit=yes
 
27095
                            break
 
27096
                          fi
 
27097
                        done
 
27098
                        if test -z "$haveit"; then
 
27099
                          if test -d "$additional_libdir"; then
 
27100
                                                        LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }-L$additional_libdir"
 
27101
                          fi
 
27102
                        fi
 
27103
                        haveit=
 
27104
                        for x in $LDFLAGS $LTLIBPTHREAD; do
 
27105
 
 
27106
  acl_save_prefix="$prefix"
 
27107
  prefix="$acl_final_prefix"
 
27108
  acl_save_exec_prefix="$exec_prefix"
 
27109
  exec_prefix="$acl_final_exec_prefix"
 
27110
  eval x=\"$x\"
 
27111
  exec_prefix="$acl_save_exec_prefix"
 
27112
  prefix="$acl_save_prefix"
 
27113
 
 
27114
                          if test "X$x" = "X-L$additional_libdir"; then
 
27115
                            haveit=yes
 
27116
                            break
 
27117
                          fi
 
27118
                        done
 
27119
                        if test -z "$haveit"; then
 
27120
                          if test -d "$additional_libdir"; then
 
27121
                                                        LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }-L$additional_libdir"
 
27122
                          fi
 
27123
                        fi
 
27124
                      fi
 
27125
                    fi
 
27126
                    ;;
 
27127
                  -R*)
 
27128
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
27129
                    if test "$enable_rpath" != no; then
 
27130
                                                                  haveit=
 
27131
                      for x in $rpathdirs; do
 
27132
                        if test "X$x" = "X$dir"; then
 
27133
                          haveit=yes
 
27134
                          break
 
27135
                        fi
 
27136
                      done
 
27137
                      if test -z "$haveit"; then
 
27138
                        rpathdirs="$rpathdirs $dir"
 
27139
                      fi
 
27140
                                                                  haveit=
 
27141
                      for x in $ltrpathdirs; do
 
27142
                        if test "X$x" = "X$dir"; then
 
27143
                          haveit=yes
 
27144
                          break
 
27145
                        fi
 
27146
                      done
 
27147
                      if test -z "$haveit"; then
 
27148
                        ltrpathdirs="$ltrpathdirs $dir"
 
27149
                      fi
 
27150
                    fi
 
27151
                    ;;
 
27152
                  -l*)
 
27153
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
27154
                    ;;
 
27155
                  *.la)
 
27156
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
27157
                    ;;
 
27158
                  *)
 
27159
                                        LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$dep"
 
27160
                    LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }$dep"
 
27161
                    ;;
 
27162
                esac
 
27163
              done
 
27164
            fi
 
27165
          else
 
27166
                                                            LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }-l$name"
 
27167
            LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }-l$name"
 
27168
          fi
 
27169
        fi
 
27170
      fi
 
27171
    done
 
27172
  done
 
27173
  if test "X$rpathdirs" != "X"; then
 
27174
    if test -n "$acl_hardcode_libdir_separator"; then
 
27175
                        alldirs=
 
27176
      for found_dir in $rpathdirs; do
 
27177
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
 
27178
      done
 
27179
            acl_save_libdir="$libdir"
 
27180
      libdir="$alldirs"
 
27181
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
27182
      libdir="$acl_save_libdir"
 
27183
      LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$flag"
 
27184
    else
 
27185
            for found_dir in $rpathdirs; do
 
27186
        acl_save_libdir="$libdir"
 
27187
        libdir="$found_dir"
 
27188
        eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
27189
        libdir="$acl_save_libdir"
 
27190
        LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$flag"
 
27191
      done
 
27192
    fi
 
27193
  fi
 
27194
  if test "X$ltrpathdirs" != "X"; then
 
27195
            for found_dir in $ltrpathdirs; do
 
27196
      LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }-R$found_dir"
 
27197
    done
 
27198
  fi
 
27199
 
 
27200
 
 
27201
        ac_save_CPPFLAGS="$CPPFLAGS"
 
27202
 
 
27203
  for element in $INCPTHREAD; do
 
27204
    haveit=
 
27205
    for x in $CPPFLAGS; do
 
27206
 
 
27207
  acl_save_prefix="$prefix"
 
27208
  prefix="$acl_final_prefix"
 
27209
  acl_save_exec_prefix="$exec_prefix"
 
27210
  exec_prefix="$acl_final_exec_prefix"
 
27211
  eval x=\"$x\"
 
27212
  exec_prefix="$acl_save_exec_prefix"
 
27213
  prefix="$acl_save_prefix"
 
27214
 
 
27215
      if test "X$x" = "X$element"; then
 
27216
        haveit=yes
 
27217
        break
 
27218
      fi
 
27219
    done
 
27220
    if test -z "$haveit"; then
 
27221
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
27222
    fi
 
27223
  done
 
27224
 
 
27225
 
 
27226
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpthread" >&5
 
27227
$as_echo_n "checking for libpthread... " >&6; }
 
27228
if ${ac_cv_libpthread+:} false; then :
 
27229
  $as_echo_n "(cached) " >&6
 
27230
else
 
27231
 
 
27232
    ac_save_LIBS="$LIBS"
 
27233
    LIBS="$LIBS $LIBPTHREAD"
 
27234
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
27235
/* end confdefs.h.  */
 
27236
#include <pthread.h>
 
27237
int
 
27238
main ()
 
27239
{
 
27240
pthread_mutex_lock (0);
 
27241
  ;
 
27242
  return 0;
 
27243
}
 
27244
_ACEOF
 
27245
if ac_fn_c_try_link "$LINENO"; then :
 
27246
  ac_cv_libpthread=yes
 
27247
else
 
27248
  ac_cv_libpthread=no
 
27249
fi
 
27250
rm -f core conftest.err conftest.$ac_objext \
 
27251
    conftest$ac_exeext conftest.$ac_ext
 
27252
    LIBS="$ac_save_LIBS"
 
27253
 
 
27254
fi
 
27255
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpthread" >&5
 
27256
$as_echo "$ac_cv_libpthread" >&6; }
 
27257
  if test "$ac_cv_libpthread" = yes; then
 
27258
    HAVE_LIBPTHREAD=yes
 
27259
 
 
27260
$as_echo "#define HAVE_LIBPTHREAD 1" >>confdefs.h
 
27261
 
 
27262
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpthread" >&5
 
27263
$as_echo_n "checking how to link with libpthread... " >&6; }
 
27264
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPTHREAD" >&5
 
27265
$as_echo "$LIBPTHREAD" >&6; }
 
27266
  else
 
27267
    HAVE_LIBPTHREAD=no
 
27268
            CPPFLAGS="$ac_save_CPPFLAGS"
 
27269
    LIBPTHREAD=
 
27270
    LTLIBPTHREAD=
 
27271
    LIBPTHREAD_PREFIX=
 
27272
  fi
 
27273
 
 
27274
 
 
27275
 
 
27276
 
 
27277
 
 
27278
 
 
27279
 
 
27280
 
23106
27281
LIBGNUTLS_LIBS="-L${libdir} -lgnutls $LIBS"
23107
27282
LIBGNUTLS_CFLAGS="-I${includedir}"
23108
27283
 
23128
27303
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
23129
27304
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23130
27305
$as_echo_n "checking for $ac_word... " >&6; }
23131
 
if test "${ac_cv_prog_CXX+set}" = set; then :
 
27306
if ${ac_cv_prog_CXX+:} false; then :
23132
27307
  $as_echo_n "(cached) " >&6
23133
27308
else
23134
27309
  if test -n "$CXX"; then
23172
27347
set dummy $ac_prog; ac_word=$2
23173
27348
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23174
27349
$as_echo_n "checking for $ac_word... " >&6; }
23175
 
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
 
27350
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
23176
27351
  $as_echo_n "(cached) " >&6
23177
27352
else
23178
27353
  if test -n "$ac_ct_CXX"; then
23250
27425
 
23251
27426
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
23252
27427
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
23253
 
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
 
27428
if ${ac_cv_cxx_compiler_gnu+:} false; then :
23254
27429
  $as_echo_n "(cached) " >&6
23255
27430
else
23256
27431
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23287
27462
ac_save_CXXFLAGS=$CXXFLAGS
23288
27463
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
23289
27464
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
23290
 
if test "${ac_cv_prog_cxx_g+set}" = set; then :
 
27465
if ${ac_cv_prog_cxx_g+:} false; then :
23291
27466
  $as_echo_n "(cached) " >&6
23292
27467
else
23293
27468
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
23373
27548
 
23374
27549
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
23375
27550
$as_echo_n "checking dependency style of $depcc... " >&6; }
23376
 
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
 
27551
if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
23377
27552
  $as_echo_n "(cached) " >&6
23378
27553
else
23379
27554
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23496
27671
fi
23497
27672
 
23498
27673
 
 
27674
 
 
27675
 
 
27676
func_stripname_cnf ()
 
27677
{
 
27678
  case ${2} in
 
27679
  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
 
27680
  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
 
27681
  esac
 
27682
} # func_stripname_cnf
 
27683
 
23499
27684
      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
23500
27685
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
23501
27686
    (test "X$CXX" != "Xg++"))) ; then
23507
27692
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
23508
27693
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
23509
27694
if test -z "$CXXCPP"; then
23510
 
  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
 
27695
  if ${ac_cv_prog_CXXCPP+:} false; then :
23511
27696
  $as_echo_n "(cached) " >&6
23512
27697
else
23513
27698
      # Double quotes because CXXCPP needs to be expanded
23623
27808
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23624
27809
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23625
27810
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
23626
 
See \`config.log' for more details" "$LINENO" 5 ; }
 
27811
See \`config.log' for more details" "$LINENO" 5; }
23627
27812
fi
23628
27813
 
23629
27814
ac_ext=c
23718
27903
 
23719
27904
  # Allow CC to be a program name with arguments.
23720
27905
  lt_save_CC=$CC
 
27906
  lt_save_CFLAGS=$CFLAGS
23721
27907
  lt_save_LD=$LD
23722
27908
  lt_save_GCC=$GCC
23723
27909
  GCC=$GXX
23735
27921
  fi
23736
27922
  test -z "${LDCXX+set}" || LD=$LDCXX
23737
27923
  CC=${CXX-"c++"}
 
27924
  CFLAGS=$CXXFLAGS
23738
27925
  compiler=$CC
23739
27926
  compiler_CXX=$CC
23740
27927
  for cc_temp in $compiler""; do
23808
27995
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
23809
27996
$as_echo_n "checking for non-GNU ld... " >&6; }
23810
27997
fi
23811
 
if test "${lt_cv_path_LD+set}" = set; then :
 
27998
if ${lt_cv_path_LD+:} false; then :
23812
27999
  $as_echo_n "(cached) " >&6
23813
28000
else
23814
28001
  if test -z "$LD"; then
23848
28035
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
23849
28036
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
23850
28037
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
23851
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
 
28038
if ${lt_cv_prog_gnu_ld+:} false; then :
23852
28039
  $as_echo_n "(cached) " >&6
23853
28040
else
23854
28041
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
23874
28061
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
23875
28062
      # archiving commands below assume that GNU ld is being used.
23876
28063
      if test "$with_gnu_ld" = yes; then
23877
 
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
23878
 
        archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
28064
        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
28065
        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23879
28066
 
23880
28067
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
23881
28068
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
24017
28204
          allow_undefined_flag_CXX='-berok'
24018
28205
          # Determine the default libpath from the value encoded in an empty
24019
28206
          # executable.
24020
 
          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
28207
          if test "${lt_cv_aix_libpath+set}" = set; then
 
28208
  aix_libpath=$lt_cv_aix_libpath
 
28209
else
 
28210
  if ${lt_cv_aix_libpath__CXX+:} false; then :
 
28211
  $as_echo_n "(cached) " >&6
 
28212
else
 
28213
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24021
28214
/* end confdefs.h.  */
24022
28215
 
24023
28216
int
24030
28223
_ACEOF
24031
28224
if ac_fn_cxx_try_link "$LINENO"; then :
24032
28225
 
24033
 
lt_aix_libpath_sed='
24034
 
    /Import File Strings/,/^$/ {
24035
 
        /^0/ {
24036
 
            s/^0  *\(.*\)$/\1/
24037
 
            p
24038
 
        }
24039
 
    }'
24040
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
24041
 
# Check for a 64-bit object if we didn't find anything.
24042
 
if test -z "$aix_libpath"; then
24043
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
24044
 
fi
 
28226
  lt_aix_libpath_sed='
 
28227
      /Import File Strings/,/^$/ {
 
28228
          /^0/ {
 
28229
              s/^0  *\([^ ]*\) *$/\1/
 
28230
              p
 
28231
          }
 
28232
      }'
 
28233
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
28234
  # Check for a 64-bit object if we didn't find anything.
 
28235
  if test -z "$lt_cv_aix_libpath__CXX"; then
 
28236
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
28237
  fi
24045
28238
fi
24046
28239
rm -f core conftest.err conftest.$ac_objext \
24047
28240
    conftest$ac_exeext conftest.$ac_ext
24048
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
28241
  if test -z "$lt_cv_aix_libpath__CXX"; then
 
28242
    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
 
28243
  fi
 
28244
 
 
28245
fi
 
28246
 
 
28247
  aix_libpath=$lt_cv_aix_libpath__CXX
 
28248
fi
24049
28249
 
24050
28250
          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
24051
28251
 
24058
28258
          else
24059
28259
            # Determine the default libpath from the value encoded in an
24060
28260
            # empty executable.
24061
 
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
28261
            if test "${lt_cv_aix_libpath+set}" = set; then
 
28262
  aix_libpath=$lt_cv_aix_libpath
 
28263
else
 
28264
  if ${lt_cv_aix_libpath__CXX+:} false; then :
 
28265
  $as_echo_n "(cached) " >&6
 
28266
else
 
28267
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24062
28268
/* end confdefs.h.  */
24063
28269
 
24064
28270
int
24071
28277
_ACEOF
24072
28278
if ac_fn_cxx_try_link "$LINENO"; then :
24073
28279
 
24074
 
lt_aix_libpath_sed='
24075
 
    /Import File Strings/,/^$/ {
24076
 
        /^0/ {
24077
 
            s/^0  *\(.*\)$/\1/
24078
 
            p
24079
 
        }
24080
 
    }'
24081
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
24082
 
# Check for a 64-bit object if we didn't find anything.
24083
 
if test -z "$aix_libpath"; then
24084
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
24085
 
fi
 
28280
  lt_aix_libpath_sed='
 
28281
      /Import File Strings/,/^$/ {
 
28282
          /^0/ {
 
28283
              s/^0  *\([^ ]*\) *$/\1/
 
28284
              p
 
28285
          }
 
28286
      }'
 
28287
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
28288
  # Check for a 64-bit object if we didn't find anything.
 
28289
  if test -z "$lt_cv_aix_libpath__CXX"; then
 
28290
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
28291
  fi
24086
28292
fi
24087
28293
rm -f core conftest.err conftest.$ac_objext \
24088
28294
    conftest$ac_exeext conftest.$ac_ext
24089
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
28295
  if test -z "$lt_cv_aix_libpath__CXX"; then
 
28296
    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
 
28297
  fi
 
28298
 
 
28299
fi
 
28300
 
 
28301
  aix_libpath=$lt_cv_aix_libpath__CXX
 
28302
fi
24090
28303
 
24091
28304
            hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
24092
28305
            # Warning - without using the other run time loading flags,
24129
28342
        ;;
24130
28343
 
24131
28344
      cygwin* | mingw* | pw32* | cegcc*)
24132
 
        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
24133
 
        # as there is no search path for DLLs.
24134
 
        hardcode_libdir_flag_spec_CXX='-L$libdir'
24135
 
        export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
24136
 
        allow_undefined_flag_CXX=unsupported
24137
 
        always_export_symbols_CXX=no
24138
 
        enable_shared_with_static_runtimes_CXX=yes
 
28345
        case $GXX,$cc_basename in
 
28346
        ,cl* | no,cl*)
 
28347
          # Native MSVC
 
28348
          # hardcode_libdir_flag_spec is actually meaningless, as there is
 
28349
          # no search path for DLLs.
 
28350
          hardcode_libdir_flag_spec_CXX=' '
 
28351
          allow_undefined_flag_CXX=unsupported
 
28352
          always_export_symbols_CXX=yes
 
28353
          file_list_spec_CXX='@'
 
28354
          # Tell ltmain to make .lib files, not .a files.
 
28355
          libext=lib
 
28356
          # Tell ltmain to make .dll files, not .so files.
 
28357
          shrext_cmds=".dll"
 
28358
          # FIXME: Setting linknames here is a bad hack.
 
28359
          archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
28360
          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
28361
              $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
28362
            else
 
28363
              $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
28364
            fi~
 
28365
            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
28366
            linknames='
 
28367
          # The linker will not automatically build a static lib if we build a DLL.
 
28368
          # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
 
28369
          enable_shared_with_static_runtimes_CXX=yes
 
28370
          # Don't use ranlib
 
28371
          old_postinstall_cmds_CXX='chmod 644 $oldlib'
 
28372
          postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
 
28373
            lt_tool_outputfile="@TOOL_OUTPUT@"~
 
28374
            case $lt_outputfile in
 
28375
              *.exe|*.EXE) ;;
 
28376
              *)
 
28377
                lt_outputfile="$lt_outputfile.exe"
 
28378
                lt_tool_outputfile="$lt_tool_outputfile.exe"
 
28379
                ;;
 
28380
            esac~
 
28381
            func_to_tool_file "$lt_outputfile"~
 
28382
            if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
28383
              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
28384
              $RM "$lt_outputfile.manifest";
 
28385
            fi'
 
28386
          ;;
 
28387
        *)
 
28388
          # g++
 
28389
          # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
28390
          # as there is no search path for DLLs.
 
28391
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
28392
          export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
 
28393
          allow_undefined_flag_CXX=unsupported
 
28394
          always_export_symbols_CXX=no
 
28395
          enable_shared_with_static_runtimes_CXX=yes
24139
28396
 
24140
 
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
24141
 
          archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24142
 
          # If the export-symbols file already is a .def file (1st line
24143
 
          # is EXPORTS), use it as is; otherwise, prepend...
24144
 
          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24145
 
            cp $export_symbols $output_objdir/$soname.def;
24146
 
          else
24147
 
            echo EXPORTS > $output_objdir/$soname.def;
24148
 
            cat $export_symbols >> $output_objdir/$soname.def;
24149
 
          fi~
24150
 
          $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24151
 
        else
24152
 
          ld_shlibs_CXX=no
24153
 
        fi
24154
 
        ;;
 
28397
          if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
28398
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
28399
            # If the export-symbols file already is a .def file (1st line
 
28400
            # is EXPORTS), use it as is; otherwise, prepend...
 
28401
            archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
28402
              cp $export_symbols $output_objdir/$soname.def;
 
28403
            else
 
28404
              echo EXPORTS > $output_objdir/$soname.def;
 
28405
              cat $export_symbols >> $output_objdir/$soname.def;
 
28406
            fi~
 
28407
            $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
28408
          else
 
28409
            ld_shlibs_CXX=no
 
28410
          fi
 
28411
          ;;
 
28412
        esac
 
28413
        ;;
24155
28414
      darwin* | rhapsody*)
24156
28415
 
24157
28416
 
24257
28516
            ;;
24258
28517
          *)
24259
28518
            if test "$GXX" = yes; then
24260
 
              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
28519
              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
24261
28520
            else
24262
28521
              # FIXME: insert proper C++ library support
24263
28522
              ld_shlibs_CXX=no
24328
28587
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
24329
28588
                    ;;
24330
28589
                  ia64*)
24331
 
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
28590
                    archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
24332
28591
                    ;;
24333
28592
                  *)
24334
 
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
28593
                    archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
24335
28594
                    ;;
24336
28595
                esac
24337
28596
              fi
24372
28631
          *)
24373
28632
            if test "$GXX" = yes; then
24374
28633
              if test "$with_gnu_ld" = no; then
24375
 
                archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
28634
                archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
24376
28635
              else
24377
 
                archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
 
28636
                archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
24378
28637
              fi
24379
28638
            fi
24380
28639
            link_all_deplibs_CXX=yes
24652
28911
                  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
24653
28912
                  ;;
24654
28913
                *)
24655
 
                  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
28914
                  archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
24656
28915
                  ;;
24657
28916
              esac
24658
28917
 
24739
28998
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
24740
28999
              no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
24741
29000
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
24742
 
                archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
29001
                archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
24743
29002
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
24744
 
                  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
29003
                  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
24745
29004
 
24746
29005
                # Commands to make compiler produce verbose output that lists
24747
29006
                # what "hidden" libraries, object files and flags are used when
24876
29135
};
24877
29136
_LT_EOF
24878
29137
 
 
29138
 
 
29139
_lt_libdeps_save_CFLAGS=$CFLAGS
 
29140
case "$CC $CFLAGS " in #(
 
29141
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
 
29142
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
 
29143
esac
 
29144
 
24879
29145
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
24880
29146
  (eval $ac_compile) 2>&5
24881
29147
  ac_status=$?
24889
29155
  pre_test_object_deps_done=no
24890
29156
 
24891
29157
  for p in `eval "$output_verbose_link_cmd"`; do
24892
 
    case $p in
 
29158
    case ${prev}${p} in
24893
29159
 
24894
29160
    -L* | -R* | -l*)
24895
29161
       # Some compilers place space between "-{L,R}" and the path.
24898
29164
          test $p = "-R"; then
24899
29165
         prev=$p
24900
29166
         continue
24901
 
       else
24902
 
         prev=
24903
29167
       fi
24904
29168
 
 
29169
       # Expand the sysroot to ease extracting the directories later.
 
29170
       if test -z "$prev"; then
 
29171
         case $p in
 
29172
         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
 
29173
         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
 
29174
         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
 
29175
         esac
 
29176
       fi
 
29177
       case $p in
 
29178
       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
 
29179
       esac
24905
29180
       if test "$pre_test_object_deps_done" = no; then
24906
 
         case $p in
24907
 
         -L* | -R*)
 
29181
         case ${prev} in
 
29182
         -L | -R)
24908
29183
           # Internal compiler library paths should come after those
24909
29184
           # provided the user.  The postdeps already come after the
24910
29185
           # user supplied libs so there is no need to process them.
24924
29199
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
24925
29200
         fi
24926
29201
       fi
 
29202
       prev=
24927
29203
       ;;
24928
29204
 
 
29205
    *.lto.$objext) ;; # Ignore GCC LTO objects
24929
29206
    *.$objext)
24930
29207
       # This assumes that the test object file only shows up
24931
29208
       # once in the compiler output.
24961
29238
fi
24962
29239
 
24963
29240
$RM -f confest.$objext
 
29241
CFLAGS=$_lt_libdeps_save_CFLAGS
24964
29242
 
24965
29243
# PORTME: override above test on systems where it is broken
24966
29244
case $host_os in
25061
29339
lt_prog_compiler_pic_CXX=
25062
29340
lt_prog_compiler_static_CXX=
25063
29341
 
25064
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
25065
 
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
25066
29342
 
25067
29343
  # C++ specific cases for pic, static, wl, etc.
25068
29344
  if test "$GXX" = yes; then
25166
29442
          ;;
25167
29443
        esac
25168
29444
        ;;
 
29445
      mingw* | cygwin* | os2* | pw32* | cegcc*)
 
29446
        # This hack is so that the source file can tell whether it is being
 
29447
        # built for inclusion in a dll (and should export symbols for example).
 
29448
        lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
29449
        ;;
25169
29450
      dgux*)
25170
29451
        case $cc_basename in
25171
29452
          ec++*)
25286
29567
            ;;
25287
29568
        esac
25288
29569
        ;;
25289
 
      netbsd*)
 
29570
      netbsd* | netbsdelf*-gnu)
25290
29571
        ;;
25291
29572
      *qnx* | *nto*)
25292
29573
        # QNX uses GNU C++, but need to define -shared option too, otherwise
25383
29664
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
25384
29665
    ;;
25385
29666
esac
25386
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
25387
 
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
25388
 
 
25389
 
 
 
29667
 
 
29668
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
29669
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
29670
if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
 
29671
  $as_echo_n "(cached) " >&6
 
29672
else
 
29673
  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
 
29674
fi
 
29675
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
 
29676
$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
 
29677
lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
25390
29678
 
25391
29679
#
25392
29680
# Check to make sure the PIC flag actually works.
25394
29682
if test -n "$lt_prog_compiler_pic_CXX"; then
25395
29683
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
25396
29684
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
25397
 
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
 
29685
if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
25398
29686
  $as_echo_n "(cached) " >&6
25399
29687
else
25400
29688
  lt_cv_prog_compiler_pic_works_CXX=no
25444
29732
 
25445
29733
 
25446
29734
 
 
29735
 
 
29736
 
25447
29737
#
25448
29738
# Check to make sure the static flag actually works.
25449
29739
#
25450
29740
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
25451
29741
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
25452
29742
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
25453
 
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
 
29743
if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
25454
29744
  $as_echo_n "(cached) " >&6
25455
29745
else
25456
29746
  lt_cv_prog_compiler_static_works_CXX=no
25490
29780
 
25491
29781
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
25492
29782
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
25493
 
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
 
29783
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
25494
29784
  $as_echo_n "(cached) " >&6
25495
29785
else
25496
29786
  lt_cv_prog_compiler_c_o_CXX=no
25542
29832
 
25543
29833
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
25544
29834
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
25545
 
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
 
29835
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
25546
29836
  $as_echo_n "(cached) " >&6
25547
29837
else
25548
29838
  lt_cv_prog_compiler_c_o_CXX=no
25621
29911
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
25622
29912
 
25623
29913
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
29914
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
25624
29915
  case $host_os in
25625
29916
  aix[4-9]*)
25626
29917
    # If we're using GNU nm, then we don't want the "-C" option.
25635
29926
    ;;
25636
29927
  pw32*)
25637
29928
    export_symbols_cmds_CXX="$ltdll_cmds"
25638
 
  ;;
 
29929
    ;;
25639
29930
  cygwin* | mingw* | cegcc*)
25640
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
25641
 
  ;;
 
29931
    case $cc_basename in
 
29932
    cl*) ;;
 
29933
    *)
 
29934
      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
 
29935
      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
 
29936
      ;;
 
29937
    esac
 
29938
    ;;
 
29939
  linux* | k*bsd*-gnu | gnu*)
 
29940
    link_all_deplibs_CXX=no
 
29941
    ;;
25642
29942
  *)
25643
29943
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
25644
 
  ;;
 
29944
    ;;
25645
29945
  esac
25646
 
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
25647
29946
 
25648
29947
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
25649
29948
$as_echo "$ld_shlibs_CXX" >&6; }
25675
29974
      # to ld, don't add -lc before -lgcc.
25676
29975
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
25677
29976
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
25678
 
if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
 
29977
if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
25679
29978
  $as_echo_n "(cached) " >&6
25680
29979
else
25681
29980
  $RM conftest*
25906
30205
  need_version=no
25907
30206
  need_lib_prefix=no
25908
30207
 
25909
 
  case $GCC,$host_os in
25910
 
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
 
30208
  case $GCC,$cc_basename in
 
30209
  yes,*)
 
30210
    # gcc
25911
30211
    library_names_spec='$libname.dll.a'
25912
30212
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
25913
30213
    postinstall_cmds='base_file=`basename \${file}`~
25939
30239
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25940
30240
      ;;
25941
30241
    esac
 
30242
    dynamic_linker='Win32 ld.exe'
 
30243
    ;;
 
30244
 
 
30245
  *,cl*)
 
30246
    # Native MSVC
 
30247
    libname_spec='$name'
 
30248
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
30249
    library_names_spec='${libname}.dll.lib'
 
30250
 
 
30251
    case $build_os in
 
30252
    mingw*)
 
30253
      sys_lib_search_path_spec=
 
30254
      lt_save_ifs=$IFS
 
30255
      IFS=';'
 
30256
      for lt_path in $LIB
 
30257
      do
 
30258
        IFS=$lt_save_ifs
 
30259
        # Let DOS variable expansion print the short 8.3 style file name.
 
30260
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
30261
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
30262
      done
 
30263
      IFS=$lt_save_ifs
 
30264
      # Convert to MSYS style.
 
30265
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
 
30266
      ;;
 
30267
    cygwin*)
 
30268
      # Convert to unix form, then to dos form, then back to unix form
 
30269
      # but this time dos style (no spaces!) so that the unix form looks
 
30270
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
30271
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
30272
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
30273
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
30274
      ;;
 
30275
    *)
 
30276
      sys_lib_search_path_spec="$LIB"
 
30277
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
30278
        # It is most probably a Windows format PATH.
 
30279
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
30280
      else
 
30281
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
30282
      fi
 
30283
      # FIXME: find the short name or the path components, as spaces are
 
30284
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
30285
      ;;
 
30286
    esac
 
30287
 
 
30288
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
30289
    postinstall_cmds='base_file=`basename \${file}`~
 
30290
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
30291
      dldir=$destdir/`dirname \$dlpath`~
 
30292
      test -d \$dldir || mkdir -p \$dldir~
 
30293
      $install_prog $dir/$dlname \$dldir/$dlname'
 
30294
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
30295
      dlpath=$dir/\$dldll~
 
30296
       $RM \$dlpath'
 
30297
    shlibpath_overrides_runpath=yes
 
30298
    dynamic_linker='Win32 link.exe'
25942
30299
    ;;
25943
30300
 
25944
30301
  *)
 
30302
    # Assume MSVC wrapper
25945
30303
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
30304
    dynamic_linker='Win32 ld.exe'
25946
30305
    ;;
25947
30306
  esac
25948
 
  dynamic_linker='Win32 ld.exe'
25949
30307
  # FIXME: first we should search . and the directory the executable is in
25950
30308
  shlibpath_var=PATH
25951
30309
  ;;
26028
30386
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
26029
30387
  soname_spec='${libname}${release}${shared_ext}$major'
26030
30388
  shlibpath_var=LD_LIBRARY_PATH
 
30389
  shlibpath_overrides_runpath=no
26031
30390
  hardcode_into_libs=yes
26032
30391
  ;;
26033
30392
 
26158
30517
  shlibpath_overrides_runpath=no
26159
30518
 
26160
30519
  # Some binutils ld are patched to set DT_RUNPATH
26161
 
  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
 
30520
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
26162
30521
  $as_echo_n "(cached) " >&6
26163
30522
else
26164
30523
  lt_cv_shlibpath_overrides_runpath=no
26211
30570
  dynamic_linker='GNU/Linux ld.so'
26212
30571
  ;;
26213
30572
 
 
30573
netbsdelf*-gnu)
 
30574
  version_type=linux
 
30575
  need_lib_prefix=no
 
30576
  need_version=no
 
30577
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
30578
  soname_spec='${libname}${release}${shared_ext}$major'
 
30579
  shlibpath_var=LD_LIBRARY_PATH
 
30580
  shlibpath_overrides_runpath=no
 
30581
  hardcode_into_libs=yes
 
30582
  dynamic_linker='NetBSD ld.elf_so'
 
30583
  ;;
 
30584
 
26214
30585
netbsd*)
26215
30586
  version_type=sunos
26216
30587
  need_lib_prefix=no
26499
30870
  fi # test -n "$compiler"
26500
30871
 
26501
30872
  CC=$lt_save_CC
 
30873
  CFLAGS=$lt_save_CFLAGS
26502
30874
  LDCXX=$LD
26503
30875
  LD=$lt_save_LD
26504
30876
  GCC=$lt_save_GCC
26526
30898
 
26527
30899
 
26528
30900
 
26529
 
$as_echo "#define GNUTLS_COMPAT_H 1" >>confdefs.h
26530
 
 
26531
 
 
26532
 
ac_config_files="$ac_config_files Makefile gnutls.pc gl/Makefile gl/tests/Makefile includes/Makefile includes/gnutls/gnutls.h minitasn1/Makefile opencdk/Makefile openpgp/Makefile po/Makefile.in x509/Makefile"
 
30901
$as_echo "#define GNUTLS_INTERNAL_BUILD 1" >>confdefs.h
 
30902
 
 
30903
 
 
30904
ac_config_files="$ac_config_files Makefile gnutls.pc gl/Makefile gl/tests/Makefile includes/Makefile includes/gnutls/gnutls.h minitasn1/Makefile opencdk/Makefile openpgp/Makefile po/Makefile.in x509/Makefile gcrypt/Makefile nettle/Makefile"
26533
30905
 
26534
30906
cat >confcache <<\_ACEOF
26535
30907
# This file is a shell script that caches the results of configure
26595
30967
     :end' >>confcache
26596
30968
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26597
30969
  if test -w "$cache_file"; then
26598
 
    test "x$cache_file" != "x/dev/null" &&
 
30970
    if test "x$cache_file" != "x/dev/null"; then
26599
30971
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26600
30972
$as_echo "$as_me: updating cache $cache_file" >&6;}
26601
 
    cat confcache >$cache_file
 
30973
      if test ! -f "$cache_file" || test -h "$cache_file"; then
 
30974
        cat confcache >"$cache_file"
 
30975
      else
 
30976
        case $cache_file in #(
 
30977
        */* | ?:*)
 
30978
          mv -f confcache "$cache_file"$$ &&
 
30979
          mv -f "$cache_file"$$ "$cache_file" ;; #(
 
30980
        *)
 
30981
          mv -f confcache "$cache_file" ;;
 
30982
        esac
 
30983
      fi
 
30984
    fi
26602
30985
  else
26603
30986
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26604
30987
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26645
31028
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
26646
31029
Usually this means the macro was only invoked conditionally." "$LINENO" 5
26647
31030
fi
 
31031
if test -z "${ENABLE_NETTLE_TRUE}" && test -z "${ENABLE_NETTLE_FALSE}"; then
 
31032
  as_fn_error $? "conditional \"ENABLE_NETTLE\" was never defined.
 
31033
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
31034
fi
26648
31035
if test -z "${ENABLE_MINITASN1_TRUE}" && test -z "${ENABLE_MINITASN1_FALSE}"; then
26649
31036
  as_fn_error $? "conditional \"ENABLE_MINITASN1\" was never defined.
26650
31037
Usually this means the macro was only invoked conditionally." "$LINENO" 5
26682
31069
Usually this means the macro was only invoked conditionally." "$LINENO" 5
26683
31070
fi
26684
31071
 
 
31072
if test -z "${ENABLE_PKCS11_TRUE}" && test -z "${ENABLE_PKCS11_FALSE}"; then
 
31073
  as_fn_error $? "conditional \"ENABLE_PKCS11\" was never defined.
 
31074
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
31075
fi
26685
31076
if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
26686
31077
  as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
26687
31078
Usually this means the macro was only invoked conditionally." "$LINENO" 5
26688
31079
fi
 
31080
if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
 
31081
  as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
 
31082
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
31083
fi
 
31084
if test -z "${GL_GENERATE_BYTESWAP_H_TRUE}" && test -z "${GL_GENERATE_BYTESWAP_H_FALSE}"; then
 
31085
  as_fn_error $? "conditional \"GL_GENERATE_BYTESWAP_H\" was never defined.
 
31086
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
31087
fi
 
31088
if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
 
31089
  as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
 
31090
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
31091
fi
 
31092
if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
 
31093
  as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
 
31094
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
31095
fi
26689
31096
if test -z "${HAVE_LD_OUTPUT_DEF_TRUE}" && test -z "${HAVE_LD_OUTPUT_DEF_FALSE}"; then
26690
31097
  as_fn_error $? "conditional \"HAVE_LD_OUTPUT_DEF\" was never defined.
26691
31098
Usually this means the macro was only invoked conditionally." "$LINENO" 5
26694
31101
  as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
26695
31102
Usually this means the macro was only invoked conditionally." "$LINENO" 5
26696
31103
fi
 
31104
if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
 
31105
  as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
 
31106
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
31107
fi
 
31108
if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
 
31109
  as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
 
31110
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
31111
fi
 
31112
if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
 
31113
  as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
 
31114
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
31115
fi
26697
31116
 
26698
31117
    lgl_libobjs=
26699
31118
    lgl_ltlibobjs=
26735
31154
Usually this means the macro was only invoked conditionally." "$LINENO" 5
26736
31155
fi
26737
31156
 
26738
 
: ${CONFIG_STATUS=./config.status}
 
31157
: "${CONFIG_STATUS=./config.status}"
26739
31158
ac_write_fail=0
26740
31159
ac_clean_files_save=$ac_clean_files
26741
31160
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26836
31255
IFS=" ""        $as_nl"
26837
31256
 
26838
31257
# Find who we are.  Look in the path if we contain no directory separator.
 
31258
as_myself=
26839
31259
case $0 in #((
26840
31260
  *[\\/]* ) as_myself=$0 ;;
26841
31261
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27142
31562
# report actual input values of CONFIG_FILES etc. instead of their
27143
31563
# values after options handling.
27144
31564
ac_log="
27145
 
This file was extended by libgnutls $as_me 2.10.5, which was
27146
 
generated by GNU Autoconf 2.67.  Invocation command line was
 
31565
This file was extended by libgnutls $as_me 2.12.11, which was
 
31566
generated by GNU Autoconf 2.68.  Invocation command line was
27147
31567
 
27148
31568
  CONFIG_FILES    = $CONFIG_FILES
27149
31569
  CONFIG_HEADERS  = $CONFIG_HEADERS
27208
31628
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27209
31629
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27210
31630
ac_cs_version="\\
27211
 
libgnutls config.status 2.10.5
27212
 
configured by $0, generated by GNU Autoconf 2.67,
 
31631
libgnutls config.status 2.12.11
 
31632
configured by $0, generated by GNU Autoconf 2.68,
27213
31633
  with options \\"\$ac_cs_config\\"
27214
31634
 
27215
31635
Copyright (C) 2010 Free Software Foundation, Inc.
27368
31788
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27369
31789
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27370
31790
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
 
31791
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
 
31792
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
27371
31793
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27372
31794
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27373
31795
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27374
31796
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
 
31797
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
 
31798
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
 
31799
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
27375
31800
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27376
31801
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
 
31802
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
27377
31803
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27378
31804
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27379
31805
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27388
31814
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27389
31815
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27390
31816
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
 
31817
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
 
31818
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
27391
31819
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27392
31820
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27393
31821
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
 
31822
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27394
31823
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27395
 
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27396
31824
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27397
31825
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27398
31826
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
 
31827
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
27399
31828
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27400
31829
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27401
31830
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27428
31857
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27429
31858
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27430
31859
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27431
 
fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
27432
31860
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27433
31861
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27434
31862
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27435
31863
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27436
31864
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
 
31865
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
27437
31866
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27438
31867
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27439
31868
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27472
31901
compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
27473
31902
GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
27474
31903
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
 
31904
lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
27475
31905
lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
27476
 
lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
27477
31906
lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
27478
31907
lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
27479
31908
archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
27500
31929
hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
27501
31930
inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
27502
31931
link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
27503
 
fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
27504
31932
always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
27505
31933
export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27506
31934
exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
27507
31935
include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
27508
31936
prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
31937
postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27509
31938
file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
27510
31939
hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
27511
31940
compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
27545
31974
reload_flag \
27546
31975
deplibs_check_method \
27547
31976
file_magic_cmd \
 
31977
file_magic_glob \
 
31978
want_nocaseglob \
 
31979
sharedlib_from_linklib_cmd \
27548
31980
AR \
27549
31981
AR_FLAGS \
 
31982
archiver_list_spec \
27550
31983
STRIP \
27551
31984
RANLIB \
27552
31985
CC \
27556
31989
lt_cv_sys_global_symbol_to_cdecl \
27557
31990
lt_cv_sys_global_symbol_to_c_name_address \
27558
31991
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 
31992
nm_file_list_spec \
27559
31993
lt_prog_compiler_no_builtin_flag \
 
31994
lt_prog_compiler_pic \
27560
31995
lt_prog_compiler_wl \
27561
 
lt_prog_compiler_pic \
27562
31996
lt_prog_compiler_static \
27563
31997
lt_cv_prog_compiler_c_o \
27564
31998
need_locks \
 
31999
MANIFEST_TOOL \
27565
32000
DSYMUTIL \
27566
32001
NMEDIT \
27567
32002
LIPO \
27577
32012
hardcode_libdir_flag_spec \
27578
32013
hardcode_libdir_flag_spec_ld \
27579
32014
hardcode_libdir_separator \
27580
 
fix_srcfile_path \
27581
32015
exclude_expsyms \
27582
32016
include_expsyms \
27583
32017
file_list_spec \
27599
32033
reload_flag_CXX \
27600
32034
compiler_CXX \
27601
32035
lt_prog_compiler_no_builtin_flag_CXX \
 
32036
lt_prog_compiler_pic_CXX \
27602
32037
lt_prog_compiler_wl_CXX \
27603
 
lt_prog_compiler_pic_CXX \
27604
32038
lt_prog_compiler_static_CXX \
27605
32039
lt_cv_prog_compiler_c_o_CXX \
27606
32040
export_dynamic_flag_spec_CXX \
27612
32046
hardcode_libdir_flag_spec_CXX \
27613
32047
hardcode_libdir_flag_spec_ld_CXX \
27614
32048
hardcode_libdir_separator_CXX \
27615
 
fix_srcfile_path_CXX \
27616
32049
exclude_expsyms_CXX \
27617
32050
include_expsyms_CXX \
27618
32051
file_list_spec_CXX \
27646
32079
module_expsym_cmds \
27647
32080
export_symbols_cmds \
27648
32081
prelink_cmds \
 
32082
postlink_cmds \
27649
32083
postinstall_cmds \
27650
32084
postuninstall_cmds \
27651
32085
finish_cmds \
27660
32094
module_cmds_CXX \
27661
32095
module_expsym_cmds_CXX \
27662
32096
export_symbols_cmds_CXX \
27663
 
prelink_cmds_CXX; do
 
32097
prelink_cmds_CXX \
 
32098
postlink_cmds_CXX; do
27664
32099
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27665
32100
    *[\\\\\\\`\\"\\\$]*)
27666
32101
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
27723
32158
    "openpgp/Makefile") CONFIG_FILES="$CONFIG_FILES openpgp/Makefile" ;;
27724
32159
    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
27725
32160
    "x509/Makefile") CONFIG_FILES="$CONFIG_FILES x509/Makefile" ;;
 
32161
    "gcrypt/Makefile") CONFIG_FILES="$CONFIG_FILES gcrypt/Makefile" ;;
 
32162
    "nettle/Makefile") CONFIG_FILES="$CONFIG_FILES nettle/Makefile" ;;
27726
32163
 
27727
 
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
 
32164
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27728
32165
  esac
27729
32166
done
27730
32167
 
27747
32184
# after its creation but before its name has been assigned to `$tmp'.
27748
32185
$debug ||
27749
32186
{
27750
 
  tmp=
 
32187
  tmp= ac_tmp=
27751
32188
  trap 'exit_status=$?
27752
 
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
32189
  : "${ac_tmp:=$tmp}"
 
32190
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
27753
32191
' 0
27754
32192
  trap 'as_fn_exit 1' 1 2 13 15
27755
32193
}
27757
32195
 
27758
32196
{
27759
32197
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27760
 
  test -n "$tmp" && test -d "$tmp"
 
32198
  test -d "$tmp"
27761
32199
}  ||
27762
32200
{
27763
32201
  tmp=./conf$$-$RANDOM
27764
32202
  (umask 077 && mkdir "$tmp")
27765
32203
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
 
32204
ac_tmp=$tmp
27766
32205
 
27767
32206
# Set up the scripts for CONFIG_FILES section.
27768
32207
# No need to generate them if there are no CONFIG_FILES.
27784
32223
  ac_cs_awk_cr=$ac_cr
27785
32224
fi
27786
32225
 
27787
 
echo 'BEGIN {' >"$tmp/subs1.awk" &&
 
32226
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
27788
32227
_ACEOF
27789
32228
 
27790
32229
 
27812
32251
rm -f conf$$subs.sh
27813
32252
 
27814
32253
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27815
 
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
 
32254
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
27816
32255
_ACEOF
27817
32256
sed -n '
27818
32257
h
27860
32299
rm -f conf$$subs.awk
27861
32300
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27862
32301
_ACAWK
27863
 
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
 
32302
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
27864
32303
  for (key in S) S_is_set[key] = 1
27865
32304
  FS = ""
27866
32305
 
27892
32331
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27893
32332
else
27894
32333
  cat
27895
 
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
 
32334
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
27896
32335
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
27897
32336
_ACEOF
27898
32337
 
27926
32365
# No need to generate them if there are no CONFIG_HEADERS.
27927
32366
# This happens for instance with `./config.status Makefile'.
27928
32367
if test -n "$CONFIG_HEADERS"; then
27929
 
cat >"$tmp/defines.awk" <<\_ACAWK ||
 
32368
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
27930
32369
BEGIN {
27931
32370
_ACEOF
27932
32371
 
27938
32377
# handling of long lines.
27939
32378
ac_delim='%!_!# '
27940
32379
for ac_last_try in false false :; do
27941
 
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27942
 
  if test -z "$ac_t"; then
 
32380
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
 
32381
  if test -z "$ac_tt"; then
27943
32382
    break
27944
32383
  elif $ac_last_try; then
27945
32384
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
28040
32479
  esac
28041
32480
  case $ac_mode$ac_tag in
28042
32481
  :[FHL]*:*);;
28043
 
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
 
32482
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
28044
32483
  :[FH]-) ac_tag=-:-;;
28045
32484
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28046
32485
  esac
28059
32498
    for ac_f
28060
32499
    do
28061
32500
      case $ac_f in
28062
 
      -) ac_f="$tmp/stdin";;
 
32501
      -) ac_f="$ac_tmp/stdin";;
28063
32502
      *) # Look for the file first in the build tree, then in the source tree
28064
32503
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
28065
32504
         # because $ac_f cannot contain `:'.
28068
32507
           [\\/$]*) false;;
28069
32508
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28070
32509
           esac ||
28071
 
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
 
32510
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28072
32511
      esac
28073
32512
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28074
32513
      as_fn_append ac_file_inputs " '$ac_f'"
28094
32533
    esac
28095
32534
 
28096
32535
    case $ac_tag in
28097
 
    *:-:* | *:-) cat >"$tmp/stdin" \
28098
 
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
 
32536
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
 
32537
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
28099
32538
    esac
28100
32539
    ;;
28101
32540
  esac
28231
32670
s&@MKDIR_P@&$ac_MKDIR_P&;t t
28232
32671
$ac_datarootdir_hack
28233
32672
"
28234
 
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
28235
 
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
32673
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
 
32674
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28236
32675
 
28237
32676
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28238
 
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28239
 
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
32677
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
 
32678
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
 
32679
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
28240
32680
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28241
32681
which seems to be undefined.  Please make sure it is defined" >&5
28242
32682
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28243
32683
which seems to be undefined.  Please make sure it is defined" >&2;}
28244
32684
 
28245
 
  rm -f "$tmp/stdin"
 
32685
  rm -f "$ac_tmp/stdin"
28246
32686
  case $ac_file in
28247
 
  -) cat "$tmp/out" && rm -f "$tmp/out";;
28248
 
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
 
32687
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
 
32688
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
28249
32689
  esac \
28250
32690
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28251
32691
 ;;
28256
32696
  if test x"$ac_file" != x-; then
28257
32697
    {
28258
32698
      $as_echo "/* $configure_input  */" \
28259
 
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28260
 
    } >"$tmp/config.h" \
 
32699
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
 
32700
    } >"$ac_tmp/config.h" \
28261
32701
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28262
 
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
 
32702
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
28263
32703
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28264
32704
$as_echo "$as_me: $ac_file is unchanged" >&6;}
28265
32705
    else
28266
32706
      rm -f "$ac_file"
28267
 
      mv "$tmp/config.h" "$ac_file" \
 
32707
      mv "$ac_tmp/config.h" "$ac_file" \
28268
32708
        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28269
32709
    fi
28270
32710
  else
28271
32711
    $as_echo "/* $configure_input  */" \
28272
 
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
 
32712
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
28273
32713
      || as_fn_error $? "could not create -" "$LINENO" 5
28274
32714
  fi
28275
32715
# Compute "$ac_file"'s index in $config_headers.
28544
32984
# turn newlines into spaces.
28545
32985
NL2SP=$lt_lt_NL2SP
28546
32986
 
 
32987
# convert \$build file names to \$host format.
 
32988
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
32989
 
 
32990
# convert \$build files to toolchain format.
 
32991
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
32992
 
28547
32993
# Method to check whether dependent libraries are shared objects.
28548
32994
deplibs_check_method=$lt_deplibs_check_method
28549
32995
 
28550
 
# Command to use when deplibs_check_method == "file_magic".
 
32996
# Command to use when deplibs_check_method = "file_magic".
28551
32997
file_magic_cmd=$lt_file_magic_cmd
28552
32998
 
 
32999
# How to find potential files when deplibs_check_method = "file_magic".
 
33000
file_magic_glob=$lt_file_magic_glob
 
33001
 
 
33002
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
 
33003
want_nocaseglob=$lt_want_nocaseglob
 
33004
 
 
33005
# Command to associate shared and link libraries.
 
33006
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
 
33007
 
28553
33008
# The archiver.
28554
33009
AR=$lt_AR
 
33010
 
 
33011
# Flags to create an archive.
28555
33012
AR_FLAGS=$lt_AR_FLAGS
28556
33013
 
 
33014
# How to feed a file listing to the archiver.
 
33015
archiver_list_spec=$lt_archiver_list_spec
 
33016
 
28557
33017
# A symbol stripping program.
28558
33018
STRIP=$lt_STRIP
28559
33019
 
28583
33043
# Transform the output of nm in a C name address pair when lib prefix is needed.
28584
33044
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28585
33045
 
 
33046
# Specify filename containing input files for \$NM.
 
33047
nm_file_list_spec=$lt_nm_file_list_spec
 
33048
 
 
33049
# The root where to search for dependent libraries,and in which our libraries should be installed.
 
33050
lt_sysroot=$lt_sysroot
 
33051
 
28586
33052
# The name of the directory that contains temporary libtool files.
28587
33053
objdir=$objdir
28588
33054
 
28592
33058
# Must we lock files when doing compilation?
28593
33059
need_locks=$lt_need_locks
28594
33060
 
 
33061
# Manifest tool.
 
33062
MANIFEST_TOOL=$lt_MANIFEST_TOOL
 
33063
 
28595
33064
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28596
33065
DSYMUTIL=$lt_DSYMUTIL
28597
33066
 
28706
33175
# Compiler flag to turn off builtin functions.
28707
33176
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28708
33177
 
 
33178
# Additional compiler flags for building library objects.
 
33179
pic_flag=$lt_lt_prog_compiler_pic
 
33180
 
28709
33181
# How to pass a linker flag through the compiler.
28710
33182
wl=$lt_lt_prog_compiler_wl
28711
33183
 
28712
 
# Additional compiler flags for building library objects.
28713
 
pic_flag=$lt_lt_prog_compiler_pic
28714
 
 
28715
33184
# Compiler flag to prevent dynamic linking.
28716
33185
link_static_flag=$lt_lt_prog_compiler_static
28717
33186
 
28798
33267
# Whether libtool must link a program against all its dependency libraries.
28799
33268
link_all_deplibs=$link_all_deplibs
28800
33269
 
28801
 
# Fix the shell variable \$srcfile for the compiler.
28802
 
fix_srcfile_path=$lt_fix_srcfile_path
28803
 
 
28804
33270
# Set to "yes" if exported symbols are required.
28805
33271
always_export_symbols=$always_export_symbols
28806
33272
 
28816
33282
# Commands necessary for linking programs (against libraries) with templates.
28817
33283
prelink_cmds=$lt_prelink_cmds
28818
33284
 
 
33285
# Commands necessary for finishing linking programs.
 
33286
postlink_cmds=$lt_postlink_cmds
 
33287
 
28819
33288
# Specify filename containing input files.
28820
33289
file_list_spec=$lt_file_list_spec
28821
33290
 
28862
33331
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
28863
33332
  # text mode, it properly converts lines to CR/LF.  This bash problem
28864
33333
  # is reportedly fixed, but why not run on old versions too?
28865
 
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
28866
 
    || (rm -f "$cfgfile"; exit 1)
28867
 
 
28868
 
  case $xsi_shell in
28869
 
  yes)
28870
 
    cat << \_LT_EOF >> "$cfgfile"
28871
 
 
28872
 
# func_dirname file append nondir_replacement
28873
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
28874
 
# otherwise set result to NONDIR_REPLACEMENT.
28875
 
func_dirname ()
28876
 
{
28877
 
  case ${1} in
28878
 
    */*) func_dirname_result="${1%/*}${2}" ;;
28879
 
    *  ) func_dirname_result="${3}" ;;
28880
 
  esac
28881
 
}
28882
 
 
28883
 
# func_basename file
28884
 
func_basename ()
28885
 
{
28886
 
  func_basename_result="${1##*/}"
28887
 
}
28888
 
 
28889
 
# func_dirname_and_basename file append nondir_replacement
28890
 
# perform func_basename and func_dirname in a single function
28891
 
# call:
28892
 
#   dirname:  Compute the dirname of FILE.  If nonempty,
28893
 
#             add APPEND to the result, otherwise set result
28894
 
#             to NONDIR_REPLACEMENT.
28895
 
#             value returned in "$func_dirname_result"
28896
 
#   basename: Compute filename of FILE.
28897
 
#             value retuned in "$func_basename_result"
28898
 
# Implementation must be kept synchronized with func_dirname
28899
 
# and func_basename. For efficiency, we do not delegate to
28900
 
# those functions but instead duplicate the functionality here.
28901
 
func_dirname_and_basename ()
28902
 
{
28903
 
  case ${1} in
28904
 
    */*) func_dirname_result="${1%/*}${2}" ;;
28905
 
    *  ) func_dirname_result="${3}" ;;
28906
 
  esac
28907
 
  func_basename_result="${1##*/}"
28908
 
}
28909
 
 
28910
 
# func_stripname prefix suffix name
28911
 
# strip PREFIX and SUFFIX off of NAME.
28912
 
# PREFIX and SUFFIX must not contain globbing or regex special
28913
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
28914
 
# dot (in which case that matches only a dot).
28915
 
func_stripname ()
28916
 
{
28917
 
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
28918
 
  # positional parameters, so assign one to ordinary parameter first.
28919
 
  func_stripname_result=${3}
28920
 
  func_stripname_result=${func_stripname_result#"${1}"}
28921
 
  func_stripname_result=${func_stripname_result%"${2}"}
28922
 
}
28923
 
 
28924
 
# func_opt_split
28925
 
func_opt_split ()
28926
 
{
28927
 
  func_opt_split_opt=${1%%=*}
28928
 
  func_opt_split_arg=${1#*=}
28929
 
}
28930
 
 
28931
 
# func_lo2o object
28932
 
func_lo2o ()
28933
 
{
28934
 
  case ${1} in
28935
 
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
28936
 
    *)    func_lo2o_result=${1} ;;
28937
 
  esac
28938
 
}
28939
 
 
28940
 
# func_xform libobj-or-source
28941
 
func_xform ()
28942
 
{
28943
 
  func_xform_result=${1%.*}.lo
28944
 
}
28945
 
 
28946
 
# func_arith arithmetic-term...
28947
 
func_arith ()
28948
 
{
28949
 
  func_arith_result=$(( $* ))
28950
 
}
28951
 
 
28952
 
# func_len string
28953
 
# STRING may not start with a hyphen.
28954
 
func_len ()
28955
 
{
28956
 
  func_len_result=${#1}
28957
 
}
28958
 
 
28959
 
_LT_EOF
28960
 
    ;;
28961
 
  *) # Bourne compatible functions.
28962
 
    cat << \_LT_EOF >> "$cfgfile"
28963
 
 
28964
 
# func_dirname file append nondir_replacement
28965
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
28966
 
# otherwise set result to NONDIR_REPLACEMENT.
28967
 
func_dirname ()
28968
 
{
28969
 
  # Extract subdirectory from the argument.
28970
 
  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
28971
 
  if test "X$func_dirname_result" = "X${1}"; then
28972
 
    func_dirname_result="${3}"
28973
 
  else
28974
 
    func_dirname_result="$func_dirname_result${2}"
28975
 
  fi
28976
 
}
28977
 
 
28978
 
# func_basename file
28979
 
func_basename ()
28980
 
{
28981
 
  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
28982
 
}
28983
 
 
28984
 
 
28985
 
# func_stripname prefix suffix name
28986
 
# strip PREFIX and SUFFIX off of NAME.
28987
 
# PREFIX and SUFFIX must not contain globbing or regex special
28988
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
28989
 
# dot (in which case that matches only a dot).
28990
 
# func_strip_suffix prefix name
28991
 
func_stripname ()
28992
 
{
28993
 
  case ${2} in
28994
 
    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
28995
 
    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
28996
 
  esac
28997
 
}
28998
 
 
28999
 
# sed scripts:
29000
 
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
29001
 
my_sed_long_arg='1s/^-[^=]*=//'
29002
 
 
29003
 
# func_opt_split
29004
 
func_opt_split ()
29005
 
{
29006
 
  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
29007
 
  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
29008
 
}
29009
 
 
29010
 
# func_lo2o object
29011
 
func_lo2o ()
29012
 
{
29013
 
  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
29014
 
}
29015
 
 
29016
 
# func_xform libobj-or-source
29017
 
func_xform ()
29018
 
{
29019
 
  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
29020
 
}
29021
 
 
29022
 
# func_arith arithmetic-term...
29023
 
func_arith ()
29024
 
{
29025
 
  func_arith_result=`expr "$@"`
29026
 
}
29027
 
 
29028
 
# func_len string
29029
 
# STRING may not start with a hyphen.
29030
 
func_len ()
29031
 
{
29032
 
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
29033
 
}
29034
 
 
29035
 
_LT_EOF
29036
 
esac
29037
 
 
29038
 
case $lt_shell_append in
29039
 
  yes)
29040
 
    cat << \_LT_EOF >> "$cfgfile"
29041
 
 
29042
 
# func_append var value
29043
 
# Append VALUE to the end of shell variable VAR.
29044
 
func_append ()
29045
 
{
29046
 
  eval "$1+=\$2"
29047
 
}
29048
 
_LT_EOF
29049
 
    ;;
29050
 
  *)
29051
 
    cat << \_LT_EOF >> "$cfgfile"
29052
 
 
29053
 
# func_append var value
29054
 
# Append VALUE to the end of shell variable VAR.
29055
 
func_append ()
29056
 
{
29057
 
  eval "$1=\$$1\$2"
29058
 
}
29059
 
 
29060
 
_LT_EOF
29061
 
    ;;
29062
 
  esac
29063
 
 
29064
 
 
29065
 
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
29066
 
    || (rm -f "$cfgfile"; exit 1)
29067
 
 
29068
 
  mv -f "$cfgfile" "$ofile" ||
 
33334
  sed '$q' "$ltmain" >> "$cfgfile" \
 
33335
     || (rm -f "$cfgfile"; exit 1)
 
33336
 
 
33337
  if test x"$xsi_shell" = xyes; then
 
33338
  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
 
33339
func_dirname ()\
 
33340
{\
 
33341
\    case ${1} in\
 
33342
\      */*) func_dirname_result="${1%/*}${2}" ;;\
 
33343
\      *  ) func_dirname_result="${3}" ;;\
 
33344
\    esac\
 
33345
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
 
33346
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
33347
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
33348
test 0 -eq $? || _lt_function_replace_fail=:
 
33349
 
 
33350
 
 
33351
  sed -e '/^func_basename ()$/,/^} # func_basename /c\
 
33352
func_basename ()\
 
33353
{\
 
33354
\    func_basename_result="${1##*/}"\
 
33355
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
 
33356
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
33357
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
33358
test 0 -eq $? || _lt_function_replace_fail=:
 
33359
 
 
33360
 
 
33361
  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
 
33362
func_dirname_and_basename ()\
 
33363
{\
 
33364
\    case ${1} in\
 
33365
\      */*) func_dirname_result="${1%/*}${2}" ;;\
 
33366
\      *  ) func_dirname_result="${3}" ;;\
 
33367
\    esac\
 
33368
\    func_basename_result="${1##*/}"\
 
33369
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
 
33370
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
33371
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
33372
test 0 -eq $? || _lt_function_replace_fail=:
 
33373
 
 
33374
 
 
33375
  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
 
33376
func_stripname ()\
 
33377
{\
 
33378
\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
 
33379
\    # positional parameters, so assign one to ordinary parameter first.\
 
33380
\    func_stripname_result=${3}\
 
33381
\    func_stripname_result=${func_stripname_result#"${1}"}\
 
33382
\    func_stripname_result=${func_stripname_result%"${2}"}\
 
33383
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
 
33384
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
33385
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
33386
test 0 -eq $? || _lt_function_replace_fail=:
 
33387
 
 
33388
 
 
33389
  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
 
33390
func_split_long_opt ()\
 
33391
{\
 
33392
\    func_split_long_opt_name=${1%%=*}\
 
33393
\    func_split_long_opt_arg=${1#*=}\
 
33394
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
 
33395
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
33396
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
33397
test 0 -eq $? || _lt_function_replace_fail=:
 
33398
 
 
33399
 
 
33400
  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
 
33401
func_split_short_opt ()\
 
33402
{\
 
33403
\    func_split_short_opt_arg=${1#??}\
 
33404
\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
 
33405
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
 
33406
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
33407
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
33408
test 0 -eq $? || _lt_function_replace_fail=:
 
33409
 
 
33410
 
 
33411
  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
 
33412
func_lo2o ()\
 
33413
{\
 
33414
\    case ${1} in\
 
33415
\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
 
33416
\      *)    func_lo2o_result=${1} ;;\
 
33417
\    esac\
 
33418
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
 
33419
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
33420
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
33421
test 0 -eq $? || _lt_function_replace_fail=:
 
33422
 
 
33423
 
 
33424
  sed -e '/^func_xform ()$/,/^} # func_xform /c\
 
33425
func_xform ()\
 
33426
{\
 
33427
    func_xform_result=${1%.*}.lo\
 
33428
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
 
33429
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
33430
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
33431
test 0 -eq $? || _lt_function_replace_fail=:
 
33432
 
 
33433
 
 
33434
  sed -e '/^func_arith ()$/,/^} # func_arith /c\
 
33435
func_arith ()\
 
33436
{\
 
33437
    func_arith_result=$(( $* ))\
 
33438
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
 
33439
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
33440
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
33441
test 0 -eq $? || _lt_function_replace_fail=:
 
33442
 
 
33443
 
 
33444
  sed -e '/^func_len ()$/,/^} # func_len /c\
 
33445
func_len ()\
 
33446
{\
 
33447
    func_len_result=${#1}\
 
33448
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
 
33449
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
33450
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
33451
test 0 -eq $? || _lt_function_replace_fail=:
 
33452
 
 
33453
fi
 
33454
 
 
33455
if test x"$lt_shell_append" = xyes; then
 
33456
  sed -e '/^func_append ()$/,/^} # func_append /c\
 
33457
func_append ()\
 
33458
{\
 
33459
    eval "${1}+=\\${2}"\
 
33460
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
 
33461
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
33462
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
33463
test 0 -eq $? || _lt_function_replace_fail=:
 
33464
 
 
33465
 
 
33466
  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
 
33467
func_append_quoted ()\
 
33468
{\
 
33469
\    func_quote_for_eval "${2}"\
 
33470
\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
 
33471
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
 
33472
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
33473
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
33474
test 0 -eq $? || _lt_function_replace_fail=:
 
33475
 
 
33476
 
 
33477
  # Save a `func_append' function call where possible by direct use of '+='
 
33478
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
 
33479
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
33480
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
33481
  test 0 -eq $? || _lt_function_replace_fail=:
 
33482
else
 
33483
  # Save a `func_append' function call even when '+=' is not available
 
33484
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
 
33485
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
33486
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
33487
  test 0 -eq $? || _lt_function_replace_fail=:
 
33488
fi
 
33489
 
 
33490
if test x"$_lt_function_replace_fail" = x":"; then
 
33491
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
 
33492
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
 
33493
fi
 
33494
 
 
33495
 
 
33496
   mv -f "$cfgfile" "$ofile" ||
29069
33497
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
29070
33498
  chmod +x "$ofile"
29071
33499
 
29093
33521
# Compiler flag to turn off builtin functions.
29094
33522
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
29095
33523
 
 
33524
# Additional compiler flags for building library objects.
 
33525
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
33526
 
29096
33527
# How to pass a linker flag through the compiler.
29097
33528
wl=$lt_lt_prog_compiler_wl_CXX
29098
33529
 
29099
 
# Additional compiler flags for building library objects.
29100
 
pic_flag=$lt_lt_prog_compiler_pic_CXX
29101
 
 
29102
33530
# Compiler flag to prevent dynamic linking.
29103
33531
link_static_flag=$lt_lt_prog_compiler_static_CXX
29104
33532
 
29185
33613
# Whether libtool must link a program against all its dependency libraries.
29186
33614
link_all_deplibs=$link_all_deplibs_CXX
29187
33615
 
29188
 
# Fix the shell variable \$srcfile for the compiler.
29189
 
fix_srcfile_path=$lt_fix_srcfile_path_CXX
29190
 
 
29191
33616
# Set to "yes" if exported symbols are required.
29192
33617
always_export_symbols=$always_export_symbols_CXX
29193
33618
 
29203
33628
# Commands necessary for linking programs (against libraries) with templates.
29204
33629
prelink_cmds=$lt_prelink_cmds_CXX
29205
33630
 
 
33631
# Commands necessary for finishing linking programs.
 
33632
postlink_cmds=$lt_postlink_cmds_CXX
 
33633
 
29206
33634
# Specify filename containing input files.
29207
33635
file_list_spec=$lt_file_list_spec_CXX
29208
33636