libarchive-clib 3.8.7 → 3.8.8
raw patch · 92 files changed
+25823/−24777 lines, 92 files
Files
- build/autoconf/libtool.m4 +1/−1
- c/archive.h +5/−4
- c/archive_acl.c +157/−285
- c/archive_cmdline.c +7/−21
- c/archive_crc32.h +54/−17
- c/archive_cryptor.c +2/−2
- c/archive_cryptor_private.h +1/−11
- c/archive_digest.c +2/−67
- c/archive_digest_private.h +1/−11
- c/archive_endian.h +41/−0
- c/archive_entry.c +2/−2
- c/archive_entry.h +1/−1
- c/archive_entry_link_resolver.c +8/−5
- c/archive_entry_sparse.c +3/−2
- c/archive_entry_strmode.c +14/−31
- c/archive_hmac.c +1/−1
- c/archive_hmac_private.h +1/−1
- c/archive_integer.h +247/−0
- c/archive_match.c +34/−11
- c/archive_options.c +9/−9
- c/archive_pack_dev.c +1/−1
- c/archive_parse_date.c +50/−22
- c/archive_pathmatch.c +35/−17
- c/archive_random.c +0/−26
- c/archive_read.c +58/−28
- c/archive_read_append_filter.c +14/−14
- c/archive_read_data_into_fd.c +32/−14
- c/archive_read_disk_entry_from_file.c +6/−1
- c/archive_read_disk_posix.c +9/−8
- c/archive_read_disk_windows.c +15/−8
- c/archive_read_open_filename.c +5/−2
- c/archive_read_support_filter_all.c +7/−7
- c/archive_read_support_filter_bzip2.c +16/−15
- c/archive_read_support_filter_compress.c +19/−13
- c/archive_read_support_filter_grzip.c +2/−3
- c/archive_read_support_filter_gzip.c +19/−15
- c/archive_read_support_filter_lrzip.c +3/−3
- c/archive_read_support_filter_lz4.c +81/−46
- c/archive_read_support_filter_lzop.c +3/−8
- c/archive_read_support_filter_rpm.c +86/−128
- c/archive_read_support_filter_uu.c +16/−11
- c/archive_read_support_filter_xz.c +6/−12
- c/archive_read_support_filter_zstd.c +59/−37
- c/archive_read_support_format_7zip.c +339/−280
- c/archive_read_support_format_ar.c +8/−11
- c/archive_read_support_format_cab.c +50/−35
- c/archive_read_support_format_cpio.c +83/−49
- c/archive_read_support_format_iso9660.c +37/−38
- c/archive_read_support_format_lha.c +81/−31
- c/archive_read_support_format_mtree.c +17/−18
- c/archive_read_support_format_rar.c +62/−53
- c/archive_read_support_format_rar5.c +141/−78
- c/archive_read_support_format_tar.c +186/−95
- c/archive_read_support_format_xar.c +153/−83
- c/archive_read_support_format_zip.c +296/−81
- c/archive_string.c +12/−2
- c/archive_time.c +16/−11
- c/archive_util.c +25/−43
- c/archive_version_details.c +2/−25
- c/archive_windows.c +6/−23
- c/archive_windows.h +20/−13
- c/archive_write.c +1/−1
- c/archive_write_add_filter.c +1/−1
- c/archive_write_add_filter_b64encode.c +3/−3
- c/archive_write_add_filter_bzip2.c +0/−4
- c/archive_write_add_filter_gzip.c +10/−18
- c/archive_write_add_filter_lz4.c +7/−9
- c/archive_write_add_filter_program.c +4/−0
- c/archive_write_add_filter_uuencode.c +3/−3
- c/archive_write_add_filter_zstd.c +0/−2
- c/archive_write_disk_posix.c +19/−16
- c/archive_write_disk_windows.c +23/−80
- c/archive_write_set_format_7zip.c +5/−4
- c/archive_write_set_format_ar.c +1/−1
- c/archive_write_set_format_cpio_binary.c +10/−4
- c/archive_write_set_format_cpio_newc.c +9/−4
- c/archive_write_set_format_cpio_odc.c +9/−4
- c/archive_write_set_format_gnutar.c +2/−1
- c/archive_write_set_format_iso9660.c +86/−29
- c/archive_write_set_format_mtree.c +42/−28
- c/archive_write_set_format_pax.c +8/−6
- c/archive_write_set_format_shar.c +7/−2
- c/archive_write_set_format_ustar.c +2/−1
- c/archive_write_set_format_v7tar.c +2/−1
- c/archive_write_set_format_warc.c +2/−1
- c/archive_write_set_format_xar.c +52/−30
- c/archive_write_set_format_zip.c +15/−1
- c/config.h.in +4/−0
- c/filter_fork_windows.c +46/−21
- c/xxhash.c +2/−0
- configure +22776/−22609
- libarchive-clib.cabal +5/−3
build/autoconf/libtool.m4 view
@@ -4825,7 +4825,7 @@ _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; - linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)+ linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | *freebsd*) case $cc_basename in # old Intel for x86_64, which still supported -KPIC. ecc*)
c/archive.h view
@@ -34,7 +34,7 @@ * assert that ARCHIVE_VERSION_NUMBER >= 2012108. */ /* Note: Compiler will complain if this does not match archive_entry.h! */-#define ARCHIVE_VERSION_NUMBER 3008007+#define ARCHIVE_VERSION_NUMBER 3008008 #include <sys/stat.h> #include <stddef.h> /* for wchar_t */@@ -177,7 +177,7 @@ /* * Textual name/version of the library, useful for version displays. */-#define ARCHIVE_VERSION_ONLY_STRING "3.8.7"+#define ARCHIVE_VERSION_ONLY_STRING "3.8.8" #define ARCHIVE_VERSION_STRING "libarchive " ARCHIVE_VERSION_ONLY_STRING __LA_DECL const char * archive_version_string(void); @@ -210,7 +210,9 @@ __LA_DECL const char * archive_libmd_version(void); __LA_DECL const char * archive_commoncrypto_version(void); __LA_DECL const char * archive_cng_version(void);+#if ARCHIVE_VERSION_NUMBER < 4000000 __LA_DECL const char * archive_wincrypt_version(void);+#endif __LA_DECL const char * archive_librichacl_version(void); __LA_DECL const char * archive_libacl_version(void); __LA_DECL const char * archive_libattr_version(void);@@ -653,7 +655,6 @@ /*- * Some convenience functions that are built on archive_read_data: * 'skip': skips entire entry- * 'into_buffer': writes data into memory buffer that you provide * 'into_fd': writes data to specified filedes */ __LA_DECL int archive_read_data_skip(struct archive *);@@ -1234,7 +1235,7 @@ int _flag, struct archive_entry *); /*- * Test if a file is excluded by its uid ,gid, uname or gname.+ * Test if a file is excluded by its uid, gid, uname or gname. * The conditions are set by following functions. */ __LA_DECL int archive_match_owner_excluded(struct archive *,
c/archive_acl.c view
@@ -56,9 +56,7 @@ int type, int permset, int tag, int id, const char *name, size_t len, struct archive_string_conv *sc); static int archive_acl_text_want_type(struct archive_acl *acl, int flags);-static size_t archive_acl_text_len(struct archive_acl *acl, int want_type,- int flags, int wide, struct archive *a,- struct archive_string_conv *sc);+static size_t archive_acl_text_empty(struct archive_acl *acl, int want_type); static int isint_w(const wchar_t *start, const wchar_t *end, int *result); static int ismode_w(const wchar_t *start, const wchar_t *end, int *result); static int is_nfs4_flags_w(const wchar_t *start, const wchar_t *end,@@ -67,9 +65,9 @@ int *result); static void next_field_w(const wchar_t **wp, const wchar_t **start, const wchar_t **end, wchar_t *sep);-static void append_entry_w(wchar_t **wp, const wchar_t *prefix, int type,+static void append_entry_w(struct archive_wstring *ws, const wchar_t *prefix, int type, int tag, int flags, const wchar_t *wname, int perm, int id);-static void append_id_w(wchar_t **wp, int id);+static void append_id_w(struct archive_wstring *ws, int id); static int isint(const char *start, const char *end, int *result); static int ismode(const char *start, const char *end, int *result); static int is_nfs4_flags(const char *start, const char *end,@@ -78,9 +76,9 @@ int *result); static void next_field(const char **p, size_t *l, const char **start, const char **end, char *sep);-static void append_entry(char **p, const char *prefix, int type,+static void append_entry(struct archive_string *s, const char *prefix, int type, int tag, int flags, const char *name, int perm, int id);-static void append_id(char **p, int id);+static void append_id(struct archive_string *s, int id); static const struct { const int perm;@@ -539,20 +537,12 @@ } /*- * Calculate ACL text string length+ * Check if ACL text would be empty */ static size_t-archive_acl_text_len(struct archive_acl *acl, int want_type, int flags,- int wide, struct archive *a, struct archive_string_conv *sc) {+archive_acl_text_empty(struct archive_acl *acl, int want_type) { struct archive_acl_entry *ap;- const char *name;- const wchar_t *wname;- int count, idlen, tmp, r;- size_t length;- size_t len; - count = 0;- length = 0; for (ap = acl->acl_head; ap != NULL; ap = ap->next) { if ((ap->type & want_type) == 0) continue;@@ -565,107 +555,11 @@ || ap->tag == ARCHIVE_ENTRY_ACL_GROUP_OBJ || ap->tag == ARCHIVE_ENTRY_ACL_OTHER)) continue;- count++;- if ((want_type & ARCHIVE_ENTRY_ACL_TYPE_DEFAULT) != 0- && (ap->type & ARCHIVE_ENTRY_ACL_TYPE_DEFAULT) != 0)- length += 8; /* "default:" */- switch (ap->tag) {- case ARCHIVE_ENTRY_ACL_USER_OBJ:- if (want_type == ARCHIVE_ENTRY_ACL_TYPE_NFS4) {- length += 6; /* "owner@" */- break;- }- /* FALLTHROUGH */- case ARCHIVE_ENTRY_ACL_USER:- case ARCHIVE_ENTRY_ACL_MASK:- length += 4; /* "user", "mask" */- break;- case ARCHIVE_ENTRY_ACL_GROUP_OBJ:- if (want_type == ARCHIVE_ENTRY_ACL_TYPE_NFS4) {- length += 6; /* "group@" */- break;- }- /* FALLTHROUGH */- case ARCHIVE_ENTRY_ACL_GROUP:- case ARCHIVE_ENTRY_ACL_OTHER:- length += 5; /* "group", "other" */- break;- case ARCHIVE_ENTRY_ACL_EVERYONE:- length += 9; /* "everyone@" */- break;- }- length += 1; /* colon after tag */- if (ap->tag == ARCHIVE_ENTRY_ACL_USER ||- ap->tag == ARCHIVE_ENTRY_ACL_GROUP) {- if (wide) {- r = archive_mstring_get_wcs(a, &ap->name,- &wname);- if (r == 0 && wname != NULL)- length += wcslen(wname);- else if (r < 0 && errno == ENOMEM)- return (0);- else- length += sizeof(uid_t) * 3 + 1;- } else {- r = archive_mstring_get_mbs_l(a, &ap->name, &name,- &len, sc);- if (r != 0)- return (0);- if (len > 0 && name != NULL)- length += len;- else- length += sizeof(uid_t) * 3 + 1;- }- length += 1; /* colon after user or group name */- } else if (want_type != ARCHIVE_ENTRY_ACL_TYPE_NFS4)- length += 1; /* 2nd colon empty user,group or other */ - if (((flags & ARCHIVE_ENTRY_ACL_STYLE_SOLARIS) != 0)- && ((want_type & ARCHIVE_ENTRY_ACL_TYPE_POSIX1E) != 0)- && (ap->tag == ARCHIVE_ENTRY_ACL_OTHER- || ap->tag == ARCHIVE_ENTRY_ACL_MASK)) {- /* Solaris has no colon after other: and mask: */- length = length - 1;- }-- if (want_type == ARCHIVE_ENTRY_ACL_TYPE_NFS4) {- /* rwxpdDaARWcCos:fdinSFI:deny */- length += 27;- if ((ap->type & ARCHIVE_ENTRY_ACL_TYPE_DENY) == 0)- length += 1; /* allow, alarm, audit */- } else- length += 3; /* rwx */-- if ((ap->tag == ARCHIVE_ENTRY_ACL_USER ||- ap->tag == ARCHIVE_ENTRY_ACL_GROUP) &&- (flags & ARCHIVE_ENTRY_ACL_STYLE_EXTRA_ID) != 0) {- length += 1; /* colon */- /* ID digit count */- idlen = 1;- tmp = ap->id;- while (tmp > 9) {- tmp = tmp / 10;- idlen++;- }- length += idlen;- }- length ++; /* entry separator */- }-- /* Add filemode-mapping access entries to the length */- if ((want_type & ARCHIVE_ENTRY_ACL_TYPE_ACCESS) != 0) {- if ((flags & ARCHIVE_ENTRY_ACL_STYLE_SOLARIS) != 0) {- /* "user::rwx\ngroup::rwx\nother:rwx\n" */- length += 31;- } else {- /* "user::rwx\ngroup::rwx\nother::rwx\n" */- length += 32;- }- } else if (count == 0) return (0);+ } - /* The terminating character is included in count */- return (length);+ return (1); } /*@@ -676,15 +570,12 @@ archive_acl_to_text_w(struct archive_acl *acl, ssize_t *text_len, int flags, struct archive *a) {- int count;- size_t length;- size_t len; const wchar_t *wname; const wchar_t *prefix; wchar_t separator; struct archive_acl_entry *ap;+ struct archive_wstring ws; int id, r, want_type;- wchar_t *wp, *ws; want_type = archive_acl_text_want_type(acl, flags); @@ -695,9 +586,7 @@ if (want_type == ARCHIVE_ENTRY_ACL_TYPE_POSIX1E) flags |= ARCHIVE_ENTRY_ACL_STYLE_MARK_DEFAULT; - length = archive_acl_text_len(acl, want_type, flags, 1, a, NULL);-- if (length == 0)+ if (archive_acl_text_empty(acl, want_type)) return (NULL); if (flags & ARCHIVE_ENTRY_ACL_STYLE_SEPARATOR_COMMA)@@ -705,28 +594,20 @@ else separator = L'\n'; - /* Now, allocate the string and actually populate it. */- wp = ws = malloc(length * sizeof(*wp));- if (wp == NULL) {- if (errno == ENOMEM)- __archive_errx(1, "No memory");- return (NULL);- }- count = 0;+ archive_string_init(&ws); if ((want_type & ARCHIVE_ENTRY_ACL_TYPE_ACCESS) != 0) {- append_entry_w(&wp, NULL, ARCHIVE_ENTRY_ACL_TYPE_ACCESS,+ append_entry_w(&ws, NULL, ARCHIVE_ENTRY_ACL_TYPE_ACCESS, ARCHIVE_ENTRY_ACL_USER_OBJ, flags, NULL, acl->mode & 0700, -1);- *wp++ = separator;- append_entry_w(&wp, NULL, ARCHIVE_ENTRY_ACL_TYPE_ACCESS,+ archive_wstrappend_wchar(&ws, separator);+ append_entry_w(&ws, NULL, ARCHIVE_ENTRY_ACL_TYPE_ACCESS, ARCHIVE_ENTRY_ACL_GROUP_OBJ, flags, NULL, acl->mode & 0070, -1);- *wp++ = separator;- append_entry_w(&wp, NULL, ARCHIVE_ENTRY_ACL_TYPE_ACCESS,+ archive_wstrappend_wchar(&ws, separator);+ append_entry_w(&ws, NULL, ARCHIVE_ENTRY_ACL_TYPE_ACCESS, ARCHIVE_ENTRY_ACL_OTHER, flags, NULL, acl->mode & 0007, -1);- count += 3; } for (ap = acl->acl_head; ap != NULL; ap = ap->next) {@@ -748,108 +629,95 @@ prefix = NULL; r = archive_mstring_get_wcs(a, &ap->name, &wname); if (r == 0) {- if (count > 0)- *wp++ = separator;- if (flags & ARCHIVE_ENTRY_ACL_STYLE_EXTRA_ID)+ if (ws.length > 0)+ archive_wstrappend_wchar(&ws, separator);+ if ((flags & ARCHIVE_ENTRY_ACL_STYLE_EXTRA_ID) ||+ wname == NULL) id = ap->id; else id = -1;- append_entry_w(&wp, prefix, ap->type, ap->tag, flags,+ append_entry_w(&ws, prefix, ap->type, ap->tag, flags, wname, ap->permset, id);- count++; } else if (r < 0 && errno == ENOMEM) {- free(ws);+ archive_wstring_free(&ws); return (NULL); } } - /* Add terminating character */- *wp++ = L'\0';-- len = wcslen(ws);-- if (len > length - 1)- __archive_errx(1, "Buffer overrun");- if (text_len != NULL)- *text_len = len;+ *text_len = ws.length; - return (ws);+ return (ws.s); } static void-append_id_w(wchar_t **wp, int id)+append_id_w(struct archive_wstring *ws, int id) { if (id < 0) id = 0; if (id > 9)- append_id_w(wp, id / 10);- *(*wp)++ = L"0123456789"[id % 10];+ append_id_w(ws, id / 10);+ archive_wstrappend_wchar(ws, L"0123456789"[id % 10]); } static void-append_entry_w(wchar_t **wp, const wchar_t *prefix, int type,+append_entry_w(struct archive_wstring *ws, const wchar_t *prefix, int type, int tag, int flags, const wchar_t *wname, int perm, int id) { int i; - if (prefix != NULL) {- wcscpy(*wp, prefix);- *wp += wcslen(*wp);- }+ if (prefix != NULL)+ archive_wstrcat(ws, prefix); switch (tag) { case ARCHIVE_ENTRY_ACL_USER_OBJ: wname = NULL; id = -1; if ((type & ARCHIVE_ENTRY_ACL_TYPE_NFS4) != 0) {- wcscpy(*wp, L"owner@");+ archive_wstrcat(ws, L"owner@"); break; } /* FALLTHROUGH */ case ARCHIVE_ENTRY_ACL_USER:- wcscpy(*wp, L"user");+ archive_wstrcat(ws, L"user"); break; case ARCHIVE_ENTRY_ACL_GROUP_OBJ: wname = NULL; id = -1; if ((type & ARCHIVE_ENTRY_ACL_TYPE_NFS4) != 0) {- wcscpy(*wp, L"group@");+ archive_wstrcat(ws, L"group@"); break; } /* FALLTHROUGH */ case ARCHIVE_ENTRY_ACL_GROUP:- wcscpy(*wp, L"group");+ archive_wstrcat(ws, L"group"); break; case ARCHIVE_ENTRY_ACL_MASK:- wcscpy(*wp, L"mask");+ archive_wstrcat(ws, L"mask"); wname = NULL; id = -1; break; case ARCHIVE_ENTRY_ACL_OTHER:- wcscpy(*wp, L"other");+ archive_wstrcat(ws, L"other"); wname = NULL; id = -1; break; case ARCHIVE_ENTRY_ACL_EVERYONE:- wcscpy(*wp, L"everyone@");+ archive_wstrcat(ws, L"everyone@"); wname = NULL; id = -1; break; default:- **wp = '\0'; break; }- *wp += wcslen(*wp);- *(*wp)++ = L':';+ archive_wstrappend_wchar(ws, L':'); if (((type & ARCHIVE_ENTRY_ACL_TYPE_POSIX1E) != 0) || tag == ARCHIVE_ENTRY_ACL_USER || tag == ARCHIVE_ENTRY_ACL_GROUP) { if (wname != NULL) {- wcscpy(*wp, wname);- *wp += wcslen(*wp);+ archive_wstrcat(ws, wname); } else if (tag == ARCHIVE_ENTRY_ACL_USER || tag == ARCHIVE_ENTRY_ACL_GROUP) {- append_id_w(wp, id);+ append_id_w(ws, id); if ((type & ARCHIVE_ENTRY_ACL_TYPE_NFS4) == 0) id = -1; }@@ -857,51 +725,49 @@ if (((flags & ARCHIVE_ENTRY_ACL_STYLE_SOLARIS) == 0) || (tag != ARCHIVE_ENTRY_ACL_OTHER && tag != ARCHIVE_ENTRY_ACL_MASK))- *(*wp)++ = L':';+ archive_wstrappend_wchar(ws, L':'); } if ((type & ARCHIVE_ENTRY_ACL_TYPE_POSIX1E) != 0) { /* POSIX.1e ACL perms */- *(*wp)++ = (perm & 0444) ? L'r' : L'-';- *(*wp)++ = (perm & 0222) ? L'w' : L'-';- *(*wp)++ = (perm & 0111) ? L'x' : L'-';+ archive_wstrappend_wchar(ws, (perm & 0444) ? L'r' : L'-');+ archive_wstrappend_wchar(ws, (perm & 0222) ? L'w' : L'-');+ archive_wstrappend_wchar(ws, (perm & 0111) ? L'x' : L'-'); } else { /* NFSv4 ACL perms */ for (i = 0; i < nfsv4_acl_perm_map_size; i++) { if (perm & nfsv4_acl_perm_map[i].perm)- *(*wp)++ = nfsv4_acl_perm_map[i].wc;+ archive_wstrappend_wchar(ws, nfsv4_acl_perm_map[i].wc); else if ((flags & ARCHIVE_ENTRY_ACL_STYLE_COMPACT) == 0)- *(*wp)++ = L'-';+ archive_wstrappend_wchar(ws, L'-'); }- *(*wp)++ = L':';+ archive_wstrappend_wchar(ws, L':'); for (i = 0; i < nfsv4_acl_flag_map_size; i++) { if (perm & nfsv4_acl_flag_map[i].perm)- *(*wp)++ = nfsv4_acl_flag_map[i].wc;+ archive_wstrappend_wchar(ws, nfsv4_acl_flag_map[i].wc); else if ((flags & ARCHIVE_ENTRY_ACL_STYLE_COMPACT) == 0)- *(*wp)++ = L'-';+ archive_wstrappend_wchar(ws, L'-'); }- *(*wp)++ = L':';+ archive_wstrappend_wchar(ws, L':'); switch (type) { case ARCHIVE_ENTRY_ACL_TYPE_ALLOW:- wcscpy(*wp, L"allow");+ archive_wstrcat(ws, L"allow"); break; case ARCHIVE_ENTRY_ACL_TYPE_DENY:- wcscpy(*wp, L"deny");+ archive_wstrcat(ws, L"deny"); break; case ARCHIVE_ENTRY_ACL_TYPE_AUDIT:- wcscpy(*wp, L"audit");+ archive_wstrcat(ws, L"audit"); break; case ARCHIVE_ENTRY_ACL_TYPE_ALARM:- wcscpy(*wp, L"alarm");+ archive_wstrcat(ws, L"alarm"); break; default:- *(*wp) = L'\0'; break; }- *wp += wcslen(*wp); } if (id != -1) {- *(*wp)++ = L':';- append_id_w(wp, id);+ archive_wstrappend_wchar(ws, L':');+ append_id_w(ws, id); } } @@ -913,15 +779,13 @@ archive_acl_to_text_l(struct archive_acl *acl, ssize_t *text_len, int flags, struct archive_string_conv *sc) {- int count;- size_t length; size_t len; const char *name; const char *prefix; char separator; struct archive_acl_entry *ap;+ struct archive_string s; int id, r, want_type;- char *p, *s; want_type = archive_acl_text_want_type(acl, flags); @@ -932,9 +796,7 @@ if (want_type == ARCHIVE_ENTRY_ACL_TYPE_POSIX1E) flags |= ARCHIVE_ENTRY_ACL_STYLE_MARK_DEFAULT; - length = archive_acl_text_len(acl, want_type, flags, 0, NULL, sc);-- if (length == 0)+ if (archive_acl_text_empty(acl, want_type)) return (NULL); if (flags & ARCHIVE_ENTRY_ACL_STYLE_SEPARATOR_COMMA)@@ -942,28 +804,20 @@ else separator = '\n'; - /* Now, allocate the string and actually populate it. */- p = s = malloc(length * sizeof(*p));- if (p == NULL) {- if (errno == ENOMEM)- __archive_errx(1, "No memory");- return (NULL);- }- count = 0;+ archive_string_init(&s); if ((want_type & ARCHIVE_ENTRY_ACL_TYPE_ACCESS) != 0) {- append_entry(&p, NULL, ARCHIVE_ENTRY_ACL_TYPE_ACCESS,+ append_entry(&s, NULL, ARCHIVE_ENTRY_ACL_TYPE_ACCESS, ARCHIVE_ENTRY_ACL_USER_OBJ, flags, NULL, acl->mode & 0700, -1);- *p++ = separator;- append_entry(&p, NULL, ARCHIVE_ENTRY_ACL_TYPE_ACCESS,+ archive_strappend_char(&s, separator);+ append_entry(&s, NULL, ARCHIVE_ENTRY_ACL_TYPE_ACCESS, ARCHIVE_ENTRY_ACL_GROUP_OBJ, flags, NULL, acl->mode & 0070, -1);- *p++ = separator;- append_entry(&p, NULL, ARCHIVE_ENTRY_ACL_TYPE_ACCESS,+ archive_strappend_char(&s, separator);+ append_entry(&s, NULL, ARCHIVE_ENTRY_ACL_TYPE_ACCESS, ARCHIVE_ENTRY_ACL_OTHER, flags, NULL, acl->mode & 0007, -1);- count += 3; } for (ap = acl->acl_head; ap != NULL; ap = ap->next) {@@ -986,109 +840,95 @@ r = archive_mstring_get_mbs_l( NULL, &ap->name, &name, &len, sc); if (r != 0) {- free(s);+ archive_string_free(&s); return (NULL); }- if (count > 0)- *p++ = separator;+ if (s.length > 0)+ archive_strappend_char(&s, separator); if (name == NULL || (flags & ARCHIVE_ENTRY_ACL_STYLE_EXTRA_ID)) { id = ap->id; } else { id = -1; }- append_entry(&p, prefix, ap->type, ap->tag, flags, name,+ append_entry(&s, prefix, ap->type, ap->tag, flags, name, ap->permset, id);- count++; } - /* Add terminating character */- *p++ = '\0';-- len = strlen(s);-- if (len > length - 1)- __archive_errx(1, "Buffer overrun");- if (text_len != NULL)- *text_len = len;+ *text_len = s.length; - return (s);+ return (s.s); } static void-append_id(char **p, int id)+append_id(struct archive_string *s, int id) { if (id < 0) id = 0; if (id > 9)- append_id(p, id / 10);- *(*p)++ = "0123456789"[id % 10];+ append_id(s, id / 10);+ archive_strappend_char(s, "0123456789"[id % 10]); } static void-append_entry(char **p, const char *prefix, int type,+append_entry(struct archive_string *s, const char *prefix, int type, int tag, int flags, const char *name, int perm, int id) { int i; - if (prefix != NULL) {- strcpy(*p, prefix);- *p += strlen(*p);- }+ if (prefix != NULL)+ archive_strcat(s, prefix); switch (tag) { case ARCHIVE_ENTRY_ACL_USER_OBJ: name = NULL; id = -1; if ((type & ARCHIVE_ENTRY_ACL_TYPE_NFS4) != 0) {- strcpy(*p, "owner@");+ archive_strcat(s, "owner@"); break; } /* FALLTHROUGH */ case ARCHIVE_ENTRY_ACL_USER:- strcpy(*p, "user");+ archive_strcat(s, "user"); break; case ARCHIVE_ENTRY_ACL_GROUP_OBJ: name = NULL; id = -1; if ((type & ARCHIVE_ENTRY_ACL_TYPE_NFS4) != 0) {- strcpy(*p, "group@");+ archive_strcat(s, "group@"); break; } /* FALLTHROUGH */ case ARCHIVE_ENTRY_ACL_GROUP:- strcpy(*p, "group");+ archive_strcat(s, "group"); break; case ARCHIVE_ENTRY_ACL_MASK:- strcpy(*p, "mask");+ archive_strcat(s, "mask"); name = NULL; id = -1; break; case ARCHIVE_ENTRY_ACL_OTHER:- strcpy(*p, "other");+ archive_strcat(s, "other"); name = NULL; id = -1; break; case ARCHIVE_ENTRY_ACL_EVERYONE:- strcpy(*p, "everyone@");+ archive_strcat(s, "everyone@"); name = NULL; id = -1; break; default:- **p = '\0'; break; }- *p += strlen(*p);- *(*p)++ = ':';+ archive_strappend_char(s, ':'); if (((type & ARCHIVE_ENTRY_ACL_TYPE_POSIX1E) != 0) || tag == ARCHIVE_ENTRY_ACL_USER || tag == ARCHIVE_ENTRY_ACL_GROUP) { if (name != NULL) {- strcpy(*p, name);- *p += strlen(*p);+ archive_strcat(s, name); } else if (tag == ARCHIVE_ENTRY_ACL_USER || tag == ARCHIVE_ENTRY_ACL_GROUP) {- append_id(p, id);+ append_id(s, id); if ((type & ARCHIVE_ENTRY_ACL_TYPE_NFS4) == 0) id = -1; }@@ -1096,51 +936,49 @@ if (((flags & ARCHIVE_ENTRY_ACL_STYLE_SOLARIS) == 0) || (tag != ARCHIVE_ENTRY_ACL_OTHER && tag != ARCHIVE_ENTRY_ACL_MASK))- *(*p)++ = ':';+ archive_strappend_char(s, ':'); } if ((type & ARCHIVE_ENTRY_ACL_TYPE_POSIX1E) != 0) { /* POSIX.1e ACL perms */- *(*p)++ = (perm & 0444) ? 'r' : '-';- *(*p)++ = (perm & 0222) ? 'w' : '-';- *(*p)++ = (perm & 0111) ? 'x' : '-';+ archive_strappend_char(s, (perm & 0444) ? 'r' : '-');+ archive_strappend_char(s, (perm & 0222) ? 'w' : '-');+ archive_strappend_char(s, (perm & 0111) ? 'x' : '-'); } else { /* NFSv4 ACL perms */ for (i = 0; i < nfsv4_acl_perm_map_size; i++) { if (perm & nfsv4_acl_perm_map[i].perm)- *(*p)++ = nfsv4_acl_perm_map[i].c;+ archive_strappend_char(s, nfsv4_acl_perm_map[i].c); else if ((flags & ARCHIVE_ENTRY_ACL_STYLE_COMPACT) == 0)- *(*p)++ = '-';+ archive_strappend_char(s, '-'); }- *(*p)++ = ':';+ archive_strappend_char(s, ':'); for (i = 0; i < nfsv4_acl_flag_map_size; i++) { if (perm & nfsv4_acl_flag_map[i].perm)- *(*p)++ = nfsv4_acl_flag_map[i].c;+ archive_strappend_char(s, nfsv4_acl_flag_map[i].c); else if ((flags & ARCHIVE_ENTRY_ACL_STYLE_COMPACT) == 0)- *(*p)++ = '-';+ archive_strappend_char(s, '-'); }- *(*p)++ = ':';+ archive_strappend_char(s, ':'); switch (type) { case ARCHIVE_ENTRY_ACL_TYPE_ALLOW:- strcpy(*p, "allow");+ archive_strcat(s, "allow"); break; case ARCHIVE_ENTRY_ACL_TYPE_DENY:- strcpy(*p, "deny");+ archive_strcat(s, "deny"); break; case ARCHIVE_ENTRY_ACL_TYPE_AUDIT:- strcpy(*p, "audit");+ archive_strcat(s, "audit"); break; case ARCHIVE_ENTRY_ACL_TYPE_ALARM:- strcpy(*p, "alarm");+ archive_strcat(s, "alarm"); break; default:- *(*p) = '\0'; break; }- *p += strlen(*p); } if (id != -1) {- *(*p)++ = ':';- append_id(p, id);+ archive_strappend_char(s, ':');+ append_id(s, id); } } @@ -1248,11 +1086,18 @@ type = want_type; /* Check for a numeric ID in field n+1 or n+3. */- isint_w(field[n + 1].start, field[n + 1].end, &id);+ if (isint_w(field[n + 1].start, field[n + 1].end,+ &id) < 0) {+ ret = ARCHIVE_WARN;+ continue;+ } /* Field n+3 is optional. */- if (id == -1 && fields > n+3)- isint_w(field[n + 3].start, field[n + 3].end,- &id);+ if (id == -1 && fields > n+3 &&+ isint_w(field[n + 3].start, field[n + 3].end,+ &id) < 0) {+ ret = ARCHIVE_WARN;+ continue;+ } tag = 0; s = field[n].start;@@ -1367,7 +1212,10 @@ tag == ARCHIVE_ENTRY_ACL_GROUP) { n = 1; name = field[1];- isint_w(name.start, name.end, &id);+ if (isint_w(name.start, name.end, &id) < 0) {+ ret = ARCHIVE_WARN;+ continue;+ } } else n = 0; @@ -1402,7 +1250,11 @@ ret = ARCHIVE_WARN; continue; }- isint_w(field[4 + n].start, field[4 + n].end, &id);+ if (isint_w(field[4 + n].start, field[4 + n].end,+ &id) < 0) {+ ret = ARCHIVE_WARN;+ continue;+ } } /* Add entry to the internal list. */@@ -1436,8 +1288,8 @@ if (*start < L'0' || *start > L'9') return (0); if (n > (INT_MAX / 10) ||- (n == INT_MAX / 10 && (*start - L'0') > INT_MAX % 10)) {- n = INT_MAX;+ (n == INT_MAX / 10 && (*start - L'0') >= INT_MAX % 10)) {+ return (-1); } else { n *= 10; n += *start - L'0';@@ -1747,15 +1599,21 @@ type = want_type; /* Check for a numeric ID in field n+1 or n+3. */- isint(field[n + 1].start, field[n + 1].end, &id);+ if (isint(field[n + 1].start, field[n + 1].end,+ &id) < 0) {+ ret = ARCHIVE_WARN;+ continue;+ } /* Field n+3 is optional. */- if (id == -1 && fields > (n + 3))- isint(field[n + 3].start, field[n + 3].end,- &id);+ if (id == -1 && fields > (n + 3) &&+ isint(field[n + 3].start, field[n + 3].end,+ &id) < 0) {+ ret = ARCHIVE_WARN;+ continue;+ } tag = 0; s = field[n].start;- st = field[n].start + 1; len = field[n].end - field[n].start; if (len == 0) {@@ -1763,6 +1621,8 @@ continue; } + st = s + 1; + switch (*s) { case 'u': if (len == 1 || (len == 4@@ -1868,7 +1728,10 @@ tag == ARCHIVE_ENTRY_ACL_GROUP) { n = 1; name = field[1];- isint(name.start, name.end, &id);+ if (isint(name.start, name.end, &id) < 0) {+ ret = ARCHIVE_WARN;+ continue;+ } } else n = 0; @@ -1903,8 +1766,11 @@ ret = ARCHIVE_WARN; continue; }- isint(field[4 + n].start, field[4 + n].end,- &id);+ if (isint(field[4 + n].start, field[4 + n].end,+ &id) < 0) {+ ret = ARCHIVE_WARN;+ continue;+ } } /* Add entry to the internal list. */@@ -1938,8 +1804,8 @@ if (*start < '0' || *start > '9') return (0); if (n > (INT_MAX / 10) ||- (n == INT_MAX / 10 && (*start - '0') > INT_MAX % 10)) {- n = INT_MAX;+ (n == INT_MAX / 10 && (*start - '0') >= INT_MAX % 10)) {+ return (-1); } else { n *= 10; n += *start - '0';@@ -2121,7 +1987,10 @@ (*p)++; (*l)--; }- *sep = **p;+ if (*l > 0)+ *sep = **p;+ else+ *sep = '\0'; /* Handle in-field comments */ if (*sep == '#') {@@ -2129,7 +1998,10 @@ (*p)++; (*l)--; }- *sep = **p;+ if (*l > 0)+ *sep = **p;+ else+ *sep = '\0'; } /* Skip separator. */
c/archive_cmdline.c view
@@ -36,7 +36,6 @@ #include "archive_cmdline_private.h" #include "archive_string.h" -static int cmdline_set_path(struct archive_cmdline *, const char *); static int cmdline_add_arg(struct archive_cmdline *, const char *); static ssize_t@@ -98,7 +97,7 @@ /* * Set up command line arguments.- * Returns ARCHIVE_OK if everything okey.+ * Returns ARCHIVE_OK if everything okay. * Returns ARCHIVE_FAILED if there is a lack of the `"' terminator or an * empty command line. * Returns ARCHIVE_FATAL if no memory.@@ -123,9 +122,12 @@ r = ARCHIVE_FAILED;/* An empty command path. */ goto exit_function; }- r = cmdline_set_path(data, as.s);- if (r != ARCHIVE_OK)+ free(data->path);+ data->path = strdup(as.s);+ if (data->path == NULL) {+ r = ARCHIVE_FATAL; goto exit_function;+ } p = strrchr(as.s, '/'); if (p == NULL) p = as.s;@@ -158,23 +160,7 @@ } /*- * Set the program path.- */-static int-cmdline_set_path(struct archive_cmdline *data, const char *path)-{- char *newptr;-- newptr = realloc(data->path, strlen(path) + 1);- if (newptr == NULL)- return (ARCHIVE_FATAL);- data->path = newptr;- strcpy(data->path, path);- return (ARCHIVE_OK);-}--/*- * Add a argument for the program.+ * Add an argument for the program. */ static int cmdline_add_arg(struct archive_cmdline *data, const char *arg)
c/archive_crc32.h view
@@ -43,27 +43,64 @@ static unsigned long crc32(unsigned long crc, const void *_p, size_t len) {- unsigned long crc2, b, i; const unsigned char *p = _p;- static volatile int crc_tbl_inited = 0;- static unsigned long crc_tbl[256];+ static const unsigned long crc_tbl[256] = {+ 0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419,+ 0x706af48f, 0xe963a535, 0x9e6495a3, 0x0edb8832, 0x79dcb8a4,+ 0xe0d5e91e, 0x97d2d988, 0x09b64c2b, 0x7eb17cbd, 0xe7b82d07,+ 0x90bf1d91, 0x1db71064, 0x6ab020f2, 0xf3b97148, 0x84be41de,+ 0x1adad47d, 0x6ddde4eb, 0xf4d4b551, 0x83d385c7, 0x136c9856,+ 0x646ba8c0, 0xfd62f97a, 0x8a65c9ec, 0x14015c4f, 0x63066cd9,+ 0xfa0f3d63, 0x8d080df5, 0x3b6e20c8, 0x4c69105e, 0xd56041e4,+ 0xa2677172, 0x3c03e4d1, 0x4b04d447, 0xd20d85fd, 0xa50ab56b,+ 0x35b5a8fa, 0x42b2986c, 0xdbbbc9d6, 0xacbcf940, 0x32d86ce3,+ 0x45df5c75, 0xdcd60dcf, 0xabd13d59, 0x26d930ac, 0x51de003a,+ 0xc8d75180, 0xbfd06116, 0x21b4f4b5, 0x56b3c423, 0xcfba9599,+ 0xb8bda50f, 0x2802b89e, 0x5f058808, 0xc60cd9b2, 0xb10be924,+ 0x2f6f7c87, 0x58684c11, 0xc1611dab, 0xb6662d3d, 0x76dc4190,+ 0x01db7106, 0x98d220bc, 0xefd5102a, 0x71b18589, 0x06b6b51f,+ 0x9fbfe4a5, 0xe8b8d433, 0x7807c9a2, 0x0f00f934, 0x9609a88e,+ 0xe10e9818, 0x7f6a0dbb, 0x086d3d2d, 0x91646c97, 0xe6635c01,+ 0x6b6b51f4, 0x1c6c6162, 0x856530d8, 0xf262004e, 0x6c0695ed,+ 0x1b01a57b, 0x8208f4c1, 0xf50fc457, 0x65b0d9c6, 0x12b7e950,+ 0x8bbeb8ea, 0xfcb9887c, 0x62dd1ddf, 0x15da2d49, 0x8cd37cf3,+ 0xfbd44c65, 0x4db26158, 0x3ab551ce, 0xa3bc0074, 0xd4bb30e2,+ 0x4adfa541, 0x3dd895d7, 0xa4d1c46d, 0xd3d6f4fb, 0x4369e96a,+ 0x346ed9fc, 0xad678846, 0xda60b8d0, 0x44042d73, 0x33031de5,+ 0xaa0a4c5f, 0xdd0d7cc9, 0x5005713c, 0x270241aa, 0xbe0b1010,+ 0xc90c2086, 0x5768b525, 0x206f85b3, 0xb966d409, 0xce61e49f,+ 0x5edef90e, 0x29d9c998, 0xb0d09822, 0xc7d7a8b4, 0x59b33d17,+ 0x2eb40d81, 0xb7bd5c3b, 0xc0ba6cad, 0xedb88320, 0x9abfb3b6,+ 0x03b6e20c, 0x74b1d29a, 0xead54739, 0x9dd277af, 0x04db2615,+ 0x73dc1683, 0xe3630b12, 0x94643b84, 0x0d6d6a3e, 0x7a6a5aa8,+ 0xe40ecf0b, 0x9309ff9d, 0x0a00ae27, 0x7d079eb1, 0xf00f9344,+ 0x8708a3d2, 0x1e01f268, 0x6906c2fe, 0xf762575d, 0x806567cb,+ 0x196c3671, 0x6e6b06e7, 0xfed41b76, 0x89d32be0, 0x10da7a5a,+ 0x67dd4acc, 0xf9b9df6f, 0x8ebeeff9, 0x17b7be43, 0x60b08ed5,+ 0xd6d6a3e8, 0xa1d1937e, 0x38d8c2c4, 0x4fdff252, 0xd1bb67f1,+ 0xa6bc5767, 0x3fb506dd, 0x48b2364b, 0xd80d2bda, 0xaf0a1b4c,+ 0x36034af6, 0x41047a60, 0xdf60efc3, 0xa867df55, 0x316e8eef,+ 0x4669be79, 0xcb61b38c, 0xbc66831a, 0x256fd2a0, 0x5268e236,+ 0xcc0c7795, 0xbb0b4703, 0x220216b9, 0x5505262f, 0xc5ba3bbe,+ 0xb2bd0b28, 0x2bb45a92, 0x5cb36a04, 0xc2d7ffa7, 0xb5d0cf31,+ 0x2cd99e8b, 0x5bdeae1d, 0x9b64c2b0, 0xec63f226, 0x756aa39c,+ 0x026d930a, 0x9c0906a9, 0xeb0e363f, 0x72076785, 0x05005713,+ 0x95bf4a82, 0xe2b87a14, 0x7bb12bae, 0x0cb61b38, 0x92d28e9b,+ 0xe5d5be0d, 0x7cdcefb7, 0x0bdbdf21, 0x86d3d2d4, 0xf1d4e242,+ 0x68ddb3f8, 0x1fda836e, 0x81be16cd, 0xf6b9265b, 0x6fb077e1,+ 0x18b74777, 0x88085ae6, 0xff0f6a70, 0x66063bca, 0x11010b5c,+ 0x8f659eff, 0xf862ae69, 0x616bffd3, 0x166ccf45, 0xa00ae278,+ 0xd70dd2ee, 0x4e048354, 0x3903b3c2, 0xa7672661, 0xd06016f7,+ 0x4969474d, 0x3e6e77db, 0xaed16a4a, 0xd9d65adc, 0x40df0b66,+ 0x37d83bf0, 0xa9bcae53, 0xdebb9ec5, 0x47b2cf7f, 0x30b5ffe9,+ 0xbdbdf21c, 0xcabac28a, 0x53b39330, 0x24b4a3a6, 0xbad03605,+ 0xcdd70693, 0x54de5729, 0x23d967bf, 0xb3667a2e, 0xc4614ab8,+ 0x5d681b02, 0x2a6f2b94, 0xb40bbe37, 0xc30c8ea1, 0x5a05df1b,+ 0x2d02ef8d+ }; if (_p == NULL) return (0);-- if (!crc_tbl_inited) {- for (b = 0; b < 256; ++b) {- crc2 = b;- for (i = 8; i > 0; --i) {- if (crc2 & 1)- crc2 = (crc2 >> 1) ^ 0xedb88320UL;- else - crc2 = (crc2 >> 1);- }- crc_tbl[b] = crc2;- }- crc_tbl_inited = 1;- } crc = crc ^ 0xffffffffUL; /* A use of this loop is about 20% - 30% faster than
c/archive_cryptor.c view
@@ -57,7 +57,7 @@ return 0; } -#elif defined(_WIN32) && !defined(__CYGWIN__) && defined(HAVE_BCRYPT_H) && _WIN32_WINNT >= _WIN32_WINNT_VISTA+#elif defined(_WIN32) && !defined(__CYGWIN__) && defined(HAVE_BCRYPT_H) #ifdef _MSC_VER #pragma comment(lib, "Bcrypt.lib") #endif@@ -197,7 +197,7 @@ return 0; } -#elif defined(_WIN32) && !defined(__CYGWIN__) && defined(HAVE_BCRYPT_H) && _WIN32_WINNT >= _WIN32_WINNT_VISTA+#elif defined(_WIN32) && !defined(__CYGWIN__) && defined(HAVE_BCRYPT_H) static int aes_ctr_init(archive_crypto_ctx *ctx, const uint8_t *key, size_t key_len)
c/archive_cryptor_private.h view
@@ -62,7 +62,7 @@ size_t encr_pos; } archive_crypto_ctx; -#elif defined(_WIN32) && !defined(__CYGWIN__) && defined(HAVE_BCRYPT_H) && _WIN32_WINNT >= _WIN32_WINNT_VISTA+#elif defined(_WIN32) && !defined(__CYGWIN__) && defined(HAVE_BCRYPT_H) #include <bcrypt.h> #define ARCHIVE_CRYPTOR_USE_CNG 1 @@ -147,16 +147,6 @@ } archive_crypto_ctx; #else--#if defined(ARCHIVE_CRYPTO_MD5_WIN) ||\- defined(ARCHIVE_CRYPTO_SHA1_WIN) ||\- defined(ARCHIVE_CRYPTO_SHA256_WIN) ||\- defined(ARCHIVE_CRYPTO_SHA384_WIN) ||\- defined(ARCHIVE_CRYPTO_SHA512_WIN)-#if defined(_WIN32) && !defined(__CYGWIN__) && !(defined(HAVE_BCRYPT_H) && _WIN32_WINNT >= _WIN32_WINNT_VISTA)-#define ARCHIVE_CRYPTOR_USE_WINCRYPT 1-#endif-#endif #define AES_BLOCK_SIZE 16 #define AES_MAX_KEY_SIZE 32
c/archive_digest.c view
@@ -44,16 +44,11 @@ /* * Message digest functions for Windows platform. */-#if defined(ARCHIVE_CRYPTO_MD5_WIN) ||\- defined(ARCHIVE_CRYPTO_SHA1_WIN) ||\- defined(ARCHIVE_CRYPTO_SHA256_WIN) ||\- defined(ARCHIVE_CRYPTO_SHA384_WIN) ||\- defined(ARCHIVE_CRYPTO_SHA512_WIN)+#if defined(HAVE_BCRYPT_H) /* * Initialize a Message digest. */-#if defined(HAVE_BCRYPT_H) && _WIN32_WINNT >= _WIN32_WINNT_VISTA static int win_crypto_init(Digest_CTX *ctx, const WCHAR *algo) {@@ -72,31 +67,7 @@ ctx->valid = 1; return (ARCHIVE_OK); }-#else-static int-win_crypto_init(Digest_CTX *ctx, DWORD prov, ALG_ID algId)-{ - ctx->valid = 0;- if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL,- prov, CRYPT_VERIFYCONTEXT)) {- if (GetLastError() != (DWORD)NTE_BAD_KEYSET)- return (ARCHIVE_FAILED);- if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL,- prov, CRYPT_NEWKEYSET))- return (ARCHIVE_FAILED);- }-- if (!CryptCreateHash(ctx->cryptProv, algId, 0, 0, &ctx->hash)) {- CryptReleaseContext(ctx->cryptProv, 0);- return (ARCHIVE_FAILED);- }-- ctx->valid = 1;- return (ARCHIVE_OK);-}-#endif- /* * Update a Message digest. */@@ -107,42 +78,26 @@ if (!ctx->valid) return (ARCHIVE_FAILED); -#if defined(HAVE_BCRYPT_H) && _WIN32_WINNT >= _WIN32_WINNT_VISTA BCryptHashData(ctx->hHash, (PUCHAR)(uintptr_t)buf, (ULONG)len, 0);-#else- CryptHashData(ctx->hash,- (unsigned char *)(uintptr_t)buf,- (DWORD)len, 0);-#endif return (ARCHIVE_OK); } static int win_crypto_Final(unsigned char *buf, size_t bufsize, Digest_CTX *ctx) {-#if !(defined(HAVE_BCRYPT_H) && _WIN32_WINNT >= _WIN32_WINNT_VISTA)- DWORD siglen = (DWORD)bufsize;-#endif- if (!ctx->valid) return (ARCHIVE_FAILED); -#if defined(HAVE_BCRYPT_H) && _WIN32_WINNT >= _WIN32_WINNT_VISTA BCryptFinishHash(ctx->hHash, buf, (ULONG)bufsize, 0); BCryptDestroyHash(ctx->hHash); BCryptCloseAlgorithmProvider(ctx->hAlg, 0);-#else- CryptGetHashParam(ctx->hash, HP_HASHVAL, buf, &siglen, 0);- CryptDestroyHash(ctx->hash);- CryptReleaseContext(ctx->cryptProv, 0);-#endif ctx->valid = 0; return (ARCHIVE_OK); } -#endif /* defined(ARCHIVE_CRYPTO_*_WIN) */+#endif /* defined(HAVE_BCRYPT_H) */ /* MD5 implementations */@@ -234,11 +189,7 @@ static int __archive_md5init(archive_md5_ctx *ctx) {-#if defined(HAVE_BCRYPT_H) && _WIN32_WINNT >= _WIN32_WINNT_VISTA return (win_crypto_init(ctx, BCRYPT_MD5_ALGORITHM));-#else- return (win_crypto_init(ctx, PROV_RSA_FULL, CALG_MD5));-#endif } static int@@ -645,11 +596,7 @@ static int __archive_sha1init(archive_sha1_ctx *ctx) {-#if defined(HAVE_BCRYPT_H) && _WIN32_WINNT >= _WIN32_WINNT_VISTA return (win_crypto_init(ctx, BCRYPT_SHA1_ALGORITHM));-#else- return (win_crypto_init(ctx, PROV_RSA_FULL, CALG_SHA1));-#endif } static int@@ -925,11 +872,7 @@ static int __archive_sha256init(archive_sha256_ctx *ctx) {-#if defined(HAVE_BCRYPT_H) && _WIN32_WINNT >= _WIN32_WINNT_VISTA return (win_crypto_init(ctx, BCRYPT_SHA256_ALGORITHM));-#else- return (win_crypto_init(ctx, PROV_RSA_AES, CALG_SHA_256));-#endif } static int@@ -1177,11 +1120,7 @@ static int __archive_sha384init(archive_sha384_ctx *ctx) {-#if defined(HAVE_BCRYPT_H) && _WIN32_WINNT >= _WIN32_WINNT_VISTA return (win_crypto_init(ctx, BCRYPT_SHA384_ALGORITHM));-#else- return (win_crypto_init(ctx, PROV_RSA_AES, CALG_SHA_384));-#endif } static int@@ -1453,11 +1392,7 @@ static int __archive_sha512init(archive_sha512_ctx *ctx) {-#if defined(HAVE_BCRYPT_H) && _WIN32_WINNT >= _WIN32_WINNT_VISTA return (win_crypto_init(ctx, BCRYPT_SHA512_ALGORITHM));-#else- return (win_crypto_init(ctx, PROV_RSA_AES, CALG_SHA_512));-#endif } static int
c/archive_digest_private.h view
@@ -165,23 +165,13 @@ defined(ARCHIVE_CRYPTO_SHA256_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA384_WIN) ||\ defined(ARCHIVE_CRYPTO_SHA512_WIN)-#if defined(HAVE_BCRYPT_H) && _WIN32_WINNT >= _WIN32_WINNT_VISTA-/* don't use bcrypt when XP needs to be supported */+#if defined(HAVE_BCRYPT_H) #include <bcrypt.h> #define ARCHIVE_CRYPTO_CNG 1 typedef struct { int valid; BCRYPT_ALG_HANDLE hAlg; BCRYPT_HASH_HANDLE hHash;-} Digest_CTX;-#else-#include <windows.h>-#include <wincrypt.h>-#define ARCHIVE_CRYPTO_WINCRYPT 1-typedef struct {- int valid;- HCRYPTPROV cryptProv;- HCRYPTHASH hash; } Digest_CTX; #endif #endif
c/archive_endian.h view
@@ -71,6 +71,22 @@ } static inline uint32_t+archive_be24dec(const void *pp)+{+ unsigned char const *p = (unsigned char const *)pp;++ /* Store into unsigned temporaries before left shifting, to avoid+ promotion to signed int and then left shifting into the sign bit,+ which is undefined behaviour. */+ unsigned int p2 = p[2];+ unsigned int p1 = p[1];+ unsigned int p0 = p[0];++ return ((p0 << 16) | (p1 << 8) | p2);+}+++static inline uint32_t archive_be32dec(const void *pp) { unsigned char const *p = (unsigned char const *)pp;@@ -109,6 +125,21 @@ } static inline uint32_t+archive_le24dec(const void *pp)+{+ unsigned char const *p = (unsigned char const *)pp;++ /* Store into unsigned temporaries before left shifting, to avoid+ promotion to signed int and then left shifting into the sign bit,+ which is undefined behaviour. */+ unsigned int p2 = p[2];+ unsigned int p1 = p[1];+ unsigned int p0 = p[0];++ return ((p2 << 16) | (p1 << 8) | p0);+}++static inline uint32_t archive_le32dec(const void *pp) { unsigned char const *p = (unsigned char const *)pp;@@ -168,6 +199,16 @@ p[0] = u & 0xff; p[1] = (u >> 8) & 0xff;+}++static inline void+archive_le24enc(void *pp, uint32_t u)+{+ unsigned char *p = (unsigned char *)pp;++ p[0] = u & 0xff;+ p[1] = (u >> 8) & 0xff;+ p[2] = (u >> 16) & 0xff; } static inline void
c/archive_entry.c view
@@ -1239,7 +1239,7 @@ } void-archive_entry_set_mode(struct archive_entry *entry, mode_t m)+archive_entry_set_mode(struct archive_entry *entry, __LA_MODE_T m) { entry->stat_valid = 0; entry->acl.mode = m;@@ -1314,7 +1314,7 @@ } void-archive_entry_set_perm(struct archive_entry *entry, mode_t p)+archive_entry_set_perm(struct archive_entry *entry, __LA_MODE_T p) { entry->stat_valid = 0; entry->acl.mode &= AE_IFMT;
c/archive_entry.h view
@@ -28,7 +28,7 @@ #define ARCHIVE_ENTRY_H_INCLUDED /* Note: Compiler will complain if this does not match archive.h! */-#define ARCHIVE_VERSION_NUMBER 3008007+#define ARCHIVE_VERSION_NUMBER 3008008 /* * Note: archive_entry.h is for use outside of libarchive; the
c/archive_entry_link_resolver.c view
@@ -78,7 +78,7 @@ struct archive_entry_linkresolver { struct links_entry **buckets; struct links_entry *spare;- unsigned long number_entries;+ size_t number_entries; size_t number_buckets; int strategy; };@@ -158,13 +158,12 @@ void archive_entry_linkresolver_free(struct archive_entry_linkresolver *res) {- struct links_entry *le;- if (res == NULL) return; - while ((le = next_entry(res, NEXT_ENTRY_ALL)) != NULL)- archive_entry_free(le->entry);+ while (next_entry(res, NEXT_ENTRY_ALL) != NULL) {+ /* Actual freeing done by next_entry() */+ } free(res->buckets); free(res); }@@ -382,6 +381,10 @@ if (le == NULL) return (NULL); le->canonical = archive_entry_clone(entry);+ if (le->canonical == NULL) {+ free(le);+ return (NULL);+ } /* If the links cache is getting too full, enlarge the hash table. */ if (res->number_entries > res->number_buckets * 2)
c/archive_entry_sparse.c view
@@ -127,9 +127,10 @@ int archive_entry_sparse_reset(struct archive_entry * entry) {+ /* Counting can change sparse_head, so do it first */+ int count = archive_entry_sparse_count(entry); entry->sparse_p = entry->sparse_head;-- return archive_entry_sparse_count(entry);+ return (count); } int
c/archive_entry_strmode.c view
@@ -28,9 +28,6 @@ #ifdef HAVE_SYS_STAT_H #include <sys/stat.h> #endif-#ifdef HAVE_STRING_H-#include <string.h>-#endif #include "archive_entry.h" #include "archive_entry_private.h"@@ -38,16 +35,10 @@ const char * archive_entry_strmode(struct archive_entry *entry) {- static const mode_t permbits[] =- { 0400, 0200, 0100, 0040, 0020, 0010, 0004, 0002, 0001 }; char *bp = entry->strmode;- mode_t mode;+ mode_t mask, mode; int i; - /* Fill in a default string, then selectively override. */- strcpy(bp, "?rwxrwxrwx ");-- mode = archive_entry_mode(entry); switch (archive_entry_filetype(entry)) { case AE_IFREG: bp[0] = '-'; break; case AE_IFBLK: bp[0] = 'b'; break;@@ -57,30 +48,22 @@ case AE_IFSOCK: bp[0] = 's'; break; case AE_IFIFO: bp[0] = 'p'; break; default:- if (archive_entry_hardlink(entry) != NULL) {- bp[0] = 'h';- break;- }+ bp[0] = (archive_entry_hardlink(entry) != NULL) ? 'h' : '?';+ break; } - for (i = 0; i < 9; i++)- if (!(mode & permbits[i]))- bp[i+1] = '-';+ mode = archive_entry_mode(entry);+ for (i = 0, mask = 0400; i < 9; i++, mask >>= 1)+ bp[i + 1] = (mode & mask) ? "rwx"[i % 3] : '-'; - if (mode & S_ISUID) {- if (mode & 0100) bp[3] = 's';- else bp[3] = 'S';- }- if (mode & S_ISGID) {- if (mode & 0010) bp[6] = 's';- else bp[6] = 'S';- }- if (mode & S_ISVTX) {- if (mode & 0001) bp[9] = 't';- else bp[9] = 'T';- }- if (archive_entry_acl_types(entry) != 0)- bp[10] = '+';+ if (mode & S_ISUID)+ bp[3] = (mode & 0100) ? 's' : 'S';+ if (mode & S_ISGID)+ bp[6] = (mode & 0010) ? 's' : 'S';+ if (mode & S_ISVTX)+ bp[9] = (mode & 0001) ? 't' : 'T';+ bp[10] = (archive_entry_acl_types(entry) != 0) ? '+' : ' ';+ bp[11] = '\0'; return (bp); }
c/archive_hmac.c view
@@ -74,7 +74,7 @@ memset(ctx, 0, sizeof(*ctx)); } -#elif defined(_WIN32) && !defined(__CYGWIN__) && defined(HAVE_BCRYPT_H) && _WIN32_WINNT >= _WIN32_WINNT_VISTA+#elif defined(_WIN32) && !defined(__CYGWIN__) && defined(HAVE_BCRYPT_H) #ifndef BCRYPT_HASH_REUSABLE_FLAG # define BCRYPT_HASH_REUSABLE_FLAG 0x00000020
c/archive_hmac_private.h view
@@ -52,7 +52,7 @@ typedef CCHmacContext archive_hmac_sha1_ctx; -#elif defined(_WIN32) && !defined(__CYGWIN__) && defined(HAVE_BCRYPT_H) && _WIN32_WINNT >= _WIN32_WINNT_VISTA+#elif defined(_WIN32) && !defined(__CYGWIN__) && defined(HAVE_BCRYPT_H) #include <bcrypt.h> typedef struct {
+ c/archive_integer.h view
@@ -0,0 +1,247 @@+/*-+ * Copyright (c) 2026 Tobias Stoeckmann+ * All rights reserved.+ *+ * Redistribution and use in source and binary forms, with or without+ * modification, are permitted provided that the following conditions+ * are met:+ * 1. Redistributions of source code must retain the above copyright+ * notice, this list of conditions and the following disclaimer.+ * 2. Redistributions in binary form must reproduce the above copyright+ * notice, this list of conditions and the following disclaimer in the+ * documentation and/or other materials provided with the distribution.+ *+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE+ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF+ * SUCH DAMAGE.+ */++#ifndef ARCHIVE_INTEGER_H_INCLUDED+#define ARCHIVE_INTEGER_H_INCLUDED++#include "archive_platform.h"++/* Note: This is a purely internal header! */+/* Do not use this outside of libarchive internal code! */++#ifndef __LIBARCHIVE_BUILD+#error This header is only to be used internally to libarchive.+#endif++#ifdef HAVE_INTSAFE_H+#define ENABLE_INTSAFE_SIGNED_FUNCTIONS+#include <intsafe.h>+#endif+#ifdef HAVE_LIMITS_H+#include <limits.h>+#endif+#ifdef HAVE_STDCKDINT_H+#include <stdckdint.h>+#endif+#ifdef HAVE_STDINT_H+#include <stdint.h>+#endif+#ifdef HAVE_UNISTD_H+#include <unistd.h>+#endif++#ifndef __has_builtin+#define __has_builtin(x) 0+#endif++#ifdef HAVE_STDCKDINT_H+#define USE_STDCKDINT 1+#elif (__GNUC__ >= 5 && !defined(__INTEL_COMPILER))+#define USE_BUILTIN 1+#elif __has_builtin(__builtin_add_overflow)+#define USE_BUILTIN 1+#elif defined HAVE_INTSAFE_H+#define USE_INTSAFE 1+#endif++/*+ * Disabling inline keyword for compilers known to choke on it:+ * - Watcom C++ in C code. (For any version?)+ * - SGI MIPSpro+ * - Microsoft Visual C++ 6.0 (supposedly newer versions too)+ * - IBM VisualAge 6 (XL v6)+ * - Sun WorkShop C (SunPro) before 5.9+ */+#if defined(__WATCOMC__) || defined(__sgi) || defined(__hpux) || defined(__BORLANDC__)+#define inline+#elif defined(__IBMC__) && __IBMC__ < 700+#define inline+#elif defined(__SUNPRO_C) && __SUNPRO_C < 0x590+#define inline+#elif defined(_MSC_VER) || defined(__osf__)+#define inline __inline+#endif++/* Returns 0 on success, a non-zero value otherwise. */+static inline int+archive_ckd_add_i64(int64_t *result, int64_t a, int64_t b)+{+#if USE_STDCKDINT+ return ckd_add(result, a, b);+#elif USE_BUILTIN+ return __builtin_add_overflow(a, b, result);+#elif USE_INTSAFE+ LONGLONG res;+ int ret;++ ret = LongLongAdd(a, b, &res);+ *result = (int64_t)res;+ return ret;+#else+ if ((b > 0 && a > INT64_MAX - b) ||+ (b < 0 && a < INT64_MIN - b))+ return 1;++ *result = a + b;+ return 0;+#endif+}++/* Returns 0 on success, a non-zero value otherwise. */+static inline int+archive_ckd_add_size(size_t *result, size_t a, size_t b)+{+#if USE_STDCKDINT+ return ckd_add(result, a, b);+#elif USE_BUILTIN+ return __builtin_add_overflow(a, b, result);+#elif USE_INTSAFE+ return SizeTAdd(a, b, result);+#else+ if (a > SIZE_MAX - b)+ return 1;+ *result = a + b;+ return 0;+#endif+}++/* Returns 0 on success, a non-zero value otherwise. */+static inline int+archive_ckd_add_u64(uint64_t *result, uint64_t a, uint64_t b)+{+#if USE_STDCKDINT+ return ckd_add(result, a, b);+#elif USE_BUILTIN+ return __builtin_add_overflow(a, b, result);+#elif USE_INTSAFE+ ULONGLONG res;+ int ret;++ ret = ULongLongAdd(a, b, &res);+ *result = (uint64_t)res;+ return ret;+#else+ if (a > UINT64_MAX - b)+ return 1;+ *result = a + b;+ return 0;+#endif+}++/* Returns 0 on success, a non-zero value otherwise. */+static inline int+archive_ckd_mul_i64(int64_t *result, int64_t a, int64_t b)+{+#if USE_STDCKDINT+ return ckd_mul(result, a, b);+#elif USE_BUILTIN+ return __builtin_mul_overflow(a, b, result);+#elif USE_INTSAFE+ LONGLONG res;+ int ret;++ ret = LongLongMult(a, b, &res);+ *result = (int64_t)res;+ return ret;+#else+ if ((a > 0 && b > 0 && a > INT64_MAX / b) ||+ (a < 0 && b > 0 && a < INT64_MIN / b) ||+ (a > 0 && b < 0 && b < INT64_MIN / a) ||+ (a < 0 && b < 0 && a < INT64_MAX / b))+ return 1;++ *result = a * b;+ return 0;+#endif+}++/* Returns 0 on success, a non-zero value otherwise. */+static inline int+archive_ckd_mul_size(size_t *result, size_t a, size_t b)+{+#if USE_STDCKDINT+ return ckd_mul(result, a, b);+#elif USE_BUILTIN+ return __builtin_mul_overflow(a, b, result);+#elif USE_INTSAFE+ return SizeTMult(a, b, result);+#else+ if (b != 0 && a > SIZE_MAX / b)+ return 1;+ *result = a * b;+ return 0;+#endif+}++/* Returns 0 on success, a non-zero value otherwise. */+static inline int+archive_ckd_mul_u64(uint64_t *result, uint64_t a, uint64_t b)+{+#if USE_STDCKDINT+ return ckd_mul(result, a, b);+#elif USE_BUILTIN+ return __builtin_mul_overflow(a, b, result);+#elif USE_INTSAFE+ ULONGLONG res;+ int ret;++ ret = ULongLongMult(a, b, &res);+ *result = (uint64_t)res;+ return ret;+#else+ if (b != 0 && a > UINT64_MAX / b)+ return 1;+ *result = a * b;+ return 0;+#endif+}++/* Returns 0 on success, a non-zero value otherwise. */+static inline int+archive_ckd_sub_i64(int64_t *result, int64_t a, int64_t b)+{+#if USE_STDCKDINT+ return ckd_sub(result, a, b);+#elif USE_BUILTIN+ return __builtin_sub_overflow(a, b, result);+#elif USE_INTSAFE+ LONGLONG res;+ int ret;++ ret = LongLongSub(a, b, &res);+ *result = (int64_t)res;+ return ret;+#else+ if ((b > 0 && a < INT64_MIN + b) ||+ (b < 0 && a > INT64_MAX + b))+ return 1;++ *result = a - b;+ return 0;+#endif+}++#endif
c/archive_match.c view
@@ -40,6 +40,7 @@ #endif #include "archive.h"+#include "archive_integer.h" #include "archive_private.h" #include "archive_entry.h" #include "archive_pathmatch.h"@@ -216,6 +217,14 @@ return (ARCHIVE_FATAL); } +static int+error_pattern(struct archive_match *a)+{+ archive_set_error(&(a->archive), EINVAL, "Failed to apply pattern");+ a->archive.state = ARCHIVE_STATE_FATAL;+ return (ARCHIVE_FATAL);+}+ /* * Create an ARCHIVE_MATCH object. */@@ -269,7 +278,7 @@ * * Returns 1 if archive entry is excluded. * Returns 0 if archive entry is not excluded.- * Returns <0 if something error happened.+ * Returns <0 if some error happened. */ int archive_match_excluded(struct archive *_a, struct archive_entry *entry)@@ -293,6 +302,8 @@ #else r = path_excluded(a, 1, archive_entry_pathname(entry)); #endif+ if (r < 0)+ return (error_pattern(a)); if (r != 0) return (r); }@@ -449,13 +460,14 @@ * * Returns 1 if archive entry is excluded. * Returns 0 if archive entry is not excluded.- * Returns <0 if something error happened.+ * Returns <0 if some error happened. */ int archive_match_path_excluded(struct archive *_a, struct archive_entry *entry) { struct archive_match *a;+ int r; archive_check_magic(_a, ARCHIVE_MATCH_MAGIC, ARCHIVE_STATE_NEW, "archive_match_path_excluded");@@ -471,10 +483,13 @@ if ((a->setflag & PATTERN_IS_SET) == 0) return (0); #if defined(_WIN32) && !defined(__CYGWIN__)- return (path_excluded(a, 0, archive_entry_pathname_w(entry)));+ r = path_excluded(a, 0, archive_entry_pathname_w(entry)); #else- return (path_excluded(a, 1, archive_entry_pathname(entry)));+ r = path_excluded(a, 1, archive_entry_pathname(entry)); #endif+ if (r < 0)+ return (error_pattern(a));+ return (r); } /*@@ -629,11 +644,12 @@ } r = archive_read_next_header(ar, &ae); if (r != ARCHIVE_OK) {- archive_read_free(ar); if (r == ARCHIVE_EOF) {+ archive_read_free(ar); return (ARCHIVE_OK); } else { archive_copy_error(&(a->archive), ar);+ archive_read_free(ar); return (r); } }@@ -1007,7 +1023,7 @@ * * Returns 1 if archive entry is excluded. * Returns 0 if archive entry is not excluded.- * Returns <0 if something error happened.+ * Returns <0 if some error happened. */ int archive_match_time_excluded(struct archive *_a,@@ -1653,7 +1669,7 @@ * * Returns 1 if archive entry is excluded. * Returns 0 if archive entry is not excluded.- * Returns <0 if something error happened.+ * Returns <0 if some error happened. */ int archive_match_owner_excluded(struct archive *_a,@@ -1684,15 +1700,22 @@ if (ids->count + 1 >= ids->size) { void *p;+ size_t alloc_size, new_size; if (ids->size == 0)- ids->size = 8;- else- ids->size *= 2;- p = realloc(ids->ids, sizeof(*ids->ids) * ids->size);+ new_size = 8;+ else {+ if (archive_ckd_mul_size(&new_size, ids->size, 2))+ return (error_nomem(a));+ }+ if (archive_ckd_mul_size(&alloc_size,+ new_size, sizeof(*ids->ids)))+ return (error_nomem(a));+ p = realloc(ids->ids, alloc_size); if (p == NULL) return (error_nomem(a)); ids->ids = (int64_t *)p;+ ids->size = new_size; } /* Find an insert point. */
c/archive_options.c view
@@ -31,9 +31,9 @@ #include "archive_options_private.h" -static const char *-parse_option(const char **str,- const char **mod, const char **opt, const char **val);+static char *+parse_option(char **str,+ char **mod, char **opt, char **val); int _archive_set_option(struct archive *a,@@ -103,7 +103,7 @@ { int allok = 1, anyok = 0, ignore_mod_err = 0, r; char *data;- const char *s, *mod, *opt, *val;+ char *s, *mod, *opt, *val; archive_check_magic(a, magic, ARCHIVE_STATE_NEW, fn); @@ -115,7 +115,7 @@ ENOMEM, "Out of memory adding file to list"); return (ARCHIVE_FATAL); }- s = (const char *)data;+ s = data; do { mod = opt = val = NULL;@@ -167,10 +167,10 @@ return allok ? ARCHIVE_OK : anyok ? ARCHIVE_WARN : ARCHIVE_FAILED; } -static const char *-parse_option(const char **s, const char **m, const char **o, const char **v)+static char *+parse_option(char **s, char **m, char **o, char **v) {- const char *end, *mod, *opt, *val;+ char *end, *mod, *opt, *val; char *p; end = NULL;@@ -182,7 +182,7 @@ if (p != NULL) { *p = '\0';- end = ((const char *)p) + 1;+ end = p + 1; } if (0 == strlen(opt)) {
c/archive_pack_dev.c view
@@ -319,7 +319,7 @@ pack_t * pack_find(const char *name) {- struct format *format;+ const struct format *format; format = bsearch(name, formats, sizeof(formats)/sizeof(formats[0]),
c/archive_parse_date.c view
@@ -36,6 +36,7 @@ #include <time.h> #include "archive.h"+#include "archive_integer.h" /* Basic time units. */ #define EPOCH 1970@@ -49,7 +50,7 @@ enum { tAM, tPM }; /* Token types returned by nexttoken() */ enum { tAGO = 260, tDAY, tDAYZONE, tAMPM, tMONTH, tMONTH_UNIT, tSEC_UNIT,- tUNUMBER, tZONE, tDST };+ tUNUMBER, tZONE, tDST, tERROR }; struct token { int token; time_t value; }; /*@@ -818,20 +819,33 @@ } /*- * Parses and consumes an unsigned number.- * Returns 1 if any number is parsed. Otherwise, *value is unchanged.+ * Parses and consumes an unsigned 64-bit number.+ * Returns UINT64_MAX if the number overflows. */-static char-consume_unsigned_number(const char **in, time_t *value)-{- char c;- if (isdigit((unsigned char)(c = **in))) {- for (*value = 0; isdigit((unsigned char)(c = *(*in)++)); )- *value = 10 * *value + c - '0';- (*in)--;- return 1;+static uint64_t+consume_unsigned_number(const char **in) {+ uint64_t value = 0;+ unsigned char c;++ /* Get the first character, abort if it's not a digit */+ c = (unsigned char)(**in);+ if (c < '0' || c > '9') {+ return UINT64_MAX; }- return 0;++ /* Fold digits into the value, abort on overflow */+ while (c >= '0' && c <= '9') {+ unsigned char digit = c - '0';++ /* Return error if the result would overflow UINT64_MAX */+ if (archive_ckd_mul_u64(&value, value, 10) ||+ archive_ckd_add_u64(&value, value, digit)) {+ return UINT64_MAX;+ }+ (*in)++;+ c = (unsigned char)(**in);+ }+ return value; } /*@@ -906,12 +920,19 @@ } /*- * Not in the word table, maybe it's a number. Note:- * Because '-' and '+' have other special meanings, I- * don't deal with signed numbers here.+ * Not in the word table. If it starts with a digit,+ * it must be a number. Note: Because '-' and '+' have+ * other special meanings, I don't deal with signed+ * numbers here. */- if (consume_unsigned_number(in, value)) {- return (tUNUMBER);+ if (isdigit((unsigned char)(**in))) {+ uint64_t val = consume_unsigned_number(in);+ if (val > 9999) {+ return (tERROR);+ } else {+ *value = val;+ return (tUNUMBER);+ } } return *(*in)++;@@ -949,6 +970,7 @@ static time_t parse_unix_epoch(const char *p) {+ uint64_t val; time_t epoch; /* may begin with + */@@ -957,12 +979,18 @@ } /* followed by some number */- if (!consume_unsigned_number(&p, &epoch))+ val = consume_unsigned_number(&p);+ /* Truncate to time_t */+ epoch = (time_t)val;+ /* If truncated value is different, then+ * the value is too large for `time_t`. */+ if (epoch < 0 || (uint64_t)epoch != val) { return (time_t)-1;-- /* ...and nothing else */- if (*p != '\0')+ }+ /* If there's any more characters, fail. */+ if (*p != '\0') { return (time_t)-1;+ } return epoch; }
c/archive_pathmatch.c view
@@ -35,6 +35,8 @@ #include "archive_pathmatch.h" +#define MAX_RECURSION 100+ /* * Check whether a character 'c' is matched by a list specification [...]: * * Leading '!' or '^' negates the class.@@ -167,10 +169,14 @@ } static int-pm(const char *p, const char *s, int flags)+pm(const char *p, const char *s, int flags, int depth) { const char *end;+ int r; + if (depth > MAX_RECURSION)+ return (-1);+ /* * Ignore leading './', './/', '././', etc. */@@ -202,8 +208,9 @@ if (*p == '\0') return (1); while (*s) {- if (pm(p, s, flags))- return (1);+ r = pm(p, s, flags, depth + 1);+ if (r)+ return (r); ++s; } return (0);@@ -220,7 +227,7 @@ } if (*end == ']') { /* We found [...], try to match it. */- if (!pm_list(p + 1, end, *s, flags))+ if (*s == '\0' || !pm_list(p + 1, end, *s, flags)) return (0); p = end; /* Jump to trailing ']' char. */ break;@@ -272,10 +279,14 @@ } static int-pm_w(const wchar_t *p, const wchar_t *s, int flags)+pm_w(const wchar_t *p, const wchar_t *s, int flags, int depth) { const wchar_t *end;+ int r; + if (depth > MAX_RECURSION)+ return (-1);+ /* * Ignore leading './', './/', '././', etc. */@@ -307,8 +318,9 @@ if (*p == L'\0') return (1); while (*s) {- if (pm_w(p, s, flags))- return (1);+ r = pm_w(p, s, flags, depth + 1);+ if (r)+ return (r); ++s; } return (0);@@ -387,7 +399,7 @@ return (0); /* Leading '^' anchors the start of the pattern. */- if (*p == '^') {+ if ((flags & PATHMATCH_NO_ANCHOR_START) && *p == '^') { ++p; flags &= ~PATHMATCH_NO_ANCHOR_START; }@@ -401,22 +413,25 @@ ++p; while (*s == '/') ++s;- return (pm(p, s, flags));+ return (pm(p, s, flags, 0)); } /* If start is unanchored, try to match start of each path element. */ if (flags & PATHMATCH_NO_ANCHOR_START) { for ( ; s != NULL; s = strchr(s, '/')) {+ int r;+ if (*s == '/') s++;- if (pm(p, s, flags))- return (1);+ r = pm(p, s, flags, 0);+ if (r)+ return (r); } return (0); } /* Default: Match from beginning. */- return (pm(p, s, flags));+ return (pm(p, s, flags, 0)); } int@@ -429,7 +444,7 @@ return (0); /* Leading '^' anchors the start of the pattern. */- if (*p == L'^') {+ if ((flags & PATHMATCH_NO_ANCHOR_START) && *p == L'^') { ++p; flags &= ~PATHMATCH_NO_ANCHOR_START; }@@ -443,20 +458,23 @@ ++p; while (*s == L'/') ++s;- return (pm_w(p, s, flags));+ return (pm_w(p, s, flags, 0)); } /* If start is unanchored, try to match start of each path element. */ if (flags & PATHMATCH_NO_ANCHOR_START) { for ( ; s != NULL; s = wcschr(s, L'/')) {+ int r;+ if (*s == L'/') s++;- if (pm_w(p, s, flags))- return (1);+ r = pm_w(p, s, flags, 0);+ if (r)+ return (r); } return (0); } /* Default: Match from beginning. */- return (pm_w(p, s, flags));+ return (pm_w(p, s, flags, 0)); }
c/archive_random.c view
@@ -58,19 +58,13 @@ #include "archive_random_private.h" #if defined(_WIN32) && !defined(__CYGWIN__)-#if defined(HAVE_BCRYPT_H) && _WIN32_WINNT >= _WIN32_WINNT_VISTA-/* don't use bcrypt when XP needs to be supported */ #include <bcrypt.h> /* Common in other bcrypt implementations, but missing from VS2008. */ #ifndef BCRYPT_SUCCESS #define BCRYPT_SUCCESS(r) ((NTSTATUS)(r) == STATUS_SUCCESS) #endif--#elif defined(HAVE_WINCRYPT_H)-#include <wincrypt.h> #endif-#endif #ifndef O_CLOEXEC #define O_CLOEXEC 0@@ -85,7 +79,6 @@ archive_random(void *buf, size_t nbytes) { #if defined(_WIN32) && !defined(__CYGWIN__)-# if defined(HAVE_BCRYPT_H) && _WIN32_WINNT >= _WIN32_WINNT_VISTA NTSTATUS status; BCRYPT_ALG_HANDLE hAlg; @@ -98,25 +91,6 @@ return ARCHIVE_FAILED; return ARCHIVE_OK;-# else- HCRYPTPROV hProv;- BOOL success;-- success = CryptAcquireContext(&hProv, NULL, NULL, PROV_RSA_FULL,- CRYPT_VERIFYCONTEXT);- if (!success && GetLastError() == (DWORD)NTE_BAD_KEYSET) {- success = CryptAcquireContext(&hProv, NULL, NULL,- PROV_RSA_FULL, CRYPT_NEWKEYSET);- }- if (success) {- success = CryptGenRandom(hProv, (DWORD)nbytes, (BYTE*)buf);- CryptReleaseContext(hProv, 0);- if (success)- return ARCHIVE_OK;- }- /* TODO: Does this case really happen? */- return ARCHIVE_FAILED;-# endif #elif !defined(HAVE_ARC4RANDOM_BUF) && (!defined(_WIN32) || defined(__CYGWIN__)) la_arc4random_buf(buf, nbytes); return ARCHIVE_OK;
c/archive_read.c view
@@ -36,6 +36,9 @@ #ifdef HAVE_ERRNO_H #include <errno.h> #endif+#ifdef HAVE_LIMITS_H+#include <limits.h>+#endif #include <stdio.h> #ifdef HAVE_STDLIB_H #include <stdlib.h>@@ -49,6 +52,7 @@ #include "archive.h" #include "archive_entry.h"+#include "archive_integer.h" #include "archive_private.h" #include "archive_read_private.h" @@ -253,41 +257,38 @@ } static int-client_open_proxy(struct archive_read_filter *self)-{- int r = ARCHIVE_OK;- if (self->archive->client.opener != NULL)- r = (self->archive->client.opener)(- (struct archive *)self->archive, self->data);- return (r);-}--static int client_switch_proxy(struct archive_read_filter *self, unsigned int iindex) {- int r1 = ARCHIVE_OK, r2 = ARCHIVE_OK;- void *data2 = NULL;+ struct archive_read *a;+ int r1 = ARCHIVE_OK, r2 = ARCHIVE_OK;+ void *data2; + while (self->upstream != NULL)+ self = self->upstream;+ a = self->archive;+ /* Don't do anything if already in the specified data node */- if (self->archive->client.cursor == iindex)+ if (a->client.cursor == iindex) return (ARCHIVE_OK); - self->archive->client.cursor = iindex;- data2 = self->archive->client.dataset[self->archive->client.cursor].data;- if (self->archive->client.switcher != NULL)+ a->client.cursor = iindex;+ data2 = a->client.dataset[a->client.cursor].data;+ if (a->client.switcher != NULL) {- r1 = r2 = (self->archive->client.switcher)- ((struct archive *)self->archive, self->data, data2);+ r1 = r2 = (a->client.switcher)+ ((struct archive *)a, self->data, data2); self->data = data2; } else { /* Attempt to call close and open instead */- if (self->archive->client.closer != NULL)- r1 = (self->archive->client.closer)- ((struct archive *)self->archive, self->data);+ if (a->client.closer != NULL)+ r1 = (a->client.closer)+ ((struct archive *)a, self->data); self->data = data2;- r2 = client_open_proxy(self);+ if (a->client.opener != NULL)+ r2 = (a->client.opener)+ ((struct archive *)a, self->data); } return (r1 < r2) ? r1 : r2; }@@ -403,7 +404,9 @@ { struct archive_read *a = (struct archive_read *)_a; void *p;+ size_t alloc_size; unsigned int i;+ unsigned int nodes; archive_check_magic(_a, ARCHIVE_READ_MAGIC, ARCHIVE_STATE_NEW, "archive_read_add_callback_data");@@ -412,14 +415,26 @@ "Invalid index specified"); return ARCHIVE_FATAL; }- p = realloc(a->client.dataset, sizeof(*a->client.dataset)- * (++(a->client.nodes)));++ if (a->client.nodes == UINT_MAX ||+ archive_ckd_mul_size(&alloc_size,+ (size_t)a->client.nodes + 1, sizeof(*a->client.dataset))) {+ archive_set_error(&a->archive, ENOMEM,+ "No memory");+ return ARCHIVE_FATAL;+ }++ nodes = a->client.nodes + 1;+ p = realloc(a->client.dataset, alloc_size); if (p == NULL) { archive_set_error(&a->archive, ENOMEM, "No memory"); return ARCHIVE_FATAL; }+ a->client.dataset = (struct archive_read_data_node *)p;+ a->client.nodes = nodes;+ for (i = a->client.nodes - 1; i > iindex; i--) { a->client.dataset[i].data = a->client.dataset[i-1].data; a->client.dataset[i].begin_position = -1;@@ -934,7 +949,10 @@ if (r == ARCHIVE_EOF) r = ARCHIVE_OK; - a->archive.state = ARCHIVE_STATE_HEADER;+ if (r == ARCHIVE_FATAL)+ a->archive.state = ARCHIVE_STATE_FATAL;+ else+ a->archive.state = ARCHIVE_STATE_HEADER; return (r); } @@ -942,6 +960,8 @@ archive_seek_data(struct archive *_a, int64_t offset, int whence) { struct archive_read *a = (struct archive_read *)_a;+ la_int64_t r;+ archive_check_magic(_a, ARCHIVE_READ_MAGIC, ARCHIVE_STATE_DATA, "archive_seek_data_block"); @@ -949,10 +969,14 @@ archive_set_error(&a->archive, ARCHIVE_ERRNO_PROGRAMMER, "Internal error: " "No format_seek_data_block function registered");+ a->archive.state = ARCHIVE_STATE_FATAL; return (ARCHIVE_FATAL); } - return (a->format->seek_data)(a, offset, whence);+ r = (a->format->seek_data)(a, offset, whence);+ if (r == ARCHIVE_FATAL)+ a->archive.state = ARCHIVE_STATE_FATAL;+ return (r); } /*@@ -968,6 +992,8 @@ const void **buff, size_t *size, int64_t *offset) { struct archive_read *a = (struct archive_read *)_a;+ int r;+ archive_check_magic(_a, ARCHIVE_READ_MAGIC, ARCHIVE_STATE_DATA, "archive_read_data_block"); @@ -975,10 +1001,14 @@ archive_set_error(&a->archive, ARCHIVE_ERRNO_PROGRAMMER, "Internal error: " "No format->read_data function registered");+ a->archive.state = ARCHIVE_STATE_FATAL; return (ARCHIVE_FATAL); } - return (a->format->read_data)(a, buff, size, offset);+ r = (a->format->read_data)(a, buff, size, offset);+ if (r == ARCHIVE_FATAL)+ a->archive.state = ARCHIVE_STATE_FATAL;+ return (r); } static int@@ -1366,7 +1396,7 @@ /* Move data forward in copy buffer if necessary. */ if (filter->next > filter->buffer &&- filter->next + min > filter->buffer + filter->buffer_size) {+ min > filter->buffer_size - (filter->next - filter->buffer)) { if (filter->avail > 0) memmove(filter->buffer, filter->next, filter->avail);
c/archive_read_append_filter.c view
@@ -37,7 +37,7 @@ archive_read_append_filter(struct archive *_a, int code) { int r1, r2, number_bidders, i;- char str[20];+ const char *str; struct archive_read_filter_bidder *bidder; struct archive_read_filter *filter; struct archive_read *a = (struct archive_read *)_a;@@ -53,15 +53,15 @@ r1 = (ARCHIVE_OK); break; case ARCHIVE_FILTER_GZIP:- strcpy(str, "gzip");+ str = "gzip"; r1 = archive_read_support_filter_gzip(_a); break; case ARCHIVE_FILTER_BZIP2:- strcpy(str, "bzip2");+ str = "bzip2"; r1 = archive_read_support_filter_bzip2(_a); break; case ARCHIVE_FILTER_COMPRESS:- strcpy(str, "compress (.Z)");+ str = "compress (.Z)"; r1 = archive_read_support_filter_compress(_a); break; case ARCHIVE_FILTER_PROGRAM:@@ -69,43 +69,43 @@ "Cannot append program filter using archive_read_append_filter"); return (ARCHIVE_FATAL); case ARCHIVE_FILTER_LZMA:- strcpy(str, "lzma");+ str = "lzma"; r1 = archive_read_support_filter_lzma(_a); break; case ARCHIVE_FILTER_XZ:- strcpy(str, "xz");+ str = "xz"; r1 = archive_read_support_filter_xz(_a); break; case ARCHIVE_FILTER_UU:- strcpy(str, "uu");+ str = "uu"; r1 = archive_read_support_filter_uu(_a); break; case ARCHIVE_FILTER_RPM:- strcpy(str, "rpm");+ str = "rpm"; r1 = archive_read_support_filter_rpm(_a); break; case ARCHIVE_FILTER_LZ4:- strcpy(str, "lz4");+ str = "lz4"; r1 = archive_read_support_filter_lz4(_a); break; case ARCHIVE_FILTER_ZSTD:- strcpy(str, "zstd");+ str = "zstd"; r1 = archive_read_support_filter_zstd(_a); break; case ARCHIVE_FILTER_LZIP:- strcpy(str, "lzip");+ str = "lzip"; r1 = archive_read_support_filter_lzip(_a); break; case ARCHIVE_FILTER_LZOP:- strcpy(str, "lzop");+ str = "lzop"; r1 = archive_read_support_filter_lzop(_a); break; case ARCHIVE_FILTER_LRZIP:- strcpy(str, "lrzip");+ str = "lrzip"; r1 = archive_read_support_filter_lrzip(_a); break; case ARCHIVE_FILTER_GRZIP:- strcpy(str, "grzip");+ str = "grzip"; r1 = archive_read_support_filter_grzip(_a); break; default:
c/archive_read_data_into_fd.c view
@@ -46,9 +46,9 @@ */ static int pad_to(struct archive *a, int fd, int can_lseek,- size_t nulls_size, const char *nulls,- int64_t target_offset, int64_t actual_offset)+ char **nulls, int64_t target_offset, int64_t actual_offset) {+ const size_t nulls_size = 16384; size_t to_write; ssize_t bytes_written; @@ -56,16 +56,26 @@ actual_offset = lseek(fd, target_offset - actual_offset, SEEK_CUR); if (actual_offset != target_offset) {- archive_set_error(a, errno, "Seek error");+ archive_set_error(a,+ actual_offset == -1 ? errno : ARCHIVE_ERRNO_MISC,+ "Seek error"); return (ARCHIVE_FATAL); } return (ARCHIVE_OK); }+ if (*nulls == NULL) {+ *nulls = calloc(1, nulls_size);+ if (*nulls == NULL) {+ archive_set_error(a, errno, "Out of memory");+ return (ARCHIVE_FATAL);+ }+ }+ while (target_offset > actual_offset) { to_write = nulls_size; if (target_offset < actual_offset + (int64_t)nulls_size) to_write = (size_t)(target_offset - actual_offset);- bytes_written = write(fd, nulls, to_write);+ bytes_written = write(fd, *nulls, to_write); if (bytes_written < 0) { archive_set_error(a, errno, "Write error"); return (ARCHIVE_FATAL);@@ -84,29 +94,27 @@ const void *buff; size_t size, bytes_to_write; ssize_t bytes_written;+ int64_t fd_offset; int64_t target_offset; int64_t actual_offset = 0; int can_lseek; char *nulls = NULL;- size_t nulls_size = 16384; archive_check_magic(a, ARCHIVE_READ_MAGIC, ARCHIVE_STATE_DATA, "archive_read_data_into_fd"); can_lseek = (fstat(fd, &st) == 0) && S_ISREG(st.st_mode);- if (!can_lseek) {- nulls = calloc(1, nulls_size);- if (!nulls) {- r = ARCHIVE_FATAL;- goto cleanup;- }+ if (can_lseek) {+ fd_offset = lseek(fd, 0, SEEK_CUR);+ if (fd_offset == -1)+ can_lseek = 0; } while ((r = archive_read_data_block(a, &buff, &size, &target_offset)) == ARCHIVE_OK) { const char *p = buff; if (target_offset > actual_offset) {- r = pad_to(a, fd, can_lseek, nulls_size, nulls,+ r = pad_to(a, fd, can_lseek, &nulls, target_offset, actual_offset); if (r != ARCHIVE_OK) break;@@ -129,7 +137,7 @@ } if (r == ARCHIVE_EOF && target_offset > actual_offset) {- r2 = pad_to(a, fd, can_lseek, nulls_size, nulls,+ r2 = pad_to(a, fd, can_lseek, &nulls, target_offset, actual_offset); if (r2 != ARCHIVE_OK) r = r2;@@ -139,5 +147,15 @@ free(nulls); if (r != ARCHIVE_EOF) return (r);- return (ARCHIVE_OK);+ r = ARCHIVE_OK;+ if (can_lseek) {+ int64_t offset = lseek(fd, 0, SEEK_CUR);+ if (offset - fd_offset != actual_offset) {+ archive_set_error(a,+ offset == -1 ? errno : ARCHIVE_ERRNO_MISC,+ "Seek error");+ r = ARCHIVE_FATAL;+ }+ }+ return (r); }
c/archive_read_disk_entry_from_file.c view
@@ -256,6 +256,11 @@ char *linkbuffer; ssize_t lnklen; + if (st->st_size >= SSIZE_MAX) {+ archive_set_error(&a->archive, ENOMEM,+ "Couldn't read link data");+ return (ARCHIVE_FAILED);+ } linkbuffer = malloc(linkbuffer_len + 1); if (linkbuffer == NULL) { archive_set_error(&a->archive, ENOMEM,@@ -894,7 +899,7 @@ r = ioctl(*fd, FS_IOC_FIEMAP, fm); if (r < 0) {- /* When something error happens, it is better we+ /* When some error happens, it is better we * should return ARCHIVE_OK because an earlier * version(<2.6.28) cannot perform FS_IOC_FIEMAP. */ goto exit_setup_sparse_fiemap;
c/archive_read_disk_posix.c view
@@ -920,7 +920,7 @@ if (a->matching) { r = archive_match_path_excluded(a->matching, entry); if (r < 0) {- archive_set_error(&(a->archive), errno,+ archive_set_error(&(a->archive), archive_errno(a->matching), "%s", archive_error_string(a->matching)); return (r); }@@ -1034,7 +1034,7 @@ if (a->matching) { r = archive_match_time_excluded(a->matching, entry); if (r < 0) {- archive_set_error(&(a->archive), errno,+ archive_set_error(&(a->archive), archive_errno(a->matching), "%s", archive_error_string(a->matching)); return (r); }@@ -1060,7 +1060,7 @@ if (a->matching) { r = archive_match_owner_excluded(a->matching, entry); if (r < 0) {- archive_set_error(&(a->archive), errno,+ archive_set_error(&(a->archive), archive_errno(a->matching), "%s", archive_error_string(a->matching)); return (r); }@@ -1413,18 +1413,18 @@ /* * This is the new filesystem which we have to generate a new ID for. */- fid = t->max_filesystem_id++;- if (fid > MAX_FILESYSTEM_ID) {+ fid = t->max_filesystem_id;+ if (fid >= MAX_FILESYSTEM_ID) { archive_set_error(&a->archive, ENOMEM, "Too many filesystems"); return (ARCHIVE_FATAL); }- if (t->max_filesystem_id > t->allocated_filesystem) {+ if (fid + 1 > t->allocated_filesystem) { int s; void *p; - s = t->max_filesystem_id * 2;+ s = (fid + 1) * 2; p = realloc(t->filesystem_table,- s * sizeof(*t->filesystem_table));+ s * sizeof(*t->filesystem_table)); if (p == NULL) { archive_set_error(&a->archive, ENOMEM, "Can't allocate tar data");@@ -1433,6 +1433,7 @@ t->filesystem_table = (struct filesystem *)p; t->allocated_filesystem = s; }+ t->max_filesystem_id = fid + 1; t->current_filesystem_id = fid; t->current_filesystem = &(t->filesystem_table[fid]); t->current_filesystem->dev = dev;
c/archive_read_disk_windows.c view
@@ -358,6 +358,8 @@ } indata = malloc(MAXIMUM_REPARSE_DATA_BUFFER_SIZE);+ if (indata == NULL)+ return (-1); ret = DeviceIoControl(h, FSCTL_GET_REPARSE_POINT, NULL, 0, indata, 1024, &inbytes, NULL); if (ret == 0) {@@ -946,7 +948,7 @@ if (a->matching) { r = archive_match_path_excluded(a->matching, entry); if (r < 0) {- archive_set_error(&(a->archive), errno,+ archive_set_error(&(a->archive), archive_errno(a->matching), "%s", archive_error_string(a->matching)); return (r); }@@ -1018,7 +1020,7 @@ if (a->matching) { r = archive_match_time_excluded(a->matching, entry); if (r < 0) {- archive_set_error(&(a->archive), errno,+ archive_set_error(&(a->archive), archive_errno(a->matching), "%s", archive_error_string(a->matching)); return (r); }@@ -1044,7 +1046,7 @@ if (a->matching) { r = archive_match_owner_excluded(a->matching, entry); if (r < 0) {- archive_set_error(&(a->archive), errno,+ archive_set_error(&(a->archive), archive_errno(a->matching), "%s", archive_error_string(a->matching)); return (r); }@@ -1450,18 +1452,18 @@ /* * There is a new filesystem, we generate a new ID for. */- fid = t->max_filesystem_id++;- if (fid > MAX_FILESYSTEM_ID) {+ fid = t->max_filesystem_id;+ if (fid >= MAX_FILESYSTEM_ID) { archive_set_error(&a->archive, ENOMEM, "Too many filesystems"); return (ARCHIVE_FATAL); }- if (t->max_filesystem_id > t->allocated_filesystem) {+ if (fid + 1 > t->allocated_filesystem) { int s; void *p; - s = t->max_filesystem_id * 2;+ s = (fid + 1) * 2; p = realloc(t->filesystem_table,- s * sizeof(*t->filesystem_table));+ s * sizeof(*t->filesystem_table)); if (p == NULL) { archive_set_error(&a->archive, ENOMEM, "Can't allocate tar data");@@ -1470,6 +1472,7 @@ t->filesystem_table = (struct filesystem *)p; t->allocated_filesystem = s; }+ t->max_filesystem_id = fid + 1; t->current_filesystem_id = fid; t->current_filesystem = &(t->filesystem_table[fid]); t->current_filesystem->dev = dev;@@ -1632,6 +1635,8 @@ struct tree_entry *te; te = calloc(1, sizeof(*te));+ if (te == NULL)+ return; te->next = t->stack; te->parent = t->current; if (te->parent)@@ -1704,6 +1709,8 @@ struct tree *t; t = calloc(1, sizeof(*t));+ if (t == NULL)+ return (NULL); archive_string_init(&(t->full_path)); archive_string_init(&t->path); if (archive_wstring_ensure(&t->path, 15) == NULL) {
c/archive_read_open_filename.c view
@@ -40,6 +40,9 @@ #ifdef HAVE_IO_H #include <io.h> #endif+#ifdef HAVE_LIMITS_H+#include <limits.h>+#endif #ifdef HAVE_STDLIB_H #include <stdlib.h> #endif@@ -181,7 +184,7 @@ if (wfilename == NULL) wfilename = L""; mine = calloc(1,- sizeof(*mine) + wcslen(wfilename) * sizeof(wchar_t));+ sizeof(*mine) + wcslen(wfilename) * MB_LEN_MAX); if (mine == NULL) goto no_memory; mine->block_size = block_size;@@ -315,7 +318,7 @@ } #else archive_set_error(a, ARCHIVE_ERRNO_MISC,- "Unexpedted operation in archive_read_open_filename");+ "Unexpected operation in archive_read_open_filename"); goto fail; #endif }
c/archive_read_support_filter_all.c view
@@ -43,34 +43,34 @@ archive_check_magic(a, ARCHIVE_READ_MAGIC, ARCHIVE_STATE_NEW, "archive_read_support_filter_all"); - /* Bzip falls back to "bunzip2" command-line */+ /* Bzip falls back to "bzip2 -d" command-line */ archive_read_support_filter_bzip2(a); /* The decompress code doesn't use an outside library. */ archive_read_support_filter_compress(a); /* Gzip decompress falls back to "gzip -d" command-line. */ archive_read_support_filter_gzip(a);- /* Lzip falls back to "unlzip" command-line program. */+ /* Lzip falls back to "lzip -d -q" command-line. */ archive_read_support_filter_lzip(a); /* The LZMA file format has a very weak signature, so it * may not be feasible to keep this here, but we'll try. * This will come back out if there are problems. */- /* Lzma falls back to "unlzma" command-line program. */+ /* Lzma falls back to "lzma -d -qq" command-line. */ archive_read_support_filter_lzma(a);- /* Xz falls back to "unxz" command-line program. */+ /* Xz falls back to "xz -d -qq" command-line. */ archive_read_support_filter_xz(a); /* The decode code doesn't use an outside library. */ archive_read_support_filter_uu(a); /* The decode code doesn't use an outside library. */ archive_read_support_filter_rpm(a);- /* The decode code always uses "lrzip -q -d" command-line. */+ /* The decode code always uses "lrzip -d -q" command-line. */ archive_read_support_filter_lrzip(a); /* Lzop decompress falls back to "lzop -d" command-line. */ archive_read_support_filter_lzop(a); /* The decode code always uses "grzip -d" command-line. */ archive_read_support_filter_grzip(a);- /* Lz4 falls back to "lz4 -d" command-line program. */+ /* Lz4 falls back to "lz4 -d -q" command-line. */ archive_read_support_filter_lz4(a);- /* Zstd falls back to "zstd -d" command-line program. */+ /* Zstd falls back to "zstd -d -qq" command-line. */ archive_read_support_filter_zstd(a); /* Note: We always return ARCHIVE_OK here, even if some of the
c/archive_read_support_filter_bzip2.c view
@@ -28,6 +28,9 @@ #ifdef HAVE_ERRNO_H #include <errno.h> #endif+#ifdef HAVE_LIMITS_H+#include <limits.h>+#endif #include <stdio.h> #ifdef HAVE_STDLIB_H #include <stdlib.h>@@ -63,8 +66,7 @@ /* * Note that we can detect bzip2 archives even if we can't decompress * them. (In fact, we like detecting them because we can give better- * error messages.) So the bid framework here gets compiled even- * if bzlib is unavailable.+ * error messages.) */ static int bzip2_reader_bid(struct archive_read_filter_bidder *, struct archive_read_filter *); static int bzip2_reader_init(struct archive_read_filter *);@@ -113,13 +115,12 @@ bzip2_reader_bid(struct archive_read_filter_bidder *self, struct archive_read_filter *filter) { const unsigned char *buffer;- ssize_t avail; int bits_checked; (void)self; /* UNUSED */ /* Minimal bzip2 archive is 14 bytes. */- buffer = __archive_read_filter_ahead(filter, 14, &avail);+ buffer = __archive_read_filter_ahead(filter, 14, NULL); if (buffer == NULL) return (0); @@ -150,9 +151,9 @@ #if !defined(HAVE_BZLIB_H) || !defined(BZ_CONFIG_ERROR) /*- * If we don't have the library on this system, we can't actually do the- * decompression. We can, however, still detect compressed archives- * and emit a useful message.+ * If we don't have the library on this system, we can't do the+ * decompression directly. We can, however, try to run "bzip2 -d"+ * in case that's available. */ static int bzip2_reader_init(struct archive_read_filter *self)@@ -232,6 +233,8 @@ /* Try to fill the output buffer. */ for (;;) {+ ssize_t max_in;+ if (!state->valid) { if (bzip2_reader_bid(self->bidder, self->upstream) == 0) { state->eof = 1;@@ -286,15 +289,13 @@ return (ARCHIVE_FATAL); } state->stream.next_in = (char *)(uintptr_t)read_buf;+ if (UINT_MAX >= SSIZE_MAX)+ max_in = SSIZE_MAX;+ else+ max_in = UINT_MAX;+ if (ret > max_in)+ ret = max_in; state->stream.avail_in = (uint32_t)ret;- /* There is no more data, return whatever we have. */- if (ret == 0) {- state->eof = 1;- *p = state->out_block;- decompressed = state->stream.next_out- - state->out_block;- return (decompressed);- } /* Decompress as much as we can in one pass. */ ret = BZ2_bzDecompress(&(state->stream));
c/archive_read_support_filter_compress.c view
@@ -104,6 +104,7 @@ void *out_block; /* Decompression status variables. */+ int initialized; int use_reset_code; int end_of_stream; /* EOF status. */ int maxcode; /* Largest code. */@@ -172,13 +173,12 @@ struct archive_read_filter *filter) { const unsigned char *buffer;- ssize_t avail; int bits_checked; (void)self; /* UNUSED */ /* Shortest valid compress file is 3 bytes. */- buffer = __archive_read_filter_ahead(filter, 3, &avail);+ buffer = __archive_read_filter_ahead(filter, 3, NULL); if (buffer == NULL) return (0);@@ -212,7 +212,6 @@ struct private_data *state; static const size_t out_block_size = 64 * 1024; void *out_block;- int code; self->code = ARCHIVE_FILTER_COMPRESS; self->name = "compress (.Z)";@@ -233,14 +232,23 @@ state->out_block = out_block; self->vtable = &compress_reader_vtable; - /* XXX MOVE THE FOLLOWING OUT OF INIT() XXX */+ return (ARCHIVE_OK);+} +static int+compress_filter_init(struct archive_read_filter *self)+{+ struct private_data *state = (struct private_data *)self->data;+ int code;++ state->initialized = 1;+ (void)getbits(self, 8); /* Skip first signature byte. */ (void)getbits(self, 8); /* Skip second signature byte. */ /* Get compression parameters. */ code = getbits(self, 8);- if ((code & 0x1f) > 16) {+ if (code < 0 || (code & 0x1f) > 16) { archive_set_error(&self->archive->archive, -1, "Invalid compressed data"); return (ARCHIVE_FATAL);@@ -278,6 +286,11 @@ int ret; state = (struct private_data *)self->data;+ if (!state->initialized) {+ ret = compress_filter_init(self);+ if (ret != ARCHIVE_OK)+ return (ret);+ } if (state->end_of_stream) { *pblock = NULL; return (0);@@ -325,18 +338,11 @@ struct private_data *state = (struct private_data *)self->data; int code, newcode; - static int debug_buff[1024];- static unsigned debug_index;- again: code = newcode = getbits(self, state->bits); if (code < 0) return (code); - debug_buff[debug_index++] = code;- if (debug_index >= sizeof(debug_buff)/sizeof(debug_buff[0]))- debug_index = 0;- /* If it's a reset code, reset the dictionary. */ if ((code == 256) && state->use_reset_code) { /*@@ -434,7 +440,7 @@ 1, &ret); if (ret == 0) return (-1);- if (ret < 0 || state->next_in == NULL)+ if (state->next_in == NULL) return (ARCHIVE_FATAL); state->consume_unnotified = state->avail_in = ret; }
c/archive_read_support_filter_grzip.c view
@@ -80,12 +80,11 @@ struct archive_read_filter *filter) { const unsigned char *p;- ssize_t avail; (void)self; /* UNUSED */ - p = __archive_read_filter_ahead(filter, sizeof(grzip_magic), &avail);- if (p == NULL || avail == 0)+ p = __archive_read_filter_ahead(filter, sizeof(grzip_magic), NULL);+ if (p == NULL) return (0); if (memcmp(p, grzip_magic, sizeof(grzip_magic)))
c/archive_read_support_filter_gzip.c view
@@ -56,7 +56,6 @@ char in_stream; unsigned char *out_block; size_t out_block_size;- int64_t total_out; unsigned long crc; uint32_t mtime; char *name;@@ -71,12 +70,7 @@ /* * Note that we can detect gzip archives even if we can't decompress * them. (In fact, we like detecting them because we can give better- * error messages.) So the bid framework here gets compiled even- * if zlib is unavailable.- *- * TODO: If zlib is unavailable, gzip_bidder_init() should- * use the compress_program framework to try to fire up an external- * gzip program.+ * error messages.) */ static int gzip_bidder_bid(struct archive_read_filter_bidder *, struct archive_read_filter *);@@ -146,7 +140,7 @@ * is all fixed layout. */ len = 10; p = __archive_read_filter_ahead(filter, len, &avail);- if (p == NULL || avail == 0)+ if (p == NULL) return (0); /* We only support deflation- third byte must be 0x08. */ if (memcmp(p, "\x1F\x8B\x08", 3) != 0)@@ -171,7 +165,7 @@ p = __archive_read_filter_ahead(filter, len + 2, &avail); if (p == NULL) return (0);- len += ((int)p[len + 1] << 8) | (int)p[len];+ len += archive_le16dec(p + len); len += 2; } @@ -284,7 +278,7 @@ state = (struct private_data *)self->data; - /* A mtime of 0 is considered invalid/missing. */+ /* An mtime of 0 is considered invalid/missing. */ if (state->mtime != 0) archive_entry_set_mtime(entry, state->mtime, 0); @@ -341,7 +335,7 @@ consume_header(struct archive_read_filter *self) { struct private_data *state;- ssize_t avail;+ ssize_t avail, max_in; size_t len; int ret; @@ -359,6 +353,18 @@ /* Initialize compression library. */ state->stream.next_in = (unsigned char *)(uintptr_t) __archive_read_filter_ahead(self->upstream, 1, &avail);+ if (avail < 0) {+ archive_set_error(&self->archive->archive,+ ARCHIVE_ERRNO_MISC,+ "Failed to read gzip input");+ return (ARCHIVE_FATAL);+ }+ if (UINT_MAX >= SSIZE_MAX)+ max_in = SSIZE_MAX;+ else+ max_in = UINT_MAX;+ if (avail > max_in)+ avail = max_in; state->stream.avail_in = (uInt)avail; ret = inflateInit2(&(state->stream), -15 /* Don't check for zlib header */);@@ -400,7 +406,6 @@ { struct private_data *state; const unsigned char *p;- ssize_t avail; state = (struct private_data *)self->data; @@ -416,8 +421,8 @@ } /* GZip trailer is a fixed 8 byte structure. */- p = __archive_read_filter_ahead(self->upstream, 8, &avail);- if (p == NULL || avail == 0)+ p = __archive_read_filter_ahead(self->upstream, 8, NULL);+ if (p == NULL) return (ARCHIVE_FATAL); /* XXX TODO: Verify the length and CRC. */@@ -502,7 +507,6 @@ /* We've read as much as we can. */ decompressed = state->stream.next_out - state->out_block;- state->total_out += decompressed; if (decompressed == 0) *p = NULL; else
c/archive_read_support_filter_lrzip.c view
@@ -79,15 +79,15 @@ struct archive_read_filter *filter) { const unsigned char *p;- ssize_t avail, len;+ ssize_t len; int i; (void)self; /* UNUSED */ /* Start by looking at the first six bytes of the header, which * is all fixed layout. */ len = 6;- p = __archive_read_filter_ahead(filter, len, &avail);- if (p == NULL || avail == 0)+ p = __archive_read_filter_ahead(filter, len, NULL);+ if (p == NULL) return (0); if (memcmp(p, LRZIP_HEADER_MAGIC, LRZIP_HEADER_MAGIC_LEN))
c/archive_read_support_filter_lz4.c view
@@ -44,6 +44,7 @@ #include "archive.h" #include "archive_endian.h"+#include "archive_integer.h" #include "archive_private.h" #include "archive_read_private.h" #include "archive_xxhash.h"@@ -95,8 +96,7 @@ /* * Note that we can detect lz4 archives even if we can't decompress * them. (In fact, we like detecting them because we can give better- * error messages.) So the bid framework here gets compiled even- * if liblz4 is unavailable.+ * error messages.) */ static int lz4_reader_bid(struct archive_read_filter_bidder *, struct archive_read_filter *); static int lz4_reader_init(struct archive_read_filter *);@@ -145,52 +145,75 @@ const unsigned char *buffer; ssize_t avail; int bits_checked = 0;- ssize_t min_lz4_archive_size = 11;+ const size_t min_lz4_archive_size = 11; - // LZ4 skippable frames contain a 4 byte magic number followed by- // a 4 byte frame data size, then that number of bytes of data. Regular- // frames contain a 4 byte magic number followed by a 2-14 byte frame- // header, some data, and a 3 byte end marker.- ssize_t min_lz4_frame_size = 8;+ /*+ * LZ4 skippable frames contain a 4 byte magic number followed by+ * a 4 byte frame data size, then that number of bytes of data.+ * Regular frames contain a 4 byte magic number followed by a 2-14+ * byte frame header, some data, and a 3 byte end marker.+ */+ const size_t min_lz4_frame_size = 8; - ssize_t offset_in_buffer = 0;- ssize_t max_lookahead = 64 * 1024;+ size_t offset_in_buffer = 0;+ const size_t max_lookahead = 64 * 1024;+ uint32_t magic_number; - (void)self; // UNUSED+ (void)self; /* UNUSED */ - // Zstd and LZ4 skippable frame magic numbers are identical. To- // differentiate these two, we need to look for a non-skippable- // frame.+ /*+ * Zstd and LZ4 skippable frame magic numbers are identical. To+ * differentiate these two, we need to look for a non-skippable+ * frame.+ */ - // Minimal lz4 archive is 11 bytes.- buffer = __archive_read_filter_ahead(filter, min_lz4_archive_size, &avail);+ /* Minimal lz4 archive is 11 bytes. */+ buffer = __archive_read_filter_ahead(filter, min_lz4_archive_size,+ &avail); if (buffer == NULL) return (0); - uint32_t magic_number = archive_le32dec(buffer);+ magic_number = archive_le32dec(buffer); while ((magic_number & LZ4_SKIPPABLE_MASK) == LZ4_SKIPPABLE_START) {+ size_t min;+ uint32_t frame_data_size; - offset_in_buffer += 4; // Skip over the magic number+ /* Skip over the magic number */+ offset_in_buffer += 4; - // Ensure that we can read another 4 bytes.- if (offset_in_buffer + 4 > avail) {- buffer = __archive_read_filter_ahead(filter, offset_in_buffer + 4, &avail);+ /* Ensure that we can read another 4 bytes. */+ if (offset_in_buffer + 4 > (size_t)avail) {+ buffer = __archive_read_filter_ahead(filter,+ offset_in_buffer + 4, &avail); if (buffer == NULL) return (0); } - uint32_t frame_data_size = archive_le32dec(buffer + offset_in_buffer);+ frame_data_size = archive_le32dec(buffer + offset_in_buffer); - // Skip over the 4 frame data size bytes, plus the value stored there.- offset_in_buffer += 4 + frame_data_size;+ /* Skip over the 4 frame data size bytes */+ offset_in_buffer += 4; - // There should be at least one more frame if this is LZ4 data.- if (offset_in_buffer + min_lz4_frame_size > avail) { // TODO: should this be >= ?- if (offset_in_buffer + min_lz4_frame_size > max_lookahead)+ /* Skip over the value stored there. */+ if (archive_ckd_add_size(&offset_in_buffer,+ offset_in_buffer, frame_data_size))+ return (0);++ /*+ * There should be at least one more frame+ * if this is LZ4 data.+ */+ if (archive_ckd_add_size(&min,+ offset_in_buffer, min_lz4_frame_size))+ return (0);+ /* TODO: should this be >= ? */+ if (min > (size_t)avail) {+ if (min > max_lookahead) return (0); - buffer = __archive_read_filter_ahead(filter, offset_in_buffer + min_lz4_frame_size, &avail);+ buffer = __archive_read_filter_ahead(filter,+ min, &avail); if (buffer == NULL) return (0); }@@ -198,8 +221,10 @@ magic_number = archive_le32dec(buffer + offset_in_buffer); } - // We have skipped over any skippable frames. Either a regular LZ4 frame- // follows, or this isn't LZ4 data.+ /*+ * We have skipped over any skippable frames. Either a regular LZ4 frame+ * follows, or this isn't LZ4 data.+ */ bits_checked = offset_in_buffer; buffer = buffer + offset_in_buffer;@@ -241,9 +266,9 @@ #if !defined(HAVE_LIBLZ4) /*- * If we don't have the library on this system, we can't actually do the- * decompression. We can, however, still detect compressed archives- * and emit a useful message.+ * If we don't have the library on this system, we can't do the+ * decompression directly. We can, however, try to run "lz4 -d -q"+ * in case that's available. */ static int lz4_reader_init(struct archive_read_filter *self)@@ -304,13 +329,15 @@ out_block_size += 64 * 1024; if (state->out_block_size < out_block_size) { free(state->out_block);+ state->out_block = NULL; out_block = malloc(out_block_size);- state->out_block_size = out_block_size; if (out_block == NULL) {+ state->out_block_size = 0; archive_set_error(&self->archive->archive, ENOMEM, "Can't allocate data for lz4 decompression"); return (ARCHIVE_FATAL); }+ state->out_block_size = out_block_size; state->out_block = out_block; } if (!state->flags.block_independence)@@ -327,13 +354,15 @@ if (state->out_block_size < out_block_size) { free(state->out_block);+ state->out_block = NULL; out_block = malloc(out_block_size);- state->out_block_size = out_block_size; if (out_block == NULL) {+ state->out_block_size = 0; archive_set_error(&self->archive->archive, ENOMEM, "Can't allocate data for lz4 decompression"); return (ARCHIVE_FATAL); }+ state->out_block_size = out_block_size; state->out_block = out_block; } return (ARCHIVE_OK);@@ -361,7 +390,7 @@ break; case READ_DEFAULT_STREAM: case READ_LEGACY_STREAM:- /* Reading a lz4 stream already failed. */+ /* Reading an lz4 stream already failed. */ archive_set_error(&self->archive->archive, ARCHIVE_ERRNO_MISC, "Invalid sequence"); return (ARCHIVE_FATAL);@@ -408,9 +437,15 @@ "Malformed lz4 data"); return (ARCHIVE_FATAL); }- uint32_t skip_bytes = archive_le32dec(read_buf);- __archive_read_filter_consume(self->upstream,- 4 + skip_bytes);+ int64_t skip_bytes = archive_le32dec(read_buf);+ if (__archive_read_filter_consume(self->upstream,+ 4 + skip_bytes) < 0) {+ archive_set_error(+ &self->archive->archive,+ ARCHIVE_ERRNO_MISC,+ "Malformed lz4 data");+ return (ARCHIVE_FATAL);+ } } else { /* Ignore following unrecognized data. */ state->eof = 1;@@ -512,8 +547,11 @@ /* Make sure we have a large enough buffer for uncompressed data. */ if (lz4_allocate_out_block(self) != ARCHIVE_OK) return (ARCHIVE_FATAL);- if (state->flags.stream_checksum)+ if (state->flags.stream_checksum) { state->xxh32_state = __archive_xxhash.XXH32_init(0);+ if (state->xxh32_state == NULL)+ return (ARCHIVE_FATAL);+ } state->decoded_size = 0; /* Success */@@ -530,7 +568,6 @@ struct private_data *state = (struct private_data *)self->data; ssize_t compressed_size; const char *read_buf;- ssize_t bytes_remaining; int checksum_size; ssize_t uncompressed_size; size_t prefix64k;@@ -538,8 +575,7 @@ *p = NULL; /* Make sure we have 4 bytes for a block size. */- read_buf = __archive_read_filter_ahead(self->upstream, 4,- &bytes_remaining);+ read_buf = __archive_read_filter_ahead(self->upstream, 4, NULL); if (read_buf == NULL) goto truncated_error; compressed_size = archive_le32dec(read_buf);@@ -565,7 +601,7 @@ a huge buffer used for decoded data. */ read_buf = __archive_read_filter_ahead(self->upstream,- 4 + compressed_size + checksum_size, &bytes_remaining);+ 4 + compressed_size + checksum_size, NULL); if (read_buf == NULL) goto truncated_error; @@ -673,7 +709,6 @@ { struct private_data *state = (struct private_data *)self->data; const char *read_buf;- ssize_t bytes_remaining; ssize_t ret; if (state->stage == SELECT_STREAM) {@@ -697,7 +732,7 @@ unsigned int checksum; unsigned int checksum_stream; read_buf = __archive_read_filter_ahead(self->upstream,- 4, &bytes_remaining);+ 4, NULL); if (read_buf == NULL) { archive_set_error(&self->archive->archive, ARCHIVE_ERRNO_MISC, "truncated lz4 input");
c/archive_read_support_filter_lzop.c view
@@ -71,7 +71,6 @@ struct read_lzop { unsigned char *out_block; size_t out_block_size;- int64_t total_out; int flags; uint32_t compressed_cksum; uint32_t uncompressed_cksum;@@ -118,7 +117,6 @@ #if defined(HAVE_LZO_LZOCONF_H) && defined(HAVE_LZO_LZO1X_H) return (ARCHIVE_OK); #else- /* Return ARCHIVE_WARN since this always uses an external program. */ archive_set_error(_a, ARCHIVE_ERRNO_MISC, "Using external lzop program for lzop decompression"); return (ARCHIVE_WARN);@@ -133,12 +131,11 @@ struct archive_read_filter *filter) { const unsigned char *p;- ssize_t avail; (void)self; /* UNUSED */ - p = __archive_read_filter_ahead(filter, LZOP_HEADER_MAGIC_LEN, &avail);- if (p == NULL || avail == 0)+ p = __archive_read_filter_ahead(filter, LZOP_HEADER_MAGIC_LEN, NULL);+ if (p == NULL) return (0); if (memcmp(p, LZOP_HEADER_MAGIC, LZOP_HEADER_MAGIC_LEN))@@ -429,12 +426,11 @@ } /*- * If the both uncompressed size and compressed size are the same,+ * If both uncompressed size and compressed size are the same, * we do not decompress this block. */ if (state->uncompressed_size == state->compressed_size) { *p = b;- state->total_out += state->compressed_size; state->unconsumed_bytes = state->compressed_size; return ((ssize_t)state->uncompressed_size); }@@ -478,7 +474,6 @@ __archive_read_filter_consume(self->upstream, state->compressed_size); *p = state->out_block;- state->total_out += out_size; return ((ssize_t)out_size); }
c/archive_read_support_filter_rpm.c view
@@ -38,20 +38,7 @@ #include "archive_read_private.h" struct rpm {- int64_t total_in;- uint64_t hpos;- uint64_t hlen;- unsigned char header[16];- enum {- ST_LEAD, /* Skipping 'Lead' section. */- ST_HEADER, /* Reading 'Header' section;- * first 16 bytes. */- ST_HEADER_DATA, /* Skipping 'Header' section. */- ST_PADDING, /* Skipping padding data after the- * 'Header' section. */- ST_ARCHIVE /* Reading 'Archive' section. */- } state;- int first_header;+ int data_reached; }; #define RPM_LEAD_SIZE 96 /* Size of 'Lead' section. */ #define RPM_MIN_HEAD_SIZE 16 /* Minimum size of 'Head'. */@@ -64,8 +51,6 @@ const void **); static int rpm_filter_close(struct archive_read_filter *); -static inline size_t rpm_limit_bytes(uint64_t, size_t);- #if ARCHIVE_VERSION_NUMBER < 4000000 /* Deprecated; remove in libarchive 4.0 */ int@@ -95,12 +80,11 @@ struct archive_read_filter *filter) { const unsigned char *b;- ssize_t avail; int bits_checked; (void)self; /* UNUSED */ - b = __archive_read_filter_ahead(filter, 8, &avail);+ b = __archive_read_filter_ahead(filter, 8, NULL); if (b == NULL) return (0); @@ -152,133 +136,107 @@ } self->data = rpm;- rpm->state = ST_LEAD;+ rpm->data_reached = 0; self->vtable = &rpm_reader_vtable; return (ARCHIVE_OK); } -static inline size_t-rpm_limit_bytes(uint64_t bytes, size_t max)+static ssize_t+skip_padding(struct archive_read_filter *self) {- return (bytes > max ? max : (size_t)bytes);+ const unsigned char *h;+ ssize_t avail, count, r;++ do {+ h = __archive_read_filter_ahead(self->upstream, 1, &avail);+ if (h == NULL)+ return (ARCHIVE_FATAL);+ for (count = 0; count < avail && *h++ == '\0'; count++)+ ;+ r = __archive_read_filter_consume(self->upstream, count);+ if (r < 0)+ return (r);+ } while (count == avail);++ return (ARCHIVE_OK); } static ssize_t-rpm_filter_read(struct archive_read_filter *self, const void **buff)+skip_prologue(struct archive_read_filter *self) {- struct rpm *rpm;- const unsigned char *b;- ssize_t avail_in, total, used;- size_t n;- uint64_t section;- uint64_t bytes;+ const unsigned char *h;+ ssize_t r;+ int header, seen_header = 0; - rpm = (struct rpm *)self->data;- *buff = NULL;- total = avail_in = 0;- b = NULL;- used = 0;+ /* Skip lead size. */+ r = __archive_read_filter_consume(self->upstream, RPM_LEAD_SIZE);+ if (r < 0)+ return (r);+ do {- if (b == NULL) {- b = __archive_read_filter_ahead(self->upstream, 1,- &avail_in);- if (b == NULL) {- if (avail_in < 0)- return (ARCHIVE_FATAL);- else- break;- }- }+ /* Read header intro. */+ h = __archive_read_filter_ahead(self->upstream,+ RPM_MIN_HEAD_SIZE, NULL);+ if (h == NULL)+ return (ARCHIVE_FATAL); - switch (rpm->state) {- case ST_LEAD:- if (rpm->total_in + avail_in < RPM_LEAD_SIZE)- used += avail_in;- else {- n = (size_t)(RPM_LEAD_SIZE - rpm->total_in);- used += n;- b += n;- rpm->state = ST_HEADER;- rpm->hpos = 0;- rpm->hlen = 0;- rpm->first_header = 1;- }- break;- case ST_HEADER:- n = rpm_limit_bytes(RPM_MIN_HEAD_SIZE - rpm->hpos,- avail_in - used);- memcpy(rpm->header+rpm->hpos, b, n);- b += n;- used += n;- rpm->hpos += n;+ header = (memcmp(h, "\x8E\xAD\xE8\x01", 4) == 0);+ if (header) {+ int64_t bytes, length, section; - if (rpm->hpos == RPM_MIN_HEAD_SIZE) {- if (rpm->header[0] != 0x8e ||- rpm->header[1] != 0xad ||- rpm->header[2] != 0xe8 ||- rpm->header[3] != 0x01) {- if (rpm->first_header) {- archive_set_error(- &self->archive->archive,- ARCHIVE_ERRNO_FILE_FORMAT,- "Unrecognized rpm header");- return (ARCHIVE_FATAL);- }- rpm->state = ST_ARCHIVE;- *buff = rpm->header;- total = RPM_MIN_HEAD_SIZE;- break;- }- /* Calculate 'Header' length. */- section = archive_be32dec(rpm->header+8);- bytes = archive_be32dec(rpm->header+12);- rpm->hlen = rpm->hpos + section * 16 + bytes;- rpm->state = ST_HEADER_DATA;- rpm->first_header = 0;- }- break;- case ST_HEADER_DATA:- n = rpm_limit_bytes(rpm->hlen - rpm->hpos,- avail_in - used);- b += n;- used += n;- rpm->hpos += n;- if (rpm->hpos == rpm->hlen)- rpm->state = ST_PADDING;- break;- case ST_PADDING:- while (used < avail_in) {- if (*b != 0) {- /* Read next header. */- rpm->state = ST_HEADER;- rpm->hpos = 0;- rpm->hlen = 0;- break;- }- b++;- used++;- }- break;- case ST_ARCHIVE:- *buff = b;- total = avail_in;- used = avail_in;- break;- }- if (used == avail_in) {- rpm->total_in += used;- __archive_read_filter_consume(self->upstream, used);- b = NULL;- used = 0;+ seen_header = 1;++ /* Calculate header length. */+ section = archive_be32dec(h + 8);+ bytes = archive_be32dec(h + 12);+ length = RPM_MIN_HEAD_SIZE + section * 16 + bytes;++ /* Skip header. */+ r = __archive_read_filter_consume(self->upstream,+ length);+ if (r < 0)+ return (r);++ /* Skip padding. */+ r = skip_padding(self);+ if (r != ARCHIVE_OK)+ return (r); }- } while (total == 0 && avail_in > 0);+ } while (header); - if (used > 0 && b != NULL) {- rpm->total_in += used;- __archive_read_filter_consume(self->upstream, used);+ /* At least one header must have been encountered. */+ if (!seen_header) {+ archive_set_error(+ &self->archive->archive,+ ARCHIVE_ERRNO_FILE_FORMAT,+ "Unrecognized rpm header");+ return (ARCHIVE_FATAL); }- return (total);++ return (ARCHIVE_OK);+}++static ssize_t+rpm_filter_read(struct archive_read_filter *self, const void **buff)+{+ struct rpm *rpm;+ ssize_t r;++ rpm = (struct rpm *)self->data;++ if (!rpm->data_reached) {+ r = skip_prologue(self);+ if (r != ARCHIVE_OK)+ return (r);+ rpm->data_reached = 1;+ }++ *buff = __archive_read_filter_ahead(self->upstream, 1, &r);+ if (r > 0)+ __archive_read_filter_consume(self->upstream, r);++ return r; } static int
c/archive_read_support_filter_uu.c view
@@ -43,8 +43,6 @@ /* Maximum lookahead during bid phase */ #define UUENCODE_BID_MAX_READ 128*1024 /* in bytes */ -#define UUENCODE_MAX_LINE_LENGTH 34*1024 /* in bytes */- struct uudecode { int64_t total; unsigned char *in_buff;@@ -224,7 +222,7 @@ len = get_line(*b, *avail, nl); /*- * Read bytes more while it does not reach the end of line.+ * Read more bytes while it does not reach the end of line. */ while (*nl == 0 && len == *avail && !quit && *nbytes_read < UUENCODE_BID_MAX_READ) {@@ -423,7 +421,6 @@ /* Allocate the new buffer. */ ptr = malloc(newsize); if (ptr == NULL) {- free(ptr); archive_set_error(&self->archive->archive, ENOMEM, "Can't allocate data for uudecode");@@ -480,13 +477,15 @@ used = 0; total = 0; out = uudecode->out_buff;+ if (avail_in > 2 * UUENCODE_BID_MAX_READ)+ avail_in = 2 * UUENCODE_BID_MAX_READ; ravail = avail_in; if (uudecode->state == ST_IGNORE) { used = avail_in; goto finish; } if (uudecode->in_cnt) {- if (uudecode->in_cnt > UUENCODE_MAX_LINE_LENGTH) {+ if (uudecode->in_cnt > UUENCODE_BID_MAX_READ) { archive_set_error(&self->archive->archive, ARCHIVE_ERRNO_FILE_FORMAT, "Invalid format data");@@ -523,6 +522,12 @@ "Insufficient compressed data"); return (ARCHIVE_FATAL); }+ if (len > UUENCODE_BID_MAX_READ) {+ archive_set_error(&self->archive->archive,+ ARCHIVE_ERRNO_FILE_FORMAT,+ "Invalid format data");+ return (ARCHIVE_FATAL);+ } llen = len; if ((nl == 0) && (uudecode->state != ST_UUEND)) { if (total == 0 && ravail <= 0) {@@ -544,7 +549,7 @@ uudecode->in_cnt = len; if (total == 0) { /* Do not return 0; it means end-of-file.- * We should try to read bytes more. */+ * We should try to read more bytes. */ __archive_read_filter_consume( self->upstream, ravail); goto read_more;@@ -586,11 +591,11 @@ if (uudecode->name != NULL) free(uudecode->name); uudecode->name = malloc(namelen + 1);- if (uudecode->name == NULL) {- archive_set_error(- &self->archive->archive,- ENOMEM,- "Can't allocate data for uudecode");+ if (uudecode->name == NULL) {+ archive_set_error(+ &self->archive->archive,+ ENOMEM,+ "Can't allocate data for uudecode"); return (ARCHIVE_FATAL); } strncpy(uudecode->name,
c/archive_read_support_filter_xz.c view
@@ -54,7 +54,6 @@ lzma_stream stream; unsigned char *out_block; size_t out_block_size;- int64_t total_out; char eof; /* True = found end of compressed data. */ char in_stream; @@ -83,8 +82,7 @@ /* * Note that we can detect xz and lzma compressed files even if we * can't decompress them. (In fact, we like detecting them because we- * can give better error messages.) So the bid framework here gets- * compiled even if no lzma library is available.+ * can give better error messages.) */ static int xz_bidder_bid(struct archive_read_filter_bidder *, struct archive_read_filter *);@@ -203,11 +201,10 @@ struct archive_read_filter *filter) { const unsigned char *buffer;- ssize_t avail; (void)self; /* UNUSED */ - buffer = __archive_read_filter_ahead(filter, 6, &avail);+ buffer = __archive_read_filter_ahead(filter, 6, NULL); if (buffer == NULL) return (0); @@ -237,14 +234,13 @@ struct archive_read_filter *filter) { const unsigned char *buffer;- ssize_t avail; uint32_t dicsize; uint64_t uncompressed_size; int bits_checked; (void)self; /* UNUSED */ - buffer = __archive_read_filter_ahead(filter, 14, &avail);+ buffer = __archive_read_filter_ahead(filter, 14, NULL); if (buffer == NULL) return (0); @@ -343,11 +339,10 @@ lzip_has_member(struct archive_read_filter *filter) { const unsigned char *buffer;- ssize_t avail; int bits_checked; int log2dic; - buffer = __archive_read_filter_ahead(filter, 6, &avail);+ buffer = __archive_read_filter_ahead(filter, 6, NULL); if (buffer == NULL) return (0); @@ -526,6 +521,7 @@ free(state->out_block); free(state); self->data = NULL;+ self->vtable = NULL; return (ARCHIVE_FATAL); } @@ -536,12 +532,11 @@ const unsigned char *h; lzma_filter filters[2]; unsigned char props[5];- ssize_t avail_in; uint32_t dicsize; int log2dic, ret; state = (struct private_data *)self->data;- h = __archive_read_filter_ahead(self->upstream, 6, &avail_in);+ h = __archive_read_filter_ahead(self->upstream, 6, NULL); if (h == NULL) return (ARCHIVE_FATAL); @@ -706,7 +701,6 @@ } decompressed = state->stream.next_out - state->out_block;- state->total_out += decompressed; state->member_out += decompressed; if (decompressed == 0) { if (member_in != state->member_in &&
c/archive_read_support_filter_zstd.c view
@@ -48,6 +48,7 @@ #include "archive.h" #include "archive_endian.h"+#include "archive_integer.h" #include "archive_private.h" #include "archive_read_private.h" @@ -57,7 +58,6 @@ ZSTD_DStream *dstream; unsigned char *out_block; size_t out_block_size;- int64_t total_out; char in_frame; /* True = in the middle of a zstd frame. */ char eof; /* True = found end of compressed data. */ };@@ -70,8 +70,7 @@ /* * Note that we can detect zstd compressed files even if we can't decompress * them. (In fact, we like detecting them because we can give better error- * messages.) So the bid framework here gets compiled even if no zstd library- * is available.+ * messages.) */ static int zstd_bidder_bid(struct archive_read_filter_bidder *, struct archive_read_filter *);@@ -110,55 +109,77 @@ { const unsigned char *buffer; ssize_t avail;-- // Zstandard skippable frames contain a 4 byte magic number followed by- // a 4 byte frame data size, then that number of bytes of data. Regular- // frames contain a 4 byte magic number followed by a 2-14 byte frame- // header, some data, and a 3 byte end marker.- ssize_t min_zstd_frame_size = 8;+ /*+ * Zstandard skippable frames contain a 4 byte magic number followed+ * by a 4 byte frame data size, then that number of bytes of data.+ * Regular frames contain a 4 byte magic number followed by a 2-14+ * byte frame header, some data, and a 3 byte end marker.+ */+ const size_t min_zstd_frame_size = 8; - ssize_t offset_in_buffer = 0;- ssize_t max_lookahead = 64 * 1024;+ size_t offset_in_buffer = 0;+ const size_t max_lookahead = 64 * 1024;+ uint32_t magic_number; - // Zstd regular frame magic number.- uint32_t zstd_magic = 0xFD2FB528U;+ /* Zstd regular frame magic number. */+ const uint32_t zstd_magic = 0xFD2FB528U; - // Note: Zstd and LZ4 skippable frame magic numbers are identical.- // To differentiate these two, we need to look for a non-skippable- // frame.- uint32_t zstd_magic_skippable_start = 0x184D2A50;- uint32_t zstd_magic_skippable_mask = 0xFFFFFFF0;+ /*+ * Note: Zstd and LZ4 skippable frame magic numbers are identical.+ * To differentiate these two, we need to look for a non-skippable+ * frame.+ */+ const uint32_t zstd_magic_skippable_start = 0x184D2A50;+ const uint32_t zstd_magic_skippable_mask = 0xFFFFFFF0; - (void) self; // UNUSED+ (void) self; /* UNUSED */ - buffer = __archive_read_filter_ahead(filter, min_zstd_frame_size, &avail);+ buffer = __archive_read_filter_ahead(filter, min_zstd_frame_size,+ &avail); if (buffer == NULL) return (0); - uint32_t magic_number = archive_le32dec(buffer);+ magic_number = archive_le32dec(buffer); - while ((magic_number & zstd_magic_skippable_mask) == zstd_magic_skippable_start) {+ while ((magic_number & zstd_magic_skippable_mask) ==+ zstd_magic_skippable_start) {+ size_t min;+ uint32_t frame_data_size; - offset_in_buffer += 4; // Skip over the magic number+ /* Skip over the magic number */+ offset_in_buffer += 4; - // Ensure that we can read another 4 bytes.- if (offset_in_buffer + 4 > avail) {- buffer = __archive_read_filter_ahead(filter, offset_in_buffer + 4, &avail);+ /* Ensure that we can read another 4 bytes. */+ if (offset_in_buffer + 4 > (size_t)avail) {+ buffer = __archive_read_filter_ahead(filter,+ offset_in_buffer + 4, &avail); if (buffer == NULL) return (0); } - uint32_t frame_data_size = archive_le32dec(buffer + offset_in_buffer);+ frame_data_size = archive_le32dec(buffer + offset_in_buffer); - // Skip over the 4 frame data size bytes, plus the value stored there.- offset_in_buffer += 4 + frame_data_size;+ /* Skip over the 4 frame data size bytes */+ offset_in_buffer += 4; - // There should be at least one more frame if this is zstd data.- if (offset_in_buffer + min_zstd_frame_size > avail) {- if (offset_in_buffer + min_zstd_frame_size > max_lookahead)+ /* Skip over the value stored there. */+ if (archive_ckd_add_size(&offset_in_buffer,+ offset_in_buffer, frame_data_size))+ return (0);++ /*+ * There should be at least one more frame+ * if this is zstd data.+ */+ if (archive_ckd_add_size(&min,+ offset_in_buffer, min_zstd_frame_size))+ return (0);+ if (min > (size_t)avail) {+ if (min > max_lookahead) return (0); - buffer = __archive_read_filter_ahead(filter, offset_in_buffer + min_zstd_frame_size, &avail);+ buffer = __archive_read_filter_ahead(filter,+ min, &avail); if (buffer == NULL) return (0); }@@ -166,8 +187,10 @@ magic_number = archive_le32dec(buffer + offset_in_buffer); } - // We have skipped over any skippable frames. Either a regular zstd frame- // follows, or this isn't zstd data.+ /*+ * We have skipped over any skippable frames. Either a regular zstd+ * frame follows, or this isn't zstd data.+ */ if (magic_number == zstd_magic) return (offset_in_buffer + 4);@@ -179,7 +202,7 @@ /* * If we don't have the library on this system, we can't do the- * decompression directly. We can, however, try to run "zstd -d"+ * decompression directly. We can, however, try to run "zstd -d -qq" * in case that's available. */ static int@@ -310,7 +333,6 @@ } decompressed = out.pos;- state->total_out += decompressed; if (decompressed == 0) *p = NULL; else
c/archive_read_support_format_7zip.c view
@@ -67,6 +67,7 @@ #define SFX_MIN_ADDR 0x27000 #define SFX_MAX_ADDR 0x60000 #define SFX_MAX_OFFSET (SFX_MAX_ADDR - SFX_MIN_ADDR)+#define SFX_MAX_SEEK 0x800000 /* * PE format@@ -174,7 +175,7 @@ struct _7z_folder { uint64_t numCoders; struct _7z_coder {- unsigned long codec;+ uint64_t codec; uint64_t numInStreams; uint64_t numOutStreams; uint64_t propertiesSize;@@ -334,7 +335,7 @@ int stream_valid; #endif /* Decoding Zstandard data. */-#if HAVE_ZSTD_H+#if HAVE_ZSTD_H && HAVE_LIBZSTD ZSTD_DStream *zstd_dstream; int zstdstream_valid; #endif@@ -345,12 +346,10 @@ IByteIn bytein; struct { const unsigned char *next_in;- int64_t avail_in;- int64_t total_in;- int64_t stream_in;+ size_t avail_in;+ size_t stream_in; unsigned char *next_out;- int64_t avail_out;- int64_t total_out;+ size_t avail_out; int overconsumed; } ppstream; int ppmd7_valid;@@ -398,6 +397,27 @@ * the files. */ #define UMAX_ENTRY ARCHIVE_LITERAL_ULL(100000000) +/*+ * Files without unpack streams must be described by the EmptyStream bitmap,+ * which consumes one bit for every file entry in FilesInfo.+ */+static int+files_info_numfiles_is_sane(const struct _7zip *zip)+{+ uint64_t empty_stream_map_bytes;++ if (zip->numFiles > UMAX_ENTRY)+ return (0);+ if (zip->numFiles > SIZE_MAX / sizeof(*zip->entries))+ return (0);++ if (zip->numFiles <= zip->si.ss.unpack_streams)+ return (1);++ empty_stream_map_bytes = (zip->numFiles + 7) / 8;+ return (empty_stream_map_bytes <= zip->header_bytes_remaining);+}+ static int archive_read_format_7zip_has_encrypted_entries(struct archive_read *); static int archive_read_support_format_7zip_capabilities(struct archive_read *a); static int archive_read_format_7zip_bid(struct archive_read *, int);@@ -407,8 +427,8 @@ static int archive_read_format_7zip_read_data_skip(struct archive_read *); static int archive_read_format_7zip_read_header(struct archive_read *, struct archive_entry *);-static int check_7zip_header_in_sfx(const char *);-static unsigned long decode_codec_id(const unsigned char *, size_t);+static int check_7zip_header_in_sfx(const unsigned char *);+static int decode_codec_id(const unsigned char *, size_t, uint64_t *); static int decode_encoded_header_info(struct archive_read *, struct _7z_stream_info *); static int decompress(struct archive_read *, struct _7zip *,@@ -449,9 +469,9 @@ size_t); static int seek_pack(struct archive_read *); static int64_t skip_stream(struct archive_read *, size_t);-static int skip_sfx(struct archive_read *, const ssize_t);-static ssize_t find_pe_overlay(struct archive_read *);-static ssize_t find_elf_data_sec(struct archive_read *);+static int get_data_offset(struct archive_read *, int64_t *, int);+static int get_pe_sfx_offset(struct archive_read *, int64_t *);+static int get_elf_sfx_offset(struct archive_read *, int64_t *, int); static int slurp_central_directory(struct archive_read *, struct _7zip *, struct _7z_header_info *); static int setup_decode_folder(struct archive_read *, struct _7z_folder *,@@ -464,6 +484,7 @@ static ssize_t Bcj2_Decode(struct _7zip *, uint8_t *, size_t); static size_t sparc_Convert(struct _7zip *, uint8_t *, size_t); static size_t powerpc_Convert(struct _7zip *, uint8_t *, size_t);+static int64_t seek_compat(struct archive_read *, int64_t, int, int); int@@ -530,64 +551,92 @@ } static int-archive_read_format_7zip_bid(struct archive_read *a, int best_bid)+get_data_offset(struct archive_read *a, int64_t *data_offset, int compat) {- const char *p;-- /* If someone has already bid more than 32, then avoid- trashing the look-ahead buffers with a seek. */- if (best_bid > 32)- return (-1);+ const unsigned char *p;+ int64_t offset, sfx_offset;+ int r, window; - if ((p = __archive_read_ahead(a, 6, NULL)) == NULL)- return (0);+ if ((p = __archive_read_ahead(a, 6, NULL)) == NULL) {+ archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT,+ "Truncated 7-Zip file body");+ return (ARCHIVE_FATAL);+ } /* If first six bytes are the 7-Zip signature,- * return the bid right now. */- if (memcmp(p, _7ZIP_SIGNATURE, 6) == 0)- return (48);+ * return the offset right now. */+ if (memcmp(p, _7ZIP_SIGNATURE, 6) == 0) {+ *data_offset = 0;+ return (ARCHIVE_OK);+ } /*- * It may a 7-Zip SFX archive file. If first two bytes are- * 'M' and 'Z' available on Windows or first four bytes are- * "\x7F\x45LF" available on posix like system, seek the 7-Zip- * signature. While find_pe_overlay can be performed without- * performing a seek, find_elf_data_sec requires one,+ * It may be a 7-Zip SFX archive file. If first two bytes are+ * 'M' and 'Z' (PE, Windows) or first four bytes are+ * "\x7F\x45LF" (ELF, Posix-like systems), seek the 7-Zip+ * signature. While get_pe_sfx_offset can be performed without+ * performing a seek, get_elf_sfx_offset requires one, * thus a performance difference between the two is expected. */- if ((p[0] == 'M' && p[1] == 'Z') || memcmp(p, "\x7F\x45LF", 4) == 0) {- const ssize_t min_addr = p[0] == 'M' ? find_pe_overlay(a) :- find_elf_data_sec(a);- ssize_t offset = min_addr;- ssize_t window = 4096;+ if ((p[0] == 'M' && p[1] == 'Z'))+ r = get_pe_sfx_offset(a, &sfx_offset);+ else if (memcmp(p, "\x7F\x45LF", 4) == 0)+ r = get_elf_sfx_offset(a, &sfx_offset, compat);+ else+ r = ARCHIVE_FATAL;+ if (r < ARCHIVE_WARN || sfx_offset > SFX_MAX_SEEK)+ goto fail;++ offset = sfx_offset;+ window = 4096;+ while (offset + window <= (sfx_offset + SFX_MAX_OFFSET)) { ssize_t bytes_avail;- while (offset + window <= (min_addr + SFX_MAX_OFFSET)) {- const char *buff = __archive_read_ahead(a,- offset + window, &bytes_avail);- if (buff == NULL) {- /* Remaining bytes are less than window. */- window >>= 1;- if (window < 0x40)- return (0);- continue;- }- p = buff + offset;- while (p + 32 < buff + bytes_avail) {- int step = check_7zip_header_in_sfx(p);- if (step == 0)- return (48);- p += step;+ const unsigned char *buff = __archive_read_ahead(a,+ offset + window, &bytes_avail);+ if (buff == NULL) {+ /* Remaining bytes are less than window. */+ window >>= 1;+ if (window < 0x40)+ goto fail;+ continue;+ }+ p = buff + offset;+ while (p + 32 < buff + bytes_avail) {+ int step = check_7zip_header_in_sfx(p);+ if (step == 0) {+ *data_offset = p - buff;+ return (ARCHIVE_OK); }- offset = p - buff;+ p += step; }+ offset = p - buff; }- return (0);+fail:+ archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT,+ "Couldn't find out 7-Zip header");+ return (ARCHIVE_FATAL); } static int-check_7zip_header_in_sfx(const char *p)+archive_read_format_7zip_bid(struct archive_read *a, int best_bid) {- switch ((unsigned char)p[5]) {+ int64_t data_offset;++ /* If someone has already bid more than 32, then avoid+ trashing the look-ahead buffers with a seek. */+ if (best_bid > 32)+ return (-1);++ if (get_data_offset(a, &data_offset, 0) < 0)+ return (0);++ return (48);+}++static int+check_7zip_header_in_sfx(const unsigned char *p)+{+ switch (p[5]) { case 0x1C: if (memcmp(p, _7ZIP_SIGNATURE, 6) != 0) return (6);@@ -596,8 +645,7 @@ * Magic Code, so we should do this in order not to * make a mis-detection. */- if (crc32(0, (const unsigned char *)p + 12, 20)- != archive_le32dec(p + 8))+ if (crc32(0, p + 12, 20) != archive_le32dec(p + 8)) return (6); /* Hit the header! */ return (0);@@ -611,79 +659,33 @@ } static int-skip_sfx(struct archive_read *a, const ssize_t min_addr)-{- const void *h;- const char *p, *q;- size_t skip, offset;- ssize_t bytes, window;-- if (__archive_read_seek(a, min_addr, SEEK_SET) < 0)- return (ARCHIVE_FATAL);-- offset = 0;- window = 1;- while (offset + window <= SFX_MAX_ADDR - SFX_MIN_ADDR) {- h = __archive_read_ahead(a, window, &bytes);- if (h == NULL) {- /* Remaining bytes are less than window. */- window >>= 1;- if (window < 0x40)- goto fatal;- continue;- }- if (bytes < 6) {- /* This case might happen when window == 1. */- window = 4096;- continue;- }- p = (const char *)h;- q = p + bytes;-- /*- * Scan ahead until we find something that looks- * like the 7-Zip header.- */- while (p + 32 < q) {- int step = check_7zip_header_in_sfx(p);- if (step == 0) {- struct _7zip *zip =- (struct _7zip *)a->format->data;- skip = p - (const char *)h;- __archive_read_consume(a, skip);- zip->seek_base = min_addr + offset + skip;- return (ARCHIVE_OK);- }- p += step;- }- skip = p - (const char *)h;- __archive_read_consume(a, skip);- offset += skip;- if (window == 1)- window = 4096;- }-fatal:- archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT,- "Couldn't find out 7-Zip header");- return (ARCHIVE_FATAL);-}--static ssize_t-find_pe_overlay(struct archive_read *a)+get_pe_sfx_offset(struct archive_read *a, int64_t *sfx_offset) { const char *h;- ssize_t bytes, max_offset, offset, sec_end;- ssize_t opt_hdr_sz, sec_cnt;+ int64_t max_offset, offset;+ ssize_t bytes;+ uint16_t opt_hdr_sz, sec_cnt; + /*+ * If encounter any weirdness, revert to old brute-force style search+ */+ *sfx_offset = SFX_MIN_ADDR;+ for (;;) { /* * Read Dos header to find e_lfanew */ h = __archive_read_ahead(a, PE_DOS_HDR_LEN, &bytes);- if (h == NULL || h[0] != 'M' || h[1] != 'Z') {+ if (h == NULL) {+ return (ARCHIVE_FATAL);+ }+ if (h[0] != 'M' || h[1] != 'Z') { break; } offset = archive_le32dec(h + PE_DOS_HDR_ELFANEW_OFFSET);+ if (offset > SFX_MAX_SEEK) {+ return (ARCHIVE_FATAL);+ } /* * Read COFF header to find opt header size and sec cnt@@ -691,8 +693,10 @@ if (bytes < offset + PE_COFF_HDR_LEN) { h = __archive_read_ahead(a, offset + PE_COFF_HDR_LEN, &bytes);- if (h == NULL || h[offset] != 'P' ||- h[offset + 1] != 'E') {+ if (h == NULL) {+ return (ARCHIVE_FATAL);+ }+ if (h[offset] != 'P' || h[offset + 1] != 'E') { break; } }@@ -710,6 +714,10 @@ break; } + if (offset + sec_cnt * PE_SEC_HDR_LEN > SFX_MAX_SEEK) {+ return (ARCHIVE_FATAL);+ }+ /* * Traverse sec table to find max raw offset (i.e., overlay) */@@ -717,12 +725,14 @@ h = __archive_read_ahead(a, offset + sec_cnt * PE_SEC_HDR_LEN, NULL); if (h == NULL) {- break;+ return (ARCHIVE_FATAL); } } max_offset = offset; while (sec_cnt > 0) {- sec_end = archive_le32dec(+ int64_t sec_end;++ sec_end = (int64_t)archive_le32dec( h + offset + PE_SEC_HDR_RAW_SZ_OFFSET) + archive_le32dec( h + offset + PE_SEC_HDR_RAW_ADDR_OFFSET);@@ -732,34 +742,40 @@ offset += PE_SEC_HDR_LEN; sec_cnt--; }- return (max_offset);+ *sfx_offset = max_offset;+ break; } - /*- * If encounter any weirdness, revert to old brute-force style search- */- return (SFX_MIN_ADDR);+ return (ARCHIVE_OK); } -static ssize_t-find_elf_data_sec(struct archive_read *a)+static int+get_elf_sfx_offset(struct archive_read *a, int64_t *sfx_offset, int compat) {+ int64_t r; const char *h; char big_endian, format_64;- ssize_t bytes, min_addr = SFX_MIN_ADDR;- ssize_t request;+ size_t request; uint64_t e_shoff, strtab_offset, strtab_size; uint16_t e_shentsize, e_shnum, e_shstrndx; uint16_t (*dec16)(const void *); uint32_t (*dec32)(const void *); uint64_t (*dec64)(const void *); + /*+ * If encounter any weirdness, revert to old brute-force style search+ */+ *sfx_offset = SFX_MIN_ADDR;+ for (;;) { /* * Read Elf header to find bitness & endianness */- h = __archive_read_ahead(a, ELF_HDR_MIN_LEN, &bytes);- if (h == NULL || memcmp(h, "\x7F\x45LF", 4) != 0) {+ h = __archive_read_ahead(a, ELF_HDR_MIN_LEN, NULL);+ if (h == NULL) {+ return (ARCHIVE_FATAL);+ }+ if (memcmp(h, "\x7F\x45LF", 4) != 0) { break; } format_64 = h[ELF_HDR_EI_CLASS_OFFSET] == 0x2;@@ -794,20 +810,28 @@ break; } + if ((int64_t)e_shoff < 0) {+ return (ARCHIVE_FATAL);+ }+ /* * Reading the section table to find strtab section */- if (__archive_read_seek(a, e_shoff, SEEK_SET) < 0) {- break;+ if (seek_compat(a, e_shoff, SEEK_SET, compat) < 0) {+ archive_set_error(&a->archive, ARCHIVE_ERRNO_MISC, "Seek error");+ return (ARCHIVE_FATAL); } if (format_64) {- request = (size_t)e_shnum * (size_t)e_shentsize + 0x28;+ request = (size_t)e_shnum * e_shentsize + 0x28; } else {- request = (size_t)e_shnum * (size_t)e_shentsize + 0x18;+ request = (size_t)e_shnum * e_shentsize + 0x18; }- h = __archive_read_ahead(a, request, &bytes);+ if (request > SFX_MAX_SEEK) {+ return (ARCHIVE_FATAL);+ }+ h = __archive_read_ahead(a, request, NULL); if (h == NULL) {- break;+ return (ARCHIVE_FATAL); } if (format_64) { strtab_offset = (*dec64)(@@ -820,45 +844,50 @@ strtab_size = (*dec32)( h + e_shstrndx * e_shentsize + 0x14); }- if (strtab_size < 6 || strtab_size > SIZE_MAX)- break;+ if ((int64_t)strtab_offset < 0 || strtab_size < 6 ||+ strtab_size > SFX_MAX_SEEK)+ return (ARCHIVE_FATAL); /* * Read the STRTAB section to find the .data offset */- if (__archive_read_seek(a, strtab_offset, SEEK_SET) < 0) {- break;+ if (seek_compat(a, strtab_offset, SEEK_SET, compat) < 0) {+ archive_set_error(&a->archive, ARCHIVE_ERRNO_MISC, "Seek error");+ return (ARCHIVE_FATAL); } h = __archive_read_ahead(a, strtab_size, NULL); if (h == NULL) {- break;+ return (ARCHIVE_FATAL); }- ssize_t data_sym_offset = -1;+ size_t data_sym_offset = strtab_size; for (size_t offset = 0; offset < strtab_size - 6; offset++) { if (memcmp(h + offset, ".data\00", 6) == 0) { data_sym_offset = offset; break; } }- if (data_sym_offset == -1) {+ if (data_sym_offset == strtab_size) { break; } /* * Find the section with the .data name */- if (__archive_read_seek(a, e_shoff, SEEK_SET) < 0) {- break;+ if (seek_compat(a, e_shoff, SEEK_SET, compat) < 0) {+ archive_set_error(&a->archive, ARCHIVE_ERRNO_MISC, "Seek error");+ return (ARCHIVE_FATAL); }- h = __archive_read_ahead(a, (size_t)e_shnum * (size_t)e_shentsize, NULL);+ h = __archive_read_ahead(a, (size_t)e_shnum * e_shentsize, NULL); if (h == NULL) {- break;+ return (ARCHIVE_FATAL); }- ssize_t sec_tbl_offset = 0, name_offset;+ size_t sec_tbl_offset = 0; while (e_shnum > 0) {+ uint32_t name_offset;+ name_offset = (*dec32)(h + sec_tbl_offset); if (name_offset == data_sym_offset) {- uint64_t sel_offset;+ int64_t sel_offset; if (format_64) { sel_offset = (*dec64)(@@ -867,9 +896,8 @@ sel_offset = (*dec32)( h + sec_tbl_offset + 0x10); }- if (sel_offset > SSIZE_MAX)- break;- min_addr = (ssize_t)sel_offset;+ if (sel_offset >= 0)+ *sfx_offset = sel_offset; break; } sec_tbl_offset += e_shentsize;@@ -878,8 +906,10 @@ break; } - __archive_read_seek(a, 0, SEEK_SET);- return (min_addr);+ r = seek_compat(a, 0, SEEK_SET, compat);+ if (r < 0)+ archive_set_error(&a->archive, ARCHIVE_ERRNO_MISC, "Seek error");+ return (int)r; } static int@@ -1004,29 +1034,19 @@ const int supported_attrs = FILE_ATTRIBUTE_READONLY | FILE_ATTRIBUTE_HIDDEN | FILE_ATTRIBUTE_SYSTEM; if (zip_entry->attr & supported_attrs) {- char *fflags_text, *ptr;- /* allocate for ",rdonly,hidden,system" */- fflags_text = malloc(22 * sizeof(*fflags_text));- if (fflags_text != NULL) {- ptr = fflags_text;- if (zip_entry->attr & FILE_ATTRIBUTE_READONLY) {- strcpy(ptr, ",rdonly");- ptr = ptr + 7;- }- if (zip_entry->attr & FILE_ATTRIBUTE_HIDDEN) {- strcpy(ptr, ",hidden");- ptr = ptr + 7;- }- if (zip_entry->attr & FILE_ATTRIBUTE_SYSTEM) {- strcpy(ptr, ",system");- ptr = ptr + 7;- }- if (ptr > fflags_text) {- archive_entry_copy_fflags_text(entry,- fflags_text + 1);- }- free(fflags_text);- }+ char buf[sizeof(",rdonly,hidden,system")];+ char *fflags[3] = { "", "", "" };+ char **flag = fflags;++ if (zip_entry->attr & FILE_ATTRIBUTE_READONLY)+ *flag++ = ",rdonly";+ if (zip_entry->attr & FILE_ATTRIBUTE_HIDDEN)+ *flag++ = ",hidden";+ if (zip_entry->attr & FILE_ATTRIBUTE_SYSTEM)+ *flag++ = ",system";++ snprintf(buf, sizeof(buf), "%s%s%s", fflags[0], fflags[1], fflags[2]);+ archive_entry_copy_fflags_text(entry, buf + 1); } /* If there's no body, force read_data() to return EOF immediately. */@@ -1037,6 +1057,13 @@ unsigned char *symname = NULL; size_t symsize = 0; + if (zip->entry_bytes_remaining > 1024 * 1024) {+ archive_set_error(&a->archive, ENOMEM,+ "Rejecting malformed 7zip archive: "+ "symlink contents exceed 1 megabyte");+ return (ARCHIVE_FATAL);+ }+ /* * Symbolic-name is recorded as its contents. We have to * read the contents at this time.@@ -1189,7 +1216,7 @@ */ bytes_skipped = skip_stream(a, (size_t)zip->entry_bytes_remaining); if (bytes_skipped < 0)- return (ARCHIVE_FATAL);+ return ((int)bytes_skipped); zip->entry_bytes_remaining = 0; /* This entry is finished and done. */@@ -1281,17 +1308,20 @@ #endif -static unsigned long-decode_codec_id(const unsigned char *codecId, size_t id_size)+static int+decode_codec_id(const unsigned char *codecId, size_t id_size, uint64_t *id) { unsigned i;- unsigned long id = 0;+ uint64_t v = 0; for (i = 0; i < id_size; i++) {- id <<= 8;- id += codecId[i];+ if (v > (uint64_t)INT64_MAX / 256)+ return (-1);+ v <<= 8;+ v += codecId[i]; }- return (id);+ *id = v;+ return (0); } static Byte@@ -1301,29 +1331,26 @@ struct _7zip *zip = (struct _7zip *)(a->format->data); Byte b; - if (zip->ppstream.avail_in <= 0) {+ if (zip->ppstream.avail_in == 0) { /* * Ppmd7_DecodeSymbol might require reading multiple bytes * and we are on boundary; * last resort to read using __archive_read_ahead. */- ssize_t bytes_avail = 0; const uint8_t* data = __archive_read_ahead(a,- (size_t)zip->ppstream.stream_in+1, &bytes_avail);- if(data == NULL || bytes_avail < zip->ppstream.stream_in+1) {+ zip->ppstream.stream_in + 1, NULL);+ if (data == NULL) { archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "Truncated 7z file data"); zip->ppstream.overconsumed = 1; return (0); }- zip->ppstream.next_in++; b = data[zip->ppstream.stream_in]; } else { b = *zip->ppstream.next_in++;+ zip->ppstream.avail_in--; }- zip->ppstream.avail_in--;- zip->ppstream.total_in++; zip->ppstream.stream_in++; return (b); }@@ -1352,8 +1379,9 @@ coder2->codec != _7Z_SPARC) { archive_set_error(&a->archive, ARCHIVE_ERRNO_MISC,- "Unsupported filter %lx for %lx",- coder2->codec, coder1->codec);+ "Unsupported filter %jx for %jx",+ (uintmax_t)coder2->codec,+ (uintmax_t)coder1->codec); return (ARCHIVE_FAILED); } zip->codec2 = coder2->codec;@@ -1558,7 +1586,7 @@ #endif case _7Z_ZSTD: {-#if defined(HAVE_ZSTD_H)+#if HAVE_ZSTD_H && HAVE_LIBZSTD if (zip->zstdstream_valid) { ZSTD_freeDStream(zip->zstd_dstream); zip->zstdstream_valid = 0;@@ -1632,8 +1660,6 @@ zip->ppmd7_valid = 1; zip->ppmd7_stat = 0; zip->ppstream.overconsumed = 0;- zip->ppstream.total_in = 0;- zip->ppstream.total_out = 0; break; } case _7Z_X86:@@ -1840,7 +1866,7 @@ t_avail_out = zip->stream.avail_out; break; #endif-#ifdef HAVE_ZSTD_H+#if HAVE_ZSTD_H && HAVE_LIBZSTD case _7Z_ZSTD: { ZSTD_inBuffer input = { t_next_in, t_avail_in, 0 }; // src, size, pos@@ -1916,14 +1942,13 @@ } *zip->ppstream.next_out++ = (unsigned char)sym; zip->ppstream.avail_out--;- zip->ppstream.total_out++; if (flush_bytes) flush_bytes--; } while (zip->ppstream.avail_out && (zip->ppstream.avail_in || flush_bytes)); - t_avail_in = (size_t)zip->ppstream.avail_in;- t_avail_out = (size_t)zip->ppstream.avail_out;+ t_avail_in = zip->ppstream.avail_in;+ t_avail_out = zip->ppstream.avail_out; break; } default:@@ -2027,7 +2052,7 @@ zip->stream_valid = 0; } #endif-#ifdef HAVE_ZSTD_H+#if HAVE_ZSTD_H && HAVE_LIBZSTD if (zip->zstdstream_valid) ZSTD_freeDStream(zip->zstd_dstream); #endif@@ -2279,7 +2304,8 @@ if ((p = header_bytes(a, codec_size)) == NULL) return (-1); - f->coders[i].codec = decode_codec_id(p, codec_size);+ if (decode_codec_id(p, codec_size, &f->coders[i].codec) < 0)+ return (-1); if (simple) { f->coders[i].numInStreams = 1;@@ -2543,9 +2569,8 @@ for (i = 0; i < numFolders; i++) { if (parse_7zip_uint64(a, &(f[i].numUnpackStreams)) < 0) return (-1);- if (UMAX_ENTRY < f[i].numUnpackStreams)- return (-1);- if (unpack_streams > SIZE_MAX - UMAX_ENTRY) {+ if (f[i].numUnpackStreams >+ UMAX_ENTRY - unpack_streams) { return (-1); } unpack_streams += (size_t)f[i].numUnpackStreams;@@ -2556,6 +2581,13 @@ } else unpack_streams = numFolders; + if (type != kSize) {+ for (i = 0; i < numFolders; i++) {+ if (f[i].numUnpackStreams > 1)+ return (-1);+ }+ }+ ss->unpack_streams = unpack_streams; if (unpack_streams) { ss->unpackSizes = calloc(unpack_streams,@@ -2599,11 +2631,6 @@ type = *p; } - for (i = 0; i < unpack_streams; i++) {- ss->digestsDefined[i] = 0;- ss->digests[i] = 0;- }- numDigests = 0; for (i = 0; i < numFolders; i++) { if (f[i].numUnpackStreams != 1 || !f[i].digest_defined)@@ -2806,7 +2833,7 @@ if (parse_7zip_uint64(a, &(zip->numFiles)) < 0) return (-1);- if (UMAX_ENTRY < zip->numFiles)+ if (!files_info_numfiles_is_sane(zip)) return (-1); zip->entries = calloc((size_t)zip->numFiles, sizeof(*zip->entries));@@ -2828,7 +2855,7 @@ if (parse_7zip_uint64(a, &size) < 0) return (-1);- if (zip->header_bytes_remaining < size)+ if (zip->header_bytes_remaining < size || size > SIZE_MAX / 4) return (-1); ll = (size_t)size; @@ -3235,30 +3262,30 @@ uint64_t next_header_size; uint32_t next_header_crc; ssize_t bytes_avail;+ int64_t data_offset; int check_header_crc, r; - if ((p = __archive_read_ahead(a, 32, &bytes_avail)) == NULL)+ if (get_data_offset(a, &data_offset, 1) < 0) return (ARCHIVE_FATAL);-- if ((p[0] == 'M' && p[1] == 'Z') || memcmp(p, "\x7F\x45LF", 4) == 0) {- /* This is an executable ? Must be self-extracting... */- const ssize_t min_addr = p[0] == 'M' ? find_pe_overlay(a) :- find_elf_data_sec(a);- r = skip_sfx(a, min_addr);- if (r < ARCHIVE_WARN)- return (r);- if ((p = __archive_read_ahead(a, 32, &bytes_avail)) == NULL)- return (ARCHIVE_FATAL);+ if (__archive_read_consume(a, data_offset) < 0) {+ archive_set_error(&a->archive, ARCHIVE_ERRNO_MISC, "Seek error");+ return (ARCHIVE_FATAL); }- zip->seek_base += 32;+ if ((p = __archive_read_ahead(a, 32, &bytes_avail)) == NULL) {+ archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT,+ "Truncated 7-Zip file header");+ return (ARCHIVE_FATAL);+ } + zip->seek_base = (uint64_t)data_offset + 32;+ if (memcmp(p, _7ZIP_SIGNATURE, 6) != 0) { archive_set_error(&a->archive, -1, "Not 7-Zip archive file"); return (ARCHIVE_FATAL); } /* CRC check. */- if (crc32(0, (const unsigned char *)p + 12, 20)+ if (crc32(0, p + 12, 20) != archive_le32dec(p + 8)) { #ifndef DONT_FAIL_ON_CRC_ERROR archive_set_error(&a->archive, -1, "Header CRC error");@@ -3282,9 +3309,11 @@ if (next_header_offset != 0) { if (bytes_avail >= (ssize_t)next_header_offset) __archive_read_consume(a, next_header_offset);- else if (__archive_read_seek(a,- next_header_offset + zip->seek_base, SEEK_SET) < 0)+ else if (seek_compat(a,+ next_header_offset + zip->seek_base, SEEK_SET, 1) < 0) {+ archive_set_error(&a->archive, ARCHIVE_ERRNO_MISC, "Seek error"); return (ARCHIVE_FATAL);+ } } zip->stream_offset = next_header_offset; zip->header_offset = next_header_offset;@@ -3620,9 +3649,11 @@ zip->si.pi.sizes[zip->pack_stream_index]; pack_offset = zip->si.pi.positions[zip->pack_stream_index]; if (zip->stream_offset != pack_offset) {- if (0 > __archive_read_seek(a, pack_offset + zip->seek_base,- SEEK_SET))+ if (0 > seek_compat(a, pack_offset + zip->seek_base,+ SEEK_SET, 1)) {+ archive_set_error(&a->archive, ARCHIVE_ERRNO_MISC, "Seek error"); return (ARCHIVE_FATAL);+ } zip->stream_offset = pack_offset; } zip->pack_stream_index++;@@ -3688,7 +3719,7 @@ r = setup_decode_folder(a, &(zip->si.ci.folders[zip->folder_index]), 0); if (r != ARCHIVE_OK)- return (ARCHIVE_FATAL);+ return (r); zip->folder_index++; }@@ -3763,15 +3794,9 @@ } /*- * Initialize a stream reader.- */- zip->pack_stream_remaining = (unsigned)folder->numPackedStreams;- zip->pack_stream_index = (unsigned)folder->packIndex;- zip->folder_outbytes_remaining = folder_uncompressed_size(folder);- zip->uncompressed_buffer_bytes_remaining = 0;-- /*- * Check coder types.+ * Check coder types before modifying any stream-reader state, so that+ * an early return leaves zip unchanged (avoids partially-initialized+ * state that callers would have to reason about). */ for (i = 0; i < folder->numCoders; i++) { switch(folder->coders[i].codec) {@@ -3789,7 +3814,7 @@ ARCHIVE_ERRNO_MISC, "The %s is encrypted, " "but currently not supported", cname);- return (ARCHIVE_FATAL);+ return (header ? ARCHIVE_FATAL : ARCHIVE_FAILED); } case _7Z_X86_BCJ2: { found_bcj2++;@@ -3809,8 +3834,16 @@ ARCHIVE_ERRNO_MISC, "The %s is encoded with many filters, " "but currently not supported", cname);- return (ARCHIVE_FATAL);+ return (header ? ARCHIVE_FATAL : ARCHIVE_FAILED); }++ /*+ * Initialize a stream reader.+ */+ zip->pack_stream_remaining = (unsigned)folder->numPackedStreams;+ zip->pack_stream_index = (unsigned)folder->packIndex;+ zip->folder_outbytes_remaining = folder_uncompressed_size(folder);+ zip->uncompressed_buffer_bytes_remaining = 0; coder1 = &(folder->coders[0]); if (folder->numCoders == 2) coder2 = &(folder->coders[1]);@@ -3831,6 +3864,7 @@ ssize_t bytes; unsigned char *b[3] = {NULL, NULL, NULL}; uint64_t sunpack[3] ={-1, -1, -1};+ uint64_t remaining; size_t s[3] = {0, 0, 0}; int idx[3] = {0, 1, 2}; @@ -3885,12 +3919,14 @@ coder2 = &(fc[3]); zip->main_stream_bytes_remaining = (size_t)folder->unPackSize[2];+ remaining = folder->unPackSize[2]; } else if (coder2 != NULL && coder2->codec == _7Z_X86_BCJ2 && zip->pack_stream_remaining == 4 && folder->numInStreams == 5 && folder->numOutStreams == 2) { /* Source type 0 made by 7z */ zip->main_stream_bytes_remaining = (size_t)folder->unPackSize[0];+ remaining = folder->unPackSize[0]; } else { /* We got an unexpected form. */ archive_set_error(&(a->archive),@@ -3898,7 +3934,16 @@ "Unsupported form of BCJ2 streams"); return (ARCHIVE_FATAL); }+ if (remaining > SIZE_MAX) {+ archive_set_error(&(a->archive),+ ARCHIVE_ERRNO_MISC,+ "7-Zip sub-stream size exceeds "+ "platform maximum");+ return (ARCHIVE_FATAL);+ }+ zip->main_stream_bytes_remaining = remaining; + /* Skip the main stream at this time. */ if ((r = seek_pack(a)) < 0) return (r);@@ -3929,6 +3974,14 @@ /* Allocate memory for the decoded data of a sub * stream. */+ if (zip->folder_outbytes_remaining > SIZE_MAX) {+ free(b[0]); free(b[1]); free(b[2]);+ archive_set_error(&a->archive,+ ARCHIVE_ERRNO_MISC,+ "7-Zip sub-stream size exceeds "+ "platform maximum");+ return (ARCHIVE_FATAL);+ } b[i] = malloc((size_t)zip->folder_outbytes_remaining); if (b[i] == NULL) { free(b[0]); free(b[1]); free(b[2]);@@ -4101,9 +4154,7 @@ prevPosT = bufferPos; if (Test86MSByte(p[4])) {- uint32_t src = ((uint32_t)p[4] << 24) |- ((uint32_t)p[3] << 16) | ((uint32_t)p[2] << 8) |- ((uint32_t)p[1]);+ uint32_t src = archive_le32dec(p + 1); uint32_t dest; for (;;) { uint8_t b;@@ -4163,16 +4214,13 @@ for (i = 0; i + 4 <= size; i += 4) { if (buf[i + 3] == 0xEB) { // Calculate the transformed addr.- addr = (uint32_t)buf[i] | ((uint32_t)buf[i + 1] << 8)- | ((uint32_t)buf[i + 2] << 16);+ addr = archive_le24dec(buf + i); addr <<= 2; addr -= zip->bcj_ip + (uint32_t)i; addr >>= 2; // Store the transformed addr in buf.- buf[i] = (uint8_t)addr;- buf[i + 1] = (uint8_t)(addr >> 8);- buf[i + 2] = (uint8_t)(addr >> 16);+ archive_le24enc(buf + i, addr); } } @@ -4203,20 +4251,14 @@ uint32_t addr; for (i = 0; i + 4 <= size; i += 4) {- instr = (uint32_t)buf[i]- | ((uint32_t)buf[i+1] << 8)- | ((uint32_t)buf[i+2] << 16)- | ((uint32_t)buf[i+3] << 24);+ instr = archive_le32dec(buf + i); if ((instr >> 26) == 0x25) { /* BL instruction */ addr = instr - ((zip->bcj_ip + (uint32_t)i) >> 2); instr = 0x94000000 | (addr & 0x03FFFFFF); - buf[i] = (uint8_t)instr;- buf[i+1] = (uint8_t)(instr >> 8);- buf[i+2] = (uint8_t)(instr >> 16);- buf[i+3] = (uint8_t)(instr >> 24);+ archive_le32enc(buf + i, instr); } else if ((instr & 0x9F000000) == 0x90000000) { /* ADRP instruction */ addr = ((instr >> 29) & 3) | ((instr >> 3) & 0x1FFFFC);@@ -4232,10 +4274,7 @@ instr |= (addr & 0x03FFFC) << 3; instr |= (0U - (addr & 0x020000)) & 0xE00000; - buf[i] = (uint8_t)instr;- buf[i+1] = (uint8_t)(instr >> 8);- buf[i+2] = (uint8_t)(instr >> 16);- buf[i+3] = (uint8_t)(instr >> 24);+ archive_le32enc(buf + i, instr); } } @@ -4278,10 +4317,7 @@ size &= ~(size_t)3; for (i = 0; i < size; i += 4) {- instr = (uint32_t)(buf[i] << 24)- | ((uint32_t)buf[i+1] << 16)- | ((uint32_t)buf[i+2] << 8)- | (uint32_t)buf[i+3];+ instr = archive_be32dec(buf + i); if ((instr >> 22) == 0x100 || (instr >> 22) == 0x1FF) { instr <<= 2;@@ -4290,10 +4326,7 @@ instr = ((uint32_t)0x40000000 - (instr & 0x400000)) | 0x40000000 | (instr & 0x3FFFFF); - buf[i] = (uint8_t)(instr >> 24);- buf[i+1] = (uint8_t)(instr >> 16);- buf[i+2] = (uint8_t)(instr >> 8);- buf[i+3] = (uint8_t)instr;+ archive_be32enc(buf + i, instr); } } @@ -4504,15 +4537,10 @@ buf2 += 4; size2 -= 4; }- dest = (((uint32_t)v[0] << 24) |- ((uint32_t)v[1] << 16) |- ((uint32_t)v[2] << 8) |- ((uint32_t)v[3])) -+ dest = archive_be32dec(v) - ((uint32_t)zip->bcj2_outPos + (uint32_t)outPos + 4);- out[0] = (uint8_t)dest;- out[1] = (uint8_t)(dest >> 8);- out[2] = (uint8_t)(dest >> 16);- out[3] = zip->bcj2_prevByte = (uint8_t)(dest >> 24);+ archive_le32enc(out, dest);+ zip->bcj2_prevByte = out[3]; for (i = 0; i < 4 && outPos < outSize; i++) outBuf[outPos++] = out[i];@@ -4537,4 +4565,35 @@ zip->bcj2_outPos += outPos; return ((ssize_t)outPos);+}++/*+ * Perform a seek to given position. If seeking is not supported,+ * target position is in front of current position, and compat is requested,+ * try to consume bytes until position is reached.+ */+int64_t+seek_compat(struct archive_read *a, int64_t offset, int whence, int compat)+{+ int64_t ret = ARCHIVE_FAILED;++ if (a->filter->can_seek)+ ret = __archive_read_seek(a, offset, whence);+ else if (compat) {+ switch (whence) {+ case SEEK_CUR:+ ret = __archive_read_consume(a, offset);+ break;+ case SEEK_SET:+ if (a->filter->position > offset)+ break;+ ret = __archive_read_consume(a,+ offset - a->filter->position);+ break;+ default:+ break;+ }+ }++ return (ret); }
c/archive_read_support_format_ar.c view
@@ -45,6 +45,7 @@ #include "archive.h" #include "archive_entry.h"+#include "archive_integer.h" #include "archive_private.h" #include "archive_read_private.h" @@ -588,24 +589,22 @@ static uint64_t ar_atol8(const char *p, unsigned char_cnt) {- uint64_t l, limit, last_digit_limit;+ uint64_t l; unsigned int digit, base; base = 8;- limit = UINT64_MAX / base;- last_digit_limit = UINT64_MAX % base; while ((*p == ' ' || *p == '\t') && char_cnt-- > 0) p++; l = 0; digit = *p - '0';- while (*p >= '0' && digit < base && char_cnt-- > 0) {- if (l>limit || (l == limit && digit > last_digit_limit)) {+ while (*p >= '0' && digit < base && char_cnt-- > 0) {+ if (archive_ckd_mul_u64(&l, l, base) ||+ archive_ckd_add_u64(&l, l, digit)) { l = UINT64_MAX; /* Truncate on overflow. */ break; }- l = (l * base) + digit; digit = *++p - '0'; } return (l);@@ -614,23 +613,21 @@ static uint64_t ar_atol10(const char *p, unsigned char_cnt) {- uint64_t l, limit, last_digit_limit;+ uint64_t l; unsigned int base, digit; base = 10;- limit = UINT64_MAX / base;- last_digit_limit = UINT64_MAX % base; while ((*p == ' ' || *p == '\t') && char_cnt-- > 0) p++; l = 0; digit = *p - '0'; while (*p >= '0' && digit < base && char_cnt-- > 0) {- if (l > limit || (l == limit && digit > last_digit_limit)) {+ if (archive_ckd_mul_u64(&l, l, base) ||+ archive_ckd_add_u64(&l, l, digit)) { l = UINT64_MAX; /* Truncate on overflow. */ break; }- l = (l * base) + digit; digit = *++p - '0'; } return (l);
c/archive_read_support_format_cab.c view
@@ -112,8 +112,8 @@ unsigned char *bitlen; /*- * Use a index table. It's faster than searching a huffman- * coding tree, which is a binary tree. But a use of a large+ * Use an index table. It's faster than searching a huffman+ * coding tree, which is a binary tree. But usage of a large * index table causes L1 cache read miss many times. */ int max_bits;@@ -264,7 +264,7 @@ }; struct cab {- /* entry_bytes_remaining is the number of bytes we expect. */+ /* entry_bytes_remaining is the number of bytes we expect. */ int64_t entry_offset; int64_t entry_bytes_remaining; int64_t entry_unconsumed;@@ -279,7 +279,7 @@ struct cfheader cfheader; struct archive_wstring ws; - /* Flag to mark progress that an archive was read their first header.*/+ /* Flag to mark progress that first header of an archive was read.*/ char found_header; char end_of_archive; char end_of_entry;@@ -433,7 +433,7 @@ /* * Attempt to handle self-extracting archives * by noting a PE header and searching forward- * up to 128k for a 'MSCF' marker.+ * up to 128k for an 'MSCF' marker. */ if (p[0] == 'M' && p[1] == 'Z') { offset = 0;@@ -501,7 +501,7 @@ for (;;) { const char *h = __archive_read_ahead(a, window, &bytes); if (h == NULL) {- /* Remaining size are less than window. */+ /* Remaining size is less than window. */ window >>= 1; if (window < 128) { archive_set_error(&a->archive,@@ -554,19 +554,18 @@ return ((ssize_t)i); } -/* Read bytes as much as remaining. */+/* Read up to max remaining bytes. */ static const void *-cab_read_ahead_remaining(struct archive_read *a, size_t min, ssize_t *avail)+cab_read_ahead_remaining(struct archive_read *a, size_t max, ssize_t *avail) {- const void *p;+ const void *p = __archive_read_ahead(a, max, avail); - while (min > 0) {- p = __archive_read_ahead(a, min, avail);- if (p != NULL)- return (p);- min--;- }- return (NULL);+ if (p == NULL && *avail > 0)+ p = __archive_read_ahead(a, *avail, avail);+ if (p != NULL && (size_t)*avail > max)+ *avail = max;++ return (p); } /* Convert a path separator '\' -> '/' */@@ -627,7 +626,7 @@ struct cab *cab; struct cfheader *hd; size_t bytes, used;- ssize_t len;+ ssize_t avail, len; int64_t skip; int err, i; int cur_folder, prev_folder;@@ -691,29 +690,34 @@ hd->cffolder = 0;/* Avoid compiling warning. */ if (hd->flags & PREV_CABINET) { /* How many bytes are used for szCabinetPrev. */- if ((p = __archive_read_ahead(a, used+256, NULL)) == NULL)+ if ((p = cab_read_ahead_remaining(a, used + 256,+ &avail)) == NULL || (size_t)avail <= used) return (truncated_error(a));- if ((len = cab_strnlen(p + used, 255)) <= 0)+ if ((len = cab_strnlen(p + used, avail - used - 1)) <= 0) { goto invalid;+ } used += len + 1; /* How many bytes are used for szDiskPrev. */- if ((p = __archive_read_ahead(a, used+256, NULL)) == NULL)+ if ((p = cab_read_ahead_remaining(a, used + 256,+ &avail)) == NULL || (size_t)avail <= used) return (truncated_error(a));- if ((len = cab_strnlen(p + used, 255)) <= 0)+ if ((len = cab_strnlen(p + used, avail - used - 1)) < 0) goto invalid; used += len + 1; } if (hd->flags & NEXT_CABINET) { /* How many bytes are used for szCabinetNext. */- if ((p = __archive_read_ahead(a, used+256, NULL)) == NULL)+ if ((p = cab_read_ahead_remaining(a, used + 256,+ &avail)) == NULL || (size_t)avail <= used) return (truncated_error(a));- if ((len = cab_strnlen(p + used, 255)) <= 0)+ if ((len = cab_strnlen(p + used, avail - used - 1)) <= 0) goto invalid; used += len + 1; /* How many bytes are used for szDiskNext. */- if ((p = __archive_read_ahead(a, used+256, NULL)) == NULL)+ if ((p = cab_read_ahead_remaining(a, used + 256,+ &avail)) == NULL || (size_t)avail <= used) return (truncated_error(a));- if ((len = cab_strnlen(p + used, 255)) <= 0)+ if ((len = cab_strnlen(p + used, avail - used - 1)) < 0) goto invalid; used += len + 1; }@@ -776,7 +780,7 @@ */ /* Seek read pointer to the offset of CFFILE if needed. */ skip = (int64_t)hd->files_offset - cab->cab_offset;- if (skip < 0) {+ if (skip < 0) { archive_set_error(&a->archive, ARCHIVE_ERRNO_MISC, "Invalid offset of CFFILE %jd < %jd", (intmax_t)hd->files_offset, (intmax_t)cab->cab_offset);@@ -795,7 +799,6 @@ prev_folder = -1; for (i = 0; i < hd->file_count; i++) { struct cffile *file = &(hd->file_array[i]);- ssize_t avail; if ((p = __archive_read_ahead(a, 16, NULL)) == NULL) return (truncated_error(a));@@ -1336,6 +1339,10 @@ } return (ARCHIVE_OK); invalid:+ cfdata->compressed_size = 0;+ cfdata->compressed_bytes_remaining = 0;+ cfdata->uncompressed_size = 0;+ cfdata->uncompressed_bytes_remaining = 0; archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "Invalid CFDATA"); return (ARCHIVE_FATAL);@@ -1478,6 +1485,14 @@ cab->uncompressed_buffer + cab->stream.total_out; cab->stream.avail_out = cfdata->uncompressed_size - cab->stream.total_out;+ if ((size_t)cfdata->uncompressed_size >+ cab->uncompressed_buffer_size) {+ archive_set_error(&a->archive,+ ARCHIVE_ERRNO_FILE_FORMAT,+ "Invalid CFDATA uncompressed size");+ *avail = ARCHIVE_FATAL;+ return (NULL);+ } d = __archive_read_ahead(a, 1, &bytes_avail); if (bytes_avail <= 0) {@@ -1565,11 +1580,9 @@ * correctly compute the sum of CFDATA accordingly. */ if (cfdata->compressed_bytes_remaining > 0) {- ssize_t bytes_avail;- d = __archive_read_ahead(a, cfdata->compressed_bytes_remaining,- &bytes_avail);- if (bytes_avail <= 0) {+ NULL);+ if (d == NULL) { *avail = truncated_error(a); return (NULL); }@@ -1737,11 +1750,9 @@ * Make sure a read pointer advances to next CFDATA. */ if (cfdata->compressed_bytes_remaining > 0) {- ssize_t bytes_avail;- d = __archive_read_ahead(a, cfdata->compressed_bytes_remaining,- &bytes_avail);- if (bytes_avail <= 0) {+ NULL);+ if (d == NULL) { *avail = truncated_error(a); return (NULL); }@@ -3211,6 +3222,10 @@ bitlen = hf->bitlen; len_avail = hf->len_size; hf->tree_used = 0;+ /* Initialize table to invalid values */+ for (i = 0; i < tbl_size; i++) {+ tbl[i] = (uint16_t)hf->len_size;+ } for (i = 0; i < len_avail; i++) { uint16_t *p; int len, cnt;
c/archive_read_support_format_cpio.c view
@@ -38,6 +38,7 @@ #endif #include "archive.h"+#include "archive_endian.h" #include "archive_entry.h" #include "archive_entry_locale.h" #include "archive_private.h"@@ -160,6 +161,8 @@ #define afiol_filesize_c_offset 115 /* ':' */ #define afiol_header_size 116 +/* CPIO name fields store a full pathname, including the terminating NUL. */+#define CPIO_PATHNAME_MAX (1024 * 1024) struct links_entry { struct links_entry *next;@@ -200,7 +203,7 @@ static int archive_read_format_cpio_read_header(struct archive_read *, struct archive_entry *); static int archive_read_format_cpio_skip(struct archive_read *);-static int64_t be4(const unsigned char *);+static int64_t be32dec(const unsigned char *); static int find_odc_header(struct archive_read *); static int find_newc_header(struct archive_read *); static int header_bin_be(struct archive_read *, struct cpio *,@@ -215,7 +218,7 @@ struct archive_entry *, size_t *, size_t *); static int is_octal(const char *, size_t); static int is_hex(const char *, size_t);-static int64_t le4(const unsigned char *);+static int64_t le32dec(const unsigned char *); static int record_hardlink(struct archive_read *a, struct cpio *cpio, struct archive_entry *entry); @@ -303,12 +306,12 @@ * XXX TODO: More verification; Could check that only hex * digits appear in appropriate header locations. XXX */- } else if (p[0] * 256 + p[1] == 070707) {+ } else if (archive_be16dec(p) == 070707) { /* big-endian binary cpio archives */ cpio->read_header = header_bin_be; bid += 16; /* Is more verification possible here? */- } else if (p[0] + p[1] * 256 == 070707) {+ } else if (archive_le16dec(p) == 070707) { /* little-endian binary cpio archives */ cpio->read_header = header_bin_le; bid += 16;@@ -385,8 +388,15 @@ if (r < ARCHIVE_WARN) return (r); + if (namelength > CPIO_PATHNAME_MAX) {+ archive_set_error(&a->archive, ENOMEM,+ "Rejecting malformed cpio archive: "+ "pathname exceeds 1 megabyte");+ return (ARCHIVE_FATAL);+ }+ /* Read name from buffer. */- h = __archive_read_ahead(a, namelength + name_pad, NULL);+ h = __archive_read_ahead(a, namelength, NULL); if (h == NULL) return (ARCHIVE_FATAL); if (archive_entry_copy_pathname_l(entry,@@ -403,7 +413,8 @@ } cpio->entry_offset = 0; - __archive_read_consume(a, namelength + name_pad);+ __archive_read_consume(a, namelength);+ __archive_read_consume(a, name_pad); /* If this is a symlink, read the link contents. */ if (archive_entry_filetype(entry) == AE_IFLNK) {@@ -703,13 +714,24 @@ { const void *h; const char *p, *q;- size_t skip, skipped = 0;+ int64_t skip;+ uintmax_t skipped = 0; ssize_t bytes; for (;;) {- h = __archive_read_ahead(a, odc_header_size, &bytes);- if (h == NULL)- return (ARCHIVE_FATAL);+ size_t header_size;++ header_size = afiol_header_size;+ h = __archive_read_ahead(a, afiol_header_size, &bytes);+ if (h == NULL) {+ if (bytes >= odc_header_size) {+ header_size = odc_header_size;+ h = __archive_read_ahead(a, odc_header_size,+ &bytes);+ }+ if (h == NULL)+ return (ARCHIVE_FATAL);+ } p = h; q = p + bytes; @@ -725,7 +747,7 @@ * Scan ahead until we find something that looks * like an odc header. */- while (p + odc_header_size <= q) {+ while (p + header_size <= q) { switch (p[5]) { case '7': if ((memcmp("070707", p, 6) == 0@@ -741,9 +763,9 @@ if (skipped > 0) { archive_set_error(&a->archive, 0,- "Skipped %d bytes before "+ "Skipped %ju bytes before " "finding valid header",- (int)skipped);+ skipped); return (ARCHIVE_WARN); } return (ARCHIVE_OK);@@ -828,7 +850,7 @@ * NOTE: if a filename suffix is ".z", it is a file gzipped by afio. * it would be nice if we could show uncompressed file size and * uncompress file contents automatically, unfortunately we have nothing- * to get a uncompressed file size while reading each header. It means+ * to get an uncompressed file size while reading each header. It means * we also cannot uncompress file contents under our framework. */ static int@@ -873,7 +895,8 @@ t = atol16(header + afiol_filesize_offset, afiol_filesize_size); if (t < 0) {- archive_set_error(&a->archive, 0, "Nonsensical file size");+ archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT,+ "Nonsensical file size"); return (ARCHIVE_FATAL); } cpio->entry_bytes_remaining = t;@@ -897,7 +920,7 @@ /* Read fixed-size portion of header. */ h = __archive_read_ahead(a, bin_header_size, NULL); if (h == NULL) {- archive_set_error(&a->archive, 0,+ archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "End of file trying to read next cpio header"); return (ARCHIVE_FATAL); }@@ -905,24 +928,24 @@ /* Parse out binary fields. */ header = (const unsigned char *)h; - archive_entry_set_dev(entry, header[bin_dev_offset] + header[bin_dev_offset + 1] * 256);- archive_entry_set_ino(entry, header[bin_ino_offset] + header[bin_ino_offset + 1] * 256);- archive_entry_set_mode(entry, header[bin_mode_offset] + header[bin_mode_offset + 1] * 256);+ archive_entry_set_dev(entry, archive_le16dec(header + bin_dev_offset));+ archive_entry_set_ino(entry, archive_le16dec(header + bin_ino_offset));+ archive_entry_set_mode(entry, archive_le16dec(header + bin_mode_offset)); if (cpio->option_pwb) { /* turn off random bits left over from V6 inode */ archive_entry_set_mode(entry, archive_entry_mode(entry) & 067777); if ((archive_entry_mode(entry) & AE_IFMT) == 0) archive_entry_set_mode(entry, archive_entry_mode(entry) | AE_IFREG); }- archive_entry_set_uid(entry, header[bin_uid_offset] + header[bin_uid_offset + 1] * 256);- archive_entry_set_gid(entry, header[bin_gid_offset] + header[bin_gid_offset + 1] * 256);- archive_entry_set_nlink(entry, header[bin_nlink_offset] + header[bin_nlink_offset + 1] * 256);- archive_entry_set_rdev(entry, header[bin_rdev_offset] + header[bin_rdev_offset + 1] * 256);- archive_entry_set_mtime(entry, le4(header + bin_mtime_offset), 0);- *namelength = header[bin_namesize_offset] + header[bin_namesize_offset + 1] * 256;+ archive_entry_set_uid(entry, archive_le16dec(header + bin_uid_offset));+ archive_entry_set_gid(entry, archive_le16dec(header + bin_gid_offset));+ archive_entry_set_nlink(entry, archive_le16dec(header + bin_nlink_offset));+ archive_entry_set_rdev(entry, archive_le16dec(header + bin_rdev_offset));+ archive_entry_set_mtime(entry, le32dec(header + bin_mtime_offset), 0);+ *namelength = archive_le16dec(header + bin_namesize_offset); *name_pad = *namelength & 1; /* Pad to even. */ - cpio->entry_bytes_remaining = le4(header + bin_filesize_offset);+ cpio->entry_bytes_remaining = le32dec(header + bin_filesize_offset); archive_entry_set_size(entry, cpio->entry_bytes_remaining); cpio->entry_padding = cpio->entry_bytes_remaining & 1; /* Pad to even. */ __archive_read_consume(a, bin_header_size);@@ -942,7 +965,7 @@ /* Read fixed-size portion of header. */ h = __archive_read_ahead(a, bin_header_size, NULL); if (h == NULL) {- archive_set_error(&a->archive, 0,+ archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "End of file trying to read next cpio header"); return (ARCHIVE_FATAL); }@@ -950,24 +973,24 @@ /* Parse out binary fields. */ header = (const unsigned char *)h; - archive_entry_set_dev(entry, header[bin_dev_offset] * 256 + header[bin_dev_offset + 1]);- archive_entry_set_ino(entry, header[bin_ino_offset] * 256 + header[bin_ino_offset + 1]);- archive_entry_set_mode(entry, header[bin_mode_offset] * 256 + header[bin_mode_offset + 1]);+ archive_entry_set_dev(entry, archive_be16dec(header + bin_dev_offset));+ archive_entry_set_ino(entry, archive_be16dec(header + bin_ino_offset));+ archive_entry_set_mode(entry, archive_be16dec(header + bin_mode_offset)); if (cpio->option_pwb) { /* turn off random bits left over from V6 inode */ archive_entry_set_mode(entry, archive_entry_mode(entry) & 067777); if ((archive_entry_mode(entry) & AE_IFMT) == 0) archive_entry_set_mode(entry, archive_entry_mode(entry) | AE_IFREG); }- archive_entry_set_uid(entry, header[bin_uid_offset] * 256 + header[bin_uid_offset + 1]);- archive_entry_set_gid(entry, header[bin_gid_offset] * 256 + header[bin_gid_offset + 1]);- archive_entry_set_nlink(entry, header[bin_nlink_offset] * 256 + header[bin_nlink_offset + 1]);- archive_entry_set_rdev(entry, header[bin_rdev_offset] * 256 + header[bin_rdev_offset + 1]);- archive_entry_set_mtime(entry, be4(header + bin_mtime_offset), 0);- *namelength = header[bin_namesize_offset] * 256 + header[bin_namesize_offset + 1];+ archive_entry_set_uid(entry, archive_be16dec(header + bin_uid_offset));+ archive_entry_set_gid(entry, archive_be16dec(header + bin_gid_offset));+ archive_entry_set_nlink(entry, archive_be16dec(header + bin_nlink_offset));+ archive_entry_set_rdev(entry, archive_be16dec(header + bin_rdev_offset));+ archive_entry_set_mtime(entry, be32dec(header + bin_mtime_offset), 0);+ *namelength = archive_be16dec(header + bin_namesize_offset); *name_pad = *namelength & 1; /* Pad to even. */ - cpio->entry_bytes_remaining = be4(header + bin_filesize_offset);+ cpio->entry_bytes_remaining = be32dec(header + bin_filesize_offset); archive_entry_set_size(entry, cpio->entry_bytes_remaining); cpio->entry_padding = cpio->entry_bytes_remaining & 1; /* Pad to even. */ __archive_read_consume(a, bin_header_size);@@ -994,16 +1017,15 @@ } static int64_t-le4(const unsigned char *p)+le32dec(const unsigned char *p) {- return ((p[0] << 16) | (((int64_t)p[1]) << 24) | (p[2] << 0) | (p[3] << 8));+ return ((int64_t)archive_le16dec(p) << 16) | archive_le16dec(p + 2); } - static int64_t-be4(const unsigned char *p)+be32dec(const unsigned char *p) {- return ((((int64_t)p[0]) << 24) | (p[1] << 16) | (p[2] << 8) | (p[3]));+ return ((int64_t)archive_be16dec(p) << 16) | archive_be16dec(p + 2); } /*@@ -1051,7 +1073,7 @@ else if (*p >= '0' && *p <= '9') digit = *p - '0'; else- return ((int64_t)l);+ return (l); p++; l <<= 4; l |= digit;@@ -1102,20 +1124,32 @@ ENOMEM, "Out of memory adding file to list"); return (ARCHIVE_FATAL); }- if (cpio->links_head != NULL)- cpio->links_head->previous = le;- le->next = cpio->links_head;- le->previous = NULL;- cpio->links_head = le;++ const char *pathname = archive_entry_pathname(entry);+ if (pathname == NULL) {+ archive_set_error(&a->archive,+ ARCHIVE_ERRNO_FILE_FORMAT,+ "Invalid hardlink entry with no pathname");+ free(le);+ return (ARCHIVE_FATAL);+ }+ le->dev = dev; le->ino = ino; le->links = archive_entry_nlink(entry) - 1;- le->name = strdup(archive_entry_pathname(entry));+ le->name = strdup(pathname); if (le->name == NULL) { archive_set_error(&a->archive, ENOMEM, "Out of memory adding file to list");+ free(le); return (ARCHIVE_FATAL); }++ if (cpio->links_head != NULL)+ cpio->links_head->previous = le;+ le->next = cpio->links_head;+ le->previous = NULL;+ cpio->links_head = le; return (ARCHIVE_OK); }
c/archive_read_support_format_iso9660.c view
@@ -268,6 +268,7 @@ uint64_t size; /* File size in bytes. */ uint32_t ce_offset; /* Offset of CE. */ uint32_t ce_size; /* Size of CE. */+ uint64_t ce_processed_end;/* End offset of processed CE. */ char rr_moved; /* Flag to rr_moved. */ char rr_moved_has_re_only; char re; /* Having RRIP "RE" extension. */@@ -436,7 +437,6 @@ const unsigned char *, int); static void register_file(struct iso9660 *, struct file_info *); static void release_files(struct iso9660 *);-static unsigned toi(const void *p, int n); static inline void re_add_entry(struct iso9660 *, struct file_info *); static inline struct file_info * re_get_entry(struct iso9660 *); static inline int rede_add_entry(struct file_info *);@@ -1865,7 +1865,7 @@ } name_len = (size_t)isodirrec[DR_name_len_offset]; location = archive_le32dec(isodirrec + DR_extent_offset);- fsize = toi(isodirrec + DR_size_offset, DR_size_size);+ fsize = archive_le32dec(isodirrec + DR_size_offset); /* Sanity check that name_len doesn't exceed dr_len. */ if (dr_len - 33 < name_len || name_len == 0) { archive_set_error(&a->archive, ARCHIVE_ERRNO_MISC,@@ -2162,7 +2162,7 @@ fprintf(stderr, "\n ** Unrecognized flag: "); dump_isodirrec(stderr, isodirrec); fprintf(stderr, "\n");- } else if (toi(isodirrec + DR_volume_sequence_number_offset, 2) != 1) {+ } else if (archive_le16dec(isodirrec + DR_volume_sequence_number_offset) != 1) { fprintf(stderr, "\n ** Unrecognized sequence number: "); dump_isodirrec(stderr, isodirrec); fprintf(stderr, "\n");@@ -2255,9 +2255,10 @@ */ if (p[1] == 'N') { if (version == 1 && data_length == 16) {- file->rdev = toi(data,4);+ file->rdev = archive_le32dec(data); file->rdev <<= 32;- file->rdev |= toi(data + 8, 4);+ file->rdev |=+ archive_le32dec(data + 8); iso9660->seenRockridge = 1; } }@@ -2272,20 +2273,20 @@ */ if (version == 1) { if (data_length >= 8)- file->mode- = (__LA_MODE_T)toi(data, 4);+ file->mode = (__LA_MODE_T)+ archive_le32dec(data); if (data_length >= 16)- file->nlinks- = toi(data + 8, 4);+ file->nlinks =+ archive_le32dec(data + 8); if (data_length >= 24)- file->uid- = toi(data + 16, 4);+ file->uid =+ archive_le32dec(data + 16); if (data_length >= 32)- file->gid- = toi(data + 24, 4);+ file->gid =+ archive_le32dec(data + 24); if (data_length >= 40)- file->number- = toi(data + 32, 4);+ file->number =+ archive_le32dec(data + 32); iso9660->seenRockridge = 1; } }@@ -2483,6 +2484,7 @@ const unsigned char *b, *p, *end; struct file_info *file; size_t step;+ uint64_t ce_start, ce_end; int r; /* Read data which RRIP "CE" extension points. */@@ -2506,8 +2508,16 @@ "Malformed CE information"); return (ARCHIVE_FATAL); }+ ce_start = heap->reqs[0].offset + file->ce_offset;+ ce_end = ce_start + file->ce_size;+ if (ce_start < file->ce_processed_end) {+ archive_set_error(&a->archive, ARCHIVE_ERRNO_MISC,+ "Invalid parameter in SUSP \"CE\" extension");+ return (ARCHIVE_FATAL);+ } p = b + file->ce_offset; end = p + file->ce_size;+ file->ce_processed_end = ce_end; next_CE(heap); r = parse_rockridge(a, file, p, end); if (r != ARCHIVE_OK)@@ -3238,17 +3248,6 @@ } } -static unsigned int-toi(const void *p, int n)-{- const unsigned char *v = (const unsigned char *)p;- if (n > 1)- return v[0] + 256 * toi(v + 1, n - 1);- if (n == 1)- return v[0];- return (0);-}- /* * ECMA119/ISO9660 stores multi-byte integers in one of * three different formats:@@ -3493,6 +3492,8 @@ if (file->parent != NULL && file->parent->utf16be_bytes > 0) { if (build_pathname_utf16be(p, max, len, file->parent) != 0) return (-1);+ if (*len + 2 > max)+ return (-1);/* Path is too long! */ p[*len] = 0; p[*len + 1] = '/'; *len += 2;@@ -3517,26 +3518,24 @@ dump_isodirrec(FILE *out, const unsigned char *isodirrec) { fprintf(out, " l %d,",- toi(isodirrec + DR_length_offset, DR_length_size));+ isodirrec[DR_length_offset]); fprintf(out, " a %d,",- toi(isodirrec + DR_ext_attr_length_offset, DR_ext_attr_length_size));+ isodirrec[DR_ext_attr_length_offset]); fprintf(out, " ext 0x%x,",- toi(isodirrec + DR_extent_offset, DR_extent_size));+ archive_le32dec(isodirrec + DR_extent_offset)); fprintf(out, " s %d,",- toi(isodirrec + DR_size_offset, DR_extent_size));+ archive_le32dec(isodirrec + DR_size_offset)); fprintf(out, " f 0x%x,",- toi(isodirrec + DR_flags_offset, DR_flags_size));+ isodirrec[DR_flags_offset]); fprintf(out, " u %d,",- toi(isodirrec + DR_file_unit_size_offset, DR_file_unit_size_size));+ isodirrec[DR_file_unit_size_offset]); fprintf(out, " ilv %d,",- toi(isodirrec + DR_interleave_offset, DR_interleave_size));+ isodirrec[DR_interleave_offset]); fprintf(out, " seq %d,",- toi(isodirrec + DR_volume_sequence_number_offset,- DR_volume_sequence_number_size));+ archive_le16dec(isodirrec + DR_volume_sequence_number_offset)); fprintf(out, " nl %d:",- toi(isodirrec + DR_name_len_offset, DR_name_len_size));+ isodirrec[DR_name_len_offset]); fprintf(out, " `%.*s'",- toi(isodirrec + DR_name_len_offset, DR_name_len_size),- isodirrec + DR_name_offset);+ isodirrec[DR_name_len_offset], isodirrec + DR_name_offset); } #endif
c/archive_read_support_format_lha.c view
@@ -107,8 +107,8 @@ unsigned char *bitlen; /*- * Use a index table. It's faster than searching a huffman- * coding tree, which is a binary tree. But a use of a large+ * Use an index table. It's faster than searching a huffman+ * coding tree, which is a binary tree. But usage of a large * index table causes L1 cache read miss many times. */ #define HTBL_BITS 10@@ -142,7 +142,6 @@ int64_t total_in; const unsigned char *ref_ptr; int avail_out;- int64_t total_out; struct lzh_dec *ds; }; @@ -239,7 +238,6 @@ size_t *, int64_t *); static int lha_read_data_lzh(struct archive_read *, const void **, size_t *, int64_t *);-static void lha_crc16_init(void); static uint16_t lha_crc16(uint16_t, const void *, size_t); static int lzh_decode_init(struct lzh_stream *, const char *); static void lzh_decode_free(struct lzh_stream *);@@ -483,8 +481,6 @@ struct archive_mstring conv_buffer; const wchar_t *conv_buffer_p; - lha_crc16_init();- a->archive.archive_format = ARCHIVE_FORMAT_LHA; if (a->archive.archive_format_name == NULL) a->archive.archive_format_name = "lha";@@ -1588,7 +1584,6 @@ /* We've initialized decompression for this stream. */ lha->decompress_init = 1; lha->strm.avail_out = 0;- lha->strm.total_out = 0; } /*@@ -1733,30 +1728,86 @@ return (sum); } -static uint16_t crc16tbl[2][256];-static void-lha_crc16_init(void)-{- unsigned int i;- static int crc16init = 0;-- if (crc16init)- return;- crc16init = 1;-- for (i = 0; i < 256; i++) {- unsigned int j;- uint16_t crc = (uint16_t)i;- for (j = 8; j; j--)- crc = (crc >> 1) ^ ((crc & 1) * 0xA001);- crc16tbl[0][i] = crc;- }-- for (i = 0; i < 256; i++) {- crc16tbl[1][i] = (crc16tbl[0][i] >> 8)- ^ crc16tbl[0][crc16tbl[0][i] & 0xff];+static const uint16_t crc16tbl[2][256] = {+ {+ 0x0000, 0xc0c1, 0xc181, 0x0140, 0xc301, 0x03c0, 0x0280,+ 0xc241, 0xc601, 0x06c0, 0x0780, 0xc741, 0x0500, 0xc5c1,+ 0xc481, 0x0440, 0xcc01, 0x0cc0, 0x0d80, 0xcd41, 0x0f00,+ 0xcfc1, 0xce81, 0x0e40, 0x0a00, 0xcac1, 0xcb81, 0x0b40,+ 0xc901, 0x09c0, 0x0880, 0xc841, 0xd801, 0x18c0, 0x1980,+ 0xd941, 0x1b00, 0xdbc1, 0xda81, 0x1a40, 0x1e00, 0xdec1,+ 0xdf81, 0x1f40, 0xdd01, 0x1dc0, 0x1c80, 0xdc41, 0x1400,+ 0xd4c1, 0xd581, 0x1540, 0xd701, 0x17c0, 0x1680, 0xd641,+ 0xd201, 0x12c0, 0x1380, 0xd341, 0x1100, 0xd1c1, 0xd081,+ 0x1040, 0xf001, 0x30c0, 0x3180, 0xf141, 0x3300, 0xf3c1,+ 0xf281, 0x3240, 0x3600, 0xf6c1, 0xf781, 0x3740, 0xf501,+ 0x35c0, 0x3480, 0xf441, 0x3c00, 0xfcc1, 0xfd81, 0x3d40,+ 0xff01, 0x3fc0, 0x3e80, 0xfe41, 0xfa01, 0x3ac0, 0x3b80,+ 0xfb41, 0x3900, 0xf9c1, 0xf881, 0x3840, 0x2800, 0xe8c1,+ 0xe981, 0x2940, 0xeb01, 0x2bc0, 0x2a80, 0xea41, 0xee01,+ 0x2ec0, 0x2f80, 0xef41, 0x2d00, 0xedc1, 0xec81, 0x2c40,+ 0xe401, 0x24c0, 0x2580, 0xe541, 0x2700, 0xe7c1, 0xe681,+ 0x2640, 0x2200, 0xe2c1, 0xe381, 0x2340, 0xe101, 0x21c0,+ 0x2080, 0xe041, 0xa001, 0x60c0, 0x6180, 0xa141, 0x6300,+ 0xa3c1, 0xa281, 0x6240, 0x6600, 0xa6c1, 0xa781, 0x6740,+ 0xa501, 0x65c0, 0x6480, 0xa441, 0x6c00, 0xacc1, 0xad81,+ 0x6d40, 0xaf01, 0x6fc0, 0x6e80, 0xae41, 0xaa01, 0x6ac0,+ 0x6b80, 0xab41, 0x6900, 0xa9c1, 0xa881, 0x6840, 0x7800,+ 0xb8c1, 0xb981, 0x7940, 0xbb01, 0x7bc0, 0x7a80, 0xba41,+ 0xbe01, 0x7ec0, 0x7f80, 0xbf41, 0x7d00, 0xbdc1, 0xbc81,+ 0x7c40, 0xb401, 0x74c0, 0x7580, 0xb541, 0x7700, 0xb7c1,+ 0xb681, 0x7640, 0x7200, 0xb2c1, 0xb381, 0x7340, 0xb101,+ 0x71c0, 0x7080, 0xb041, 0x5000, 0x90c1, 0x9181, 0x5140,+ 0x9301, 0x53c0, 0x5280, 0x9241, 0x9601, 0x56c0, 0x5780,+ 0x9741, 0x5500, 0x95c1, 0x9481, 0x5440, 0x9c01, 0x5cc0,+ 0x5d80, 0x9d41, 0x5f00, 0x9fc1, 0x9e81, 0x5e40, 0x5a00,+ 0x9ac1, 0x9b81, 0x5b40, 0x9901, 0x59c0, 0x5880, 0x9841,+ 0x8801, 0x48c0, 0x4980, 0x8941, 0x4b00, 0x8bc1, 0x8a81,+ 0x4a40, 0x4e00, 0x8ec1, 0x8f81, 0x4f40, 0x8d01, 0x4dc0,+ 0x4c80, 0x8c41, 0x4400, 0x84c1, 0x8581, 0x4540, 0x8701,+ 0x47c0, 0x4680, 0x8641, 0x8201, 0x42c0, 0x4380, 0x8341,+ 0x4100, 0x81c1, 0x8081, 0x4040+ },+ {+ 0x0000, 0x9001, 0x6001, 0xf000, 0xc002, 0x5003, 0xa003,+ 0x3002, 0xc007, 0x5006, 0xa006, 0x3007, 0x0005, 0x9004,+ 0x6004, 0xf005, 0xc00d, 0x500c, 0xa00c, 0x300d, 0x000f,+ 0x900e, 0x600e, 0xf00f, 0x000a, 0x900b, 0x600b, 0xf00a,+ 0xc008, 0x5009, 0xa009, 0x3008, 0xc019, 0x5018, 0xa018,+ 0x3019, 0x001b, 0x901a, 0x601a, 0xf01b, 0x001e, 0x901f,+ 0x601f, 0xf01e, 0xc01c, 0x501d, 0xa01d, 0x301c, 0x0014,+ 0x9015, 0x6015, 0xf014, 0xc016, 0x5017, 0xa017, 0x3016,+ 0xc013, 0x5012, 0xa012, 0x3013, 0x0011, 0x9010, 0x6010,+ 0xf011, 0xc031, 0x5030, 0xa030, 0x3031, 0x0033, 0x9032,+ 0x6032, 0xf033, 0x0036, 0x9037, 0x6037, 0xf036, 0xc034,+ 0x5035, 0xa035, 0x3034, 0x003c, 0x903d, 0x603d, 0xf03c,+ 0xc03e, 0x503f, 0xa03f, 0x303e, 0xc03b, 0x503a, 0xa03a,+ 0x303b, 0x0039, 0x9038, 0x6038, 0xf039, 0x0028, 0x9029,+ 0x6029, 0xf028, 0xc02a, 0x502b, 0xa02b, 0x302a, 0xc02f,+ 0x502e, 0xa02e, 0x302f, 0x002d, 0x902c, 0x602c, 0xf02d,+ 0xc025, 0x5024, 0xa024, 0x3025, 0x0027, 0x9026, 0x6026,+ 0xf027, 0x0022, 0x9023, 0x6023, 0xf022, 0xc020, 0x5021,+ 0xa021, 0x3020, 0xc061, 0x5060, 0xa060, 0x3061, 0x0063,+ 0x9062, 0x6062, 0xf063, 0x0066, 0x9067, 0x6067, 0xf066,+ 0xc064, 0x5065, 0xa065, 0x3064, 0x006c, 0x906d, 0x606d,+ 0xf06c, 0xc06e, 0x506f, 0xa06f, 0x306e, 0xc06b, 0x506a,+ 0xa06a, 0x306b, 0x0069, 0x9068, 0x6068, 0xf069, 0x0078,+ 0x9079, 0x6079, 0xf078, 0xc07a, 0x507b, 0xa07b, 0x307a,+ 0xc07f, 0x507e, 0xa07e, 0x307f, 0x007d, 0x907c, 0x607c,+ 0xf07d, 0xc075, 0x5074, 0xa074, 0x3075, 0x0077, 0x9076,+ 0x6076, 0xf077, 0x0072, 0x9073, 0x6073, 0xf072, 0xc070,+ 0x5071, 0xa071, 0x3070, 0x0050, 0x9051, 0x6051, 0xf050,+ 0xc052, 0x5053, 0xa053, 0x3052, 0xc057, 0x5056, 0xa056,+ 0x3057, 0x0055, 0x9054, 0x6054, 0xf055, 0xc05d, 0x505c,+ 0xa05c, 0x305d, 0x005f, 0x905e, 0x605e, 0xf05f, 0x005a,+ 0x905b, 0x605b, 0xf05a, 0xc058, 0x5059, 0xa059, 0x3058,+ 0xc049, 0x5048, 0xa048, 0x3049, 0x004b, 0x904a, 0x604a,+ 0xf04b, 0x004e, 0x904f, 0x604f, 0xf04e, 0xc04c, 0x504d,+ 0xa04d, 0x304c, 0x0044, 0x9045, 0x6045, 0xf044, 0xc046,+ 0x5047, 0xa047, 0x3046, 0xc043, 0x5042, 0xa042, 0x3043,+ 0x0041, 0x9040, 0x6040, 0xf041 }-}+}; static uint16_t lha_crc16(uint16_t crc, const void *pp, size_t len)@@ -2084,7 +2135,6 @@ { strm->ref_ptr = strm->ds->w_buff; strm->avail_out = (int)s;- strm->total_out += s; } static int
c/archive_read_support_format_mtree.c view
@@ -51,6 +51,7 @@ #include "archive.h" #include "archive_entry.h" #include "archive_entry_private.h"+#include "archive_integer.h" #include "archive_platform_stat.h" #include "archive_private.h" #include "archive_rb.h"@@ -1790,12 +1791,16 @@ * 123456789.1 represents 123456789 * seconds and 1 nanosecond. */ if (*val == '.') {+ int64_t v;+ ++val;- ns = (long)mtree_atol(&val, 10);- if (ns < 0)+ v = mtree_atol(&val, 10);+ if (v < 0) ns = 0;- else if (ns > 999999999)+ else if (v > 999999999) ns = 999999999;+ else+ ns = (long)v; } if (m > my_time_t_max) m = my_time_t_max;@@ -2029,9 +2034,9 @@ if (c >= '0' && c <= '9') return c - '0'; else if (c >= 'a' && c <= 'f')- return c - 'a';+ return 10 + c - 'a'; else if (c >= 'A' && c <= 'F')- return c - 'A';+ return 10 + c - 'A'; else return -1; }@@ -2044,8 +2049,8 @@ static int64_t mtree_atol(char **p, int base) {- int64_t l, limit;- int digit, last_digit_limit;+ int64_t l;+ int digit; if (base == 0) { if (**p != '0')@@ -2059,29 +2064,24 @@ } if (**p == '-') {- limit = INT64_MIN / base;- last_digit_limit = -(INT64_MIN % base); ++(*p); l = 0; digit = parsedigit(**p); while (digit >= 0 && digit < base) {- if (l < limit || (l == limit && digit >= last_digit_limit))+ if (archive_ckd_mul_i64(&l, l, base) ||+ archive_ckd_sub_i64(&l, l, digit)) return INT64_MIN;- l = (l * base) - digit; digit = parsedigit(*++(*p)); } return l; } else {- limit = INT64_MAX / base;- last_digit_limit = INT64_MAX % base;- l = 0; digit = parsedigit(**p); while (digit >= 0 && digit < base) {- if (l > limit || (l == limit && digit > last_digit_limit))+ if (archive_ckd_mul_i64(&l, l, base) ||+ archive_ckd_add_i64(&l, l, digit)) return INT64_MAX;- l = (l * base) + digit; digit = parsedigit(*++(*p)); } return l;@@ -2100,8 +2100,7 @@ ssize_t bytes_read; ssize_t total_size = 0; ssize_t find_off = 0;- const void *t;- void *nl;+ const void *nl, *t; char *u; /* Accumulate line in a line buffer. */
c/archive_read_support_format_rar.c view
@@ -154,7 +154,7 @@ #define UNP_BUFFER_SIZE (128 * 1024) /* Define this here for non-Windows platforms */-#if !((defined(__WIN32__) || defined(_WIN32) || defined(__WIN32)) && !defined(__CYGWIN__))+#ifndef FILE_ATTRIBUTE_DIRECTORY #define FILE_ATTRIBUTE_DIRECTORY 0x10 #endif @@ -1142,7 +1142,7 @@ default: archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "Unsupported compression method for RAR file");- ret = ARCHIVE_FATAL;+ ret = ARCHIVE_FAILED; break; } return (ret);@@ -1513,27 +1513,23 @@ * consumed at the end. */ if (head_type == NEWSUB_HEAD) {- size_t distance = p - (const char *)h; if (rar->packed_size > INT64_MAX - header_size) { archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT,- "Extended header size too large");- return (ARCHIVE_FATAL);- }- header_size += rar->packed_size;- if ((uintmax_t)header_size > SIZE_MAX) {- archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT,- "Unable to read extended header data");+ "Invalid RAR file: Overlarge extended header"); return (ARCHIVE_FATAL); }- /* Make sure we have the extended data. */- if ((h = __archive_read_ahead(a, (size_t)header_size - 7, NULL)) == NULL) {+ if (__archive_read_consume(a, header_size + rar->packed_size - 7) < 0) { archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT,- "Failed to read extended header data");+ "Invalid RAR file: Cannot read extended header data"); return (ARCHIVE_FATAL); }- p = h;- endp = p + header_size - 7;- p += distance;++ /*+ * NEWSUB records are metadata-only in this reader. The block header+ * has already been validated, so it is safe to skip exactly the+ * remaining header bytes and the associated data payload.+ */+ return ret; } filename_size = archive_le16dec(file_header.name_size);@@ -1829,10 +1825,6 @@ rar->ppmd_valid = rar->ppmd_eod = 0; rar->filters.filterstart = INT64_MAX; - /* Don't set any archive entries for non-file header types */- if (head_type == NEWSUB_HEAD)- return ret;- archive_entry_set_mtime(entry, rar->mtime, rar->mnsec); archive_entry_set_ctime(entry, rar->ctime, rar->cnsec); archive_entry_set_atime(entry, rar->atime, rar->ansec);@@ -2026,7 +2018,7 @@ #ifndef DONT_FAIL_ON_CRC_ERROR archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "File CRC error");- return (ARCHIVE_FATAL);+ return (ARCHIVE_FAILED); #endif } rar->entry_eof = 1;@@ -2038,7 +2030,7 @@ { archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "Truncated RAR file data");- return (ARCHIVE_FATAL);+ return (ARCHIVE_FAILED); } *size = bytes_avail;@@ -2058,7 +2050,7 @@ int64_t *offset, size_t looper) { if (looper++ > MAX_COMPRESS_DEPTH)- return (ARCHIVE_FATAL);+ return (ARCHIVE_FAILED); struct rar *rar; int64_t start, end;@@ -2069,7 +2061,7 @@ do { if (!rar->valid)- return (ARCHIVE_FATAL);+ return (ARCHIVE_FAILED); if (rar->filters.bytes_ready > 0) {@@ -2121,7 +2113,7 @@ #ifndef DONT_FAIL_ON_CRC_ERROR archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "File CRC error");- return (ARCHIVE_FATAL);+ return (ARCHIVE_FAILED); #endif } rar->entry_eof = 1;@@ -2155,7 +2147,7 @@ if (rar->filters.lastend == rar->filters.filterstart) { if (!run_filters(a))- return (ARCHIVE_FATAL);+ return (ARCHIVE_FAILED); continue; } @@ -2172,7 +2164,7 @@ { archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "Invalid symbol");- return (ARCHIVE_FATAL);+ return (ARCHIVE_FAILED); } if(sym != rar->ppmd_escape) {@@ -2186,7 +2178,7 @@ { archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "Invalid symbol");- return (ARCHIVE_FATAL);+ return (ARCHIVE_FAILED); } switch(code)@@ -2213,7 +2205,7 @@ { archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "Invalid symbol");- return (ARCHIVE_FATAL);+ return (ARCHIVE_FAILED); } lzss_offset |= code << (i * 8); }@@ -2222,7 +2214,7 @@ { archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "Invalid symbol");- return (ARCHIVE_FATAL);+ return (ARCHIVE_FAILED); } lzss_emit_match(rar, lzss_offset + 2, length + 32); rar->bytes_uncopied += length + 32;@@ -2234,7 +2226,7 @@ { archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "Invalid symbol");- return (ARCHIVE_FATAL);+ return (ARCHIVE_FAILED); } lzss_emit_match(rar, 1, length + 4); rar->bytes_uncopied += length + 4;@@ -2280,7 +2272,7 @@ * what we would do to solve it. */ archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "Internal error extracting RAR file");- return (ARCHIVE_FATAL);+ return (ARCHIVE_FAILED); } } if (rar->bytes_uncopied > (rar->unp_buffer_size - rar->unp_offset))@@ -2363,7 +2355,7 @@ { archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "Truncated RAR file data");- return (ARCHIVE_FATAL);+ return (ARCHIVE_FAILED); } /* Make sure ppmd7_context is freed before Ppmd7_Construct@@ -2379,7 +2371,7 @@ if (rar->dictionary_size == 0) { archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "Invalid zero dictionary size");- return (ARCHIVE_FATAL);+ return (ARCHIVE_FAILED); } if (!__archive_ppmd7_functions.Ppmd7_Alloc(&rar->ppmd7_context,@@ -2393,7 +2385,7 @@ { archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "Unable to initialize PPMd range decoder");- return (ARCHIVE_FATAL);+ return (ARCHIVE_FAILED); } __archive_ppmd7_functions.Ppmd7_Init(&rar->ppmd7_context, maxorder); rar->ppmd_valid = 1;@@ -2403,13 +2395,13 @@ if (!rar->ppmd_valid) { archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "Invalid PPMd sequence");- return (ARCHIVE_FATAL);+ return (ARCHIVE_FAILED); } if (!__archive_ppmd7_functions.PpmdRAR_RangeDec_Init(&rar->range_dec)) { archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "Unable to initialize PPMd range decoder");- return (ARCHIVE_FATAL);+ return (ARCHIVE_FAILED); } } }@@ -2417,6 +2409,13 @@ { rar_br_consume(br, 1); + /*+ * Low-distance repeat state belongs to the current LZ table and+ * must not be reused after starting a new table.+ */+ rar->lastlowoffset = 0;+ rar->numlowoffsetrepeats = 0;+ /* Keep existing table flag */ if (!rar_br_read_ahead(a, br, 1)) goto truncated_data;@@ -2459,7 +2458,7 @@ if ((val = read_next_symbol(a, &precode)) < 0) { free(precode.tree); free(precode.table);- return (ARCHIVE_FATAL);+ return (ARCHIVE_FAILED); } if (val < 16) {@@ -2474,7 +2473,7 @@ free(precode.table); archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "Internal error extracting RAR file");- return (ARCHIVE_FATAL);+ return (ARCHIVE_FAILED); } if(val == 16) {@@ -2564,7 +2563,7 @@ if (new_size == 0) { archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "Zero window size is invalid");- return (ARCHIVE_FATAL);+ return (ARCHIVE_FAILED); } new_window = realloc(rar->lzss.window, new_size); if (new_window == NULL) {@@ -2584,7 +2583,7 @@ archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "Truncated RAR file data"); rar->valid = 0;- return (ARCHIVE_FATAL);+ return (ARCHIVE_FAILED); } static void@@ -2700,7 +2699,7 @@ { if (lengths[j] != i) continue; if (add_value(a, code, j, codebits, i) != ARCHIVE_OK)- return (ARCHIVE_FATAL);+ return (ARCHIVE_FAILED); codebits++; if (--symbolsleft <= 0) break;@@ -2752,7 +2751,7 @@ { archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "Prefix found");- return (ARCHIVE_FATAL);+ return (ARCHIVE_FAILED); } /*@@ -2811,7 +2810,7 @@ { archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "Prefix found");- return (ARCHIVE_FATAL);+ return (ARCHIVE_FAILED); } /* Set leaf value */@@ -2850,6 +2849,10 @@ code->tablesize = code->maxlength; code->table = calloc(((size_t)1U) << code->tablesize, sizeof(*code->table));+ if (code->table == NULL) {+ archive_set_error(&a->archive, ENOMEM, "Can't allocate memory");+ return (ARCHIVE_FATAL);+ } return make_table_recurse(a, code, 0, code->table, 0, code->tablesize); }@@ -2865,13 +2868,13 @@ { archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "Huffman tree was not created");- return (ARCHIVE_FATAL);+ return (ARCHIVE_FAILED); } if (node < 0 || node >= code->numentries) { archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "Invalid location to Huffman tree specified");- return (ARCHIVE_FATAL);+ return (ARCHIVE_FAILED); } currtablesize = 1 << (maxdepth - depth);@@ -3134,11 +3137,11 @@ archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "Truncated RAR file data"); rar->valid = 0;- return (ARCHIVE_FATAL);+ return (ARCHIVE_FAILED); bad_data: archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "Bad RAR file data");- return (ARCHIVE_FATAL);+ return (ARCHIVE_FAILED); } static int@@ -3153,12 +3156,12 @@ if (length > lzss_size(&rar->lzss)) { archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "Bad RAR file data");- return (ARCHIVE_FATAL);+ return (ARCHIVE_FAILED); } if (firstpart < 0) { archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "Bad RAR file data");- return (ARCHIVE_FATAL);+ return (ARCHIVE_FAILED); } if (firstpart < length) { memcpy(buffer, &rar->lzss.window[windowoffs], firstpart);@@ -3200,7 +3203,7 @@ if (firstpart < 0) { archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "Bad RAR file data");- return (ARCHIVE_FATAL);+ return (ARCHIVE_FAILED); } if ((size_t)firstpart < length) { memcpy(&rar->unp_buffer[rar->unp_offset],@@ -3224,7 +3227,7 @@ fatal: archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "Bad RAR file data");- return (ARCHIVE_FATAL);+ return (ARCHIVE_FAILED); } static const void *@@ -3556,7 +3559,13 @@ if (membr_bits(&br, 1)) {- prog->staticdatalen = membr_next_rarvm_number(&br) + 1;+ uint32_t staticdatalen = membr_next_rarvm_number(&br);+ if (staticdatalen >= VM_MEMORY_SIZE)+ {+ delete_program_code(prog);+ return NULL;+ }+ prog->staticdatalen = staticdatalen + 1; prog->staticdata = malloc(prog->staticdatalen); if (!prog->staticdata) {
c/archive_read_support_format_rar5.c view
@@ -81,7 +81,9 @@ * * The array itself is decrypted in `rar5_init` function. */ -static unsigned char rar5_signature_xor[] = { 243, 192, 211, 128, 187, 166, 160, 161 };+static const unsigned char rar5_signature_xor[] = {+ 243, 192, 211, 128, 187, 166, 160, 161+}; static const size_t g_unpack_window_size = 0x20000; /* These could have been static const's, but they aren't, because of@@ -700,7 +702,7 @@ ARCHIVE_ERRNO_FILE_FORMAT, "Unsupported filter type: 0x%x", (unsigned int)flt->type);- return ARCHIVE_FATAL;+ return ARCHIVE_FAILED; } if(ret != ARCHIVE_OK) {@@ -905,11 +907,10 @@ static int read_ahead(struct archive_read* a, size_t how_many, const uint8_t** ptr) {- ssize_t avail = -1; if(!ptr) return 0; - *ptr = __archive_read_ahead(a, how_many, &avail);+ *ptr = __archive_read_ahead(a, how_many, NULL); if(*ptr == NULL) { return 0; }@@ -1046,10 +1047,7 @@ return ARCHIVE_FATAL; } - uint32_t bits = ((uint32_t) p[rar->bits.in_addr]) << 24;- bits |= p[rar->bits.in_addr + 1] << 16;- bits |= p[rar->bits.in_addr + 2] << 8;- bits |= p[rar->bits.in_addr + 3];+ uint32_t bits = archive_be32dec(p + rar->bits.in_addr); bits <<= rar->bits.bit_addr; bits |= p[rar->bits.in_addr + 4] >> (8 - rar->bits.bit_addr); *value = bits;@@ -1066,9 +1064,7 @@ return ARCHIVE_FATAL; } - int bits = (int) ((uint32_t) p[rar->bits.in_addr]) << 16;- bits |= (int) p[rar->bits.in_addr + 1] << 8;- bits |= (int) p[rar->bits.in_addr + 2];+ uint32_t bits = archive_be24dec(p + (unsigned)rar->bits.in_addr); bits >>= (8 - rar->bits.bit_addr); *value = bits & 0xffff; return ARCHIVE_OK;@@ -1790,6 +1786,13 @@ if(!read_var_sized(a, &data_size, NULL)) return ARCHIVE_EOF; + if(data_size > SSIZE_MAX) {+ archive_set_error(&a->archive,+ ARCHIVE_ERRNO_FILE_FORMAT,+ "File data size is too large");+ return ARCHIVE_FATAL;+ }+ rar->file.bytes_remaining = data_size; } else { rar->file.bytes_remaining = 0;@@ -1946,29 +1949,20 @@ archive_entry_set_mode(entry, mode); if (file_attr & (ATTR_READONLY | ATTR_HIDDEN | ATTR_SYSTEM)) {- char *fflags_text, *ptr;- /* allocate for ",rdonly,hidden,system" */- fflags_text = malloc(22 * sizeof(*fflags_text));- if (fflags_text != NULL) {- ptr = fflags_text;- if (file_attr & ATTR_READONLY) {- strcpy(ptr, ",rdonly");- ptr = ptr + 7;- }- if (file_attr & ATTR_HIDDEN) {- strcpy(ptr, ",hidden");- ptr = ptr + 7;- }- if (file_attr & ATTR_SYSTEM) {- strcpy(ptr, ",system");- ptr = ptr + 7;- }- if (ptr > fflags_text) {- archive_entry_copy_fflags_text(entry,- fflags_text + 1);- }- free(fflags_text);- }+ char buf[sizeof(",rdonly,hidden,system")];+ char *fflags[3] = { "", "", "" };+ char **flag = fflags;++ if (file_attr & ATTR_READONLY)+ *flag++ = ",rdonly";+ if (file_attr & ATTR_HIDDEN)+ *flag++ = ",hidden";+ if (file_attr & ATTR_SYSTEM)+ *flag++ = ",system";++ snprintf(buf, sizeof(buf), "%s%s%s",+ fflags[0], fflags[1], fflags[2]);+ archive_entry_copy_fflags_text(entry, buf + 1); } } else if(host_os == HOST_UNIX) { /* Host OS is Unix */@@ -2274,6 +2268,33 @@ * <FILE> block. */ +/*+ * A header that carries no file data (HEAD_MAIN, or an unknown block+ * flagged HFL_SKIP_IF_UNKNOWN) may leave bytes in its body that the+ * sub-parser did not read. Skip them before returning ARCHIVE_RETRY,+ * otherwise rar5_read_header() re-parses the same block region O(N)+ * times instead of O(1), letting a crafted RAR5 file stall the reader+ * (GHSA-9h2c-464f-j3hj).+ *+ * Safe because read_ahead(a, hdr_size, &p) pre-loaded the whole block+ * into one contiguous buffer with no compaction until we return, so+ * body_start stays valid and (cur - body_start) is the exact number of+ * body bytes consumed so far.+ */+static void+rar5_skip_remaining_block(struct archive_read* a,+ const uint8_t* body_start, size_t raw_hdr_size)+{+ const uint8_t* cur;++ if(read_ahead(a, 1, &cur)) {+ size_t body_used = (size_t)(cur - body_start);++ if(body_used < raw_hdr_size)+ (void)consume(a, raw_hdr_size - body_used);+ }+}+ static int process_base_block(struct archive_read* a, struct archive_entry* entry) {@@ -2285,6 +2306,7 @@ size_t header_id = 0; size_t header_flags = 0; const uint8_t* p;+ const uint8_t* body_start; int ret; enum HEADER_TYPE {@@ -2346,6 +2368,10 @@ #endif } + /* Remember the first byte of the block body so we can later skip+ * any bytes the sub-parser leaves unconsumed. */+ body_start = p + hdr_size_len;+ /* If the checksum is OK, we proceed with parsing. */ if(ARCHIVE_OK != consume(a, hdr_size_len)) { return ARCHIVE_EOF;@@ -2371,8 +2397,11 @@ /* Main header doesn't have any files in it, so it's * pointless to return to the caller. Retry to next * header, which should be HEAD_FILE/HEAD_SERVICE. */- if(ret == ARCHIVE_OK)+ if(ret == ARCHIVE_OK) {+ rar5_skip_remaining_block(a, body_start,+ raw_hdr_size); return ARCHIVE_RETRY;+ } return ret; case HEAD_SERVICE:@@ -2432,6 +2461,8 @@ /* If the block is marked as 'skip if unknown', * do as the flag says: skip the block * instead on failing on it. */+ rar5_skip_remaining_block(a, body_start,+ raw_hdr_size); return ARCHIVE_RETRY; } }@@ -2561,19 +2592,23 @@ return ret; } -static void init_unpack(struct rar5* rar) {+static int init_unpack(struct rar5* rar) { rar->file.calculated_crc32 = 0; init_window_mask(rar); free(rar->cstate.window_buf); free(rar->cstate.filtered_buf); + rar->cstate.window_buf = NULL;+ rar->cstate.filtered_buf = NULL;+ if(rar->cstate.window_size > 0) { rar->cstate.window_buf = calloc(1, rar->cstate.window_size);+ if(rar->cstate.window_buf == NULL)+ return ARCHIVE_FATAL; rar->cstate.filtered_buf = calloc(1, rar->cstate.window_size);- } else {- rar->cstate.window_buf = NULL;- rar->cstate.filtered_buf = NULL;+ if(rar->cstate.filtered_buf == NULL)+ return ARCHIVE_FATAL; } clear_data_ready_stack(rar);@@ -2586,6 +2621,7 @@ memset(&rar->cstate.dd, 0, sizeof(rar->cstate.dd)); memset(&rar->cstate.ldd, 0, sizeof(rar->cstate.ldd)); memset(&rar->cstate.rd, 0, sizeof(rar->cstate.rd));+ return ARCHIVE_OK; } static void update_crc(struct rar5* rar, const uint8_t* p, size_t to_read) {@@ -2647,6 +2683,15 @@ upper_limit <<= 1; } + /* Verify the code-length distribution is not over-subscribed.+ * After the loop above, upper_limit == sum(lc[i] * 2^(16-i)).+ * For a valid prefix-free code this must be <= 2^16 = 65536.+ * An over-subscribed table (> 65536) cannot produce a valid+ * decode table and must be rejected. */+ if(upper_limit > 65536) {+ return ARCHIVE_FAILED;+ }+ memcpy(decode_pos_clone, table->decode_pos, sizeof(decode_pos_clone)); for(i = 0; i < size; i++) {@@ -2748,7 +2793,7 @@ archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "Truncated data in huffman tables");- return ARCHIVE_FATAL;+ return ARCHIVE_FAILED; } value = (p[i] & nibble_mask) >> nibble_shift;@@ -2794,7 +2839,7 @@ if(ret != ARCHIVE_OK) { archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "Decoding huffman tables failed");- return ARCHIVE_FATAL;+ return ARCHIVE_FAILED; } for(i = 0; i < HUFF_TABLE_SIZE;) {@@ -2805,7 +2850,7 @@ archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "Decoding huffman tables failed");- return ARCHIVE_FATAL;+ return ARCHIVE_FAILED; } if(num < 16) {@@ -2839,7 +2884,7 @@ ARCHIVE_ERRNO_FILE_FORMAT, "Unexpected error when decoding " "huffman tables");- return ARCHIVE_FATAL;+ return ARCHIVE_FAILED; } } else { /* other codes: fill with zeroes `n` times */@@ -2867,7 +2912,7 @@ if(ret != ARCHIVE_OK) { archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "Failed to create literal table");- return ARCHIVE_FATAL;+ return ARCHIVE_FAILED; } idx += HUFF_NC;@@ -2876,7 +2921,7 @@ if(ret != ARCHIVE_OK) { archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "Failed to create distance table");- return ARCHIVE_FATAL;+ return ARCHIVE_FAILED; } idx += HUFF_DC;@@ -2885,7 +2930,7 @@ if(ret != ARCHIVE_OK) { archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "Failed to create lower bits of distances table");- return ARCHIVE_FATAL;+ return ARCHIVE_FAILED; } idx += HUFF_LDC;@@ -2894,7 +2939,7 @@ if(ret != ARCHIVE_OK) { archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "Failed to create repeating distances table");- return ARCHIVE_FATAL;+ return ARCHIVE_FAILED; } return ARCHIVE_OK;@@ -2912,7 +2957,7 @@ archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "Unsupported block header size (was %d, max is 2)", bf_byte_count(hdr));- return ARCHIVE_FATAL;+ return ARCHIVE_FAILED; } /* This should probably use bit reader interface in order to be more@@ -2956,7 +3001,7 @@ "Block checksum error: got 0x%x, expected 0x%x", hdr->block_cksum, calculated_cksum); - return ARCHIVE_FATAL;+ return ARCHIVE_FAILED; #endif } @@ -3037,20 +3082,17 @@ filter_type >>= 13; skip_bits(rar, 3); - /* Perform some sanity checks on this filter parameters. Note that we- * allow only DELTA, E8/E9 and ARM filters here, because rest of- * filters are not used in RARv5. */+ /* Perform some sanity checks on this filter parameters. */ if(block_length < 4 || block_length > 0x400000 ||- filter_type > FILTER_ARM || !is_valid_filter_block_start(rar, block_start) || (rar->cstate.window_size > 0 && (ssize_t)block_length > rar->cstate.window_size >> 1)) { archive_set_error(&ar->archive, ARCHIVE_ERRNO_FILE_FORMAT, "Invalid filter encountered");- return ARCHIVE_FATAL;+ return ARCHIVE_FAILED; } /* Allocate a new filter. */@@ -3203,7 +3245,7 @@ ARCHIVE_ERRNO_PROGRAMMER, "Failed to decode the code length"); - return ARCHIVE_FATAL;+ return rar->main.solid ? ARCHIVE_FATAL : ARCHIVE_FAILED; } if(ARCHIVE_OK != decode_number(a, &rar->cstate.dd, p,@@ -3213,7 +3255,7 @@ ARCHIVE_ERRNO_PROGRAMMER, "Failed to decode the distance slot"); - return ARCHIVE_FATAL;+ return rar->main.solid ? ARCHIVE_FATAL : ARCHIVE_FAILED; } if(dist_slot < 4) {@@ -3258,7 +3300,7 @@ "Failed to decode the " "distance slot"); - return ARCHIVE_FATAL;+ return rar->main.solid ? ARCHIVE_FATAL : ARCHIVE_FAILED; } if(dist >= INT_MAX - low_dist - 1) {@@ -3268,7 +3310,7 @@ ARCHIVE_ERRNO_FILE_FORMAT, "Distance pointer " "overflow");- return ARCHIVE_FATAL;+ return rar->main.solid ? ARCHIVE_FATAL : ARCHIVE_FAILED; } dist += low_dist;@@ -3303,7 +3345,7 @@ rar->cstate.last_len = len; if(ARCHIVE_OK != copy_string(a, len, dist))- return ARCHIVE_FATAL;+ return rar->main.solid ? ARCHIVE_FATAL : ARCHIVE_FAILED; continue; } else if(num == 256) {@@ -3319,7 +3361,7 @@ rar->cstate.last_len, rar->cstate.dist_cache[0])) {- return ARCHIVE_FATAL;+ return rar->main.solid ? ARCHIVE_FATAL : ARCHIVE_FAILED; } } @@ -3334,18 +3376,18 @@ if(ARCHIVE_OK != decode_number(a, &rar->cstate.rd, p, &len_slot)) {- return ARCHIVE_FATAL;+ return rar->main.solid ? ARCHIVE_FATAL : ARCHIVE_FAILED; } len = decode_code_length(a, rar, p, len_slot); if (len == -1) {- return ARCHIVE_FATAL;+ return rar->main.solid ? ARCHIVE_FATAL : ARCHIVE_FAILED; } rar->cstate.last_len = len; if(ARCHIVE_OK != copy_string(a, len, dist))- return ARCHIVE_FATAL;+ return rar->main.solid ? ARCHIVE_FATAL : ARCHIVE_FAILED; continue; }@@ -3507,6 +3549,7 @@ if(!rar->vol.push_buf) { archive_set_error(&a->archive, ENOMEM, "Can't allocate memory for a merge block buffer");+ rar->cstate.switch_multivolume = 0; return ARCHIVE_FATAL; } @@ -3524,15 +3567,21 @@ cur_block_size = rar5_min(rar->file.bytes_remaining, block_size - partial_offset); - if(cur_block_size == 0) {+ if(cur_block_size < 1) {+ /* bytes_remaining is less than 1 at the wrong point in+ * the merge loop, indicating corrupt volume+ * accounting. */ archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT,- "Encountered block size == 0 during block merge");+ "Encountered invalid block size during block merge");+ rar->cstate.switch_multivolume = 0; return ARCHIVE_FATAL; } - if(!read_ahead(a, cur_block_size, &lp))+ if(!read_ahead(a, cur_block_size, &lp)) {+ rar->cstate.switch_multivolume = 0; return ARCHIVE_EOF;+ } /* Sanity check; there should never be a situation where this * function reads more data than the block's size. */@@ -3540,6 +3589,7 @@ archive_set_error(&a->archive, ARCHIVE_ERRNO_PROGRAMMER, "Consumed too much data when merging blocks");+ rar->cstate.switch_multivolume = 0; return ARCHIVE_FATAL; } @@ -3549,8 +3599,12 @@ memcpy(&rar->vol.push_buf[partial_offset], lp, cur_block_size); /* Advance the stream read pointer by this block chunk size. */- if(ARCHIVE_OK != consume(a, cur_block_size))- return ARCHIVE_EOF;+ if(ARCHIVE_OK != consume(a, cur_block_size)) {+ /* Data was copied but stream pointer didn't advance;+ * stream position is unrecoverable. */+ rar->cstate.switch_multivolume = 0;+ return ARCHIVE_FATAL;+ } /* Update the pointers. `partial_offset` contains information * about the sum of merged block chunks. */@@ -3571,6 +3625,7 @@ ret = advance_multivolume(a); rar->merge_mode--; if(ret != ARCHIVE_OK) {+ rar->cstate.switch_multivolume = 0; return ret; } }@@ -3627,6 +3682,15 @@ to_skip = sizeof(struct compressed_block_header) + bf_byte_count(&rar->last_block_hdr) + 1; + /* If the block header's to_skip value exceeds the declared+ * remaining data, the archive is malformed. */+ if(to_skip > rar->file.bytes_remaining) {+ archive_set_error(&a->archive,+ ARCHIVE_ERRNO_FILE_FORMAT,+ "Block header size exceeds remaining file data");+ return ARCHIVE_FATAL;+ }+ if(ARCHIVE_OK != consume(a, to_skip)) return ARCHIVE_EOF; @@ -3863,7 +3927,8 @@ /* Don't perform full context reinitialization if we're * processing a solid archive. */ if(!rar->main.solid || !rar->cstate.window_buf) {- init_unpack(rar);+ if((ret = init_unpack(rar)) != ARCHIVE_OK)+ return ret; } rar->cstate.initialized = 1;@@ -3876,7 +3941,7 @@ "Invalid window size declaration in this file"); /* This should never happen in valid files. */- return ARCHIVE_FATAL;+ return ARCHIVE_FAILED; } if(rar->cstate.all_filters_applied == 1) {@@ -3887,7 +3952,7 @@ * files). */ while(1) { ret = process_block(a);- if(ret == ARCHIVE_EOF || ret == ARCHIVE_FATAL)+ if(ret != ARCHIVE_OK) return ret; if(rar->cstate.last_write_ptr ==@@ -3913,12 +3978,10 @@ ret = apply_filters(a); if(ret == ARCHIVE_RETRY) { return ARCHIVE_OK;- } else if(ret == ARCHIVE_FATAL) {- return ARCHIVE_FATAL;+ } else if(ret != ARCHIVE_OK) {+ return ret; } - /* If apply_filters() will return ARCHIVE_OK, we can continue here. */- if(cdeque_size(&rar->cstate.filters) > 0) { /* Check if we can write something before hitting first * filter. */@@ -4131,7 +4194,7 @@ archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "Checksum error: CRC32");- return ARCHIVE_FATAL;+ return ARCHIVE_FAILED; #endif } else { DEBUG_CODE {@@ -4166,7 +4229,7 @@ ARCHIVE_ERRNO_FILE_FORMAT, "Checksum error: BLAKE2"); - return ARCHIVE_FATAL;+ return ARCHIVE_FAILED; #endif } }@@ -4207,7 +4270,7 @@ if (rar->headers_are_encrypted || rar->cstate.data_encrypted) { archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "Reading encrypted data is not currently supported");- return ARCHIVE_FATAL;+ return ARCHIVE_FAILED; } if(rar->file.dir > 0) {
c/archive_read_support_format_tar.c view
@@ -42,6 +42,7 @@ #include "archive_acl_private.h" /* For ACL parsing routines. */ #include "archive_entry.h" #include "archive_entry_locale.h"+#include "archive_integer.h" #include "archive_private.h" #include "archive_read_private.h" @@ -153,6 +154,8 @@ int compat_2x; int process_mac_extensions; int read_concatenated_archives;+ int default_inode;+ int default_dev; }; /* Track which size fields were present in the headers */@@ -248,6 +251,36 @@ static const size_t acl_limit = 131072; /* Longest textual ACL: 128kiB */ static const int64_t entry_limit = 0xfffffffffffffffLL; /* 2^60 bytes = 1 ExbiByte */ +/*+ * There's no standard for TIME_T_MAX. So we compute it+ * here. TODO: Move this to configure time, but be careful+ * about cross-compile environments.+ */+static time_t+get_time_t_max(void)+{+#if defined(TIME_T_MAX)+ return TIME_T_MAX;+#else+ /* ISO C allows time_t to be a floating-point type,+ but POSIX requires an integer type. The following+ should work on any system that follows the POSIX+ conventions. */+ if (((time_t)0) < ((time_t)-1)) {+ /* Time_t is unsigned */+ return (~(time_t)0);+ } else {+ /* Time_t is signed. */+ /* Assume it's the same as int64_t or int32_t */+ if (sizeof(time_t) == sizeof(int64_t)) {+ return (time_t)INT64_MAX;+ } else {+ return (time_t)INT32_MAX;+ }+ }+#endif+}+ int archive_read_support_format_gnutar(struct archive *a) {@@ -522,10 +555,6 @@ * probably not worthwhile just to support the relatively * obscure tar->cpio conversion case. */- /* TODO: Move this into `struct tar` to avoid conflicts- * when reading multiple archives */- static int default_inode;- static int default_dev; struct tar *tar; const char *p; const wchar_t *wp;@@ -533,16 +562,17 @@ size_t l; int64_t unconsumed = 0; + tar = (struct tar *)(a->format->data);+ /* Assign default device/inode values. */- archive_entry_set_dev(entry, 1 + default_dev); /* Don't use zero. */- archive_entry_set_ino(entry, ++default_inode); /* Don't use zero. */+ archive_entry_set_dev(entry, 1 + tar->default_dev); /* Don't use zero. */+ archive_entry_set_ino(entry, ++tar->default_inode); /* Don't use zero. */ /* Limit generated st_ino number to 16 bits. */- if (default_inode >= 0xffff) {- ++default_dev;- default_inode = 0;+ if (tar->default_inode >= 0xffff) {+ ++tar->default_dev;+ tar->default_inode = 0; } - tar = (struct tar *)(a->format->data); tar->entry_offset = 0; gnu_clear_sparse_list(tar); tar->size_fields = 0; /* We don't have any size info yet */@@ -586,16 +616,16 @@ * directory: This is needed for certain old tar * variants and even for some broken newer ones. */- if ((wp = archive_entry_pathname_w(entry)) != NULL) {- l = wcslen(wp);- if (l > 0 && wp[l - 1] == L'/') {+ if ((p = archive_entry_pathname(entry)) != NULL) {+ l = strlen(p);+ if (l > 0 && p[l - 1] == '/') { archive_entry_set_filetype(entry, AE_IFDIR); tar->entry_bytes_remaining = 0; tar->entry_padding = 0; }- } else if ((p = archive_entry_pathname(entry)) != NULL) {- l = strlen(p);- if (l > 0 && p[l - 1] == '/') {+ } else if ((wp = archive_entry_pathname_w(entry)) != NULL) {+ l = wcslen(wp);+ if (l > 0 && wp[l - 1] == L'/') { archive_entry_set_filetype(entry, AE_IFDIR); tar->entry_bytes_remaining = 0; tar->entry_padding = 0;@@ -1369,7 +1399,12 @@ archive_entry_set_gid(entry, tar_atol(header->gid, sizeof(header->gid))); } if (!archive_entry_mtime_is_set(entry)) {- archive_entry_set_mtime(entry, tar_atol(header->mtime, sizeof(header->mtime)), 0);+ int64_t t64 = tar_atol(header->mtime, sizeof(header->mtime));+ time_t t = (time_t)t64;+ if ((int64_t)t != t64) { /* time_t overflowed */+ t = get_time_t_max();+ }+ archive_entry_set_mtime(entry, t, 0); } /* Reconcile the size info. */@@ -1782,32 +1817,42 @@ struct archive_entry *entry, const void *h) { const struct archive_entry_header_ustar *header;- struct archive_string as; int err = ARCHIVE_OK, r; header = (const struct archive_entry_header_ustar *)h; - /* Copy name into an internal buffer to ensure null-termination. */+ /*+ * The name field is fixed-width and may not be NUL-terminated.+ * Use a temporary string only when prefix/name joining is required.+ */ const char *existing_pathname = archive_entry_pathname(entry); const wchar_t *existing_wcs_pathname = archive_entry_pathname_w(entry); if ((existing_pathname == NULL || existing_pathname[0] == '\0') && (existing_wcs_pathname == NULL || existing_wcs_pathname[0] == '\0')) {+ struct archive_string as;+ const char *pathname;+ size_t pathname_length;+ archive_string_init(&as); if (header->prefix[0]) { archive_strncpy(&as, header->prefix, sizeof(header->prefix)); if (as.s[archive_strlen(&as) - 1] != '/') archive_strappend_char(&as, '/'); archive_strncat(&as, header->name, sizeof(header->name));+ pathname = as.s;+ pathname_length = archive_strlen(&as); } else {- archive_strncpy(&as, header->name, sizeof(header->name));+ pathname = header->name;+ pathname_length = sizeof(header->name); }- if (archive_entry_copy_pathname_l(entry, as.s, archive_strlen(&as),- tar->sconv) != 0) {+ r = archive_entry_copy_pathname_l(entry, pathname,+ pathname_length, tar->sconv);+ archive_string_free(&as);+ if (r != 0) { err = set_conversion_failed_error(a, tar->sconv, "Pathname"); if (err == ARCHIVE_FATAL) return (err); }- archive_string_free(&as); } /* Handle rest of common fields. */@@ -2009,6 +2054,7 @@ /* Consume size, name, and `=` */ *unconsumed += p - attr_start; if (tar_flush_unconsumed(a, unconsumed) != ARCHIVE_OK) {+ archive_string_free(&attr_name); return (ARCHIVE_FATAL); } @@ -2016,6 +2062,7 @@ archive_set_error(&a->archive, EINVAL, "Malformed pax attributes"); *unconsumed += ext_size + ext_padding;+ archive_string_free(&attr_name); return (ARCHIVE_WARN); } @@ -2266,7 +2313,7 @@ } static int-pax_attribute_read_time(struct archive_read *a, size_t value_length, int64_t *ps, long *pn, int64_t *unconsumed) {+pax_attribute_read_time(struct archive_read *a, size_t value_length, __LA_TIME_T *ps, long *pn, int64_t *unconsumed) { struct archive_string as; int r; @@ -2286,12 +2333,16 @@ return (r); } - pax_time(as.s, archive_strlen(&as), ps, pn);+ int64_t sec = 0;+ pax_time(as.s, archive_strlen(&as), &sec, pn); archive_string_free(&as);- if (*ps == INT64_MIN) {++ if (sec == INT64_MIN) { *ps = 0; *pn = 0; return (ARCHIVE_WARN);+ } else {+ *ps = (__LA_TIME_T)sec; } return (ARCHIVE_OK); }@@ -2348,7 +2399,6 @@ int64_t t; long n; const char *p;- ssize_t bytes_read; int err = ARCHIVE_OK; switch (key[0]) {@@ -2432,7 +2482,7 @@ (unsigned long long)sparse_map_limit); err = ARCHIVE_FAILED; } else {- p = __archive_read_ahead(a, value_length, &bytes_read);+ p = __archive_read_ahead(a, value_length, NULL); if (p == NULL) { archive_set_error(&a->archive, EINVAL, "Truncated archive"@@ -2507,15 +2557,20 @@ */ if (key_length == 12 && memcmp(key, "creationtime", 12) == 0) { /* LIBARCHIVE.creationtime */- if ((err = pax_attribute_read_time(a, value_length, &t, &n, unconsumed)) == ARCHIVE_OK) {- archive_entry_set_birthtime(entry, t, n);+ __LA_TIME_T sec = 0;+ if ((err = pax_attribute_read_time(a, value_length, &sec, &n, unconsumed)) == ARCHIVE_OK) {+ archive_entry_set_birthtime(entry, sec, n);+ } else {+ archive_set_error(&a->archive,+ ARCHIVE_ERRNO_MISC,+ "Ignoring malformed pax creationtime"); } return (err); } else if (key_length == 11 && memcmp(key, "symlinktype", 11) == 0) { /* LIBARCHIVE.symlinktype */ if (value_length < 16) {- p = __archive_read_ahead(a, value_length, &bytes_read);+ p = __archive_read_ahead(a, value_length, NULL); if (p == NULL) { archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "Truncated tar archive "@@ -2549,7 +2604,7 @@ if (value_length > xattr_limit) { err = ARCHIVE_WARN; } else {- p = __archive_read_ahead(a, value_length, &bytes_read);+ p = __archive_read_ahead(a, value_length, NULL); if (p == NULL) { archive_set_error(&a->archive, EINVAL, "Truncated archive"@@ -2579,7 +2634,7 @@ /* TODO: Should this be FAILED instead? */ err = ARCHIVE_WARN; } else {- p = __archive_read_ahead(a, value_length, &bytes_read);+ p = __archive_read_ahead(a, value_length, NULL); if (p == NULL) { archive_set_error(&a->archive, EINVAL, "Truncated archive"@@ -2632,7 +2687,7 @@ } else if (key_length == 6 && memcmp(key, "fflags", 6) == 0) { if (value_length < fflags_limit) {- p = __archive_read_ahead(a, value_length, &bytes_read);+ p = __archive_read_ahead(a, value_length, NULL); if (p == NULL) { /* Truncated archive */ archive_set_error(&a->archive, EINVAL,@@ -2679,7 +2734,7 @@ key_length -= 6; key += 6; if (value_length < xattr_limit) {- p = __archive_read_ahead(a, value_length, &bytes_read);+ p = __archive_read_ahead(a, value_length, NULL); if (p == NULL) { archive_set_error(&a->archive, EINVAL, "Truncated archive"@@ -2709,7 +2764,7 @@ if (key_length == 9 && memcmp(key, "holesdata", 9) == 0) { /* SUN.holesdata */ if (value_length < sparse_map_limit) {- p = __archive_read_ahead(a, value_length, &bytes_read);+ p = __archive_read_ahead(a, value_length, NULL); if (p == NULL) { archive_set_error(&a->archive, EINVAL, "Truncated archive"@@ -2736,16 +2791,26 @@ break; case 'a': if (key_length == 5 && memcmp(key, "atime", 5) == 0) {- if ((err = pax_attribute_read_time(a, value_length, &t, &n, unconsumed)) == ARCHIVE_OK) {- archive_entry_set_atime(entry, t, n);+ __LA_TIME_T sec = 0;+ if ((err = pax_attribute_read_time(a, value_length, &sec, &n, unconsumed)) == ARCHIVE_OK) {+ archive_entry_set_atime(entry, sec, n);+ } else {+ archive_set_error(&a->archive,+ ARCHIVE_ERRNO_MISC,+ "Ignoring malformed pax atime"); } return (err); } break; case 'c': if (key_length == 5 && memcmp(key, "ctime", 5) == 0) {- if ((err = pax_attribute_read_time(a, value_length, &t, &n, unconsumed)) == ARCHIVE_OK) {- archive_entry_set_ctime(entry, t, n);+ __LA_TIME_T sec = 0;+ if ((err = pax_attribute_read_time(a, value_length, &sec, &n, unconsumed)) == ARCHIVE_OK) {+ archive_entry_set_ctime(entry, sec, n);+ } else {+ archive_set_error(&a->archive,+ ARCHIVE_ERRNO_MISC,+ "Ignoring malformed pax ctime"); } return (err); } else if (key_length == 7 && memcmp(key, "charset", 7) == 0) {@@ -2773,7 +2838,7 @@ case 'h': if (key_length == 10 && memcmp(key, "hdrcharset", 10) == 0) { if (value_length < 64) {- p = __archive_read_ahead(a, value_length, &bytes_read);+ p = __archive_read_ahead(a, value_length, NULL); if (p == NULL) { archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "Truncated tar archive "@@ -2817,8 +2882,13 @@ break; case 'm': if (key_length == 5 && memcmp(key, "mtime", 5) == 0) {- if ((err = pax_attribute_read_time(a, value_length, &t, &n, unconsumed)) == ARCHIVE_OK) {- archive_entry_set_mtime(entry, t, n);+ __LA_TIME_T sec;+ if ((err = pax_attribute_read_time(a, value_length, &sec, &n, unconsumed)) == ARCHIVE_OK) {+ archive_entry_set_mtime(entry, sec, n);+ } else {+ archive_set_error(&a->archive,+ ARCHIVE_ERRNO_MISC,+ "Ignoring malformed pax mtime"); } return (err); }@@ -2885,7 +2955,8 @@ /* * Parse a decimal time value, which may include a fractional portion *- * Sets ps to INT64_MIN on error.+ * Sets ps to INT64_MIN on error, including syntax issues such as non-digits,+ * or a time value that's outside the range of time_t. */ static void pax_time(const char *p, size_t length, int64_t *ps, long *pn)@@ -2894,11 +2965,7 @@ int64_t s; unsigned long l; int sign;- int64_t limit, last_digit_limit; - limit = INT64_MAX / 10;- last_digit_limit = INT64_MAX % 10;- if (length <= 0) { *ps = 0; *pn = 0;@@ -2913,34 +2980,73 @@ } while (length > 0 && *p >= '0' && *p <= '9') { digit = *p - '0';- if (s > limit ||- (s == limit && digit > last_digit_limit)) {+ if (archive_ckd_mul_i64(&s, s, 10) ||+ archive_ckd_add_i64(&s, s, digit)) { *ps = INT64_MIN; *pn = 0; return; }- s = (s * 10) + digit; ++p; --length; } *ps = s * sign; +#if ARCHIVE_VERSION_NUMBER < 4000000+ /* Libarchive 4.0 will have __LA_TIME_T == int64_t, so+ this will be unnecessary. */+ /* Test whether it overflows __LA_TIME_T */+ __LA_TIME_T sec = (__LA_TIME_T)*ps;+ if ((int64_t)sec != *ps) {+ *ps = INT64_MIN;+ *pn = 0;+ return;+ }+#endif+ /* Calculate nanoseconds. */ *pn = 0; - if (length <= 0 || *p != '.')+ if (length <= 0) { return;+ } + /* Skip `.` */+ if (*p != '.') {+ *ps = INT64_MIN;+ *pn = 0;+ return;+ }+ ++p;+ --length;+ l = 100000000UL; do {+ if (length <= 0) {+ return;+ }+ if (*p >= '0' && *p <= '9') {+ *pn += (*p - '0') * l;+ } else {+ *ps = INT64_MIN;+ *pn = 0;+ return;+ } ++p; --length;- if (length > 0 && *p >= '0' && *p <= '9')- *pn += (*p - '0') * l;- else- break; } while (l /= 10);++ /* Ignore resolution beyond nanoseconds,+ but verify it's all decimal digits. */+ while (length > 0) {+ if (*p < '0' || *p > '9') {+ *ps = INT64_MIN;+ *pn = 0;+ return;+ }+ ++p;+ --length;+ } } /*@@ -3103,7 +3209,6 @@ gnu_sparse_old_read(struct archive_read *a, struct tar *tar, const struct archive_entry_header_gnutar *header, int64_t *unconsumed) {- ssize_t bytes_read; const void *data; struct extended { struct gnu_sparse sparse[21];@@ -3121,7 +3226,7 @@ if (tar_flush_unconsumed(a, unconsumed) != ARCHIVE_OK) { return (ARCHIVE_FATAL); }- data = __archive_read_ahead(a, 512, &bytes_read);+ data = __archive_read_ahead(a, 512, NULL); if (data == NULL) { archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "Truncated tar archive "@@ -3239,14 +3344,12 @@ gnu_sparse_10_atol(struct archive_read *a, struct tar *tar, int64_t *remaining, int64_t *unconsumed) {- int64_t l, limit, last_digit_limit;+ int64_t l; const char *p; ssize_t bytes_read; int base, digit; base = 10;- limit = INT64_MAX / base;- last_digit_limit = INT64_MAX % base; /* * Skip any lines starting with '#'; GNU tar specs@@ -3267,10 +3370,10 @@ if (*p < '0' || *p >= '0' + base) return (ARCHIVE_WARN); digit = *p - '0';- if (l > limit || (l == limit && digit > last_digit_limit))+ if (archive_ckd_mul_i64(&l, l, base) ||+ archive_ckd_add_i64(&l, l, digit)) { l = INT64_MAX; /* Truncate on overflow. */- else- l = (l * base) + digit;+ } p++; bytes_read--; }@@ -3416,13 +3519,9 @@ static int64_t tar_atol_base_n(const char *p, size_t char_cnt, int base) {- int64_t l, maxval, limit, last_digit_limit;+ int64_t l; int digit, sign; - maxval = INT64_MAX;- limit = INT64_MAX / base;- last_digit_limit = INT64_MAX % base;- /* the pointer will not be dereferenced if char_cnt is zero * due to the way the && operator is evaluated. */@@ -3436,25 +3535,22 @@ sign = -1; p++; char_cnt--;-- maxval = INT64_MIN;- limit = -(INT64_MIN / base);- last_digit_limit = -(INT64_MIN % base); } l = 0; if (char_cnt != 0) { digit = *p - '0';- while (digit >= 0 && digit < base && char_cnt != 0) {- if (l>limit || (l == limit && digit >= last_digit_limit)) {- return maxval; /* Truncate on overflow. */+ while (digit >= 0 && digit < base && char_cnt != 0) {+ if (archive_ckd_mul_i64(&l, l, base) ||+ archive_ckd_add_i64(&l, l, sign * digit)) {+ /* Truncate on overflow. */+ return sign < 0 ? INT64_MIN : INT64_MAX; }- l = (l * base) + digit; digit = *++p - '0'; char_cnt--; } }- return (sign < 0) ? -l : l;+ return l; } static int64_t@@ -3534,9 +3630,8 @@ { ssize_t bytes_read; ssize_t total_size = 0;- const void *t;+ const void *p, *t; const char *s;- void *p; if (tar_flush_unconsumed(a, unconsumed) != ARCHIVE_OK) { return (ARCHIVE_FATAL);@@ -3608,23 +3703,19 @@ static char * base64_decode(const char *s, size_t len, size_t *out_len) {- static const unsigned char digits[64] = {- 'A','B','C','D','E','F','G','H','I','J','K','L','M','N',- 'O','P','Q','R','S','T','U','V','W','X','Y','Z','a','b',- 'c','d','e','f','g','h','i','j','k','l','m','n','o','p',- 'q','r','s','t','u','v','w','x','y','z','0','1','2','3',- '4','5','6','7','8','9','+','/' };- static unsigned char decode_table[128];+ static const unsigned char decode_table[128] = {+ 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,+ 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,+ 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,+ 255, 255, 255, 255, 255, 255, 255, 62, 255, 255, 255, 63,+ 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 255, 255, 255, 255,+ 255, 255, 255, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,+ 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 255, 255,+ 255, 255, 255, 255, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35,+ 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50,+ 51, 255, 255, 255, 255, 255 }; char *out, *d; const unsigned char *src = (const unsigned char *)s;-- /* If the decode table is not yet initialized, prepare it. */- if (decode_table[digits[1]] != 1) {- unsigned i;- memset(decode_table, 0xff, sizeof(decode_table));- for (i = 0; i < sizeof(digits); i++)- decode_table[digits[i]] = i;- } /* Allocate enough space to hold the entire output. */ /* Note that we may not use all of this... */
c/archive_read_support_format_xar.c view
@@ -56,6 +56,7 @@ #include "archive_endian.h" #include "archive_entry.h" #include "archive_entry_locale.h"+#include "archive_integer.h" #include "archive_private.h" #include "archive_read_private.h" @@ -387,8 +388,7 @@ enum enctype, int, int); static int rd_contents(struct archive_read *, const void **, size_t *, size_t *, uint64_t);-static uint64_t atol10(const char *, size_t);-static int64_t atol8(const char *, size_t);+static int atou64(const char *, size_t, int, uint64_t *); static size_t atohex(unsigned char *, size_t, const char *, size_t); static time_t parse_time(const char *p, size_t n); static int heap_add_entry(struct archive_read *a,@@ -421,7 +421,7 @@ static int xml_start(struct archive_read *, const char *, struct xmlattr_list *); static void xml_end(void *, const char *);-static void xml_data(void *, const char *, size_t);+static int xml_data(void *, const char *, size_t); static int xml_parse_file_flags(struct xar *, const char *); static int xml_parse_file_ext2(struct xar *, const char *); #if defined(HAVE_LIBXML_XMLREADER_H)@@ -1071,44 +1071,26 @@ * it does obey locale. */ -static uint64_t-atol10(const char *p, size_t char_cnt)+static int+atou64(const char *p, size_t char_cnt, int base, uint64_t *val) { uint64_t l;- int digit; - if (char_cnt == 0)- return (0);- l = 0;- digit = *p - '0';- while (digit >= 0 && digit < 10 && char_cnt-- > 0) {- l = (l * 10) + digit;- digit = *++p - '0';- }- return (l);-}--static int64_t-atol8(const char *p, size_t char_cnt)-{- int64_t l;- int digit;-- if (char_cnt == 0)- return (0);+ if (char_cnt > 0) {+ int digit; - l = 0;- while (char_cnt-- > 0) {- if (*p >= '0' && *p <= '7')- digit = *p - '0';- else- break;- p++;- l <<= 3;- l |= digit;+ digit = *p - '0';+ while (digit >= 0 && digit < base && char_cnt-- > 0) {+ if (archive_ckd_mul_u64(&l, l, base) ||+ archive_ckd_add_u64(&l, l, digit))+ return (ARCHIVE_FATAL);+ digit = *++p - '0';+ } }- return (l);++ *val = l;+ return (ARCHIVE_OK); } static size_t@@ -1173,48 +1155,42 @@ { struct tm tm; time_t t = 0;- int64_t data;+ uint64_t data; memset(&tm, 0, sizeof(tm)); if (n != 20) return (t);- data = atol10(p, 4);- if (data < 1900)+ if (atou64(p, 4, 10, &data) != ARCHIVE_OK || data < 1900) return (t); tm.tm_year = (int)data - 1900; p += 4; if (*p++ != '-') return (t);- data = atol10(p, 2);- if (data < 1 || data > 12)+ if (atou64(p, 4, 10, &data) != ARCHIVE_OK || data < 1 || data > 12) return (t); tm.tm_mon = (int)data -1; p += 2; if (*p++ != '-') return (t);- data = atol10(p, 2);- if (data < 1 || data > 31)+ if (atou64(p, 4, 10, &data) != ARCHIVE_OK || data < 1 || data > 31) return (t); tm.tm_mday = (int)data; p += 2; if (*p++ != 'T') return (t);- data = atol10(p, 2);- if (data < 0 || data > 23)+ if (atou64(p, 4, 10, &data) != ARCHIVE_OK || data > 23) return (t); tm.tm_hour = (int)data; p += 2; if (*p++ != ':') return (t);- data = atol10(p, 2);- if (data < 0 || data > 59)+ if (atou64(p, 4, 10, &data) != ARCHIVE_OK || data > 59) return (t); tm.tm_min = (int)data; p += 2; if (*p++ != ':') return (t);- data = atol10(p, 2);- if (data < 0 || data > 60)+ if (atou64(p, 4, 10, &data) != ARCHIVE_OK || data > 60) return (t); tm.tm_sec = (int)data; #if 0@@ -1800,12 +1776,20 @@ file->mode = 0777 | AE_IFREG; file->atime = 0; file->mtime = 0;- xar->file = file; xar->xattr = NULL; for (attr = list->first; attr != NULL; attr = attr->next) {- if (strcmp(attr->name, "id") == 0)- file->id = atol10(attr->value, strlen(attr->value));+ if (strcmp(attr->name, "id") == 0) {+ int r;++ r = atou64(attr->value, strlen(attr->value),+ 10, &file->id);+ if (r != ARCHIVE_OK) {+ free(file);+ return (r);+ }+ } }+ xar->file = file; file->nlink = 1; if (heap_add_entry(a, &(xar->file_queue), file) != ARCHIVE_OK) return (ARCHIVE_FATAL);@@ -1822,6 +1806,7 @@ archive_string_free(&(file->uname)); archive_string_free(&(file->gname)); archive_string_free(&(file->hardlink));+ archive_string_free(&(file->fflags_text)); xattr = file->xattr_list; while (xattr != NULL) { struct xattr *next;@@ -1845,11 +1830,19 @@ archive_set_error(&a->archive, ENOMEM, "Out of memory"); return (ARCHIVE_FATAL); }- xar->xattr = xattr; for (attr = list->first; attr != NULL; attr = attr->next) {- if (strcmp(attr->name, "id") == 0)- xattr->id = atol10(attr->value, strlen(attr->value));+ if (strcmp(attr->name, "id") == 0) {+ int r;++ r = atou64(attr->value, strlen(attr->value),+ 10, &xattr->id);+ if (r != ARCHIVE_OK) {+ free(xattr);+ return (r);+ }+ } }+ xar->xattr = xattr; /* Chain to xattr list. */ for (nx = &(xar->file->xattr_list); *nx != NULL; nx = &((*nx)->next)) {@@ -1866,6 +1859,7 @@ xattr_free(struct xattr *xattr) { archive_string_free(&(xattr->name));+ archive_string_free(&(xattr->fstype)); free(xattr); } @@ -2065,8 +2059,17 @@ xar->file->hdnext = xar->hdlink_orgs; xar->hdlink_orgs = xar->file; } else {- xar->file->link = (unsigned)atol10(attr->value,- strlen(attr->value));+ uint64_t val;+ int r;+ r = atou64(attr->value,+ strlen(attr->value), 10, &val);+ if (r != ARCHIVE_OK) {+ return (r);+ }+ if (val > UINT_MAX) {+ return (ARCHIVE_FATAL);+ }+ xar->file->link = (unsigned)val; if (xar->file->link > 0) if (add_link(a, xar, xar->file) != ARCHIVE_OK) { return (ARCHIVE_FATAL);@@ -2673,11 +2676,13 @@ return memcmp(data, known, len); } -static void+static int xml_data(void *userData, const char *s, size_t len) {+ uint64_t val; struct archive_read *a; struct xar *xar;+ int r; a = (struct archive_read *)userData; xar = (struct xar *)(a->format->data);@@ -2685,25 +2690,30 @@ #if DEBUG { char buff[1024];- if (len > (int)(sizeof(buff)-1))- len = (int)(sizeof(buff)-1);- strncpy(buff, s, len);- buff[len] = 0;- fprintf(stderr, "\tlen=%d:\"%s\"\n", len, buff);+ size_t dlen = len;+ if (dlen > sizeof(buff) - 1)+ dlen = sizeof(buff) - 1;+ strncpy(buff, s, dlen);+ buff[dlen] = 0;+ fprintf(stderr, "\tlen=%zu:\"%s\"\n", dlen, buff); } #endif switch (xar->xmlsts) { case TOC_CHECKSUM_OFFSET:- xar->toc_chksum_offset = atol10(s, len);+ r = atou64(s, len, 10, &xar->toc_chksum_offset);+ if (r != ARCHIVE_OK)+ return (r); break; case TOC_CHECKSUM_SIZE:- xar->toc_chksum_size = atol10(s, len);+ r = atou64(s, len, 10, &xar->toc_chksum_size);+ if (r != ARCHIVE_OK)+ return (r); break; default: break; } if (xar->file == NULL)- return;+ return (ARCHIVE_OK); switch (xar->xmlsts) { case FILE_NAME:@@ -2752,42 +2762,76 @@ xar->file->has |= HAS_TYPE; break; case FILE_INODE:+ r = atou64(s, len, 10, &val);+ if (r != ARCHIVE_OK)+ return (r);+ if (val > (uint64_t)INT64_MAX)+ return (ARCHIVE_FATAL); xar->file->has |= HAS_INO;- xar->file->ino64 = atol10(s, len);+ xar->file->ino64 = (int64_t)val; break; case FILE_DEVICE_MAJOR:+ r = atou64(s, len, 10, &val);+ if (r != ARCHIVE_OK)+ return (r);+ if (val != (dev_t)val)+ return (ARCHIVE_FATAL); xar->file->has |= HAS_DEVMAJOR;- xar->file->devmajor = (dev_t)atol10(s, len);+ xar->file->devmajor = (dev_t)val; break; case FILE_DEVICE_MINOR:+ r = atou64(s, len, 10, &val);+ if (r != ARCHIVE_OK)+ return (r);+ if (val != (dev_t)val)+ return (ARCHIVE_FATAL); xar->file->has |= HAS_DEVMINOR;- xar->file->devminor = (dev_t)atol10(s, len);+ xar->file->devminor = (dev_t)val; break; case FILE_DEVICENO:+ r = atou64(s, len, 10, &val);+ if (r != ARCHIVE_OK)+ return (r);+ if (val != (dev_t)val)+ return (ARCHIVE_FATAL); xar->file->has |= HAS_DEV;- xar->file->dev = (dev_t)atol10(s, len);+ xar->file->dev = (dev_t)val; break; case FILE_MODE:+ r = atou64(s, len, 8, &val);+ if (r != ARCHIVE_OK)+ return (r);+ if (val != (mode_t)val)+ return (ARCHIVE_FATAL); xar->file->has |= HAS_MODE; xar->file->mode =- (xar->file->mode & AE_IFMT) |- ((mode_t)(atol8(s, len)) & ~AE_IFMT);+ (xar->file->mode & AE_IFMT) | ((mode_t)val & ~AE_IFMT); break; case FILE_GROUP: xar->file->has |= HAS_GID; archive_strncpy(&(xar->file->gname), s, len); break; case FILE_GID:+ r = atou64(s, len, 10, &val);+ if (r != ARCHIVE_OK)+ return (r);+ if (val > (uint64_t)INT64_MAX)+ return (ARCHIVE_FATAL); xar->file->has |= HAS_GID;- xar->file->gid = atol10(s, len);+ xar->file->gid = (int64_t)val; break; case FILE_USER: xar->file->has |= HAS_UID; archive_strncpy(&(xar->file->uname), s, len); break; case FILE_UID:+ r = atou64(s, len, 10, &val);+ if (r != ARCHIVE_OK)+ return (r);+ if (val > (uint64_t)INT64_MAX)+ return (ARCHIVE_FATAL); xar->file->has |= HAS_UID;- xar->file->uid = atol10(s, len);+ xar->file->uid = (int64_t)val; break; case FILE_CTIME: xar->file->has |= HAS_TIME | HAS_CTIME;@@ -2802,16 +2846,22 @@ xar->file->atime = parse_time(s, len); break; case FILE_DATA_LENGTH:+ r = atou64(s, len, 10, &xar->file->length);+ if (r != ARCHIVE_OK)+ return (r); xar->file->has |= HAS_DATA;- xar->file->length = atol10(s, len); break; case FILE_DATA_OFFSET:+ r = atou64(s, len, 10, &xar->file->offset);+ if (r != ARCHIVE_OK)+ return (r); xar->file->has |= HAS_DATA;- xar->file->offset = atol10(s, len); break; case FILE_DATA_SIZE:+ r = atou64(s, len, 10, &xar->file->size);+ if (r != ARCHIVE_OK)+ return (r); xar->file->has |= HAS_DATA;- xar->file->size = atol10(s, len); break; case FILE_DATA_A_CHECKSUM: xar->file->a_sum.len = atohex(xar->file->a_sum.val,@@ -2822,16 +2872,22 @@ sizeof(xar->file->e_sum.val), s, len); break; case FILE_EA_LENGTH:+ r = atou64(s, len, 10, &xar->xattr->length);+ if (r != ARCHIVE_OK)+ return (r); xar->file->has |= HAS_XATTR;- xar->xattr->length = atol10(s, len); break; case FILE_EA_OFFSET:+ r = atou64(s, len, 10, &xar->xattr->offset);+ if (r != ARCHIVE_OK)+ return (r); xar->file->has |= HAS_XATTR;- xar->xattr->offset = atol10(s, len); break; case FILE_EA_SIZE:+ r = atou64(s, len, 10, &xar->xattr->size);+ if (r != ARCHIVE_OK)+ return (r); xar->file->has |= HAS_XATTR;- xar->xattr->size = atol10(s, len); break; case FILE_EA_A_CHECKSUM: xar->file->has |= HAS_XATTR;@@ -2907,6 +2963,8 @@ case UNKNOWN: break; }++ return (ARCHIVE_OK); } /*@@ -3205,7 +3263,12 @@ break; case XML_READER_TYPE_TEXT: value = (const char *)xmlTextReaderConstValue(reader);- xml_data(a, value, strlen(value));+ r = xml_data(a, value, strlen(value));+ if (r != ARCHIVE_OK) {+ xmlFreeTextReader(reader);+ xmlCleanupParser();+ return (r);+ } break; case XML_READER_TYPE_SIGNIFICANT_WHITESPACE: default:@@ -3285,7 +3348,10 @@ { struct expat_userData *ud = (struct expat_userData *)userData; - xml_data(ud->archive, s, (size_t)len);+ if (ud->state != ARCHIVE_OK)+ return;++ ud->state = xml_data(ud->archive, s, (size_t)len); } static int@@ -3321,7 +3387,7 @@ d = NULL; r = rd_contents(a, &d, &outbytes, &used, xar->toc_remaining);- if (r != ARCHIVE_OK) {+ if (r != ARCHIVE_OK || outbytes > INT_MAX) { XML_ParserFree(parser); return (r); }@@ -3638,7 +3704,11 @@ goto out; } - xml_data(a, as.s, (int)archive_strlen(&as));+ r = xml_data(a, as.s, archive_strlen(&as));+ if (r != ARCHIVE_OK) {+ /* xml_data sets an appropriate error */+ goto out;+ } archive_string_free(&as); case XmlNodeType_None:
c/archive_read_support_format_zip.c view
@@ -272,6 +272,10 @@ size_t *size, int64_t *offset); #endif +static void+trad_enc_decrypt_update(struct trad_enc_ctx *, const uint8_t *, size_t,+ uint8_t *, size_t);+ /* This function is used by Ppmd8_DecodeSymbol during decompression of Ppmd8 * streams inside ZIP files. It has 2 purposes: one is to fetch the next * compressed byte from the stream, second one is to increase the counter how@@ -281,15 +285,32 @@ /* Get the handle to current decompression context. */ struct archive_read *a = ((IByteIn*)p)->a; struct zip *zip = (struct zip*) a->format->data;- ssize_t bytes_avail = 0; /* Fetch next byte. */- const uint8_t* data = __archive_read_ahead(a, 1, &bytes_avail);- if(bytes_avail < 1) {+ const uint8_t* data = __archive_read_ahead(a, 1, NULL);+ if(data == NULL) { zip->ppmd8_stream_failed = 1; return 0; } + if (zip->tctx_valid || zip->cctx_valid) {+ uint8_t val;+ if (zip->tctx_valid) {+ trad_enc_decrypt_update(&zip->tctx,+ data, 1, &val, 1);+ } else {+ size_t dsize = 1;+ archive_decrypto_aes_ctr_update(&zip->cctx,+ data, 1, &val, &dsize);+ }+ if (zip->hctx_valid)+ archive_hmac_sha1_update(&zip->hctx, data, 1);++ __archive_read_consume(a, 1);+ ++zip->zipx_ppmd_read_compressed;+ return val;+ }+ __archive_read_consume(a, 1); /* Increment the counter. */@@ -401,6 +422,146 @@ } #endif +/* Read and decrypt bytes for zipx init headers.+ * Used by format-specific init functions (lzma, ppmd) that need to+ * read a small header from the compressed stream. When encryption is+ * active the bytes are decrypted in-place into the decryption buffer. */+static int+zipx_read_header_and_decrypt(struct archive_read *a, const void **buf, size_t in_len,+ size_t *out_len, size_t *consumed)+{+ struct zip *zip = (struct zip *)(a->format->data);+ const void *raw;+ ssize_t bytes_avail;+ size_t to_decrypt;++ raw = __archive_read_ahead(a, in_len, &bytes_avail);+ if (raw == NULL || bytes_avail < (ssize_t)in_len) {+ archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT,+ "Truncated ZIP file data");+ return (ARCHIVE_FATAL);+ }++ if (zip->tctx_valid || zip->cctx_valid) {+ to_decrypt = in_len;+ if (to_decrypt > zip->decrypted_buffer_size)+ to_decrypt = zip->decrypted_buffer_size;++ if (zip->tctx_valid) {+ trad_enc_decrypt_update(&zip->tctx,+ raw, to_decrypt,+ zip->decrypted_buffer, to_decrypt);+ } else {+ size_t dsize = to_decrypt;+ archive_decrypto_aes_ctr_update(&zip->cctx,+ raw, to_decrypt,+ zip->decrypted_buffer, &dsize);+ }+ if (zip->hctx_valid)+ archive_hmac_sha1_update(&zip->hctx,+ raw, to_decrypt);++ *buf = zip->decrypted_buffer;+ *out_len = to_decrypt;+ *consumed = to_decrypt;+ } else {+ *buf = raw;+ *out_len = in_len;+ *consumed = in_len;+ }+ return (ARCHIVE_OK);+}++/* Decrypt bulk compressed data for zipx decompression.+ * Manages the decryption buffer, handles partial fills, and returns decrypted+ * data pointer + length. `sp` is set to the raw pointer for HMAC accounting. */+static void+zip_read_decrypt(struct zip *zip, const void *compressed_buff,+ ssize_t bytes_avail, const void **result_buff, ssize_t *result_avail,+ const void **sp)+{+ *sp = compressed_buff;++ if (zip->tctx_valid || zip->cctx_valid) {+ if (zip->decrypted_bytes_remaining < (size_t)bytes_avail) {+ size_t buff_remaining =+ (zip->decrypted_buffer ++ zip->decrypted_buffer_size)+ - (zip->decrypted_ptr ++ zip->decrypted_bytes_remaining);+ /* The new bytes to decrypt start after decrypted_bytes_remaining+ * in the raw stream: those leading bytes were already+ * decrypted on a previous call but have not yet been consumed. */+ size_t new_bytes =+ (size_t)bytes_avail+ - zip->decrypted_bytes_remaining;++ if (buff_remaining > new_bytes)+ buff_remaining = new_bytes;++ if (0 == (zip->entry->zip_flags & ZIP_LENGTH_AT_END) &&+ zip->entry_bytes_remaining > 0) {+ if ((int64_t)(zip->decrypted_bytes_remaining+ + buff_remaining)+ > zip->entry_bytes_remaining) {+ if (zip->entry_bytes_remaining <+ (int64_t)zip->decrypted_bytes_remaining)+ buff_remaining = 0;+ else+ buff_remaining =+ (size_t)zip->entry_bytes_remaining+ - zip->decrypted_bytes_remaining;+ }+ }+ if (buff_remaining > 0) {+ if (zip->tctx_valid) {+ trad_enc_decrypt_update(&zip->tctx,+ (const uint8_t *)compressed_buff+ + zip->decrypted_bytes_remaining,+ buff_remaining,+ zip->decrypted_ptr+ + zip->decrypted_bytes_remaining,+ buff_remaining);+ } else {+ size_t dsize = buff_remaining;+ archive_decrypto_aes_ctr_update(+ &zip->cctx,+ (const uint8_t *)compressed_buff+ + zip->decrypted_bytes_remaining,+ buff_remaining,+ zip->decrypted_ptr+ + zip->decrypted_bytes_remaining,+ &dsize);+ }+ zip->decrypted_bytes_remaining +=+ buff_remaining;+ }+ }+ *result_avail = zip->decrypted_bytes_remaining;+ *result_buff = (const char *)zip->decrypted_ptr;+ } else {+ *result_buff = compressed_buff;+ *result_avail = bytes_avail;+ }+}++/* Post-decompression decrypt state update.+ * Updates decrypt buffer pointers and HMAC after the decompressor+ * has consumed `to_consume` bytes. */+static void+zip_read_decrypt_update(struct zip *zip, ssize_t to_consume, const void *sp)+{+ if (zip->tctx_valid || zip->cctx_valid) {+ zip->decrypted_bytes_remaining -= to_consume;+ if (zip->decrypted_bytes_remaining == 0)+ zip->decrypted_ptr = zip->decrypted_buffer;+ else+ zip->decrypted_ptr += to_consume;+ }+ if (zip->hctx_valid)+ archive_hmac_sha1_update(&zip->hctx, sp, to_consume);+}+ /* * Common code for streaming or seeking modes. *@@ -1775,7 +1936,7 @@ * "lzma alone" decoder from XZ Utils. */ memset(&zip->zipx_lzma_stream, 0, sizeof(zip->zipx_lzma_stream));- r = lzma_alone_decoder(&zip->zipx_lzma_stream, UINT64_MAX);+ r = lzma_alone_decoder(&zip->zipx_lzma_stream, 576 * ((uint64_t)1 << 20)); if (r != LZMA_OK) { archive_set_error(&(a->archive), ARCHIVE_ERRNO_MISC, "lzma initialization failed (%d)", r);@@ -1825,12 +1986,32 @@ */ /* Read magic1,magic2,lzma_params from the ZIPX stream. */- if(zip->entry_bytes_remaining < 9 || (p = __archive_read_ahead(a, 9, NULL)) == NULL) {+ if(zip->entry_bytes_remaining < 9) { archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "Truncated lzma data"); return (ARCHIVE_FATAL); } + if (zip->tctx_valid || zip->cctx_valid) {+ const void *decrypted;+ size_t out_len;+ size_t consumed;+ int ret;++ ret = zipx_read_header_and_decrypt(a, &decrypted, 9, &out_len, &consumed);+ if (ret != ARCHIVE_OK)+ return ret;+ p = decrypted;+ } else {+ p = __archive_read_ahead(a, 9, NULL);+ if (p == NULL) {+ archive_set_error(&a->archive,+ ARCHIVE_ERRNO_FILE_FORMAT,+ "Truncated lzma data");+ return (ARCHIVE_FATAL);+ }+ }+ if(p[2] != 0x05 || p[3] != 0x00) { archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "Invalid lzma data");@@ -1868,8 +2049,12 @@ * output bytes yet. */ r = lzma_code(&zip->zipx_lzma_stream, LZMA_RUN); if (r != LZMA_OK) {- archive_set_error(&a->archive, ARCHIVE_ERRNO_PROGRAMMER,- "lzma stream initialization error");+ if (r == LZMA_MEMLIMIT_ERROR)+ archive_set_error(&a->archive, ENOMEM,+ "lzma stream requires too much memory");+ else+ archive_set_error(&a->archive, ARCHIVE_ERRNO_PROGRAMMER,+ "lzma stream initialization error"); return ARCHIVE_FATAL; } @@ -1890,6 +2075,7 @@ int ret; lzma_ret lz_ret; const void* compressed_buf;+ const void* sp; ssize_t bytes_avail, in_bytes, to_consume = 0; (void) offset; /* UNUSED */@@ -1901,7 +2087,7 @@ return (ret); } - compressed_buf = __archive_read_ahead(a, 1, &bytes_avail);+ compressed_buf = sp = __archive_read_ahead(a, 1, &bytes_avail); if (bytes_avail < 0) { archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "Truncated xz file body");@@ -1909,6 +2095,10 @@ } in_bytes = (ssize_t)zipmin(zip->entry_bytes_remaining, bytes_avail);++ zip_read_decrypt(zip, compressed_buf, in_bytes,+ &compressed_buf, &in_bytes, &sp);+ zip->zipx_lzma_stream.next_in = compressed_buf; zip->zipx_lzma_stream.avail_in = in_bytes; zip->zipx_lzma_stream.total_in = 0;@@ -1957,6 +2147,16 @@ zip->entry_compressed_bytes_read += to_consume; zip->entry_uncompressed_bytes_read += zip->zipx_lzma_stream.total_out; + zip_read_decrypt_update(zip, to_consume, sp);++ if (zip->end_of_entry) {+ if (zip->hctx_valid) {+ ret = check_authentication_code(a, NULL);+ if (ret != ARCHIVE_OK)+ return ret;+ }+ }+ *size = (size_t)zip->zipx_lzma_stream.total_out; *buff = zip->uncompressed_buffer; @@ -1971,6 +2171,7 @@ int ret; lzma_ret lz_ret; const void* compressed_buf;+ const void* sp; ssize_t bytes_avail, in_bytes, to_consume; (void) offset; /* UNUSED */@@ -2000,6 +2201,9 @@ /* Set decompressor parameters. */ in_bytes = (ssize_t)zipmin(zip->entry_bytes_remaining, bytes_avail); + zip_read_decrypt(zip, compressed_buf, in_bytes,+ &compressed_buf, &in_bytes, &sp);+ zip->zipx_lzma_stream.next_in = compressed_buf; zip->zipx_lzma_stream.avail_in = in_bytes; zip->zipx_lzma_stream.total_in = 0;@@ -2039,6 +2243,12 @@ case LZMA_OK: break; + case LZMA_BUF_ERROR:+ if (zip->zipx_lzma_stream.avail_out == 0) {+ zip->end_of_entry = 1;+ break;+ }+ /* FALL THROUGH */ default: archive_set_error(&a->archive, ARCHIVE_ERRNO_MISC, "lzma unknown error (%d)", (int) lz_ret);@@ -2053,16 +2263,37 @@ zip->entry_compressed_bytes_read += to_consume; zip->entry_uncompressed_bytes_read += zip->zipx_lzma_stream.total_out; + zip_read_decrypt_update(zip, to_consume, sp);+ if(zip->entry_bytes_remaining == 0) { zip->end_of_entry = 1; } + if(zip->end_of_entry && zip->entry_bytes_remaining > 0) {+ ssize_t remaining = (ssize_t)zip->entry_bytes_remaining;+ const void *p = __archive_read_ahead(a, remaining, NULL);+ if (p != NULL) {+ if (zip->hctx_valid)+ archive_hmac_sha1_update(&zip->hctx,+ p, remaining);+ __archive_read_consume(a, remaining);+ zip->entry_compressed_bytes_read += remaining;+ zip->entry_bytes_remaining = 0;+ }+ }+ /* Free lzma decoder handle because we'll no longer need it. */ /* This cannot be folded into LZMA_STREAM_END handling above * because the stream end marker is not required in this format. */ if(zip->end_of_entry) { lzma_end(&zip->zipx_lzma_stream); zip->zipx_lzma_valid = 0;++ if (zip->hctx_valid) {+ ret = check_authentication_code(a, NULL);+ if (ret != ARCHIVE_OK)+ return ret;+ } } /* Return values. */@@ -2104,11 +2335,22 @@ zip->zipx_ppmd_read_compressed = 0; /* Read Ppmd8 header (2 bytes). */- p = __archive_read_ahead(a, 2, NULL);- if(!p) {- archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT,- "Truncated file data in PPMd8 stream");- return (ARCHIVE_FATAL);+ if (zip->tctx_valid || zip->cctx_valid) {+ size_t out_len;+ size_t consumed;+ int ret;++ ret = zipx_read_header_and_decrypt(a, &p, 2, &out_len, &consumed);+ if (ret != ARCHIVE_OK)+ return ret;+ } else {+ p = __archive_read_ahead(a, 2, NULL);+ if(!p) {+ archive_set_error(&a->archive,+ ARCHIVE_ERRNO_FILE_FORMAT,+ "Truncated file data in PPMd8 stream");+ return (ARCHIVE_FATAL);+ } } __archive_read_consume(a, 2); @@ -2178,7 +2420,6 @@ struct zip* zip = (struct zip *)(a->format->data); int ret; size_t consumed_bytes = 0;- ssize_t bytes_avail = 0; (void) offset; /* UNUSED */ @@ -2192,8 +2433,7 @@ /* Fetch for more data. We're reading 1 byte here, but libarchive * should prefetch more bytes. */- (void) __archive_read_ahead(a, 1, &bytes_avail);- if(bytes_avail < 0) {+ if(__archive_read_ahead(a, 1, NULL) == NULL) { archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "Truncated PPMd8 file body"); return (ARCHIVE_FATAL);@@ -2234,6 +2474,12 @@ if(zip->end_of_entry) { __archive_ppmd8_functions.Ppmd8_Free(&zip->ppmd8); zip->ppmd8_valid = 0;++ if (zip->hctx_valid) {+ int r = check_authentication_code(a, NULL);+ if (r != ARCHIVE_OK)+ return (r);+ } } /* Update pointers for libarchive. */@@ -2293,6 +2539,7 @@ struct zip *zip = (struct zip *)(a->format->data); ssize_t bytes_avail = 0, in_bytes, to_consume; const void *compressed_buff;+ const void *sp; int r; uint64_t total_out; @@ -2325,6 +2572,9 @@ return (ARCHIVE_FATAL); } + zip_read_decrypt(zip, compressed_buff, in_bytes,+ &compressed_buff, &in_bytes, &sp);+ /* Setup buffer boundaries. */ zip->bzstream.next_in = (char*)(uintptr_t) compressed_buff; zip->bzstream.avail_in = (uint32_t)in_bytes;@@ -2375,6 +2625,14 @@ zip->entry_compressed_bytes_read += to_consume; zip->entry_uncompressed_bytes_read += total_out; + zip_read_decrypt_update(zip, to_consume, sp);++ if (zip->end_of_entry && zip->hctx_valid) {+ r = check_authentication_code(a, NULL);+ if (r != ARCHIVE_OK)+ return r;+ }+ /* Give libarchive its due. */ *size = (size_t)total_out; *buff = zip->uncompressed_buffer;@@ -2436,6 +2694,7 @@ struct zip *zip = (struct zip *)(a->format->data); ssize_t bytes_avail = 0, in_bytes, to_consume; const void *compressed_buff;+ const void *sp; int r; size_t ret; uint64_t total_out;@@ -2452,7 +2711,7 @@ } /* Fetch more compressed bytes */- compressed_buff = __archive_read_ahead(a, 1, &bytes_avail);+ compressed_buff = sp = __archive_read_ahead(a, 1, &bytes_avail); if(bytes_avail < 0) { archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "Truncated zstd file body");@@ -2470,6 +2729,9 @@ return (ARCHIVE_FATAL); } + zip_read_decrypt(zip, compressed_buff, in_bytes,+ &compressed_buff, &in_bytes, &sp);+ /* Setup buffer boundaries */ in.src = compressed_buff; in.size = in_bytes;@@ -2504,6 +2766,14 @@ zip->entry_compressed_bytes_read += to_consume; zip->entry_uncompressed_bytes_read += total_out; + zip_read_decrypt_update(zip, to_consume, sp);++ if (zip->end_of_entry && zip->hctx_valid) {+ r = check_authentication_code(a, NULL);+ if (r != ARCHIVE_OK)+ return r;+ }+ /* Give libarchive its due. */ *size = (size_t)total_out; *buff = zip->uncompressed_buffer;@@ -2544,7 +2814,8 @@ { struct zip *zip; ssize_t bytes_avail, to_consume = 0;- const void *compressed_buff, *sp;+ const void *compressed_buff;+ const void *sp; int r; (void)offset; /* UNUSED */@@ -2584,54 +2855,8 @@ return (ARCHIVE_FATAL); } - if (zip->tctx_valid || zip->cctx_valid) {- if (zip->decrypted_bytes_remaining < (size_t)bytes_avail) {- size_t buff_remaining =- (zip->decrypted_buffer +- zip->decrypted_buffer_size)- - (zip->decrypted_ptr +- zip->decrypted_bytes_remaining);-- if (buff_remaining > (size_t)bytes_avail)- buff_remaining = (size_t)bytes_avail;-- if (0 == (zip->entry->zip_flags & ZIP_LENGTH_AT_END) &&- zip->entry_bytes_remaining > 0) {- if ((int64_t)(zip->decrypted_bytes_remaining- + buff_remaining)- > zip->entry_bytes_remaining) {- if (zip->entry_bytes_remaining <- (int64_t)zip->decrypted_bytes_remaining)- buff_remaining = 0;- else- buff_remaining =- (size_t)zip->entry_bytes_remaining- - zip->decrypted_bytes_remaining;- }- }- if (buff_remaining > 0) {- if (zip->tctx_valid) {- trad_enc_decrypt_update(&zip->tctx,- compressed_buff, buff_remaining,- zip->decrypted_ptr- + zip->decrypted_bytes_remaining,- buff_remaining);- } else {- size_t dsize = buff_remaining;- archive_decrypto_aes_ctr_update(- &zip->cctx,- compressed_buff, buff_remaining,- zip->decrypted_ptr- + zip->decrypted_bytes_remaining,- &dsize);- }- zip->decrypted_bytes_remaining +=- buff_remaining;- }- }- bytes_avail = zip->decrypted_bytes_remaining;- compressed_buff = (const char *)zip->decrypted_ptr;- }+ zip_read_decrypt(zip, compressed_buff, bytes_avail,+ &compressed_buff, &bytes_avail, &sp); /* * A bug in zlib.h: stream.next_in should be marked 'const'@@ -2670,22 +2895,12 @@ zip->entry_compressed_bytes_read += to_consume; zip->entry_uncompressed_bytes_read += zip->stream.total_out; - if (zip->tctx_valid || zip->cctx_valid) {- zip->decrypted_bytes_remaining -= to_consume;- if (zip->decrypted_bytes_remaining == 0)- zip->decrypted_ptr = zip->decrypted_buffer;- else- zip->decrypted_ptr += to_consume;- }- if (zip->hctx_valid)- archive_hmac_sha1_update(&zip->hctx, sp, to_consume);+ zip_read_decrypt_update(zip, to_consume, sp); - if (zip->end_of_entry) {- if (zip->hctx_valid) {- r = check_authentication_code(a, NULL);- if (r != ARCHIVE_OK) {- return (r);- }+ if (zip->end_of_entry && zip->hctx_valid) {+ r = check_authentication_code(a, NULL);+ if (r != ARCHIVE_OK) {+ return r; } }
c/archive_string.c view
@@ -1314,8 +1314,18 @@ else if (strcmp(fc, "CP932") == 0) sc->cd = iconv_open(tc, "SJIS"); }-#if defined(_WIN32) && !defined(__CYGWIN__)+#if defined(__FreeBSD__) && !defined(HAVE_LIBICONV) /*+ * FreeBSD's native iconv() by default returns the number of+ * invalid characters in the input string, as specified by+ * POSIX, but iconv_strncat_in_locale() assumes GNU iconv+ * semantics.+ */+ int v = 1;++ (void)iconvctl(sc->cd, ICONV_SET_ILSEQ_INVALID, &v);+#elif defined(_WIN32) && !defined(__CYGWIN__)+ /* * archive_mstring on Windows directly convert multi-bytes * into archive_wstring in order not to depend on locale * so that you can do a I18N programming. This will be@@ -1362,7 +1372,7 @@ } #if defined(_WIN32) && !defined(__CYGWIN__)-# if defined(WINAPI_FAMILY_PARTITION) && !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)+# if !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) # define GetOEMCP() CP_OEMCP # endif
c/archive_time.c view
@@ -24,12 +24,21 @@ */ #include "archive_platform.h"-#include "archive_private.h"-#include "archive_time_private.h"++#ifdef HAVE_LIMITS_H #include <limits.h>+#endif+#ifdef HAVE_STDLIB_H #include <stdlib.h>+#endif+#ifdef HAVE_STRING_H #include <string.h>+#endif +#include "archive_integer.h"+#include "archive_private.h"+#include "archive_time_private.h"+ #define NTFS_EPOC_TIME ARCHIVE_LITERAL_ULL(11644473600) #define NTFS_TICKS ARCHIVE_LITERAL_ULL(10000000) #define NTFS_EPOC_TICKS (NTFS_EPOC_TIME * NTFS_TICKS)@@ -149,15 +158,11 @@ if (secs < -(int64_t)NTFS_EPOC_TIME) return 0; - ntfs = secs + NTFS_EPOC_TIME;-- if (ntfs > UINT64_MAX / NTFS_TICKS)- return UINT64_MAX;-- ntfs *= NTFS_TICKS;-- if (ntfs > UINT64_MAX - nsecs/100)+ /* (secs + NTFS_EPOC_TIME) * NTFS_TICKS + nsecs / 100 */+ if (archive_ckd_add_u64(&ntfs, secs, NTFS_EPOC_TIME) ||+ archive_ckd_mul_u64(&ntfs, ntfs, NTFS_TICKS) ||+ archive_ckd_add_u64(&ntfs, ntfs, nsecs / 100)) return UINT64_MAX; - return ntfs + nsecs/100;+ return ntfs; }
c/archive_util.c view
@@ -42,19 +42,13 @@ #include <string.h> #endif #if defined(_WIN32) && !defined(__CYGWIN__)-#if defined(HAVE_BCRYPT_H) && _WIN32_WINNT >= _WIN32_WINNT_VISTA-/* don't use bcrypt when XP needs to be supported */ #include <bcrypt.h> /* Common in other bcrypt implementations, but missing from VS2008. */ #ifndef BCRYPT_SUCCESS #define BCRYPT_SUCCESS(r) ((NTSTATUS)(r) == STATUS_SUCCESS) #endif--#elif defined(HAVE_WINCRYPT_H)-#include <wincrypt.h> #endif-#endif #ifdef HAVE_ZLIB_H #include <zlib.h> #endif@@ -110,8 +104,7 @@ const char * archive_error_string(struct archive *a) {-- if (a->error != NULL && *a->error != '\0')+ if (a->error != NULL && *a->error != '\0') return (a->error); else return (NULL);@@ -250,11 +243,7 @@ DWORD attr; wchar_t *xp, *ep; int fd;-#if defined(HAVE_BCRYPT_H) && _WIN32_WINNT >= _WIN32_WINNT_VISTA BCRYPT_ALG_HANDLE hAlg = NULL;-#else- HCRYPTPROV hProv = (HCRYPTPROV)NULL;-#endif fd = -1; ws = NULL; archive_string_init(&temp_name);@@ -262,22 +251,36 @@ if (template == NULL) { /* Get a temporary directory. */ if (tmpdir == NULL) {- size_t l;- wchar_t *tmp;+ wchar_t buf[MAX_PATH + 1];+ wchar_t *p = buf, *buf2 = NULL;+ size_t l, s; - l = GetTempPathW(0, NULL);+ s = MAX_PATH + 1;+ l = GetTempPathW((DWORD)s, buf); if (l == 0) { la_dosmaperr(GetLastError()); goto exit_tmpfile; }- tmp = malloc(l*sizeof(wchar_t));- if (tmp == NULL) {- errno = ENOMEM;- goto exit_tmpfile;+ while (l > s) {+ wchar_t *tmp;++ s = l;+ tmp = realloc(buf2, s * sizeof(wchar_t));+ if (tmp == NULL) {+ free(buf2);+ errno = ENOMEM;+ goto exit_tmpfile;+ }+ p = buf2 = tmp;+ l = GetTempPathW((DWORD)s, buf2);+ if (l == 0) {+ free(buf2);+ la_dosmaperr(GetLastError());+ goto exit_tmpfile;+ } }- GetTempPathW((DWORD)l, tmp);- archive_wstrcpy(&temp_name, tmp);- free(tmp);+ archive_wstrcpy(&temp_name, p);+ free(buf2); } else { if (archive_wstring_append_from_mbs(&temp_name, tmpdir, strlen(tmpdir)) < 0)@@ -328,19 +331,11 @@ abort(); } -#if defined(HAVE_BCRYPT_H) && _WIN32_WINNT >= _WIN32_WINNT_VISTA if (!BCRYPT_SUCCESS(BCryptOpenAlgorithmProvider(&hAlg, BCRYPT_RNG_ALGORITHM, NULL, 0))) { la_dosmaperr(GetLastError()); goto exit_tmpfile; }-#else- if (!CryptAcquireContext(&hProv, NULL, NULL, PROV_RSA_FULL,- CRYPT_VERIFYCONTEXT)) {- la_dosmaperr(GetLastError());- goto exit_tmpfile;- }-#endif for (;;) { wchar_t *p;@@ -351,19 +346,11 @@ /* Generate a random file name through CryptGenRandom(). */ p = xp;-#if defined(HAVE_BCRYPT_H) && _WIN32_WINNT >= _WIN32_WINNT_VISTA if (!BCRYPT_SUCCESS(BCryptGenRandom(hAlg, (PUCHAR)p, (DWORD)(ep - p)*sizeof(wchar_t), 0))) { la_dosmaperr(GetLastError()); goto exit_tmpfile; }-#else- if (!CryptGenRandom(hProv, (DWORD)(ep - p)*sizeof(wchar_t),- (BYTE*)p)) {- la_dosmaperr(GetLastError());- goto exit_tmpfile;- }-#endif for (; p < ep; p++) *p = num[((DWORD)*p) % (sizeof(num)/sizeof(num[0]))]; @@ -417,13 +404,8 @@ break;/* success! */ } exit_tmpfile:-#if defined(HAVE_BCRYPT_H) && _WIN32_WINNT >= _WIN32_WINNT_VISTA if (hAlg != NULL) BCryptCloseAlgorithmProvider(hAlg, 0);-#else- if (hProv != (HCRYPTPROV)NULL)- CryptReleaseContext(hProv, 0);-#endif free(ws); if (template == temp_name.s) archive_wstring_free(&temp_name);
c/archive_version_details.c view
@@ -158,10 +158,6 @@ archive_strcat(str, " libmd/"); archive_strcat(str, archive_libmd_version()); #endif-#if defined(ARCHIVE_CRYPTOR_USE_WINCRYPT)- archive_strcat(str, " WinCrypt/");- archive_strcat(str, archive_wincrypt_version());-#endif // Just in case (void)str; /* UNUSED */ }@@ -180,7 +176,7 @@ const char *libiconv = archive_libiconv_version(); const char *libacl = archive_libacl_version(); const char *librichacl = archive_librichacl_version();- const char *libattr = archive_libacl_version();+ const char *libattr = archive_libattr_version(); if (!init) { archive_string_init(&str);@@ -234,6 +230,7 @@ archive_strcat(&str, " libiconv/"); archive_strcat(&str, libiconv); }+ init = 1; } return str.s; }@@ -431,27 +428,7 @@ const char * archive_wincrypt_version(void) {-#if defined(ARCHIVE_CRYPTOR_USE_WINCRYPT) || defined(ARCHIVE_CRYPTO_WINCRYPT)- HCRYPTPROV prov;- if (!CryptAcquireContext(&prov, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) {- if (GetLastError() != (DWORD)NTE_BAD_KEYSET)- return NULL;- if (!CryptAcquireContext(&prov, NULL, NULL, PROV_RSA_FULL, CRYPT_NEWKEYSET))- return NULL;- }- DWORD version, length = sizeof(version);- if (!CryptGetProvParam(prov, PP_VERSION, (BYTE *)&version, &length, 0)) {- return NULL;- } else {- char major = (version >> 8) & 0xFF;- char minor = version & 0xFF;- static char wincrypt_version[6];- snprintf(wincrypt_version, 6, "%hhd.%hhd", major, minor);- return wincrypt_version;- }-#else return NULL;-#endif } const char *
c/archive_windows.c view
@@ -63,23 +63,6 @@ #include <windows.h> #include <share.h> -#if defined(__LA_LSEEK_NEEDED)-static BOOL SetFilePointerEx_perso(HANDLE hFile,- LARGE_INTEGER liDistanceToMove,- PLARGE_INTEGER lpNewFilePointer,- DWORD dwMoveMethod)-{- LARGE_INTEGER li;- li.QuadPart = liDistanceToMove.QuadPart;- li.LowPart = SetFilePointer(- hFile, li.LowPart, &li.HighPart, dwMoveMethod);- if(lpNewFilePointer) {- lpNewFilePointer->QuadPart = li.QuadPart;- }- return li.LowPart != -1 || GetLastError() == NO_ERROR;-}-#endif- struct ustat { int64_t st_atime; uint32_t st_atime_nsec;@@ -236,7 +219,7 @@ CREATEFILE2_EXTENDED_PARAMETERS createExParams; #endif -#if !defined(WINAPI_FAMILY_PARTITION) || WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)+#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP) handle = CreateFileA(path, dwDesiredAccess, dwShareMode, lpSecurityAttributes, dwCreationDisposition, dwFlagsAndAttributes, hTemplateFile);@@ -285,7 +268,7 @@ return (-1); } distance.QuadPart = offset;- if (!SetFilePointerEx_perso(handle, distance, &newpointer, whence)) {+ if (!SetFilePointerEx(handle, distance, &newpointer, whence)) { DWORD lasterr; lasterr = GetLastError();@@ -324,7 +307,7 @@ * "Permission denied" error. */ attr = GetFileAttributesA(path);-#if !defined(WINAPI_FAMILY_PARTITION) || WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)+#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP) if (attr == (DWORD)-1 && GetLastError() == ERROR_PATH_NOT_FOUND) #endif {@@ -342,7 +325,7 @@ } if (attr & FILE_ATTRIBUTE_DIRECTORY) { HANDLE handle;-#if !defined(WINAPI_FAMILY_PARTITION) || WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)+#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP) if (ws != NULL) handle = CreateFileW(ws, 0, 0, NULL, OPEN_EXISTING,@@ -437,7 +420,7 @@ * "Permission denied" error. */ attr = GetFileAttributesW(path);-#if !defined(WINAPI_FAMILY_PARTITION) || WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)+#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP) if (attr == (DWORD)-1 && GetLastError() == ERROR_PATH_NOT_FOUND) #endif {@@ -456,7 +439,7 @@ } if (attr & FILE_ATTRIBUTE_DIRECTORY) { HANDLE handle;-#if !defined(WINAPI_FAMILY_PARTITION) || WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)+#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP) if (fullpath != NULL) handle = CreateFileW(fullpath, 0, 0, NULL, OPEN_EXISTING,
c/archive_windows.h view
@@ -299,6 +299,26 @@ size_t wcrtomb(char *, wchar_t, mbstate_t *); #endif +#ifndef WINAPI_FAMILY_PARTITION+#define WINAPI_FAMILY_PARTITION(x) (x)+#endif++#ifndef WINAPI_PARTITION_DESKTOP+#define WINAPI_PARTITION_DESKTOP 1+#endif++#ifndef WINAPI_PARTITION_SYSTEM+#define WINAPI_PARTITION_SYSTEM 1+#endif++#ifndef NTDDI_VERSION+#define NTDDI_VERSION 0x05020000+#endif++#ifndef NTDDI_WIN10_VB+#define NTDDI_WIN10_VB 0x0A000008+#endif+ #if !WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP) && NTDDI_VERSION < NTDDI_WIN10_VB // not supported in UWP SDK before 20H1 #define GetVolumePathNameW(f, v, c) (0)@@ -309,17 +329,4 @@ DWORD cchBufferLength ); #endif-#if defined(_MSC_VER) && _MSC_VER < 1300-# if _WIN32_WINNT < 0x0500 /* windows.h not providing 0x500 API */-typedef struct _FILE_ALLOCATED_RANGE_BUFFER {- LARGE_INTEGER FileOffset;- LARGE_INTEGER Length;-} FILE_ALLOCATED_RANGE_BUFFER, *PFILE_ALLOCATED_RANGE_BUFFER;-# define FSCTL_SET_SPARSE \- CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 49, METHOD_BUFFERED, FILE_WRITE_DATA)-# define FSCTL_QUERY_ALLOCATED_RANGES \- CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 51, METHOD_NEITHER, FILE_READ_DATA)-# endif-#endif- #endif /* !LIBARCHIVE_ARCHIVE_WINDOWS_H_INCLUDED */
c/archive_write.c view
@@ -761,7 +761,7 @@ archive_entry_ino_is_set(entry) && archive_entry_dev(entry) == (dev_t)a->skip_file_dev && archive_entry_ino64(entry) == a->skip_file_ino) {- archive_set_error(&a->archive, 0,+ archive_set_error(&a->archive, EIO, "Can't add archive to itself"); return (ARCHIVE_FAILED); }
c/archive_write_add_filter.c view
@@ -49,7 +49,7 @@ { ARCHIVE_FILTER_LZ4, archive_write_add_filter_lz4 }, { ARCHIVE_FILTER_LZIP, archive_write_add_filter_lzip }, { ARCHIVE_FILTER_LZMA, archive_write_add_filter_lzma },- { ARCHIVE_FILTER_LZOP, archive_write_add_filter_lzip },+ { ARCHIVE_FILTER_LZOP, archive_write_add_filter_lzop }, { ARCHIVE_FILTER_UU, archive_write_add_filter_uuencode }, { ARCHIVE_FILTER_XZ, archive_write_add_filter_xz }, { ARCHIVE_FILTER_ZSTD, archive_write_add_filter_zstd },
c/archive_write_add_filter_b64encode.c view
@@ -39,6 +39,7 @@ #endif #include "archive.h"+#include "archive_integer.h" #include "archive_private.h" #include "archive_string.h" #include "archive_write_private.h"@@ -308,10 +309,9 @@ else return (-1); p++;- if (l > (INT64_MAX >> 3))+ if (archive_ckd_mul_i64(&l, l, 8) ||+ archive_ckd_add_i64(&l, l, digit)) return (-1);- l <<= 3;- l |= digit; } return (l); }
c/archive_write_add_filter_bzip2.c view
@@ -57,7 +57,6 @@ int compression_level; #if defined(HAVE_BZLIB_H) && defined(BZ_CONFIG_ERROR) bz_stream stream;- int64_t total_in; char *compressed; size_t compressed_buffer_size; #else@@ -238,9 +237,6 @@ const void *buff, size_t length) { struct private_data *data = (struct private_data *)f->data;-- /* Update statistics */- data->total_in += length; /* Compress input data to output buffer */ SET_NEXT_IN(data, buff);
c/archive_write_add_filter_gzip.c view
@@ -40,6 +40,7 @@ #endif #include "archive.h"+#include "archive_endian.h" #include "archive_private.h" #include "archive_string.h" #include "archive_write_private.h"@@ -61,7 +62,7 @@ char *original_filename; #ifdef HAVE_ZLIB_H z_stream stream;- int64_t total_in;+ uint64_t total_in; unsigned char *compressed; size_t compressed_buffer_size; unsigned long crc;@@ -178,7 +179,7 @@ if (value) { data->original_filename = strdup(value); if (data->original_filename == NULL)- return (ARCHIVE_WARN);+ return (ARCHIVE_FAILED); } return (ARCHIVE_OK); }@@ -230,11 +231,8 @@ data->compressed[2] = 0x08; /* "Deflate" compression */ data->compressed[3] = 0x00; /* Flags */ if (data->timestamp >= 0) {- time_t t = time(NULL);- data->compressed[4] = (uint8_t)(t)&0xff; /* Timestamp */- data->compressed[5] = (uint8_t)(t>>8)&0xff;- data->compressed[6] = (uint8_t)(t>>16)&0xff;- data->compressed[7] = (uint8_t)(t>>24)&0xff;+ uint32_t t = (uint32_t)time(NULL);+ archive_le32enc(data->compressed + 4, t); /* Timestamp */ } else { memset(&data->compressed[4], 0, 4); }@@ -253,9 +251,9 @@ /* Limit "original filename" to 32k or the * remaining space in the buffer, whichever is smaller. */- int ofn_length = strlen(data->original_filename);- int ofn_max_length = 32768;- int ofn_space_available = data->compressed+ size_t ofn_length = strlen(data->original_filename);+ size_t ofn_max_length = 32768;+ size_t ofn_space_available = data->compressed + data->compressed_buffer_size - data->stream.next_out - 1;@@ -358,14 +356,8 @@ } if (ret == ARCHIVE_OK) { /* Build and write out 8-byte trailer. */- trailer[0] = (uint8_t)(data->crc)&0xff;- trailer[1] = (uint8_t)(data->crc >> 8)&0xff;- trailer[2] = (uint8_t)(data->crc >> 16)&0xff;- trailer[3] = (uint8_t)(data->crc >> 24)&0xff;- trailer[4] = (uint8_t)(data->total_in)&0xff;- trailer[5] = (uint8_t)(data->total_in >> 8)&0xff;- trailer[6] = (uint8_t)(data->total_in >> 16)&0xff;- trailer[7] = (uint8_t)(data->total_in >> 24)&0xff;+ archive_le32enc(trailer, data->crc);+ archive_le32enc(trailer + 4, data->total_in); ret = __archive_write_filter(f->next_filter, trailer, 8); }
c/archive_write_add_filter_lz4.c view
@@ -61,7 +61,6 @@ unsigned preset_dictionary:1; unsigned block_maximum_size:3; #if defined(HAVE_LIBLZ4) && LZ4_VERSION_MAJOR >= 1 && LZ4_VERSION_MINOR >= 2- int64_t total_in; char *out; char *out_buffer; size_t out_buffer_size;@@ -88,7 +87,7 @@ const void *, size_t); /*- * Add a lz4 compression filter to this write handle.+ * Add an lz4 compression filter to this write handle. */ int archive_write_add_filter_lz4(struct archive *_a)@@ -228,7 +227,7 @@ { struct private_data *data = (struct private_data *)f->data; size_t required_size;- static size_t const bkmap[] = { 64 * 1024, 256 * 1024, 1 * 1024 * 1024,+ static const size_t bkmap[] = { 64 * 1024, 256 * 1024, 1 * 1024 * 1024, 4 * 1024 * 1024 }; size_t pre_block_size; @@ -243,7 +242,7 @@ free(data->out_buffer); if (f->archive->magic == ARCHIVE_WRITE_MAGIC) { /* Buffer size should be a multiple number of- * the of bytes per block for performance. */+ * the bytes per block for performance. */ bpb = archive_write_get_bytes_per_block(f->archive); if (bpb > bs) bs = bpb;@@ -306,9 +305,6 @@ data->header_written = 1; } - /* Update statistics */- data->total_in += length;- p = (const char *)buff; remaining = length; while (remaining) {@@ -417,9 +413,11 @@ sd[5] = (data->block_maximum_size << 4); sd[6] = (__archive_xxhash.XXH32(&sd[4], 2, 0) >> 8) & 0xff; data->out += 7;- if (data->stream_checksum)+ if (data->stream_checksum) { data->xxh32_state = __archive_xxhash.XXH32_init(0);- else+ if (data->xxh32_state == NULL)+ return (ARCHIVE_FATAL);+ } else data->xxh32_state = NULL; return (ARCHIVE_OK); }
c/archive_write_add_filter_program.c view
@@ -184,6 +184,10 @@ data->child_stdin = -1; data->child_stdout = -1; data->program_name = strdup(program);+ if (data->program_name == NULL) {+ free(data);+ return (NULL);+ } return (data); }
c/archive_write_add_filter_uuencode.c view
@@ -39,6 +39,7 @@ #endif #include "archive.h"+#include "archive_integer.h" #include "archive_private.h" #include "archive_string.h" #include "archive_write_private.h"@@ -299,10 +300,9 @@ else return (-1); p++;- if (l > (INT64_MAX >> 3))+ if (archive_ckd_mul_i64(&l, l, 8) ||+ archive_ckd_add_i64(&l, l, digit)) return (-1);- l <<= 3;- l |= digit; } return (l); }
c/archive_write_add_filter_zstd.c view
@@ -73,7 +73,6 @@ size_t cur_frame; size_t cur_frame_in; size_t cur_frame_out;- size_t total_in; ZSTD_CStream *cstream; ZSTD_outBuffer out; #else@@ -505,7 +504,6 @@ data->state = running; break; }- data->total_in += in.pos - ipos; data->cur_frame_in += in.pos - ipos; data->cur_frame_out += data->out.pos - opos; if (data->state == running) {
c/archive_write_disk_posix.c view
@@ -308,6 +308,10 @@ int stream_valid; int decmpfs_compression_level; #endif+#if !(ARCHIVE_XATTR_LINUX || ARCHIVE_XATTR_DARWIN || ARCHIVE_XATTR_AIX ||\+ ARCHIVE_XATTR_FREEBSD)+ int warning_done;+#endif }; /*@@ -596,11 +600,12 @@ a->pst = NULL; a->current_fixup = NULL; a->deferred = 0;- if (a->entry) {- archive_entry_free(a->entry);- a->entry = NULL;- }+ archive_entry_free(a->entry); a->entry = archive_entry_clone(entry);+ if (a->entry == NULL) {+ archive_set_error(&a->archive, ENOMEM, "Out of memory");+ return (ARCHIVE_FATAL);+ } a->fd = -1; a->fd_offset = 0; a->offset = 0;@@ -971,7 +976,7 @@ return (ARCHIVE_OK); if (a->filesize == 0 || a->fd < 0) {- archive_set_error(&a->archive, 0,+ archive_set_error(&a->archive, EIO, "Attempt to write to an empty file"); return (ARCHIVE_WARN); }@@ -1595,7 +1600,7 @@ return (ARCHIVE_OK); if (a->filesize == 0 || a->fd < 0) {- archive_set_error(&a->archive, 0,+ archive_set_error(&a->archive, EIO, "Attempt to write to an empty file"); return (ARCHIVE_WARN); }@@ -1674,7 +1679,7 @@ if (r < ARCHIVE_OK) return (r); if ((size_t)r < size) {- archive_set_error(&a->archive, 0,+ archive_set_error(&a->archive, EOVERFLOW, "Too much data: Truncating file at %ju bytes", (uintmax_t)a->filesize); return (ARCHIVE_WARN);@@ -2196,7 +2201,7 @@ if (a->skip_file_set && a->st.st_dev == (dev_t)a->skip_file_dev && a->st.st_ino == (ino_t)a->skip_file_ino) {- archive_set_error(&a->archive, 0,+ archive_set_error(&a->archive, EIO, "Refusing to overwrite archive"); return (ARCHIVE_FAILED); }@@ -2996,7 +3001,7 @@ */ /* if (!S_ISLNK(path)) {- fsobj_error(a_eno, a_estr, 0,+ fsobj_error(a_eno, a_estr, -1, "Removing symlink ", path); } */@@ -3012,7 +3017,7 @@ #endif if (r != 0) { tail[0] = c;- fsobj_error(a_eno, a_estr, 0,+ fsobj_error(a_eno, a_estr, EIO, "Cannot remove intervening " "symlink ", path); res = ARCHIVE_FAILED;@@ -3072,7 +3077,7 @@ head = tail + 1; } else { tail[0] = c;- fsobj_error(a_eno, a_estr, 0,+ fsobj_error(a_eno, a_estr, ELOOP, "Cannot extract through " "symlink ", path); res = ARCHIVE_FAILED;@@ -3080,7 +3085,7 @@ } } else { tail[0] = c;- fsobj_error(a_eno, a_estr, 0,+ fsobj_error(a_eno, a_estr, ELOOP, "Cannot extract through symlink ", path); res = ARCHIVE_FAILED; break;@@ -4693,12 +4698,10 @@ static int set_xattrs(struct archive_write_disk *a) {- static int warning_done = 0;- /* If there aren't any extended attributes, then it's okay not * to extract them, otherwise, issue a single warning. */- if (archive_entry_xattr_count(a->entry) != 0 && !warning_done) {- warning_done = 1;+ if (archive_entry_xattr_count(a->entry) != 0 && !a->warning_done) {+ a->warning_done = 1; archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "Cannot restore extended attributes on this system"); return (ARCHIVE_WARN);
c/archive_write_disk_windows.c view
@@ -70,21 +70,6 @@ #define IO_REPARSE_TAG_SYMLINK 0xA000000CL #endif -static BOOL SetFilePointerEx_perso(HANDLE hFile,- LARGE_INTEGER liDistanceToMove,- PLARGE_INTEGER lpNewFilePointer,- DWORD dwMoveMethod)-{- LARGE_INTEGER li;- li.QuadPart = liDistanceToMove.QuadPart;- li.LowPart = SetFilePointer(- hFile, li.LowPart, &li.HighPart, dwMoveMethod);- if(lpNewFilePointer) {- lpNewFilePointer->QuadPart = li.QuadPart;- }- return li.LowPart != (DWORD)-1 || GetLastError() == NO_ERROR;-}- struct fixup_entry { struct fixup_entry *next; struct archive_acl acl;@@ -595,45 +580,11 @@ return (fd); } -#if _WIN32_WINNT < _WIN32_WINNT_VISTA-static void *-la_GetFunctionKernel32(const char *name)-{- static HINSTANCE lib;- static int set;- if (!set) {- set = 1;- lib = LoadLibrary(TEXT("kernel32.dll"));- }- if (lib == NULL) {- fprintf(stderr, "Can't load kernel32.dll?!\n");- exit(1);- }- return (void *)GetProcAddress(lib, name);-}-#endif- static int la_CreateHardLinkW(wchar_t *linkname, wchar_t *target) {- static BOOL (WINAPI *f)(LPCWSTR, LPCWSTR, LPSECURITY_ATTRIBUTES); BOOL ret;--#if _WIN32_WINNT < _WIN32_WINNT_XP- static int set;-/* CreateHardLinkW is available since XP and always loaded */- if (!set) {- set = 1;- f = la_GetFunctionKernel32("CreateHardLinkW");- }-#else- f = CreateHardLinkW;-#endif- if (!f) {- errno = ENOTSUP;- return (0);- }- ret = (*f)(linkname, target, NULL);+ ret = CreateHardLinkW(linkname, target, NULL); if (!ret) { /* Under windows 2000, it is necessary to remove * the "\\?\" prefix. */@@ -652,7 +603,7 @@ target += 4; } #undef IS_UNC- ret = (*f)(linkname, target, NULL);+ ret = CreateHardLinkW(linkname, target, NULL); } return (ret); }@@ -666,31 +617,19 @@ static int la_CreateSymbolicLinkW(const wchar_t *linkname, const wchar_t *target, int linktype) {- static BOOLEAN (WINAPI *f)(LPCWSTR, LPCWSTR, DWORD);+ BOOL ret = 0;+#if _WIN32_WINNT < _WIN32_WINNT_VISTA ||\+ !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM)+ (void)linkname; /* UNUSED */+ (void)target; /* UNUSED */+ (void)linktype; /* UNUSED */+#else wchar_t *ttarget, *p; size_t len; DWORD attrs = 0; DWORD flags = 0; DWORD newflags = 0;- BOOL ret = 0; -#if _WIN32_WINNT < _WIN32_WINNT_VISTA-/* CreateSymbolicLinkW is available since Vista and always loaded */- static int set;- if (!set) {- set = 1;- f = la_GetFunctionKernel32("CreateSymbolicLinkW");- }-#else-# if !defined(WINAPI_FAMILY_PARTITION) || WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)- f = CreateSymbolicLinkW;-# else- f = NULL;-# endif-#endif- if (!f)- return (0);- len = wcslen(target); if (len == 0) { errno = EINVAL;@@ -751,15 +690,16 @@ disk_unlink(linkname); } - ret = (*f)(linkname, ttarget, newflags);+ ret = CreateSymbolicLinkW(linkname, ttarget, newflags); /* * Prior to Windows 10 calling CreateSymbolicLinkW() will fail * if SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE is set */ if (!ret) {- ret = (*f)(linkname, ttarget, flags);+ ret = CreateSymbolicLinkW(linkname, ttarget, flags); } free(ttarget);+#endif return (ret); } @@ -773,7 +713,7 @@ return (-1); } distance.QuadPart = length;- if (!SetFilePointerEx_perso(handle, distance, NULL, FILE_BEGIN)) {+ if (!SetFilePointerEx(handle, distance, NULL, FILE_BEGIN)) { la_dosmaperr(GetLastError()); return (-1); }@@ -874,8 +814,11 @@ a->current_fixup = NULL; a->deferred = 0; archive_entry_free(a->entry);- a->entry = NULL; a->entry = archive_entry_clone(entry);+ if (a->entry == NULL) {+ archive_set_error(&a->archive, ENOMEM, "Out of memory");+ return (ARCHIVE_FATAL);+ } a->fh = INVALID_HANDLE_VALUE; a->fd_offset = 0; a->offset = 0;@@ -1106,7 +1049,7 @@ return (ARCHIVE_OK); if (a->filesize == 0 || a->fh == INVALID_HANDLE_VALUE) {- archive_set_error(&a->archive, 0,+ archive_set_error(&a->archive, EIO, "Attempt to write to an empty file"); return (ARCHIVE_WARN); }@@ -1190,7 +1133,7 @@ if (r < ARCHIVE_OK) return (r); if ((size_t)r < size) {- archive_set_error(&a->archive, 0,+ archive_set_error(&a->archive, EOVERFLOW, "Write request too large"); return (ARCHIVE_WARN); }@@ -1607,7 +1550,7 @@ if (a->skip_file_set && bhfi_dev(&a->st) == a->skip_file_dev && bhfi_ino(&a->st) == a->skip_file_ino) {- archive_set_error(&a->archive, 0,+ archive_set_error(&a->archive, EIO, "Refusing to overwrite archive"); return (ARCHIVE_FAILED); }@@ -2198,7 +2141,7 @@ * symlink with another symlink. */ if (!S_ISLNK(a->mode)) {- archive_set_error(&a->archive, 0,+ archive_set_error(&a->archive, -1, "Removing symlink %ls", a->name); }@@ -2218,7 +2161,7 @@ r = disk_unlink(a->name); } if (r != 0) {- archive_set_error(&a->archive, 0,+ archive_set_error(&a->archive, EIO, "Cannot remove intervening " "symlink %ls", a->name); pn[0] = c;@@ -2226,7 +2169,7 @@ } a->pst = NULL; } else {- archive_set_error(&a->archive, 0,+ archive_set_error(&a->archive, ELOOP, "Cannot extract through symlink %ls", a->name); pn[0] = c;
c/archive_write_set_format_7zip.c view
@@ -314,7 +314,7 @@ int); static int compression_init_encoder_zstd(struct archive *, struct la_zstream *, int, int);-#if defined(HAVE_ZSTD_H)+#if HAVE_ZSTD_H && HAVE_ZSTD_compressStream static int compression_code_zstd(struct archive *, struct la_zstream *, enum la_zaction); static int compression_end_zstd(struct archive *, struct la_zstream *);@@ -379,7 +379,7 @@ zip->opt_compression = _7Z_BZIP2; #elif defined(HAVE_ZLIB_H) zip->opt_compression = _7Z_DEFLATE;-#elif HAVE_ZSTD_H+#elif HAVE_ZSTD_H && HAVE_ZSTD_compressStream zip->opt_compression = _7Z_ZSTD; #else zip->opt_compression = _7Z_COPY;@@ -841,7 +841,8 @@ return (ARCHIVE_FATAL); } if (rs == 0) {- archive_set_error(&(a->archive), 0,+ archive_set_error(&(a->archive),+ ARCHIVE_ERRNO_FILE_FORMAT, "Truncated 7-Zip archive"); return (ARCHIVE_FATAL); }@@ -1685,7 +1686,7 @@ const char* linkpath; linkpath = archive_entry_symlink_utf8(entry); if (linkpath == NULL) {- free(file);+ file_free(file); archive_set_error(&a->archive, ARCHIVE_ERRNO_MISC, "symlink path could not be converted to UTF-8"); return (ARCHIVE_FAILED);
c/archive_write_set_format_ar.c view
@@ -172,7 +172,7 @@ /* * If we are now at the beginning of the archive,- * we need first write the ar global header.+ * we have to write the ar global header first. */ if (!ar->wrote_global_header) { __archive_write_output(a, "!<arch>\n", 8);
c/archive_write_set_format_cpio_binary.c view
@@ -380,12 +380,12 @@ { struct cpio *cpio; const char *p, *path;- int pathlength, ret, ret_final;+ int ret, ret_final; int64_t ino; struct cpio_binary_header h; struct archive_string_conv *sconv; struct archive_entry *entry_main;- size_t len;+ size_t len, pathlength; cpio = (struct cpio *)a->format_data; ret_final = ARCHIVE_OK;@@ -423,7 +423,7 @@ ret_final = ARCHIVE_WARN; } /* Include trailing null */- pathlength = (int)len + 1;+ pathlength = len + 1; h.h_magic = la_swap16(070707); h.h_dev = la_swap16(archive_entry_dev(entry));@@ -472,7 +472,13 @@ h.h_majmin = 0; h.h_mtime = la_swap32((uint32_t)archive_entry_mtime(entry));- h.h_namesize = la_swap16(pathlength);+ if (pathlength > 0xffff) {+ archive_set_error(&a->archive, ERANGE,+ "Filename is too long for cpio format");+ ret_final = ARCHIVE_FAILED;+ goto exit_write_header;+ }+ h.h_namesize = la_swap16((uint16_t)pathlength); /* Non-regular files don't store bodies. */ if (archive_entry_filetype(entry) != AE_IFREG)
c/archive_write_set_format_cpio_newc.c view
@@ -219,11 +219,11 @@ int64_t ino; struct cpio *cpio; const char *p, *path;- int pathlength, ret, ret_final;+ int ret, ret_final; char h[c_header_size]; struct archive_string_conv *sconv; struct archive_entry *entry_main;- size_t len;+ size_t len, pathlength; int pad; cpio = (struct cpio *)a->format_data;@@ -261,7 +261,7 @@ archive_string_conversion_charset_name(sconv)); ret_final = ARCHIVE_WARN; }- pathlength = (int)len + 1; /* Include trailing null. */+ pathlength = len + 1; /* Include trailing null. */ memset(h, 0, c_header_size); format_hex(0x070701, h + c_magic_offset, c_magic_size);@@ -292,7 +292,12 @@ format_hex(0, h + c_rdevminor_offset, c_rdevminor_size); } format_hex(archive_entry_mtime(entry), h + c_mtime_offset, c_mtime_size);- format_hex(pathlength, h + c_namesize_offset, c_namesize_size);+ if (format_hex(pathlength, h + c_namesize_offset, c_namesize_size)) {+ archive_set_error(&a->archive, ERANGE,+ "Filename is too long for cpio format");+ ret_final = ARCHIVE_FAILED;+ goto exit_write_header;+ } format_hex(0, h + c_checksum_offset, c_checksum_size); /* Non-regular files don't store bodies. */
c/archive_write_set_format_cpio_odc.c view
@@ -277,12 +277,12 @@ { struct cpio *cpio; const char *p, *path;- int pathlength, ret, ret_final;+ int ret, ret_final; int64_t ino; char h[76]; struct archive_string_conv *sconv; struct archive_entry *entry_main;- size_t len;+ size_t len, pathlength; cpio = (struct cpio *)a->format_data; ret_final = ARCHIVE_OK;@@ -320,7 +320,7 @@ ret_final = ARCHIVE_WARN; } /* Include trailing null. */- pathlength = (int)len + 1;+ pathlength = len + 1; memset(h, 0, sizeof(h)); format_octal(070707, h + c_magic_offset, c_magic_size);@@ -351,7 +351,12 @@ else format_octal(0, h + c_rdev_offset, c_rdev_size); format_octal(archive_entry_mtime(entry), h + c_mtime_offset, c_mtime_size);- format_octal(pathlength, h + c_namesize_offset, c_namesize_size);+ if (format_octal((int64_t)pathlength, h + c_namesize_offset, c_namesize_size)) {+ archive_set_error(&a->archive, ERANGE,+ "Filename is too long for cpio format");+ ret_final = ARCHIVE_FAILED;+ goto exit_write_header;+ } /* Non-regular files don't store bodies. */ if (archive_entry_filetype(entry) != AE_IFREG)
c/archive_write_set_format_gnutar.c view
@@ -321,7 +321,8 @@ const wchar_t *wp; wp = archive_entry_pathname_w(entry);- if (wp != NULL && wp[wcslen(wp) -1] != L'/') {+ if (wp != NULL && wp[0] != L'\0' &&+ wp[wcslen(wp) - 1] != L'/') { struct archive_wstring ws; archive_string_init(&ws);
c/archive_write_set_format_iso9660.c view
@@ -119,6 +119,8 @@ #define ZF_LOG2_BS 15 /* log2 block size; 32K bytes. */ #define ZF_BLOCK_SIZE (1UL << ZF_LOG2_BS) +#define MAX_JOLIET_ID_NUM 46656 /* 3 base 36 digits */+ /* * Manage extra records. */@@ -764,7 +766,7 @@ #ifdef HAVE_ZLIB_H /* * Copy a compressed file to iso9660.zisofs.temp_fd- * and also copy a uncompressed file(original file) to+ * and also copy an uncompressed file(original file) to * iso9660.temp_fd . If the number of logical block * of the compressed file is less than the number of * logical block of the uncompressed file, use it and@@ -1008,7 +1010,7 @@ static void idr_register(struct idr *, struct isoent *, int, int); static void idr_extend_identifier(struct idrent *, int, int);-static void idr_resolve(struct idr *, void (*)(unsigned char *, int));+static int idr_resolve(struct idr *, void (*)(unsigned char *, int)); static void idr_set_num(unsigned char *, int); static void idr_set_num_beutf16(unsigned char *, int); static int isoent_gen_iso9660_identifier(struct archive_write *,@@ -1168,6 +1170,7 @@ iso9660->cur_dirent = iso9660->primary.rootent; archive_string_init(&(iso9660->cur_dirstr)); if (archive_string_ensure(&(iso9660->cur_dirstr), 1) == NULL) {+ free(iso9660->cur_dirent); free(iso9660); archive_set_error(&a->archive, ENOMEM, "Can't allocate memory");@@ -3036,8 +3039,8 @@ const char *sl; char sl_last; - if (extra_space(&ctl) < 7)- bp = extra_next_record(&ctl, 7);+ if (extra_space(&ctl) < 12)+ bp = extra_next_record(&ctl, 12); sl = file->symlink.s; sl_last = '\0'; if (bp != NULL) {@@ -4281,9 +4284,11 @@ set_num_731(bp+3, np->dir_location); /* Parent Directory Number */ if (type_m)- set_num_722(bp+7, np->parent->dir_number);+ set_num_722(bp+7,+ np->parent != NULL ? np->parent->dir_number : 0); else- set_num_721(bp+7, np->parent->dir_number);+ set_num_721(bp+7,+ np->parent != NULL ? np->parent->dir_number : 0); /* Directory Identifier */ if (np->identifier == NULL) bp[9] = 0;@@ -4910,20 +4915,29 @@ * --> 'dir/dir2/' */ char *rp = p -1;+ size_t off;+ for (off = 4; p[off] == '/'; off++)+ ; while (rp >= dirname) { if (*rp == '/') break; --rp; } if (rp > dirname) {- strcpy(rp, p+3);+ memmove(rp + 1, p + off, strlen(p + off) + 1); p = rp; } else {- strcpy(dirname, p+4);+ memmove(dirname, p + off, strlen(p + off) + 1); p = dirname; } } else p++;+ } else if (p == dirname && p[0] == '.' && p[1] == '.' && p[2] == '/') {+ size_t off;+ for (off = 3; p[off] == '/'; off++)+ ;+ memmove(dirname, p + off, strlen(p + off) + 1);+ p = dirname; } else p++; }@@ -5526,7 +5540,7 @@ static int get_path_component(char *name, size_t n, const char *fn) {- char *p;+ const char *p; size_t l; p = strchr(fn, '/');@@ -5903,21 +5917,22 @@ static void idr_extend_identifier(struct idrent *wnp, int numsize, int nullsize) {- unsigned char *p;- int wnp_ext_off;-- wnp_ext_off = wnp->isoent->ext_off;- if (wnp->noff + numsize != wnp_ext_off) {- p = (unsigned char *)wnp->isoent->identifier;- /* Extend the filename; foo.c --> foo___.c */- memmove(p + wnp->noff + numsize, p + wnp_ext_off,+ if (wnp->noff + numsize != wnp->isoent->ext_off) {+ /*+ * Extend the filename; foo.c --> foo___.c+ *+ * The caller must verify that enough memory is available.+ */+ memmove(wnp->isoent->identifier + wnp->noff + numsize,+ wnp->isoent->identifier + wnp->isoent->ext_off, wnp->isoent->ext_len + nullsize);- wnp->isoent->ext_off = wnp_ext_off = wnp->noff + numsize;- wnp->isoent->id_len = wnp_ext_off + wnp->isoent->ext_len;+ wnp->isoent->ext_off = wnp->noff + numsize;+ wnp->isoent->id_len =+ wnp->isoent->ext_off + wnp->isoent->ext_len; } } -static void+static int idr_resolve(struct idr *idr, void (*fsetnum)(unsigned char *p, int num)) { struct idrent *n;@@ -5927,10 +5942,13 @@ idr_extend_identifier(n, idr->num_size, idr->null_size); p = (unsigned char *)n->isoent->identifier + n->noff; do {+ if (n->avail->rename_num >= MAX_JOLIET_ID_NUM)+ return (-ERANGE); fsetnum(p, n->avail->rename_num++); } while (!__archive_rb_tree_insert_node( &(idr->rbtree), &(n->rbnode))); }+ return (0); } static void@@ -5990,6 +6008,10 @@ static const struct archive_rb_tree_ops rb_ops = { isoent_cmp_node_iso9660, isoent_cmp_key_iso9660 };+ const int num_size = 3;+ const int dot_size = 1;+ const int version_size = 2;+ const int null_size = 1; if (isoent->children.cnt == 0) return (0);@@ -6030,7 +6052,7 @@ fnmax = ffmax = dnmax = 207; } - r = idr_start(a, idr, isoent->children.cnt, ffmax, 3, 1, &rb_ops);+ r = idr_start(a, idr, isoent->children.cnt, ffmax, num_size, null_size, &rb_ops); if (r < 0) return (r); @@ -6039,7 +6061,7 @@ int ext_off, noff, weight; l = (int)np->file->basename.length;- p = malloc(l+31+2+1);+ p = malloc(l + num_size + dot_size + version_size + null_size); if (p == NULL) { archive_set_error(&a->archive, ENOMEM, "Can't allocate memory");@@ -6189,13 +6211,19 @@ noff = ext_off - 1; else noff = ext_off;+ if (noff < 0)+ noff = 0; } /* Register entry to the identifier resolver. */ idr_register(idr, np, weight, noff); } /* Resolve duplicate identifier. */- idr_resolve(idr, idr_set_num);+ r = idr_resolve(idr, idr_set_num);+ if (r < 0) {+ archive_set_error(&a->archive, -r, "Too many duplicated identifiers");+ return (ARCHIVE_FATAL);+ } /* Add a period and a version number to identifiers. */ for (np = isoent->children.first; np != NULL; np = np->chnext) {@@ -6239,6 +6267,8 @@ static const struct archive_rb_tree_ops rb_ops = { isoent_cmp_node_joliet, isoent_cmp_key_joliet };+ const int num_size = 6;+ const int null_size = 2; if (isoent->children.cnt == 0) return (0);@@ -6249,7 +6279,7 @@ else ffmax = 128; - r = idr_start(a, idr, isoent->children.cnt, (int)ffmax, 6, 2, &rb_ops);+ r = idr_start(a, idr, isoent->children.cnt, (int)ffmax, num_size, null_size, &rb_ops); if (r < 0) return (r); @@ -6265,7 +6295,7 @@ if ((l = np->file->basename_utf16.length) > ffmax) l = ffmax; - p = malloc((l+1)*2);+ p = malloc(l + num_size + null_size); if (p == NULL) { archive_set_error(&a->archive, ENOMEM, "Can't allocate memory");@@ -6334,12 +6364,18 @@ noff = ext_off - 2; else noff = ext_off;+ if (noff < 0)+ noff = 0; /* Register entry to the identifier resolver. */ idr_register(idr, np, weight, noff); } /* Resolve duplicate identifier with Joliet Volume. */- idr_resolve(idr, idr_set_num_beutf16);+ r = idr_resolve(idr, idr_set_num_beutf16);+ if (r < 0) {+ archive_set_error(&a->archive, -r, "Too many duplicated identifiers");+ return (ARCHIVE_FATAL);+ } return (ARCHIVE_OK); }@@ -6727,7 +6763,12 @@ /* * The mvent becomes a child of the rr_moved entry. */- isoent_add_child_tail(rrmoved, mvent);+ if (!isoent_add_child_tail(rrmoved, mvent)) {+ _isoent_free(mvent);+ archive_set_error(&a->archive, ARCHIVE_ERRNO_MISC,+ "Unable to insert rr_moved entry");+ return (ARCHIVE_FATAL);+ } archive_entry_set_nlink(rrmoved->file->entry, archive_entry_nlink(rrmoved->file->entry) + 1); /*@@ -6820,7 +6861,15 @@ p2 = *((const struct isoent **)(uintptr_t)v2); /* Compare parent directory number */- cmp = p1->parent->dir_number - p2->parent->dir_number;+ if (p1->parent == NULL || p2->parent == NULL) {+ if (p1->parent == p2->parent)+ cmp = 0;+ else if (p1->parent == NULL)+ return (-1);+ else+ return (1);+ } else+ cmp = p1->parent->dir_number - p2->parent->dir_number; if (cmp != 0) return (cmp); @@ -6863,7 +6912,15 @@ p2 = *((const struct isoent **)(uintptr_t)v2); /* Compare parent directory number */- cmp = p1->parent->dir_number - p2->parent->dir_number;+ if (p1->parent == NULL || p2->parent == NULL) {+ if (p1->parent == p2->parent)+ cmp = 0;+ else if (p1->parent == NULL)+ return (-1);+ else+ return (1);+ } else+ cmp = p1->parent->dir_number - p2->parent->dir_number; if (cmp != 0) return (cmp);
c/archive_write_set_format_mtree.c view
@@ -307,14 +307,14 @@ static const unsigned char safe_char[256] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 00 - 0F */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 10 - 1F */- /* !"$%&'()*+,-./ EXCLUSION:0x20( ) 0x23(#) */- 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /* 20 - 2F */- /* 0123456789:;<>? EXCLUSION:0x3d(=) */- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, /* 30 - 3F */+ /* !"$%&'()+,-./ EXCLUSION:0x20( ) 0x23(#) 0x2a(*) */+ 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, /* 20 - 2F */+ /* 0123456789:;<> EXCLUSION:0x3d(=) 0x3f(?) */+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, /* 30 - 3F */ /* @ABCDEFGHIJKLMNO */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /* 40 - 4F */- /* PQRSTUVWXYZ[]^_ EXCLUSION:0x5c(\) */- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, /* 50 - 5F */+ /* PQRSTUVWXYZ]^_ EXCLUSION:0x5b([) 0x5c(\) */+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, /* 50 - 5F */ /* `abcdefghijklmno */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /* 60 - 6F */ /* pqrstuvwxyz{|}~ */@@ -801,6 +801,8 @@ archive_strcpy(&me->symlink, s); me->nlink = archive_entry_nlink(entry); me->filetype = archive_entry_filetype(entry);+ if (me->filetype == AE_IFLNK && me->symlink.s == NULL)+ archive_strcpy(&me->symlink, ""); me->mode = archive_entry_mode(entry) & 07777; me->uid = archive_entry_uid(entry); me->gid = archive_entry_gid(entry);@@ -988,7 +990,8 @@ * a full pathname. */ mtree_quote(str, me->parentdir.s);- archive_strappend_char(str, '/');+ if (strcmp(me->basename.s, ".") != 0)+ archive_strappend_char(str, '/'); } mtree_quote(str, me->basename.s); @@ -1145,6 +1148,8 @@ int ret; do {+ if (np->dir_info == NULL)+ break; if (mtree->output_global_set) { /* * Collect attribute information to know which value@@ -1611,6 +1616,7 @@ static void sum_final(struct mtree_writer *mtree, struct reg_info *reg) {+ struct ae_digest digest; if (mtree->compute_sum & F_CKSUM) { uint64_t len;@@ -1620,40 +1626,34 @@ reg->crc = ~mtree->crc; } #ifdef ARCHIVE_HAS_MD5- if ((mtree->compute_sum & F_MD5)- && !(reg->mset_digest & AE_MSET_DIGEST_MD5))+ if (mtree->compute_sum & F_MD5) - archive_md5_final(&mtree->md5ctx, reg->digest.md5);+ archive_md5_final(&mtree->md5ctx, (reg->mset_digest & AE_MSET_DIGEST_MD5) ? digest.md5 : reg->digest.md5); #endif #ifdef ARCHIVE_HAS_RMD160- if ((mtree->compute_sum & F_RMD160)- && !(reg->mset_digest & AE_MSET_DIGEST_RMD160))+ if (mtree->compute_sum & F_RMD160) - archive_rmd160_final(&mtree->rmd160ctx, reg->digest.rmd160);+ archive_rmd160_final(&mtree->rmd160ctx, (reg->mset_digest & AE_MSET_DIGEST_RMD160) ? digest.rmd160 : reg->digest.rmd160); #endif #ifdef ARCHIVE_HAS_SHA1- if ((mtree->compute_sum & F_SHA1)- && !(reg->mset_digest & AE_MSET_DIGEST_SHA1))+ if (mtree->compute_sum & F_SHA1) - archive_sha1_final(&mtree->sha1ctx, reg->digest.sha1);+ archive_sha1_final(&mtree->sha1ctx, (reg->mset_digest & AE_MSET_DIGEST_SHA1) ? digest.sha1 : reg->digest.sha1); #endif #ifdef ARCHIVE_HAS_SHA256- if ((mtree->compute_sum & F_SHA256)- && !(reg->mset_digest & AE_MSET_DIGEST_SHA256))+ if (mtree->compute_sum & F_SHA256) - archive_sha256_final(&mtree->sha256ctx, reg->digest.sha256);+ archive_sha256_final(&mtree->sha256ctx, (reg->mset_digest & AE_MSET_DIGEST_SHA256) ? digest.sha256 : reg->digest.sha256); #endif #ifdef ARCHIVE_HAS_SHA384- if ((mtree->compute_sum & F_SHA384)- && !(reg->mset_digest & AE_MSET_DIGEST_SHA384))+ if (mtree->compute_sum & F_SHA384) - archive_sha384_final(&mtree->sha384ctx, reg->digest.sha384);+ archive_sha384_final(&mtree->sha384ctx, (reg->mset_digest & AE_MSET_DIGEST_SHA384) ? digest.sha384 : reg->digest.sha384); #endif #ifdef ARCHIVE_HAS_SHA512- if ((mtree->compute_sum & F_SHA512)- && !(reg->mset_digest & AE_MSET_DIGEST_SHA512))+ if (mtree->compute_sum & F_SHA512) - archive_sha512_final(&mtree->sha512ctx, reg->digest.sha512);+ archive_sha512_final(&mtree->sha512ctx, (reg->mset_digest & AE_MSET_DIGEST_SHA512) ? digest.sha512 : reg->digest.sha512); #endif /* Save what types of sum are computed. */ reg->compute_sum = mtree->compute_sum;@@ -1886,20 +1886,29 @@ * --> 'dir/dir2/' */ char *rp = p -1;+ size_t off;+ for (off = 4; p[off] == '/'; off++)+ ; while (rp >= dirname) { if (*rp == '/') break; --rp; } if (rp > dirname) {- strcpy(rp, p+3);+ memmove(rp + 1, p + off, strlen(p + off) + 1); p = rp; } else {- strcpy(dirname, p+4);+ memmove(dirname, p + off, strlen(p + off) + 1); p = dirname; } } else p++;+ } else if (p == dirname && p[0] == '.' && p[1] == '.' && p[2] == '/') {+ size_t off;+ for (off = 3; p[off] == '/'; off++)+ ;+ memmove(dirname, p + off, strlen(p + off) + 1);+ p = dirname; } else p++; }@@ -2041,7 +2050,7 @@ static int get_path_component(char *name, size_t n, const char *fn) {- char *p;+ const char *p; size_t l; p = strchr(fn, '/');@@ -2079,6 +2088,11 @@ file = *filep; if (file->parentdir.length == 0 && file->basename.length == 1 && file->basename.s[0] == '.') {+ if (file->filetype != AE_IFDIR) {+ archive_set_error(&a->archive, ARCHIVE_ERRNO_MISC,+ "Root entry '.' must be a directory");+ return (ARCHIVE_FAILED);+ } file->parent = file; if (mtree->root != NULL) { np = mtree->root;
c/archive_write_set_format_pax.c view
@@ -40,6 +40,7 @@ #include "archive.h" #include "archive_entry.h" #include "archive_entry_locale.h"+#include "archive_integer.h" #include "archive_private.h" #include "archive_write_private.h" #include "archive_write_set_format_private.h"@@ -676,7 +677,8 @@ const wchar_t *wp; wp = archive_entry_pathname_w(entry_original);- if (wp != NULL && wp[wcslen(wp) -1] != L'/') {+ if (wp != NULL && wp[0] != L'\0' &&+ wp[wcslen(wp) - 1] != L'/') { struct archive_wstring ws; archive_string_init(&ws);@@ -1934,17 +1936,17 @@ for (s = in; *s != '\0'; s++) { if (*s < 33 || *s > 126 || *s == '%' || *s == '=') {- if (SIZE_MAX - out_len < 4)+ if (archive_ckd_add_size(&out_len, out_len, 3)) return (NULL);- out_len += 3; } else {- if (SIZE_MAX - out_len < 2)+ if (archive_ckd_add_size(&out_len, out_len, 1)) return (NULL);- out_len++; } } - out = malloc(out_len + 1);+ if (archive_ckd_add_size(&out_len, out_len, 1))+ return (NULL);+ out = malloc(out_len); if (out == NULL) return (NULL);
c/archive_write_set_format_shar.c view
@@ -38,6 +38,7 @@ #endif #include "archive.h"+#include "archive_endian.h" #include "archive_entry.h" #include "archive_private.h" #include "archive_write_private.h"@@ -173,6 +174,10 @@ /* Save the entry for the closing. */ archive_entry_free(shar->entry); shar->entry = archive_entry_clone(entry);+ if (shar->entry == NULL) {+ archive_set_error(&a->archive, ENOMEM, "Out of memory");+ return (ARCHIVE_FATAL);+ } name = archive_entry_pathname(entry); /* Handle some preparatory issues. */@@ -408,9 +413,9 @@ uuencode_group(const char _in[3], char out[4]) { const unsigned char *in = (const unsigned char *)_in;- int t;+ uint32_t t; - t = (in[0] << 16) | (in[1] << 8) | in[2];+ t = archive_be24dec(in); out[0] = UUENC( 0x3f & (t >> 18) ); out[1] = UUENC( 0x3f & (t >> 12) ); out[2] = UUENC( 0x3f & (t >> 6) );
c/archive_write_set_format_ustar.c view
@@ -281,7 +281,8 @@ const wchar_t *wp; wp = archive_entry_pathname_w(entry);- if (wp != NULL && wp[wcslen(wp) -1] != L'/') {+ if (wp != NULL && wp[0] != L'\0' &&+ wp[wcslen(wp) - 1] != L'/') { struct archive_wstring ws; archive_string_init(&ws);
c/archive_write_set_format_v7tar.c view
@@ -259,7 +259,8 @@ const wchar_t *wp; wp = archive_entry_pathname_w(entry);- if (wp != NULL && wp[wcslen(wp) -1] != L'/') {+ if (wp != NULL && wp[0] != L'\0' &&+ wp[wcslen(wp) - 1] != L'/') { struct archive_wstring ws; archive_string_init(&ws);
c/archive_write_set_format_warc.c view
@@ -245,6 +245,7 @@ r = _popul_ehdr(&hdr, MAX_HDR_SIZE, rh); if (r < 0) { /* don't bother */+ archive_string_free(&hdr); archive_set_error( &a->archive, ARCHIVE_ERRNO_FILE_FORMAT,@@ -371,7 +372,7 @@ static const char _uri[] = ""; static const char _fil[] = "file://"; const char *u;- char *chk = strchr(hdr.tgturi, ':');+ const char *chk = strchr(hdr.tgturi, ':'); if (chk != NULL && chk[1U] == '/' && chk[2U] == '/') { /* yep, it's definitely a URI */
c/archive_write_set_format_xar.c view
@@ -819,9 +819,7 @@ if (s > a->null_length) s = a->null_length; w = xar_write_data(a, a->nulls, s);- if (w > 0)- xar->bytes_remaining -= w;- else+ if (w <= 0) return ((int)w); } file = xar->cur_file;@@ -1110,30 +1108,27 @@ { NULL, NULL} }; const struct flagentry *fe, *flagentry;-#define FLAGENTRY_MAXSIZE ((sizeof(flagbsd)+sizeof(flagext2))/sizeof(flagbsd))- const struct flagentry *avail[FLAGENTRY_MAXSIZE]; const char *p;- int i, n, r;+ int r, started; if (strcmp(element, "ext2") == 0) flagentry = flagext2; else flagentry = flagbsd;- n = 0; p = fflags_text;+ started = 0; do {- const char *cp;+ const char *cp, *name = NULL; cp = strchr(p, ','); if (cp == NULL) cp = p + strlen(p); for (fe = flagentry; fe->name != NULL; fe++) {- if (fe->name[cp - p] != '\0'- || p[0] != fe->name[0])- continue; if (strncmp(p, fe->name, cp - p) == 0) {- avail[n++] = fe;+ if (fe->name[cp - p] != '\0')+ continue;+ name = fe->xarname; break; } }@@ -1141,23 +1136,26 @@ p = cp + 1; else p = NULL;- } while (p != NULL); - if (n > 0) {- r = xml_writer_start_element(writer, element);- if (r < 0) {- archive_set_error(&a->archive,- ARCHIVE_ERRNO_MISC,- "xml_writer_start_element() failed: %d", r);- return (ARCHIVE_FATAL);- }- for (i = 0; i < n; i++) {- r = xmlwrite_string(a, writer,- avail[i]->xarname, NULL);+ if (name != NULL) {+ if (!started) {+ r = xml_writer_start_element(writer, element);+ if (r < 0) {+ archive_set_error(&a->archive,+ ARCHIVE_ERRNO_MISC,+ "xml_writer_start_element()"+ " failed: %d", r);+ return (ARCHIVE_FATAL);+ }+ started = 1;+ }+ r = xmlwrite_string(a, writer, name, NULL); if (r != ARCHIVE_OK) return (r); }+ } while (p != NULL); + if (started) { r = xml_writer_end_element(writer); if (r < 0) { archive_set_error(&a->archive,@@ -1439,7 +1437,7 @@ } /*- * Make a mtime entry, "<mtime>".+ * Make an mtime entry, "<mtime>". */ if (archive_entry_mtime_is_set(file->entry)) { r = xmlwrite_time(a, writer, "mtime",@@ -1866,7 +1864,8 @@ return (ARCHIVE_FATAL); } if (rs == 0) {- archive_set_error(&(a->archive), 0,+ archive_set_error(&(a->archive),+ ARCHIVE_ERRNO_FILE_FORMAT, "Truncated xar archive"); return (ARCHIVE_FATAL); }@@ -2205,20 +2204,29 @@ * --> 'dir/dir2/' */ char *rp = p -1;+ size_t off;+ for (off = 4; p[off] == '/'; off++)+ ; while (rp >= dirname) { if (*rp == '/') break; --rp; } if (rp > dirname) {- strcpy(rp, p+3);+ memmove(rp + 1, p + off, strlen(p + off) + 1); p = rp; } else {- strcpy(dirname, p+4);+ memmove(dirname, p + off, strlen(p + off) + 1); p = dirname; } } else p++;+ } else if (p == dirname && p[0] == '.' && p[1] == '.' && p[2] == '/') {+ size_t off;+ for (off = 3; p[off] == '/'; off++)+ ;+ memmove(dirname, p + off, strlen(p + off) + 1);+ p = dirname; } else p++; }@@ -2272,7 +2280,7 @@ static int get_path_component(char *name, int n, const char *fn) {- char *p;+ const char *p; int l; p = strchr(fn, '/');@@ -2378,9 +2386,23 @@ archive_string_init(&as); archive_strncat(&as, p, fn - p + l);- if (as.s[as.length-1] == '/') {+ if (as.length > 0 && as.s[as.length-1] == '/') { as.s[as.length-1] = '\0'; as.length--;+ }+ if (as.length == 0) {+ archive_string_free(&as);+ fn += strspn(fn, "/");+ l = get_path_component(name, sizeof(name), fn);+ if (l < 0) {+ archive_set_error(&a->archive,+ ARCHIVE_ERRNO_MISC,+ "A name buffer is too small");+ file_free(file);+ *filepp = NULL;+ return (ARCHIVE_FATAL);+ }+ continue; } vp = file_create_virtual_dir(a, xar, as.s); if (vp == NULL) {
c/archive_write_set_format_zip.c view
@@ -797,6 +797,7 @@ unsigned char *e; unsigned char *cd_extra; size_t filename_length;+ const char *path; const char *slink = NULL; size_t slink_size = 0; struct archive_string_conv *sconv = get_sconv(a, zip);@@ -960,6 +961,19 @@ } filename_length = path_length(zip->entry); + /* Reject empty or overlong pathnames */+ path = archive_entry_pathname(zip->entry);+ if (path == NULL || path[0] == '\0') {+ archive_set_error(&a->archive, ARCHIVE_ERRNO_MISC,+ "ZIP format requires a non-empty pathname");+ return (ARCHIVE_FAILED);+ }+ if (filename_length > 0xffff) {+ archive_set_error(&a->archive, ENAMETOOLONG,+ "Pathname too long for ZIP format");+ return (ARCHIVE_FAILED);+ }+ /* Determine appropriate compression and size for this entry. */ if (type == AE_IFLNK) { slink = archive_entry_symlink(zip->entry);@@ -2304,7 +2318,7 @@ written_bytes += strlen(path); /* Folders are recognized by a trailing slash. */- if ((type == AE_IFDIR) & (path[strlen(path) - 1] != '/')) {+ if ((type == AE_IFDIR) && (path[strlen(path) - 1] != '/')) { ret = __archive_write_output(archive, "/", 1); if (ret != ARCHIVE_OK) return (ARCHIVE_FATAL);
c/config.h.in view
@@ -1122,6 +1122,10 @@ #ifndef _ALL_SOURCE # undef _ALL_SOURCE #endif+/* Enable extensions on Cosmopolitan Libc. */+#ifndef _COSMO_SOURCE+# undef _COSMO_SOURCE+#endif /* Enable general extensions on macOS. */ #ifndef _DARWIN_C_SOURCE # undef _DARWIN_C_SOURCE
c/filter_fork_windows.c view
@@ -31,43 +31,68 @@ #include "filter_fork.h" -#if !defined(WINAPI_FAMILY_PARTITION) || WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)+#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) /* There are some editions of Windows ("nano server," for example) that * do not host user32.dll. If we want to keep running on those editions, * we need to delay-load WaitForInputIdle. */-static void *-la_GetFunctionUser32(const char *name)++static int+failing_wait(HANDLE hProcess, DWORD dwMilliseconds) {+ /* An inability to wait for input idle is+ * not _good_, but it is not catastrophic. */+ (void)hProcess; /* UNUSED */+ (void)dwMilliseconds; /* UNUSED */+ return WAIT_FAILED;+}++# if _WIN32_WINNT < _WIN32_WINNT_VISTA+static int+la_WaitForInputIdle(HANDLE hProcess, DWORD dwMilliseconds) {- static HINSTANCE lib;- static int set;- if (!set) {- set = 1;+ static DWORD (WINAPI * volatile f)(HANDLE, DWORD);++ if (f == NULL) {+ HINSTANCE lib;+ void *old;+ DWORD (WINAPI *tmp)(HANDLE, DWORD);+ lib = LoadLibrary(TEXT("user32.dll"));- }- if (lib == NULL) {- return NULL;+ tmp = (lib != NULL) ?+ (PVOID)GetProcAddress(lib, "WaitForInputIdle") :+ failing_wait;+ old = InterlockedCompareExchangePointer((volatile PVOID *)&f,+ tmp, NULL);+ if (old != NULL && lib != NULL)+ FreeLibrary(lib); }- return (void *)GetProcAddress(lib, name);++ return (*f)(hProcess, dwMilliseconds); }+# else+static BOOL CALLBACK+load_WaitForInputIdle(PINIT_ONCE InitOnce, PVOID Parameter, PVOID *Context) {+ HMODULE user32 = LoadLibrary(TEXT("user32.dll")); + (void)InitOnce; /* UNUSED */+ (void)Parameter; /* UNUSED */++ *Context = (user32 != NULL) ?+ (PVOID)GetProcAddress(user32, "WaitForInputIdle") : failing_wait;++ return TRUE;+}+ static int la_WaitForInputIdle(HANDLE hProcess, DWORD dwMilliseconds) { static DWORD (WINAPI *f)(HANDLE, DWORD);- static int set;+ static INIT_ONCE once = INIT_ONCE_STATIC_INIT; - if (!set) {- set = 1;- f = la_GetFunctionUser32("WaitForInputIdle");- }+ InitOnceExecuteOnce(&once, load_WaitForInputIdle, NULL, (PVOID)&f); - if (!f) {- /* An inability to wait for input idle is- * not _good_, but it is not catastrophic. */- return WAIT_FAILED;- } return (*f)(hProcess, dwMilliseconds); }+# endif int __archive_create_child(const char *cmd, int *child_stdin, int *child_stdout,
c/xxhash.c view
@@ -361,6 +361,8 @@ void* XXH32_init (U32 seed) { void* state = XXH_malloc (sizeof(struct XXH_state32_t));+ if (state == NULL)+ return NULL; XXH32_resetState(state, seed); return state; }
configure view
@@ -1,22614 +1,22781 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles.-# Generated by GNU Autoconf 2.72 for Haskell libarchive-clib package 3.7.2.-#-# Report bugs to <vamchale@gmail.com>.-#-#-# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,-# Inc.-#-#-# This configure script is free software; the Free Software Foundation-# gives unlimited permission to copy, distribute and modify it.-## -------------------- ##-## M4sh Initialization. ##-## -------------------- ##--# Be more Bourne compatible-DUALCASE=1; export DUALCASE # for MKS sh-if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1-then :- emulate sh- NULLCMD=:- # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which- # is contrary to our usage. Disable this feature.- alias -g '${1+"$@"}'='"$@"'- setopt NO_GLOB_SUBST-else case e in #(- e) case `(set -o) 2>/dev/null` in #(- *posix*) :- set -o posix ;; #(- *) :- ;;-esac ;;-esac-fi----# Reset variables that may have inherited troublesome values from-# the environment.--# IFS needs to be set, to space, tab, and newline, in precisely that order.-# (If _AS_PATH_WALK were called with IFS unset, it would have the-# side effect of setting IFS to empty, thus disabling word splitting.)-# Quoting is to prevent editors from complaining about space-tab.-as_nl='-'-export as_nl-IFS=" "" $as_nl"--PS1='$ '-PS2='> '-PS4='+ '--# Ensure predictable behavior from utilities with locale-dependent output.-LC_ALL=C-export LC_ALL-LANGUAGE=C-export LANGUAGE--# We cannot yet rely on "unset" to work, but we need these variables-# to be unset--not just set to an empty or harmless value--now, to-# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct-# also avoids known problems related to "unset" and subshell syntax-# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).-for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH-do eval test \${$as_var+y} \- && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :-done--# Ensure that fds 0, 1, and 2 are open.-if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi-if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi-if (exec 3>&2) ; then :; else exec 2>/dev/null; fi--# The user is always right.-if ${PATH_SEPARATOR+false} :; then- PATH_SEPARATOR=:- (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {- (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||- PATH_SEPARATOR=';'- }-fi---# Find who we are. Look in the path if we contain no directory separator.-as_myself=-case $0 in #((- *[\\/]* ) as_myself=$0 ;;- *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- test -r "$as_dir$0" && as_myself=$as_dir$0 && break- done-IFS=$as_save_IFS-- ;;-esac-# We did not find ourselves, most probably we were run as 'sh COMMAND'-# in which case we are not to be found in the path.-if test "x$as_myself" = x; then- as_myself=$0-fi-if test ! -f "$as_myself"; then- printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2- exit 1-fi---# Use a proper internal environment variable to ensure we don't fall- # into an infinite loop, continuously re-executing ourselves.- if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then- _as_can_reexec=no; export _as_can_reexec;- # We cannot yet assume a decent shell, so we have to provide a-# neutralization value for shells without unset; and this also-# works around shells that cannot unset nonexistent variables.-# Preserve -v and -x to the replacement shell.-BASH_ENV=/dev/null-ENV=/dev/null-(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV-case $- in # ((((- *v*x* | *x*v* ) as_opts=-vx ;;- *v* ) as_opts=-v ;;- *x* ) as_opts=-x ;;- * ) as_opts= ;;-esac-exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}-# Admittedly, this is quite paranoid, since all the known shells bail-# out after a failed 'exec'.-printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2-exit 255- fi- # We don't want this to propagate to other subprocesses.- { _as_can_reexec=; unset _as_can_reexec;}-if test "x$CONFIG_SHELL" = x; then- as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1-then :- emulate sh- NULLCMD=:- # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which- # is contrary to our usage. Disable this feature.- alias -g '\${1+\"\$@\"}'='\"\$@\"'- setopt NO_GLOB_SUBST-else case e in #(- e) case \`(set -o) 2>/dev/null\` in #(- *posix*) :- set -o posix ;; #(- *) :- ;;-esac ;;-esac-fi-"- as_required="as_fn_return () { (exit \$1); }-as_fn_success () { as_fn_return 0; }-as_fn_failure () { as_fn_return 1; }-as_fn_ret_success () { return 0; }-as_fn_ret_failure () { return 1; }--exitcode=0-as_fn_success || { exitcode=1; echo as_fn_success failed.; }-as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }-as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }-as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }-if ( set x; as_fn_ret_success y && test x = \"\$1\" )-then :--else case e in #(- e) exitcode=1; echo positional parameters were not saved. ;;-esac-fi-test x\$exitcode = x0 || exit 1-blah=\$(echo \$(echo blah))-test x\"\$blah\" = xblah || exit 1-test -x / || exit 1"- as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO- as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO- eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&- test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1-- test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (- ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'- ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO- ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO- PATH=/empty FPATH=/empty; export PATH FPATH- test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\- || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1-test \$(( 1 + 1 )) = 2 || exit 1"- if (eval "$as_required") 2>/dev/null-then :- as_have_required=yes-else case e in #(- e) as_have_required=no ;;-esac-fi- if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null-then :--else case e in #(- e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-as_found=false-for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- as_found=:- case $as_dir in #(- /*)- for as_base in sh bash ksh sh5; do- # Try only shells that exist, to save several forks.- as_shell=$as_dir$as_base- if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&- as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null-then :- CONFIG_SHELL=$as_shell as_have_required=yes- if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null-then :- break 2-fi-fi- done;;- esac- as_found=false-done-IFS=$as_save_IFS-if $as_found-then :--else case e in #(- e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&- as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null-then :- CONFIG_SHELL=$SHELL as_have_required=yes-fi ;;-esac-fi--- if test "x$CONFIG_SHELL" != x-then :- export CONFIG_SHELL- # We cannot yet assume a decent shell, so we have to provide a-# neutralization value for shells without unset; and this also-# works around shells that cannot unset nonexistent variables.-# Preserve -v and -x to the replacement shell.-BASH_ENV=/dev/null-ENV=/dev/null-(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV-case $- in # ((((- *v*x* | *x*v* ) as_opts=-vx ;;- *v* ) as_opts=-v ;;- *x* ) as_opts=-x ;;- * ) as_opts= ;;-esac-exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}-# Admittedly, this is quite paranoid, since all the known shells bail-# out after a failed 'exec'.-printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2-exit 255-fi-- if test x$as_have_required = xno-then :- printf "%s\n" "$0: This script requires a shell more modern than all"- printf "%s\n" "$0: the shells that I found on your system."- if test ${ZSH_VERSION+y} ; then- printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"- printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."- else- printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and vamchale@gmail.com-$0: about your system, including any error possibly output-$0: before this message. Then install a modern shell, or-$0: manually run the script under such a shell if you do-$0: have one."- fi- exit 1-fi ;;-esac-fi-fi-SHELL=${CONFIG_SHELL-/bin/sh}-export SHELL-# Unset more variables known to interfere with behavior of common tools.-CLICOLOR_FORCE= GREP_OPTIONS=-unset CLICOLOR_FORCE GREP_OPTIONS--## --------------------- ##-## M4sh Shell Functions. ##-## --------------------- ##-# as_fn_unset VAR-# ----------------# Portably unset VAR.-as_fn_unset ()-{- { eval $1=; unset $1;}-}-as_unset=as_fn_unset---# as_fn_set_status STATUS-# ------------------------# Set $? to STATUS, without forking.-as_fn_set_status ()-{- return $1-} # as_fn_set_status--# as_fn_exit STATUS-# ------------------# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.-as_fn_exit ()-{- set +e- as_fn_set_status $1- exit $1-} # as_fn_exit--# as_fn_mkdir_p-# --------------# Create "$as_dir" as a directory, including parents if necessary.-as_fn_mkdir_p ()-{-- case $as_dir in #(- -*) as_dir=./$as_dir;;- esac- test -d "$as_dir" || eval $as_mkdir_p || {- as_dirs=- while :; do- case $as_dir in #(- *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(- *) as_qdir=$as_dir;;- esac- as_dirs="'$as_qdir' $as_dirs"- as_dir=`$as_dirname -- "$as_dir" ||-$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \- X"$as_dir" : 'X\(//\)[^/]' \| \- X"$as_dir" : 'X\(//\)$' \| \- X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||-printf "%s\n" X"$as_dir" |- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{- s//\1/- q- }- /^X\(\/\/\)[^/].*/{- s//\1/- q- }- /^X\(\/\/\)$/{- s//\1/- q- }- /^X\(\/\).*/{- s//\1/- q- }- s/.*/./; q'`- test -d "$as_dir" && break- done- test -z "$as_dirs" || eval "mkdir $as_dirs"- } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"---} # as_fn_mkdir_p--# as_fn_executable_p FILE-# ------------------------# Test if FILE is an executable regular file.-as_fn_executable_p ()-{- test -f "$1" && test -x "$1"-} # as_fn_executable_p-# as_fn_append VAR VALUE-# -----------------------# Append the text in VALUE to the end of the definition contained in VAR. Take-# advantage of any shell optimizations that allow amortized linear growth over-# repeated appends, instead of the typical quadratic growth present in naive-# implementations.-if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null-then :- eval 'as_fn_append ()- {- eval $1+=\$2- }'-else case e in #(- e) as_fn_append ()- {- eval $1=\$$1\$2- } ;;-esac-fi # as_fn_append--# as_fn_arith ARG...-# -------------------# Perform arithmetic evaluation on the ARGs, and store the result in the-# global $as_val. Take advantage of shells that can avoid forks. The arguments-# must be portable across $(()) and expr.-if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null-then :- eval 'as_fn_arith ()- {- as_val=$(( $* ))- }'-else case e in #(- e) as_fn_arith ()- {- as_val=`expr "$@" || test $? -eq 1`- } ;;-esac-fi # as_fn_arith---# as_fn_error STATUS ERROR [LINENO LOG_FD]-# -----------------------------------------# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are-# provided, also output the error to LOG_FD, referencing LINENO. Then exit the-# script with STATUS, using 1 if that was 0.-as_fn_error ()-{- as_status=$1; test $as_status -eq 0 && as_status=1- if test "$4"; then- as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack- printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4- fi- printf "%s\n" "$as_me: error: $2" >&2- as_fn_exit $as_status-} # as_fn_error--if expr a : '\(a\)' >/dev/null 2>&1 &&- test "X`expr 00001 : '.*\(...\)'`" = X001; then- as_expr=expr-else- as_expr=false-fi--if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then- as_basename=basename-else- as_basename=false-fi--if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then- as_dirname=dirname-else- as_dirname=false-fi--as_me=`$as_basename -- "$0" ||-$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \- X"$0" : 'X\(//\)$' \| \- X"$0" : 'X\(/\)' \| . 2>/dev/null ||-printf "%s\n" X/"$0" |- sed '/^.*\/\([^/][^/]*\)\/*$/{- s//\1/- q- }- /^X\/\(\/\/\)$/{- s//\1/- q- }- /^X\/\(\/\).*/{- s//\1/- q- }- s/.*/./; q'`--# Avoid depending upon Character Ranges.-as_cr_letters='abcdefghijklmnopqrstuvwxyz'-as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'-as_cr_Letters=$as_cr_letters$as_cr_LETTERS-as_cr_digits='0123456789'-as_cr_alnum=$as_cr_Letters$as_cr_digits--- as_lineno_1=$LINENO as_lineno_1a=$LINENO- as_lineno_2=$LINENO as_lineno_2a=$LINENO- eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&- test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {- # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)- sed -n '- p- /[$]LINENO/=- ' <$as_myself |- sed '- t clear- :clear- s/[$]LINENO.*/&-/- t lineno- b- :lineno- N- :loop- s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/- t loop- s/-\n.*//- ' >$as_me.lineno &&- chmod +x "$as_me.lineno" ||- { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }-- # If we had to re-execute with $CONFIG_SHELL, we're ensured to have- # already done that, so ensure we don't try to do so again and fall- # in an infinite loop. This has already happened in practice.- _as_can_reexec=no; export _as_can_reexec- # Don't try to exec as it changes $[0], causing all sort of problems- # (the dirname of $[0] is not the place where we might find the- # original and so on. Autoconf is especially sensitive to this).- . "./$as_me.lineno"- # Exit status is that of the last command.- exit-}---# Determine whether it's possible to make 'echo' print without a newline.-# These variables are no longer used directly by Autoconf, but are AC_SUBSTed-# for compatibility with existing Makefiles.-ECHO_C= ECHO_N= ECHO_T=-case `echo -n x` in #(((((--n*)- case `echo 'xy\c'` in- *c*) ECHO_T=' ';; # ECHO_T is single tab character.- xy) ECHO_C='\c';;- *) echo `echo ksh88 bug on AIX 6.1` > /dev/null- ECHO_T=' ';;- esac;;-*)- ECHO_N='-n';;-esac--# For backward compatibility with old third-party macros, we provide-# the shell variables $as_echo and $as_echo_n. New code should use-# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.-as_echo='printf %s\n'-as_echo_n='printf %s'--rm -f conf$$ conf$$.exe conf$$.file-if test -d conf$$.dir; then- rm -f conf$$.dir/conf$$.file-else- rm -f conf$$.dir- mkdir conf$$.dir 2>/dev/null-fi-if (echo >conf$$.file) 2>/dev/null; then- if ln -s conf$$.file conf$$ 2>/dev/null; then- as_ln_s='ln -s'- # ... but there are two gotchas:- # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.- # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.- # In both cases, we have to default to 'cp -pR'.- ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||- as_ln_s='cp -pR'- elif ln conf$$.file conf$$ 2>/dev/null; then- as_ln_s=ln- else- as_ln_s='cp -pR'- fi-else- as_ln_s='cp -pR'-fi-rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file-rmdir conf$$.dir 2>/dev/null--if mkdir -p . 2>/dev/null; then- as_mkdir_p='mkdir -p "$as_dir"'-else- test -d ./-p && rmdir ./-p- as_mkdir_p=false-fi--as_test_x='test -x'-as_executable_p=as_fn_executable_p--# Sed expression to map a string onto a valid CPP name.-as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"-as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated--# Sed expression to map a string onto a valid variable name.-as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"-as_tr_sh="eval sed '$as_sed_sh'" # deprecated--SHELL=${CONFIG_SHELL-/bin/sh}---test -n "$DJDIR" || exec 7<&0 </dev/null-exec 6>&1--# Name of the host.-# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,-# so uname gets run too.-ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`--#-# Initializations.-#-ac_default_prefix=/usr/local-ac_clean_files=-ac_config_libobj_dir=.-LIBOBJS=-cross_compiling=no-subdirs=-MFLAGS=-MAKEFLAGS=--# Identity of this package.-PACKAGE_NAME='Haskell libarchive-clib package'-PACKAGE_TARNAME='libarchive-clib'-PACKAGE_VERSION='3.7.2'-PACKAGE_STRING='Haskell libarchive-clib package 3.7.2'-PACKAGE_BUGREPORT='vamchale@gmail.com'-PACKAGE_URL=''--ac_unique_file="c"-# Factoring default headers for most tests.-ac_includes_default="\-#include <stddef.h>-#ifdef HAVE_STDIO_H-# include <stdio.h>-#endif-#ifdef HAVE_STDLIB_H-# include <stdlib.h>-#endif-#ifdef HAVE_STRING_H-# include <string.h>-#endif-#ifdef HAVE_INTTYPES_H-# include <inttypes.h>-#endif-#ifdef HAVE_STDINT_H-# include <stdint.h>-#endif-#ifdef HAVE_STRINGS_H-# include <strings.h>-#endif-#ifdef HAVE_SYS_TYPES_H-# include <sys/types.h>-#endif-#ifdef HAVE_SYS_STAT_H-# include <sys/stat.h>-#endif-#ifdef HAVE_UNISTD_H-# include <unistd.h>-#endif"--ac_header_c_list=-ac_func_c_list=-enable_year2038=no-ac_subst_vars='LTLIBOBJS-EXTRA_LIBS-INC_FREEBSD_ACL_FALSE-INC_FREEBSD_ACL_TRUE-INC_DARWIN_ACL_FALSE-INC_DARWIN_ACL_TRUE-INC_SUNOS_ACL_FALSE-INC_SUNOS_ACL_TRUE-INC_LINUX_ACL_FALSE-INC_LINUX_ACL_TRUE-LIBOBJS-LZMA_PC_LIBS-LZMA_PC_CFLAGS-ICONV_PC_LIBS-ICONV_PC_CFLAGS-LTLIBICONV-LIBICONV-INC_BLAKE2_FALSE-INC_BLAKE2_TRUE-PKG_CONFIG_LIBDIR-PKG_CONFIG_PATH-PKG_CONFIG-MKDIR_P-LT_SYS_LIBRARY_PATH-OTOOL64-OTOOL-LIPO-NMEDIT-DSYMUTIL-MANIFEST_TOOL-AWK-RANLIB-STRIP-ac_ct_AR-AR-FILECMD-LN_S-NM-ac_ct_DUMPBIN-DUMPBIN-LD-FGREP-EGREP-GREP-SED-LIBTOOL-OBJDUMP-DLLTOOL-AS-CPP-OBJEXT-EXEEXT-ac_ct_CC-CPPFLAGS-LDFLAGS-CFLAGS-CC-INC_CYGWIN_FILES_FALSE-INC_CYGWIN_FILES_TRUE-INC_WINDOWS_FILES_FALSE-INC_WINDOWS_FILES_TRUE-host_os-host_vendor-host_cpu-host-build_os-build_vendor-build_cpu-build-LIBARCHIVE_VERSION_NUMBER-LIBARCHIVE_VERSION_STRING-BSDUNZIP_VERSION_STRING-BSDCAT_VERSION_STRING-BSDTAR_VERSION_STRING-BSDCPIO_VERSION_STRING-ARCHIVE_LIBTOOL_VERSION-target_alias-host_alias-build_alias-LIBS-ECHO_T-ECHO_N-ECHO_C-DEFS-mandir-localedir-libdir-psdir-pdfdir-dvidir-htmldir-infodir-docdir-oldincludedir-includedir-runstatedir-localstatedir-sharedstatedir-sysconfdir-datadir-datarootdir-libexecdir-sbindir-bindir-program_transform_name-prefix-exec_prefix-PACKAGE_URL-PACKAGE_BUGREPORT-PACKAGE_STRING-PACKAGE_VERSION-PACKAGE_TARNAME-PACKAGE_NAME-PATH_SEPARATOR-SHELL'-ac_subst_files=''-ac_user_opts='-enable_option_checking-enable_shared-enable_static-enable_pic-with_pic-enable_fast_install-enable_aix_soname-with_aix_soname-with_gnu_ld-with_sysroot-enable_libtool_lock-with_zlib-with_bz2lib-with_iconv-enable_rpath-with_libiconv_prefix-with_lz4-with_zstd-with_lzma-enable_xattr-enable_acl-enable_largefile-enable_year2038-'- ac_precious_vars='build_alias-host_alias-target_alias-CC-CFLAGS-LDFLAGS-LIBS-CPPFLAGS-CPP-LT_SYS_LIBRARY_PATH-PKG_CONFIG-PKG_CONFIG_PATH-PKG_CONFIG_LIBDIR-ICONV_PC_CFLAGS-ICONV_PC_LIBS-LZMA_PC_CFLAGS-LZMA_PC_LIBS'---# Initialize some variables set by options.-ac_init_help=-ac_init_version=false-ac_unrecognized_opts=-ac_unrecognized_sep=-# The variables have the same names as the options, with-# dashes changed to underlines.-cache_file=/dev/null-exec_prefix=NONE-no_create=-no_recursion=-prefix=NONE-program_prefix=NONE-program_suffix=NONE-program_transform_name=s,x,x,-silent=-site=-srcdir=-verbose=-x_includes=NONE-x_libraries=NONE--# Installation directory options.-# These are left unexpanded so users can "make install exec_prefix=/foo"-# and all the variables that are supposed to be based on exec_prefix-# by default will actually change.-# Use braces instead of parens because sh, perl, etc. also accept them.-# (The list follows the same order as the GNU Coding Standards.)-bindir='${exec_prefix}/bin'-sbindir='${exec_prefix}/sbin'-libexecdir='${exec_prefix}/libexec'-datarootdir='${prefix}/share'-datadir='${datarootdir}'-sysconfdir='${prefix}/etc'-sharedstatedir='${prefix}/com'-localstatedir='${prefix}/var'-runstatedir='${localstatedir}/run'-includedir='${prefix}/include'-oldincludedir='/usr/include'-docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'-infodir='${datarootdir}/info'-htmldir='${docdir}'-dvidir='${docdir}'-pdfdir='${docdir}'-psdir='${docdir}'-libdir='${exec_prefix}/lib'-localedir='${datarootdir}/locale'-mandir='${datarootdir}/man'--ac_prev=-ac_dashdash=-for ac_option-do- # If the previous option needs an argument, assign it.- if test -n "$ac_prev"; then- eval $ac_prev=\$ac_option- ac_prev=- continue- fi-- case $ac_option in- *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;- *=) ac_optarg= ;;- *) ac_optarg=yes ;;- esac-- case $ac_dashdash$ac_option in- --)- ac_dashdash=yes ;;-- -bindir | --bindir | --bindi | --bind | --bin | --bi)- ac_prev=bindir ;;- -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)- bindir=$ac_optarg ;;-- -build | --build | --buil | --bui | --bu)- ac_prev=build_alias ;;- -build=* | --build=* | --buil=* | --bui=* | --bu=*)- build_alias=$ac_optarg ;;-- -cache-file | --cache-file | --cache-fil | --cache-fi \- | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)- ac_prev=cache_file ;;- -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \- | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)- cache_file=$ac_optarg ;;-- --config-cache | -C)- cache_file=config.cache ;;-- -datadir | --datadir | --datadi | --datad)- ac_prev=datadir ;;- -datadir=* | --datadir=* | --datadi=* | --datad=*)- datadir=$ac_optarg ;;-- -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \- | --dataroo | --dataro | --datar)- ac_prev=datarootdir ;;- -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \- | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)- datarootdir=$ac_optarg ;;-- -disable-* | --disable-*)- ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`- # Reject names that are not valid shell variable names.- expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&- as_fn_error $? "invalid feature name: '$ac_useropt'"- ac_useropt_orig=$ac_useropt- ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`- case $ac_user_opts in- *"-"enable_$ac_useropt"-"*) ;;- *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"- ac_unrecognized_sep=', ';;- esac- eval enable_$ac_useropt=no ;;-- -docdir | --docdir | --docdi | --doc | --do)- ac_prev=docdir ;;- -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)- docdir=$ac_optarg ;;-- -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)- ac_prev=dvidir ;;- -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)- dvidir=$ac_optarg ;;-- -enable-* | --enable-*)- ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`- # Reject names that are not valid shell variable names.- expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&- as_fn_error $? "invalid feature name: '$ac_useropt'"- ac_useropt_orig=$ac_useropt- ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`- case $ac_user_opts in- *"-"enable_$ac_useropt"-"*) ;;- *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"- ac_unrecognized_sep=', ';;- esac- eval enable_$ac_useropt=\$ac_optarg ;;-- -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \- | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \- | --exec | --exe | --ex)- ac_prev=exec_prefix ;;- -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \- | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \- | --exec=* | --exe=* | --ex=*)- exec_prefix=$ac_optarg ;;-- -gas | --gas | --ga | --g)- # Obsolete; use --with-gas.- with_gas=yes ;;-- -help | --help | --hel | --he | -h)- ac_init_help=long ;;- -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)- ac_init_help=recursive ;;- -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)- ac_init_help=short ;;-- -host | --host | --hos | --ho)- ac_prev=host_alias ;;- -host=* | --host=* | --hos=* | --ho=*)- host_alias=$ac_optarg ;;-- -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)- ac_prev=htmldir ;;- -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \- | --ht=*)- htmldir=$ac_optarg ;;-- -includedir | --includedir | --includedi | --included | --include \- | --includ | --inclu | --incl | --inc)- ac_prev=includedir ;;- -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \- | --includ=* | --inclu=* | --incl=* | --inc=*)- includedir=$ac_optarg ;;-- -infodir | --infodir | --infodi | --infod | --info | --inf)- ac_prev=infodir ;;- -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)- infodir=$ac_optarg ;;-- -libdir | --libdir | --libdi | --libd)- ac_prev=libdir ;;- -libdir=* | --libdir=* | --libdi=* | --libd=*)- libdir=$ac_optarg ;;-- -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \- | --libexe | --libex | --libe)- ac_prev=libexecdir ;;- -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \- | --libexe=* | --libex=* | --libe=*)- libexecdir=$ac_optarg ;;-- -localedir | --localedir | --localedi | --localed | --locale)- ac_prev=localedir ;;- -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)- localedir=$ac_optarg ;;-- -localstatedir | --localstatedir | --localstatedi | --localstated \- | --localstate | --localstat | --localsta | --localst | --locals)- ac_prev=localstatedir ;;- -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \- | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)- localstatedir=$ac_optarg ;;-- -mandir | --mandir | --mandi | --mand | --man | --ma | --m)- ac_prev=mandir ;;- -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)- mandir=$ac_optarg ;;-- -nfp | --nfp | --nf)- # Obsolete; use --without-fp.- with_fp=no ;;-- -no-create | --no-create | --no-creat | --no-crea | --no-cre \- | --no-cr | --no-c | -n)- no_create=yes ;;-- -no-recursion | --no-recursion | --no-recursio | --no-recursi \- | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)- no_recursion=yes ;;-- -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \- | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \- | --oldin | --oldi | --old | --ol | --o)- ac_prev=oldincludedir ;;- -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \- | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \- | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)- oldincludedir=$ac_optarg ;;-- -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)- ac_prev=prefix ;;- -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)- prefix=$ac_optarg ;;-- -program-prefix | --program-prefix | --program-prefi | --program-pref \- | --program-pre | --program-pr | --program-p)- ac_prev=program_prefix ;;- -program-prefix=* | --program-prefix=* | --program-prefi=* \- | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)- program_prefix=$ac_optarg ;;-- -program-suffix | --program-suffix | --program-suffi | --program-suff \- | --program-suf | --program-su | --program-s)- ac_prev=program_suffix ;;- -program-suffix=* | --program-suffix=* | --program-suffi=* \- | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)- program_suffix=$ac_optarg ;;-- -program-transform-name | --program-transform-name \- | --program-transform-nam | --program-transform-na \- | --program-transform-n | --program-transform- \- | --program-transform | --program-transfor \- | --program-transfo | --program-transf \- | --program-trans | --program-tran \- | --progr-tra | --program-tr | --program-t)- ac_prev=program_transform_name ;;- -program-transform-name=* | --program-transform-name=* \- | --program-transform-nam=* | --program-transform-na=* \- | --program-transform-n=* | --program-transform-=* \- | --program-transform=* | --program-transfor=* \- | --program-transfo=* | --program-transf=* \- | --program-trans=* | --program-tran=* \- | --progr-tra=* | --program-tr=* | --program-t=*)- program_transform_name=$ac_optarg ;;-- -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)- ac_prev=pdfdir ;;- -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)- pdfdir=$ac_optarg ;;-- -psdir | --psdir | --psdi | --psd | --ps)- ac_prev=psdir ;;- -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)- psdir=$ac_optarg ;;-- -q | -quiet | --quiet | --quie | --qui | --qu | --q \- | -silent | --silent | --silen | --sile | --sil)- silent=yes ;;-- -runstatedir | --runstatedir | --runstatedi | --runstated \- | --runstate | --runstat | --runsta | --runst | --runs \- | --run | --ru | --r)- ac_prev=runstatedir ;;- -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \- | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \- | --run=* | --ru=* | --r=*)- runstatedir=$ac_optarg ;;-- -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)- ac_prev=sbindir ;;- -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \- | --sbi=* | --sb=*)- sbindir=$ac_optarg ;;-- -sharedstatedir | --sharedstatedir | --sharedstatedi \- | --sharedstated | --sharedstate | --sharedstat | --sharedsta \- | --sharedst | --shareds | --shared | --share | --shar \- | --sha | --sh)- ac_prev=sharedstatedir ;;- -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \- | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \- | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \- | --sha=* | --sh=*)- sharedstatedir=$ac_optarg ;;-- -site | --site | --sit)- ac_prev=site ;;- -site=* | --site=* | --sit=*)- site=$ac_optarg ;;-- -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)- ac_prev=srcdir ;;- -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)- srcdir=$ac_optarg ;;-- -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \- | --syscon | --sysco | --sysc | --sys | --sy)- ac_prev=sysconfdir ;;- -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \- | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)- sysconfdir=$ac_optarg ;;-- -target | --target | --targe | --targ | --tar | --ta | --t)- ac_prev=target_alias ;;- -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)- target_alias=$ac_optarg ;;-- -v | -verbose | --verbose | --verbos | --verbo | --verb)- verbose=yes ;;-- -version | --version | --versio | --versi | --vers | -V)- ac_init_version=: ;;-- -with-* | --with-*)- ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`- # Reject names that are not valid shell variable names.- expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&- as_fn_error $? "invalid package name: '$ac_useropt'"- ac_useropt_orig=$ac_useropt- ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`- case $ac_user_opts in- *"-"with_$ac_useropt"-"*) ;;- *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"- ac_unrecognized_sep=', ';;- esac- eval with_$ac_useropt=\$ac_optarg ;;-- -without-* | --without-*)- ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`- # Reject names that are not valid shell variable names.- expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&- as_fn_error $? "invalid package name: '$ac_useropt'"- ac_useropt_orig=$ac_useropt- ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`- case $ac_user_opts in- *"-"with_$ac_useropt"-"*) ;;- *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"- ac_unrecognized_sep=', ';;- esac- eval with_$ac_useropt=no ;;-- --x)- # Obsolete; use --with-x.- with_x=yes ;;-- -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \- | --x-incl | --x-inc | --x-in | --x-i)- ac_prev=x_includes ;;- -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \- | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)- x_includes=$ac_optarg ;;-- -x-libraries | --x-libraries | --x-librarie | --x-librari \- | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)- ac_prev=x_libraries ;;- -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \- | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)- x_libraries=$ac_optarg ;;-- -*) as_fn_error $? "unrecognized option: '$ac_option'-Try '$0 --help' for more information"- ;;-- *=*)- ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`- # Reject names that are not valid shell variable names.- case $ac_envvar in #(- '' | [0-9]* | *[!_$as_cr_alnum]* )- as_fn_error $? "invalid variable name: '$ac_envvar'" ;;- esac- eval $ac_envvar=\$ac_optarg- export $ac_envvar ;;-- *)- # FIXME: should be removed in autoconf 3.0.- printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2- expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&- printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2- : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"- ;;-- esac-done--if test -n "$ac_prev"; then- ac_option=--`echo $ac_prev | sed 's/_/-/g'`- as_fn_error $? "missing argument to $ac_option"-fi--if test -n "$ac_unrecognized_opts"; then- case $enable_option_checking in- no) ;;- fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;- *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;- esac-fi--# Check all directory arguments for consistency.-for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \- datadir sysconfdir sharedstatedir localstatedir includedir \- oldincludedir docdir infodir htmldir dvidir pdfdir psdir \- libdir localedir mandir runstatedir-do- eval ac_val=\$$ac_var- # Remove trailing slashes.- case $ac_val in- */ )- ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`- eval $ac_var=\$ac_val;;- esac- # Be sure to have absolute directory names.- case $ac_val in- [\\/$]* | ?:[\\/]* ) continue;;- NONE | '' ) case $ac_var in *prefix ) continue;; esac;;- esac- as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"-done--# There might be people who depend on the old broken behavior: '$host'-# used to hold the argument of --host etc.-# FIXME: To remove some day.-build=$build_alias-host=$host_alias-target=$target_alias--# FIXME: To remove some day.-if test "x$host_alias" != x; then- if test "x$build_alias" = x; then- cross_compiling=maybe- elif test "x$build_alias" != "x$host_alias"; then- cross_compiling=yes- fi-fi--ac_tool_prefix=-test -n "$host_alias" && ac_tool_prefix=$host_alias---test "$silent" = yes && exec 6>/dev/null---ac_pwd=`pwd` && test -n "$ac_pwd" &&-ac_ls_di=`ls -di .` &&-ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||- as_fn_error $? "working directory cannot be determined"-test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||- as_fn_error $? "pwd does not report name of working directory"---# Find the source files, if location was not specified.-if test -z "$srcdir"; then- ac_srcdir_defaulted=yes- # Try the directory containing this script, then the parent directory.- ac_confdir=`$as_dirname -- "$as_myself" ||-$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \- X"$as_myself" : 'X\(//\)[^/]' \| \- X"$as_myself" : 'X\(//\)$' \| \- X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||-printf "%s\n" X"$as_myself" |- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{- s//\1/- q- }- /^X\(\/\/\)[^/].*/{- s//\1/- q- }- /^X\(\/\/\)$/{- s//\1/- q- }- /^X\(\/\).*/{- s//\1/- q- }- s/.*/./; q'`- srcdir=$ac_confdir- if test ! -r "$srcdir/$ac_unique_file"; then- srcdir=..- fi-else- ac_srcdir_defaulted=no-fi-if test ! -r "$srcdir/$ac_unique_file"; then- test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."- as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"-fi-ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"-ac_abs_confdir=`(- cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"- pwd)`-# When building in place, set srcdir=.-if test "$ac_abs_confdir" = "$ac_pwd"; then- srcdir=.-fi-# Remove unnecessary trailing slashes from srcdir.-# Double slashes in file names in object file debugging info-# mess up M-x gdb in Emacs.-case $srcdir in-*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;-esac-for ac_var in $ac_precious_vars; do- eval ac_env_${ac_var}_set=\${${ac_var}+set}- eval ac_env_${ac_var}_value=\$${ac_var}- eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}- eval ac_cv_env_${ac_var}_value=\$${ac_var}-done--#-# Report the --help message.-#-if test "$ac_init_help" = "long"; then- # Omit some internal or obsolete options to make the list less imposing.- # This message is too long to be a string in the A/UX 3.1 sh.- cat <<_ACEOF-'configure' configures Haskell libarchive-clib package 3.7.2 to adapt to many kinds of systems.--Usage: $0 [OPTION]... [VAR=VALUE]...--To assign environment variables (e.g., CC, CFLAGS...), specify them as-VAR=VALUE. See below for descriptions of some of the useful variables.--Defaults for the options are specified in brackets.--Configuration:- -h, --help display this help and exit- --help=short display options specific to this package- --help=recursive display the short help of all the included packages- -V, --version display version information and exit- -q, --quiet, --silent do not print 'checking ...' messages- --cache-file=FILE cache test results in FILE [disabled]- -C, --config-cache alias for '--cache-file=config.cache'- -n, --no-create do not create output files- --srcdir=DIR find the sources in DIR [configure dir or '..']--Installation directories:- --prefix=PREFIX install architecture-independent files in PREFIX- [$ac_default_prefix]- --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX- [PREFIX]--By default, 'make install' will install all the files in-'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify-an installation prefix other than '$ac_default_prefix' using '--prefix',-for instance '--prefix=\$HOME'.--For better control, use the options below.--Fine tuning of the installation directories:- --bindir=DIR user executables [EPREFIX/bin]- --sbindir=DIR system admin executables [EPREFIX/sbin]- --libexecdir=DIR program executables [EPREFIX/libexec]- --sysconfdir=DIR read-only single-machine data [PREFIX/etc]- --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]- --localstatedir=DIR modifiable single-machine data [PREFIX/var]- --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]- --libdir=DIR object code libraries [EPREFIX/lib]- --includedir=DIR C header files [PREFIX/include]- --oldincludedir=DIR C header files for non-gcc [/usr/include]- --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]- --datadir=DIR read-only architecture-independent data [DATAROOTDIR]- --infodir=DIR info documentation [DATAROOTDIR/info]- --localedir=DIR locale-dependent data [DATAROOTDIR/locale]- --mandir=DIR man documentation [DATAROOTDIR/man]- --docdir=DIR documentation root [DATAROOTDIR/doc/libarchive-clib]- --htmldir=DIR html documentation [DOCDIR]- --dvidir=DIR dvi documentation [DOCDIR]- --pdfdir=DIR pdf documentation [DOCDIR]- --psdir=DIR ps documentation [DOCDIR]-_ACEOF-- cat <<\_ACEOF--System types:- --build=BUILD configure for building on BUILD [guessed]- --host=HOST cross-compile to build programs to run on HOST [BUILD]-_ACEOF-fi--if test -n "$ac_init_help"; then- case $ac_init_help in- short | recursive ) echo "Configuration of Haskell libarchive-clib package 3.7.2:";;- esac- cat <<\_ACEOF--Optional Features:- --disable-option-checking ignore unrecognized --enable/--with options- --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)- --enable-FEATURE[=ARG] include FEATURE [ARG=yes]- --enable-shared[=PKGS] build shared libraries [default=yes]- --enable-static[=PKGS] build static libraries [default=yes]- --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use- both]- --enable-fast-install[=PKGS]- optimize for fast installation [default=yes]- --enable-aix-soname=aix|svr4|both- shared library versioning (aka "SONAME") variant to- provide on AIX, [default=aix].- --disable-libtool-lock avoid locking (might break parallel builds)- --disable-rpath do not hardcode runtime library paths- --disable-xattr Disable Extended Attributes support (default: check)- --disable-acl Disable ACL support (default: check)- --disable-largefile omit support for large files- --enable-year2038 support timestamps after 2038--Optional Packages:- --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]- --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)- --with-gnu-ld assume the C compiler uses GNU ld [default=no]- --with-sysroot[=DIR] Search for dependent libraries within DIR (or the- compiler's sysroot if not specified).- --without-zlib Don't build support for gzip through zlib- --without-bz2lib Don't build support for bzip2 through bz2lib- --without-iconv Don't try to link against iconv- --with-gnu-ld assume the C compiler uses GNU ld default=no- --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib- --without-libiconv-prefix don't search for libiconv in includedir and libdir- --without-lz4 Don't build support for lz4 through liblz4- --without-zstd Don't build support for zstd through libzstd- --without-lzma Don't build support for xz through lzma--Some influential environment variables:- CC C compiler command- CFLAGS C compiler flags- LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a- nonstandard directory <lib dir>- LIBS libraries to pass to the linker, e.g. -l<library>- CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if- you have headers in a nonstandard directory <include dir>- CPP C preprocessor- LT_SYS_LIBRARY_PATH- User-defined run-time library search path.- PKG_CONFIG path to pkg-config utility- PKG_CONFIG_PATH- directories to add to pkg-config's search path- PKG_CONFIG_LIBDIR- path overriding pkg-config's built-in search path- ICONV_PC_CFLAGS- C compiler flags for ICONV_PC, overriding pkg-config- ICONV_PC_LIBS- linker flags for ICONV_PC, overriding pkg-config- LZMA_PC_CFLAGS- C compiler flags for LZMA_PC, overriding pkg-config- LZMA_PC_LIBS- linker flags for LZMA_PC, overriding pkg-config--Use these variables to override the choices made by 'configure' or to help-it to find libraries and programs with nonstandard names/locations.--Report bugs to <vamchale@gmail.com>.-_ACEOF-ac_status=$?-fi--if test "$ac_init_help" = "recursive"; then- # If there are subdirs, report their specific --help.- for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue- test -d "$ac_dir" ||- { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||- continue- ac_builddir=.--case "$ac_dir" in-.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;-*)- ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`- # A ".." for each directory in $ac_dir_suffix.- ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`- case $ac_top_builddir_sub in- "") ac_top_builddir_sub=. ac_top_build_prefix= ;;- *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;- esac ;;-esac-ac_abs_top_builddir=$ac_pwd-ac_abs_builddir=$ac_pwd$ac_dir_suffix-# for backward compatibility:-ac_top_builddir=$ac_top_build_prefix--case $srcdir in- .) # We are building in place.- ac_srcdir=.- ac_top_srcdir=$ac_top_builddir_sub- ac_abs_top_srcdir=$ac_pwd ;;- [\\/]* | ?:[\\/]* ) # Absolute name.- ac_srcdir=$srcdir$ac_dir_suffix;- ac_top_srcdir=$srcdir- ac_abs_top_srcdir=$srcdir ;;- *) # Relative name.- ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix- ac_top_srcdir=$ac_top_build_prefix$srcdir- ac_abs_top_srcdir=$ac_pwd/$srcdir ;;-esac-ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix-- cd "$ac_dir" || { ac_status=$?; continue; }- # Check for configure.gnu first; this name is used for a wrapper for- # Metaconfig's "Configure" on case-insensitive file systems.- if test -f "$ac_srcdir/configure.gnu"; then- echo &&- $SHELL "$ac_srcdir/configure.gnu" --help=recursive- elif test -f "$ac_srcdir/configure"; then- echo &&- $SHELL "$ac_srcdir/configure" --help=recursive- else- printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2- fi || ac_status=$?- cd "$ac_pwd" || { ac_status=$?; break; }- done-fi--test -n "$ac_init_help" && exit $ac_status-if $ac_init_version; then- cat <<\_ACEOF-Haskell libarchive-clib package configure 3.7.2-generated by GNU Autoconf 2.72--Copyright (C) 2023 Free Software Foundation, Inc.-This configure script is free software; the Free Software Foundation-gives unlimited permission to copy, distribute and modify it.-_ACEOF- exit-fi--## ------------------------ ##-## Autoconf initialization. ##-## ------------------------ ##--# ac_fn_c_try_compile LINENO-# ---------------------------# Try to compile conftest.$ac_ext, and return whether this succeeded.-ac_fn_c_try_compile ()-{- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack- rm -f conftest.$ac_objext conftest.beam- if { { ac_try="$ac_compile"-case "(($ac_try" in- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;- *) ac_try_echo=$ac_try;;-esac-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""-printf "%s\n" "$ac_try_echo"; } >&5- (eval "$ac_compile") 2>conftest.err- ac_status=$?- if test -s conftest.err; then- grep -v '^ *+' conftest.err >conftest.er1- cat conftest.er1 >&5- mv -f conftest.er1 conftest.err- fi- printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5- test $ac_status = 0; } && {- test -z "$ac_c_werror_flag" ||- test ! -s conftest.err- } && test -s conftest.$ac_objext-then :- ac_retval=0-else case e in #(- e) printf "%s\n" "$as_me: failed program was:" >&5-sed 's/^/| /' conftest.$ac_ext >&5-- ac_retval=1 ;;-esac-fi- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno- as_fn_set_status $ac_retval--} # ac_fn_c_try_compile--# ac_fn_c_try_cpp LINENO-# -----------------------# Try to preprocess conftest.$ac_ext, and return whether this succeeded.-ac_fn_c_try_cpp ()-{- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack- if { { ac_try="$ac_cpp conftest.$ac_ext"-case "(($ac_try" in- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;- *) ac_try_echo=$ac_try;;-esac-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""-printf "%s\n" "$ac_try_echo"; } >&5- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err- ac_status=$?- if test -s conftest.err; then- grep -v '^ *+' conftest.err >conftest.er1- cat conftest.er1 >&5- mv -f conftest.er1 conftest.err- fi- printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5- test $ac_status = 0; } > conftest.i && {- test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||- test ! -s conftest.err- }-then :- ac_retval=0-else case e in #(- e) printf "%s\n" "$as_me: failed program was:" >&5-sed 's/^/| /' conftest.$ac_ext >&5-- ac_retval=1 ;;-esac-fi- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno- as_fn_set_status $ac_retval--} # ac_fn_c_try_cpp--# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES-# --------------------------------------------------------# Tests whether HEADER exists and can be compiled using the include files in-# INCLUDES, setting the cache variable VAR accordingly.-ac_fn_c_check_header_compile ()-{- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5-printf %s "checking for $2... " >&6; }-if eval test \${$3+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */-$4-#include <$2>-_ACEOF-if ac_fn_c_try_compile "$LINENO"-then :- eval "$3=yes"-else case e in #(- e) eval "$3=no" ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;-esac-fi-eval ac_res=\$$3- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5-printf "%s\n" "$ac_res" >&6; }- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno--} # ac_fn_c_check_header_compile--# ac_fn_c_try_link LINENO-# ------------------------# Try to link conftest.$ac_ext, and return whether this succeeded.-ac_fn_c_try_link ()-{- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack- rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext- if { { ac_try="$ac_link"-case "(($ac_try" in- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;- *) ac_try_echo=$ac_try;;-esac-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""-printf "%s\n" "$ac_try_echo"; } >&5- (eval "$ac_link") 2>conftest.err- ac_status=$?- if test -s conftest.err; then- grep -v '^ *+' conftest.err >conftest.er1- cat conftest.er1 >&5- mv -f conftest.er1 conftest.err- fi- printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5- test $ac_status = 0; } && {- test -z "$ac_c_werror_flag" ||- test ! -s conftest.err- } && test -s conftest$ac_exeext && {- test "$cross_compiling" = yes ||- test -x conftest$ac_exeext- }-then :- ac_retval=0-else case e in #(- e) printf "%s\n" "$as_me: failed program was:" >&5-sed 's/^/| /' conftest.$ac_ext >&5-- ac_retval=1 ;;-esac-fi- # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information- # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would- # interfere with the next link command; also delete a directory that is- # left behind by Apple's compiler. We do this before executing the actions.- rm -rf conftest.dSYM conftest_ipa8_conftest.oo- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno- as_fn_set_status $ac_retval--} # ac_fn_c_try_link--# ac_fn_c_check_func LINENO FUNC VAR-# -----------------------------------# Tests whether FUNC exists, setting the cache variable VAR accordingly-ac_fn_c_check_func ()-{- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5-printf %s "checking for $2... " >&6; }-if eval test \${$3+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */-/* Define $2 to an innocuous variant, in case <limits.h> declares $2.- For example, HP-UX 11i <limits.h> declares gettimeofday. */-#define $2 innocuous_$2--/* System header to define __stub macros and hopefully few prototypes,- which can conflict with char $2 (void); below. */--#include <limits.h>-#undef $2--/* Override any GCC internal prototype to avoid an error.- Use char because int might match the return type of a GCC- builtin and then its argument prototype would still apply. */-#ifdef __cplusplus-extern "C"-#endif-char $2 (void);-/* The GNU C library defines this for functions which it implements- to always fail with ENOSYS. Some functions are actually named- something starting with __ and the normal name is an alias. */-#if defined __stub_$2 || defined __stub___$2-choke me-#endif--int-main (void)-{-return $2 ();- ;- return 0;-}-_ACEOF-if ac_fn_c_try_link "$LINENO"-then :- eval "$3=yes"-else case e in #(- e) eval "$3=no" ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam \- conftest$ac_exeext conftest.$ac_ext ;;-esac-fi-eval ac_res=\$$3- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5-printf "%s\n" "$ac_res" >&6; }- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno--} # ac_fn_c_check_func--# ac_fn_c_check_type LINENO TYPE VAR INCLUDES-# --------------------------------------------# Tests whether TYPE exists after having included INCLUDES, setting cache-# variable VAR accordingly.-ac_fn_c_check_type ()-{- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5-printf %s "checking for $2... " >&6; }-if eval test \${$3+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) eval "$3=no"- cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */-$4-int-main (void)-{-if (sizeof ($2))- return 0;- ;- return 0;-}-_ACEOF-if ac_fn_c_try_compile "$LINENO"-then :- cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */-$4-int-main (void)-{-if (sizeof (($2)))- return 0;- ;- return 0;-}-_ACEOF-if ac_fn_c_try_compile "$LINENO"-then :--else case e in #(- e) eval "$3=yes" ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;-esac-fi-eval ac_res=\$$3- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5-printf "%s\n" "$ac_res" >&6; }- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno--} # ac_fn_c_check_type--# ac_fn_c_try_run LINENO-# -----------------------# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that-# executables *can* be run.-ac_fn_c_try_run ()-{- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack- if { { ac_try="$ac_link"-case "(($ac_try" in- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;- *) ac_try_echo=$ac_try;;-esac-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""-printf "%s\n" "$ac_try_echo"; } >&5- (eval "$ac_link") 2>&5- ac_status=$?- printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5- test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'- { { case "(($ac_try" in- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;- *) ac_try_echo=$ac_try;;-esac-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""-printf "%s\n" "$ac_try_echo"; } >&5- (eval "$ac_try") 2>&5- ac_status=$?- printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5- test $ac_status = 0; }; }-then :- ac_retval=0-else case e in #(- e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5- printf "%s\n" "$as_me: failed program was:" >&5-sed 's/^/| /' conftest.$ac_ext >&5-- ac_retval=$ac_status ;;-esac-fi- rm -rf conftest.dSYM conftest_ipa8_conftest.oo- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno- as_fn_set_status $ac_retval--} # ac_fn_c_try_run--# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES-# -----------------------------------------------------# Tries to find if the field MEMBER exists in type AGGR, after including-# INCLUDES, setting cache variable VAR accordingly.-ac_fn_c_check_member ()-{- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5-printf %s "checking for $2.$3... " >&6; }-if eval test \${$4+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */-$5-int-main (void)-{-static $2 ac_aggr;-if (ac_aggr.$3)-return 0;- ;- return 0;-}-_ACEOF-if ac_fn_c_try_compile "$LINENO"-then :- eval "$4=yes"-else case e in #(- e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */-$5-int-main (void)-{-static $2 ac_aggr;-if (sizeof ac_aggr.$3)-return 0;- ;- return 0;-}-_ACEOF-if ac_fn_c_try_compile "$LINENO"-then :- eval "$4=yes"-else case e in #(- e) eval "$4=no" ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;-esac-fi-eval ac_res=\$$4- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5-printf "%s\n" "$ac_res" >&6; }- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno--} # ac_fn_c_check_member--# ac_fn_c_find_intX_t LINENO BITS VAR-# ------------------------------------# Finds a signed integer type with width BITS, setting cache variable VAR-# accordingly.-ac_fn_c_find_intX_t ()-{- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5-printf %s "checking for int$2_t... " >&6; }-if eval test \${$3+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) eval "$3=no"- # Order is important - never check a type that is potentially smaller- # than half of the expected target width.- for ac_type in int$2_t 'int' 'long int' \- 'long long int' 'short int' 'signed char'; do- cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */-$ac_includes_default- enum { N = $2 / 2 - 1 };-int-main (void)-{-static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];-test_array [0] = 0;-return test_array [0];-- ;- return 0;-}-_ACEOF-if ac_fn_c_try_compile "$LINENO"-then :- cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */-$ac_includes_default- enum { N = $2 / 2 - 1 };-int-main (void)-{-static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)- < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];-test_array [0] = 0;-return test_array [0];-- ;- return 0;-}-_ACEOF-if ac_fn_c_try_compile "$LINENO"-then :--else case e in #(- e) case $ac_type in #(- int$2_t) :- eval "$3=yes" ;; #(- *) :- eval "$3=\$ac_type" ;;-esac ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext- if eval test \"x\$"$3"\" = x"no"-then :--else case e in #(- e) break ;;-esac-fi- done ;;-esac-fi-eval ac_res=\$$3- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5-printf "%s\n" "$ac_res" >&6; }- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno--} # ac_fn_c_find_intX_t--# ac_fn_c_find_uintX_t LINENO BITS VAR-# -------------------------------------# Finds an unsigned integer type with width BITS, setting cache variable VAR-# accordingly.-ac_fn_c_find_uintX_t ()-{- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5-printf %s "checking for uint$2_t... " >&6; }-if eval test \${$3+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) eval "$3=no"- # Order is important - never check a type that is potentially smaller- # than half of the expected target width.- for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \- 'unsigned long long int' 'unsigned short int' 'unsigned char'; do- cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */-$ac_includes_default-int-main (void)-{-static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];-test_array [0] = 0;-return test_array [0];-- ;- return 0;-}-_ACEOF-if ac_fn_c_try_compile "$LINENO"-then :- case $ac_type in #(- uint$2_t) :- eval "$3=yes" ;; #(- *) :- eval "$3=\$ac_type" ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext- if eval test \"x\$"$3"\" = x"no"-then :--else case e in #(- e) break ;;-esac-fi- done ;;-esac-fi-eval ac_res=\$$3- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5-printf "%s\n" "$ac_res" >&6; }- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno--} # ac_fn_c_find_uintX_t--# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR-# -------------------------------------------------------------------# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR-# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.-ac_fn_check_decl ()-{- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack- as_decl_name=`echo $2|sed 's/ *(.*//'`- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5-printf %s "checking whether $as_decl_name is declared... " >&6; }-if eval test \${$3+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`- eval ac_save_FLAGS=\$$6- as_fn_append $6 " $5"- cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */-$4-int-main (void)-{-#ifndef $as_decl_name-#ifdef __cplusplus- (void) $as_decl_use;-#else- (void) $as_decl_name;-#endif-#endif-- ;- return 0;-}-_ACEOF-if ac_fn_c_try_compile "$LINENO"-then :- eval "$3=yes"-else case e in #(- e) eval "$3=no" ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext- eval $6=\$ac_save_FLAGS- ;;-esac-fi-eval ac_res=\$$3- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5-printf "%s\n" "$ac_res" >&6; }- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno--} # ac_fn_check_decl--# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES-# ---------------------------------------------# Tries to find the compile-time value of EXPR in a program that includes-# INCLUDES, setting VAR accordingly. Returns whether the value could be-# computed-ac_fn_c_compute_int ()-{- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack- if test "$cross_compiling" = yes; then- # Depending upon the size, compute the lo and hi bounds.-cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */-$4-int-main (void)-{-static int test_array [1 - 2 * !(($2) >= 0)];-test_array [0] = 0;-return test_array [0];-- ;- return 0;-}-_ACEOF-if ac_fn_c_try_compile "$LINENO"-then :- ac_lo=0 ac_mid=0- while :; do- cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */-$4-int-main (void)-{-static int test_array [1 - 2 * !(($2) <= $ac_mid)];-test_array [0] = 0;-return test_array [0];-- ;- return 0;-}-_ACEOF-if ac_fn_c_try_compile "$LINENO"-then :- ac_hi=$ac_mid; break-else case e in #(- e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val- if test $ac_lo -le $ac_mid; then- ac_lo= ac_hi=- break- fi- as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext- done-else case e in #(- e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */-$4-int-main (void)-{-static int test_array [1 - 2 * !(($2) < 0)];-test_array [0] = 0;-return test_array [0];-- ;- return 0;-}-_ACEOF-if ac_fn_c_try_compile "$LINENO"-then :- ac_hi=-1 ac_mid=-1- while :; do- cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */-$4-int-main (void)-{-static int test_array [1 - 2 * !(($2) >= $ac_mid)];-test_array [0] = 0;-return test_array [0];-- ;- return 0;-}-_ACEOF-if ac_fn_c_try_compile "$LINENO"-then :- ac_lo=$ac_mid; break-else case e in #(- e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val- if test $ac_mid -le $ac_hi; then- ac_lo= ac_hi=- break- fi- as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext- done-else case e in #(- e) ac_lo= ac_hi= ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext-# Binary search between lo and hi bounds.-while test "x$ac_lo" != "x$ac_hi"; do- as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val- cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */-$4-int-main (void)-{-static int test_array [1 - 2 * !(($2) <= $ac_mid)];-test_array [0] = 0;-return test_array [0];-- ;- return 0;-}-_ACEOF-if ac_fn_c_try_compile "$LINENO"-then :- ac_hi=$ac_mid-else case e in #(- e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext-done-case $ac_lo in #((-?*) eval "$3=\$ac_lo"; ac_retval=0 ;;-'') ac_retval=1 ;;-esac- else- cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */-$4-static long int longval (void) { return $2; }-static unsigned long int ulongval (void) { return $2; }-#include <stdio.h>-#include <stdlib.h>-int-main (void)-{-- FILE *f = fopen ("conftest.val", "w");- if (! f)- return 1;- if (($2) < 0)- {- long int i = longval ();- if (i != ($2))- return 1;- fprintf (f, "%ld", i);- }- else- {- unsigned long int i = ulongval ();- if (i != ($2))- return 1;- fprintf (f, "%lu", i);- }- /* Do not output a trailing newline, as this causes \r\n confusion- on some platforms. */- return ferror (f) || fclose (f) != 0;-- ;- return 0;-}-_ACEOF-if ac_fn_c_try_run "$LINENO"-then :- echo >>conftest.val; read $3 <conftest.val; ac_retval=0-else case e in #(- e) ac_retval=1 ;;-esac-fi-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \- conftest.$ac_objext conftest.beam conftest.$ac_ext-rm -f conftest.val-- fi- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno- as_fn_set_status $ac_retval--} # ac_fn_c_compute_int-ac_configure_args_raw=-for ac_arg-do- case $ac_arg in- *\'*)- ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;- esac- as_fn_append ac_configure_args_raw " '$ac_arg'"-done--case $ac_configure_args_raw in- *$as_nl*)- ac_safe_unquote= ;;- *)- ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.- ac_unsafe_a="$ac_unsafe_z#~"- ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"- ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;-esac--cat >config.log <<_ACEOF-This file contains any messages produced by compilers while-running configure, to aid debugging if configure makes a mistake.--It was created by Haskell libarchive-clib package $as_me 3.7.2, which was-generated by GNU Autoconf 2.72. Invocation command line was-- $ $0$ac_configure_args_raw--_ACEOF-exec 5>>config.log-{-cat <<_ASUNAME-## --------- ##-## Platform. ##-## --------- ##--hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`-uname -m = `(uname -m) 2>/dev/null || echo unknown`-uname -r = `(uname -r) 2>/dev/null || echo unknown`-uname -s = `(uname -s) 2>/dev/null || echo unknown`-uname -v = `(uname -v) 2>/dev/null || echo unknown`--/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`-/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`--/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`-/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`-/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`-/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`-/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`-/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`-/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`--_ASUNAME--as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- printf "%s\n" "PATH: $as_dir"- done-IFS=$as_save_IFS--} >&5--cat >&5 <<_ACEOF---## ----------- ##-## Core tests. ##-## ----------- ##--_ACEOF---# Keep a trace of the command line.-# Strip out --no-create and --no-recursion so they do not pile up.-# Strip out --silent because we don't want to record it for future runs.-# Also quote any args containing shell meta-characters.-# Make two passes to allow for proper duplicate-argument suppression.-ac_configure_args=-ac_configure_args0=-ac_configure_args1=-ac_must_keep_next=false-for ac_pass in 1 2-do- for ac_arg- do- case $ac_arg in- -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;- -q | -quiet | --quiet | --quie | --qui | --qu | --q \- | -silent | --silent | --silen | --sile | --sil)- continue ;;- *\'*)- ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;- esac- case $ac_pass in- 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;- 2)- as_fn_append ac_configure_args1 " '$ac_arg'"- if test $ac_must_keep_next = true; then- ac_must_keep_next=false # Got value, back to normal.- else- case $ac_arg in- *=* | --config-cache | -C | -disable-* | --disable-* \- | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \- | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \- | -with-* | --with-* | -without-* | --without-* | --x)- case "$ac_configure_args0 " in- "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;- esac- ;;- -* ) ac_must_keep_next=true ;;- esac- fi- as_fn_append ac_configure_args " '$ac_arg'"- ;;- esac- done-done-{ ac_configure_args0=; unset ac_configure_args0;}-{ ac_configure_args1=; unset ac_configure_args1;}--# When interrupted or exit'd, cleanup temporary files, and complete-# config.log. We remove comments because anyway the quotes in there-# would cause problems or look ugly.-# WARNING: Use '\'' to represent an apostrophe within the trap.-# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.-trap 'exit_status=$?- # Sanitize IFS.- IFS=" "" $as_nl"- # Save into config.log some information that might help in debugging.- {- echo-- printf "%s\n" "## ---------------- ##-## Cache variables. ##-## ---------------- ##"- echo- # The following way of writing the cache mishandles newlines in values,-(- for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do- eval ac_val=\$$ac_var- case $ac_val in #(- *${as_nl}*)- case $ac_var in #(- *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5-printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;- esac- case $ac_var in #(- _ | IFS | as_nl) ;; #(- BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(- *) { eval $ac_var=; unset $ac_var;} ;;- esac ;;- esac- done- (set) 2>&1 |- case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(- *${as_nl}ac_space=\ *)- sed -n \- "s/'\''/'\''\\\\'\'''\''/g;- s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"- ;; #(- *)- sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"- ;;- esac |- sort-)- echo-- printf "%s\n" "## ----------------- ##-## Output variables. ##-## ----------------- ##"- echo- for ac_var in $ac_subst_vars- do- eval ac_val=\$$ac_var- case $ac_val in- *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;- esac- printf "%s\n" "$ac_var='\''$ac_val'\''"- done | sort- echo-- if test -n "$ac_subst_files"; then- printf "%s\n" "## ------------------- ##-## File substitutions. ##-## ------------------- ##"- echo- for ac_var in $ac_subst_files- do- eval ac_val=\$$ac_var- case $ac_val in- *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;- esac- printf "%s\n" "$ac_var='\''$ac_val'\''"- done | sort- echo- fi-- if test -s confdefs.h; then- printf "%s\n" "## ----------- ##-## confdefs.h. ##-## ----------- ##"- echo- cat confdefs.h- echo- fi- test "$ac_signal" != 0 &&- printf "%s\n" "$as_me: caught signal $ac_signal"- printf "%s\n" "$as_me: exit $exit_status"- } >&5- rm -f core *.core core.conftest.* &&- rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&- exit $exit_status-' 0-for ac_signal in 1 2 13 15; do- trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal-done-ac_signal=0--# confdefs.h avoids OS command line length limits that DEFS can exceed.-rm -f -r conftest* confdefs.h--printf "%s\n" "/* confdefs.h */" > confdefs.h--# Predefined preprocessor variables.--printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h--printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h--printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h--printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h--printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h--printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h---# Let the site file select an alternate cache file if it wants to.-# Prefer an explicitly selected file to automatically selected ones.-if test -n "$CONFIG_SITE"; then- ac_site_files="$CONFIG_SITE"-elif test "x$prefix" != xNONE; then- ac_site_files="$prefix/share/config.site $prefix/etc/config.site"-else- ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"-fi--for ac_site_file in $ac_site_files-do- case $ac_site_file in #(- */*) :- ;; #(- *) :- ac_site_file=./$ac_site_file ;;-esac- if test -f "$ac_site_file" && test -r "$ac_site_file"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5-printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}- sed 's/^/| /' "$ac_site_file" >&5- . "$ac_site_file" \- || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5-printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}-as_fn_error $? "failed to load site script $ac_site_file-See 'config.log' for more details" "$LINENO" 5; }- fi-done--if test -r "$cache_file"; then- # Some versions of bash will fail to source /dev/null (special files- # actually), so we avoid doing that. DJGPP emulates it as a regular file.- if test /dev/null != "$cache_file" && test -f "$cache_file"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5-printf "%s\n" "$as_me: loading cache $cache_file" >&6;}- case $cache_file in- [\\/]* | ?:[\\/]* ) . "$cache_file";;- *) . "./$cache_file";;- esac- fi-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5-printf "%s\n" "$as_me: creating cache $cache_file" >&6;}- >$cache_file-fi--# Test code for whether the C compiler supports C89 (global declarations)-ac_c_conftest_c89_globals='-/* Does the compiler advertise C89 conformance?- Do not test the value of __STDC__, because some compilers set it to 0- while being otherwise adequately conformant. */-#if !defined __STDC__-# error "Compiler does not advertise C89 conformance"-#endif--#include <stddef.h>-#include <stdarg.h>-struct stat;-/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */-struct buf { int x; };-struct buf * (*rcsopen) (struct buf *, struct stat *, int);-static char *e (char **p, int i)-{- return p[i];-}-static char *f (char * (*g) (char **, int), char **p, ...)-{- char *s;- va_list v;- va_start (v,p);- s = g (p, va_arg (v,int));- va_end (v);- return s;-}--/* C89 style stringification. */-#define noexpand_stringify(a) #a-const char *stringified = noexpand_stringify(arbitrary+token=sequence);--/* C89 style token pasting. Exercises some of the corner cases that- e.g. old MSVC gets wrong, but not very hard. */-#define noexpand_concat(a,b) a##b-#define expand_concat(a,b) noexpand_concat(a,b)-extern int vA;-extern int vbee;-#define aye A-#define bee B-int *pvA = &expand_concat(v,aye);-int *pvbee = &noexpand_concat(v,bee);--/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has- function prototypes and stuff, but not \xHH hex character constants.- These do not provoke an error unfortunately, instead are silently treated- as an "x". The following induces an error, until -std is added to get- proper ANSI mode. Curiously \x00 != x always comes out true, for an- array size at least. It is necessary to write \x00 == 0 to get something- that is true only with -std. */-int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];--/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters- inside strings and character constants. */-#define FOO(x) '\''x'\''-int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];--int test (int i, double x);-struct s1 {int (*f) (int a);};-struct s2 {int (*f) (double a);};-int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),- int, int);'--# Test code for whether the C compiler supports C89 (body of main).-ac_c_conftest_c89_main='-ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);-'--# Test code for whether the C compiler supports C99 (global declarations)-ac_c_conftest_c99_globals='-/* Does the compiler advertise C99 conformance? */-#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L-# error "Compiler does not advertise C99 conformance"-#endif--// See if C++-style comments work.--#include <stdbool.h>-extern int puts (const char *);-extern int printf (const char *, ...);-extern int dprintf (int, const char *, ...);-extern void *malloc (size_t);-extern void free (void *);--// Check varargs macros. These examples are taken from C99 6.10.3.5.-// dprintf is used instead of fprintf to avoid needing to declare-// FILE and stderr.-#define debug(...) dprintf (2, __VA_ARGS__)-#define showlist(...) puts (#__VA_ARGS__)-#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))-static void-test_varargs_macros (void)-{- int x = 1234;- int y = 5678;- debug ("Flag");- debug ("X = %d\n", x);- showlist (The first, second, and third items.);- report (x>y, "x is %d but y is %d", x, y);-}--// Check long long types.-#define BIG64 18446744073709551615ull-#define BIG32 4294967295ul-#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)-#if !BIG_OK- #error "your preprocessor is broken"-#endif-#if BIG_OK-#else- #error "your preprocessor is broken"-#endif-static long long int bignum = -9223372036854775807LL;-static unsigned long long int ubignum = BIG64;--struct incomplete_array-{- int datasize;- double data[];-};--struct named_init {- int number;- const wchar_t *name;- double average;-};--typedef const char *ccp;--static inline int-test_restrict (ccp restrict text)-{- // Iterate through items via the restricted pointer.- // Also check for declarations in for loops.- for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)- continue;- return 0;-}--// Check varargs and va_copy.-static bool-test_varargs (const char *format, ...)-{- va_list args;- va_start (args, format);- va_list args_copy;- va_copy (args_copy, args);-- const char *str = "";- int number = 0;- float fnumber = 0;-- while (*format)- {- switch (*format++)- {- case '\''s'\'': // string- str = va_arg (args_copy, const char *);- break;- case '\''d'\'': // int- number = va_arg (args_copy, int);- break;- case '\''f'\'': // float- fnumber = va_arg (args_copy, double);- break;- default:- break;- }- }- va_end (args_copy);- va_end (args);-- return *str && number && fnumber;-}-'--# Test code for whether the C compiler supports C99 (body of main).-ac_c_conftest_c99_main='- // Check bool.- _Bool success = false;- success |= (argc != 0);-- // Check restrict.- if (test_restrict ("String literal") == 0)- success = true;- char *restrict newvar = "Another string";-- // Check varargs.- success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);- test_varargs_macros ();-- // Check flexible array members.- struct incomplete_array *ia =- malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));- ia->datasize = 10;- for (int i = 0; i < ia->datasize; ++i)- ia->data[i] = i * 1.234;- // Work around memory leak warnings.- free (ia);-- // Check named initializers.- struct named_init ni = {- .number = 34,- .name = L"Test wide string",- .average = 543.34343,- };-- ni.number = 58;-- int dynamic_array[ni.number];- dynamic_array[0] = argv[0][0];- dynamic_array[ni.number - 1] = 543;-- // work around unused variable warnings- ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''- || dynamic_array[ni.number - 1] != 543);-'--# Test code for whether the C compiler supports C11 (global declarations)-ac_c_conftest_c11_globals='-/* Does the compiler advertise C11 conformance? */-#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L-# error "Compiler does not advertise C11 conformance"-#endif--// Check _Alignas.-char _Alignas (double) aligned_as_double;-char _Alignas (0) no_special_alignment;-extern char aligned_as_int;-char _Alignas (0) _Alignas (int) aligned_as_int;--// Check _Alignof.-enum-{- int_alignment = _Alignof (int),- int_array_alignment = _Alignof (int[100]),- char_alignment = _Alignof (char)-};-_Static_assert (0 < -_Alignof (int), "_Alignof is signed");--// Check _Noreturn.-int _Noreturn does_not_return (void) { for (;;) continue; }--// Check _Static_assert.-struct test_static_assert-{- int x;- _Static_assert (sizeof (int) <= sizeof (long int),- "_Static_assert does not work in struct");- long int y;-};--// Check UTF-8 literals.-#define u8 syntax error!-char const utf8_literal[] = u8"happens to be ASCII" "another string";--// Check duplicate typedefs.-typedef long *long_ptr;-typedef long int *long_ptr;-typedef long_ptr long_ptr;--// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.-struct anonymous-{- union {- struct { int i; int j; };- struct { int k; long int l; } w;- };- int m;-} v1;-'--# Test code for whether the C compiler supports C11 (body of main).-ac_c_conftest_c11_main='- _Static_assert ((offsetof (struct anonymous, i)- == offsetof (struct anonymous, w.k)),- "Anonymous union alignment botch");- v1.i = 2;- v1.w.k = 5;- ok |= v1.i != 5;-'--# Test code for whether the C compiler supports C11 (complete).-ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}-${ac_c_conftest_c99_globals}-${ac_c_conftest_c11_globals}--int-main (int argc, char **argv)-{- int ok = 0;- ${ac_c_conftest_c89_main}- ${ac_c_conftest_c99_main}- ${ac_c_conftest_c11_main}- return ok;-}-"--# Test code for whether the C compiler supports C99 (complete).-ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}-${ac_c_conftest_c99_globals}--int-main (int argc, char **argv)-{- int ok = 0;- ${ac_c_conftest_c89_main}- ${ac_c_conftest_c99_main}- return ok;-}-"--# Test code for whether the C compiler supports C89 (complete).-ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}--int-main (int argc, char **argv)-{- int ok = 0;- ${ac_c_conftest_c89_main}- return ok;-}-"--as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"-as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"-as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"-as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"-as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"-as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"-as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"-as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"-as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"-as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"-as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"-as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"-as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"--# Auxiliary files required by this configure script.-ac_aux_files="config.rpath install-sh ltmain.sh config.guess config.sub"--# Locations in which to look for auxiliary files.-ac_aux_dir_candidates="${srcdir}/build/autoconf"--# Search for a directory containing all of the required auxiliary files,-# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.-# If we don't find one directory that contains all the files we need,-# we report the set of missing files from the *first* directory in-# $ac_aux_dir_candidates and give up.-ac_missing_aux_files=""-ac_first_candidate=:-printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-as_found=false-for as_dir in $ac_aux_dir_candidates-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- as_found=:-- printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5- ac_aux_dir_found=yes- ac_install_sh=- for ac_aux in $ac_aux_files- do- # As a special case, if "install-sh" is required, that requirement- # can be satisfied by any of "install-sh", "install.sh", or "shtool",- # and $ac_install_sh is set appropriately for whichever one is found.- if test x"$ac_aux" = x"install-sh"- then- if test -f "${as_dir}install-sh"; then- printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5- ac_install_sh="${as_dir}install-sh -c"- elif test -f "${as_dir}install.sh"; then- printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5- ac_install_sh="${as_dir}install.sh -c"- elif test -f "${as_dir}shtool"; then- printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5- ac_install_sh="${as_dir}shtool install -c"- else- ac_aux_dir_found=no- if $ac_first_candidate; then- ac_missing_aux_files="${ac_missing_aux_files} install-sh"- else- break- fi- fi- else- if test -f "${as_dir}${ac_aux}"; then- printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5- else- ac_aux_dir_found=no- if $ac_first_candidate; then- ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"- else- break- fi- fi- fi- done- if test "$ac_aux_dir_found" = yes; then- ac_aux_dir="$as_dir"- break- fi- ac_first_candidate=false-- as_found=false-done-IFS=$as_save_IFS-if $as_found-then :--else case e in #(- e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;-esac-fi---# These three variables are undocumented and unsupported,-# and are intended to be withdrawn in a future Autoconf release.-# They can cause serious problems if a builder's source tree is in a directory-# whose full name contains unusual characters.-if test -f "${ac_aux_dir}config.guess"; then- ac_config_guess="$SHELL ${ac_aux_dir}config.guess"-fi-if test -f "${ac_aux_dir}config.sub"; then- ac_config_sub="$SHELL ${ac_aux_dir}config.sub"-fi-if test -f "$ac_aux_dir/configure"; then- ac_configure="$SHELL ${ac_aux_dir}configure"-fi--# Check that the precious variables saved in the cache have kept the same-# value.-ac_cache_corrupted=false-for ac_var in $ac_precious_vars; do- eval ac_old_set=\$ac_cv_env_${ac_var}_set- eval ac_new_set=\$ac_env_${ac_var}_set- eval ac_old_val=\$ac_cv_env_${ac_var}_value- eval ac_new_val=\$ac_env_${ac_var}_value- case $ac_old_set,$ac_new_set in- set,)- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5-printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}- ac_cache_corrupted=: ;;- ,set)- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5-printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}- ac_cache_corrupted=: ;;- ,);;- *)- if test "x$ac_old_val" != "x$ac_new_val"; then- # differences in whitespace do not lead to failure.- ac_old_val_w=`echo x $ac_old_val`- ac_new_val_w=`echo x $ac_new_val`- if test "$ac_old_val_w" != "$ac_new_val_w"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5-printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}- ac_cache_corrupted=:- else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5-printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}- eval $ac_var=\$ac_old_val- fi- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5-printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5-printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}- fi;;- esac- # Pass precious variables to config.status.- if test "$ac_new_set" = set; then- case $ac_new_val in- *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;- *) ac_arg=$ac_var=$ac_new_val ;;- esac- case " $ac_configure_args " in- *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.- *) as_fn_append ac_configure_args " '$ac_arg'" ;;- esac- fi-done-if $ac_cache_corrupted; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5-printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5-printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}- as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'- and start over" "$LINENO" 5-fi-## -------------------- ##-## Main body of script. ##-## -------------------- ##--ac_ext=c-ac_cpp='$CPP $CPPFLAGS'-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'-ac_compiler_gnu=$ac_cv_c_compiler_gnu----#-# Now starts the "real" configure script.-#--# Make sure the srcdir contains "libarchive" directory--# Use auxiliary subscripts from this subdirectory (cleans up root)--# M4 scripts---# Libtool's "interface version" can be computed from the libarchive version.--# Libtool interface version bumps on any API change, so increments-# whenever libarchive minor version does.-ARCHIVE_MINOR=$(( (3008006 / 1000) % 1000 ))-# Libarchive 2.7 == libtool interface 9 = 2 + 7-# Libarchive 2.8 == libtool interface 10 = 2 + 8-# Libarchive 2.9 == libtool interface 11 = 2 + 9-# Libarchive 3.0 == libtool interface 12-# Libarchive 3.1 == libtool interface 13-ARCHIVE_INTERFACE=`echo $((13 + ${ARCHIVE_MINOR}))`-# Libarchive revision is bumped on any source change === libtool revision-ARCHIVE_REVISION=$(( 3008006 % 1000 ))-# Libarchive minor is bumped on any interface addition === libtool age-ARCHIVE_LIBTOOL_VERSION=$ARCHIVE_INTERFACE:$ARCHIVE_REVISION:$ARCHIVE_MINOR--# Stick the version numbers into config.h--printf "%s\n" "#define __LIBARCHIVE_CONFIG_H_INCLUDED 1" >>confdefs.h---printf "%s\n" "#define LIBARCHIVE_VERSION_STRING \"3.8.6\"" >>confdefs.h---printf "%s\n" "#define LIBARCHIVE_VERSION_NUMBER \"3008006\"" >>confdefs.h---printf "%s\n" "#define BSDCPIO_VERSION_STRING \"3.8.6\"" >>confdefs.h---printf "%s\n" "#define BSDTAR_VERSION_STRING \"3.8.6\"" >>confdefs.h---printf "%s\n" "#define BSDCAT_VERSION_STRING \"3.8.6\"" >>confdefs.h---printf "%s\n" "#define BSDUNZIP_VERSION_STRING \"3.8.6\"" >>confdefs.h---# The shell variables here must be the same as the AC_SUBST() variables-# below, but the shell variable names apparently cannot be the same as-# the m4 macro names above. Why? Ask autoconf.-BSDCPIO_VERSION_STRING=3.8.6-BSDTAR_VERSION_STRING=3.8.6-BSDCAT_VERSION_STRING=3.8.6-BSDUNZIP_VERSION_STRING=3.8.6-LIBARCHIVE_VERSION_STRING=3.8.6-LIBARCHIVE_VERSION_NUMBER=3008006--# Substitute the above version numbers into the various files below.-# Yes, I believe this is the fourth time we define what are essentially-# the same symbols. Why? Ask autoconf.---------ac_config_headers="$ac_config_headers c/config.h"---# Check for host type---- # Make sure we can run config.sub.-$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||- as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5--{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5-printf %s "checking build system type... " >&6; }-if test ${ac_cv_build+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) ac_build_alias=$build_alias-test "x$ac_build_alias" = x &&- ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`-test "x$ac_build_alias" = x &&- as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5-ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||- as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5- ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5-printf "%s\n" "$ac_cv_build" >&6; }-case $ac_cv_build in-*-*-*) ;;-*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;-esac-build=$ac_cv_build-ac_save_IFS=$IFS; IFS='-'-set x $ac_cv_build-shift-build_cpu=$1-build_vendor=$2-shift; shift-# Remember, the first character of IFS is used to create $*,-# except with old shells:-build_os=$*-IFS=$ac_save_IFS-case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac---{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5-printf %s "checking host system type... " >&6; }-if test ${ac_cv_host+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test "x$host_alias" = x; then- ac_cv_host=$ac_cv_build-else- ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||- as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5-fi- ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5-printf "%s\n" "$ac_cv_host" >&6; }-case $ac_cv_host in-*-*-*) ;;-*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;-esac-host=$ac_cv_host-ac_save_IFS=$IFS; IFS='-'-set x $ac_cv_host-shift-host_cpu=$1-host_vendor=$2-shift; shift-# Remember, the first character of IFS is used to create $*,-# except with old shells:-host_os=$*-IFS=$ac_save_IFS-case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac----inc_windows_files=no-inc_cygwin_files=no-case "$host_os" in- *mingw* ) inc_windows_files=yes ;;- *cygwin* | *msys*) inc_cygwin_files=yes ;;-esac- if test $inc_windows_files = yes; then- INC_WINDOWS_FILES_TRUE=- INC_WINDOWS_FILES_FALSE='#'-else- INC_WINDOWS_FILES_TRUE='#'- INC_WINDOWS_FILES_FALSE=-fi-- if test $inc_cygwin_files = yes; then- INC_CYGWIN_FILES_TRUE=- INC_CYGWIN_FILES_FALSE='#'-else- INC_CYGWIN_FILES_TRUE='#'- INC_CYGWIN_FILES_FALSE=-fi---# Checks for programs.----------ac_ext=c-ac_cpp='$CPP $CPPFLAGS'-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'-ac_compiler_gnu=$ac_cv_c_compiler_gnu-if test -n "$ac_tool_prefix"; then- # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.-set dummy ${ac_tool_prefix}gcc; ac_word=$2-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5-printf %s "checking for $ac_word... " >&6; }-if test ${ac_cv_prog_CC+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test -n "$CC"; then- ac_cv_prog_CC="$CC" # Let the user override the test.-else-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_exec_ext in '' $ac_executable_extensions; do- if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then- ac_cv_prog_CC="${ac_tool_prefix}gcc"- printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5- break 2- fi-done- done-IFS=$as_save_IFS--fi ;;-esac-fi-CC=$ac_cv_prog_CC-if test -n "$CC"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5-printf "%s\n" "$CC" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-fi---fi-if test -z "$ac_cv_prog_CC"; then- ac_ct_CC=$CC- # Extract the first word of "gcc", so it can be a program name with args.-set dummy gcc; ac_word=$2-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5-printf %s "checking for $ac_word... " >&6; }-if test ${ac_cv_prog_ac_ct_CC+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test -n "$ac_ct_CC"; then- ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.-else-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_exec_ext in '' $ac_executable_extensions; do- if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then- ac_cv_prog_ac_ct_CC="gcc"- printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5- break 2- fi-done- done-IFS=$as_save_IFS--fi ;;-esac-fi-ac_ct_CC=$ac_cv_prog_ac_ct_CC-if test -n "$ac_ct_CC"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5-printf "%s\n" "$ac_ct_CC" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-fi-- if test "x$ac_ct_CC" = x; then- CC=""- else- case $cross_compiling:$ac_tool_warned in-yes:)-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5-printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}-ac_tool_warned=yes ;;-esac- CC=$ac_ct_CC- fi-else- CC="$ac_cv_prog_CC"-fi--if test -z "$CC"; then- if test -n "$ac_tool_prefix"; then- # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.-set dummy ${ac_tool_prefix}cc; ac_word=$2-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5-printf %s "checking for $ac_word... " >&6; }-if test ${ac_cv_prog_CC+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test -n "$CC"; then- ac_cv_prog_CC="$CC" # Let the user override the test.-else-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_exec_ext in '' $ac_executable_extensions; do- if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then- ac_cv_prog_CC="${ac_tool_prefix}cc"- printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5- break 2- fi-done- done-IFS=$as_save_IFS--fi ;;-esac-fi-CC=$ac_cv_prog_CC-if test -n "$CC"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5-printf "%s\n" "$CC" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-fi--- fi-fi-if test -z "$CC"; then- # Extract the first word of "cc", so it can be a program name with args.-set dummy cc; ac_word=$2-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5-printf %s "checking for $ac_word... " >&6; }-if test ${ac_cv_prog_CC+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test -n "$CC"; then- ac_cv_prog_CC="$CC" # Let the user override the test.-else- ac_prog_rejected=no-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_exec_ext in '' $ac_executable_extensions; do- if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then- if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then- ac_prog_rejected=yes- continue- fi- ac_cv_prog_CC="cc"- printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5- break 2- fi-done- done-IFS=$as_save_IFS--if test $ac_prog_rejected = yes; then- # We found a bogon in the path, so make sure we never use it.- set dummy $ac_cv_prog_CC- shift- if test $# != 0; then- # We chose a different compiler from the bogus one.- # However, it has the same basename, so the bogon will be chosen- # first if we set CC to just the basename; use the full file name.- shift- ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"- fi-fi-fi ;;-esac-fi-CC=$ac_cv_prog_CC-if test -n "$CC"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5-printf "%s\n" "$CC" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-fi---fi-if test -z "$CC"; then- if test -n "$ac_tool_prefix"; then- for ac_prog in cl.exe- do- # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.-set dummy $ac_tool_prefix$ac_prog; ac_word=$2-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5-printf %s "checking for $ac_word... " >&6; }-if test ${ac_cv_prog_CC+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test -n "$CC"; then- ac_cv_prog_CC="$CC" # Let the user override the test.-else-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_exec_ext in '' $ac_executable_extensions; do- if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then- ac_cv_prog_CC="$ac_tool_prefix$ac_prog"- printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5- break 2- fi-done- done-IFS=$as_save_IFS--fi ;;-esac-fi-CC=$ac_cv_prog_CC-if test -n "$CC"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5-printf "%s\n" "$CC" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-fi--- test -n "$CC" && break- done-fi-if test -z "$CC"; then- ac_ct_CC=$CC- for ac_prog in cl.exe-do- # Extract the first word of "$ac_prog", so it can be a program name with args.-set dummy $ac_prog; ac_word=$2-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5-printf %s "checking for $ac_word... " >&6; }-if test ${ac_cv_prog_ac_ct_CC+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test -n "$ac_ct_CC"; then- ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.-else-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_exec_ext in '' $ac_executable_extensions; do- if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then- ac_cv_prog_ac_ct_CC="$ac_prog"- printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5- break 2- fi-done- done-IFS=$as_save_IFS--fi ;;-esac-fi-ac_ct_CC=$ac_cv_prog_ac_ct_CC-if test -n "$ac_ct_CC"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5-printf "%s\n" "$ac_ct_CC" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-fi--- test -n "$ac_ct_CC" && break-done-- if test "x$ac_ct_CC" = x; then- CC=""- else- case $cross_compiling:$ac_tool_warned in-yes:)-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5-printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}-ac_tool_warned=yes ;;-esac- CC=$ac_ct_CC- fi-fi--fi-if test -z "$CC"; then- if test -n "$ac_tool_prefix"; then- # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.-set dummy ${ac_tool_prefix}clang; ac_word=$2-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5-printf %s "checking for $ac_word... " >&6; }-if test ${ac_cv_prog_CC+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test -n "$CC"; then- ac_cv_prog_CC="$CC" # Let the user override the test.-else-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_exec_ext in '' $ac_executable_extensions; do- if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then- ac_cv_prog_CC="${ac_tool_prefix}clang"- printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5- break 2- fi-done- done-IFS=$as_save_IFS--fi ;;-esac-fi-CC=$ac_cv_prog_CC-if test -n "$CC"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5-printf "%s\n" "$CC" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-fi---fi-if test -z "$ac_cv_prog_CC"; then- ac_ct_CC=$CC- # Extract the first word of "clang", so it can be a program name with args.-set dummy clang; ac_word=$2-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5-printf %s "checking for $ac_word... " >&6; }-if test ${ac_cv_prog_ac_ct_CC+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test -n "$ac_ct_CC"; then- ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.-else-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_exec_ext in '' $ac_executable_extensions; do- if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then- ac_cv_prog_ac_ct_CC="clang"- printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5- break 2- fi-done- done-IFS=$as_save_IFS--fi ;;-esac-fi-ac_ct_CC=$ac_cv_prog_ac_ct_CC-if test -n "$ac_ct_CC"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5-printf "%s\n" "$ac_ct_CC" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-fi-- if test "x$ac_ct_CC" = x; then- CC=""- else- case $cross_compiling:$ac_tool_warned in-yes:)-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5-printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}-ac_tool_warned=yes ;;-esac- CC=$ac_ct_CC- fi-else- CC="$ac_cv_prog_CC"-fi--fi---test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5-printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}-as_fn_error $? "no acceptable C compiler found in \$PATH-See 'config.log' for more details" "$LINENO" 5; }--# Provide some information about the compiler.-printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5-set X $ac_compile-ac_compiler=$2-for ac_option in --version -v -V -qversion -version; do- { { ac_try="$ac_compiler $ac_option >&5"-case "(($ac_try" in- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;- *) ac_try_echo=$ac_try;;-esac-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""-printf "%s\n" "$ac_try_echo"; } >&5- (eval "$ac_compiler $ac_option >&5") 2>conftest.err- ac_status=$?- if test -s conftest.err; then- sed '10a\-... rest of stderr output deleted ...- 10q' conftest.err >conftest.er1- cat conftest.er1 >&5- fi- rm -f conftest.er1 conftest.err- printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5- test $ac_status = 0; }-done--cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */--int-main (void)-{-- ;- return 0;-}-_ACEOF-ac_clean_files_save=$ac_clean_files-ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"-# Try to create an executable without -o first, disregard a.out.-# It will help us diagnose broken compilers, and finding out an intuition-# of exeext.-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5-printf %s "checking whether the C compiler works... " >&6; }-ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`--# The possible output files:-ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"--ac_rmfiles=-for ac_file in $ac_files-do- case $ac_file in- *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;- * ) ac_rmfiles="$ac_rmfiles $ac_file";;- esac-done-rm -f $ac_rmfiles--if { { ac_try="$ac_link_default"-case "(($ac_try" in- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;- *) ac_try_echo=$ac_try;;-esac-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""-printf "%s\n" "$ac_try_echo"; } >&5- (eval "$ac_link_default") 2>&5- ac_status=$?- printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5- test $ac_status = 0; }-then :- # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.-# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'-# in a Makefile. We should not override ac_cv_exeext if it was cached,-# so that the user can short-circuit this test for compilers unknown to-# Autoconf.-for ac_file in $ac_files ''-do- test -f "$ac_file" || continue- case $ac_file in- *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )- ;;- [ab].out )- # We found the default executable, but exeext='' is most- # certainly right.- break;;- *.* )- if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;- then :; else- ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`- fi- # We set ac_cv_exeext here because the later test for it is not- # safe: cross compilers may not add the suffix if given an '-o'- # argument, so we may need to know it at that point already.- # Even if this section looks crufty: it has the advantage of- # actually working.- break;;- * )- break;;- esac-done-test "$ac_cv_exeext" = no && ac_cv_exeext=--else case e in #(- e) ac_file='' ;;-esac-fi-if test -z "$ac_file"-then :- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-printf "%s\n" "$as_me: failed program was:" >&5-sed 's/^/| /' conftest.$ac_ext >&5--{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5-printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}-as_fn_error 77 "C compiler cannot create executables-See 'config.log' for more details" "$LINENO" 5; }-else case e in #(- e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5-printf "%s\n" "yes" >&6; } ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5-printf %s "checking for C compiler default output file name... " >&6; }-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5-printf "%s\n" "$ac_file" >&6; }-ac_exeext=$ac_cv_exeext--rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out-ac_clean_files=$ac_clean_files_save-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5-printf %s "checking for suffix of executables... " >&6; }-if { { ac_try="$ac_link"-case "(($ac_try" in- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;- *) ac_try_echo=$ac_try;;-esac-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""-printf "%s\n" "$ac_try_echo"; } >&5- (eval "$ac_link") 2>&5- ac_status=$?- printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5- test $ac_status = 0; }-then :- # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)-# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will-# work properly (i.e., refer to 'conftest.exe'), while it won't with-# 'rm'.-for ac_file in conftest.exe conftest conftest.*; do- test -f "$ac_file" || continue- case $ac_file in- *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;- *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`- break;;- * ) break;;- esac-done-else case e in #(- e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5-printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}-as_fn_error $? "cannot compute suffix of executables: cannot compile and link-See 'config.log' for more details" "$LINENO" 5; } ;;-esac-fi-rm -f conftest conftest$ac_cv_exeext-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5-printf "%s\n" "$ac_cv_exeext" >&6; }--rm -f conftest.$ac_ext-EXEEXT=$ac_cv_exeext-ac_exeext=$EXEEXT-cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */-#include <stdio.h>-int-main (void)-{-FILE *f = fopen ("conftest.out", "w");- if (!f)- return 1;- return ferror (f) || fclose (f) != 0;-- ;- return 0;-}-_ACEOF-ac_clean_files="$ac_clean_files conftest.out"-# Check that the compiler produces executables we can run. If not, either-# the compiler is broken, or we cross compile.-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5-printf %s "checking whether we are cross compiling... " >&6; }-if test "$cross_compiling" != yes; then- { { ac_try="$ac_link"-case "(($ac_try" in- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;- *) ac_try_echo=$ac_try;;-esac-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""-printf "%s\n" "$ac_try_echo"; } >&5- (eval "$ac_link") 2>&5- ac_status=$?- printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5- test $ac_status = 0; }- if { ac_try='./conftest$ac_cv_exeext'- { { case "(($ac_try" in- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;- *) ac_try_echo=$ac_try;;-esac-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""-printf "%s\n" "$ac_try_echo"; } >&5- (eval "$ac_try") 2>&5- ac_status=$?- printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5- test $ac_status = 0; }; }; then- cross_compiling=no- else- if test "$cross_compiling" = maybe; then- cross_compiling=yes- else- { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5-printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}-as_fn_error 77 "cannot run C compiled programs.-If you meant to cross compile, use '--host'.-See 'config.log' for more details" "$LINENO" 5; }- fi- fi-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5-printf "%s\n" "$cross_compiling" >&6; }--rm -f conftest.$ac_ext conftest$ac_cv_exeext \- conftest.o conftest.obj conftest.out-ac_clean_files=$ac_clean_files_save-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5-printf %s "checking for suffix of object files... " >&6; }-if test ${ac_cv_objext+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */--int-main (void)-{-- ;- return 0;-}-_ACEOF-rm -f conftest.o conftest.obj-if { { ac_try="$ac_compile"-case "(($ac_try" in- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;- *) ac_try_echo=$ac_try;;-esac-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""-printf "%s\n" "$ac_try_echo"; } >&5- (eval "$ac_compile") 2>&5- ac_status=$?- printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5- test $ac_status = 0; }-then :- for ac_file in conftest.o conftest.obj conftest.*; do- test -f "$ac_file" || continue;- case $ac_file in- *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;- *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`- break;;- esac-done-else case e in #(- e) printf "%s\n" "$as_me: failed program was:" >&5-sed 's/^/| /' conftest.$ac_ext >&5--{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5-printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}-as_fn_error $? "cannot compute suffix of object files: cannot compile-See 'config.log' for more details" "$LINENO" 5; } ;;-esac-fi-rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5-printf "%s\n" "$ac_cv_objext" >&6; }-OBJEXT=$ac_cv_objext-ac_objext=$OBJEXT-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5-printf %s "checking whether the compiler supports GNU C... " >&6; }-if test ${ac_cv_c_compiler_gnu+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */--int-main (void)-{-#ifndef __GNUC__- choke me-#endif-- ;- return 0;-}-_ACEOF-if ac_fn_c_try_compile "$LINENO"-then :- ac_compiler_gnu=yes-else case e in #(- e) ac_compiler_gnu=no ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext-ac_cv_c_compiler_gnu=$ac_compiler_gnu- ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5-printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }-ac_compiler_gnu=$ac_cv_c_compiler_gnu--if test $ac_compiler_gnu = yes; then- GCC=yes-else- GCC=-fi-ac_test_CFLAGS=${CFLAGS+y}-ac_save_CFLAGS=$CFLAGS-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5-printf %s "checking whether $CC accepts -g... " >&6; }-if test ${ac_cv_prog_cc_g+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) ac_save_c_werror_flag=$ac_c_werror_flag- ac_c_werror_flag=yes- ac_cv_prog_cc_g=no- CFLAGS="-g"- cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */--int-main (void)-{-- ;- return 0;-}-_ACEOF-if ac_fn_c_try_compile "$LINENO"-then :- ac_cv_prog_cc_g=yes-else case e in #(- e) CFLAGS=""- cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */--int-main (void)-{-- ;- return 0;-}-_ACEOF-if ac_fn_c_try_compile "$LINENO"-then :--else case e in #(- e) ac_c_werror_flag=$ac_save_c_werror_flag- CFLAGS="-g"- cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */--int-main (void)-{-- ;- return 0;-}-_ACEOF-if ac_fn_c_try_compile "$LINENO"-then :- ac_cv_prog_cc_g=yes-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext- ac_c_werror_flag=$ac_save_c_werror_flag ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5-printf "%s\n" "$ac_cv_prog_cc_g" >&6; }-if test $ac_test_CFLAGS; then- CFLAGS=$ac_save_CFLAGS-elif test $ac_cv_prog_cc_g = yes; then- if test "$GCC" = yes; then- CFLAGS="-g -O2"- else- CFLAGS="-g"- fi-else- if test "$GCC" = yes; then- CFLAGS="-O2"- else- CFLAGS=- fi-fi-ac_prog_cc_stdc=no-if test x$ac_prog_cc_stdc = xno-then :- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5-printf %s "checking for $CC option to enable C11 features... " >&6; }-if test ${ac_cv_prog_cc_c11+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) ac_cv_prog_cc_c11=no-ac_save_CC=$CC-cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */-$ac_c_conftest_c11_program-_ACEOF-for ac_arg in '' -std=gnu11-do- CC="$ac_save_CC $ac_arg"- if ac_fn_c_try_compile "$LINENO"-then :- ac_cv_prog_cc_c11=$ac_arg-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam- test "x$ac_cv_prog_cc_c11" != "xno" && break-done-rm -f conftest.$ac_ext-CC=$ac_save_CC ;;-esac-fi--if test "x$ac_cv_prog_cc_c11" = xno-then :- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5-printf "%s\n" "unsupported" >&6; }-else case e in #(- e) if test "x$ac_cv_prog_cc_c11" = x-then :- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5-printf "%s\n" "none needed" >&6; }-else case e in #(- e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5-printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }- CC="$CC $ac_cv_prog_cc_c11" ;;-esac-fi- ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11- ac_prog_cc_stdc=c11 ;;-esac-fi-fi-if test x$ac_prog_cc_stdc = xno-then :- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5-printf %s "checking for $CC option to enable C99 features... " >&6; }-if test ${ac_cv_prog_cc_c99+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) ac_cv_prog_cc_c99=no-ac_save_CC=$CC-cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */-$ac_c_conftest_c99_program-_ACEOF-for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=-do- CC="$ac_save_CC $ac_arg"- if ac_fn_c_try_compile "$LINENO"-then :- ac_cv_prog_cc_c99=$ac_arg-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam- test "x$ac_cv_prog_cc_c99" != "xno" && break-done-rm -f conftest.$ac_ext-CC=$ac_save_CC ;;-esac-fi--if test "x$ac_cv_prog_cc_c99" = xno-then :- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5-printf "%s\n" "unsupported" >&6; }-else case e in #(- e) if test "x$ac_cv_prog_cc_c99" = x-then :- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5-printf "%s\n" "none needed" >&6; }-else case e in #(- e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5-printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }- CC="$CC $ac_cv_prog_cc_c99" ;;-esac-fi- ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99- ac_prog_cc_stdc=c99 ;;-esac-fi-fi-if test x$ac_prog_cc_stdc = xno-then :- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5-printf %s "checking for $CC option to enable C89 features... " >&6; }-if test ${ac_cv_prog_cc_c89+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) ac_cv_prog_cc_c89=no-ac_save_CC=$CC-cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */-$ac_c_conftest_c89_program-_ACEOF-for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"-do- CC="$ac_save_CC $ac_arg"- if ac_fn_c_try_compile "$LINENO"-then :- ac_cv_prog_cc_c89=$ac_arg-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam- test "x$ac_cv_prog_cc_c89" != "xno" && break-done-rm -f conftest.$ac_ext-CC=$ac_save_CC ;;-esac-fi--if test "x$ac_cv_prog_cc_c89" = xno-then :- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5-printf "%s\n" "unsupported" >&6; }-else case e in #(- e) if test "x$ac_cv_prog_cc_c89" = x-then :- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5-printf "%s\n" "none needed" >&6; }-else case e in #(- e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5-printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }- CC="$CC $ac_cv_prog_cc_c89" ;;-esac-fi- ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89- ac_prog_cc_stdc=c89 ;;-esac-fi-fi--ac_ext=c-ac_cpp='$CPP $CPPFLAGS'-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'-ac_compiler_gnu=$ac_cv_c_compiler_gnu---ac_ext=c-ac_cpp='$CPP $CPPFLAGS'-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'-ac_compiler_gnu=$ac_cv_c_compiler_gnu-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5-printf %s "checking how to run the C preprocessor... " >&6; }-# On Suns, sometimes $CPP names a directory.-if test -n "$CPP" && test -d "$CPP"; then- CPP=-fi-if test -z "$CPP"; then- if test ${ac_cv_prog_CPP+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) # Double quotes because $CC needs to be expanded- for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp- do- ac_preproc_ok=false-for ac_c_preproc_warn_flag in '' yes-do- # Use a header file that comes with gcc, so configuring glibc- # with a fresh cross-compiler works.- # On the NeXT, cc -E runs the code through the compiler's parser,- # not just through cpp. "Syntax error" is here to catch this case.- cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */-#include <limits.h>- Syntax error-_ACEOF-if ac_fn_c_try_cpp "$LINENO"-then :--else case e in #(- e) # Broken: fails on valid input.-continue ;;-esac-fi-rm -f conftest.err conftest.i conftest.$ac_ext-- # OK, works on sane cases. Now check whether nonexistent headers- # can be detected and how.- cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */-#include <ac_nonexistent.h>-_ACEOF-if ac_fn_c_try_cpp "$LINENO"-then :- # Broken: success on invalid input.-continue-else case e in #(- e) # Passes both tests.-ac_preproc_ok=:-break ;;-esac-fi-rm -f conftest.err conftest.i conftest.$ac_ext--done-# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.-rm -f conftest.i conftest.err conftest.$ac_ext-if $ac_preproc_ok-then :- break-fi-- done- ac_cv_prog_CPP=$CPP- ;;-esac-fi- CPP=$ac_cv_prog_CPP-else- ac_cv_prog_CPP=$CPP-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5-printf "%s\n" "$CPP" >&6; }-ac_preproc_ok=false-for ac_c_preproc_warn_flag in '' yes-do- # Use a header file that comes with gcc, so configuring glibc- # with a fresh cross-compiler works.- # On the NeXT, cc -E runs the code through the compiler's parser,- # not just through cpp. "Syntax error" is here to catch this case.- cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */-#include <limits.h>- Syntax error-_ACEOF-if ac_fn_c_try_cpp "$LINENO"-then :--else case e in #(- e) # Broken: fails on valid input.-continue ;;-esac-fi-rm -f conftest.err conftest.i conftest.$ac_ext-- # OK, works on sane cases. Now check whether nonexistent headers- # can be detected and how.- cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */-#include <ac_nonexistent.h>-_ACEOF-if ac_fn_c_try_cpp "$LINENO"-then :- # Broken: success on invalid input.-continue-else case e in #(- e) # Passes both tests.-ac_preproc_ok=:-break ;;-esac-fi-rm -f conftest.err conftest.i conftest.$ac_ext--done-# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.-rm -f conftest.i conftest.err conftest.$ac_ext-if $ac_preproc_ok-then :--else case e in #(- e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5-printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}-as_fn_error $? "C preprocessor \"$CPP\" fails sanity check-See 'config.log' for more details" "$LINENO" 5; } ;;-esac-fi--ac_ext=c-ac_cpp='$CPP $CPPFLAGS'-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'-ac_compiler_gnu=$ac_cv_c_compiler_gnu---ac_header= ac_cache=-for ac_item in $ac_header_c_list-do- if test $ac_cache; then- ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"- if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then- printf "%s\n" "#define $ac_item 1" >> confdefs.h- fi- ac_header= ac_cache=- elif test $ac_header; then- ac_cache=$ac_item- else- ac_header=$ac_item- fi-done---------if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes-then :--printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h--fi------- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5-printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }-if test ${ac_cv_safe_to_define___extensions__+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */--# define __EXTENSIONS__ 1- $ac_includes_default-int-main (void)-{-- ;- return 0;-}-_ACEOF-if ac_fn_c_try_compile "$LINENO"-then :- ac_cv_safe_to_define___extensions__=yes-else case e in #(- e) ac_cv_safe_to_define___extensions__=no ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5-printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }-- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5-printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }-if test ${ac_cv_should_define__xopen_source+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) ac_cv_should_define__xopen_source=no- if test $ac_cv_header_wchar_h = yes-then :- cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */-- #include <wchar.h>- mbstate_t x;-int-main (void)-{-- ;- return 0;-}-_ACEOF-if ac_fn_c_try_compile "$LINENO"-then :--else case e in #(- e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */-- #define _XOPEN_SOURCE 500- #include <wchar.h>- mbstate_t x;-int-main (void)-{-- ;- return 0;-}-_ACEOF-if ac_fn_c_try_compile "$LINENO"-then :- ac_cv_should_define__xopen_source=yes-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext-fi ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5-printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }-- printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h-- printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h-- printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h-- printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h-- printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h-- printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h-- printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h-- printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h-- printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h-- printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h-- printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h-- printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h-- printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h-- printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h-- printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h-- printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h-- if test $ac_cv_header_minix_config_h = yes-then :- MINIX=yes- printf "%s\n" "#define _MINIX 1" >>confdefs.h-- printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h-- printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h--else case e in #(- e) MINIX= ;;-esac-fi- if test $ac_cv_safe_to_define___extensions__ = yes-then :- printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h--fi- if test $ac_cv_should_define__xopen_source = yes-then :- printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h--fi----case `pwd` in- *\ * | *\ *)- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5-printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;-esac----macro_version='2.5.4'-macro_revision='2.5.4'---------------ltmain=$ac_aux_dir/ltmain.sh--# Backslashify metacharacters that are still active within-# double-quoted strings.-sed_quote_subst='s/\(["`$\\]\)/\\\1/g'--# Same as above, but do not quote variable references.-double_quote_subst='s/\(["`\\]\)/\\\1/g'--# Sed substitution to delay expansion of an escaped shell variable in a-# double_quote_subst'ed string.-delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'--# Sed substitution to delay expansion of an escaped single quote.-delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'--# Sed substitution to avoid accidental globbing in evaled expressions-no_glob_subst='s/\*/\\\*/g'--ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'-ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO-ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO--{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5-printf %s "checking how to print strings... " >&6; }-# Test print first, because it will be a builtin if present.-if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \- test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then- ECHO='print -r --'-elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then- ECHO='printf %s\n'-else- # Use this function as a fallback that always works.- func_fallback_echo ()- {- eval 'cat <<_LTECHO_EOF-$1-_LTECHO_EOF'- }- ECHO='func_fallback_echo'-fi--# func_echo_all arg...-# Invoke $ECHO with all args, space-separated.-func_echo_all ()-{- $ECHO ""-}--case $ECHO in- printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5-printf "%s\n" "printf" >&6; } ;;- print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5-printf "%s\n" "print -r" >&6; } ;;- *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5-printf "%s\n" "cat" >&6; } ;;-esac---------------{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5-printf %s "checking for a sed that does not truncate output... " >&6; }-if test ${ac_cv_path_SED+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/- for ac_i in 1 2 3 4 5 6 7; do- ac_script="$ac_script$as_nl$ac_script"- done- echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed- { ac_script=; unset ac_script;}- if test -z "$SED"; then- ac_path_SED_found=false- # Loop through the user's path and test for each of PROGNAME-LIST- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_prog in sed gsed- do- for ac_exec_ext in '' $ac_executable_extensions; do- ac_path_SED="$as_dir$ac_prog$ac_exec_ext"- as_fn_executable_p "$ac_path_SED" || continue-# Check for GNU ac_path_SED and select it if it is found.- # Check for GNU $ac_path_SED-case `"$ac_path_SED" --version 2>&1` in #(-*GNU*)- ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;-#(-*)- ac_count=0- printf %s 0123456789 >"conftest.in"- while :- do- cat "conftest.in" "conftest.in" >"conftest.tmp"- mv "conftest.tmp" "conftest.in"- cp "conftest.in" "conftest.nl"- printf "%s\n" '' >> "conftest.nl"- "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break- diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break- as_fn_arith $ac_count + 1 && ac_count=$as_val- if test $ac_count -gt ${ac_path_SED_max-0}; then- # Best one so far, save it but keep looking for a better one- ac_cv_path_SED="$ac_path_SED"- ac_path_SED_max=$ac_count- fi- # 10*(2^10) chars as input seems more than enough- test $ac_count -gt 10 && break- done- rm -f conftest.in conftest.tmp conftest.nl conftest.out;;-esac-- $ac_path_SED_found && break 3- done- done- done-IFS=$as_save_IFS- if test -z "$ac_cv_path_SED"; then- as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5- fi-else- ac_cv_path_SED=$SED-fi- ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5-printf "%s\n" "$ac_cv_path_SED" >&6; }- SED="$ac_cv_path_SED"- rm -f conftest.sed--test -z "$SED" && SED=sed-Xsed="$SED -e 1s/^X//"------------{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5-printf %s "checking for grep that handles long lines and -e... " >&6; }-if test ${ac_cv_path_GREP+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test -z "$GREP"; then- ac_path_GREP_found=false- # Loop through the user's path and test for each of PROGNAME-LIST- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_prog in grep ggrep- do- for ac_exec_ext in '' $ac_executable_extensions; do- ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"- as_fn_executable_p "$ac_path_GREP" || continue-# Check for GNU ac_path_GREP and select it if it is found.- # Check for GNU $ac_path_GREP-case `"$ac_path_GREP" --version 2>&1` in #(-*GNU*)- ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;-#(-*)- ac_count=0- printf %s 0123456789 >"conftest.in"- while :- do- cat "conftest.in" "conftest.in" >"conftest.tmp"- mv "conftest.tmp" "conftest.in"- cp "conftest.in" "conftest.nl"- printf "%s\n" 'GREP' >> "conftest.nl"- "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break- diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break- as_fn_arith $ac_count + 1 && ac_count=$as_val- if test $ac_count -gt ${ac_path_GREP_max-0}; then- # Best one so far, save it but keep looking for a better one- ac_cv_path_GREP="$ac_path_GREP"- ac_path_GREP_max=$ac_count- fi- # 10*(2^10) chars as input seems more than enough- test $ac_count -gt 10 && break- done- rm -f conftest.in conftest.tmp conftest.nl conftest.out;;-esac-- $ac_path_GREP_found && break 3- done- done- done-IFS=$as_save_IFS- if test -z "$ac_cv_path_GREP"; then- as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5- fi-else- ac_cv_path_GREP=$GREP-fi- ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5-printf "%s\n" "$ac_cv_path_GREP" >&6; }- GREP="$ac_cv_path_GREP"---{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5-printf %s "checking for egrep... " >&6; }-if test ${ac_cv_path_EGREP+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1- then ac_cv_path_EGREP="$GREP -E"- else- if test -z "$EGREP"; then- ac_path_EGREP_found=false- # Loop through the user's path and test for each of PROGNAME-LIST- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_prog in egrep- do- for ac_exec_ext in '' $ac_executable_extensions; do- ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"- as_fn_executable_p "$ac_path_EGREP" || continue-# Check for GNU ac_path_EGREP and select it if it is found.- # Check for GNU $ac_path_EGREP-case `"$ac_path_EGREP" --version 2>&1` in #(-*GNU*)- ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;-#(-*)- ac_count=0- printf %s 0123456789 >"conftest.in"- while :- do- cat "conftest.in" "conftest.in" >"conftest.tmp"- mv "conftest.tmp" "conftest.in"- cp "conftest.in" "conftest.nl"- printf "%s\n" 'EGREP' >> "conftest.nl"- "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break- diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break- as_fn_arith $ac_count + 1 && ac_count=$as_val- if test $ac_count -gt ${ac_path_EGREP_max-0}; then- # Best one so far, save it but keep looking for a better one- ac_cv_path_EGREP="$ac_path_EGREP"- ac_path_EGREP_max=$ac_count- fi- # 10*(2^10) chars as input seems more than enough- test $ac_count -gt 10 && break- done- rm -f conftest.in conftest.tmp conftest.nl conftest.out;;-esac-- $ac_path_EGREP_found && break 3- done- done- done-IFS=$as_save_IFS- if test -z "$ac_cv_path_EGREP"; then- as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5- fi-else- ac_cv_path_EGREP=$EGREP-fi-- fi ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5-printf "%s\n" "$ac_cv_path_EGREP" >&6; }- EGREP="$ac_cv_path_EGREP"-- EGREP_TRADITIONAL=$EGREP- ac_cv_path_EGREP_TRADITIONAL=$EGREP--{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5-printf %s "checking for fgrep... " >&6; }-if test ${ac_cv_path_FGREP+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1- then ac_cv_path_FGREP="$GREP -F"- else- if test -z "$FGREP"; then- ac_path_FGREP_found=false- # Loop through the user's path and test for each of PROGNAME-LIST- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_prog in fgrep- do- for ac_exec_ext in '' $ac_executable_extensions; do- ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"- as_fn_executable_p "$ac_path_FGREP" || continue-# Check for GNU ac_path_FGREP and select it if it is found.- # Check for GNU $ac_path_FGREP-case `"$ac_path_FGREP" --version 2>&1` in #(-*GNU*)- ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;-#(-*)- ac_count=0- printf %s 0123456789 >"conftest.in"- while :- do- cat "conftest.in" "conftest.in" >"conftest.tmp"- mv "conftest.tmp" "conftest.in"- cp "conftest.in" "conftest.nl"- printf "%s\n" 'FGREP' >> "conftest.nl"- "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break- diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break- as_fn_arith $ac_count + 1 && ac_count=$as_val- if test $ac_count -gt ${ac_path_FGREP_max-0}; then- # Best one so far, save it but keep looking for a better one- ac_cv_path_FGREP="$ac_path_FGREP"- ac_path_FGREP_max=$ac_count- fi- # 10*(2^10) chars as input seems more than enough- test $ac_count -gt 10 && break- done- rm -f conftest.in conftest.tmp conftest.nl conftest.out;;-esac-- $ac_path_FGREP_found && break 3- done- done- done-IFS=$as_save_IFS- if test -z "$ac_cv_path_FGREP"; then- as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5- fi-else- ac_cv_path_FGREP=$FGREP-fi-- fi ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5-printf "%s\n" "$ac_cv_path_FGREP" >&6; }- FGREP="$ac_cv_path_FGREP"---test -z "$GREP" && GREP=grep--------------------# Check whether --with-gnu-ld was given.-if test ${with_gnu_ld+y}-then :- withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes-else case e in #(- e) with_gnu_ld=no ;;-esac-fi--ac_prog=ld-if test yes = "$GCC"; then- # Check if gcc -print-prog-name=ld gives a path.- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5-printf %s "checking for ld used by $CC... " >&6; }- case $host in- *-*-mingw* | *-*-windows*)- # gcc leaves a trailing carriage return, which upsets mingw- ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;- *)- ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;- esac- case $ac_prog in- # Accept absolute paths.- [\\/]* | ?:[\\/]*)- re_direlt='/[^/][^/]*/\.\./'- # Canonicalize the pathname of ld- ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`- while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do- ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`- done- test -z "$LD" && LD=$ac_prog- ;;- "")- # If it fails, then pretend we aren't using GCC.- ac_prog=ld- ;;- *)- # If it is relative, then search for the first ld in PATH.- with_gnu_ld=unknown- ;;- esac-elif test yes = "$with_gnu_ld"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5-printf %s "checking for GNU ld... " >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5-printf %s "checking for non-GNU ld... " >&6; }-fi-if test ${lt_cv_path_LD+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test -z "$LD"; then- lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR- for ac_dir in $PATH; do- IFS=$lt_save_ifs- test -z "$ac_dir" && ac_dir=.- if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then- lt_cv_path_LD=$ac_dir/$ac_prog- # Check to see if the program is GNU ld. I'd rather use --version,- # but apparently some variants of GNU ld only accept -v.- # Break only if it was the GNU/non-GNU ld that we prefer.- case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in- *GNU* | *'with BFD'*)- test no != "$with_gnu_ld" && break- ;;- *)- test yes != "$with_gnu_ld" && break- ;;- esac- fi- done- IFS=$lt_save_ifs-else- lt_cv_path_LD=$LD # Let the user override the test with a path.-fi ;;-esac-fi--LD=$lt_cv_path_LD-if test -n "$LD"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5-printf "%s\n" "$LD" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-fi-test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5-printf %s "checking if the linker ($LD) is GNU ld... " >&6; }-if test ${lt_cv_prog_gnu_ld+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) # I'd rather use --version here, but apparently some GNU lds only accept -v.-case `$LD -v 2>&1 </dev/null` in-*GNU* | *'with BFD'*)- lt_cv_prog_gnu_ld=yes- ;;-*)- lt_cv_prog_gnu_ld=no- ;;-esac ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5-printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }-with_gnu_ld=$lt_cv_prog_gnu_ld----------{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5-printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }-if test ${lt_cv_path_NM+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test -n "$NM"; then- # Let the user override the test.- lt_cv_path_NM=$NM-else- lt_nm_to_check=${ac_tool_prefix}nm- if test -n "$ac_tool_prefix" && test "$build" = "$host"; then- lt_nm_to_check="$lt_nm_to_check nm"- fi- for lt_tmp_nm in $lt_nm_to_check; do- lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR- for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do- IFS=$lt_save_ifs- test -z "$ac_dir" && ac_dir=.- tmp_nm=$ac_dir/$lt_tmp_nm- if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then- # Check to see if the nm accepts a BSD-compat flag.- # Adding the 'sed 1q' prevents false positives on HP-UX, which says:- # nm: unknown option "B" ignored- # Tru64's nm complains that /dev/null is an invalid object file- # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty- case $build_os in- mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;- *) lt_bad_file=/dev/null ;;- esac- case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in- *$lt_bad_file* | *'Invalid file or object type'*)- lt_cv_path_NM="$tmp_nm -B"- break 2- ;;- *)- case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in- */dev/null*)- lt_cv_path_NM="$tmp_nm -p"- break 2- ;;- *)- lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but- continue # so that we can try to find one that supports BSD flags- ;;- esac- ;;- esac- fi- done- IFS=$lt_save_ifs- done- : ${lt_cv_path_NM=no}-fi ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5-printf "%s\n" "$lt_cv_path_NM" >&6; }-if test no != "$lt_cv_path_NM"; then- NM=$lt_cv_path_NM-else- # Didn't find any BSD compatible name lister, look for dumpbin.- if test -n "$DUMPBIN"; then :- # Let the user override the test.- else- if test -n "$ac_tool_prefix"; then- for ac_prog in dumpbin "link -dump"- do- # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.-set dummy $ac_tool_prefix$ac_prog; ac_word=$2-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5-printf %s "checking for $ac_word... " >&6; }-if test ${ac_cv_prog_DUMPBIN+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test -n "$DUMPBIN"; then- ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.-else-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_exec_ext in '' $ac_executable_extensions; do- if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then- ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"- printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5- break 2- fi-done- done-IFS=$as_save_IFS--fi ;;-esac-fi-DUMPBIN=$ac_cv_prog_DUMPBIN-if test -n "$DUMPBIN"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5-printf "%s\n" "$DUMPBIN" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-fi--- test -n "$DUMPBIN" && break- done-fi-if test -z "$DUMPBIN"; then- ac_ct_DUMPBIN=$DUMPBIN- for ac_prog in dumpbin "link -dump"-do- # Extract the first word of "$ac_prog", so it can be a program name with args.-set dummy $ac_prog; ac_word=$2-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5-printf %s "checking for $ac_word... " >&6; }-if test ${ac_cv_prog_ac_ct_DUMPBIN+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test -n "$ac_ct_DUMPBIN"; then- ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.-else-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_exec_ext in '' $ac_executable_extensions; do- if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then- ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"- printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5- break 2- fi-done- done-IFS=$as_save_IFS--fi ;;-esac-fi-ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN-if test -n "$ac_ct_DUMPBIN"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5-printf "%s\n" "$ac_ct_DUMPBIN" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-fi--- test -n "$ac_ct_DUMPBIN" && break-done-- if test "x$ac_ct_DUMPBIN" = x; then- DUMPBIN=":"- else- case $cross_compiling:$ac_tool_warned in-yes:)-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5-printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}-ac_tool_warned=yes ;;-esac- DUMPBIN=$ac_ct_DUMPBIN- fi-fi-- case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in- *COFF*)- DUMPBIN="$DUMPBIN -symbols -headers"- ;;- *)- DUMPBIN=:- ;;- esac- fi-- if test : != "$DUMPBIN"; then- NM=$DUMPBIN- fi-fi-test -z "$NM" && NM=nm-------{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5-printf %s "checking the name lister ($NM) interface... " >&6; }-if test ${lt_cv_nm_interface+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) lt_cv_nm_interface="BSD nm"- echo "int some_variable = 0;" > conftest.$ac_ext- (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)- (eval "$ac_compile" 2>conftest.err)- cat conftest.err >&5- (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)- (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)- cat conftest.err >&5- (eval echo "\"\$as_me:$LINENO: output\"" >&5)- cat conftest.out >&5- if $GREP 'External.*some_variable' conftest.out > /dev/null; then- lt_cv_nm_interface="MS dumpbin"- fi- rm -f conftest* ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5-printf "%s\n" "$lt_cv_nm_interface" >&6; }--{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5-printf %s "checking whether ln -s works... " >&6; }-LN_S=$as_ln_s-if test "$LN_S" = "ln -s"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5-printf "%s\n" "yes" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5-printf "%s\n" "no, using $LN_S" >&6; }-fi--# find the maximum length of command line arguments-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5-printf %s "checking the maximum length of command line arguments... " >&6; }-if test ${lt_cv_sys_max_cmd_len+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) i=0- teststring=ABCD-- case $build_os in- msdosdjgpp*)- # On DJGPP, this test can blow up pretty badly due to problems in libc- # (any single argument exceeding 2000 bytes causes a buffer overrun- # during glob expansion). Even if it were fixed, the result of this- # check would be larger than it should be.- lt_cv_sys_max_cmd_len=12288; # 12K is about right- ;;-- gnu* | ironclad*)- # Under GNU Hurd and Ironclad, this test is not required because there- # is no limit to the length of command line arguments.- # Libtool will interpret -1 as no limit whatsoever- lt_cv_sys_max_cmd_len=-1;- ;;-- cygwin* | mingw* | windows* | cegcc*)- # On Win9x/ME, this test blows up -- it succeeds, but takes- # about 5 minutes as the teststring grows exponentially.- # Worse, since 9x/ME are not pre-emptively multitasking,- # you end up with a "frozen" computer, even though with patience- # the test eventually succeeds (with a max line length of 256k).- # Instead, let's just punt: use the minimum linelength reported by- # all of the supported platforms: 8192 (on NT/2K/XP).- lt_cv_sys_max_cmd_len=8192;- ;;-- mint*)- # On MiNT this can take a long time and run out of memory.- lt_cv_sys_max_cmd_len=8192;- ;;-- amigaos*)- # On AmigaOS with pdksh, this test takes hours, literally.- # So we just punt and use a minimum line length of 8192.- lt_cv_sys_max_cmd_len=8192;- ;;-- darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)- # This has been around since 386BSD, at least. Likely further.- if test -x /sbin/sysctl; then- lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`- elif test -x /usr/sbin/sysctl; then- lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`- else- lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs- fi- # And add a safety zone- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`- ;;-- interix*)- # We know the value 262144 and hardcode it with a safety zone (like BSD)- lt_cv_sys_max_cmd_len=196608- ;;-- os2*)- # The test takes a long time on OS/2.- lt_cv_sys_max_cmd_len=8192- ;;-- osf*)- # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure- # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not- # nice to cause kernel panics so lets avoid the loop below.- # First set a reasonable default.- lt_cv_sys_max_cmd_len=16384- #- if test -x /sbin/sysconfig; then- case `/sbin/sysconfig -q proc exec_disable_arg_limit` in- *1*) lt_cv_sys_max_cmd_len=-1 ;;- esac- fi- ;;- sco3.2v5*)- lt_cv_sys_max_cmd_len=102400- ;;- sysv5* | sco5v6* | sysv4.2uw2*)- kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`- if test -n "$kargmax"; then- lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`- else- lt_cv_sys_max_cmd_len=32768- fi- ;;- *)- lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`- if test -n "$lt_cv_sys_max_cmd_len" && \- test undefined != "$lt_cv_sys_max_cmd_len"; then- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`- else- # Make teststring a little bigger before we do anything with it.- # a 1K string should be a reasonable start.- for i in 1 2 3 4 5 6 7 8; do- teststring=$teststring$teststring- done- SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}- # If test is not a shell built-in, we'll probably end up computing a- # maximum length that is only half of the actual maximum length, but- # we can't tell.- while { test X`env echo "$teststring$teststring" 2>/dev/null` \- = "X$teststring$teststring"; } >/dev/null 2>&1 &&- test 17 != "$i" # 1/2 MB should be enough- do- i=`expr $i + 1`- teststring=$teststring$teststring- done- # Only check the string length outside the loop.- lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`- teststring=- # Add a significant safety factor because C++ compilers can tack on- # massive amounts of additional arguments before passing them to the- # linker. It appears as though 1/2 is a usable value.- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`- fi- ;;- esac- ;;-esac-fi--if test -n "$lt_cv_sys_max_cmd_len"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5-printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5-printf "%s\n" "none" >&6; }-fi-max_cmd_len=$lt_cv_sys_max_cmd_len-------: ${CP="cp -f"}-: ${MV="mv -f"}-: ${RM="rm -f"}--if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then- lt_unset=unset-else- lt_unset=false-fi------# test EBCDIC or ASCII-case `echo X|tr X '\101'` in- A) # ASCII based system- # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr- lt_SP2NL='tr \040 \012'- lt_NL2SP='tr \015\012 \040\040'- ;;- *) # EBCDIC based system- lt_SP2NL='tr \100 \n'- lt_NL2SP='tr \r\n \100\100'- ;;-esac----------{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5-printf %s "checking how to convert $build file names to $host format... " >&6; }-if test ${lt_cv_to_host_file_cmd+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) case $host in- *-*-mingw* )- case $build in- *-*-mingw* | *-*-windows* ) # actually msys- lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32- ;;- *-*-cygwin* )- lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32- ;;- * ) # otherwise, assume *nix- lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32- ;;- esac- ;;- *-*-cygwin* )- case $build in- *-*-mingw* | *-*-windows* ) # actually msys- lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin- ;;- *-*-cygwin* )- lt_cv_to_host_file_cmd=func_convert_file_noop- ;;- * ) # otherwise, assume *nix- lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin- ;;- esac- ;;- * ) # unhandled hosts (and "normal" native builds)- lt_cv_to_host_file_cmd=func_convert_file_noop- ;;-esac- ;;-esac-fi--to_host_file_cmd=$lt_cv_to_host_file_cmd-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5-printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }------{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5-printf %s "checking how to convert $build file names to toolchain format... " >&6; }-if test ${lt_cv_to_tool_file_cmd+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) #assume ordinary cross tools, or native build.-lt_cv_to_tool_file_cmd=func_convert_file_noop-case $host in- *-*-mingw* | *-*-windows* )- case $build in- *-*-mingw* | *-*-windows* ) # actually msys- lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32- ;;- esac- ;;-esac- ;;-esac-fi--to_tool_file_cmd=$lt_cv_to_tool_file_cmd-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5-printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }------{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5-printf %s "checking for $LD option to reload object files... " >&6; }-if test ${lt_cv_ld_reload_flag+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) lt_cv_ld_reload_flag='-r' ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5-printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }-reload_flag=$lt_cv_ld_reload_flag-case $reload_flag in-"" | " "*) ;;-*) reload_flag=" $reload_flag" ;;-esac-reload_cmds='$LD$reload_flag -o $output$reload_objs'-case $host_os in- cygwin* | mingw* | windows* | pw32* | cegcc*)- if test yes != "$GCC"; then- reload_cmds=false- fi- ;;- darwin*)- if test yes = "$GCC"; then- reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'- else- reload_cmds='$LD$reload_flag -o $output$reload_objs'- fi- ;;-esac----------# Extract the first word of "file", so it can be a program name with args.-set dummy file; ac_word=$2-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5-printf %s "checking for $ac_word... " >&6; }-if test ${ac_cv_prog_FILECMD+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test -n "$FILECMD"; then- ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.-else-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_exec_ext in '' $ac_executable_extensions; do- if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then- ac_cv_prog_FILECMD="file"- printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5- break 2- fi-done- done-IFS=$as_save_IFS-- test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"-fi ;;-esac-fi-FILECMD=$ac_cv_prog_FILECMD-if test -n "$FILECMD"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5-printf "%s\n" "$FILECMD" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-fi---------if test -n "$ac_tool_prefix"; then- # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.-set dummy ${ac_tool_prefix}objdump; ac_word=$2-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5-printf %s "checking for $ac_word... " >&6; }-if test ${ac_cv_prog_OBJDUMP+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test -n "$OBJDUMP"; then- ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.-else-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_exec_ext in '' $ac_executable_extensions; do- if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then- ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"- printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5- break 2- fi-done- done-IFS=$as_save_IFS--fi ;;-esac-fi-OBJDUMP=$ac_cv_prog_OBJDUMP-if test -n "$OBJDUMP"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5-printf "%s\n" "$OBJDUMP" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-fi---fi-if test -z "$ac_cv_prog_OBJDUMP"; then- ac_ct_OBJDUMP=$OBJDUMP- # Extract the first word of "objdump", so it can be a program name with args.-set dummy objdump; ac_word=$2-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5-printf %s "checking for $ac_word... " >&6; }-if test ${ac_cv_prog_ac_ct_OBJDUMP+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test -n "$ac_ct_OBJDUMP"; then- ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.-else-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_exec_ext in '' $ac_executable_extensions; do- if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then- ac_cv_prog_ac_ct_OBJDUMP="objdump"- printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5- break 2- fi-done- done-IFS=$as_save_IFS--fi ;;-esac-fi-ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP-if test -n "$ac_ct_OBJDUMP"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5-printf "%s\n" "$ac_ct_OBJDUMP" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-fi-- if test "x$ac_ct_OBJDUMP" = x; then- OBJDUMP="false"- else- case $cross_compiling:$ac_tool_warned in-yes:)-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5-printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}-ac_tool_warned=yes ;;-esac- OBJDUMP=$ac_ct_OBJDUMP- fi-else- OBJDUMP="$ac_cv_prog_OBJDUMP"-fi--test -z "$OBJDUMP" && OBJDUMP=objdump-------{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5-printf %s "checking how to recognize dependent libraries... " >&6; }-if test ${lt_cv_deplibs_check_method+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) lt_cv_file_magic_cmd='$MAGIC_CMD'-lt_cv_file_magic_test_file=-lt_cv_deplibs_check_method='unknown'-# Need to set the preceding variable on all platforms that support-# interlibrary dependencies.-# 'none' -- dependencies not supported.-# 'unknown' -- same as none, but documents that we really don't know.-# 'pass_all' -- all dependencies passed with no checks.-# 'file_magic [[regex]]' -- check by looking for files in library path-# that responds to the $file_magic_cmd with a given extended regex.-# If you have 'file' or equivalent on your system and you're not sure-# whether 'pass_all' will *always* work, you probably want this one.--case $host_os in-aix[4-9]*)- lt_cv_deplibs_check_method=pass_all- ;;--beos*)- lt_cv_deplibs_check_method=pass_all- ;;--bsdi[45]*)- lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'- lt_cv_file_magic_cmd='$FILECMD -L'- lt_cv_file_magic_test_file=/shlib/libc.so- ;;--cygwin*)- # func_win32_libid is a shell function defined in ltmain.sh- lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'- lt_cv_file_magic_cmd='func_win32_libid'- ;;--mingw* | windows* | pw32*)- # Base MSYS/MinGW do not provide the 'file' command needed by- # func_win32_libid shell function, so use a weaker test based on 'objdump',- # unless we find 'file', for example because we are cross-compiling.- if ( file / ) >/dev/null 2>&1; then- lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'- lt_cv_file_magic_cmd='func_win32_libid'- else- # Keep this pattern in sync with the one in func_win32_libid.- lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'- lt_cv_file_magic_cmd='$OBJDUMP -f'- fi- ;;--cegcc*)- # use the weaker test based on 'objdump'. See mingw*.- lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'- lt_cv_file_magic_cmd='$OBJDUMP -f'- ;;--darwin* | rhapsody*)- lt_cv_deplibs_check_method=pass_all- ;;--freebsd* | dragonfly* | midnightbsd*)- if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then- case $host_cpu in- i*86 )- # Not sure whether the presence of OpenBSD here was a mistake.- # Let's accept both of them until this is cleared up.- lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'- lt_cv_file_magic_cmd=$FILECMD- lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`- ;;- esac- else- lt_cv_deplibs_check_method=pass_all- fi- ;;--haiku*)- lt_cv_deplibs_check_method=pass_all- ;;--hpux10.20* | hpux11*)- lt_cv_file_magic_cmd=$FILECMD- case $host_cpu in- ia64*)- lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'- lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so- ;;- hppa*64*)- lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'- lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl- ;;- *)- lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'- lt_cv_file_magic_test_file=/usr/lib/libc.sl- ;;- esac- ;;--interix[3-9]*)- # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here- lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'- ;;--irix5* | irix6* | nonstopux*)- case $LD in- *-32|*"-32 ") libmagic=32-bit;;- *-n32|*"-n32 ") libmagic=N32;;- *-64|*"-64 ") libmagic=64-bit;;- *) libmagic=never-match;;- esac- lt_cv_deplibs_check_method=pass_all- ;;--# This must be glibc/ELF.-linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)- lt_cv_deplibs_check_method=pass_all- ;;--*-mlibc)- lt_cv_deplibs_check_method=pass_all- ;;--netbsd* | netbsdelf*-gnu)- if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then- lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'- else- lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'- fi- ;;--newos6*)- lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'- lt_cv_file_magic_cmd=$FILECMD- lt_cv_file_magic_test_file=/usr/lib/libnls.so- ;;--*nto* | *qnx*)- lt_cv_deplibs_check_method=pass_all- ;;--openbsd*)- if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then- lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'- else- lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'- fi- ;;--osf3* | osf4* | osf5*)- lt_cv_deplibs_check_method=pass_all- ;;--rdos*)- lt_cv_deplibs_check_method=pass_all- ;;--serenity*)- lt_cv_deplibs_check_method=pass_all- ;;--solaris*)- lt_cv_deplibs_check_method=pass_all- ;;--sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)- lt_cv_deplibs_check_method=pass_all- ;;--sysv4 | sysv4.3*)- case $host_vendor in- motorola)- lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'- lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`- ;;- ncr)- lt_cv_deplibs_check_method=pass_all- ;;- sequent)- lt_cv_file_magic_cmd='/bin/file'- lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'- ;;- sni)- lt_cv_file_magic_cmd='/bin/file'- lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"- lt_cv_file_magic_test_file=/lib/libc.so- ;;- siemens)- lt_cv_deplibs_check_method=pass_all- ;;- pc)- lt_cv_deplibs_check_method=pass_all- ;;- esac- ;;--tpf*)- lt_cv_deplibs_check_method=pass_all- ;;-os2*)- lt_cv_deplibs_check_method=pass_all- ;;-esac- ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5-printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }--file_magic_glob=-want_nocaseglob=no-if test "$build" = "$host"; then- case $host_os in- mingw* | windows* | pw32*)- if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then- want_nocaseglob=yes- else- file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`- fi- ;;- esac-fi--file_magic_cmd=$lt_cv_file_magic_cmd-deplibs_check_method=$lt_cv_deplibs_check_method-test -z "$deplibs_check_method" && deplibs_check_method=unknown-----------------------if test -n "$ac_tool_prefix"; then- # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.-set dummy ${ac_tool_prefix}dlltool; ac_word=$2-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5-printf %s "checking for $ac_word... " >&6; }-if test ${ac_cv_prog_DLLTOOL+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test -n "$DLLTOOL"; then- ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.-else-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_exec_ext in '' $ac_executable_extensions; do- if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then- ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"- printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5- break 2- fi-done- done-IFS=$as_save_IFS--fi ;;-esac-fi-DLLTOOL=$ac_cv_prog_DLLTOOL-if test -n "$DLLTOOL"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5-printf "%s\n" "$DLLTOOL" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-fi---fi-if test -z "$ac_cv_prog_DLLTOOL"; then- ac_ct_DLLTOOL=$DLLTOOL- # Extract the first word of "dlltool", so it can be a program name with args.-set dummy dlltool; ac_word=$2-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5-printf %s "checking for $ac_word... " >&6; }-if test ${ac_cv_prog_ac_ct_DLLTOOL+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test -n "$ac_ct_DLLTOOL"; then- ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.-else-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_exec_ext in '' $ac_executable_extensions; do- if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then- ac_cv_prog_ac_ct_DLLTOOL="dlltool"- printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5- break 2- fi-done- done-IFS=$as_save_IFS--fi ;;-esac-fi-ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL-if test -n "$ac_ct_DLLTOOL"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5-printf "%s\n" "$ac_ct_DLLTOOL" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-fi-- if test "x$ac_ct_DLLTOOL" = x; then- DLLTOOL="false"- else- case $cross_compiling:$ac_tool_warned in-yes:)-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5-printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}-ac_tool_warned=yes ;;-esac- DLLTOOL=$ac_ct_DLLTOOL- fi-else- DLLTOOL="$ac_cv_prog_DLLTOOL"-fi--test -z "$DLLTOOL" && DLLTOOL=dlltool--------{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5-printf %s "checking how to associate runtime and link libraries... " >&6; }-if test ${lt_cv_sharedlib_from_linklib_cmd+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) lt_cv_sharedlib_from_linklib_cmd='unknown'--case $host_os in-cygwin* | mingw* | windows* | pw32* | cegcc*)- # two different shell functions defined in ltmain.sh;- # decide which one to use based on capabilities of $DLLTOOL- case `$DLLTOOL --help 2>&1` in- *--identify-strict*)- lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib- ;;- *)- lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback- ;;- esac- ;;-*)- # fallback: assume linklib IS sharedlib- lt_cv_sharedlib_from_linklib_cmd=$ECHO- ;;-esac- ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5-printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }-sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd-test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO--------if test -n "$ac_tool_prefix"; then- # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.-set dummy ${ac_tool_prefix}ranlib; ac_word=$2-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5-printf %s "checking for $ac_word... " >&6; }-if test ${ac_cv_prog_RANLIB+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test -n "$RANLIB"; then- ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.-else-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_exec_ext in '' $ac_executable_extensions; do- if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then- ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"- printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5- break 2- fi-done- done-IFS=$as_save_IFS--fi ;;-esac-fi-RANLIB=$ac_cv_prog_RANLIB-if test -n "$RANLIB"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5-printf "%s\n" "$RANLIB" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-fi---fi-if test -z "$ac_cv_prog_RANLIB"; then- ac_ct_RANLIB=$RANLIB- # Extract the first word of "ranlib", so it can be a program name with args.-set dummy ranlib; ac_word=$2-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5-printf %s "checking for $ac_word... " >&6; }-if test ${ac_cv_prog_ac_ct_RANLIB+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test -n "$ac_ct_RANLIB"; then- ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.-else-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_exec_ext in '' $ac_executable_extensions; do- if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then- ac_cv_prog_ac_ct_RANLIB="ranlib"- printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5- break 2- fi-done- done-IFS=$as_save_IFS--fi ;;-esac-fi-ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB-if test -n "$ac_ct_RANLIB"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5-printf "%s\n" "$ac_ct_RANLIB" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-fi-- if test "x$ac_ct_RANLIB" = x; then- RANLIB=":"- else- case $cross_compiling:$ac_tool_warned in-yes:)-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5-printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}-ac_tool_warned=yes ;;-esac- RANLIB=$ac_ct_RANLIB- fi-else- RANLIB="$ac_cv_prog_RANLIB"-fi--if test -n "$ac_tool_prefix"; then- for ac_prog in ar- do- # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.-set dummy $ac_tool_prefix$ac_prog; ac_word=$2-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5-printf %s "checking for $ac_word... " >&6; }-if test ${ac_cv_prog_AR+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test -n "$AR"; then- ac_cv_prog_AR="$AR" # Let the user override the test.-else-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_exec_ext in '' $ac_executable_extensions; do- if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then- ac_cv_prog_AR="$ac_tool_prefix$ac_prog"- printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5- break 2- fi-done- done-IFS=$as_save_IFS--fi ;;-esac-fi-AR=$ac_cv_prog_AR-if test -n "$AR"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5-printf "%s\n" "$AR" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-fi--- test -n "$AR" && break- done-fi-if test -z "$AR"; then- ac_ct_AR=$AR- for ac_prog in ar-do- # Extract the first word of "$ac_prog", so it can be a program name with args.-set dummy $ac_prog; ac_word=$2-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5-printf %s "checking for $ac_word... " >&6; }-if test ${ac_cv_prog_ac_ct_AR+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test -n "$ac_ct_AR"; then- ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.-else-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_exec_ext in '' $ac_executable_extensions; do- if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then- ac_cv_prog_ac_ct_AR="$ac_prog"- printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5- break 2- fi-done- done-IFS=$as_save_IFS--fi ;;-esac-fi-ac_ct_AR=$ac_cv_prog_ac_ct_AR-if test -n "$ac_ct_AR"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5-printf "%s\n" "$ac_ct_AR" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-fi--- test -n "$ac_ct_AR" && break-done-- if test "x$ac_ct_AR" = x; then- AR="false"- else- case $cross_compiling:$ac_tool_warned in-yes:)-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5-printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}-ac_tool_warned=yes ;;-esac- AR=$ac_ct_AR- fi-fi--: ${AR=ar}-------# Use ARFLAGS variable as AR's operation code to sync the variable naming with-# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have-# higher priority because that's what people were doing historically (setting-# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS-# variable obsoleted/removed.--test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}-lt_ar_flags=$AR_FLAGS-------# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override-# by AR_FLAGS because that was never working and AR_FLAGS is about to die.-------{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5-printf %s "checking for archiver @FILE support... " >&6; }-if test ${lt_cv_ar_at_file+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) lt_cv_ar_at_file=no- cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */--int-main (void)-{-- ;- return 0;-}-_ACEOF-if ac_fn_c_try_compile "$LINENO"-then :- echo conftest.$ac_objext > conftest.lst- lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'- { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5- (eval $lt_ar_try) 2>&5- ac_status=$?- printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5- test $ac_status = 0; }- if test 0 -eq "$ac_status"; then- # Ensure the archiver fails upon bogus file names.- rm -f conftest.$ac_objext libconftest.a- { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5- (eval $lt_ar_try) 2>&5- ac_status=$?- printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5- test $ac_status = 0; }- if test 0 -ne "$ac_status"; then- lt_cv_ar_at_file=@- fi- fi- rm -f conftest.* libconftest.a--fi-rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext- ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5-printf "%s\n" "$lt_cv_ar_at_file" >&6; }--if test no = "$lt_cv_ar_at_file"; then- archiver_list_spec=-else- archiver_list_spec=$lt_cv_ar_at_file-fi--------if test -n "$ac_tool_prefix"; then- # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.-set dummy ${ac_tool_prefix}strip; ac_word=$2-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5-printf %s "checking for $ac_word... " >&6; }-if test ${ac_cv_prog_STRIP+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test -n "$STRIP"; then- ac_cv_prog_STRIP="$STRIP" # Let the user override the test.-else-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_exec_ext in '' $ac_executable_extensions; do- if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then- ac_cv_prog_STRIP="${ac_tool_prefix}strip"- printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5- break 2- fi-done- done-IFS=$as_save_IFS--fi ;;-esac-fi-STRIP=$ac_cv_prog_STRIP-if test -n "$STRIP"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5-printf "%s\n" "$STRIP" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-fi---fi-if test -z "$ac_cv_prog_STRIP"; then- ac_ct_STRIP=$STRIP- # Extract the first word of "strip", so it can be a program name with args.-set dummy strip; ac_word=$2-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5-printf %s "checking for $ac_word... " >&6; }-if test ${ac_cv_prog_ac_ct_STRIP+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test -n "$ac_ct_STRIP"; then- ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.-else-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_exec_ext in '' $ac_executable_extensions; do- if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then- ac_cv_prog_ac_ct_STRIP="strip"- printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5- break 2- fi-done- done-IFS=$as_save_IFS--fi ;;-esac-fi-ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP-if test -n "$ac_ct_STRIP"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5-printf "%s\n" "$ac_ct_STRIP" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-fi-- if test "x$ac_ct_STRIP" = x; then- STRIP=":"- else- case $cross_compiling:$ac_tool_warned in-yes:)-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5-printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}-ac_tool_warned=yes ;;-esac- STRIP=$ac_ct_STRIP- fi-else- STRIP="$ac_cv_prog_STRIP"-fi--test -z "$STRIP" && STRIP=:--------test -z "$RANLIB" && RANLIB=:-------# Determine commands to create old-style static archives.-old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'-old_postinstall_cmds='chmod 644 $oldlib'-old_postuninstall_cmds=--if test -n "$RANLIB"; then- old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"- old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"-fi--case $host_os in- darwin*)- lock_old_archive_extraction=yes ;;- *)- lock_old_archive_extraction=no ;;-esac----------------------for ac_prog in gawk mawk nawk awk-do- # Extract the first word of "$ac_prog", so it can be a program name with args.-set dummy $ac_prog; ac_word=$2-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5-printf %s "checking for $ac_word... " >&6; }-if test ${ac_cv_prog_AWK+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test -n "$AWK"; then- ac_cv_prog_AWK="$AWK" # Let the user override the test.-else-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_exec_ext in '' $ac_executable_extensions; do- if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then- ac_cv_prog_AWK="$ac_prog"- printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5- break 2- fi-done- done-IFS=$as_save_IFS--fi ;;-esac-fi-AWK=$ac_cv_prog_AWK-if test -n "$AWK"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5-printf "%s\n" "$AWK" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-fi--- test -n "$AWK" && break-done--------------------# If no C compiler was specified, use CC.-LTCC=${LTCC-"$CC"}--# If no C compiler flags were specified, use CFLAGS.-LTCFLAGS=${LTCFLAGS-"$CFLAGS"}--# Allow CC to be a program name with arguments.-compiler=$CC---# Check for command to grab the raw symbol name followed by C symbol from nm.-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5-printf %s "checking command to parse $NM output from $compiler object... " >&6; }-if test ${lt_cv_sys_global_symbol_pipe+y}-then :- printf %s "(cached) " >&6-else case e in #(- e)-# These are sane defaults that work on at least a few old systems.-# [They come from Ultrix. What could be older than Ultrix?!! ;)]--# Character class describing NM global symbol codes.-symcode='[BCDEGRST]'--# Regexp to match symbols that can be accessed directly from C.-sympat='\([_A-Za-z][_A-Za-z0-9]*\)'--# Define system-specific variables.-case $host_os in-aix*)- symcode='[BCDT]'- ;;-cygwin* | mingw* | windows* | pw32* | cegcc*)- symcode='[ABCDGISTW]'- ;;-hpux*)- if test ia64 = "$host_cpu"; then- symcode='[ABCDEGRST]'- fi- ;;-irix* | nonstopux*)- symcode='[BCDEGRST]'- ;;-osf*)- symcode='[BCDEGQRST]'- ;;-solaris*)- symcode='[BCDRT]'- ;;-sco3.2v5*)- symcode='[DT]'- ;;-sysv4.2uw2*)- symcode='[DT]'- ;;-sysv5* | sco5v6* | unixware* | OpenUNIX*)- symcode='[ABDT]'- ;;-sysv4)- symcode='[DFNSTU]'- ;;-esac--# If we're using GNU nm, then use its standard symbol codes.-case `$NM -V 2>&1` in-*GNU* | *'with BFD'*)- symcode='[ABCDGIRSTW]' ;;-esac--if test "$lt_cv_nm_interface" = "MS dumpbin"; then- # Gets list of data symbols to import.- lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"- # Adjust the below global symbol transforms to fixup imported variables.- lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"- lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"- lt_c_name_lib_hook="\- -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\- -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"-else- # Disable hooks by default.- lt_cv_sys_global_symbol_to_import=- lt_cdecl_hook=- lt_c_name_hook=- lt_c_name_lib_hook=-fi--# Transform an extracted symbol line into a proper C declaration.-# Some systems (esp. on ia64) link data and code symbols differently,-# so use this general approach.-lt_cv_sys_global_symbol_to_cdecl="$SED -n"\-$lt_cdecl_hook\-" -e 's/^T .* \(.*\)$/extern int \1();/p'"\-" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"--# Transform an extracted symbol line into symbol name and symbol address-lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\-$lt_c_name_hook\-" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\-" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"--# Transform an extracted symbol line into symbol name with lib prefix and-# symbol address.-lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\-$lt_c_name_lib_hook\-" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\-" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\-" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"--# Handle CRLF in mingw tool chain-opt_cr=-case $build_os in-mingw* | windows*)- opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp- ;;-esac--# Try without a prefix underscore, then with it.-for ac_symprfx in "" "_"; do-- # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.- symxfrm="\\1 $ac_symprfx\\2 \\2"-- # Write the raw and C identifiers.- if test "$lt_cv_nm_interface" = "MS dumpbin"; then- # Fake it for dumpbin and say T for any non-static function,- # D for any global variable and I for any imported variable.- # Also find C++ and __fastcall symbols from MSVC++ or ICC,- # which start with @ or ?.- lt_cv_sys_global_symbol_pipe="$AWK '"\-" {last_section=section; section=\$ 3};"\-" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\-" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\-" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\-" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\-" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\-" \$ 0!~/External *\|/{next};"\-" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\-" {if(hide[section]) next};"\-" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\-" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\-" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\-" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\-" ' prfx=^$ac_symprfx"- else- lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"- fi- lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"-- # Check to see that the pipe works correctly.- pipe_works=no-- rm -f conftest*- cat > conftest.$ac_ext <<_LT_EOF-#ifdef __cplusplus-extern "C" {-#endif-char nm_test_var;-void nm_test_func(void);-void nm_test_func(void){}-#ifdef __cplusplus-}-#endif-int main(void){nm_test_var='a';nm_test_func();return(0);}-_LT_EOF-- if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5- (eval $ac_compile) 2>&5- ac_status=$?- printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5- test $ac_status = 0; }; then- # Now try to grab the symbols.- nlist=conftest.nm- $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5- if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then- # Try sorting and uniquifying the output.- if sort "$nlist" | uniq > "$nlist"T; then- mv -f "$nlist"T "$nlist"- else- rm -f "$nlist"T- fi-- # Make sure that we snagged all the symbols we need.- if $GREP ' nm_test_var$' "$nlist" >/dev/null; then- if $GREP ' nm_test_func$' "$nlist" >/dev/null; then- cat <<_LT_EOF > conftest.$ac_ext-/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */-#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE-/* DATA imports from DLLs on WIN32 can't be const, because runtime- relocations are performed -- see ld's documentation on pseudo-relocs. */-# define LT_DLSYM_CONST-#elif defined __osf__-/* This system does not cope well with relocations in const data. */-# define LT_DLSYM_CONST-#else-# define LT_DLSYM_CONST const-#endif--#ifdef __cplusplus-extern "C" {-#endif--_LT_EOF- # Now generate the symbol file.- eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'-- cat <<_LT_EOF >> conftest.$ac_ext--/* The mapping between symbol names and symbols. */-LT_DLSYM_CONST struct {- const char *name;- void *address;-}-lt__PROGRAM__LTX_preloaded_symbols[] =-{- { "@PROGRAM@", (void *) 0 },-_LT_EOF- $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext- cat <<\_LT_EOF >> conftest.$ac_ext- {0, (void *) 0}-};--/* This works around a problem in FreeBSD linker */-#ifdef FREEBSD_WORKAROUND-static const void *lt_preloaded_setup() {- return lt__PROGRAM__LTX_preloaded_symbols;-}-#endif--#ifdef __cplusplus-}-#endif-_LT_EOF- # Now try linking the two files.- mv conftest.$ac_objext conftstm.$ac_objext- lt_globsym_save_LIBS=$LIBS- lt_globsym_save_CFLAGS=$CFLAGS- LIBS=conftstm.$ac_objext- CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"- if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5- (eval $ac_link) 2>&5- ac_status=$?- printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5- test $ac_status = 0; } && test -s conftest$ac_exeext; then- pipe_works=yes- fi- LIBS=$lt_globsym_save_LIBS- CFLAGS=$lt_globsym_save_CFLAGS- else- echo "cannot find nm_test_func in $nlist" >&5- fi- else- echo "cannot find nm_test_var in $nlist" >&5- fi- else- echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5- fi- else- echo "$progname: failed program was:" >&5- cat conftest.$ac_ext >&5- fi- rm -rf conftest* conftst*-- # Do not use the global_symbol_pipe unless it works.- if test yes = "$pipe_works"; then- break- else- lt_cv_sys_global_symbol_pipe=- fi-done- ;;-esac-fi--if test -z "$lt_cv_sys_global_symbol_pipe"; then- lt_cv_sys_global_symbol_to_cdecl=-fi-if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5-printf "%s\n" "failed" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5-printf "%s\n" "ok" >&6; }-fi--# Response file support.-if test "$lt_cv_nm_interface" = "MS dumpbin"; then- nm_file_list_spec='@'-elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then- nm_file_list_spec='@'-fi--------------------------------------{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5-printf %s "checking for sysroot... " >&6; }--# Check whether --with-sysroot was given.-if test ${with_sysroot+y}-then :- withval=$with_sysroot;-else case e in #(- e) with_sysroot=no ;;-esac-fi---lt_sysroot=-case $with_sysroot in #(- yes)- if test yes = "$GCC"; then- # Trim trailing / since we'll always append absolute paths and we want- # to avoid //, if only for less confusing output for the user.- lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`- fi- ;; #(- /*)- lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`- ;; #(- no|'')- ;; #(- *)- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5-printf "%s\n" "$with_sysroot" >&6; }- as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5- ;;-esac-- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5-printf "%s\n" "${lt_sysroot:-no}" >&6; }------{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5-printf %s "checking for a working dd... " >&6; }-if test ${ac_cv_path_lt_DD+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) printf 0123456789abcdef0123456789abcdef >conftest.i-cat conftest.i conftest.i >conftest2.i-: ${lt_DD:=$DD}-if test -z "$lt_DD"; then- ac_path_lt_DD_found=false- # Loop through the user's path and test for each of PROGNAME-LIST- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_prog in dd- do- for ac_exec_ext in '' $ac_executable_extensions; do- ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"- as_fn_executable_p "$ac_path_lt_DD" || continue-if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then- cmp -s conftest.i conftest.out \- && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:-fi- $ac_path_lt_DD_found && break 3- done- done- done-IFS=$as_save_IFS- if test -z "$ac_cv_path_lt_DD"; then- :- fi-else- ac_cv_path_lt_DD=$lt_DD-fi--rm -f conftest.i conftest2.i conftest.out ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5-printf "%s\n" "$ac_cv_path_lt_DD" >&6; }---{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5-printf %s "checking how to truncate binary pipes... " >&6; }-if test ${lt_cv_truncate_bin+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) printf 0123456789abcdef0123456789abcdef >conftest.i-cat conftest.i conftest.i >conftest2.i-lt_cv_truncate_bin=-if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then- cmp -s conftest.i conftest.out \- && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"-fi-rm -f conftest.i conftest2.i conftest.out-test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5-printf "%s\n" "$lt_cv_truncate_bin" >&6; }--------# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.-func_cc_basename ()-{- for cc_temp in $*""; do- case $cc_temp in- compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;- distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;- \-*) ;;- *) break;;- esac- done- func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`-}--# Check whether --enable-libtool-lock was given.-if test ${enable_libtool_lock+y}-then :- enableval=$enable_libtool_lock;-fi--test no = "$enable_libtool_lock" || enable_libtool_lock=yes--# Some flags need to be propagated to the compiler or linker for good-# libtool support.-case $host in-ia64-*-hpux*)- # Find out what ABI is being produced by ac_compile, and set mode- # options accordingly.- echo 'int i;' > conftest.$ac_ext- if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5- (eval $ac_compile) 2>&5- ac_status=$?- printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5- test $ac_status = 0; }; then- case `$FILECMD conftest.$ac_objext` in- *ELF-32*)- HPUX_IA64_MODE=32- ;;- *ELF-64*)- HPUX_IA64_MODE=64- ;;- esac- fi- rm -rf conftest*- ;;-*-*-irix6*)- # Find out what ABI is being produced by ac_compile, and set linker- # options accordingly.- echo '#line '$LINENO' "configure"' > conftest.$ac_ext- if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5- (eval $ac_compile) 2>&5- ac_status=$?- printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5- test $ac_status = 0; }; then- if test yes = "$lt_cv_prog_gnu_ld"; then- case `$FILECMD conftest.$ac_objext` in- *32-bit*)- LD="${LD-ld} -melf32bsmip"- ;;- *N32*)- LD="${LD-ld} -melf32bmipn32"- ;;- *64-bit*)- LD="${LD-ld} -melf64bmip"- ;;- esac- else- case `$FILECMD conftest.$ac_objext` in- *32-bit*)- LD="${LD-ld} -32"- ;;- *N32*)- LD="${LD-ld} -n32"- ;;- *64-bit*)- LD="${LD-ld} -64"- ;;- esac- fi- fi- rm -rf conftest*- ;;--mips64*-*linux*)- # Find out what ABI is being produced by ac_compile, and set linker- # options accordingly.- echo '#line '$LINENO' "configure"' > conftest.$ac_ext- if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5- (eval $ac_compile) 2>&5- ac_status=$?- printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5- test $ac_status = 0; }; then- emul=elf- case `$FILECMD conftest.$ac_objext` in- *32-bit*)- emul="${emul}32"- ;;- *64-bit*)- emul="${emul}64"- ;;- esac- case `$FILECMD conftest.$ac_objext` in- *MSB*)- emul="${emul}btsmip"- ;;- *LSB*)- emul="${emul}ltsmip"- ;;- esac- case `$FILECMD conftest.$ac_objext` in- *N32*)- emul="${emul}n32"- ;;- esac- LD="${LD-ld} -m $emul"- fi- rm -rf conftest*- ;;--x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \-s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)- # Find out what ABI is being produced by ac_compile, and set linker- # options accordingly. Note that the listed cases only cover the- # situations where additional linker options are needed (such as when- # doing 32-bit compilation for a host where ld defaults to 64-bit, or- # vice versa); the common cases where no linker options are needed do- # not appear in the list.- echo 'int i;' > conftest.$ac_ext- if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5- (eval $ac_compile) 2>&5- ac_status=$?- printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5- test $ac_status = 0; }; then- case `$FILECMD conftest.o` in- *32-bit*)- case $host in- x86_64-*kfreebsd*-gnu)- LD="${LD-ld} -m elf_i386_fbsd"- ;;- x86_64-*linux*|x86_64-gnu*)- case `$FILECMD conftest.o` in- *x86-64*)- LD="${LD-ld} -m elf32_x86_64"- ;;- *)- LD="${LD-ld} -m elf_i386"- ;;- esac- ;;- powerpc64le-*linux*)- LD="${LD-ld} -m elf32lppclinux"- ;;- powerpc64-*linux*)- LD="${LD-ld} -m elf32ppclinux"- ;;- s390x-*linux*)- LD="${LD-ld} -m elf_s390"- ;;- sparc64-*linux*)- LD="${LD-ld} -m elf32_sparc"- ;;- esac- ;;- *64-bit*)- case $host in- x86_64-*kfreebsd*-gnu)- LD="${LD-ld} -m elf_x86_64_fbsd"- ;;- x86_64-*linux*|x86_64-gnu*)- LD="${LD-ld} -m elf_x86_64"- ;;- powerpcle-*linux*)- LD="${LD-ld} -m elf64lppc"- ;;- powerpc-*linux*)- LD="${LD-ld} -m elf64ppc"- ;;- s390*-*linux*|s390*-*tpf*)- LD="${LD-ld} -m elf64_s390"- ;;- sparc*-*linux*)- LD="${LD-ld} -m elf64_sparc"- ;;- esac- ;;- esac- fi- rm -rf conftest*- ;;--*-*-sco3.2v5*)- # On SCO OpenServer 5, we need -belf to get full-featured binaries.- SAVE_CFLAGS=$CFLAGS- CFLAGS="$CFLAGS -belf"- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5-printf %s "checking whether the C compiler needs -belf... " >&6; }-if test ${lt_cv_cc_needs_belf+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) ac_ext=c-ac_cpp='$CPP $CPPFLAGS'-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'-ac_compiler_gnu=$ac_cv_c_compiler_gnu-- cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */--int-main (void)-{-- ;- return 0;-}-_ACEOF-if ac_fn_c_try_link "$LINENO"-then :- lt_cv_cc_needs_belf=yes-else case e in #(- e) lt_cv_cc_needs_belf=no ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam \- conftest$ac_exeext conftest.$ac_ext- ac_ext=c-ac_cpp='$CPP $CPPFLAGS'-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'-ac_compiler_gnu=$ac_cv_c_compiler_gnu- ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5-printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }- if test yes != "$lt_cv_cc_needs_belf"; then- # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf- CFLAGS=$SAVE_CFLAGS- fi- ;;-*-*solaris*)- # Find out what ABI is being produced by ac_compile, and set linker- # options accordingly.- echo 'int i;' > conftest.$ac_ext- if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5- (eval $ac_compile) 2>&5- ac_status=$?- printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5- test $ac_status = 0; }; then- case `$FILECMD conftest.o` in- *64-bit*)- case $lt_cv_prog_gnu_ld in- yes*)- case $host in- i?86-*-solaris*|x86_64-*-solaris*)- LD="${LD-ld} -m elf_x86_64"- ;;- sparc*-*-solaris*)- LD="${LD-ld} -m elf64_sparc"- ;;- esac- # GNU ld 2.21 introduced _sol2 emulations. Use them if available.- if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then- LD=${LD-ld}_sol2- fi- ;;- *)- if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then- LD="${LD-ld} -64"- fi- ;;- esac- ;;- esac- fi- rm -rf conftest*- ;;-esac--need_locks=$enable_libtool_lock--if test -n "$ac_tool_prefix"; then- # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.-set dummy ${ac_tool_prefix}mt; ac_word=$2-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5-printf %s "checking for $ac_word... " >&6; }-if test ${ac_cv_prog_MANIFEST_TOOL+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test -n "$MANIFEST_TOOL"; then- ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.-else-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_exec_ext in '' $ac_executable_extensions; do- if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then- ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"- printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5- break 2- fi-done- done-IFS=$as_save_IFS--fi ;;-esac-fi-MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL-if test -n "$MANIFEST_TOOL"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5-printf "%s\n" "$MANIFEST_TOOL" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-fi---fi-if test -z "$ac_cv_prog_MANIFEST_TOOL"; then- ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL- # Extract the first word of "mt", so it can be a program name with args.-set dummy mt; ac_word=$2-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5-printf %s "checking for $ac_word... " >&6; }-if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test -n "$ac_ct_MANIFEST_TOOL"; then- ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.-else-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_exec_ext in '' $ac_executable_extensions; do- if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then- ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"- printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5- break 2- fi-done- done-IFS=$as_save_IFS--fi ;;-esac-fi-ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL-if test -n "$ac_ct_MANIFEST_TOOL"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5-printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-fi-- if test "x$ac_ct_MANIFEST_TOOL" = x; then- MANIFEST_TOOL=":"- else- case $cross_compiling:$ac_tool_warned in-yes:)-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5-printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}-ac_tool_warned=yes ;;-esac- MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL- fi-else- MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"-fi--test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5-printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }-if test ${lt_cv_path_manifest_tool+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) lt_cv_path_manifest_tool=no- echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5- $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out- cat conftest.err >&5- if $GREP 'Manifest Tool' conftest.out > /dev/null; then- lt_cv_path_manifest_tool=yes- fi- rm -f conftest* ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5-printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }-if test yes != "$lt_cv_path_manifest_tool"; then- MANIFEST_TOOL=:-fi------- case $host_os in- rhapsody* | darwin*)- if test -n "$ac_tool_prefix"; then- # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.-set dummy ${ac_tool_prefix}dsymutil; ac_word=$2-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5-printf %s "checking for $ac_word... " >&6; }-if test ${ac_cv_prog_DSYMUTIL+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test -n "$DSYMUTIL"; then- ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.-else-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_exec_ext in '' $ac_executable_extensions; do- if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then- ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"- printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5- break 2- fi-done- done-IFS=$as_save_IFS--fi ;;-esac-fi-DSYMUTIL=$ac_cv_prog_DSYMUTIL-if test -n "$DSYMUTIL"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5-printf "%s\n" "$DSYMUTIL" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-fi---fi-if test -z "$ac_cv_prog_DSYMUTIL"; then- ac_ct_DSYMUTIL=$DSYMUTIL- # Extract the first word of "dsymutil", so it can be a program name with args.-set dummy dsymutil; ac_word=$2-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5-printf %s "checking for $ac_word... " >&6; }-if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test -n "$ac_ct_DSYMUTIL"; then- ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.-else-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_exec_ext in '' $ac_executable_extensions; do- if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then- ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"- printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5- break 2- fi-done- done-IFS=$as_save_IFS--fi ;;-esac-fi-ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL-if test -n "$ac_ct_DSYMUTIL"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5-printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-fi-- if test "x$ac_ct_DSYMUTIL" = x; then- DSYMUTIL=":"- else- case $cross_compiling:$ac_tool_warned in-yes:)-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5-printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}-ac_tool_warned=yes ;;-esac- DSYMUTIL=$ac_ct_DSYMUTIL- fi-else- DSYMUTIL="$ac_cv_prog_DSYMUTIL"-fi-- if test -n "$ac_tool_prefix"; then- # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.-set dummy ${ac_tool_prefix}nmedit; ac_word=$2-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5-printf %s "checking for $ac_word... " >&6; }-if test ${ac_cv_prog_NMEDIT+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test -n "$NMEDIT"; then- ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.-else-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_exec_ext in '' $ac_executable_extensions; do- if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then- ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"- printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5- break 2- fi-done- done-IFS=$as_save_IFS--fi ;;-esac-fi-NMEDIT=$ac_cv_prog_NMEDIT-if test -n "$NMEDIT"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5-printf "%s\n" "$NMEDIT" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-fi---fi-if test -z "$ac_cv_prog_NMEDIT"; then- ac_ct_NMEDIT=$NMEDIT- # Extract the first word of "nmedit", so it can be a program name with args.-set dummy nmedit; ac_word=$2-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5-printf %s "checking for $ac_word... " >&6; }-if test ${ac_cv_prog_ac_ct_NMEDIT+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test -n "$ac_ct_NMEDIT"; then- ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.-else-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_exec_ext in '' $ac_executable_extensions; do- if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then- ac_cv_prog_ac_ct_NMEDIT="nmedit"- printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5- break 2- fi-done- done-IFS=$as_save_IFS--fi ;;-esac-fi-ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT-if test -n "$ac_ct_NMEDIT"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5-printf "%s\n" "$ac_ct_NMEDIT" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-fi-- if test "x$ac_ct_NMEDIT" = x; then- NMEDIT=":"- else- case $cross_compiling:$ac_tool_warned in-yes:)-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5-printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}-ac_tool_warned=yes ;;-esac- NMEDIT=$ac_ct_NMEDIT- fi-else- NMEDIT="$ac_cv_prog_NMEDIT"-fi-- if test -n "$ac_tool_prefix"; then- # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.-set dummy ${ac_tool_prefix}lipo; ac_word=$2-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5-printf %s "checking for $ac_word... " >&6; }-if test ${ac_cv_prog_LIPO+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test -n "$LIPO"; then- ac_cv_prog_LIPO="$LIPO" # Let the user override the test.-else-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_exec_ext in '' $ac_executable_extensions; do- if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then- ac_cv_prog_LIPO="${ac_tool_prefix}lipo"- printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5- break 2- fi-done- done-IFS=$as_save_IFS--fi ;;-esac-fi-LIPO=$ac_cv_prog_LIPO-if test -n "$LIPO"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5-printf "%s\n" "$LIPO" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-fi---fi-if test -z "$ac_cv_prog_LIPO"; then- ac_ct_LIPO=$LIPO- # Extract the first word of "lipo", so it can be a program name with args.-set dummy lipo; ac_word=$2-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5-printf %s "checking for $ac_word... " >&6; }-if test ${ac_cv_prog_ac_ct_LIPO+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test -n "$ac_ct_LIPO"; then- ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.-else-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_exec_ext in '' $ac_executable_extensions; do- if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then- ac_cv_prog_ac_ct_LIPO="lipo"- printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5- break 2- fi-done- done-IFS=$as_save_IFS--fi ;;-esac-fi-ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO-if test -n "$ac_ct_LIPO"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5-printf "%s\n" "$ac_ct_LIPO" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-fi-- if test "x$ac_ct_LIPO" = x; then- LIPO=":"- else- case $cross_compiling:$ac_tool_warned in-yes:)-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5-printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}-ac_tool_warned=yes ;;-esac- LIPO=$ac_ct_LIPO- fi-else- LIPO="$ac_cv_prog_LIPO"-fi-- if test -n "$ac_tool_prefix"; then- # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.-set dummy ${ac_tool_prefix}otool; ac_word=$2-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5-printf %s "checking for $ac_word... " >&6; }-if test ${ac_cv_prog_OTOOL+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test -n "$OTOOL"; then- ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.-else-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_exec_ext in '' $ac_executable_extensions; do- if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then- ac_cv_prog_OTOOL="${ac_tool_prefix}otool"- printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5- break 2- fi-done- done-IFS=$as_save_IFS--fi ;;-esac-fi-OTOOL=$ac_cv_prog_OTOOL-if test -n "$OTOOL"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5-printf "%s\n" "$OTOOL" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-fi---fi-if test -z "$ac_cv_prog_OTOOL"; then- ac_ct_OTOOL=$OTOOL- # Extract the first word of "otool", so it can be a program name with args.-set dummy otool; ac_word=$2-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5-printf %s "checking for $ac_word... " >&6; }-if test ${ac_cv_prog_ac_ct_OTOOL+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test -n "$ac_ct_OTOOL"; then- ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.-else-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_exec_ext in '' $ac_executable_extensions; do- if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then- ac_cv_prog_ac_ct_OTOOL="otool"- printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5- break 2- fi-done- done-IFS=$as_save_IFS--fi ;;-esac-fi-ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL-if test -n "$ac_ct_OTOOL"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5-printf "%s\n" "$ac_ct_OTOOL" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-fi-- if test "x$ac_ct_OTOOL" = x; then- OTOOL=":"- else- case $cross_compiling:$ac_tool_warned in-yes:)-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5-printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}-ac_tool_warned=yes ;;-esac- OTOOL=$ac_ct_OTOOL- fi-else- OTOOL="$ac_cv_prog_OTOOL"-fi-- if test -n "$ac_tool_prefix"; then- # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.-set dummy ${ac_tool_prefix}otool64; ac_word=$2-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5-printf %s "checking for $ac_word... " >&6; }-if test ${ac_cv_prog_OTOOL64+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test -n "$OTOOL64"; then- ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.-else-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_exec_ext in '' $ac_executable_extensions; do- if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then- ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"- printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5- break 2- fi-done- done-IFS=$as_save_IFS--fi ;;-esac-fi-OTOOL64=$ac_cv_prog_OTOOL64-if test -n "$OTOOL64"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5-printf "%s\n" "$OTOOL64" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-fi---fi-if test -z "$ac_cv_prog_OTOOL64"; then- ac_ct_OTOOL64=$OTOOL64- # Extract the first word of "otool64", so it can be a program name with args.-set dummy otool64; ac_word=$2-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5-printf %s "checking for $ac_word... " >&6; }-if test ${ac_cv_prog_ac_ct_OTOOL64+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test -n "$ac_ct_OTOOL64"; then- ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.-else-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_exec_ext in '' $ac_executable_extensions; do- if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then- ac_cv_prog_ac_ct_OTOOL64="otool64"- printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5- break 2- fi-done- done-IFS=$as_save_IFS--fi ;;-esac-fi-ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64-if test -n "$ac_ct_OTOOL64"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5-printf "%s\n" "$ac_ct_OTOOL64" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-fi-- if test "x$ac_ct_OTOOL64" = x; then- OTOOL64=":"- else- case $cross_compiling:$ac_tool_warned in-yes:)-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5-printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}-ac_tool_warned=yes ;;-esac- OTOOL64=$ac_ct_OTOOL64- fi-else- OTOOL64="$ac_cv_prog_OTOOL64"-fi---------------------------- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5-printf %s "checking for -single_module linker flag... " >&6; }-if test ${lt_cv_apple_cc_single_mod+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) lt_cv_apple_cc_single_mod=no- if test -z "$LT_MULTI_MODULE"; then- # By default we will add the -single_module flag. You can override- # by either setting the environment variable LT_MULTI_MODULE- # non-empty at configure time, or by adding -multi_module to the- # link flags.- rm -rf libconftest.dylib*- echo "int foo(void){return 1;}" > conftest.c- echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \--dynamiclib -Wl,-single_module conftest.c" >&5- $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \- -dynamiclib -Wl,-single_module conftest.c 2>conftest.err- _lt_result=$?- # If there is a non-empty error log, and "single_module"- # appears in it, assume the flag caused a linker warning- if test -s conftest.err && $GREP single_module conftest.err; then- cat conftest.err >&5- # Otherwise, if the output was created with a 0 exit code from- # the compiler, it worked.- elif test -f libconftest.dylib && test 0 = "$_lt_result"; then- lt_cv_apple_cc_single_mod=yes- else- cat conftest.err >&5- fi- rm -rf libconftest.dylib*- rm -f conftest.*- fi ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5-printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }-- # Feature test to disable chained fixups since it is not- # compatible with '-undefined dynamic_lookup'- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5-printf %s "checking for -no_fixup_chains linker flag... " >&6; }-if test ${lt_cv_support_no_fixup_chains+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) save_LDFLAGS=$LDFLAGS- LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"- cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */--int-main (void)-{-- ;- return 0;-}-_ACEOF-if ac_fn_c_try_link "$LINENO"-then :- lt_cv_support_no_fixup_chains=yes-else case e in #(- e) lt_cv_support_no_fixup_chains=no- ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam \- conftest$ac_exeext conftest.$ac_ext- LDFLAGS=$save_LDFLAGS-- ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5-printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }-- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5-printf %s "checking for -exported_symbols_list linker flag... " >&6; }-if test ${lt_cv_ld_exported_symbols_list+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) lt_cv_ld_exported_symbols_list=no- save_LDFLAGS=$LDFLAGS- echo "_main" > conftest.sym- LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"- cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */--int-main (void)-{-- ;- return 0;-}-_ACEOF-if ac_fn_c_try_link "$LINENO"-then :- lt_cv_ld_exported_symbols_list=yes-else case e in #(- e) lt_cv_ld_exported_symbols_list=no ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam \- conftest$ac_exeext conftest.$ac_ext- LDFLAGS=$save_LDFLAGS- ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5-printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }-- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5-printf %s "checking for -force_load linker flag... " >&6; }-if test ${lt_cv_ld_force_load+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) lt_cv_ld_force_load=no- cat > conftest.c << _LT_EOF-int forced_loaded() { return 2;}-_LT_EOF- echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5- $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5- echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5- $AR $AR_FLAGS libconftest.a conftest.o 2>&5- echo "$RANLIB libconftest.a" >&5- $RANLIB libconftest.a 2>&5- cat > conftest.c << _LT_EOF-int main(void) { return 0;}-_LT_EOF- echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5- $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err- _lt_result=$?- if test -s conftest.err && $GREP force_load conftest.err; then- cat conftest.err >&5- elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then- lt_cv_ld_force_load=yes- else- cat conftest.err >&5- fi- rm -f conftest.err libconftest.a conftest conftest.c- rm -rf conftest.dSYM- ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5-printf "%s\n" "$lt_cv_ld_force_load" >&6; }- case $host_os in- rhapsody* | darwin1.[012])- _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;- darwin1.*)- _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;- darwin*)- case $MACOSX_DEPLOYMENT_TARGET,$host in- 10.[012],*|,*powerpc*-darwin[5-8]*)- _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;- *)- _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'- if test yes = "$lt_cv_support_no_fixup_chains"; then- as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'- fi- ;;- esac- ;;- esac- if test yes = "$lt_cv_apple_cc_single_mod"; then- _lt_dar_single_mod='$single_module'- fi- _lt_dar_needs_single_mod=no- case $host_os in- rhapsody* | darwin1.*)- _lt_dar_needs_single_mod=yes ;;- darwin*)- # When targeting Mac OS X 10.4 (darwin 8) or later,- # -single_module is the default and -multi_module is unsupported.- # The toolchain on macOS 10.14 (darwin 18) and later cannot- # target any OS version that needs -single_module.- case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in- 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)- _lt_dar_needs_single_mod=yes ;;- esac- ;;- esac- if test yes = "$lt_cv_ld_exported_symbols_list"; then- _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'- else- _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'- fi- if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then- _lt_dsymutil='~$DSYMUTIL $lib || :'- else- _lt_dsymutil=- fi- ;;- esac--# func_munge_path_list VARIABLE PATH-# ------------------------------------# VARIABLE is name of variable containing _space_ separated list of-# directories to be munged by the contents of PATH, which is string-# having a format:-# "DIR[:DIR]:"-# string "DIR[ DIR]" will be prepended to VARIABLE-# ":DIR[:DIR]"-# string "DIR[ DIR]" will be appended to VARIABLE-# "DIRP[:DIRP]::[DIRA:]DIRA"-# string "DIRP[ DIRP]" will be prepended to VARIABLE and string-# "DIRA[ DIRA]" will be appended to VARIABLE-# "DIR[:DIR]"-# VARIABLE will be replaced by "DIR[ DIR]"-func_munge_path_list ()-{- case x$2 in- x)- ;;- *:)- eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"- ;;- x:*)- eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"- ;;- *::*)- eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"- eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"- ;;- *)- eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"- ;;- esac-}--ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default-"-if test "x$ac_cv_header_dlfcn_h" = xyes-then :- printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h--fi------# Set options-enable_win32_dll=yes--case $host in-*-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)- if test -n "$ac_tool_prefix"; then- # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.-set dummy ${ac_tool_prefix}as; ac_word=$2-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5-printf %s "checking for $ac_word... " >&6; }-if test ${ac_cv_prog_AS+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test -n "$AS"; then- ac_cv_prog_AS="$AS" # Let the user override the test.-else-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_exec_ext in '' $ac_executable_extensions; do- if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then- ac_cv_prog_AS="${ac_tool_prefix}as"- printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5- break 2- fi-done- done-IFS=$as_save_IFS--fi ;;-esac-fi-AS=$ac_cv_prog_AS-if test -n "$AS"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5-printf "%s\n" "$AS" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-fi---fi-if test -z "$ac_cv_prog_AS"; then- ac_ct_AS=$AS- # Extract the first word of "as", so it can be a program name with args.-set dummy as; ac_word=$2-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5-printf %s "checking for $ac_word... " >&6; }-if test ${ac_cv_prog_ac_ct_AS+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test -n "$ac_ct_AS"; then- ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.-else-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_exec_ext in '' $ac_executable_extensions; do- if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then- ac_cv_prog_ac_ct_AS="as"- printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5- break 2- fi-done- done-IFS=$as_save_IFS--fi ;;-esac-fi-ac_ct_AS=$ac_cv_prog_ac_ct_AS-if test -n "$ac_ct_AS"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5-printf "%s\n" "$ac_ct_AS" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-fi-- if test "x$ac_ct_AS" = x; then- AS="false"- else- case $cross_compiling:$ac_tool_warned in-yes:)-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5-printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}-ac_tool_warned=yes ;;-esac- AS=$ac_ct_AS- fi-else- AS="$ac_cv_prog_AS"-fi-- if test -n "$ac_tool_prefix"; then- # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.-set dummy ${ac_tool_prefix}dlltool; ac_word=$2-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5-printf %s "checking for $ac_word... " >&6; }-if test ${ac_cv_prog_DLLTOOL+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test -n "$DLLTOOL"; then- ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.-else-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_exec_ext in '' $ac_executable_extensions; do- if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then- ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"- printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5- break 2- fi-done- done-IFS=$as_save_IFS--fi ;;-esac-fi-DLLTOOL=$ac_cv_prog_DLLTOOL-if test -n "$DLLTOOL"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5-printf "%s\n" "$DLLTOOL" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-fi---fi-if test -z "$ac_cv_prog_DLLTOOL"; then- ac_ct_DLLTOOL=$DLLTOOL- # Extract the first word of "dlltool", so it can be a program name with args.-set dummy dlltool; ac_word=$2-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5-printf %s "checking for $ac_word... " >&6; }-if test ${ac_cv_prog_ac_ct_DLLTOOL+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test -n "$ac_ct_DLLTOOL"; then- ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.-else-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_exec_ext in '' $ac_executable_extensions; do- if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then- ac_cv_prog_ac_ct_DLLTOOL="dlltool"- printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5- break 2- fi-done- done-IFS=$as_save_IFS--fi ;;-esac-fi-ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL-if test -n "$ac_ct_DLLTOOL"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5-printf "%s\n" "$ac_ct_DLLTOOL" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-fi-- if test "x$ac_ct_DLLTOOL" = x; then- DLLTOOL="false"- else- case $cross_compiling:$ac_tool_warned in-yes:)-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5-printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}-ac_tool_warned=yes ;;-esac- DLLTOOL=$ac_ct_DLLTOOL- fi-else- DLLTOOL="$ac_cv_prog_DLLTOOL"-fi-- if test -n "$ac_tool_prefix"; then- # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.-set dummy ${ac_tool_prefix}objdump; ac_word=$2-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5-printf %s "checking for $ac_word... " >&6; }-if test ${ac_cv_prog_OBJDUMP+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test -n "$OBJDUMP"; then- ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.-else-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_exec_ext in '' $ac_executable_extensions; do- if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then- ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"- printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5- break 2- fi-done- done-IFS=$as_save_IFS--fi ;;-esac-fi-OBJDUMP=$ac_cv_prog_OBJDUMP-if test -n "$OBJDUMP"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5-printf "%s\n" "$OBJDUMP" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-fi---fi-if test -z "$ac_cv_prog_OBJDUMP"; then- ac_ct_OBJDUMP=$OBJDUMP- # Extract the first word of "objdump", so it can be a program name with args.-set dummy objdump; ac_word=$2-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5-printf %s "checking for $ac_word... " >&6; }-if test ${ac_cv_prog_ac_ct_OBJDUMP+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test -n "$ac_ct_OBJDUMP"; then- ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.-else-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_exec_ext in '' $ac_executable_extensions; do- if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then- ac_cv_prog_ac_ct_OBJDUMP="objdump"- printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5- break 2- fi-done- done-IFS=$as_save_IFS--fi ;;-esac-fi-ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP-if test -n "$ac_ct_OBJDUMP"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5-printf "%s\n" "$ac_ct_OBJDUMP" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-fi-- if test "x$ac_ct_OBJDUMP" = x; then- OBJDUMP="false"- else- case $cross_compiling:$ac_tool_warned in-yes:)-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5-printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}-ac_tool_warned=yes ;;-esac- OBJDUMP=$ac_ct_OBJDUMP- fi-else- OBJDUMP="$ac_cv_prog_OBJDUMP"-fi-- ;;-esac--test -z "$AS" && AS=as------test -z "$DLLTOOL" && DLLTOOL=dlltool------test -z "$OBJDUMP" && OBJDUMP=objdump-------- enable_dlopen=no---- # Check whether --enable-shared was given.-if test ${enable_shared+y}-then :- enableval=$enable_shared; p=${PACKAGE-default}- case $enableval in- yes) enable_shared=yes ;;- no) enable_shared=no ;;- *)- enable_shared=no- # Look at the argument we got. We use all the common list separators.- lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,- for pkg in $enableval; do- IFS=$lt_save_ifs- if test "X$pkg" = "X$p"; then- enable_shared=yes- fi- done- IFS=$lt_save_ifs- ;;- esac-else case e in #(- e) enable_shared=yes ;;-esac-fi---------- # Check whether --enable-static was given.-if test ${enable_static+y}-then :- enableval=$enable_static; p=${PACKAGE-default}- case $enableval in- yes) enable_static=yes ;;- no) enable_static=no ;;- *)- enable_static=no- # Look at the argument we got. We use all the common list separators.- lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,- for pkg in $enableval; do- IFS=$lt_save_ifs- if test "X$pkg" = "X$p"; then- enable_static=yes- fi- done- IFS=$lt_save_ifs- ;;- esac-else case e in #(- e) enable_static=yes ;;-esac-fi---------- # Check whether --enable-pic was given.-if test ${enable_pic+y}-then :- enableval=$enable_pic; lt_p=${PACKAGE-default}- case $enableval in- yes|no) pic_mode=$enableval ;;- *)- pic_mode=default- # Look at the argument we got. We use all the common list separators.- lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,- for lt_pkg in $enableval; do- IFS=$lt_save_ifs- if test "X$lt_pkg" = "X$lt_p"; then- pic_mode=yes- fi- done- IFS=$lt_save_ifs- ;;- esac-else case e in #(- e) # Check whether --with-pic was given.-if test ${with_pic+y}-then :- withval=$with_pic; lt_p=${PACKAGE-default}- case $withval in- yes|no) pic_mode=$withval ;;- *)- pic_mode=default- # Look at the argument we got. We use all the common list separators.- lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,- for lt_pkg in $withval; do- IFS=$lt_save_ifs- if test "X$lt_pkg" = "X$lt_p"; then- pic_mode=yes- fi- done- IFS=$lt_save_ifs- ;;- esac-else case e in #(- e) pic_mode=default ;;-esac-fi-- ;;-esac-fi--------- # Check whether --enable-fast-install was given.-if test ${enable_fast_install+y}-then :- enableval=$enable_fast_install; p=${PACKAGE-default}- case $enableval in- yes) enable_fast_install=yes ;;- no) enable_fast_install=no ;;- *)- enable_fast_install=no- # Look at the argument we got. We use all the common list separators.- lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,- for pkg in $enableval; do- IFS=$lt_save_ifs- if test "X$pkg" = "X$p"; then- enable_fast_install=yes- fi- done- IFS=$lt_save_ifs- ;;- esac-else case e in #(- e) enable_fast_install=yes ;;-esac-fi--------- shared_archive_member_spec=-case $host,$enable_shared in-power*-*-aix[5-9]*,yes)- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5-printf %s "checking which variant of shared library versioning to provide... " >&6; }- # Check whether --enable-aix-soname was given.-if test ${enable_aix_soname+y}-then :- enableval=$enable_aix_soname; case $enableval in- aix|svr4|both)- ;;- *)- as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5- ;;- esac- lt_cv_with_aix_soname=$enable_aix_soname-else case e in #(- e) # Check whether --with-aix-soname was given.-if test ${with_aix_soname+y}-then :- withval=$with_aix_soname; case $withval in- aix|svr4|both)- ;;- *)- as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5- ;;- esac- lt_cv_with_aix_soname=$with_aix_soname-else case e in #(- e) if test ${lt_cv_with_aix_soname+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) lt_cv_with_aix_soname=aix ;;-esac-fi- ;;-esac-fi-- enable_aix_soname=$lt_cv_with_aix_soname ;;-esac-fi-- with_aix_soname=$enable_aix_soname- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5-printf "%s\n" "$with_aix_soname" >&6; }- if test aix != "$with_aix_soname"; then- # For the AIX way of multilib, we name the shared archive member- # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',- # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.- # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,- # the AIX toolchain works better with OBJECT_MODE set (default 32).- if test 64 = "${OBJECT_MODE-32}"; then- shared_archive_member_spec=shr_64- else- shared_archive_member_spec=shr- fi- fi- ;;-*)- with_aix_soname=aix- ;;-esac-----------# This can be used to rebuild libtool when needed-LIBTOOL_DEPS=$ltmain--# Always use our own libtool.-LIBTOOL='$(SHELL) $(top_builddir)/libtool'-------------------------------test -z "$LN_S" && LN_S="ln -s"---------------if test -n "${ZSH_VERSION+set}"; then- setopt NO_GLOB_SUBST-fi--{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5-printf %s "checking for objdir... " >&6; }-if test ${lt_cv_objdir+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) rm -f .libs 2>/dev/null-mkdir .libs 2>/dev/null-if test -d .libs; then- lt_cv_objdir=.libs-else- # MS-DOS does not allow filenames that begin with a dot.- lt_cv_objdir=_libs-fi-rmdir .libs 2>/dev/null ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5-printf "%s\n" "$lt_cv_objdir" >&6; }-objdir=$lt_cv_objdir------printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h-----case $host_os in-aix3*)- # AIX sometimes has problems with the GCC collect2 program. For some- # reason, if we set the COLLECT_NAMES environment variable, the problems- # vanish in a puff of smoke.- if test set != "${COLLECT_NAMES+set}"; then- COLLECT_NAMES=- export COLLECT_NAMES- fi- ;;-esac--# Global variables:-ofile=libtool-can_build_shared=yes--# All known linkers require a '.a' archive for static linking (except MSVC and-# ICC, which need '.lib').-libext=a--with_gnu_ld=$lt_cv_prog_gnu_ld--old_CC=$CC-old_CFLAGS=$CFLAGS--# Set sane defaults for various variables-test -z "$CC" && CC=cc-test -z "$LTCC" && LTCC=$CC-test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS-test -z "$LD" && LD=ld-test -z "$ac_objext" && ac_objext=o--func_cc_basename $compiler-cc_basename=$func_cc_basename_result---# Only perform the check for file, if the check method requires it-test -z "$MAGIC_CMD" && MAGIC_CMD=file-case $deplibs_check_method in-file_magic*)- if test "$file_magic_cmd" = '$MAGIC_CMD'; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5-printf %s "checking for ${ac_tool_prefix}file... " >&6; }-if test ${lt_cv_path_MAGIC_CMD+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) case $MAGIC_CMD in-[\\/*] | ?:[\\/]*)- lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.- ;;-*)- lt_save_MAGIC_CMD=$MAGIC_CMD- lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR- ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"- for ac_dir in $ac_dummy; do- IFS=$lt_save_ifs- test -z "$ac_dir" && ac_dir=.- if test -f "$ac_dir/${ac_tool_prefix}file"; then- lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"- if test -n "$file_magic_test_file"; then- case $deplibs_check_method in- "file_magic "*)- file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`- MAGIC_CMD=$lt_cv_path_MAGIC_CMD- if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |- $EGREP "$file_magic_regex" > /dev/null; then- :- else- cat <<_LT_EOF 1>&2--*** Warning: the command libtool uses to detect shared libraries,-*** $file_magic_cmd, produces output that libtool cannot recognize.-*** The result is that libtool may fail to recognize shared libraries-*** as such. This will affect the creation of libtool libraries that-*** depend on shared libraries, but programs linked with such libtool-*** libraries will work regardless of this problem. Nevertheless, you-*** may want to report the problem to your system manager and/or to-*** bug-libtool@gnu.org--_LT_EOF- fi ;;- esac- fi- break- fi- done- IFS=$lt_save_ifs- MAGIC_CMD=$lt_save_MAGIC_CMD- ;;-esac ;;-esac-fi--MAGIC_CMD=$lt_cv_path_MAGIC_CMD-if test -n "$MAGIC_CMD"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5-printf "%s\n" "$MAGIC_CMD" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-fi------if test -z "$lt_cv_path_MAGIC_CMD"; then- if test -n "$ac_tool_prefix"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5-printf %s "checking for file... " >&6; }-if test ${lt_cv_path_MAGIC_CMD+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) case $MAGIC_CMD in-[\\/*] | ?:[\\/]*)- lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.- ;;-*)- lt_save_MAGIC_CMD=$MAGIC_CMD- lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR- ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"- for ac_dir in $ac_dummy; do- IFS=$lt_save_ifs- test -z "$ac_dir" && ac_dir=.- if test -f "$ac_dir/file"; then- lt_cv_path_MAGIC_CMD=$ac_dir/"file"- if test -n "$file_magic_test_file"; then- case $deplibs_check_method in- "file_magic "*)- file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`- MAGIC_CMD=$lt_cv_path_MAGIC_CMD- if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |- $EGREP "$file_magic_regex" > /dev/null; then- :- else- cat <<_LT_EOF 1>&2--*** Warning: the command libtool uses to detect shared libraries,-*** $file_magic_cmd, produces output that libtool cannot recognize.-*** The result is that libtool may fail to recognize shared libraries-*** as such. This will affect the creation of libtool libraries that-*** depend on shared libraries, but programs linked with such libtool-*** libraries will work regardless of this problem. Nevertheless, you-*** may want to report the problem to your system manager and/or to-*** bug-libtool@gnu.org--_LT_EOF- fi ;;- esac- fi- break- fi- done- IFS=$lt_save_ifs- MAGIC_CMD=$lt_save_MAGIC_CMD- ;;-esac ;;-esac-fi--MAGIC_CMD=$lt_cv_path_MAGIC_CMD-if test -n "$MAGIC_CMD"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5-printf "%s\n" "$MAGIC_CMD" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-fi--- else- MAGIC_CMD=:- fi-fi-- fi- ;;-esac--# Use C for the default configuration in the libtool script--lt_save_CC=$CC-ac_ext=c-ac_cpp='$CPP $CPPFLAGS'-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'-ac_compiler_gnu=$ac_cv_c_compiler_gnu---# Source file extension for C test sources.-ac_ext=c--# Object file extension for compiled C test sources.-objext=o-objext=$objext--# Code to be used in simple compile tests-lt_simple_compile_test_code="int some_variable = 0;"--# Code to be used in simple link tests-lt_simple_link_test_code='int main(void){return(0);}'--------# If no C compiler was specified, use CC.-LTCC=${LTCC-"$CC"}--# If no C compiler flags were specified, use CFLAGS.-LTCFLAGS=${LTCFLAGS-"$CFLAGS"}--# Allow CC to be a program name with arguments.-compiler=$CC--# Save the default compiler, since it gets overwritten when the other-# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.-compiler_DEFAULT=$CC--# save warnings/boilerplate of simple test code-ac_outfile=conftest.$ac_objext-echo "$lt_simple_compile_test_code" >conftest.$ac_ext-eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err-_lt_compiler_boilerplate=`cat conftest.err`-$RM conftest*--ac_outfile=conftest.$ac_objext-echo "$lt_simple_link_test_code" >conftest.$ac_ext-eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err-_lt_linker_boilerplate=`cat conftest.err`-$RM -r conftest*---## CAVEAT EMPTOR:-## There is no encapsulation within the following macros, do not change-## the running order or otherwise move them around unless you know exactly-## what you are doing...-if test -n "$compiler"; then--lt_prog_compiler_no_builtin_flag=--if test yes = "$GCC"; then- case $cc_basename in- nvcc*)- lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;- *)- lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;- esac-- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5-printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }-if test ${lt_cv_prog_compiler_rtti_exceptions+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) lt_cv_prog_compiler_rtti_exceptions=no- ac_outfile=conftest.$ac_objext- echo "$lt_simple_compile_test_code" > conftest.$ac_ext- lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment- # Insert the option either (1) after the last *FLAGS variable, or- # (2) before a word containing "conftest.", or (3) at the end.- # Note that $ac_compile itself does not contain backslashes and begins- # with a dollar sign (not a hyphen), so the echo should work correctly.- # The option is referenced via a variable to avoid confusing sed.- lt_compile=`echo "$ac_compile" | $SED \- -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \- -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \- -e 's:$: $lt_compiler_flag:'`- (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)- (eval "$lt_compile" 2>conftest.err)- ac_status=$?- cat conftest.err >&5- echo "$as_me:$LINENO: \$? = $ac_status" >&5- if (exit $ac_status) && test -s "$ac_outfile"; then- # The compiler can only warn and ignore the option if not recognized- # So say no if there are warnings other than the usual output.- $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp- $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2- if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then- lt_cv_prog_compiler_rtti_exceptions=yes- fi- fi- $RM conftest*- ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5-printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }--if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then- lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"-else- :-fi--fi------- lt_prog_compiler_wl=-lt_prog_compiler_pic=-lt_prog_compiler_static=--- if test yes = "$GCC"; then- lt_prog_compiler_wl='-Wl,'- lt_prog_compiler_static='-static'-- case $host_os in- aix*)- # All AIX code is PIC.- if test ia64 = "$host_cpu"; then- # AIX 5 now supports IA64 processor- lt_prog_compiler_static='-Bstatic'- fi- lt_prog_compiler_pic='-fPIC'- ;;-- amigaos*)- case $host_cpu in- powerpc)- # see comment about AmigaOS4 .so support- lt_prog_compiler_pic='-fPIC'- ;;- m68k)- # FIXME: we need at least 68020 code to build shared libraries, but- # adding the '-m68020' flag to GCC prevents building anything better,- # like '-m68040'.- lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'- ;;- esac- ;;-- beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)- # PIC is the default for these OSes.- ;;-- mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)- # This hack is so that the source file can tell whether it is being- # built for inclusion in a dll (and should export symbols for example).- # Although the cygwin gcc ignores -fPIC, still need this for old-style- # (--disable-auto-import) libraries- lt_prog_compiler_pic='-DDLL_EXPORT'- case $host_os in- os2*)- lt_prog_compiler_static='$wl-static'- ;;- esac- ;;-- darwin* | rhapsody*)- # PIC is the default on this platform- # Common symbols not allowed in MH_DYLIB files- lt_prog_compiler_pic='-fno-common'- ;;-- haiku*)- # PIC is the default for Haiku.- # The "-static" flag exists, but is broken.- lt_prog_compiler_static=- ;;-- hpux*)- # PIC is the default for 64-bit PA HP-UX, but not for 32-bit- # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag- # sets the default TLS model and affects inlining.- case $host_cpu in- hppa*64*)- # +Z the default- ;;- *)- lt_prog_compiler_pic='-fPIC'- ;;- esac- ;;-- interix[3-9]*)- # Interix 3.x gcc -fpic/-fPIC options generate broken code.- # Instead, we relocate shared libraries at runtime.- ;;-- msdosdjgpp*)- # Just because we use GCC doesn't mean we suddenly get shared libraries- # on systems that don't support them.- lt_prog_compiler_can_build_shared=no- enable_shared=no- ;;-- *nto* | *qnx*)- # QNX uses GNU C++, but need to define -shared option too, otherwise- # it will coredump.- lt_prog_compiler_pic='-fPIC -shared'- ;;-- sysv4*MP*)- if test -d /usr/nec; then- lt_prog_compiler_pic=-Kconform_pic- fi- ;;-- *)- lt_prog_compiler_pic='-fPIC'- ;;- esac-- case $cc_basename in- nvcc*) # Cuda Compiler Driver 2.2- lt_prog_compiler_wl='-Xlinker '- if test -n "$lt_prog_compiler_pic"; then- lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"- fi- ;;- esac- else- # PORTME Check for flag to pass linker flags through the system compiler.- case $host_os in- aix*)- lt_prog_compiler_wl='-Wl,'- if test ia64 = "$host_cpu"; then- # AIX 5 now supports IA64 processor- lt_prog_compiler_static='-Bstatic'- else- lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'- fi- ;;-- darwin* | rhapsody*)- # PIC is the default on this platform- # Common symbols not allowed in MH_DYLIB files- lt_prog_compiler_pic='-fno-common'- case $cc_basename in- nagfor*)- # NAG Fortran compiler- lt_prog_compiler_wl='-Wl,-Wl,,'- lt_prog_compiler_pic='-PIC'- lt_prog_compiler_static='-Bstatic'- ;;- esac- ;;-- mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)- # This hack is so that the source file can tell whether it is being- # built for inclusion in a dll (and should export symbols for example).- lt_prog_compiler_pic='-DDLL_EXPORT'- case $host_os in- os2*)- lt_prog_compiler_static='$wl-static'- ;;- esac- ;;-- hpux9* | hpux10* | hpux11*)- lt_prog_compiler_wl='-Wl,'- # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but- # not for PA HP-UX.- case $host_cpu in- hppa*64*|ia64*)- # +Z the default- ;;- *)- lt_prog_compiler_pic='+Z'- ;;- esac- # Is there a better lt_prog_compiler_static that works with the bundled CC?- lt_prog_compiler_static='$wl-a ${wl}archive'- ;;-- irix5* | irix6* | nonstopux*)- lt_prog_compiler_wl='-Wl,'- # PIC (with -KPIC) is the default.- lt_prog_compiler_static='-non_shared'- ;;-- linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)- case $cc_basename in- # old Intel for x86_64, which still supported -KPIC.- ecc*)- lt_prog_compiler_wl='-Wl,'- lt_prog_compiler_pic='-KPIC'- lt_prog_compiler_static='-static'- ;;- *flang* | ftn | f18* | f95*)- # Flang compiler.- lt_prog_compiler_wl='-Wl,'- lt_prog_compiler_pic='-fPIC'- lt_prog_compiler_static='-static'- ;;- # icc used to be incompatible with GCC.- # ICC 10 doesn't accept -KPIC any more.- icc* | ifort*)- lt_prog_compiler_wl='-Wl,'- lt_prog_compiler_pic='-fPIC'- lt_prog_compiler_static='-static'- ;;- # Lahey Fortran 8.1.- lf95*)- lt_prog_compiler_wl='-Wl,'- lt_prog_compiler_pic='--shared'- lt_prog_compiler_static='--static'- ;;- nagfor*)- # NAG Fortran compiler- lt_prog_compiler_wl='-Wl,-Wl,,'- lt_prog_compiler_pic='-PIC'- lt_prog_compiler_static='-Bstatic'- ;;- tcc*)- # Fabrice Bellard et al's Tiny C Compiler- lt_prog_compiler_wl='-Wl,'- lt_prog_compiler_pic='-fPIC'- lt_prog_compiler_static='-static'- ;;- pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)- # Portland Group compilers (*not* the Pentium gcc compiler,- # which looks to be a dead project)- lt_prog_compiler_wl='-Wl,'- lt_prog_compiler_pic='-fpic'- lt_prog_compiler_static='-Bstatic'- ;;- ccc*)- lt_prog_compiler_wl='-Wl,'- # All Alpha code is PIC.- lt_prog_compiler_static='-non_shared'- ;;- xl* | bgxl* | bgf* | mpixl*)- # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene- lt_prog_compiler_wl='-Wl,'- lt_prog_compiler_pic='-qpic'- lt_prog_compiler_static='-qstaticlink'- ;;- *)- case `$CC -V 2>&1 | $SED 5q` in- *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)- # Sun Fortran 8.3 passes all unrecognized flags to the linker- lt_prog_compiler_pic='-KPIC'- lt_prog_compiler_static='-Bstatic'- lt_prog_compiler_wl=''- ;;- *Sun\ F* | *Sun*Fortran*)- lt_prog_compiler_pic='-KPIC'- lt_prog_compiler_static='-Bstatic'- lt_prog_compiler_wl='-Qoption ld '- ;;- *Sun\ C*)- # Sun C 5.9- lt_prog_compiler_pic='-KPIC'- lt_prog_compiler_static='-Bstatic'- lt_prog_compiler_wl='-Wl,'- ;;- *Intel*\ [CF]*Compiler*)- lt_prog_compiler_wl='-Wl,'- lt_prog_compiler_pic='-fPIC'- lt_prog_compiler_static='-static'- ;;- *Portland\ Group*)- lt_prog_compiler_wl='-Wl,'- lt_prog_compiler_pic='-fpic'- lt_prog_compiler_static='-Bstatic'- ;;- esac- ;;- esac- ;;-- newsos6)- lt_prog_compiler_pic='-KPIC'- lt_prog_compiler_static='-Bstatic'- ;;-- *-mlibc)- lt_prog_compiler_wl='-Wl,'- lt_prog_compiler_pic='-fPIC'- lt_prog_compiler_static='-static'- ;;-- *nto* | *qnx*)- # QNX uses GNU C++, but need to define -shared option too, otherwise- # it will coredump.- lt_prog_compiler_pic='-fPIC -shared'- ;;-- osf3* | osf4* | osf5*)- lt_prog_compiler_wl='-Wl,'- # All OSF/1 code is PIC.- lt_prog_compiler_static='-non_shared'- ;;-- rdos*)- lt_prog_compiler_static='-non_shared'- ;;-- serenity*)- ;;-- solaris*)- lt_prog_compiler_pic='-KPIC'- lt_prog_compiler_static='-Bstatic'- case $cc_basename in- f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)- lt_prog_compiler_wl='-Qoption ld ';;- *)- lt_prog_compiler_wl='-Wl,';;- esac- ;;-- sunos4*)- lt_prog_compiler_wl='-Qoption ld '- lt_prog_compiler_pic='-PIC'- lt_prog_compiler_static='-Bstatic'- ;;-- sysv4 | sysv4.2uw2* | sysv4.3*)- lt_prog_compiler_wl='-Wl,'- lt_prog_compiler_pic='-KPIC'- lt_prog_compiler_static='-Bstatic'- ;;-- sysv4*MP*)- if test -d /usr/nec; then- lt_prog_compiler_pic='-Kconform_pic'- lt_prog_compiler_static='-Bstatic'- fi- ;;-- sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)- lt_prog_compiler_wl='-Wl,'- lt_prog_compiler_pic='-KPIC'- lt_prog_compiler_static='-Bstatic'- ;;-- unicos*)- lt_prog_compiler_wl='-Wl,'- lt_prog_compiler_can_build_shared=no- ;;-- uts4*)- lt_prog_compiler_pic='-pic'- lt_prog_compiler_static='-Bstatic'- ;;-- *)- lt_prog_compiler_can_build_shared=no- ;;- esac- fi--case $host_os in- # For platforms that do not support PIC, -DPIC is meaningless:- *djgpp*)- lt_prog_compiler_pic=- ;;- *)- lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"- ;;-esac--{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5-printf %s "checking for $compiler option to produce PIC... " >&6; }-if test ${lt_cv_prog_compiler_pic+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5-printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }-lt_prog_compiler_pic=$lt_cv_prog_compiler_pic--#-# Check to make sure the PIC flag actually works.-#-if test -n "$lt_prog_compiler_pic"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5-printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }-if test ${lt_cv_prog_compiler_pic_works+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) lt_cv_prog_compiler_pic_works=no- ac_outfile=conftest.$ac_objext- echo "$lt_simple_compile_test_code" > conftest.$ac_ext- lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment- # Insert the option either (1) after the last *FLAGS variable, or- # (2) before a word containing "conftest.", or (3) at the end.- # Note that $ac_compile itself does not contain backslashes and begins- # with a dollar sign (not a hyphen), so the echo should work correctly.- # The option is referenced via a variable to avoid confusing sed.- lt_compile=`echo "$ac_compile" | $SED \- -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \- -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \- -e 's:$: $lt_compiler_flag:'`- (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)- (eval "$lt_compile" 2>conftest.err)- ac_status=$?- cat conftest.err >&5- echo "$as_me:$LINENO: \$? = $ac_status" >&5- if (exit $ac_status) && test -s "$ac_outfile"; then- # The compiler can only warn and ignore the option if not recognized- # So say no if there are warnings other than the usual output.- $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp- $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2- if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then- lt_cv_prog_compiler_pic_works=yes- fi- fi- $RM conftest*- ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5-printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }--if test yes = "$lt_cv_prog_compiler_pic_works"; then- case $lt_prog_compiler_pic in- "" | " "*) ;;- *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;- esac-else- lt_prog_compiler_pic=- lt_prog_compiler_can_build_shared=no-fi--fi------------#-# Check to make sure the static flag actually works.-#-wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5-printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }-if test ${lt_cv_prog_compiler_static_works+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) lt_cv_prog_compiler_static_works=no- save_LDFLAGS=$LDFLAGS- LDFLAGS="$LDFLAGS $lt_tmp_static_flag"- echo "$lt_simple_link_test_code" > conftest.$ac_ext- if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then- # The linker can only warn and ignore the option if not recognized- # So say no if there are warnings- if test -s conftest.err; then- # Append any errors to the config.log.- cat conftest.err 1>&5- $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp- $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2- if diff conftest.exp conftest.er2 >/dev/null; then- lt_cv_prog_compiler_static_works=yes- fi- else- lt_cv_prog_compiler_static_works=yes- fi- fi- $RM -r conftest*- LDFLAGS=$save_LDFLAGS- ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5-printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }--if test yes = "$lt_cv_prog_compiler_static_works"; then- :-else- lt_prog_compiler_static=-fi-------- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5-printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }-if test ${lt_cv_prog_compiler_c_o+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) lt_cv_prog_compiler_c_o=no- $RM -r conftest 2>/dev/null- mkdir conftest- cd conftest- mkdir out- echo "$lt_simple_compile_test_code" > conftest.$ac_ext-- lt_compiler_flag="-o out/conftest2.$ac_objext"- # Insert the option either (1) after the last *FLAGS variable, or- # (2) before a word containing "conftest.", or (3) at the end.- # Note that $ac_compile itself does not contain backslashes and begins- # with a dollar sign (not a hyphen), so the echo should work correctly.- lt_compile=`echo "$ac_compile" | $SED \- -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \- -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \- -e 's:$: $lt_compiler_flag:'`- (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)- (eval "$lt_compile" 2>out/conftest.err)- ac_status=$?- cat out/conftest.err >&5- echo "$as_me:$LINENO: \$? = $ac_status" >&5- if (exit $ac_status) && test -s out/conftest2.$ac_objext- then- # The compiler can only warn and ignore the option if not recognized- # So say no if there are warnings- $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp- $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2- if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then- lt_cv_prog_compiler_c_o=yes- fi- fi- chmod u+w . 2>&5- $RM conftest*- # SGI C++ compiler will create directory out/ii_files/ for- # template instantiation- test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files- $RM out/* && rmdir out- cd ..- $RM -r conftest- $RM conftest*- ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5-printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }------- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5-printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }-if test ${lt_cv_prog_compiler_c_o+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) lt_cv_prog_compiler_c_o=no- $RM -r conftest 2>/dev/null- mkdir conftest- cd conftest- mkdir out- echo "$lt_simple_compile_test_code" > conftest.$ac_ext-- lt_compiler_flag="-o out/conftest2.$ac_objext"- # Insert the option either (1) after the last *FLAGS variable, or- # (2) before a word containing "conftest.", or (3) at the end.- # Note that $ac_compile itself does not contain backslashes and begins- # with a dollar sign (not a hyphen), so the echo should work correctly.- lt_compile=`echo "$ac_compile" | $SED \- -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \- -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \- -e 's:$: $lt_compiler_flag:'`- (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)- (eval "$lt_compile" 2>out/conftest.err)- ac_status=$?- cat out/conftest.err >&5- echo "$as_me:$LINENO: \$? = $ac_status" >&5- if (exit $ac_status) && test -s out/conftest2.$ac_objext- then- # The compiler can only warn and ignore the option if not recognized- # So say no if there are warnings- $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp- $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2- if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then- lt_cv_prog_compiler_c_o=yes- fi- fi- chmod u+w . 2>&5- $RM conftest*- # SGI C++ compiler will create directory out/ii_files/ for- # template instantiation- test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files- $RM out/* && rmdir out- cd ..- $RM -r conftest- $RM conftest*- ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5-printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }-----hard_links=nottested-if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then- # do not overwrite the value of need_locks provided by the user- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5-printf %s "checking if we can lock with hard links... " >&6; }- hard_links=yes- $RM conftest*- ln conftest.a conftest.b 2>/dev/null && hard_links=no- touch conftest.a- ln conftest.a conftest.b 2>&5 || hard_links=no- ln conftest.a conftest.b 2>/dev/null && hard_links=no- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5-printf "%s\n" "$hard_links" >&6; }- if test no = "$hard_links"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5-printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}- need_locks=warn- fi-else- need_locks=no-fi------- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5-printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }-- runpath_var=- allow_undefined_flag=- always_export_symbols=no- archive_cmds=- archive_expsym_cmds=- compiler_needs_object=no- enable_shared_with_static_runtimes=no- export_dynamic_flag_spec=- export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'- hardcode_automatic=no- hardcode_direct=no- hardcode_direct_absolute=no- hardcode_libdir_flag_spec=- hardcode_libdir_separator=- hardcode_minus_L=no- hardcode_shlibpath_var=unsupported- inherit_rpath=no- link_all_deplibs=unknown- module_cmds=- module_expsym_cmds=- old_archive_from_new_cmds=- old_archive_from_expsyms_cmds=- thread_safe_flag_spec=- whole_archive_flag_spec=- # include_expsyms should be a list of space-separated symbols to be *always*- # included in the symbol list- include_expsyms=- # exclude_expsyms can be an extended regexp of symbols to exclude- # it will be wrapped by ' (' and ')$', so one must not match beginning or- # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',- # as well as any symbol that contains 'd'.- exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'- # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out- # platforms (ab)use it in PIC code, but their linkers get confused if- # the symbol is explicitly referenced. Since portable code cannot- # rely on this symbol name, it's probably fine to never include it in- # preloaded symbol tables.- # Exclude shared library initialization/finalization symbols.- extract_expsyms_cmds=-- case $host_os in- cygwin* | mingw* | windows* | pw32* | cegcc*)- # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time- # When not using gcc, we currently assume that we are using- # Microsoft Visual C++ or Intel C++ Compiler.- if test yes != "$GCC"; then- with_gnu_ld=no- fi- ;;- interix*)- # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)- with_gnu_ld=yes- ;;- esac-- ld_shlibs=yes-- # On some targets, GNU ld is compatible enough with the native linker- # that we're better off using the native interface for both.- lt_use_gnu_ld_interface=no- if test yes = "$with_gnu_ld"; then- case $host_os in- aix*)- # The AIX port of GNU ld has always aspired to compatibility- # with the native linker. However, as the warning in the GNU ld- # block says, versions before 2.19.5* couldn't really create working- # shared libraries, regardless of the interface used.- case `$LD -v 2>&1` in- *\ \(GNU\ Binutils\)\ 2.19.5*) ;;- *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;- *\ \(GNU\ Binutils\)\ [3-9]*) ;;- *)- lt_use_gnu_ld_interface=yes- ;;- esac- ;;- *)- lt_use_gnu_ld_interface=yes- ;;- esac- fi-- if test yes = "$lt_use_gnu_ld_interface"; then- # If archive_cmds runs LD, not CC, wlarc should be empty- wlarc='$wl'-- # Set some defaults for GNU ld with shared library support. These- # are reset later if shared libraries are not supported. Putting them- # here allows them to be overridden if necessary.- runpath_var=LD_RUN_PATH- hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'- export_dynamic_flag_spec='$wl--export-dynamic'- # ancient GNU ld didn't support --whole-archive et. al.- if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then- whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'- else- whole_archive_flag_spec=- fi- supports_anon_versioning=no- case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in- *GNU\ gold*) supports_anon_versioning=yes ;;- *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11- *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...- *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...- *\ 2.11.*) ;; # other 2.11 versions- *) supports_anon_versioning=yes ;;- esac-- # See if GNU ld supports shared libraries.- case $host_os in- aix[3-9]*)- # On AIX/PPC, the GNU linker is very broken- if test ia64 != "$host_cpu"; then- ld_shlibs=no- cat <<_LT_EOF 1>&2--*** Warning: the GNU linker, at least up to release 2.19, is reported-*** to be unable to reliably create shared libraries on AIX.-*** Therefore, libtool is disabling shared libraries support. If you-*** really care for shared libraries, you may want to install binutils-*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.-*** You will then need to restart the configuration process.--_LT_EOF- fi- ;;-- amigaos*)- case $host_cpu in- powerpc)- # see comment about AmigaOS4 .so support- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'- archive_expsym_cmds=''- ;;- m68k)- archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'- hardcode_libdir_flag_spec='-L$libdir'- hardcode_minus_L=yes- ;;- esac- ;;-- beos*)- if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then- allow_undefined_flag=unsupported- # Joseph Beckenbach <jrb3@best.com> says some releases of gcc- # support --undefined. This deserves some investigation. FIXME- archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'- else- ld_shlibs=no- fi- ;;-- cygwin* | mingw* | windows* | pw32* | cegcc*)- # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,- # as there is no search path for DLLs.- hardcode_libdir_flag_spec='-L$libdir'- export_dynamic_flag_spec='$wl--export-all-symbols'- allow_undefined_flag=unsupported- always_export_symbols=no- enable_shared_with_static_runtimes=yes- 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'- exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'- file_list_spec='@'-- if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'- # If the export-symbols file already is a .def file, use it as- # is; otherwise, prepend EXPORTS...- archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then- cp $export_symbols $output_objdir/$soname.def;- else- echo EXPORTS > $output_objdir/$soname.def;- cat $export_symbols >> $output_objdir/$soname.def;- fi~- $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'- else- ld_shlibs=no- fi- ;;-- haiku*)- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'- link_all_deplibs=no- ;;-- os2*)- hardcode_libdir_flag_spec='-L$libdir'- hardcode_minus_L=yes- allow_undefined_flag=unsupported- shrext_cmds=.dll- archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~- $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~- $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~- $ECHO EXPORTS >> $output_objdir/$libname.def~- emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~- $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~- emximp -o $lib $output_objdir/$libname.def'- archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~- $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~- $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~- $ECHO EXPORTS >> $output_objdir/$libname.def~- prefix_cmds="$SED"~- if test EXPORTS = "`$SED 1q $export_symbols`"; then- prefix_cmds="$prefix_cmds -e 1d";- fi~- prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~- cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~- $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~- emximp -o $lib $output_objdir/$libname.def'- old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'- enable_shared_with_static_runtimes=yes- file_list_spec='@'- ;;-- interix[3-9]*)- hardcode_direct=no- hardcode_shlibpath_var=no- hardcode_libdir_flag_spec='$wl-rpath,$libdir'- export_dynamic_flag_spec='$wl-E'- # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.- # Instead, shared libraries are loaded at an image base (0x10000000 by- # default) and relocated if they conflict, which is a slow very memory- # consuming and fragmenting process. To avoid this, we pick a random,- # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link- # time. Moving up from 0x10000000 also allows more sbrk(2) space.- archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'- archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'- ;;-- gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)- tmp_diet=no- if test linux-dietlibc = "$host_os"; then- case $cc_basename in- diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)- esac- fi- if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \- && test no = "$tmp_diet"- then- tmp_addflag=' $pic_flag'- tmp_sharedflag='-shared'- case $cc_basename,$host_cpu in- pgcc*) # Portland Group C compiler- whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'- tmp_addflag=' $pic_flag'- ;;- pgf77* | pgf90* | pgf95* | pgfortran*)- # Portland Group f77 and f90 compilers- whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'- tmp_addflag=' $pic_flag -Mnomain' ;;- ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64- tmp_addflag=' -i_dynamic' ;;- efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64- tmp_addflag=' -i_dynamic -nofor_main' ;;- ifc* | ifort*) # Intel Fortran compiler- tmp_addflag=' -nofor_main' ;;- lf95*) # Lahey Fortran 8.1- whole_archive_flag_spec=- tmp_sharedflag='--shared' ;;- nagfor*) # NAGFOR 5.3- tmp_sharedflag='-Wl,-shared' ;;- xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)- tmp_sharedflag='-qmkshrobj'- tmp_addflag= ;;- nvcc*) # Cuda Compiler Driver 2.2- whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'- compiler_needs_object=yes- ;;- esac- case `$CC -V 2>&1 | $SED 5q` in- *Sun\ C*) # Sun C 5.9- whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'- compiler_needs_object=yes- tmp_sharedflag='-G' ;;- *Sun\ F*) # Sun Fortran 8.3- tmp_sharedflag='-G' ;;- esac- archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'-- if test yes = "$supports_anon_versioning"; then- archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~- cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~- echo "local: *; };" >> $output_objdir/$libname.ver~- $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'- fi-- case $cc_basename in- tcc*)- hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'- export_dynamic_flag_spec='-rdynamic'- ;;- xlf* | bgf* | bgxlf* | mpixlf*)- # IBM XL Fortran 10.1 on PPC cannot create shared libs itself- whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'- hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'- archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'- if test yes = "$supports_anon_versioning"; then- archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~- cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~- echo "local: *; };" >> $output_objdir/$libname.ver~- $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'- fi- ;;- esac- else- ld_shlibs=no- fi- ;;-- *-mlibc)- archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'- archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'- ;;-- netbsd* | netbsdelf*-gnu)- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then- archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'- wlarc=- else- archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'- archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'- fi- ;;-- solaris*)- if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then- ld_shlibs=no- cat <<_LT_EOF 1>&2--*** Warning: The releases 2.8.* of the GNU linker cannot reliably-*** create shared libraries on Solaris systems. Therefore, libtool-*** is disabling shared libraries support. We urge you to upgrade GNU-*** binutils to release 2.9.1 or newer. Another option is to modify-*** your PATH or compiler configuration so that the native linker is-*** used, and then restart.--_LT_EOF- elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then- archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'- archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'- else- ld_shlibs=no- fi- ;;-- sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)- case `$LD -v 2>&1` in- *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)- ld_shlibs=no- cat <<_LT_EOF 1>&2--*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot-*** reliably create shared libraries on SCO systems. Therefore, libtool-*** is disabling shared libraries support. We urge you to upgrade GNU-*** binutils to release 2.16.91.0.3 or newer. Another option is to modify-*** your PATH or compiler configuration so that the native linker is-*** used, and then restart.--_LT_EOF- ;;- *)- # For security reasons, it is highly recommended that you always- # use absolute paths for naming shared libraries, and exclude the- # DT_RUNPATH tag from executables and libraries. But doing so- # requires that you compile everything twice, which is a pain.- if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then- hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'- else- ld_shlibs=no- fi- ;;- esac- ;;-- sunos4*)- archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'- wlarc=- hardcode_direct=yes- hardcode_shlibpath_var=no- ;;-- *)- if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then- archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'- archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'- else- ld_shlibs=no- fi- ;;- esac-- if test no = "$ld_shlibs"; then- runpath_var=- hardcode_libdir_flag_spec=- export_dynamic_flag_spec=- whole_archive_flag_spec=- fi- else- # PORTME fill in a description of your system's linker (not GNU ld)- case $host_os in- aix3*)- allow_undefined_flag=unsupported- always_export_symbols=yes- archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'- # Note: this linker hardcodes the directories in LIBPATH if there- # are no directories specified by -L.- hardcode_minus_L=yes- if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then- # Neither direct hardcoding nor static linking is supported with a- # broken collect2.- hardcode_direct=unsupported- fi- ;;-- aix[4-9]*)- if test ia64 = "$host_cpu"; then- # On IA64, the linker does run time linking by default, so we don't- # have to do anything special.- aix_use_runtimelinking=no- exp_sym_flag='-Bexport'- no_entry_flag=- else- # If we're using GNU nm, then we don't want the "-C" option.- # -C means demangle to GNU nm, but means don't demangle to AIX nm.- # Without the "-l" option, or with the "-B" option, AIX nm treats- # weak defined symbols like other global defined symbols, whereas- # GNU nm marks them as "W".- # While the 'weak' keyword is ignored in the Export File, we need- # it in the Import File for the 'aix-soname' feature, so we have- # to replace the "-B" option with "-P" for AIX nm.- if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then- export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'- else- export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'- fi- aix_use_runtimelinking=no-- # Test if we are trying to use run time linking or normal- # AIX style linking. If -brtl is somewhere in LDFLAGS, we- # have runtime linking enabled, and use it for executables.- # For shared libraries, we enable/disable runtime linking- # depending on the kind of the shared library created -- # when "with_aix_soname,aix_use_runtimelinking" is:- # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables- # "aix,yes" lib.so shared, rtl:yes, for executables- # lib.a static archive- # "both,no" lib.so.V(shr.o) shared, rtl:yes- # lib.a(lib.so.V) shared, rtl:no, for executables- # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables- # lib.a(lib.so.V) shared, rtl:no- # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables- # lib.a static archive- case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)- for ld_flag in $LDFLAGS; do- if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then- aix_use_runtimelinking=yes- break- fi- done- if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then- # With aix-soname=svr4, we create the lib.so.V shared archives only,- # so we don't have lib.a shared libs to link our executables.- # We have to force runtime linking in this case.- aix_use_runtimelinking=yes- LDFLAGS="$LDFLAGS -Wl,-brtl"- fi- ;;- esac-- exp_sym_flag='-bexport'- no_entry_flag='-bnoentry'- fi-- # When large executables or shared objects are built, AIX ld can- # have problems creating the table of contents. If linking a library- # or program results in "error TOC overflow" add -mminimal-toc to- # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not- # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.-- archive_cmds=''- hardcode_direct=yes- hardcode_direct_absolute=yes- hardcode_libdir_separator=':'- link_all_deplibs=yes- file_list_spec='$wl-f,'- case $with_aix_soname,$aix_use_runtimelinking in- aix,*) ;; # traditional, no import file- svr4,* | *,yes) # use import file- # The Import File defines what to hardcode.- hardcode_direct=no- hardcode_direct_absolute=no- ;;- esac-- if test yes = "$GCC"; then- case $host_os in aix4.[012]|aix4.[012].*)- # We only want to do this on AIX 4.2 and lower, the check- # below for broken collect2 doesn't work under 4.3+- collect2name=`$CC -print-prog-name=collect2`- if test -f "$collect2name" &&- strings "$collect2name" | $GREP resolve_lib_name >/dev/null- then- # We have reworked collect2- :- else- # We have old collect2- hardcode_direct=unsupported- # It fails to find uninstalled libraries when the uninstalled- # path is not listed in the libpath. Setting hardcode_minus_L- # to unsupported forces relinking- hardcode_minus_L=yes- hardcode_libdir_flag_spec='-L$libdir'- hardcode_libdir_separator=- fi- ;;- esac- shared_flag='-shared'- if test yes = "$aix_use_runtimelinking"; then- shared_flag="$shared_flag "'$wl-G'- fi- # Need to ensure runtime linking is disabled for the traditional- # shared library, or the linker may eventually find shared libraries- # /with/ Import File - we do not want to mix them.- shared_flag_aix='-shared'- shared_flag_svr4='-shared $wl-G'- else- # not using gcc- if test ia64 = "$host_cpu"; then- # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release- # chokes on -Wl,-G. The following line is correct:- shared_flag='-G'- else- if test yes = "$aix_use_runtimelinking"; then- shared_flag='$wl-G'- else- shared_flag='$wl-bM:SRE'- fi- shared_flag_aix='$wl-bM:SRE'- shared_flag_svr4='$wl-G'- fi- fi-- export_dynamic_flag_spec='$wl-bexpall'- # It seems that -bexpall does not export symbols beginning with- # underscore (_), so it is better to generate a list of symbols to export.- always_export_symbols=yes- if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then- # Warning - without using the other runtime loading flags (-brtl),- # -berok will link without error, but may produce a broken library.- allow_undefined_flag='-berok'- # Determine the default libpath from the value encoded in an- # empty executable.- if test set = "${lt_cv_aix_libpath+set}"; then- aix_libpath=$lt_cv_aix_libpath-else- if test ${lt_cv_aix_libpath_+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */--int-main (void)-{-- ;- return 0;-}-_ACEOF-if ac_fn_c_try_link "$LINENO"-then :-- lt_aix_libpath_sed='- /Import File Strings/,/^$/ {- /^0/ {- s/^0 *\([^ ]*\) *$/\1/- p- }- }'- lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`- # Check for a 64-bit object if we didn't find anything.- if test -z "$lt_cv_aix_libpath_"; then- lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`- fi-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam \- conftest$ac_exeext conftest.$ac_ext- if test -z "$lt_cv_aix_libpath_"; then- lt_cv_aix_libpath_=/usr/lib:/lib- fi- ;;-esac-fi-- aix_libpath=$lt_cv_aix_libpath_-fi-- hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"- archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag- else- if test ia64 = "$host_cpu"; then- hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'- allow_undefined_flag="-z nodefs"- archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"- else- # Determine the default libpath from the value encoded in an- # empty executable.- if test set = "${lt_cv_aix_libpath+set}"; then- aix_libpath=$lt_cv_aix_libpath-else- if test ${lt_cv_aix_libpath_+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */--int-main (void)-{-- ;- return 0;-}-_ACEOF-if ac_fn_c_try_link "$LINENO"-then :-- lt_aix_libpath_sed='- /Import File Strings/,/^$/ {- /^0/ {- s/^0 *\([^ ]*\) *$/\1/- p- }- }'- lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`- # Check for a 64-bit object if we didn't find anything.- if test -z "$lt_cv_aix_libpath_"; then- lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`- fi-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam \- conftest$ac_exeext conftest.$ac_ext- if test -z "$lt_cv_aix_libpath_"; then- lt_cv_aix_libpath_=/usr/lib:/lib- fi- ;;-esac-fi-- aix_libpath=$lt_cv_aix_libpath_-fi-- hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"- # Warning - without using the other run time loading flags,- # -berok will link without error, but may produce a broken library.- no_undefined_flag=' $wl-bernotok'- allow_undefined_flag=' $wl-berok'- if test yes = "$with_gnu_ld"; then- # We only use this code for GNU lds that support --whole-archive.- whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'- else- # Exported symbols can be pulled into shared objects from archives- whole_archive_flag_spec='$convenience'- fi- archive_cmds_need_lc=yes- archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'- # -brtl affects multiple linker settings, -berok does not and is overridden later- compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'- if test svr4 != "$with_aix_soname"; then- # This is similar to how AIX traditionally builds its shared libraries.- archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'- fi- if test aix != "$with_aix_soname"; then- archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'- else- # used by -dlpreopen to get the symbols- archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'- fi- archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'- fi- fi- ;;-- amigaos*)- case $host_cpu in- powerpc)- # see comment about AmigaOS4 .so support- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'- archive_expsym_cmds=''- ;;- m68k)- archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'- hardcode_libdir_flag_spec='-L$libdir'- hardcode_minus_L=yes- ;;- esac- ;;-- bsdi[45]*)- export_dynamic_flag_spec=-rdynamic- ;;-- cygwin* | mingw* | windows* | pw32* | cegcc*)- # When not using gcc, we currently assume that we are using- # Microsoft Visual C++ or Intel C++ Compiler.- # hardcode_libdir_flag_spec is actually meaningless, as there is- # no search path for DLLs.- case $cc_basename in- cl* | icl*)- # Native MSVC or ICC- hardcode_libdir_flag_spec=' '- allow_undefined_flag=unsupported- always_export_symbols=yes- file_list_spec='@'- # Tell ltmain to make .lib files, not .a files.- libext=lib- # Tell ltmain to make .dll files, not .so files.- shrext_cmds=.dll- # FIXME: Setting linknames here is a bad hack.- archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='- archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then- cp "$export_symbols" "$output_objdir/$soname.def";- echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";- else- $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;- fi~- $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~- linknames='- # The linker will not automatically build a static lib if we build a DLL.- # _LT_TAGVAR(old_archive_from_new_cmds, )='true'- enable_shared_with_static_runtimes=yes- exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'- export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'- # Don't use ranlib- old_postinstall_cmds='chmod 644 $oldlib'- postlink_cmds='lt_outputfile="@OUTPUT@"~- lt_tool_outputfile="@TOOL_OUTPUT@"~- case $lt_outputfile in- *.exe|*.EXE) ;;- *)- lt_outputfile=$lt_outputfile.exe- lt_tool_outputfile=$lt_tool_outputfile.exe- ;;- esac~- if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then- $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;- $RM "$lt_outputfile.manifest";- fi'- ;;- *)- # Assume MSVC and ICC wrapper- hardcode_libdir_flag_spec=' '- allow_undefined_flag=unsupported- # Tell ltmain to make .lib files, not .a files.- libext=lib- # Tell ltmain to make .dll files, not .so files.- shrext_cmds=.dll- # FIXME: Setting linknames here is a bad hack.- archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='- # The linker will automatically build a .lib file if we build a DLL.- old_archive_from_new_cmds='true'- # FIXME: Should let the user specify the lib program.- old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'- enable_shared_with_static_runtimes=yes- ;;- esac- ;;-- darwin* | rhapsody*)--- archive_cmds_need_lc=no- hardcode_direct=no- hardcode_automatic=yes- hardcode_shlibpath_var=unsupported- if test yes = "$lt_cv_ld_force_load"; then- whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'-- else- whole_archive_flag_spec=''- fi- link_all_deplibs=yes- allow_undefined_flag=$_lt_dar_allow_undefined- case $cc_basename in- ifort*|nagfor*) _lt_dar_can_shared=yes ;;- *) _lt_dar_can_shared=$GCC ;;- esac- if test yes = "$_lt_dar_can_shared"; then- output_verbose_link_cmd=func_echo_all- archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"- module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"- archive_expsym_cmds="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"- module_expsym_cmds="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"-- else- ld_shlibs=no- fi-- ;;-- dgux*)- archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'- hardcode_libdir_flag_spec='-L$libdir'- hardcode_shlibpath_var=no- ;;-- # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor- # support. Future versions do this automatically, but an explicit c++rt0.o- # does not break anything, and helps significantly (at the cost of a little- # extra space).- freebsd2.2*)- archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'- hardcode_libdir_flag_spec='-R$libdir'- hardcode_direct=yes- hardcode_shlibpath_var=no- ;;-- # Unfortunately, older versions of FreeBSD 2 do not have this feature.- freebsd2.*)- archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'- hardcode_direct=yes- hardcode_minus_L=yes- hardcode_shlibpath_var=no- ;;-- # FreeBSD 3 and greater uses gcc -shared to do shared libraries.- freebsd* | dragonfly* | midnightbsd*)- archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'- hardcode_libdir_flag_spec='-R$libdir'- hardcode_direct=yes- hardcode_shlibpath_var=no- ;;-- hpux9*)- if test yes = "$GCC"; then- archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'- else- archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'- fi- hardcode_libdir_flag_spec='$wl+b $wl$libdir'- hardcode_libdir_separator=:- hardcode_direct=yes-- # hardcode_minus_L: Not really in the search PATH,- # but as the default location of the library.- hardcode_minus_L=yes- export_dynamic_flag_spec='$wl-E'- ;;-- hpux10*)- if test yes,no = "$GCC,$with_gnu_ld"; then- archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'- else- archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'- fi- if test no = "$with_gnu_ld"; then- hardcode_libdir_flag_spec='$wl+b $wl$libdir'- hardcode_libdir_separator=:- hardcode_direct=yes- hardcode_direct_absolute=yes- export_dynamic_flag_spec='$wl-E'- # hardcode_minus_L: Not really in the search PATH,- # but as the default location of the library.- hardcode_minus_L=yes- fi- ;;-- hpux11*)- if test yes,no = "$GCC,$with_gnu_ld"; then- case $host_cpu in- hppa*64*)- archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'- ;;- ia64*)- archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'- ;;- *)- archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'- ;;- esac- else- case $host_cpu in- hppa*64*)- archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'- ;;- ia64*)- archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'- ;;- *)-- # Older versions of the 11.00 compiler do not understand -b yet- # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5-printf %s "checking if $CC understands -b... " >&6; }-if test ${lt_cv_prog_compiler__b+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) lt_cv_prog_compiler__b=no- save_LDFLAGS=$LDFLAGS- LDFLAGS="$LDFLAGS -b"- echo "$lt_simple_link_test_code" > conftest.$ac_ext- if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then- # The linker can only warn and ignore the option if not recognized- # So say no if there are warnings- if test -s conftest.err; then- # Append any errors to the config.log.- cat conftest.err 1>&5- $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp- $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2- if diff conftest.exp conftest.er2 >/dev/null; then- lt_cv_prog_compiler__b=yes- fi- else- lt_cv_prog_compiler__b=yes- fi- fi- $RM -r conftest*- LDFLAGS=$save_LDFLAGS- ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5-printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }--if test yes = "$lt_cv_prog_compiler__b"; then- archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'-else- archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'-fi-- ;;- esac- fi- if test no = "$with_gnu_ld"; then- hardcode_libdir_flag_spec='$wl+b $wl$libdir'- hardcode_libdir_separator=:-- case $host_cpu in- hppa*64*|ia64*)- hardcode_direct=no- hardcode_shlibpath_var=no- ;;- *)- hardcode_direct=yes- hardcode_direct_absolute=yes- export_dynamic_flag_spec='$wl-E'-- # hardcode_minus_L: Not really in the search PATH,- # but as the default location of the library.- hardcode_minus_L=yes- ;;- esac- fi- ;;-- irix5* | irix6* | nonstopux*)- if test yes = "$GCC"; then- 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'- # Try to use the -exported_symbol ld option, if it does not- # work, assume that -exports_file does not work either and- # implicitly export all symbols.- # This should be the same for all languages, so no per-tag cache variable.- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5-printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }-if test ${lt_cv_irix_exported_symbol+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) save_LDFLAGS=$LDFLAGS- LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"- cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */-int foo (void) { return 0; }-_ACEOF-if ac_fn_c_try_link "$LINENO"-then :- lt_cv_irix_exported_symbol=yes-else case e in #(- e) lt_cv_irix_exported_symbol=no ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam \- conftest$ac_exeext conftest.$ac_ext- LDFLAGS=$save_LDFLAGS ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5-printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }- if test yes = "$lt_cv_irix_exported_symbol"; then- 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'- fi- else- 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'- 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'- fi- archive_cmds_need_lc='no'- hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'- hardcode_libdir_separator=:- inherit_rpath=yes- link_all_deplibs=yes- ;;-- linux*)- case $cc_basename in- tcc*)- # Fabrice Bellard et al's Tiny C Compiler- ld_shlibs=yes- archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'- hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'- ;;- esac- ;;-- *-mlibc)- ;;-- netbsd* | netbsdelf*-gnu)- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then- archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out- else- archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF- fi- hardcode_libdir_flag_spec='-R$libdir'- hardcode_direct=yes- hardcode_shlibpath_var=no- ;;-- newsos6)- archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'- hardcode_direct=yes- hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'- hardcode_libdir_separator=:- hardcode_shlibpath_var=no- ;;-- *nto* | *qnx*)- ;;-- openbsd*)- if test -f /usr/libexec/ld.so; then- hardcode_direct=yes- hardcode_shlibpath_var=no- hardcode_direct_absolute=yes- if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then- archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'- archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'- hardcode_libdir_flag_spec='$wl-rpath,$libdir'- export_dynamic_flag_spec='$wl-E'- else- archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'- hardcode_libdir_flag_spec='$wl-rpath,$libdir'- fi- else- ld_shlibs=no- fi- ;;-- os2*)- hardcode_libdir_flag_spec='-L$libdir'- hardcode_minus_L=yes- allow_undefined_flag=unsupported- shrext_cmds=.dll- archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~- $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~- $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~- $ECHO EXPORTS >> $output_objdir/$libname.def~- emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~- $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~- emximp -o $lib $output_objdir/$libname.def'- archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~- $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~- $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~- $ECHO EXPORTS >> $output_objdir/$libname.def~- prefix_cmds="$SED"~- if test EXPORTS = "`$SED 1q $export_symbols`"; then- prefix_cmds="$prefix_cmds -e 1d";- fi~- prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~- cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~- $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~- emximp -o $lib $output_objdir/$libname.def'- old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'- enable_shared_with_static_runtimes=yes- file_list_spec='@'- ;;-- osf3*)- if test yes = "$GCC"; then- allow_undefined_flag=' $wl-expect_unresolved $wl\*'- archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'- else- allow_undefined_flag=' -expect_unresolved \*'- archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'- fi- archive_cmds_need_lc='no'- hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'- hardcode_libdir_separator=:- ;;-- osf4* | osf5*) # as osf3* with the addition of -msym flag- if test yes = "$GCC"; then- allow_undefined_flag=' $wl-expect_unresolved $wl\*'- 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'- hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'- else- allow_undefined_flag=' -expect_unresolved \*'- archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'- archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~- $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'-- # Both c and cxx compiler support -rpath directly- hardcode_libdir_flag_spec='-rpath $libdir'- fi- archive_cmds_need_lc='no'- hardcode_libdir_separator=:- ;;-- serenity*)- ;;-- solaris*)- no_undefined_flag=' -z defs'- if test yes = "$GCC"; then- wlarc='$wl'- archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'- archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~- $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'- else- case `$CC -V 2>&1` in- *"Compilers 5.0"*)- wlarc=''- archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'- archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~- $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'- ;;- *)- wlarc='$wl'- archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'- archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~- $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'- ;;- esac- fi- hardcode_libdir_flag_spec='-R$libdir'- hardcode_shlibpath_var=no- case $host_os in- solaris2.[0-5] | solaris2.[0-5].*) ;;- *)- # The compiler driver will combine and reorder linker options,- # but understands '-z linker_flag'. GCC discards it without '$wl',- # but is careful enough not to reorder.- # Supported since Solaris 2.6 (maybe 2.5.1?)- if test yes = "$GCC"; then- whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'- else- whole_archive_flag_spec='-z allextract$convenience -z defaultextract'- fi- ;;- esac- link_all_deplibs=yes- ;;-- sunos4*)- if test sequent = "$host_vendor"; then- # Use $CC to link under sequent, because it throws in some extra .o- # files that make .init and .fini sections work.- archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'- else- archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'- fi- hardcode_libdir_flag_spec='-L$libdir'- hardcode_direct=yes- hardcode_minus_L=yes- hardcode_shlibpath_var=no- ;;-- sysv4)- case $host_vendor in- sni)- archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'- hardcode_direct=yes # is this really true???- ;;- siemens)- ## LD is ld it makes a PLAMLIB- ## CC just makes a GrossModule.- archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'- reload_cmds='$CC -r -o $output$reload_objs'- hardcode_direct=no- ;;- motorola)- archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'- hardcode_direct=no #Motorola manual says yes, but my tests say they lie- ;;- esac- runpath_var='LD_RUN_PATH'- hardcode_shlibpath_var=no- ;;-- sysv4.3*)- archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'- hardcode_shlibpath_var=no- export_dynamic_flag_spec='-Bexport'- ;;-- sysv4*MP*)- if test -d /usr/nec; then- archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'- hardcode_shlibpath_var=no- runpath_var=LD_RUN_PATH- hardcode_runpath_var=yes- ld_shlibs=yes- fi- ;;-- sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)- no_undefined_flag='$wl-z,text'- archive_cmds_need_lc=no- hardcode_shlibpath_var=no- runpath_var='LD_RUN_PATH'-- if test yes = "$GCC"; then- archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'- archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'- else- archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'- archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'- fi- ;;-- sysv5* | sco3.2v5* | sco5v6*)- # Note: We CANNOT use -z defs as we might desire, because we do not- # link with -lc, and that would cause any symbols used from libc to- # always be unresolved, which means just about no library would- # ever link correctly. If we're not using GNU ld we use -z text- # though, which does catch some bad symbols but isn't as heavy-handed- # as -z defs.- no_undefined_flag='$wl-z,text'- allow_undefined_flag='$wl-z,nodefs'- archive_cmds_need_lc=no- hardcode_shlibpath_var=no- hardcode_libdir_flag_spec='$wl-R,$libdir'- hardcode_libdir_separator=':'- link_all_deplibs=yes- export_dynamic_flag_spec='$wl-Bexport'- runpath_var='LD_RUN_PATH'-- if test yes = "$GCC"; then- archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'- archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'- else- archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'- archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'- fi- ;;-- uts4*)- archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'- hardcode_libdir_flag_spec='-L$libdir'- hardcode_shlibpath_var=no- ;;-- *)- ld_shlibs=no- ;;- esac-- if test sni = "$host_vendor"; then- case $host in- sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)- export_dynamic_flag_spec='$wl-Blargedynsym'- ;;- esac- fi- fi--{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5-printf "%s\n" "$ld_shlibs" >&6; }-test no = "$ld_shlibs" && can_build_shared=no--with_gnu_ld=$with_gnu_ld----------------#-# Do we need to explicitly link libc?-#-case "x$archive_cmds_need_lc" in-x|xyes)- # Assume -lc should be added- archive_cmds_need_lc=yes-- if test yes,yes = "$GCC,$enable_shared"; then- case $archive_cmds in- *'~'*)- # FIXME: we may have to deal with multi-command sequences.- ;;- '$CC '*)- # Test whether the compiler implicitly links with -lc since on some- # systems, -lgcc has to come before -lc. If gcc already passes -lc- # to ld, don't add -lc before -lgcc.- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5-printf %s "checking whether -lc should be explicitly linked in... " >&6; }-if test ${lt_cv_archive_cmds_need_lc+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) $RM conftest*- echo "$lt_simple_compile_test_code" > conftest.$ac_ext-- if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5- (eval $ac_compile) 2>&5- ac_status=$?- printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5- test $ac_status = 0; } 2>conftest.err; then- soname=conftest- lib=conftest- libobjs=conftest.$ac_objext- deplibs=- wl=$lt_prog_compiler_wl- pic_flag=$lt_prog_compiler_pic- compiler_flags=-v- linker_flags=-v- verstring=- output_objdir=.- libname=conftest- lt_save_allow_undefined_flag=$allow_undefined_flag- allow_undefined_flag=- if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5- (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5- ac_status=$?- printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5- test $ac_status = 0; }- then- lt_cv_archive_cmds_need_lc=no- else- lt_cv_archive_cmds_need_lc=yes- fi- allow_undefined_flag=$lt_save_allow_undefined_flag- else- cat conftest.err 1>&5- fi- $RM conftest*- ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5-printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }- archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc- ;;- esac- fi- ;;-esac--------------------------------------------------------------------------------------------------------------------------------------------------------- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5-printf %s "checking dynamic linker characteristics... " >&6; }--if test yes = "$GCC"; then- case $host_os in- darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;- *) lt_awk_arg='/^libraries:/' ;;- esac- case $host_os in- mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;- *) lt_sed_strip_eq='s|=/|/|g' ;;- esac- lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`- case $lt_search_path_spec in- *\;*)- # if the path contains ";" then we assume it to be the separator- # otherwise default to the standard path separator (i.e. ":") - it is- # assumed that no part of a normal pathname contains ";" but that should- # okay in the real world where ";" in dirpaths is itself problematic.- lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`- ;;- *)- lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`- ;;- esac- # Ok, now we have the path, separated by spaces, we can step through it- # and add multilib dir if necessary...- lt_tmp_lt_search_path_spec=- lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`- # ...but if some path component already ends with the multilib dir we assume- # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).- case "$lt_multi_os_dir; $lt_search_path_spec " in- "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)- lt_multi_os_dir=- ;;- esac- for lt_sys_path in $lt_search_path_spec; do- if test -d "$lt_sys_path$lt_multi_os_dir"; then- lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"- elif test -n "$lt_multi_os_dir"; then- test -d "$lt_sys_path" && \- lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"- fi- done- lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '-BEGIN {RS = " "; FS = "/|\n";} {- lt_foo = "";- lt_count = 0;- for (lt_i = NF; lt_i > 0; lt_i--) {- if ($lt_i != "" && $lt_i != ".") {- if ($lt_i == "..") {- lt_count++;- } else {- if (lt_count == 0) {- lt_foo = "/" $lt_i lt_foo;- } else {- lt_count--;- }- }- }- }- if (lt_foo != "") { lt_freq[lt_foo]++; }- if (lt_freq[lt_foo] == 1) { print lt_foo; }-}'`- # AWK program above erroneously prepends '/' to C:/dos/paths- # for these hosts.- case $host_os in- mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\- $SED 's|/\([A-Za-z]:\)|\1|g'` ;;- esac- sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`-else- sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"-fi-library_names_spec=-libname_spec='lib$name'-soname_spec=-shrext_cmds=.so-postinstall_cmds=-postuninstall_cmds=-finish_cmds=-finish_eval=-shlibpath_var=-shlibpath_overrides_runpath=unknown-version_type=none-dynamic_linker="$host_os ld.so"-sys_lib_dlsearch_path_spec="/lib /usr/lib"-need_lib_prefix=unknown-hardcode_into_libs=no--# when you set need_version to no, make sure it does not cause -set_version-# flags to be left without arguments-need_version=unknown----case $host_os in-aix3*)- version_type=linux # correct to gnu/linux during the next big refactor- library_names_spec='$libname$release$shared_ext$versuffix $libname.a'- shlibpath_var=LIBPATH-- # AIX 3 has no versioning support, so we append a major version to the name.- soname_spec='$libname$release$shared_ext$major'- ;;--aix[4-9]*)- version_type=linux # correct to gnu/linux during the next big refactor- need_lib_prefix=no- need_version=no- hardcode_into_libs=yes- if test ia64 = "$host_cpu"; then- # AIX 5 supports IA64- library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'- shlibpath_var=LD_LIBRARY_PATH- else- # With GCC up to 2.95.x, collect2 would create an import file- # for dependence libraries. The import file would start with- # the line '#! .'. This would cause the generated library to- # depend on '.', always an invalid library. This was fixed in- # development snapshots of GCC prior to 3.0.- case $host_os in- aix4 | aix4.[01] | aix4.[01].*)- if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'- echo ' yes '- echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then- :- else- can_build_shared=no- fi- ;;- esac- # Using Import Files as archive members, it is possible to support- # filename-based versioning of shared library archives on AIX. While- # this would work for both with and without runtime linking, it will- # prevent static linking of such archives. So we do filename-based- # shared library versioning with .so extension only, which is used- # when both runtime linking and shared linking is enabled.- # Unfortunately, runtime linking may impact performance, so we do- # not want this to be the default eventually. Also, we use the- # versioned .so libs for executables only if there is the -brtl- # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.- # To allow for filename-based versioning support, we need to create- # libNAME.so.V as an archive file, containing:- # *) an Import File, referring to the versioned filename of the- # archive as well as the shared archive member, telling the- # bitwidth (32 or 64) of that shared object, and providing the- # list of exported symbols of that shared object, eventually- # decorated with the 'weak' keyword- # *) the shared object with the F_LOADONLY flag set, to really avoid- # it being seen by the linker.- # At run time we better use the real file rather than another symlink,- # but for link time we create the symlink libNAME.so -> libNAME.so.V-- case $with_aix_soname,$aix_use_runtimelinking in- # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct- # soname into executable. Probably we can add versioning support to- # collect2, so additional links can be useful in future.- aix,yes) # traditional libtool- dynamic_linker='AIX unversionable lib.so'- # If using run time linking (on AIX 4.2 or later) use lib<name>.so- # instead of lib<name>.a to let people know that these are not- # typical AIX shared libraries.- library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'- ;;- aix,no) # traditional AIX only- dynamic_linker='AIX lib.a(lib.so.V)'- # We preserve .a as extension for shared libraries through AIX4.2- # and later when we are not doing run time linking.- library_names_spec='$libname$release.a $libname.a'- soname_spec='$libname$release$shared_ext$major'- ;;- svr4,*) # full svr4 only- dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"- library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'- # We do not specify a path in Import Files, so LIBPATH fires.- shlibpath_overrides_runpath=yes- ;;- *,yes) # both, prefer svr4- dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"- library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'- # unpreferred sharedlib libNAME.a needs extra handling- postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'- postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'- # We do not specify a path in Import Files, so LIBPATH fires.- shlibpath_overrides_runpath=yes- ;;- *,no) # both, prefer aix- dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"- library_names_spec='$libname$release.a $libname.a'- soname_spec='$libname$release$shared_ext$major'- # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling- postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'- postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'- ;;- esac- shlibpath_var=LIBPATH- fi- ;;--amigaos*)- case $host_cpu in- powerpc)- # Since July 2007 AmigaOS4 officially supports .so libraries.- # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.- library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'- ;;- m68k)- library_names_spec='$libname.ixlibrary $libname.a'- # Create ${libname}_ixlibrary.a entries in /sys/libs.- finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'- ;;- esac- ;;--beos*)- library_names_spec='$libname$shared_ext'- dynamic_linker="$host_os ld.so"- shlibpath_var=LIBRARY_PATH- ;;--bsdi[45]*)- version_type=linux # correct to gnu/linux during the next big refactor- need_version=no- library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'- soname_spec='$libname$release$shared_ext$major'- finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'- shlibpath_var=LD_LIBRARY_PATH- sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"- sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"- # the default ld.so.conf also contains /usr/contrib/lib and- # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow- # libtool to hard-code these into programs- ;;--cygwin* | mingw* | windows* | pw32* | cegcc*)- version_type=windows- shrext_cmds=.dll- need_version=no- need_lib_prefix=no-- case $GCC,$cc_basename in- yes,*)- # gcc- library_names_spec='$libname.dll.a'- # DLL is installed to $(libdir)/../bin by postinstall_cmds- # If user builds GCC with multilib enabled,- # it should just install on $(libdir)- # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.- if test xyes = x"$multilib"; then- postinstall_cmds='base_file=`basename \$file`~- dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~- dldir=$destdir/`dirname \$dlpath`~- $install_prog $dir/$dlname $destdir/$dlname~- chmod a+x $destdir/$dlname~- if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then- eval '\''$striplib $destdir/$dlname'\'' || exit \$?;- fi'- else- postinstall_cmds='base_file=`basename \$file`~- dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~- dldir=$destdir/`dirname \$dlpath`~- test -d \$dldir || mkdir -p \$dldir~- $install_prog $dir/$dlname \$dldir/$dlname~- chmod a+x \$dldir/$dlname~- if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then- eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;- fi'- fi- postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~- dlpath=$dir/\$dldll~- $RM \$dlpath'- shlibpath_overrides_runpath=yes-- case $host_os in- cygwin*)- # Cygwin DLLs use 'cyg' prefix rather than 'lib'- soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'-- sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"- ;;- mingw* | windows* | cegcc*)- # MinGW DLLs use traditional 'lib' prefix- soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'- ;;- pw32*)- # pw32 DLLs use 'pw' prefix rather than 'lib'- library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'- ;;- esac- dynamic_linker='Win32 ld.exe'- ;;-- *,cl* | *,icl*)- # Native MSVC or ICC- libname_spec='$name'- soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'- library_names_spec='$libname.dll.lib'-- case $build_os in- mingw* | windows*)- sys_lib_search_path_spec=- lt_save_ifs=$IFS- IFS=';'- for lt_path in $LIB- do- IFS=$lt_save_ifs- # Let DOS variable expansion print the short 8.3 style file name.- lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`- sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"- done- IFS=$lt_save_ifs- # Convert to MSYS style.- sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`- ;;- cygwin*)- # Convert to unix form, then to dos form, then back to unix form- # but this time dos style (no spaces!) so that the unix form looks- # like /cygdrive/c/PROGRA~1:/cygdr...- sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`- sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`- sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`- ;;- *)- sys_lib_search_path_spec=$LIB- if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then- # It is most probably a Windows format PATH.- sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`- else- sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`- fi- # FIXME: find the short name or the path components, as spaces are- # common. (e.g. "Program Files" -> "PROGRA~1")- ;;- esac-- # DLL is installed to $(libdir)/../bin by postinstall_cmds- postinstall_cmds='base_file=`basename \$file`~- dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~- dldir=$destdir/`dirname \$dlpath`~- test -d \$dldir || mkdir -p \$dldir~- $install_prog $dir/$dlname \$dldir/$dlname'- postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~- dlpath=$dir/\$dldll~- $RM \$dlpath'- shlibpath_overrides_runpath=yes- dynamic_linker='Win32 link.exe'- ;;-- *)- # Assume MSVC and ICC wrapper- library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'- dynamic_linker='Win32 ld.exe'- ;;- esac- # FIXME: first we should search . and the directory the executable is in- shlibpath_var=PATH- ;;--darwin* | rhapsody*)- dynamic_linker="$host_os dyld"- version_type=darwin- need_lib_prefix=no- need_version=no- library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'- soname_spec='$libname$release$major$shared_ext'- shlibpath_overrides_runpath=yes- shlibpath_var=DYLD_LIBRARY_PATH- shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'-- sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"- sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'- ;;--dgux*)- version_type=linux # correct to gnu/linux during the next big refactor- need_lib_prefix=no- need_version=no- library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'- soname_spec='$libname$release$shared_ext$major'- shlibpath_var=LD_LIBRARY_PATH- ;;--freebsd* | dragonfly* | midnightbsd*)- # DragonFly does not have aout. When/if they implement a new- # versioning mechanism, adjust this.- if test -x /usr/bin/objformat; then- objformat=`/usr/bin/objformat`- else- case $host_os in- freebsd[23].*) objformat=aout ;;- *) objformat=elf ;;- esac- fi- version_type=freebsd-$objformat- case $version_type in- freebsd-elf*)- library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'- soname_spec='$libname$release$shared_ext$major'- need_version=no- need_lib_prefix=no- ;;- freebsd-*)- library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'- need_version=yes- ;;- esac- case $host_cpu in- powerpc64)- # On FreeBSD bi-arch platforms, a different variable is used for 32-bit- # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.- cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */-int test_pointer_size[sizeof (void *) - 5];--_ACEOF-if ac_fn_c_try_compile "$LINENO"-then :- shlibpath_var=LD_LIBRARY_PATH-else case e in #(- e) shlibpath_var=LD_32_LIBRARY_PATH ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext- ;;- *)- shlibpath_var=LD_LIBRARY_PATH- ;;- esac- case $host_os in- freebsd2.*)- shlibpath_overrides_runpath=yes- ;;- freebsd3.[01]* | freebsdelf3.[01]*)- shlibpath_overrides_runpath=yes- hardcode_into_libs=yes- ;;- freebsd3.[2-9]* | freebsdelf3.[2-9]* | \- freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)- shlibpath_overrides_runpath=no- hardcode_into_libs=yes- ;;- *) # from 4.6 on, and DragonFly- shlibpath_overrides_runpath=yes- hardcode_into_libs=yes- ;;- esac- ;;--haiku*)- version_type=linux # correct to gnu/linux during the next big refactor- need_lib_prefix=no- need_version=no- dynamic_linker="$host_os runtime_loader"- library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'- soname_spec='$libname$release$shared_ext$major'- shlibpath_var=LIBRARY_PATH- shlibpath_overrides_runpath=no- sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'- sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'- hardcode_into_libs=no- ;;--hpux9* | hpux10* | hpux11*)- # Give a soname corresponding to the major version so that dld.sl refuses to- # link against other versions.- version_type=sunos- need_lib_prefix=no- need_version=no- case $host_cpu in- ia64*)- shrext_cmds='.so'- hardcode_into_libs=yes- dynamic_linker="$host_os dld.so"- shlibpath_var=LD_LIBRARY_PATH- shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.- library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'- soname_spec='$libname$release$shared_ext$major'- if test 32 = "$HPUX_IA64_MODE"; then- sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"- sys_lib_dlsearch_path_spec=/usr/lib/hpux32- else- sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"- sys_lib_dlsearch_path_spec=/usr/lib/hpux64- fi- ;;- hppa*64*)- shrext_cmds='.sl'- hardcode_into_libs=yes- dynamic_linker="$host_os dld.sl"- shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH- shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.- library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'- soname_spec='$libname$release$shared_ext$major'- sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"- sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec- ;;- *)- shrext_cmds='.sl'- dynamic_linker="$host_os dld.sl"- shlibpath_var=SHLIB_PATH- shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH- library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'- soname_spec='$libname$release$shared_ext$major'- ;;- esac- # HP-UX runs *really* slowly unless shared libraries are mode 555, ...- postinstall_cmds='chmod 555 $lib'- # or fails outright, so override atomically:- install_override_mode=555- ;;--interix[3-9]*)- version_type=linux # correct to gnu/linux during the next big refactor- need_lib_prefix=no- need_version=no- library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'- soname_spec='$libname$release$shared_ext$major'- dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'- shlibpath_var=LD_LIBRARY_PATH- shlibpath_overrides_runpath=no- hardcode_into_libs=yes- ;;--irix5* | irix6* | nonstopux*)- case $host_os in- nonstopux*) version_type=nonstopux ;;- *)- if test yes = "$lt_cv_prog_gnu_ld"; then- version_type=linux # correct to gnu/linux during the next big refactor- else- version_type=irix- fi ;;- esac- need_lib_prefix=no- need_version=no- soname_spec='$libname$release$shared_ext$major'- library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'- case $host_os in- irix5* | nonstopux*)- libsuff= shlibsuff=- ;;- *)- case $LD in # libtool.m4 will add one of these switches to LD- *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")- libsuff= shlibsuff= libmagic=32-bit;;- *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")- libsuff=32 shlibsuff=N32 libmagic=N32;;- *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")- libsuff=64 shlibsuff=64 libmagic=64-bit;;- *) libsuff= shlibsuff= libmagic=never-match;;- esac- ;;- esac- shlibpath_var=LD_LIBRARY${shlibsuff}_PATH- shlibpath_overrides_runpath=no- sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"- sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"- hardcode_into_libs=yes- ;;--# No shared lib support for Linux oldld, aout, or coff.-linux*oldld* | linux*aout* | linux*coff*)- dynamic_linker=no- ;;--linux*android*)- version_type=none # Android doesn't support versioned libraries.- need_lib_prefix=no- need_version=no- library_names_spec='$libname$release$shared_ext $libname$shared_ext'- soname_spec='$libname$release$shared_ext'- finish_cmds=- shlibpath_var=LD_LIBRARY_PATH- shlibpath_overrides_runpath=yes-- # This implies no fast_install, which is unacceptable.- # Some rework will be needed to allow for fast_install- # before this can be enabled.- hardcode_into_libs=yes-- dynamic_linker='Android linker'- # -rpath works at least for libraries that are not overridden by- # libraries installed in system locations.- hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'- ;;--# This must be glibc/ELF.-linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)- version_type=linux # correct to gnu/linux during the next big refactor- need_lib_prefix=no- need_version=no- library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'- soname_spec='$libname$release$shared_ext$major'- finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'- shlibpath_var=LD_LIBRARY_PATH- shlibpath_overrides_runpath=no-- # Some binutils ld are patched to set DT_RUNPATH- if test ${lt_cv_shlibpath_overrides_runpath+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) lt_cv_shlibpath_overrides_runpath=no- save_LDFLAGS=$LDFLAGS- save_libdir=$libdir- eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \- LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""- cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */--int-main (void)-{-- ;- return 0;-}-_ACEOF-if ac_fn_c_try_link "$LINENO"-then :- if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null-then :- lt_cv_shlibpath_overrides_runpath=yes-fi-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam \- conftest$ac_exeext conftest.$ac_ext- LDFLAGS=$save_LDFLAGS- libdir=$save_libdir- ;;-esac-fi-- shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath-- # This implies no fast_install, which is unacceptable.- # Some rework will be needed to allow for fast_install- # before this can be enabled.- hardcode_into_libs=yes-- # Ideally, we could use ldconfig to report *all* directories which are- # searched for libraries, however this is still not possible. Aside from not- # being certain /sbin/ldconfig is available, command- # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,- # even though it is searched at run-time. Try to do the best guess by- # appending ld.so.conf contents (and includes) to the search path.- if test -f /etc/ld.so.conf; then- lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`- sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"- fi-- # We used to test for /lib/ld.so.1 and disable shared libraries on- # powerpc, because MkLinux only supported shared libraries with the- # GNU dynamic linker. Since this was broken with cross compilers,- # most powerpc-linux boxes support dynamic linking these days and- # people can always --disable-shared, the test was removed, and we- # assume the GNU/Linux dynamic linker is in use.- dynamic_linker='GNU/Linux ld.so'- ;;--netbsdelf*-gnu)- version_type=linux- need_lib_prefix=no- need_version=no- library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'- soname_spec='$libname$release$shared_ext$major'- shlibpath_var=LD_LIBRARY_PATH- shlibpath_overrides_runpath=no- hardcode_into_libs=yes- dynamic_linker='NetBSD ld.elf_so'- ;;--netbsd*)- version_type=sunos- need_lib_prefix=no- need_version=no- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then- library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'- dynamic_linker='NetBSD (a.out) ld.so'- else- library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'- soname_spec='$libname$release$shared_ext$major'- dynamic_linker='NetBSD ld.elf_so'- fi- shlibpath_var=LD_LIBRARY_PATH- shlibpath_overrides_runpath=yes- hardcode_into_libs=yes- ;;--*-mlibc)- version_type=linux # correct to gnu/linux during the next big refactor- need_lib_prefix=no- need_version=no- library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'- soname_spec='$libname$release$shared_ext$major'- dynamic_linker='mlibc ld.so'- shlibpath_var=LD_LIBRARY_PATH- shlibpath_overrides_runpath=no- hardcode_into_libs=yes- ;;--newsos6)- version_type=linux # correct to gnu/linux during the next big refactor- library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'- shlibpath_var=LD_LIBRARY_PATH- shlibpath_overrides_runpath=yes- ;;--*nto* | *qnx*)- version_type=qnx- need_lib_prefix=no- need_version=no- library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'- soname_spec='$libname$release$shared_ext$major'- shlibpath_var=LD_LIBRARY_PATH- shlibpath_overrides_runpath=no- hardcode_into_libs=yes- dynamic_linker='ldqnx.so'- ;;--openbsd*)- version_type=sunos- sys_lib_dlsearch_path_spec=/usr/lib- need_lib_prefix=no- if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then- need_version=no- else- need_version=yes- fi- library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'- shlibpath_var=LD_LIBRARY_PATH- shlibpath_overrides_runpath=yes- ;;--os2*)- libname_spec='$name'- version_type=windows- shrext_cmds=.dll- need_version=no- need_lib_prefix=no- # OS/2 can only load a DLL with a base name of 8 characters or less.- soname_spec='`test -n "$os2dllname" && libname="$os2dllname";- v=$($ECHO $release$versuffix | tr -d .-);- n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);- $ECHO $n$v`$shared_ext'- library_names_spec='${libname}_dll.$libext'- dynamic_linker='OS/2 ld.exe'- shlibpath_var=BEGINLIBPATH- sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"- sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec- postinstall_cmds='base_file=`basename \$file`~- dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~- dldir=$destdir/`dirname \$dlpath`~- test -d \$dldir || mkdir -p \$dldir~- $install_prog $dir/$dlname \$dldir/$dlname~- chmod a+x \$dldir/$dlname~- if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then- eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;- fi'- postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~- dlpath=$dir/\$dldll~- $RM \$dlpath'- ;;--osf3* | osf4* | osf5*)- version_type=osf- need_lib_prefix=no- need_version=no- soname_spec='$libname$release$shared_ext$major'- library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'- shlibpath_var=LD_LIBRARY_PATH- sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"- sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec- ;;--rdos*)- dynamic_linker=no- ;;--serenity*)- version_type=linux # correct to gnu/linux during the next big refactor- need_lib_prefix=no- need_version=no- library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'- soname_spec='$libname$release$shared_ext$major'- shlibpath_var=LD_LIBRARY_PATH- shlibpath_overrides_runpath=no- dynamic_linker='SerenityOS LibELF'- ;;--solaris*)- version_type=linux # correct to gnu/linux during the next big refactor- need_lib_prefix=no- need_version=no- library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'- soname_spec='$libname$release$shared_ext$major'- shlibpath_var=LD_LIBRARY_PATH- shlibpath_overrides_runpath=yes- hardcode_into_libs=yes- # ldd complains unless libraries are executable- postinstall_cmds='chmod +x $lib'- ;;--sunos4*)- version_type=sunos- library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'- finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'- shlibpath_var=LD_LIBRARY_PATH- shlibpath_overrides_runpath=yes- if test yes = "$with_gnu_ld"; then- need_lib_prefix=no- fi- need_version=yes- ;;--sysv4 | sysv4.3*)- version_type=linux # correct to gnu/linux during the next big refactor- library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'- soname_spec='$libname$release$shared_ext$major'- shlibpath_var=LD_LIBRARY_PATH- case $host_vendor in- sni)- shlibpath_overrides_runpath=no- need_lib_prefix=no- runpath_var=LD_RUN_PATH- ;;- siemens)- need_lib_prefix=no- ;;- motorola)- need_lib_prefix=no- need_version=no- shlibpath_overrides_runpath=no- sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'- ;;- esac- ;;--sysv4*MP*)- if test -d /usr/nec; then- version_type=linux # correct to gnu/linux during the next big refactor- library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'- soname_spec='$libname$shared_ext.$major'- shlibpath_var=LD_LIBRARY_PATH- fi- ;;--sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)- version_type=sco- need_lib_prefix=no- need_version=no- library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'- soname_spec='$libname$release$shared_ext$major'- shlibpath_var=LD_LIBRARY_PATH- shlibpath_overrides_runpath=yes- hardcode_into_libs=yes- if test yes = "$with_gnu_ld"; then- sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'- else- sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'- case $host_os in- sco3.2v5*)- sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"- ;;- esac- fi- sys_lib_dlsearch_path_spec='/usr/lib'- ;;--tpf*)- # TPF is a cross-target only. Preferred cross-host = GNU/Linux.- version_type=linux # correct to gnu/linux during the next big refactor- need_lib_prefix=no- need_version=no- library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'- shlibpath_var=LD_LIBRARY_PATH- shlibpath_overrides_runpath=no- hardcode_into_libs=yes- ;;--uts4*)- version_type=linux # correct to gnu/linux during the next big refactor- library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'- soname_spec='$libname$release$shared_ext$major'- shlibpath_var=LD_LIBRARY_PATH- ;;--emscripten*)- version_type=none- need_lib_prefix=no- need_version=no- library_names_spec='$libname$release$shared_ext'- soname_spec='$libname$release$shared_ext'- finish_cmds=- dynamic_linker="Emscripten linker"- lt_prog_compiler_wl=-lt_prog_compiler_pic=-lt_prog_compiler_static=--- if test yes = "$GCC"; then- lt_prog_compiler_wl='-Wl,'- lt_prog_compiler_static='-static'-- case $host_os in- aix*)- # All AIX code is PIC.- if test ia64 = "$host_cpu"; then- # AIX 5 now supports IA64 processor- lt_prog_compiler_static='-Bstatic'- fi- lt_prog_compiler_pic='-fPIC'- ;;-- amigaos*)- case $host_cpu in- powerpc)- # see comment about AmigaOS4 .so support- lt_prog_compiler_pic='-fPIC'- ;;- m68k)- # FIXME: we need at least 68020 code to build shared libraries, but- # adding the '-m68020' flag to GCC prevents building anything better,- # like '-m68040'.- lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'- ;;- esac- ;;-- beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)- # PIC is the default for these OSes.- ;;-- mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)- # This hack is so that the source file can tell whether it is being- # built for inclusion in a dll (and should export symbols for example).- # Although the cygwin gcc ignores -fPIC, still need this for old-style- # (--disable-auto-import) libraries- lt_prog_compiler_pic='-DDLL_EXPORT'- case $host_os in- os2*)- lt_prog_compiler_static='$wl-static'- ;;- esac- ;;-- darwin* | rhapsody*)- # PIC is the default on this platform- # Common symbols not allowed in MH_DYLIB files- lt_prog_compiler_pic='-fno-common'- ;;-- haiku*)- # PIC is the default for Haiku.- # The "-static" flag exists, but is broken.- lt_prog_compiler_static=- ;;-- hpux*)- # PIC is the default for 64-bit PA HP-UX, but not for 32-bit- # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag- # sets the default TLS model and affects inlining.- case $host_cpu in- hppa*64*)- # +Z the default- ;;- *)- lt_prog_compiler_pic='-fPIC'- ;;- esac- ;;-- interix[3-9]*)- # Interix 3.x gcc -fpic/-fPIC options generate broken code.- # Instead, we relocate shared libraries at runtime.- ;;-- msdosdjgpp*)- # Just because we use GCC doesn't mean we suddenly get shared libraries- # on systems that don't support them.- lt_prog_compiler_can_build_shared=no- enable_shared=no- ;;-- *nto* | *qnx*)- # QNX uses GNU C++, but need to define -shared option too, otherwise- # it will coredump.- lt_prog_compiler_pic='-fPIC -shared'- ;;-- sysv4*MP*)- if test -d /usr/nec; then- lt_prog_compiler_pic=-Kconform_pic- fi- ;;-- *)- lt_prog_compiler_pic='-fPIC'- ;;- esac-- case $cc_basename in- nvcc*) # Cuda Compiler Driver 2.2- lt_prog_compiler_wl='-Xlinker '- if test -n "$lt_prog_compiler_pic"; then- lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"- fi- ;;- esac- else- # PORTME Check for flag to pass linker flags through the system compiler.- case $host_os in- aix*)- lt_prog_compiler_wl='-Wl,'- if test ia64 = "$host_cpu"; then- # AIX 5 now supports IA64 processor- lt_prog_compiler_static='-Bstatic'- else- lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'- fi- ;;-- darwin* | rhapsody*)- # PIC is the default on this platform- # Common symbols not allowed in MH_DYLIB files- lt_prog_compiler_pic='-fno-common'- case $cc_basename in- nagfor*)- # NAG Fortran compiler- lt_prog_compiler_wl='-Wl,-Wl,,'- lt_prog_compiler_pic='-PIC'- lt_prog_compiler_static='-Bstatic'- ;;- esac- ;;-- mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)- # This hack is so that the source file can tell whether it is being- # built for inclusion in a dll (and should export symbols for example).- lt_prog_compiler_pic='-DDLL_EXPORT'- case $host_os in- os2*)- lt_prog_compiler_static='$wl-static'- ;;- esac- ;;-- hpux9* | hpux10* | hpux11*)- lt_prog_compiler_wl='-Wl,'- # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but- # not for PA HP-UX.- case $host_cpu in- hppa*64*|ia64*)- # +Z the default- ;;- *)- lt_prog_compiler_pic='+Z'- ;;- esac- # Is there a better lt_prog_compiler_static that works with the bundled CC?- lt_prog_compiler_static='$wl-a ${wl}archive'- ;;-- irix5* | irix6* | nonstopux*)- lt_prog_compiler_wl='-Wl,'- # PIC (with -KPIC) is the default.- lt_prog_compiler_static='-non_shared'- ;;-- linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)- case $cc_basename in- # old Intel for x86_64, which still supported -KPIC.- ecc*)- lt_prog_compiler_wl='-Wl,'- lt_prog_compiler_pic='-KPIC'- lt_prog_compiler_static='-static'- ;;- *flang* | ftn | f18* | f95*)- # Flang compiler.- lt_prog_compiler_wl='-Wl,'- lt_prog_compiler_pic='-fPIC'- lt_prog_compiler_static='-static'- ;;- # icc used to be incompatible with GCC.- # ICC 10 doesn't accept -KPIC any more.- icc* | ifort*)- lt_prog_compiler_wl='-Wl,'- lt_prog_compiler_pic='-fPIC'- lt_prog_compiler_static='-static'- ;;- # Lahey Fortran 8.1.- lf95*)- lt_prog_compiler_wl='-Wl,'- lt_prog_compiler_pic='--shared'- lt_prog_compiler_static='--static'- ;;- nagfor*)- # NAG Fortran compiler- lt_prog_compiler_wl='-Wl,-Wl,,'- lt_prog_compiler_pic='-PIC'- lt_prog_compiler_static='-Bstatic'- ;;- tcc*)- # Fabrice Bellard et al's Tiny C Compiler- lt_prog_compiler_wl='-Wl,'- lt_prog_compiler_pic='-fPIC'- lt_prog_compiler_static='-static'- ;;- pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)- # Portland Group compilers (*not* the Pentium gcc compiler,- # which looks to be a dead project)- lt_prog_compiler_wl='-Wl,'- lt_prog_compiler_pic='-fpic'- lt_prog_compiler_static='-Bstatic'- ;;- ccc*)- lt_prog_compiler_wl='-Wl,'- # All Alpha code is PIC.- lt_prog_compiler_static='-non_shared'- ;;- xl* | bgxl* | bgf* | mpixl*)- # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene- lt_prog_compiler_wl='-Wl,'- lt_prog_compiler_pic='-qpic'- lt_prog_compiler_static='-qstaticlink'- ;;- *)- case `$CC -V 2>&1 | $SED 5q` in- *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)- # Sun Fortran 8.3 passes all unrecognized flags to the linker- lt_prog_compiler_pic='-KPIC'- lt_prog_compiler_static='-Bstatic'- lt_prog_compiler_wl=''- ;;- *Sun\ F* | *Sun*Fortran*)- lt_prog_compiler_pic='-KPIC'- lt_prog_compiler_static='-Bstatic'- lt_prog_compiler_wl='-Qoption ld '- ;;- *Sun\ C*)- # Sun C 5.9- lt_prog_compiler_pic='-KPIC'- lt_prog_compiler_static='-Bstatic'- lt_prog_compiler_wl='-Wl,'- ;;- *Intel*\ [CF]*Compiler*)- lt_prog_compiler_wl='-Wl,'- lt_prog_compiler_pic='-fPIC'- lt_prog_compiler_static='-static'- ;;- *Portland\ Group*)- lt_prog_compiler_wl='-Wl,'- lt_prog_compiler_pic='-fpic'- lt_prog_compiler_static='-Bstatic'- ;;- esac- ;;- esac- ;;-- newsos6)- lt_prog_compiler_pic='-KPIC'- lt_prog_compiler_static='-Bstatic'- ;;-- *-mlibc)- lt_prog_compiler_wl='-Wl,'- lt_prog_compiler_pic='-fPIC'- lt_prog_compiler_static='-static'- ;;-- *nto* | *qnx*)- # QNX uses GNU C++, but need to define -shared option too, otherwise- # it will coredump.- lt_prog_compiler_pic='-fPIC -shared'- ;;-- osf3* | osf4* | osf5*)- lt_prog_compiler_wl='-Wl,'- # All OSF/1 code is PIC.- lt_prog_compiler_static='-non_shared'- ;;-- rdos*)- lt_prog_compiler_static='-non_shared'- ;;-- serenity*)- ;;-- solaris*)- lt_prog_compiler_pic='-KPIC'- lt_prog_compiler_static='-Bstatic'- case $cc_basename in- f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)- lt_prog_compiler_wl='-Qoption ld ';;- *)- lt_prog_compiler_wl='-Wl,';;- esac- ;;-- sunos4*)- lt_prog_compiler_wl='-Qoption ld '- lt_prog_compiler_pic='-PIC'- lt_prog_compiler_static='-Bstatic'- ;;-- sysv4 | sysv4.2uw2* | sysv4.3*)- lt_prog_compiler_wl='-Wl,'- lt_prog_compiler_pic='-KPIC'- lt_prog_compiler_static='-Bstatic'- ;;-- sysv4*MP*)- if test -d /usr/nec; then- lt_prog_compiler_pic='-Kconform_pic'- lt_prog_compiler_static='-Bstatic'- fi- ;;-- sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)- lt_prog_compiler_wl='-Wl,'- lt_prog_compiler_pic='-KPIC'- lt_prog_compiler_static='-Bstatic'- ;;-- unicos*)- lt_prog_compiler_wl='-Wl,'- lt_prog_compiler_can_build_shared=no- ;;-- uts4*)- lt_prog_compiler_pic='-pic'- lt_prog_compiler_static='-Bstatic'- ;;-- *)- lt_prog_compiler_can_build_shared=no- ;;- esac- fi--case $host_os in- # For platforms that do not support PIC, -DPIC is meaningless:- *djgpp*)- lt_prog_compiler_pic=- ;;- *)- lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"- ;;-esac--{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5-printf %s "checking for $compiler option to produce PIC... " >&6; }-if test ${lt_cv_prog_compiler_pic+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5-printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }-lt_prog_compiler_pic=$lt_cv_prog_compiler_pic--#-# Check to make sure the PIC flag actually works.-#-if test -n "$lt_prog_compiler_pic"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5-printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }-if test ${lt_cv_prog_compiler_pic_works+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) lt_cv_prog_compiler_pic_works=no- ac_outfile=conftest.$ac_objext- echo "$lt_simple_compile_test_code" > conftest.$ac_ext- lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment- # Insert the option either (1) after the last *FLAGS variable, or- # (2) before a word containing "conftest.", or (3) at the end.- # Note that $ac_compile itself does not contain backslashes and begins- # with a dollar sign (not a hyphen), so the echo should work correctly.- # The option is referenced via a variable to avoid confusing sed.- lt_compile=`echo "$ac_compile" | $SED \- -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \- -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \- -e 's:$: $lt_compiler_flag:'`- (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)- (eval "$lt_compile" 2>conftest.err)- ac_status=$?- cat conftest.err >&5- echo "$as_me:$LINENO: \$? = $ac_status" >&5- if (exit $ac_status) && test -s "$ac_outfile"; then- # The compiler can only warn and ignore the option if not recognized- # So say no if there are warnings other than the usual output.- $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp- $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2- if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then- lt_cv_prog_compiler_pic_works=yes- fi- fi- $RM conftest*- ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5-printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }--if test yes = "$lt_cv_prog_compiler_pic_works"; then- case $lt_prog_compiler_pic in- "" | " "*) ;;- *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;- esac-else- lt_prog_compiler_pic=- lt_prog_compiler_can_build_shared=no-fi--fi------#-# Check to make sure the static flag actually works.-#-wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5-printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }-if test ${lt_cv_prog_compiler_static_works+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) lt_cv_prog_compiler_static_works=no- save_LDFLAGS=$LDFLAGS- LDFLAGS="$LDFLAGS $lt_tmp_static_flag"- echo "$lt_simple_link_test_code" > conftest.$ac_ext- if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then- # The linker can only warn and ignore the option if not recognized- # So say no if there are warnings- if test -s conftest.err; then- # Append any errors to the config.log.- cat conftest.err 1>&5- $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp- $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2- if diff conftest.exp conftest.er2 >/dev/null; then- lt_cv_prog_compiler_static_works=yes- fi- else- lt_cv_prog_compiler_static_works=yes- fi- fi- $RM -r conftest*- LDFLAGS=$save_LDFLAGS- ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5-printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }--if test yes = "$lt_cv_prog_compiler_static_works"; then- :-else- lt_prog_compiler_static=-fi----='-fPIC'- archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'- archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'- archive_cmds_need_lc=no- no_undefined_flag=- ;;--*)- dynamic_linker=no- ;;-esac-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5-printf "%s\n" "$dynamic_linker" >&6; }-test no = "$dynamic_linker" && can_build_shared=no--variables_saved_for_relink="PATH $shlibpath_var $runpath_var"-if test yes = "$GCC"; then- variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"-fi--if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then- sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec-fi--if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then- sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec-fi--# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...-configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec--# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code-func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"--# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool-configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH-------------------------------------------------------------------------------------------------- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5-printf %s "checking how to hardcode library paths into programs... " >&6; }-hardcode_action=-if test -n "$hardcode_libdir_flag_spec" ||- test -n "$runpath_var" ||- test yes = "$hardcode_automatic"; then-- # We can hardcode non-existent directories.- if test no != "$hardcode_direct" &&- # If the only mechanism to avoid hardcoding is shlibpath_var, we- # have to relink, otherwise we might link with an installed library- # when we should be linking with a yet-to-be-installed one- ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&- test no != "$hardcode_minus_L"; then- # Linking always hardcodes the temporary library directory.- hardcode_action=relink- else- # We can link without hardcoding, and we can hardcode nonexisting dirs.- hardcode_action=immediate- fi-else- # We cannot hardcode anything, or else we can only hardcode existing- # directories.- hardcode_action=unsupported-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5-printf "%s\n" "$hardcode_action" >&6; }--if test relink = "$hardcode_action" ||- test yes = "$inherit_rpath"; then- # Fast installation is not supported- enable_fast_install=no-elif test yes = "$shlibpath_overrides_runpath" ||- test no = "$enable_shared"; then- # Fast installation is not necessary- enable_fast_install=needless-fi------- if test yes != "$enable_dlopen"; then- enable_dlopen=unknown- enable_dlopen_self=unknown- enable_dlopen_self_static=unknown-else- lt_cv_dlopen=no- lt_cv_dlopen_libs=-- case $host_os in- beos*)- lt_cv_dlopen=load_add_on- lt_cv_dlopen_libs=- lt_cv_dlopen_self=yes- ;;-- mingw* | windows* | pw32* | cegcc*)- lt_cv_dlopen=LoadLibrary- lt_cv_dlopen_libs=- ;;-- cygwin*)- lt_cv_dlopen=dlopen- lt_cv_dlopen_libs=- ;;-- darwin*)- # if libdl is installed we need to link against it- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5-printf %s "checking for dlopen in -ldl... " >&6; }-if test ${ac_cv_lib_dl_dlopen+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) ac_check_lib_save_LIBS=$LIBS-LIBS="-ldl $LIBS"-cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */--/* Override any GCC internal prototype to avoid an error.- Use char because int might match the return type of a GCC- builtin and then its argument prototype would still apply.- The 'extern "C"' is for builds by C++ compilers;- although this is not generally supported in C code supporting it here- has little cost and some practical benefit (sr 110532). */-#ifdef __cplusplus-extern "C"-#endif-char dlopen (void);-int-main (void)-{-return dlopen ();- ;- return 0;-}-_ACEOF-if ac_fn_c_try_link "$LINENO"-then :- ac_cv_lib_dl_dlopen=yes-else case e in #(- e) ac_cv_lib_dl_dlopen=no ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam \- conftest$ac_exeext conftest.$ac_ext-LIBS=$ac_check_lib_save_LIBS ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5-printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }-if test "x$ac_cv_lib_dl_dlopen" = xyes-then :- lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl-else case e in #(- e)- lt_cv_dlopen=dyld- lt_cv_dlopen_libs=- lt_cv_dlopen_self=yes- ;;-esac-fi-- ;;-- tpf*)- # Don't try to run any link tests for TPF. We know it's impossible- # because TPF is a cross-compiler, and we know how we open DSOs.- lt_cv_dlopen=dlopen- lt_cv_dlopen_libs=- lt_cv_dlopen_self=no- ;;-- *)- ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"-if test "x$ac_cv_func_shl_load" = xyes-then :- lt_cv_dlopen=shl_load-else case e in #(- e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5-printf %s "checking for shl_load in -ldld... " >&6; }-if test ${ac_cv_lib_dld_shl_load+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) ac_check_lib_save_LIBS=$LIBS-LIBS="-ldld $LIBS"-cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */--/* Override any GCC internal prototype to avoid an error.- Use char because int might match the return type of a GCC- builtin and then its argument prototype would still apply.- The 'extern "C"' is for builds by C++ compilers;- although this is not generally supported in C code supporting it here- has little cost and some practical benefit (sr 110532). */-#ifdef __cplusplus-extern "C"-#endif-char shl_load (void);-int-main (void)-{-return shl_load ();- ;- return 0;-}-_ACEOF-if ac_fn_c_try_link "$LINENO"-then :- ac_cv_lib_dld_shl_load=yes-else case e in #(- e) ac_cv_lib_dld_shl_load=no ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam \- conftest$ac_exeext conftest.$ac_ext-LIBS=$ac_check_lib_save_LIBS ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5-printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }-if test "x$ac_cv_lib_dld_shl_load" = xyes-then :- lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld-else case e in #(- e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"-if test "x$ac_cv_func_dlopen" = xyes-then :- lt_cv_dlopen=dlopen-else case e in #(- e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5-printf %s "checking for dlopen in -ldl... " >&6; }-if test ${ac_cv_lib_dl_dlopen+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) ac_check_lib_save_LIBS=$LIBS-LIBS="-ldl $LIBS"-cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */--/* Override any GCC internal prototype to avoid an error.- Use char because int might match the return type of a GCC- builtin and then its argument prototype would still apply.- The 'extern "C"' is for builds by C++ compilers;- although this is not generally supported in C code supporting it here- has little cost and some practical benefit (sr 110532). */-#ifdef __cplusplus-extern "C"-#endif-char dlopen (void);-int-main (void)-{-return dlopen ();- ;- return 0;-}-_ACEOF-if ac_fn_c_try_link "$LINENO"-then :- ac_cv_lib_dl_dlopen=yes-else case e in #(- e) ac_cv_lib_dl_dlopen=no ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam \- conftest$ac_exeext conftest.$ac_ext-LIBS=$ac_check_lib_save_LIBS ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5-printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }-if test "x$ac_cv_lib_dl_dlopen" = xyes-then :- lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl-else case e in #(- e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5-printf %s "checking for dlopen in -lsvld... " >&6; }-if test ${ac_cv_lib_svld_dlopen+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) ac_check_lib_save_LIBS=$LIBS-LIBS="-lsvld $LIBS"-cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */--/* Override any GCC internal prototype to avoid an error.- Use char because int might match the return type of a GCC- builtin and then its argument prototype would still apply.- The 'extern "C"' is for builds by C++ compilers;- although this is not generally supported in C code supporting it here- has little cost and some practical benefit (sr 110532). */-#ifdef __cplusplus-extern "C"-#endif-char dlopen (void);-int-main (void)-{-return dlopen ();- ;- return 0;-}-_ACEOF-if ac_fn_c_try_link "$LINENO"-then :- ac_cv_lib_svld_dlopen=yes-else case e in #(- e) ac_cv_lib_svld_dlopen=no ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam \- conftest$ac_exeext conftest.$ac_ext-LIBS=$ac_check_lib_save_LIBS ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5-printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }-if test "x$ac_cv_lib_svld_dlopen" = xyes-then :- lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld-else case e in #(- e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5-printf %s "checking for dld_link in -ldld... " >&6; }-if test ${ac_cv_lib_dld_dld_link+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) ac_check_lib_save_LIBS=$LIBS-LIBS="-ldld $LIBS"-cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */--/* Override any GCC internal prototype to avoid an error.- Use char because int might match the return type of a GCC- builtin and then its argument prototype would still apply.- The 'extern "C"' is for builds by C++ compilers;- although this is not generally supported in C code supporting it here- has little cost and some practical benefit (sr 110532). */-#ifdef __cplusplus-extern "C"-#endif-char dld_link (void);-int-main (void)-{-return dld_link ();- ;- return 0;-}-_ACEOF-if ac_fn_c_try_link "$LINENO"-then :- ac_cv_lib_dld_dld_link=yes-else case e in #(- e) ac_cv_lib_dld_dld_link=no ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam \- conftest$ac_exeext conftest.$ac_ext-LIBS=$ac_check_lib_save_LIBS ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5-printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }-if test "x$ac_cv_lib_dld_dld_link" = xyes-then :- lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld-fi-- ;;-esac-fi-- ;;-esac-fi-- ;;-esac-fi-- ;;-esac-fi-- ;;-esac-fi-- ;;- esac-- if test no = "$lt_cv_dlopen"; then- enable_dlopen=no- else- enable_dlopen=yes- fi-- case $lt_cv_dlopen in- dlopen)- save_CPPFLAGS=$CPPFLAGS- test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"-- save_LDFLAGS=$LDFLAGS- wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"-- save_LIBS=$LIBS- LIBS="$lt_cv_dlopen_libs $LIBS"-- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5-printf %s "checking whether a program can dlopen itself... " >&6; }-if test ${lt_cv_dlopen_self+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test yes = "$cross_compiling"; then :- lt_cv_dlopen_self=cross-else- lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2- lt_status=$lt_dlunknown- cat > conftest.$ac_ext <<_LT_EOF-#line $LINENO "configure"-#include "confdefs.h"--#if HAVE_DLFCN_H-#include <dlfcn.h>-#endif--#include <stdio.h>--#ifdef RTLD_GLOBAL-# define LT_DLGLOBAL RTLD_GLOBAL-#else-# ifdef DL_GLOBAL-# define LT_DLGLOBAL DL_GLOBAL-# else-# define LT_DLGLOBAL 0-# endif-#endif--/* We may have to define LT_DLLAZY_OR_NOW in the command line if we- find out it does not work in some platform. */-#ifndef LT_DLLAZY_OR_NOW-# ifdef RTLD_LAZY-# define LT_DLLAZY_OR_NOW RTLD_LAZY-# else-# ifdef DL_LAZY-# define LT_DLLAZY_OR_NOW DL_LAZY-# else-# ifdef RTLD_NOW-# define LT_DLLAZY_OR_NOW RTLD_NOW-# else-# ifdef DL_NOW-# define LT_DLLAZY_OR_NOW DL_NOW-# else-# define LT_DLLAZY_OR_NOW 0-# endif-# endif-# endif-# endif-#endif--/* When -fvisibility=hidden is used, assume the code has been annotated- correspondingly for the symbols needed. */-#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))-int fnord (void) __attribute__((visibility("default")));-#endif--int fnord (void) { return 42; }-int main (void)-{- void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);- int status = $lt_dlunknown;-- if (self)- {- if (dlsym (self,"fnord")) status = $lt_dlno_uscore;- else- {- if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;- else puts (dlerror ());- }- /* dlclose (self); */- }- else- puts (dlerror ());-- return status;-}-_LT_EOF- if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5- (eval $ac_link) 2>&5- ac_status=$?- printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5- test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then- (./conftest; exit; ) >&5 2>/dev/null- lt_status=$?- case x$lt_status in- x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;- x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;- x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;- esac- else :- # compilation failed- lt_cv_dlopen_self=no- fi-fi-rm -fr conftest*-- ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5-printf "%s\n" "$lt_cv_dlopen_self" >&6; }-- if test yes = "$lt_cv_dlopen_self"; then- wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5-printf %s "checking whether a statically linked program can dlopen itself... " >&6; }-if test ${lt_cv_dlopen_self_static+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test yes = "$cross_compiling"; then :- lt_cv_dlopen_self_static=cross-else- lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2- lt_status=$lt_dlunknown- cat > conftest.$ac_ext <<_LT_EOF-#line $LINENO "configure"-#include "confdefs.h"--#if HAVE_DLFCN_H-#include <dlfcn.h>-#endif--#include <stdio.h>--#ifdef RTLD_GLOBAL-# define LT_DLGLOBAL RTLD_GLOBAL-#else-# ifdef DL_GLOBAL-# define LT_DLGLOBAL DL_GLOBAL-# else-# define LT_DLGLOBAL 0-# endif-#endif--/* We may have to define LT_DLLAZY_OR_NOW in the command line if we- find out it does not work in some platform. */-#ifndef LT_DLLAZY_OR_NOW-# ifdef RTLD_LAZY-# define LT_DLLAZY_OR_NOW RTLD_LAZY-# else-# ifdef DL_LAZY-# define LT_DLLAZY_OR_NOW DL_LAZY-# else-# ifdef RTLD_NOW-# define LT_DLLAZY_OR_NOW RTLD_NOW-# else-# ifdef DL_NOW-# define LT_DLLAZY_OR_NOW DL_NOW-# else-# define LT_DLLAZY_OR_NOW 0-# endif-# endif-# endif-# endif-#endif--/* When -fvisibility=hidden is used, assume the code has been annotated- correspondingly for the symbols needed. */-#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))-int fnord (void) __attribute__((visibility("default")));-#endif--int fnord (void) { return 42; }-int main (void)-{- void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);- int status = $lt_dlunknown;-- if (self)- {- if (dlsym (self,"fnord")) status = $lt_dlno_uscore;- else- {- if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;- else puts (dlerror ());- }- /* dlclose (self); */- }- else- puts (dlerror ());-- return status;-}-_LT_EOF- if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5- (eval $ac_link) 2>&5- ac_status=$?- printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5- test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then- (./conftest; exit; ) >&5 2>/dev/null- lt_status=$?- case x$lt_status in- x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;- x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;- x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;- esac- else :- # compilation failed- lt_cv_dlopen_self_static=no- fi-fi-rm -fr conftest*-- ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5-printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }- fi-- CPPFLAGS=$save_CPPFLAGS- LDFLAGS=$save_LDFLAGS- LIBS=$save_LIBS- ;;- esac-- case $lt_cv_dlopen_self in- yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;- *) enable_dlopen_self=unknown ;;- esac-- case $lt_cv_dlopen_self_static in- yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;- *) enable_dlopen_self_static=unknown ;;- esac-fi------------------striplib=-old_striplib=-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5-printf %s "checking whether stripping libraries is possible... " >&6; }-if test -z "$STRIP"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-else- if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then- old_striplib="$STRIP --strip-debug"- striplib="$STRIP --strip-unneeded"- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5-printf "%s\n" "yes" >&6; }- else- case $host_os in- darwin*)- # FIXME - insert some real tests, host_os isn't really good enough- striplib="$STRIP -x"- old_striplib="$STRIP -S"- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5-printf "%s\n" "yes" >&6; }- ;;- freebsd*)- if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then- old_striplib="$STRIP --strip-debug"- striplib="$STRIP --strip-unneeded"- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5-printf "%s\n" "yes" >&6; }- else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }- fi- ;;- *)- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }- ;;- esac- fi-fi------------- # Report what library types will actually be built- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5-printf %s "checking if libtool supports shared libraries... " >&6; }- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5-printf "%s\n" "$can_build_shared" >&6; }-- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5-printf %s "checking whether to build shared libraries... " >&6; }- test no = "$can_build_shared" && enable_shared=no-- # On AIX, shared libraries and static libraries use the same namespace, and- # are all built from PIC.- case $host_os in- aix3*)- test yes = "$enable_shared" && enable_static=no- if test -n "$RANLIB"; then- archive_cmds="$archive_cmds~\$RANLIB \$lib"- postinstall_cmds='$RANLIB $lib'- fi- ;;-- aix[4-9]*)- if test ia64 != "$host_cpu"; then- case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in- yes,aix,yes) ;; # shared object as lib.so file only- yes,svr4,*) ;; # shared object as lib.so archive member only- yes,*) enable_static=no ;; # shared object in lib.a archive as well- esac- fi- ;;- esac- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5-printf "%s\n" "$enable_shared" >&6; }-- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5-printf %s "checking whether to build static libraries... " >&6; }- # Make sure either enable_shared or enable_static is yes.- test yes = "$enable_shared" || enable_static=yes- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5-printf "%s\n" "$enable_static" >&6; }-----fi-ac_ext=c-ac_cpp='$CPP $CPPFLAGS'-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'-ac_compiler_gnu=$ac_cv_c_compiler_gnu--CC=$lt_save_CC---------------- ac_config_commands="$ac_config_commands libtool"-----# Only expand once:---if test -n "$ac_tool_prefix"; then- # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.-set dummy ${ac_tool_prefix}strip; ac_word=$2-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5-printf %s "checking for $ac_word... " >&6; }-if test ${ac_cv_prog_STRIP+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test -n "$STRIP"; then- ac_cv_prog_STRIP="$STRIP" # Let the user override the test.-else-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_exec_ext in '' $ac_executable_extensions; do- if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then- ac_cv_prog_STRIP="${ac_tool_prefix}strip"- printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5- break 2- fi-done- done-IFS=$as_save_IFS--fi ;;-esac-fi-STRIP=$ac_cv_prog_STRIP-if test -n "$STRIP"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5-printf "%s\n" "$STRIP" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-fi---fi-if test -z "$ac_cv_prog_STRIP"; then- ac_ct_STRIP=$STRIP- # Extract the first word of "strip", so it can be a program name with args.-set dummy strip; ac_word=$2-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5-printf %s "checking for $ac_word... " >&6; }-if test ${ac_cv_prog_ac_ct_STRIP+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test -n "$ac_ct_STRIP"; then- ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.-else-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_exec_ext in '' $ac_executable_extensions; do- if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then- ac_cv_prog_ac_ct_STRIP="strip"- printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5- break 2- fi-done- done-IFS=$as_save_IFS--fi ;;-esac-fi-ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP-if test -n "$ac_ct_STRIP"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5-printf "%s\n" "$ac_ct_STRIP" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-fi-- if test "x$ac_ct_STRIP" = x; then- STRIP=""- else- case $cross_compiling:$ac_tool_warned in-yes:)-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5-printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}-ac_tool_warned=yes ;;-esac- STRIP=$ac_ct_STRIP- fi-else- STRIP="$ac_cv_prog_STRIP"-fi--- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5-printf %s "checking for a race-free mkdir -p... " >&6; }-if test -z "$MKDIR_P"; then- if test ${ac_cv_path_mkdir+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_prog in mkdir gmkdir; do- for ac_exec_ext in '' $ac_executable_extensions; do- as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue- case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(- 'mkdir ('*'coreutils) '* | \- *'BusyBox '* | \- 'mkdir (fileutils) '4.1*)- ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext- break 3;;- esac- done- done- done-IFS=$as_save_IFS- ;;-esac-fi-- test -d ./--version && rmdir ./--version- if test ${ac_cv_path_mkdir+y}; then- MKDIR_P="$ac_cv_path_mkdir -p"- else- # As a last resort, use plain mkdir -p,- # in the hope it doesn't have the bugs of ancient mkdir.- MKDIR_P='mkdir -p'- fi-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5-printf "%s\n" "$MKDIR_P" >&6; }----# Set up defines needed before including any headers-case $host in- *mingw* | *cygwin* | *msys* )--cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */-#include <windows.h>- #ifdef _WIN32_WINNT- # error _WIN32_WINNT already defined- #endif--int-main (void)-{-;- ;- return 0;-}--_ACEOF-if ac_fn_c_try_cpp "$LINENO"-then :---printf "%s\n" "#define _WIN32_WINNT 0x0502" >>confdefs.h---printf "%s\n" "#define NTDDI_VERSION 0x05020000" >>confdefs.h---fi-rm -f conftest.err conftest.i conftest.$ac_ext- cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */-#include <windows.h>- #ifdef WINVER- # error WINVER already defined- #endif--int-main (void)-{-;- ;- return 0;-}--_ACEOF-if ac_fn_c_try_cpp "$LINENO"-then :---printf "%s\n" "#define WINVER 0x0502" >>confdefs.h---fi-rm -f conftest.err conftest.i conftest.$ac_ext- ;;-esac--# Checks for header files.-ac_header_dirent=no-for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do- as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"`-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5-printf %s "checking for $ac_hdr that defines DIR... " >&6; }-if eval test \${$as_ac_Header+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */-#include <sys/types.h>-#include <$ac_hdr>--int-main (void)-{-if ((DIR *) 0)-return 0;- ;- return 0;-}-_ACEOF-if ac_fn_c_try_compile "$LINENO"-then :- eval "$as_ac_Header=yes"-else case e in #(- e) eval "$as_ac_Header=no" ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;-esac-fi-eval ac_res=\$$as_ac_Header- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5-printf "%s\n" "$ac_res" >&6; }-if eval test \"x\$"$as_ac_Header"\" = x"yes"-then :- cat >>confdefs.h <<_ACEOF-#define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1-_ACEOF--ac_header_dirent=$ac_hdr; break-fi--done-# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.-if test $ac_header_dirent = dirent.h; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5-printf %s "checking for library containing opendir... " >&6; }-if test ${ac_cv_search_opendir+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) ac_func_search_save_LIBS=$LIBS-cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */--/* Override any GCC internal prototype to avoid an error.- Use char because int might match the return type of a GCC- builtin and then its argument prototype would still apply.- The 'extern "C"' is for builds by C++ compilers;- although this is not generally supported in C code supporting it here- has little cost and some practical benefit (sr 110532). */-#ifdef __cplusplus-extern "C"-#endif-char opendir (void);-int-main (void)-{-return opendir ();- ;- return 0;-}-_ACEOF-for ac_lib in '' dir-do- if test -z "$ac_lib"; then- ac_res="none required"- else- ac_res=-l$ac_lib- LIBS="-l$ac_lib $ac_func_search_save_LIBS"- fi- if ac_fn_c_try_link "$LINENO"-then :- ac_cv_search_opendir=$ac_res-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam \- conftest$ac_exeext- if test ${ac_cv_search_opendir+y}-then :- break-fi-done-if test ${ac_cv_search_opendir+y}-then :--else case e in #(- e) ac_cv_search_opendir=no ;;-esac-fi-rm conftest.$ac_ext-LIBS=$ac_func_search_save_LIBS ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5-printf "%s\n" "$ac_cv_search_opendir" >&6; }-ac_res=$ac_cv_search_opendir-if test "$ac_res" != no-then :- test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"--fi--else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5-printf %s "checking for library containing opendir... " >&6; }-if test ${ac_cv_search_opendir+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) ac_func_search_save_LIBS=$LIBS-cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */--/* Override any GCC internal prototype to avoid an error.- Use char because int might match the return type of a GCC- builtin and then its argument prototype would still apply.- The 'extern "C"' is for builds by C++ compilers;- although this is not generally supported in C code supporting it here- has little cost and some practical benefit (sr 110532). */-#ifdef __cplusplus-extern "C"-#endif-char opendir (void);-int-main (void)-{-return opendir ();- ;- return 0;-}-_ACEOF-for ac_lib in '' x-do- if test -z "$ac_lib"; then- ac_res="none required"- else- ac_res=-l$ac_lib- LIBS="-l$ac_lib $ac_func_search_save_LIBS"- fi- if ac_fn_c_try_link "$LINENO"-then :- ac_cv_search_opendir=$ac_res-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam \- conftest$ac_exeext- if test ${ac_cv_search_opendir+y}-then :- break-fi-done-if test ${ac_cv_search_opendir+y}-then :--else case e in #(- e) ac_cv_search_opendir=no ;;-esac-fi-rm conftest.$ac_ext-LIBS=$ac_func_search_save_LIBS ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5-printf "%s\n" "$ac_cv_search_opendir" >&6; }-ac_res=$ac_cv_search_opendir-if test "$ac_res" != no-then :- test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"--fi--fi--{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5-printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }-if test ${ac_cv_header_sys_wait_h+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */-#include <sys/types.h>-#include <sys/wait.h>-#ifndef WEXITSTATUS-# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)-#endif-#ifndef WIFEXITED-# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)-#endif--int-main (void)-{- int s;- wait (&s);- s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;- ;- return 0;-}-_ACEOF-if ac_fn_c_try_compile "$LINENO"-then :- ac_cv_header_sys_wait_h=yes-else case e in #(- e) ac_cv_header_sys_wait_h=no ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5-printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; }-if test $ac_cv_header_sys_wait_h = yes; then--printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h--fi--ac_fn_c_check_header_compile "$LINENO" "acl/libacl.h" "ac_cv_header_acl_libacl_h" "$ac_includes_default"-if test "x$ac_cv_header_acl_libacl_h" = xyes-then :- printf "%s\n" "#define HAVE_ACL_LIBACL_H 1" >>confdefs.h--fi-ac_fn_c_check_header_compile "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"-if test "x$ac_cv_header_attr_xattr_h" = xyes-then :- printf "%s\n" "#define HAVE_ATTR_XATTR_H 1" >>confdefs.h--fi--ac_fn_c_check_header_compile "$LINENO" "copyfile.h" "ac_cv_header_copyfile_h" "$ac_includes_default"-if test "x$ac_cv_header_copyfile_h" = xyes-then :- printf "%s\n" "#define HAVE_COPYFILE_H 1" >>confdefs.h--fi-ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"-if test "x$ac_cv_header_ctype_h" = xyes-then :- printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h--fi--ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"-if test "x$ac_cv_header_errno_h" = xyes-then :- printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h--fi-ac_fn_c_check_header_compile "$LINENO" "ext2fs/ext2_fs.h" "ac_cv_header_ext2fs_ext2_fs_h" "$ac_includes_default"-if test "x$ac_cv_header_ext2fs_ext2_fs_h" = xyes-then :- printf "%s\n" "#define HAVE_EXT2FS_EXT2_FS_H 1" >>confdefs.h--fi-ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"-if test "x$ac_cv_header_fcntl_h" = xyes-then :- printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h--fi-ac_fn_c_check_header_compile "$LINENO" "fnmatch.h" "ac_cv_header_fnmatch_h" "$ac_includes_default"-if test "x$ac_cv_header_fnmatch_h" = xyes-then :- printf "%s\n" "#define HAVE_FNMATCH_H 1" >>confdefs.h--fi-ac_fn_c_check_header_compile "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"-if test "x$ac_cv_header_grp_h" = xyes-then :- printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h--fi---{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether EXT2_IOC_GETFLAGS is usable" >&5-printf %s "checking whether EXT2_IOC_GETFLAGS is usable... " >&6; }-if test ${ac_cv_have_decl_EXT2_IOC_GETFLAGS+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */-#include <sys/ioctl.h>-#include <ext2fs/ext2_fs.h>-int-main (void)-{-int x = EXT2_IOC_GETFLAGS- ;- return 0;-}-_ACEOF-if ac_fn_c_try_compile "$LINENO"-then :- ac_cv_have_decl_EXT2_IOC_GETFLAGS=yes-else case e in #(- e) ac_cv_have_decl_EXT2_IOC_GETFLAGS=no ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_EXT2_IOC_GETFLAGS" >&5-printf "%s\n" "$ac_cv_have_decl_EXT2_IOC_GETFLAGS" >&6; }--if test "x$ac_cv_have_decl_EXT2_IOC_GETFLAGS" = xyes-then :--printf "%s\n" "#define HAVE_WORKING_EXT2_IOC_GETFLAGS 1" >>confdefs.h--fi--ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"-if test "x$ac_cv_header_inttypes_h" = xyes-then :- printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h--fi-ac_fn_c_check_header_compile "$LINENO" "io.h" "ac_cv_header_io_h" "$ac_includes_default"-if test "x$ac_cv_header_io_h" = xyes-then :- printf "%s\n" "#define HAVE_IO_H 1" >>confdefs.h--fi-ac_fn_c_check_header_compile "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"-if test "x$ac_cv_header_langinfo_h" = xyes-then :- printf "%s\n" "#define HAVE_LANGINFO_H 1" >>confdefs.h--fi-ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"-if test "x$ac_cv_header_limits_h" = xyes-then :- printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h--fi--ac_fn_c_check_header_compile "$LINENO" "linux/fiemap.h" "ac_cv_header_linux_fiemap_h" "$ac_includes_default"-if test "x$ac_cv_header_linux_fiemap_h" = xyes-then :- printf "%s\n" "#define HAVE_LINUX_FIEMAP_H 1" >>confdefs.h--fi-ac_fn_c_check_header_compile "$LINENO" "linux/fs.h" "ac_cv_header_linux_fs_h" "$ac_includes_default"-if test "x$ac_cv_header_linux_fs_h" = xyes-then :- printf "%s\n" "#define HAVE_LINUX_FS_H 1" >>confdefs.h--fi-ac_fn_c_check_header_compile "$LINENO" "linux/magic.h" "ac_cv_header_linux_magic_h" "$ac_includes_default"-if test "x$ac_cv_header_linux_magic_h" = xyes-then :- printf "%s\n" "#define HAVE_LINUX_MAGIC_H 1" >>confdefs.h--fi-ac_fn_c_check_header_compile "$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default"-if test "x$ac_cv_header_linux_types_h" = xyes-then :- printf "%s\n" "#define HAVE_LINUX_TYPES_H 1" >>confdefs.h--fi---{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether FS_IOC_GETFLAGS is usable" >&5-printf %s "checking whether FS_IOC_GETFLAGS is usable... " >&6; }-if test ${ac_cv_have_decl_FS_IOC_GETFLAGS+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */-#include <sys/ioctl.h>-#include <linux/fs.h>-int-main (void)-{-int x = FS_IOC_GETFLAGS- ;- return 0;-}-_ACEOF-if ac_fn_c_try_compile "$LINENO"-then :- ac_cv_have_decl_FS_IOC_GETFLAGS=yes-else case e in #(- e) ac_cv_have_decl_FS_IOC_GETFLAGS=no ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_FS_IOC_GETFLAGS" >&5-printf "%s\n" "$ac_cv_have_decl_FS_IOC_GETFLAGS" >&6; }--if test "x$ac_cv_have_decl_FS_IOC_GETFLAGS" = xyes-then :--printf "%s\n" "#define HAVE_WORKING_FS_IOC_GETFLAGS 1" >>confdefs.h--fi--ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"-if test "x$ac_cv_header_locale_h" = xyes-then :- printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h--fi-ac_fn_c_check_header_compile "$LINENO" "membership.h" "ac_cv_header_membership_h" "$ac_includes_default"-if test "x$ac_cv_header_membership_h" = xyes-then :- printf "%s\n" "#define HAVE_MEMBERSHIP_H 1" >>confdefs.h--fi-ac_fn_c_check_header_compile "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"-if test "x$ac_cv_header_paths_h" = xyes-then :- printf "%s\n" "#define HAVE_PATHS_H 1" >>confdefs.h--fi-ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"-if test "x$ac_cv_header_poll_h" = xyes-then :- printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h--fi-ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"-if test "x$ac_cv_header_pthread_h" = xyes-then :- printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h--fi-ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"-if test "x$ac_cv_header_pwd_h" = xyes-then :- printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h--fi--ac_fn_c_check_header_compile "$LINENO" "readpassphrase.h" "ac_cv_header_readpassphrase_h" "$ac_includes_default"-if test "x$ac_cv_header_readpassphrase_h" = xyes-then :- printf "%s\n" "#define HAVE_READPASSPHRASE_H 1" >>confdefs.h--fi-ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"-if test "x$ac_cv_header_signal_h" = xyes-then :- printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h--fi-ac_fn_c_check_header_compile "$LINENO" "spawn.h" "ac_cv_header_spawn_h" "$ac_includes_default"-if test "x$ac_cv_header_spawn_h" = xyes-then :- printf "%s\n" "#define HAVE_SPAWN_H 1" >>confdefs.h--fi--ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"-if test "x$ac_cv_header_stdarg_h" = xyes-then :- printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h--fi-ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"-if test "x$ac_cv_header_stdint_h" = xyes-then :- printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h--fi-ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"-if test "x$ac_cv_header_stdlib_h" = xyes-then :- printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h--fi-ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"-if test "x$ac_cv_header_string_h" = xyes-then :- printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h--fi--ac_fn_c_check_header_compile "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"-if test "x$ac_cv_header_sys_acl_h" = xyes-then :- printf "%s\n" "#define HAVE_SYS_ACL_H 1" >>confdefs.h--fi-ac_fn_c_check_header_compile "$LINENO" "sys/cdefs.h" "ac_cv_header_sys_cdefs_h" "$ac_includes_default"-if test "x$ac_cv_header_sys_cdefs_h" = xyes-then :- printf "%s\n" "#define HAVE_SYS_CDEFS_H 1" >>confdefs.h--fi-ac_fn_c_check_header_compile "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"-if test "x$ac_cv_header_sys_ea_h" = xyes-then :- printf "%s\n" "#define HAVE_SYS_EA_H 1" >>confdefs.h--fi-ac_fn_c_check_header_compile "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"-if test "x$ac_cv_header_sys_extattr_h" = xyes-then :- printf "%s\n" "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h--fi--ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"-if test "x$ac_cv_header_sys_ioctl_h" = xyes-then :- printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h--fi-ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"-if test "x$ac_cv_header_sys_mkdev_h" = xyes-then :- printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h--fi-ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"-if test "x$ac_cv_header_sys_mount_h" = xyes-then :- printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h--fi--ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"-if test "x$ac_cv_header_sys_param_h" = xyes-then :- printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h--fi-ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"-if test "x$ac_cv_header_sys_poll_h" = xyes-then :- printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h--fi-ac_fn_c_check_header_compile "$LINENO" "sys/richacl.h" "ac_cv_header_sys_richacl_h" "$ac_includes_default"-if test "x$ac_cv_header_sys_richacl_h" = xyes-then :- printf "%s\n" "#define HAVE_SYS_RICHACL_H 1" >>confdefs.h--fi--ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"-if test "x$ac_cv_header_sys_select_h" = xyes-then :- printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h--fi-ac_fn_c_check_header_compile "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"-if test "x$ac_cv_header_sys_statfs_h" = xyes-then :- printf "%s\n" "#define HAVE_SYS_STATFS_H 1" >>confdefs.h--fi-ac_fn_c_check_header_compile "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"-if test "x$ac_cv_header_sys_statvfs_h" = xyes-then :- printf "%s\n" "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h--fi-ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"-if test "x$ac_cv_header_sys_sysmacros_h" = xyes-then :- printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h--fi--ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"-if test "x$ac_cv_header_sys_time_h" = xyes-then :- printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h--fi-ac_fn_c_check_header_compile "$LINENO" "sys/utime.h" "ac_cv_header_sys_utime_h" "$ac_includes_default"-if test "x$ac_cv_header_sys_utime_h" = xyes-then :- printf "%s\n" "#define HAVE_SYS_UTIME_H 1" >>confdefs.h--fi-ac_fn_c_check_header_compile "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"-if test "x$ac_cv_header_sys_utsname_h" = xyes-then :- printf "%s\n" "#define HAVE_SYS_UTSNAME_H 1" >>confdefs.h--fi-ac_fn_c_check_header_compile "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"-if test "x$ac_cv_header_sys_vfs_h" = xyes-then :- printf "%s\n" "#define HAVE_SYS_VFS_H 1" >>confdefs.h--fi-ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"-if test "x$ac_cv_header_sys_xattr_h" = xyes-then :- printf "%s\n" "#define HAVE_SYS_XATTR_H 1" >>confdefs.h--fi--ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"-if test "x$ac_cv_header_time_h" = xyes-then :- printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h--fi-ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"-if test "x$ac_cv_header_unistd_h" = xyes-then :- printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h--fi-ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"-if test "x$ac_cv_header_utime_h" = xyes-then :- printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h--fi-ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"-if test "x$ac_cv_header_wchar_h" = xyes-then :- printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h--fi-ac_fn_c_check_header_compile "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"-if test "x$ac_cv_header_wctype_h" = xyes-then :- printf "%s\n" "#define HAVE_WCTYPE_H 1" >>confdefs.h--fi--ac_fn_c_check_type "$LINENO" "suseconds_t" "ac_cv_type_suseconds_t" "$ac_includes_default"-if test "x$ac_cv_type_suseconds_t" = xyes-then :--fi--ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"-if test "x$ac_cv_header_windows_h" = xyes-then :- printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h--fi--# check windows.h first; the other headers require it.-ac_fn_c_check_header_compile "$LINENO" "wincrypt.h" "ac_cv_header_wincrypt_h" "#ifdef HAVE_WINDOWS_H-# include <windows.h>-#endif--"-if test "x$ac_cv_header_wincrypt_h" = xyes-then :- printf "%s\n" "#define HAVE_WINCRYPT_H 1" >>confdefs.h--fi-ac_fn_c_check_header_compile "$LINENO" "winioctl.h" "ac_cv_header_winioctl_h" "#ifdef HAVE_WINDOWS_H-# include <windows.h>-#endif--"-if test "x$ac_cv_header_winioctl_h" = xyes-then :- printf "%s\n" "#define HAVE_WINIOCTL_H 1" >>confdefs.h--fi---# Checks for libraries.--# Check whether --with-zlib was given.-if test ${with_zlib+y}-then :- withval=$with_zlib;-fi---if test "x$with_zlib" = "xyes" || test "$CABAL_FLAG_zlib" = 1; then- old_LIBS="$LIBS"- LIBS="$LIBS -lz"- cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */-- #include <zlib.h>- #if !defined(ZLIB_VERNUM)- // zlib 1.2.0 should work too, but it's difficult to test for.- // zlib 1.2.1 onwards have ZLIB_VERNUM, which is easy to check.- #error zlib >= 1.2.1 is required.- #endif- // Check that there's an inflate function.- int main(int argc, char **argv) { inflate(NULL, 0); return 0; }--_ACEOF-if ac_fn_c_try_link "$LINENO"-then :--printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h---printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h-- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found a suitable version of zlib (>= 1.2.1)" >&5-printf "%s\n" "found a suitable version of zlib (>= 1.2.1)" >&6; }--else case e in #(- e) as_fn_error $? "could not find a suitable version of zlib (>= 1.2.1)" "$LINENO" 5 ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam \- conftest$ac_exeext conftest.$ac_ext-fi---# Check whether --with-bz2lib was given.-if test ${with_bz2lib+y}-then :- withval=$with_bz2lib;-fi---if test "x$with_bz2lib" = "xyes" || test "$CABAL_FLAG_bz2lib" = 1; then- ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"-if test "x$ac_cv_header_bzlib_h" = xyes-then :- printf "%s\n" "#define HAVE_BZLIB_H 1" >>confdefs.h--fi-- case "$host_os" in- *mingw* | *cygwin* | *msys*)- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompressInit in -lbz2" >&5-printf %s "checking for BZ2_bzDecompressInit in -lbz2... " >&6; }- old_LIBS="$LIBS"- LIBS="-lbz2 $LIBS"- cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */-#include <bzlib.h>- int main() { return BZ2_bzDecompressInit(NULL, 0, 0); }-_ACEOF-if ac_fn_c_try_link "$LINENO"-then :- ac_cv_lib_bz2_BZ2_bzDecompressInit=yes-else case e in #(- e) ac_cv_lib_bz2_BZ2_bzDecompressInit=no ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam \- conftest$ac_exeext conftest.$ac_ext- LIBS="$old_LIBS"- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompressInit" >&5-printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzDecompressInit" >&6; }- if test "x$ac_cv_lib_bz2_BZ2_bzDecompressInit" = xyes; then--printf "%s\n" "#define HAVE_LIBBZ2 1" >>confdefs.h-- LIBS="-lbz2 $LIBS"- else- as_fn_error $? "Could not find a suitable version of bz2lib" "$LINENO" 5- fi- ;;- *)- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompressInit in -lbz2" >&5-printf %s "checking for BZ2_bzDecompressInit in -lbz2... " >&6; }-if test ${ac_cv_lib_bz2_BZ2_bzDecompressInit+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) ac_check_lib_save_LIBS=$LIBS-LIBS="-lbz2 $LIBS"-cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */--/* Override any GCC internal prototype to avoid an error.- Use char because int might match the return type of a GCC- builtin and then its argument prototype would still apply.- The 'extern "C"' is for builds by C++ compilers;- although this is not generally supported in C code supporting it here- has little cost and some practical benefit (sr 110532). */-#ifdef __cplusplus-extern "C"-#endif-char BZ2_bzDecompressInit (void);-int-main (void)-{-return BZ2_bzDecompressInit ();- ;- return 0;-}-_ACEOF-if ac_fn_c_try_link "$LINENO"-then :- ac_cv_lib_bz2_BZ2_bzDecompressInit=yes-else case e in #(- e) ac_cv_lib_bz2_BZ2_bzDecompressInit=no ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam \- conftest$ac_exeext conftest.$ac_ext-LIBS=$ac_check_lib_save_LIBS ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompressInit" >&5-printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzDecompressInit" >&6; }-if test "x$ac_cv_lib_bz2_BZ2_bzDecompressInit" = xyes-then :- printf "%s\n" "#define HAVE_LIBBZ2 1" >>confdefs.h-- LIBS="-lbz2 $LIBS"--fi-- ;;- esac-fi---------if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then- if test -n "$ac_tool_prefix"; then- # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.-set dummy ${ac_tool_prefix}pkg-config; ac_word=$2-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5-printf %s "checking for $ac_word... " >&6; }-if test ${ac_cv_path_PKG_CONFIG+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) case $PKG_CONFIG in- [\\/]* | ?:[\\/]*)- ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.- ;;- *)- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_exec_ext in '' $ac_executable_extensions; do- if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then- ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"- printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5- break 2- fi-done- done-IFS=$as_save_IFS-- ;;-esac ;;-esac-fi-PKG_CONFIG=$ac_cv_path_PKG_CONFIG-if test -n "$PKG_CONFIG"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5-printf "%s\n" "$PKG_CONFIG" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-fi---fi-if test -z "$ac_cv_path_PKG_CONFIG"; then- ac_pt_PKG_CONFIG=$PKG_CONFIG- # Extract the first word of "pkg-config", so it can be a program name with args.-set dummy pkg-config; ac_word=$2-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5-printf %s "checking for $ac_word... " >&6; }-if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) case $ac_pt_PKG_CONFIG in- [\\/]* | ?:[\\/]*)- ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.- ;;- *)- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_exec_ext in '' $ac_executable_extensions; do- if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then- ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"- printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5- break 2- fi-done- done-IFS=$as_save_IFS-- ;;-esac ;;-esac-fi-ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG-if test -n "$ac_pt_PKG_CONFIG"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5-printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-fi-- if test "x$ac_pt_PKG_CONFIG" = x; then- PKG_CONFIG=""- else- case $cross_compiling:$ac_tool_warned in-yes:)-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5-printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}-ac_tool_warned=yes ;;-esac- PKG_CONFIG=$ac_pt_PKG_CONFIG- fi-else- PKG_CONFIG="$ac_cv_path_PKG_CONFIG"-fi--fi-if test -n "$PKG_CONFIG"; then- _pkg_min_version=0.9.0- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5-printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }- if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5-printf "%s\n" "yes" >&6; }- else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }- PKG_CONFIG=""- fi-fi-if test -z "$PKG_CONFIG"; then- as_fn_error $? "pkg-config not found" "$LINENO" 5-fi-- if test "x$ac_cv_lib_b2_blake2sp_init" != "xyes"; then- INC_BLAKE2_TRUE=- INC_BLAKE2_FALSE='#'-else- INC_BLAKE2_TRUE='#'- INC_BLAKE2_FALSE=-fi----# Check whether --with-iconv was given.-if test ${with_iconv+y}-then :- withval=$with_iconv;-fi---if test "x$with_iconv" = "xyes" || test "$CABAL_FLAG_iconv" = 1; then-- if test "X$prefix" = "XNONE"; then- acl_final_prefix="$ac_default_prefix"- else- acl_final_prefix="$prefix"- fi- if test "X$exec_prefix" = "XNONE"; then- acl_final_exec_prefix='${prefix}'- else- acl_final_exec_prefix="$exec_prefix"- fi- acl_save_prefix="$prefix"- prefix="$acl_final_prefix"- eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"- prefix="$acl_save_prefix"---# Check whether --with-gnu-ld was given.-if test ${with_gnu_ld+y}-then :- withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes-else case e in #(- e) with_gnu_ld=no ;;-esac-fi--# Prepare PATH_SEPARATOR.-# The user is always right.-if test "${PATH_SEPARATOR+set}" != set; then- # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which- # contains only /bin. Note that ksh looks also at the FPATH variable,- # so we have to set that as well for the test.- PATH_SEPARATOR=:- (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \- && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \- || PATH_SEPARATOR=';'- }-fi-ac_prog=ld-if test "$GCC" = yes; then- # Check if gcc -print-prog-name=ld gives a path.- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5-printf %s "checking for ld used by GCC... " >&6; }- case $host in- *-*-mingw*)- # gcc leaves a trailing carriage return which upsets mingw- ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;- *)- ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;- esac- case $ac_prog in- # Accept absolute paths.- [\\/]* | [A-Za-z]:[\\/]*)- re_direlt='/[^/][^/]*/\.\./'- # Canonicalize the path of ld- ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`- while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do- ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`- done- test -z "$LD" && LD="$ac_prog"- ;;- "")- # If it fails, then pretend we aren't using GCC.- ac_prog=ld- ;;- *)- # If it is relative, then search for the first ld in PATH.- with_gnu_ld=unknown- ;;- esac-elif test "$with_gnu_ld" = yes; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5-printf %s "checking for GNU ld... " >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5-printf %s "checking for non-GNU ld... " >&6; }-fi-if test ${acl_cv_path_LD+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test -z "$LD"; then- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"- for ac_dir in $PATH; do- test -z "$ac_dir" && ac_dir=.- if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then- acl_cv_path_LD="$ac_dir/$ac_prog"- # Check to see if the program is GNU ld. I'd rather use --version,- # but apparently some GNU ld's only accept -v.- # Break only if it was the GNU/non-GNU ld that we prefer.- case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in- *GNU* | *'with BFD'*)- test "$with_gnu_ld" != no && break ;;- *)- test "$with_gnu_ld" != yes && break ;;- esac- fi- done- IFS="$ac_save_ifs"-else- acl_cv_path_LD="$LD" # Let the user override the test with a path.-fi ;;-esac-fi--LD="$acl_cv_path_LD"-if test -n "$LD"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5-printf "%s\n" "$LD" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-fi-test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5-printf %s "checking if the linker ($LD) is GNU ld... " >&6; }-if test ${acl_cv_prog_gnu_ld+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) # I'd rather use --version here, but apparently some GNU ld's only accept -v.-case `$LD -v 2>&1 </dev/null` in-*GNU* | *'with BFD'*)- acl_cv_prog_gnu_ld=yes ;;-*)- acl_cv_prog_gnu_ld=no ;;-esac ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5-printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }-with_gnu_ld=$acl_cv_prog_gnu_ld------ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5-printf %s "checking for shared library run path origin... " >&6; }-if test ${acl_cv_rpath+y}-then :- printf %s "(cached) " >&6-else case e in #(- e)- CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \- ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh- . ./conftest.sh- rm -f ./conftest.sh- acl_cv_rpath=done- ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5-printf "%s\n" "$acl_cv_rpath" >&6; }- wl="$acl_cv_wl"- acl_libext="$acl_cv_libext"- acl_shlibext="$acl_cv_shlibext"- acl_libname_spec="$acl_cv_libname_spec"- acl_library_names_spec="$acl_cv_library_names_spec"- acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"- acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"- acl_hardcode_direct="$acl_cv_hardcode_direct"- acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"- # Check whether --enable-rpath was given.-if test ${enable_rpath+y}-then :- enableval=$enable_rpath; :-else case e in #(- e) enable_rpath=yes ;;-esac-fi---{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5-printf %s "checking for egrep -e... " >&6; }-if test ${ac_cv_path_EGREP_TRADITIONAL+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test -z "$EGREP_TRADITIONAL"; then- ac_path_EGREP_TRADITIONAL_found=false- # Loop through the user's path and test for each of PROGNAME-LIST- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_prog in grep ggrep- do- for ac_exec_ext in '' $ac_executable_extensions; do- ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"- as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue-# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.- # Check for GNU $ac_path_EGREP_TRADITIONAL-case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(-*GNU*)- ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;-#(-*)- ac_count=0- printf %s 0123456789 >"conftest.in"- while :- do- cat "conftest.in" "conftest.in" >"conftest.tmp"- mv "conftest.tmp" "conftest.in"- cp "conftest.in" "conftest.nl"- printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"- "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break- diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break- as_fn_arith $ac_count + 1 && ac_count=$as_val- if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then- # Best one so far, save it but keep looking for a better one- ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"- ac_path_EGREP_TRADITIONAL_max=$ac_count- fi- # 10*(2^10) chars as input seems more than enough- test $ac_count -gt 10 && break- done- rm -f conftest.in conftest.tmp conftest.nl conftest.out;;-esac-- $ac_path_EGREP_TRADITIONAL_found && break 3- done- done- done-IFS=$as_save_IFS- if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then- :- fi-else- ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL-fi-- if test "$ac_cv_path_EGREP_TRADITIONAL"-then :- ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"-else case e in #(- e) if test -z "$EGREP_TRADITIONAL"; then- ac_path_EGREP_TRADITIONAL_found=false- # Loop through the user's path and test for each of PROGNAME-LIST- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_prog in egrep- do- for ac_exec_ext in '' $ac_executable_extensions; do- ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"- as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue-# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.- # Check for GNU $ac_path_EGREP_TRADITIONAL-case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(-*GNU*)- ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;-#(-*)- ac_count=0- printf %s 0123456789 >"conftest.in"- while :- do- cat "conftest.in" "conftest.in" >"conftest.tmp"- mv "conftest.tmp" "conftest.in"- cp "conftest.in" "conftest.nl"- printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"- "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break- diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break- as_fn_arith $ac_count + 1 && ac_count=$as_val- if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then- # Best one so far, save it but keep looking for a better one- ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"- ac_path_EGREP_TRADITIONAL_max=$ac_count- fi- # 10*(2^10) chars as input seems more than enough- test $ac_count -gt 10 && break- done- rm -f conftest.in conftest.tmp conftest.nl conftest.out;;-esac-- $ac_path_EGREP_TRADITIONAL_found && break 3- done- done- done-IFS=$as_save_IFS- if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then- as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5- fi-else- ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL-fi- ;;-esac-fi ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5-printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }- EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL---- acl_libdirstem=lib- acl_libdirstem2=- case "$host_os" in- solaris*)- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5-printf %s "checking for 64-bit host... " >&6; }-if test ${gl_cv_solaris_64bit+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */--#ifdef _LP64-sixtyfour bits-#endif--_ACEOF-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |- $EGREP_TRADITIONAL "sixtyfour bits" >/dev/null 2>&1-then :- gl_cv_solaris_64bit=yes-else case e in #(- e) gl_cv_solaris_64bit=no ;;-esac-fi-rm -rf conftest*-- ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5-printf "%s\n" "$gl_cv_solaris_64bit" >&6; }- if test $gl_cv_solaris_64bit = yes; then- acl_libdirstem=lib/64- case "$host_cpu" in- sparc*) acl_libdirstem2=lib/sparcv9 ;;- i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;- esac- fi- ;;- *)- searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`- if test -n "$searchpath"; then- acl_save_IFS="${IFS= }"; IFS=":"- for searchdir in $searchpath; do- if test -d "$searchdir"; then- case "$searchdir" in- */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;- */../ | */.. )- # Better ignore directories of this form. They are misleading.- ;;- *) searchdir=`cd "$searchdir" && pwd`- case "$searchdir" in- */lib64 ) acl_libdirstem=lib64 ;;- esac ;;- esac- fi- done- IFS="$acl_save_IFS"- fi- ;;- esac- test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"------------- use_additional=yes-- acl_save_prefix="$prefix"- prefix="$acl_final_prefix"- acl_save_exec_prefix="$exec_prefix"- exec_prefix="$acl_final_exec_prefix"-- eval additional_includedir=\"$includedir\"- eval additional_libdir=\"$libdir\"-- exec_prefix="$acl_save_exec_prefix"- prefix="$acl_save_prefix"---# Check whether --with-libiconv-prefix was given.-if test ${with_libiconv_prefix+y}-then :- withval=$with_libiconv_prefix;- if test "X$withval" = "Xno"; then- use_additional=no- else- if test "X$withval" = "X"; then-- acl_save_prefix="$prefix"- prefix="$acl_final_prefix"- acl_save_exec_prefix="$exec_prefix"- exec_prefix="$acl_final_exec_prefix"-- eval additional_includedir=\"$includedir\"- eval additional_libdir=\"$libdir\"-- exec_prefix="$acl_save_exec_prefix"- prefix="$acl_save_prefix"-- else- additional_includedir="$withval/include"- additional_libdir="$withval/$acl_libdirstem"- if test "$acl_libdirstem2" != "$acl_libdirstem" \- && ! test -d "$withval/$acl_libdirstem"; then- additional_libdir="$withval/$acl_libdirstem2"- fi- fi- fi--fi-- LIBICONV=- LTLIBICONV=- INCICONV=- LIBICONV_PREFIX=- HAVE_LIBICONV=- rpathdirs=- ltrpathdirs=- names_already_handled=- names_next_round='iconv '- while test -n "$names_next_round"; do- names_this_round="$names_next_round"- names_next_round=- for name in $names_this_round; do- already_handled=- for n in $names_already_handled; do- if test "$n" = "$name"; then- already_handled=yes- break- fi- done- if test -z "$already_handled"; then- names_already_handled="$names_already_handled $name"- uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`- eval value=\"\$HAVE_LIB$uppername\"- if test -n "$value"; then- if test "$value" = yes; then- eval value=\"\$LIB$uppername\"- test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"- eval value=\"\$LTLIB$uppername\"- test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"- else- :- fi- else- found_dir=- found_la=- found_so=- found_a=- eval libname=\"$acl_libname_spec\" # typically: libname=lib$name- if test -n "$acl_shlibext"; then- shrext=".$acl_shlibext" # typically: shrext=.so- else- shrext=- fi- if test $use_additional = yes; then- dir="$additional_libdir"- if test -n "$acl_shlibext"; then- if test -f "$dir/$libname$shrext"; then- found_dir="$dir"- found_so="$dir/$libname$shrext"- else- if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then- ver=`(cd "$dir" && \- for f in "$libname$shrext".*; do echo "$f"; done \- | sed -e "s,^$libname$shrext\\\\.,," \- | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \- | sed 1q ) 2>/dev/null`- if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then- found_dir="$dir"- found_so="$dir/$libname$shrext.$ver"- fi- else- eval library_names=\"$acl_library_names_spec\"- for f in $library_names; do- if test -f "$dir/$f"; then- found_dir="$dir"- found_so="$dir/$f"- break- fi- done- fi- fi- fi- if test "X$found_dir" = "X"; then- if test -f "$dir/$libname.$acl_libext"; then- found_dir="$dir"- found_a="$dir/$libname.$acl_libext"- fi- fi- if test "X$found_dir" != "X"; then- if test -f "$dir/$libname.la"; then- found_la="$dir/$libname.la"- fi- fi- fi- if test "X$found_dir" = "X"; then- for x in $LDFLAGS $LTLIBICONV; do-- acl_save_prefix="$prefix"- prefix="$acl_final_prefix"- acl_save_exec_prefix="$exec_prefix"- exec_prefix="$acl_final_exec_prefix"- eval x=\"$x\"- exec_prefix="$acl_save_exec_prefix"- prefix="$acl_save_prefix"-- case "$x" in- -L*)- dir=`echo "X$x" | sed -e 's/^X-L//'`- if test -n "$acl_shlibext"; then- if test -f "$dir/$libname$shrext"; then- found_dir="$dir"- found_so="$dir/$libname$shrext"- else- if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then- ver=`(cd "$dir" && \- for f in "$libname$shrext".*; do echo "$f"; done \- | sed -e "s,^$libname$shrext\\\\.,," \- | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \- | sed 1q ) 2>/dev/null`- if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then- found_dir="$dir"- found_so="$dir/$libname$shrext.$ver"- fi- else- eval library_names=\"$acl_library_names_spec\"- for f in $library_names; do- if test -f "$dir/$f"; then- found_dir="$dir"- found_so="$dir/$f"- break- fi- done- fi- fi- fi- if test "X$found_dir" = "X"; then- if test -f "$dir/$libname.$acl_libext"; then- found_dir="$dir"- found_a="$dir/$libname.$acl_libext"- fi- fi- if test "X$found_dir" != "X"; then- if test -f "$dir/$libname.la"; then- found_la="$dir/$libname.la"- fi- fi- ;;- esac- if test "X$found_dir" != "X"; then- break- fi- done- fi- if test "X$found_dir" != "X"; then- LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"- if test "X$found_so" != "X"; then- if test "$enable_rpath" = no \- || test "X$found_dir" = "X/usr/$acl_libdirstem" \- || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then- LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"- else- haveit=- for x in $ltrpathdirs; do- if test "X$x" = "X$found_dir"; then- haveit=yes- break- fi- done- if test -z "$haveit"; then- ltrpathdirs="$ltrpathdirs $found_dir"- fi- if test "$acl_hardcode_direct" = yes; then- LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"- else- if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then- LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"- haveit=- for x in $rpathdirs; do- if test "X$x" = "X$found_dir"; then- haveit=yes- break- fi- done- if test -z "$haveit"; then- rpathdirs="$rpathdirs $found_dir"- fi- else- haveit=- for x in $LDFLAGS $LIBICONV; do-- acl_save_prefix="$prefix"- prefix="$acl_final_prefix"- acl_save_exec_prefix="$exec_prefix"- exec_prefix="$acl_final_exec_prefix"- eval x=\"$x\"- exec_prefix="$acl_save_exec_prefix"- prefix="$acl_save_prefix"-- if test "X$x" = "X-L$found_dir"; then- haveit=yes- break- fi- done- if test -z "$haveit"; then- LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"- fi- if test "$acl_hardcode_minus_L" != no; then- LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"- else- LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"- fi- fi- fi- fi- else- if test "X$found_a" != "X"; then- LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"- else- LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"- fi- fi- additional_includedir=- case "$found_dir" in- */$acl_libdirstem | */$acl_libdirstem/)- basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`- if test "$name" = 'iconv'; then- LIBICONV_PREFIX="$basedir"- fi- additional_includedir="$basedir/include"- ;;- */$acl_libdirstem2 | */$acl_libdirstem2/)- basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`- if test "$name" = 'iconv'; then- LIBICONV_PREFIX="$basedir"- fi- additional_includedir="$basedir/include"- ;;- esac- if test "X$additional_includedir" != "X"; then- if test "X$additional_includedir" != "X/usr/include"; then- haveit=- if test "X$additional_includedir" = "X/usr/local/include"; then- if test -n "$GCC"; then- case $host_os in- linux* | gnu* | k*bsd*-gnu) haveit=yes;;- esac- fi- fi- if test -z "$haveit"; then- for x in $CPPFLAGS $INCICONV; do-- acl_save_prefix="$prefix"- prefix="$acl_final_prefix"- acl_save_exec_prefix="$exec_prefix"- exec_prefix="$acl_final_exec_prefix"- eval x=\"$x\"- exec_prefix="$acl_save_exec_prefix"- prefix="$acl_save_prefix"-- if test "X$x" = "X-I$additional_includedir"; then- haveit=yes- break- fi- done- if test -z "$haveit"; then- if test -d "$additional_includedir"; then- INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"- fi- fi- fi- fi- fi- if test -n "$found_la"; then- save_libdir="$libdir"- case "$found_la" in- */* | *\\*) . "$found_la" ;;- *) . "./$found_la" ;;- esac- libdir="$save_libdir"- for dep in $dependency_libs; do- case "$dep" in- -L*)- additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`- if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \- && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then- haveit=- if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \- || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then- if test -n "$GCC"; then- case $host_os in- linux* | gnu* | k*bsd*-gnu) haveit=yes;;- esac- fi- fi- if test -z "$haveit"; then- haveit=- for x in $LDFLAGS $LIBICONV; do-- acl_save_prefix="$prefix"- prefix="$acl_final_prefix"- acl_save_exec_prefix="$exec_prefix"- exec_prefix="$acl_final_exec_prefix"- eval x=\"$x\"- exec_prefix="$acl_save_exec_prefix"- prefix="$acl_save_prefix"-- if test "X$x" = "X-L$additional_libdir"; then- haveit=yes- break- fi- done- if test -z "$haveit"; then- if test -d "$additional_libdir"; then- LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"- fi- fi- haveit=- for x in $LDFLAGS $LTLIBICONV; do-- acl_save_prefix="$prefix"- prefix="$acl_final_prefix"- acl_save_exec_prefix="$exec_prefix"- exec_prefix="$acl_final_exec_prefix"- eval x=\"$x\"- exec_prefix="$acl_save_exec_prefix"- prefix="$acl_save_prefix"-- if test "X$x" = "X-L$additional_libdir"; then- haveit=yes- break- fi- done- if test -z "$haveit"; then- if test -d "$additional_libdir"; then- LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"- fi- fi- fi- fi- ;;- -R*)- dir=`echo "X$dep" | sed -e 's/^X-R//'`- if test "$enable_rpath" != no; then- haveit=- for x in $rpathdirs; do- if test "X$x" = "X$dir"; then- haveit=yes- break- fi- done- if test -z "$haveit"; then- rpathdirs="$rpathdirs $dir"- fi- haveit=- for x in $ltrpathdirs; do- if test "X$x" = "X$dir"; then- haveit=yes- break- fi- done- if test -z "$haveit"; then- ltrpathdirs="$ltrpathdirs $dir"- fi- fi- ;;- -l*)- names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`- ;;- *.la)- names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`- ;;- *)- LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"- LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"- ;;- esac- done- fi- else- LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"- LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"- fi- fi- fi- done- done- if test "X$rpathdirs" != "X"; then- if test -n "$acl_hardcode_libdir_separator"; then- alldirs=- for found_dir in $rpathdirs; do- alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"- done- acl_save_libdir="$libdir"- libdir="$alldirs"- eval flag=\"$acl_hardcode_libdir_flag_spec\"- libdir="$acl_save_libdir"- LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"- else- for found_dir in $rpathdirs; do- acl_save_libdir="$libdir"- libdir="$found_dir"- eval flag=\"$acl_hardcode_libdir_flag_spec\"- libdir="$acl_save_libdir"- LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"- done- fi- fi- if test "X$ltrpathdirs" != "X"; then- for found_dir in $ltrpathdirs; do- LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"- done- fi------------- am_save_CPPFLAGS="$CPPFLAGS"-- for element in $INCICONV; do- haveit=- for x in $CPPFLAGS; do-- acl_save_prefix="$prefix"- prefix="$acl_final_prefix"- acl_save_exec_prefix="$exec_prefix"- exec_prefix="$acl_final_exec_prefix"- eval x=\"$x\"- exec_prefix="$acl_save_exec_prefix"- prefix="$acl_save_prefix"-- if test "X$x" = "X$element"; then- haveit=yes- break- fi- done- if test -z "$haveit"; then- CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"- fi- done--- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5-printf %s "checking for iconv... " >&6; }-if test ${am_cv_func_iconv+y}-then :- printf %s "(cached) " >&6-else case e in #(- e)- am_cv_func_iconv="no, consider installing GNU libiconv"- am_cv_lib_iconv=no- cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */--#include <stdlib.h>-#include <iconv.h>--int-main (void)-{-iconv_t cd = iconv_open("","");- iconv(cd,NULL,NULL,NULL,NULL);- iconv_close(cd);- ;- return 0;-}-_ACEOF-if ac_fn_c_try_link "$LINENO"-then :- am_cv_func_iconv=yes-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam \- conftest$ac_exeext conftest.$ac_ext- if test "$am_cv_func_iconv" != yes; then- am_save_LIBS="$LIBS"- LIBS="$LIBS $LIBICONV"- cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */--#include <stdlib.h>-#include <iconv.h>--int-main (void)-{-iconv_t cd = iconv_open("","");- iconv(cd,NULL,NULL,NULL,NULL);- iconv_close(cd);- ;- return 0;-}-_ACEOF-if ac_fn_c_try_link "$LINENO"-then :- am_cv_lib_iconv=yes- am_cv_func_iconv=yes-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam \- conftest$ac_exeext conftest.$ac_ext- LIBS="$am_save_LIBS"- fi- ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5-printf "%s\n" "$am_cv_func_iconv" >&6; }- if test "$am_cv_func_iconv" = yes; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5-printf %s "checking for working iconv... " >&6; }-if test ${am_cv_func_iconv_works+y}-then :- printf %s "(cached) " >&6-else case e in #(- e)- am_save_LIBS="$LIBS"- if test $am_cv_lib_iconv = yes; then- LIBS="$LIBS $LIBICONV"- fi- am_cv_func_iconv_works=no- for ac_iconv_const in '' 'const'; do- if test "$cross_compiling" = yes-then :- case "$host_os" in- aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;- *) am_cv_func_iconv_works="guessing yes" ;;- esac-else case e in #(- e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */--#include <iconv.h>-#include <string.h>--#ifndef ICONV_CONST-# define ICONV_CONST $ac_iconv_const-#endif--int-main (void)-{-int result = 0;- /* Test against AIX 5.1 bug: Failures are not distinguishable from successful- returns. */- {- iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");- if (cd_utf8_to_88591 != (iconv_t)(-1))- {- static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */- char buf[10];- ICONV_CONST char *inptr = input;- size_t inbytesleft = strlen (input);- char *outptr = buf;- size_t outbytesleft = sizeof (buf);- size_t res = iconv (cd_utf8_to_88591,- &inptr, &inbytesleft,- &outptr, &outbytesleft);- if (res == 0)- result |= 1;- iconv_close (cd_utf8_to_88591);- }- }- /* Test against Solaris 10 bug: Failures are not distinguishable from- successful returns. */- {- iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");- if (cd_ascii_to_88591 != (iconv_t)(-1))- {- static ICONV_CONST char input[] = "\263";- char buf[10];- ICONV_CONST char *inptr = input;- size_t inbytesleft = strlen (input);- char *outptr = buf;- size_t outbytesleft = sizeof (buf);- size_t res = iconv (cd_ascii_to_88591,- &inptr, &inbytesleft,- &outptr, &outbytesleft);- if (res == 0)- result |= 2;- iconv_close (cd_ascii_to_88591);- }- }- /* Test against AIX 6.1..7.1 bug: Buffer overrun. */- {- iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");- if (cd_88591_to_utf8 != (iconv_t)(-1))- {- static ICONV_CONST char input[] = "\304";- static char buf[2] = { (char)0xDE, (char)0xAD };- ICONV_CONST char *inptr = input;- size_t inbytesleft = 1;- char *outptr = buf;- size_t outbytesleft = 1;- size_t res = iconv (cd_88591_to_utf8,- &inptr, &inbytesleft,- &outptr, &outbytesleft);- if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)- result |= 4;- iconv_close (cd_88591_to_utf8);- }- }-#if 0 /* This bug could be worked around by the caller. */- /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */- {- iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");- if (cd_88591_to_utf8 != (iconv_t)(-1))- {- static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";- char buf[50];- ICONV_CONST char *inptr = input;- size_t inbytesleft = strlen (input);- char *outptr = buf;- size_t outbytesleft = sizeof (buf);- size_t res = iconv (cd_88591_to_utf8,- &inptr, &inbytesleft,- &outptr, &outbytesleft);- if ((int)res > 0)- result |= 8;- iconv_close (cd_88591_to_utf8);- }- }-#endif- /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is- provided. */- if (/* Try standardized names. */- iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)- /* Try IRIX, OSF/1 names. */- && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)- /* Try AIX names. */- && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)- /* Try HP-UX names. */- && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))- result |= 16;- return result;-- ;- return 0;-}-_ACEOF-if ac_fn_c_try_run "$LINENO"-then :- am_cv_func_iconv_works=yes-fi-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \- conftest.$ac_objext conftest.beam conftest.$ac_ext ;;-esac-fi-- test "$am_cv_func_iconv_works" = no || break- done- LIBS="$am_save_LIBS"- ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5-printf "%s\n" "$am_cv_func_iconv_works" >&6; }- case "$am_cv_func_iconv_works" in- *no) am_func_iconv=no am_cv_lib_iconv=no ;;- *) am_func_iconv=yes ;;- esac- else- am_func_iconv=no am_cv_lib_iconv=no- fi- if test "$am_func_iconv" = yes; then--printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h-- fi- if test "$am_cv_lib_iconv" = yes; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5-printf %s "checking how to link with libiconv... " >&6; }- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5-printf "%s\n" "$LIBICONV" >&6; }- else- CPPFLAGS="$am_save_CPPFLAGS"- LIBICONV=- LTLIBICONV=- fi---- if test "$am_cv_func_iconv" = yes; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5-printf %s "checking for iconv declaration... " >&6; }- if test ${am_cv_proto_iconv+y}-then :- printf %s "(cached) " >&6-else case e in #(- e)- cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */--#include <stdlib.h>-#include <iconv.h>-extern-#ifdef __cplusplus-"C"-#endif-#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)-size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);-#else-size_t iconv();-#endif--int-main (void)-{-- ;- return 0;-}-_ACEOF-if ac_fn_c_try_compile "$LINENO"-then :- am_cv_proto_iconv_arg1=""-else case e in #(- e) am_cv_proto_iconv_arg1="const" ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext- am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" ;;-esac-fi-- am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result:- $am_cv_proto_iconv" >&5-printf "%s\n" "- $am_cv_proto_iconv" >&6; }--printf "%s\n" "#define ICONV_CONST $am_cv_proto_iconv_arg1" >>confdefs.h--- fi-- ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "#include <stdlib.h>-"-if test "x$ac_cv_header_iconv_h" = xyes-then :- printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h--fi-- if test "x$am_cv_func_iconv" = "xyes"; then- ac_fn_c_check_header_compile "$LINENO" "localcharset.h" "ac_cv_header_localcharset_h" "$ac_includes_default"-if test "x$ac_cv_header_localcharset_h" = xyes-then :- printf "%s\n" "#define HAVE_LOCALCHARSET_H 1" >>confdefs.h--fi-- LIBS="${LIBS} ${LIBICONV}"- if test -n "$LIBICONV"; then--printf "%s\n" "#define HAVE_LIBICONV 1" >>confdefs.h--- # Most platforms do not provide iconv.pc, but MSYS2 MinGW does.- # We add it to our Requires.private only if it exists.--pkg_failed=no-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5-printf %s "checking for iconv... " >&6; }--if test -n "$ICONV_PC_CFLAGS"; then- pkg_cv_ICONV_PC_CFLAGS="$ICONV_PC_CFLAGS"- elif test -n "$PKG_CONFIG"; then- if test -n "$PKG_CONFIG" && \- { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"iconv\""; } >&5- ($PKG_CONFIG --exists --print-errors "iconv") 2>&5- ac_status=$?- printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5- test $ac_status = 0; }; then- pkg_cv_ICONV_PC_CFLAGS=`$PKG_CONFIG --cflags "iconv" 2>/dev/null`- test "x$?" != "x0" && pkg_failed=yes-else- pkg_failed=yes-fi- else- pkg_failed=untried-fi-if test -n "$ICONV_PC_LIBS"; then- pkg_cv_ICONV_PC_LIBS="$ICONV_PC_LIBS"- elif test -n "$PKG_CONFIG"; then- if test -n "$PKG_CONFIG" && \- { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"iconv\""; } >&5- ($PKG_CONFIG --exists --print-errors "iconv") 2>&5- ac_status=$?- printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5- test $ac_status = 0; }; then- pkg_cv_ICONV_PC_LIBS=`$PKG_CONFIG --libs "iconv" 2>/dev/null`- test "x$?" != "x0" && pkg_failed=yes-else- pkg_failed=yes-fi- else- pkg_failed=untried-fi----if test $pkg_failed = yes; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }--if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then- _pkg_short_errors_supported=yes-else- _pkg_short_errors_supported=no-fi- if test $_pkg_short_errors_supported = yes; then- ICONV_PC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "iconv" 2>&1`- else- ICONV_PC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "iconv" 2>&1`- fi- # Put the nasty error message in config.log where it belongs- echo "$ICONV_PC_PKG_ERRORS" >&5-- true-elif test $pkg_failed = untried; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }- true-else- ICONV_PC_CFLAGS=$pkg_cv_ICONV_PC_CFLAGS- ICONV_PC_LIBS=$pkg_cv_ICONV_PC_LIBS- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5-printf "%s\n" "yes" >&6; }-- LIBSREQUIRED="$LIBSREQUIRED${LIBSREQUIRED:+ }iconv"--fi- fi- ac_fn_c_check_func "$LINENO" "locale_charset" "ac_cv_func_locale_charset"-if test "x$ac_cv_func_locale_charset" = xyes-then :- printf "%s\n" "#define HAVE_LOCALE_CHARSET 1" >>confdefs.h--fi-- if test "x$ac_cv_func_locale_charset" != "xyes"; then- # If locale_charset() is not in libiconv, we have to find libcharset.- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for locale_charset in -lcharset" >&5-printf %s "checking for locale_charset in -lcharset... " >&6; }-if test ${ac_cv_lib_charset_locale_charset+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) ac_check_lib_save_LIBS=$LIBS-LIBS="-lcharset $LIBS"-cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */--/* Override any GCC internal prototype to avoid an error.- Use char because int might match the return type of a GCC- builtin and then its argument prototype would still apply.- The 'extern "C"' is for builds by C++ compilers;- although this is not generally supported in C code supporting it here- has little cost and some practical benefit (sr 110532). */-#ifdef __cplusplus-extern "C"-#endif-char locale_charset (void);-int-main (void)-{-return locale_charset ();- ;- return 0;-}-_ACEOF-if ac_fn_c_try_link "$LINENO"-then :- ac_cv_lib_charset_locale_charset=yes-else case e in #(- e) ac_cv_lib_charset_locale_charset=no ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam \- conftest$ac_exeext conftest.$ac_ext-LIBS=$ac_check_lib_save_LIBS ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_charset_locale_charset" >&5-printf "%s\n" "$ac_cv_lib_charset_locale_charset" >&6; }-if test "x$ac_cv_lib_charset_locale_charset" = xyes-then :- printf "%s\n" "#define HAVE_LIBCHARSET 1" >>confdefs.h-- LIBS="-lcharset $LIBS"--fi-- fi- fi-fi---# Check whether --with-lz4 was given.-if test ${with_lz4+y}-then :- withval=$with_lz4;-fi---if test "x$with_lz4" = "xyes" || test "$CABAL_FLAG_lz4" = 1; then- ac_fn_c_check_header_compile "$LINENO" "lz4.h" "ac_cv_header_lz4_h" "$ac_includes_default"-if test "x$ac_cv_header_lz4_h" = xyes-then :- printf "%s\n" "#define HAVE_LZ4_H 1" >>confdefs.h--fi-ac_fn_c_check_header_compile "$LINENO" "lz4hc.h" "ac_cv_header_lz4hc_h" "$ac_includes_default"-if test "x$ac_cv_header_lz4hc_h" = xyes-then :- printf "%s\n" "#define HAVE_LZ4HC_H 1" >>confdefs.h--fi-- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LZ4_decompress_safe in -llz4" >&5-printf %s "checking for LZ4_decompress_safe in -llz4... " >&6; }-if test ${ac_cv_lib_lz4_LZ4_decompress_safe+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) ac_check_lib_save_LIBS=$LIBS-LIBS="-llz4 $LIBS"-cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */--/* Override any GCC internal prototype to avoid an error.- Use char because int might match the return type of a GCC- builtin and then its argument prototype would still apply.- The 'extern "C"' is for builds by C++ compilers;- although this is not generally supported in C code supporting it here- has little cost and some practical benefit (sr 110532). */-#ifdef __cplusplus-extern "C"-#endif-char LZ4_decompress_safe (void);-int-main (void)-{-return LZ4_decompress_safe ();- ;- return 0;-}-_ACEOF-if ac_fn_c_try_link "$LINENO"-then :- ac_cv_lib_lz4_LZ4_decompress_safe=yes-else case e in #(- e) ac_cv_lib_lz4_LZ4_decompress_safe=no ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam \- conftest$ac_exeext conftest.$ac_ext-LIBS=$ac_check_lib_save_LIBS ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lz4_LZ4_decompress_safe" >&5-printf "%s\n" "$ac_cv_lib_lz4_LZ4_decompress_safe" >&6; }-if test "x$ac_cv_lib_lz4_LZ4_decompress_safe" = xyes-then :- printf "%s\n" "#define HAVE_LIBLZ4 1" >>confdefs.h-- LIBS="-llz4 $LIBS"--fi--fi---# Check whether --with-zstd was given.-if test ${with_zstd+y}-then :- withval=$with_zstd;-fi---if test "x$with_zstd" = "xyes" || test "$CABAL_FLAG_zstd" = 1; then- ac_fn_c_check_header_compile "$LINENO" "zstd.h" "ac_cv_header_zstd_h" "$ac_includes_default"-if test "x$ac_cv_header_zstd_h" = xyes-then :- printf "%s\n" "#define HAVE_ZSTD_H 1" >>confdefs.h--fi-- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZSTD_decompressStream in -lzstd" >&5-printf %s "checking for ZSTD_decompressStream in -lzstd... " >&6; }-if test ${ac_cv_lib_zstd_ZSTD_decompressStream+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) ac_check_lib_save_LIBS=$LIBS-LIBS="-lzstd $LIBS"-cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */--/* Override any GCC internal prototype to avoid an error.- Use char because int might match the return type of a GCC- builtin and then its argument prototype would still apply.- The 'extern "C"' is for builds by C++ compilers;- although this is not generally supported in C code supporting it here- has little cost and some practical benefit (sr 110532). */-#ifdef __cplusplus-extern "C"-#endif-char ZSTD_decompressStream (void);-int-main (void)-{-return ZSTD_decompressStream ();- ;- return 0;-}-_ACEOF-if ac_fn_c_try_link "$LINENO"-then :- ac_cv_lib_zstd_ZSTD_decompressStream=yes-else case e in #(- e) ac_cv_lib_zstd_ZSTD_decompressStream=no ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam \- conftest$ac_exeext conftest.$ac_ext-LIBS=$ac_check_lib_save_LIBS ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_decompressStream" >&5-printf "%s\n" "$ac_cv_lib_zstd_ZSTD_decompressStream" >&6; }-if test "x$ac_cv_lib_zstd_ZSTD_decompressStream" = xyes-then :- printf "%s\n" "#define HAVE_LIBZSTD 1" >>confdefs.h-- LIBS="-lzstd $LIBS"--fi-- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZSTD_compressStream in -lzstd" >&5-printf %s "checking for ZSTD_compressStream in -lzstd... " >&6; }-if test ${ac_cv_lib_zstd_ZSTD_compressStream+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) ac_check_lib_save_LIBS=$LIBS-LIBS="-lzstd $LIBS"-cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */--/* Override any GCC internal prototype to avoid an error.- Use char because int might match the return type of a GCC- builtin and then its argument prototype would still apply.- The 'extern "C"' is for builds by C++ compilers;- although this is not generally supported in C code supporting it here- has little cost and some practical benefit (sr 110532). */-#ifdef __cplusplus-extern "C"-#endif-char ZSTD_compressStream (void);-int-main (void)-{-return ZSTD_compressStream ();- ;- return 0;-}-_ACEOF-if ac_fn_c_try_link "$LINENO"-then :- ac_cv_lib_zstd_ZSTD_compressStream=yes-else case e in #(- e) ac_cv_lib_zstd_ZSTD_compressStream=no ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam \- conftest$ac_exeext conftest.$ac_ext-LIBS=$ac_check_lib_save_LIBS ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_compressStream" >&5-printf "%s\n" "$ac_cv_lib_zstd_ZSTD_compressStream" >&6; }-if test "x$ac_cv_lib_zstd_ZSTD_compressStream" = xyes-then :--printf "%s\n" "#define HAVE_ZSTD_compressStream 1" >>confdefs.h--fi-- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZSTD_minCLevel in -lzstd" >&5-printf %s "checking for ZSTD_minCLevel in -lzstd... " >&6; }-if test ${ac_cv_lib_zstd_ZSTD_minCLevel+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) ac_check_lib_save_LIBS=$LIBS-LIBS="-lzstd $LIBS"-cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */--/* Override any GCC internal prototype to avoid an error.- Use char because int might match the return type of a GCC- builtin and then its argument prototype would still apply.- The 'extern "C"' is for builds by C++ compilers;- although this is not generally supported in C code supporting it here- has little cost and some practical benefit (sr 110532). */-#ifdef __cplusplus-extern "C"-#endif-char ZSTD_minCLevel (void);-int-main (void)-{-return ZSTD_minCLevel ();- ;- return 0;-}-_ACEOF-if ac_fn_c_try_link "$LINENO"-then :- ac_cv_lib_zstd_ZSTD_minCLevel=yes-else case e in #(- e) ac_cv_lib_zstd_ZSTD_minCLevel=no ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam \- conftest$ac_exeext conftest.$ac_ext-LIBS=$ac_check_lib_save_LIBS ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_minCLevel" >&5-printf "%s\n" "$ac_cv_lib_zstd_ZSTD_minCLevel" >&6; }-if test "x$ac_cv_lib_zstd_ZSTD_minCLevel" = xyes-then :--printf "%s\n" "#define HAVE_ZSTD_minCLevel 1" >>confdefs.h--else case e in #(- e) as_fn_error $? "Could not find a suitable version of zstr" "$LINENO" 5 ;;-esac-fi--fi---# Check whether --with-lzma was given.-if test ${with_lzma+y}-then :- withval=$with_lzma;-fi---if test "x$with_lzma" = "xyes" || test "$CABAL_FLAG_lzma" = 1; then--------if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then- if test -n "$ac_tool_prefix"; then- # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.-set dummy ${ac_tool_prefix}pkg-config; ac_word=$2-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5-printf %s "checking for $ac_word... " >&6; }-if test ${ac_cv_path_PKG_CONFIG+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) case $PKG_CONFIG in- [\\/]* | ?:[\\/]*)- ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.- ;;- *)- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_exec_ext in '' $ac_executable_extensions; do- if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then- ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"- printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5- break 2- fi-done- done-IFS=$as_save_IFS-- ;;-esac ;;-esac-fi-PKG_CONFIG=$ac_cv_path_PKG_CONFIG-if test -n "$PKG_CONFIG"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5-printf "%s\n" "$PKG_CONFIG" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-fi---fi-if test -z "$ac_cv_path_PKG_CONFIG"; then- ac_pt_PKG_CONFIG=$PKG_CONFIG- # Extract the first word of "pkg-config", so it can be a program name with args.-set dummy pkg-config; ac_word=$2-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5-printf %s "checking for $ac_word... " >&6; }-if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) case $ac_pt_PKG_CONFIG in- [\\/]* | ?:[\\/]*)- ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.- ;;- *)- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- for ac_exec_ext in '' $ac_executable_extensions; do- if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then- ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"- printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5- break 2- fi-done- done-IFS=$as_save_IFS-- ;;-esac ;;-esac-fi-ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG-if test -n "$ac_pt_PKG_CONFIG"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5-printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }-else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-fi-- if test "x$ac_pt_PKG_CONFIG" = x; then- PKG_CONFIG=""- else- case $cross_compiling:$ac_tool_warned in-yes:)-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5-printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}-ac_tool_warned=yes ;;-esac- PKG_CONFIG=$ac_pt_PKG_CONFIG- fi-else- PKG_CONFIG="$ac_cv_path_PKG_CONFIG"-fi--fi-if test -n "$PKG_CONFIG"; then- _pkg_min_version=0.9.0- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5-printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }- if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5-printf "%s\n" "yes" >&6; }- else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }- PKG_CONFIG=""- fi-fi-if test -z "$PKG_CONFIG"; then- as_fn_error $? "pkg-config not found" "$LINENO" 5-fi--pkg_failed=no-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5-printf %s "checking for liblzma... " >&6; }--if test -n "$LZMA_PC_CFLAGS"; then- pkg_cv_LZMA_PC_CFLAGS="$LZMA_PC_CFLAGS"- elif test -n "$PKG_CONFIG"; then- if test -n "$PKG_CONFIG" && \- { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma\""; } >&5- ($PKG_CONFIG --exists --print-errors "liblzma") 2>&5- ac_status=$?- printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5- test $ac_status = 0; }; then- pkg_cv_LZMA_PC_CFLAGS=`$PKG_CONFIG --cflags "liblzma" 2>/dev/null`- test "x$?" != "x0" && pkg_failed=yes-else- pkg_failed=yes-fi- else- pkg_failed=untried-fi-if test -n "$LZMA_PC_LIBS"; then- pkg_cv_LZMA_PC_LIBS="$LZMA_PC_LIBS"- elif test -n "$PKG_CONFIG"; then- if test -n "$PKG_CONFIG" && \- { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma\""; } >&5- ($PKG_CONFIG --exists --print-errors "liblzma") 2>&5- ac_status=$?- printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5- test $ac_status = 0; }; then- pkg_cv_LZMA_PC_LIBS=`$PKG_CONFIG --libs "liblzma" 2>/dev/null`- test "x$?" != "x0" && pkg_failed=yes-else- pkg_failed=yes-fi- else- pkg_failed=untried-fi----if test $pkg_failed = yes; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }--if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then- _pkg_short_errors_supported=yes-else- _pkg_short_errors_supported=no-fi- if test $_pkg_short_errors_supported = yes; then- LZMA_PC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblzma" 2>&1`- else- LZMA_PC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblzma" 2>&1`- fi- # Put the nasty error message in config.log where it belongs- echo "$LZMA_PC_PKG_ERRORS" >&5--- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lzma_stream_decoder in -llzma" >&5-printf %s "checking for lzma_stream_decoder in -llzma... " >&6; }-if test ${ac_cv_lib_lzma_lzma_stream_decoder+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) ac_check_lib_save_LIBS=$LIBS-LIBS="-llzma $LIBS"-cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */--/* Override any GCC internal prototype to avoid an error.- Use char because int might match the return type of a GCC- builtin and then its argument prototype would still apply.- The 'extern "C"' is for builds by C++ compilers;- although this is not generally supported in C code supporting it here- has little cost and some practical benefit (sr 110532). */-#ifdef __cplusplus-extern "C"-#endif-char lzma_stream_decoder (void);-int-main (void)-{-return lzma_stream_decoder ();- ;- return 0;-}-_ACEOF-if ac_fn_c_try_link "$LINENO"-then :- ac_cv_lib_lzma_lzma_stream_decoder=yes-else case e in #(- e) ac_cv_lib_lzma_lzma_stream_decoder=no ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam \- conftest$ac_exeext conftest.$ac_ext-LIBS=$ac_check_lib_save_LIBS ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_stream_decoder" >&5-printf "%s\n" "$ac_cv_lib_lzma_lzma_stream_decoder" >&6; }-if test "x$ac_cv_lib_lzma_lzma_stream_decoder" = xyes-then :- printf "%s\n" "#define HAVE_LIBLZMA 1" >>confdefs.h-- LIBS="-llzma $LIBS"--else case e in #(- e) as_fn_error $? "Could not find a suitable version of lzma" "$LINENO" 5 ;;-esac-fi---elif test $pkg_failed = untried; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5-printf "%s\n" "no" >&6; }-- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lzma_stream_decoder in -llzma" >&5-printf %s "checking for lzma_stream_decoder in -llzma... " >&6; }-if test ${ac_cv_lib_lzma_lzma_stream_decoder+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) ac_check_lib_save_LIBS=$LIBS-LIBS="-llzma $LIBS"-cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */--/* Override any GCC internal prototype to avoid an error.- Use char because int might match the return type of a GCC- builtin and then its argument prototype would still apply.- The 'extern "C"' is for builds by C++ compilers;- although this is not generally supported in C code supporting it here- has little cost and some practical benefit (sr 110532). */-#ifdef __cplusplus-extern "C"-#endif-char lzma_stream_decoder (void);-int-main (void)-{-return lzma_stream_decoder ();- ;- return 0;-}-_ACEOF-if ac_fn_c_try_link "$LINENO"-then :- ac_cv_lib_lzma_lzma_stream_decoder=yes-else case e in #(- e) ac_cv_lib_lzma_lzma_stream_decoder=no ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam \- conftest$ac_exeext conftest.$ac_ext-LIBS=$ac_check_lib_save_LIBS ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_stream_decoder" >&5-printf "%s\n" "$ac_cv_lib_lzma_lzma_stream_decoder" >&6; }-if test "x$ac_cv_lib_lzma_lzma_stream_decoder" = xyes-then :- printf "%s\n" "#define HAVE_LIBLZMA 1" >>confdefs.h-- LIBS="-llzma $LIBS"--else case e in #(- e) as_fn_error $? "Could not find a suitable version of lzma" "$LINENO" 5 ;;-esac-fi---else- LZMA_PC_CFLAGS=$pkg_cv_LZMA_PC_CFLAGS- LZMA_PC_LIBS=$pkg_cv_LZMA_PC_LIBS- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5-printf "%s\n" "yes" >&6; }-- CFLAGS="${CFLAGS} ${LZMA_PC_CFLAGS}"- LIBS="${LIBS} ${LZMA_PC_LIBS}"--printf "%s\n" "#define HAVE_LIBLZMA 1" >>confdefs.h---fi- ac_fn_c_check_header_compile "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"-if test "x$ac_cv_header_lzma_h" = xyes-then :- printf "%s\n" "#define HAVE_LZMA_H 1" >>confdefs.h--fi--- # Some pre-release (but widely distributed) versions of liblzma- # included a disabled version of lzma_stream_encoder_mt that- # fools a naive AC_CHECK_LIB or AC_CHECK_FUNC, so we need- # to do something more complex here:- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we have multithread support in lzma" >&5-printf %s "checking whether we have multithread support in lzma... " >&6; }-if test ${ac_cv_lzma_has_mt+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */-- #include <lzma.h>- #if LZMA_VERSION < 50020000- #error unsupported- #endif-int-main (void)-{-int ignored __attribute__((unused)); ignored = lzma_stream_encoder_mt(0, 0);- ;- return 0;-}-_ACEOF-if ac_fn_c_try_link "$LINENO"-then :- ac_cv_lzma_has_mt=yes-else case e in #(- e) ac_cv_lzma_has_mt=no ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam \- conftest$ac_exeext conftest.$ac_ext ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lzma_has_mt" >&5-printf "%s\n" "$ac_cv_lzma_has_mt" >&6; }- if test "x$ac_cv_lzma_has_mt" != xno; then--printf "%s\n" "#define HAVE_LZMA_STREAM_ENCODER_MT 1" >>confdefs.h-- fi-fi---# Checks for typedefs, structures, and compiler characteristics.-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5-printf %s "checking for an ANSI C-conforming const... " >&6; }-if test ${ac_cv_c_const+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */--int-main (void)-{--#ifndef __cplusplus- /* Ultrix mips cc rejects this sort of thing. */- typedef int charset[2];- const charset cs = { 0, 0 };- /* SunOS 4.1.1 cc rejects this. */- char const *const *pcpcc;- char **ppc;- /* NEC SVR4.0.2 mips cc rejects this. */- struct point {int x, y;};- static struct point const zero = {0,0};- /* IBM XL C 1.02.0.0 rejects this.- It does not let you subtract one const X* pointer from another in- an arm of an if-expression whose if-part is not a constant- expression */- const char *g = "string";- pcpcc = &g + (g ? g-g : 0);- /* HPUX 7.0 cc rejects these. */- ++pcpcc;- ppc = (char**) pcpcc;- pcpcc = (char const *const *) ppc;- { /* SCO 3.2v4 cc rejects this sort of thing. */- char tx;- char *t = &tx;- char const *s = 0 ? (char *) 0 : (char const *) 0;-- *t++ = 0;- if (s) return 0;- }- { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */- int x[] = {25, 17};- const int *foo = &x[0];- ++foo;- }- { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */- typedef const int *iptr;- iptr p = 0;- ++p;- }- { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying- "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */- struct s { int j; const int *ap[3]; } bx;- struct s *b = &bx; b->j = 5;- }- { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */- const int foo = 10;- if (!foo) return 0;- }- return !cs[0] && !zero.x;-#endif-- ;- return 0;-}-_ACEOF-if ac_fn_c_try_compile "$LINENO"-then :- ac_cv_c_const=yes-else case e in #(- e) ac_cv_c_const=no ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5-printf "%s\n" "$ac_cv_c_const" >&6; }-if test $ac_cv_c_const = no; then--printf "%s\n" "#define const /**/" >>confdefs.h--fi--# la_TYPE_UID_T defaults to "int", which is incorrect for MinGW-# and MSVC. Use a customized version.-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5-printf %s "checking for uid_t in sys/types.h... " >&6; }-if test ${la_cv_type_uid_t+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */-#include <sys/types.h>--_ACEOF-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |- $EGREP_TRADITIONAL "uid_t" >/dev/null 2>&1-then :- la_cv_type_uid_t=yes-else case e in #(- e) la_cv_type_uid_t=no ;;-esac-fi-rm -rf conftest*- ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $la_cv_type_uid_t" >&5-printf "%s\n" "$la_cv_type_uid_t" >&6; }-if test $la_cv_type_uid_t = no; then- case $host in- *mingw*) def_uid_t=short ;;- *) def_uid_t=int ;;- esac--printf "%s\n" "#define uid_t $def_uid_t" >>confdefs.h---printf "%s\n" "#define gid_t $def_uid_t" >>confdefs.h--fi--ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"-if test "x$ac_cv_type_mode_t" = xyes-then :--else case e in #(- e)-printf "%s\n" "#define mode_t int" >>confdefs.h- ;;-esac-fi--# AC_TYPE_OFF_T defaults to "long", which limits us to 4GB files on-# most systems... default to "long long" instead.-ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"-if test "x$ac_cv_type_off_t" = xyes-then :--else case e in #(- e)-printf "%s\n" "#define off_t long long" >>confdefs.h- ;;-esac-fi--ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"-if test "x$ac_cv_type_size_t" = xyes-then :--else case e in #(- e)-printf "%s\n" "#define size_t unsigned int" >>confdefs.h- ;;-esac-fi--ac_fn_c_check_type "$LINENO" "id_t" "ac_cv_type_id_t" "$ac_includes_default"-if test "x$ac_cv_type_id_t" = xyes-then :--else case e in #(- e)-printf "%s\n" "#define id_t unsigned long" >>confdefs.h- ;;-esac-fi--ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"-if test "x$ac_cv_type_uintptr_t" = xyes-then :--else case e in #(- e)-printf "%s\n" "#define uintptr_t unsigned int" >>confdefs.h- ;;-esac-fi---# Check for tm_gmtoff in struct tm-ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "-#include <time.h>--"-if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes-then :--printf "%s\n" "#define HAVE_STRUCT_TM_TM_GMTOFF 1" >>confdefs.h---fi-ac_fn_c_check_member "$LINENO" "struct tm" "__tm_gmtoff" "ac_cv_member_struct_tm___tm_gmtoff" "-#include <time.h>--"-if test "x$ac_cv_member_struct_tm___tm_gmtoff" = xyes-then :--printf "%s\n" "#define HAVE_STRUCT_TM___TM_GMTOFF 1" >>confdefs.h---fi---# Check for f_namemax in struct statfs-ac_fn_c_check_member "$LINENO" "struct statfs" "f_namemax" "ac_cv_member_struct_statfs_f_namemax" "-#include <sys/param.h>-#include <sys/mount.h>--"-if test "x$ac_cv_member_struct_statfs_f_namemax" = xyes-then :--printf "%s\n" "#define HAVE_STRUCT_STATFS_F_NAMEMAX 1" >>confdefs.h---fi---# Check for f_iosize in struct statfs-ac_fn_c_check_member "$LINENO" "struct statfs" "f_iosize" "ac_cv_member_struct_statfs_f_iosize" "-#include <sys/param.h>-#include <sys/mount.h>--"-if test "x$ac_cv_member_struct_statfs_f_iosize" = xyes-then :--printf "%s\n" "#define HAVE_STRUCT_STATFS_F_IOSIZE 1" >>confdefs.h---fi---# Check for f_iosize in struct statvfs-ac_fn_c_check_member "$LINENO" "struct statvfs" "f_iosize" "ac_cv_member_struct_statvfs_f_iosize" "-#include <sys/statvfs.h>--"-if test "x$ac_cv_member_struct_statvfs_f_iosize" = xyes-then :--printf "%s\n" "#define HAVE_STRUCT_STATVFS_F_IOSIZE 1" >>confdefs.h---fi---# Check for birthtime in struct stat-ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"-if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes-then :--printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1" >>confdefs.h---fi---# Check for high-resolution timestamps in struct stat-ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec.tv_nsec" "ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" "$ac_includes_default"-if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes-then :--printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1" >>confdefs.h---fi--ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec.tv_nsec" "ac_cv_member_struct_stat_st_mtimespec_tv_nsec" "$ac_includes_default"-if test "x$ac_cv_member_struct_stat_st_mtimespec_tv_nsec" = xyes-then :--printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC 1" >>confdefs.h---fi--ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "$ac_includes_default"-if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes-then :--printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1" >>confdefs.h---fi--ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime_n" "ac_cv_member_struct_stat_st_mtime_n" "$ac_includes_default"-if test "x$ac_cv_member_struct_stat_st_mtime_n" = xyes-then :--printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIME_N 1" >>confdefs.h---fi- # AIX-ac_fn_c_check_member "$LINENO" "struct stat" "st_umtime" "ac_cv_member_struct_stat_st_umtime" "$ac_includes_default"-if test "x$ac_cv_member_struct_stat_st_umtime" = xyes-then :--printf "%s\n" "#define HAVE_STRUCT_STAT_ST_UMTIME 1" >>confdefs.h---fi- # Tru64-ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime_usec" "ac_cv_member_struct_stat_st_mtime_usec" "$ac_includes_default"-if test "x$ac_cv_member_struct_stat_st_mtime_usec" = xyes-then :--printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIME_USEC 1" >>confdefs.h---fi- # Hurd-# Check for block size support in struct stat-ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"-if test "x$ac_cv_member_struct_stat_st_blksize" = xyes-then :--printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BLKSIZE 1" >>confdefs.h---fi--# Check for st_flags in struct stat (BSD fflags)-ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default"-if test "x$ac_cv_member_struct_stat_st_flags" = xyes-then :--printf "%s\n" "#define HAVE_STRUCT_STAT_ST_FLAGS 1" >>confdefs.h---fi---# If you have uintmax_t, we assume printf supports %ju-# If you have unsigned long long, we assume printf supports %llu-# TODO: Check for %ju and %llu support directly.-ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"-if test "x$ac_cv_type_uintmax_t" = xyes-then :--printf "%s\n" "#define HAVE_UINTMAX_T 1" >>confdefs.h---fi-ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"-if test "x$ac_cv_type_unsigned_long_long" = xyes-then :--printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h---fi---# We use C99-style integer types-# Declare them if the local platform doesn't already do so.-- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5-printf %s "checking for unsigned long long int... " >&6; }-if test ${ac_cv_type_unsigned_long_long_int+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) ac_cv_type_unsigned_long_long_int=yes- case $ac_prog_cc_stdc in- no | c89) ;;- *)- cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */-- /* For now, do not test the preprocessor; as of 2007 there are too many- implementations with broken preprocessors. Perhaps this can- be revisited in 2012. In the meantime, code should not expect- #if to work with literals wider than 32 bits. */- /* Test literals. */- long long int ll = 9223372036854775807ll;- long long int nll = -9223372036854775807LL;- unsigned long long int ull = 18446744073709551615ULL;- /* Test constant expressions. */- typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)- ? 1 : -1)];- typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1- ? 1 : -1)];- int i = 63;-int-main (void)-{-/* Test availability of runtime routines for shift and division. */- long long int llmax = 9223372036854775807ll;- unsigned long long int ullmax = 18446744073709551615ull;- return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)- | (llmax / ll) | (llmax % ll)- | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)- | (ullmax / ull) | (ullmax % ull));- ;- return 0;-}--_ACEOF-if ac_fn_c_try_link "$LINENO"-then :--else case e in #(- e) ac_cv_type_unsigned_long_long_int=no ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam \- conftest$ac_exeext conftest.$ac_ext;;- esac ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5-printf "%s\n" "$ac_cv_type_unsigned_long_long_int" >&6; }- if test $ac_cv_type_unsigned_long_long_int = yes; then--printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h-- fi---- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5-printf %s "checking for long long int... " >&6; }-if test ${ac_cv_type_long_long_int+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) ac_cv_type_long_long_int=yes- case $ac_prog_cc_stdc in- no | c89) ;;- *)- ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int- if test $ac_cv_type_long_long_int = yes; then- if test "$cross_compiling" = yes-then :- :-else case e in #(- e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */-#include <limits.h>- #ifndef LLONG_MAX- # define HALF \\- (1LL << (sizeof (long long int) * CHAR_BIT - 2))- # define LLONG_MAX (HALF - 1 + HALF)- #endif-int-main (void)-{-long long int n = 1;- int i;- for (i = 0; ; i++)- {- long long int m = n << i;- if (m >> i != n)- return 1;- if (LLONG_MAX / 2 < m)- break;- }- return 0;- ;- return 0;-}-_ACEOF-if ac_fn_c_try_run "$LINENO"-then :--else case e in #(- e) ac_cv_type_long_long_int=no ;;-esac-fi-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \- conftest.$ac_objext conftest.beam conftest.$ac_ext ;;-esac-fi-- fi;;- esac ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5-printf "%s\n" "$ac_cv_type_long_long_int" >&6; }- if test $ac_cv_type_long_long_int = yes; then--printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h-- fi---- ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"-if test "x$ac_cv_type_intmax_t" = xyes-then :--printf "%s\n" "#define HAVE_INTMAX_T 1" >>confdefs.h--else case e in #(- e) test $ac_cv_type_long_long_int = yes \- && ac_type='long long int' \- || ac_type='long int'--printf "%s\n" "#define intmax_t $ac_type" >>confdefs.h- ;;-esac-fi----- ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"-if test "x$ac_cv_type_uintmax_t" = xyes-then :--printf "%s\n" "#define HAVE_UINTMAX_T 1" >>confdefs.h--else case e in #(- e) test $ac_cv_type_unsigned_long_long_int = yes \- && ac_type='unsigned long long int' \- || ac_type='unsigned long int'--printf "%s\n" "#define uintmax_t $ac_type" >>confdefs.h- ;;-esac-fi---ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"-case $ac_cv_c_int64_t in #(- no|yes) ;; #(- *)--printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h-;;-esac--ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"-case $ac_cv_c_uint64_t in #(- no|yes) ;; #(- *)--printf "%s\n" "#define _UINT64_T 1" >>confdefs.h---printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h-;;- esac--ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"-case $ac_cv_c_int32_t in #(- no|yes) ;; #(- *)--printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h-;;-esac--ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"-case $ac_cv_c_uint32_t in #(- no|yes) ;; #(- *)--printf "%s\n" "#define _UINT32_T 1" >>confdefs.h---printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h-;;- esac--ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"-case $ac_cv_c_int16_t in #(- no|yes) ;; #(- *)--printf "%s\n" "#define int16_t $ac_cv_c_int16_t" >>confdefs.h-;;-esac--ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"-case $ac_cv_c_uint16_t in #(- no|yes) ;; #(- *)---printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h-;;- esac--ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"-case $ac_cv_c_uint8_t in #(- no|yes) ;; #(- *)--printf "%s\n" "#define _UINT8_T 1" >>confdefs.h---printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h-;;- esac---{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5-printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }-if test ${ac_cv_c_undeclared_builtin_options+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) ac_save_CFLAGS=$CFLAGS- ac_cv_c_undeclared_builtin_options='cannot detect'- for ac_arg in '' -fno-builtin; do- CFLAGS="$ac_save_CFLAGS $ac_arg"- # This test program should *not* compile successfully.- cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */--int-main (void)-{-(void) strchr;- ;- return 0;-}-_ACEOF-if ac_fn_c_try_compile "$LINENO"-then :--else case e in #(- e) # This test program should compile successfully.- # No library function is consistently available on- # freestanding implementations, so test against a dummy- # declaration. Include always-available headers on the- # off chance that they somehow elicit warnings.- cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */-#include <float.h>-#include <limits.h>-#include <stdarg.h>-#include <stddef.h>-extern void ac_decl (int, char *);--int-main (void)-{-(void) ac_decl (0, (char *) 0);- (void) ac_decl;-- ;- return 0;-}-_ACEOF-if ac_fn_c_try_compile "$LINENO"-then :- if test x"$ac_arg" = x-then :- ac_cv_c_undeclared_builtin_options='none needed'-else case e in #(- e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;-esac-fi- break-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext- done- CFLAGS=$ac_save_CFLAGS- ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5-printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }- case $ac_cv_c_undeclared_builtin_options in #(- 'cannot detect') :- { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5-printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}-as_fn_error $? "cannot make $CC report undeclared builtins-See 'config.log' for more details" "$LINENO" 5; } ;; #(- 'none needed') :- ac_c_undeclared_builtin_options='' ;; #(- *) :- ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;-esac--ac_fn_check_decl "$LINENO" "SIZE_MAX" "ac_cv_have_decl_SIZE_MAX" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"-if test "x$ac_cv_have_decl_SIZE_MAX" = xyes-then :- ac_have_decl=1-else case e in #(- e) ac_have_decl=0 ;;-esac-fi-printf "%s\n" "#define HAVE_DECL_SIZE_MAX $ac_have_decl" >>confdefs.h-ac_fn_check_decl "$LINENO" "INT32_MAX" "ac_cv_have_decl_INT32_MAX" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"-if test "x$ac_cv_have_decl_INT32_MAX" = xyes-then :- ac_have_decl=1-else case e in #(- e) ac_have_decl=0 ;;-esac-fi-printf "%s\n" "#define HAVE_DECL_INT32_MAX $ac_have_decl" >>confdefs.h-ac_fn_check_decl "$LINENO" "INT32_MIN" "ac_cv_have_decl_INT32_MIN" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"-if test "x$ac_cv_have_decl_INT32_MIN" = xyes-then :- ac_have_decl=1-else case e in #(- e) ac_have_decl=0 ;;-esac-fi-printf "%s\n" "#define HAVE_DECL_INT32_MIN $ac_have_decl" >>confdefs.h--ac_fn_check_decl "$LINENO" "INT64_MAX" "ac_cv_have_decl_INT64_MAX" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"-if test "x$ac_cv_have_decl_INT64_MAX" = xyes-then :- ac_have_decl=1-else case e in #(- e) ac_have_decl=0 ;;-esac-fi-printf "%s\n" "#define HAVE_DECL_INT64_MAX $ac_have_decl" >>confdefs.h-ac_fn_check_decl "$LINENO" "INT64_MIN" "ac_cv_have_decl_INT64_MIN" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"-if test "x$ac_cv_have_decl_INT64_MIN" = xyes-then :- ac_have_decl=1-else case e in #(- e) ac_have_decl=0 ;;-esac-fi-printf "%s\n" "#define HAVE_DECL_INT64_MIN $ac_have_decl" >>confdefs.h-ac_fn_check_decl "$LINENO" "UINT64_MAX" "ac_cv_have_decl_UINT64_MAX" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"-if test "x$ac_cv_have_decl_UINT64_MAX" = xyes-then :- ac_have_decl=1-else case e in #(- e) ac_have_decl=0 ;;-esac-fi-printf "%s\n" "#define HAVE_DECL_UINT64_MAX $ac_have_decl" >>confdefs.h-ac_fn_check_decl "$LINENO" "UINT32_MAX" "ac_cv_have_decl_UINT32_MAX" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"-if test "x$ac_cv_have_decl_UINT32_MAX" = xyes-then :- ac_have_decl=1-else case e in #(- e) ac_have_decl=0 ;;-esac-fi-printf "%s\n" "#define HAVE_DECL_UINT32_MAX $ac_have_decl" >>confdefs.h--ac_fn_check_decl "$LINENO" "INTMAX_MAX" "ac_cv_have_decl_INTMAX_MAX" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"-if test "x$ac_cv_have_decl_INTMAX_MAX" = xyes-then :- ac_have_decl=1-else case e in #(- e) ac_have_decl=0 ;;-esac-fi-printf "%s\n" "#define HAVE_DECL_INTMAX_MAX $ac_have_decl" >>confdefs.h-ac_fn_check_decl "$LINENO" "INTMAX_MIN" "ac_cv_have_decl_INTMAX_MIN" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"-if test "x$ac_cv_have_decl_INTMAX_MIN" = xyes-then :- ac_have_decl=1-else case e in #(- e) ac_have_decl=0 ;;-esac-fi-printf "%s\n" "#define HAVE_DECL_INTMAX_MIN $ac_have_decl" >>confdefs.h-ac_fn_check_decl "$LINENO" "UINTMAX_MAX" "ac_cv_have_decl_UINTMAX_MAX" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"-if test "x$ac_cv_have_decl_UINTMAX_MAX" = xyes-then :- ac_have_decl=1-else case e in #(- e) ac_have_decl=0 ;;-esac-fi-printf "%s\n" "#define HAVE_DECL_UINTMAX_MAX $ac_have_decl" >>confdefs.h---ac_fn_check_decl "$LINENO" "SSIZE_MAX" "ac_cv_have_decl_SSIZE_MAX" "#include <limits.h>-" "$ac_c_undeclared_builtin_options" "CFLAGS"-if test "x$ac_cv_have_decl_SSIZE_MAX" = xyes-then :--printf "%s\n" "#define HAVE_DECL_SSIZE_MAX 1" >>confdefs.h--fi--ac_fn_check_decl "$LINENO" "EFTYPE" "ac_cv_have_decl_EFTYPE" "#include <errno.h>-" "$ac_c_undeclared_builtin_options" "CFLAGS"-if test "x$ac_cv_have_decl_EFTYPE" = xyes-then :--printf "%s\n" "#define HAVE_EFTYPE 1" >>confdefs.h--fi-ac_fn_check_decl "$LINENO" "EILSEQ" "ac_cv_have_decl_EILSEQ" "#include <errno.h>-" "$ac_c_undeclared_builtin_options" "CFLAGS"-if test "x$ac_cv_have_decl_EILSEQ" = xyes-then :--printf "%s\n" "#define HAVE_EILSEQ 1" >>confdefs.h--fi-ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"-if test "x$ac_cv_type_wchar_t" = xyes-then :--printf "%s\n" "#define HAVE_WCHAR_T 1" >>confdefs.h- # The cast to long int works around a bug in the HP C Compiler-# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects-# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.-# This bug is HP SR number 8606223364.-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5-printf %s "checking size of wchar_t... " >&6; }-if test ${ac_cv_sizeof_wchar_t+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "$ac_includes_default"-then :--else case e in #(- e) if test "$ac_cv_type_wchar_t" = yes; then- { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5-printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}-as_fn_error 77 "cannot compute sizeof (wchar_t)-See 'config.log' for more details" "$LINENO" 5; }- else- ac_cv_sizeof_wchar_t=0- fi ;;-esac-fi- ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5-printf "%s\n" "$ac_cv_sizeof_wchar_t" >&6; }----printf "%s\n" "#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t" >>confdefs.h---fi---{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5-printf %s "checking size of int... " >&6; }-if test ${ac_cv_sizeof_int+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.- cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */--#include <sys/types.h>---int-main (void)-{-switch (0) case 0: case (sizeof (int) == $ac_size):;- ;- return 0;-}-_ACEOF-if ac_fn_c_try_compile "$LINENO"-then :- ac_cv_sizeof_int=$ac_size-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext- if test x$ac_cv_sizeof_int != x ; then break; fi-done- ;;-esac-fi--if test x$ac_cv_sizeof_int = x ; then- as_fn_error $? "cannot determine a size for int" "$LINENO" 5-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5-printf "%s\n" "$ac_cv_sizeof_int" >&6; }--printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h---{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5-printf %s "checking size of long... " >&6; }-if test ${ac_cv_sizeof_long+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.- cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */--#include <sys/types.h>---int-main (void)-{-switch (0) case 0: case (sizeof (long) == $ac_size):;- ;- return 0;-}-_ACEOF-if ac_fn_c_try_compile "$LINENO"-then :- ac_cv_sizeof_long=$ac_size-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext- if test x$ac_cv_sizeof_long != x ; then break; fi-done- ;;-esac-fi--if test x$ac_cv_sizeof_long = x ; then- as_fn_error $? "cannot determine a size for long" "$LINENO" 5-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5-printf "%s\n" "$ac_cv_sizeof_long" >&6; }--printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h-------# Checks for library functions.--ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"-if test "x$ac_cv_header_sys_mkdev_h" = xyes-then :--printf "%s\n" "#define MAJOR_IN_MKDEV 1" >>confdefs.h--fi--if test $ac_cv_header_sys_mkdev_h = no; then- ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"-if test "x$ac_cv_header_sys_sysmacros_h" = xyes-then :--printf "%s\n" "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h--fi--fi--{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for declarations of fseeko and ftello" >&5-printf %s "checking for declarations of fseeko and ftello... " >&6; }-if test ${ac_cv_func_fseeko_ftello+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */--#if defined __hpux && !defined _LARGEFILE_SOURCE-# include <limits.h>-# if LONG_MAX >> 31 == 0-# error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"-# endif-#endif-#include <sys/types.h> /* for off_t */-#include <stdio.h>--int-main (void)-{-- int (*fp1) (FILE *, off_t, int) = fseeko;- off_t (*fp2) (FILE *) = ftello;- return fseeko (stdin, 0, 0)- && fp1 (stdin, 0, 0)- && ftello (stdin) >= 0- && fp2 (stdin) >= 0;-- ;- return 0;-}-_ACEOF-if ac_fn_c_try_compile "$LINENO"-then :- ac_cv_func_fseeko_ftello=yes-else case e in #(- e) ac_save_CPPFLAGS="$CPPFLAGS"- CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE=1"- cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */--#if defined __hpux && !defined _LARGEFILE_SOURCE-# include <limits.h>-# if LONG_MAX >> 31 == 0-# error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"-# endif-#endif-#include <sys/types.h> /* for off_t */-#include <stdio.h>--int-main (void)-{-- int (*fp1) (FILE *, off_t, int) = fseeko;- off_t (*fp2) (FILE *) = ftello;- return fseeko (stdin, 0, 0)- && fp1 (stdin, 0, 0)- && ftello (stdin) >= 0- && fp2 (stdin) >= 0;-- ;- return 0;-}-_ACEOF-if ac_fn_c_try_compile "$LINENO"-then :- ac_cv_func_fseeko_ftello="need _LARGEFILE_SOURCE"-else case e in #(- e) ac_cv_func_fseeko_ftello=no ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fseeko_ftello" >&5-printf "%s\n" "$ac_cv_func_fseeko_ftello" >&6; }-if test "$ac_cv_func_fseeko_ftello" != no-then :--printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h--fi-if test "$ac_cv_func_fseeko_ftello" = "need _LARGEFILE_SOURCE"-then :--printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h--fi--{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5-printf %s "checking for working memcmp... " >&6; }-if test ${ac_cv_func_memcmp_working+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test "$cross_compiling" = yes-then :- ac_cv_func_memcmp_working=no-else case e in #(- e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */-$ac_includes_default-int-main (void)-{-- /* Some versions of memcmp are not 8-bit clean. */- char c0 = '\100', c1 = '\200', c2 = '\201';- if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)- return 1;-- /* The Next x86 OpenStep bug shows up only when comparing 16 bytes- or more and with at least one buffer not starting on a 4-byte boundary.- William Lewis provided this test program. */- {- char foo[21];- char bar[21];- int i;- for (i = 0; i < 4; i++)- {- char *a = foo + i;- char *b = bar + i;- strcpy (a, "--------01111111");- strcpy (b, "--------10000000");- if (memcmp (a, b, 16) >= 0)- return 1;- }- return 0;- }-- ;- return 0;-}-_ACEOF-if ac_fn_c_try_run "$LINENO"-then :- ac_cv_func_memcmp_working=yes-else case e in #(- e) ac_cv_func_memcmp_working=no ;;-esac-fi-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \- conftest.$ac_objext conftest.beam conftest.$ac_ext ;;-esac-fi- ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5-printf "%s\n" "$ac_cv_func_memcmp_working" >&6; }-test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in- *" memcmp.$ac_objext "* ) ;;- *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"- ;;-esac---{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5-printf %s "checking whether lstat correctly handles trailing slash... " >&6; }-if test ${ac_cv_func_lstat_dereferences_slashed_symlink+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) rm -f conftest.sym conftest.file-echo >conftest.file-if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then- if test "$cross_compiling" = yes-then :- case "$host_os" in # ((- # Guess yes on glibc systems.- *-gnu*) ac_cv_func_lstat_dereferences_slashed_symlink=yes ;;- # If we don't know, assume the worst.- *) ac_cv_func_lstat_dereferences_slashed_symlink=no ;;- esac-else case e in #(- e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */-$ac_includes_default-int-main (void)-{-struct stat sbuf;- /* Linux will dereference the symlink and fail, as required by POSIX.- That is better in the sense that it means we will not- have to compile and use the lstat wrapper. */- return lstat ("conftest.sym/", &sbuf) == 0;- ;- return 0;-}-_ACEOF-if ac_fn_c_try_run "$LINENO"-then :- ac_cv_func_lstat_dereferences_slashed_symlink=yes-else case e in #(- e) ac_cv_func_lstat_dereferences_slashed_symlink=no ;;-esac-fi-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \- conftest.$ac_objext conftest.beam conftest.$ac_ext ;;-esac-fi--else- # If the 'ln -s' command failed, then we probably don't even- # have an lstat function.- ac_cv_func_lstat_dereferences_slashed_symlink=no-fi-rm -f conftest.sym conftest.file- ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5-printf "%s\n" "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }--test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&--printf "%s\n" "#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1" >>confdefs.h---if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then- case " $LIBOBJS " in- *" lstat.$ac_objext "* ) ;;- *) LIBOBJS="$LIBOBJS lstat.$ac_objext"- ;;-esac--fi--{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5-printf %s "checking whether lstat accepts an empty string... " >&6; }-if test ${ac_cv_func_lstat_empty_string_bug+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test "$cross_compiling" = yes-then :- ac_cv_func_lstat_empty_string_bug=yes-else case e in #(- e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */-$ac_includes_default-int-main (void)-{-struct stat sbuf;- return lstat ("", &sbuf) == 0;- ;- return 0;-}-_ACEOF-if ac_fn_c_try_run "$LINENO"-then :- ac_cv_func_lstat_empty_string_bug=no-else case e in #(- e) ac_cv_func_lstat_empty_string_bug=yes ;;-esac-fi-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \- conftest.$ac_objext conftest.beam conftest.$ac_ext ;;-esac-fi- ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5-printf "%s\n" "$ac_cv_func_lstat_empty_string_bug" >&6; }-if test $ac_cv_func_lstat_empty_string_bug = yes; then- case " $LIBOBJS " in- *" lstat.$ac_objext "* ) ;;- *) LIBOBJS="$LIBOBJS lstat.$ac_objext"- ;;-esac---printf "%s\n" "#define HAVE_LSTAT_EMPTY_STRING_BUG 1" >>confdefs.h--fi--{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5-printf %s "checking whether stat accepts an empty string... " >&6; }-if test ${ac_cv_func_stat_empty_string_bug+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) if test "$cross_compiling" = yes-then :- ac_cv_func_stat_empty_string_bug=yes-else case e in #(- e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */-$ac_includes_default-int-main (void)-{-struct stat sbuf;- return stat ("", &sbuf) == 0;- ;- return 0;-}-_ACEOF-if ac_fn_c_try_run "$LINENO"-then :- ac_cv_func_stat_empty_string_bug=no-else case e in #(- e) ac_cv_func_stat_empty_string_bug=yes ;;-esac-fi-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \- conftest.$ac_objext conftest.beam conftest.$ac_ext ;;-esac-fi- ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5-printf "%s\n" "$ac_cv_func_stat_empty_string_bug" >&6; }-if test $ac_cv_func_stat_empty_string_bug = yes; then- case " $LIBOBJS " in- *" stat.$ac_objext "* ) ;;- *) LIBOBJS="$LIBOBJS stat.$ac_objext"- ;;-esac---printf "%s\n" "#define HAVE_STAT_EMPTY_STRING_BUG 1" >>confdefs.h--fi--ac_fn_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"-if test "x$ac_cv_have_decl_strerror_r" = xyes-then :- ac_have_decl=1-else case e in #(- e) ac_have_decl=0 ;;-esac-fi-printf "%s\n" "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h---if test $ac_cv_have_decl_strerror_r = yes; then- # For backward compatibility's sake, define HAVE_STRERROR_R.- # (We used to run AC_CHECK_FUNCS_ONCE for strerror_r, as well- # as AC_CHECK_DECLS_ONCE.)--printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h--fi--{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5-printf %s "checking whether strerror_r returns char *... " >&6; }-if test ${ac_cv_func_strerror_r_char_p+y}-then :- printf %s "(cached) " >&6-else case e in #(- e)- ac_cv_func_strerror_r_char_p=no- if test $ac_cv_have_decl_strerror_r = yes; then- cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */-#include <string.h>-int-main (void)-{-- char buf[100];- char x = *strerror_r (0, buf, sizeof buf);- char *p = strerror_r (0, buf, sizeof buf);- return !p || x;-- ;- return 0;-}-_ACEOF-if ac_fn_c_try_compile "$LINENO"-then :- ac_cv_func_strerror_r_char_p=yes-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext-- fi- ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5-printf "%s\n" "$ac_cv_func_strerror_r_char_p" >&6; }-if test $ac_cv_func_strerror_r_char_p = yes; then--printf "%s\n" "#define STRERROR_R_CHAR_P 1" >>confdefs.h--fi--- for ac_func in strftime-do :- ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"-if test "x$ac_cv_func_strftime" = xyes-then :- printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h--else case e in #(- e) # strftime is in -lintl on SCO UNIX.-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5-printf %s "checking for strftime in -lintl... " >&6; }-if test ${ac_cv_lib_intl_strftime+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) ac_check_lib_save_LIBS=$LIBS-LIBS="-lintl $LIBS"-cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */--/* Override any GCC internal prototype to avoid an error.- Use char because int might match the return type of a GCC- builtin and then its argument prototype would still apply.- The 'extern "C"' is for builds by C++ compilers;- although this is not generally supported in C code supporting it here- has little cost and some practical benefit (sr 110532). */-#ifdef __cplusplus-extern "C"-#endif-char strftime (void);-int-main (void)-{-return strftime ();- ;- return 0;-}-_ACEOF-if ac_fn_c_try_link "$LINENO"-then :- ac_cv_lib_intl_strftime=yes-else case e in #(- e) ac_cv_lib_intl_strftime=no ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam \- conftest$ac_exeext conftest.$ac_ext-LIBS=$ac_check_lib_save_LIBS ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5-printf "%s\n" "$ac_cv_lib_intl_strftime" >&6; }-if test "x$ac_cv_lib_intl_strftime" = xyes-then :- printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h--LIBS="-lintl $LIBS"-fi- ;;-esac-fi--done-ac_func=-for ac_item in $ac_func_c_list-do- if test $ac_func; then- ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func- if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then- echo "#define $ac_item 1" >> confdefs.h- fi- ac_func=- else- ac_func=$ac_item- fi-done--if test "x$ac_cv_func_vprintf" = xno-then :- ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"-if test "x$ac_cv_func__doprnt" = xyes-then :--printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h--fi--fi-# check for:-# CreateHardLinkA(LPCSTR, LPCSTR, LPSECURITY_ATTRIBUTES)-# To avoid necessity for including windows.h or special forward declaration-# workarounds, we use 'void *' for 'struct SECURITY_ATTRIBUTES *'-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CreateHardLinkA" >&5-printf %s "checking for CreateHardLinkA... " >&6; }-if test ${ac_cv_func_CreateHardLinkA+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */-/* System header to define __stub macros and hopefully few prototypes,- which can conflict with char __stdcall CreateHardLinkA ( const char *, const char *, void * ) below. */-#include <assert.h>-/* Override any gcc2 internal prototype to avoid an error. */-#ifdef __cplusplus-extern "C"-#endif-/* We use char because int might match the return type of a gcc2- builtin and then its argument prototype would still apply. */-char __stdcall CreateHardLinkA ( const char *, const char *, void * );-char (*f) ( const char *, const char *, void * );--int-main (void)-{-/* The GNU C library defines this for functions which it implements- to always fail with ENOSYS. Some functions are actually named- something starting with __ and the normal name is an alias. */-#if defined (__stub_CreateHardLinkA) || defined (__stub___CreateHardLinkA)-choke me-#else-f = CreateHardLinkA;-#endif-- ;- return 0;-}-_ACEOF-if ac_fn_c_try_link "$LINENO"-then :- ac_cv_func_CreateHardLinkA=yes-else case e in #(- e) ac_cv_func_CreateHardLinkA=no ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam \- conftest$ac_exeext conftest.$ac_ext ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_CreateHardLinkA" >&5-printf "%s\n" "$ac_cv_func_CreateHardLinkA" >&6; }-if test $ac_cv_func_CreateHardLinkA = yes-then :--fi-ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf"-if test "x$ac_cv_func_arc4random_buf" = xyes-then :- printf "%s\n" "#define HAVE_ARC4RANDOM_BUF 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"-if test "x$ac_cv_func_chflags" = xyes-then :- printf "%s\n" "#define HAVE_CHFLAGS 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "chown" "ac_cv_func_chown"-if test "x$ac_cv_func_chown" = xyes-then :- printf "%s\n" "#define HAVE_CHOWN 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot"-if test "x$ac_cv_func_chroot" = xyes-then :- printf "%s\n" "#define HAVE_CHROOT 1" >>confdefs.h--fi--ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"-if test "x$ac_cv_func_closefrom" = xyes-then :- printf "%s\n" "#define HAVE_CLOSEFROM 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "close_range" "ac_cv_func_close_range"-if test "x$ac_cv_func_close_range" = xyes-then :- printf "%s\n" "#define HAVE_CLOSE_RANGE 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"-if test "x$ac_cv_func_ctime_r" = xyes-then :- printf "%s\n" "#define HAVE_CTIME_R 1" >>confdefs.h--fi--ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"-if test "x$ac_cv_func_fchdir" = xyes-then :- printf "%s\n" "#define HAVE_FCHDIR 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "fchflags" "ac_cv_func_fchflags"-if test "x$ac_cv_func_fchflags" = xyes-then :- printf "%s\n" "#define HAVE_FCHFLAGS 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "fchmod" "ac_cv_func_fchmod"-if test "x$ac_cv_func_fchmod" = xyes-then :- printf "%s\n" "#define HAVE_FCHMOD 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "fchown" "ac_cv_func_fchown"-if test "x$ac_cv_func_fchown" = xyes-then :- printf "%s\n" "#define HAVE_FCHOWN 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"-if test "x$ac_cv_func_fcntl" = xyes-then :- printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "fdopendir" "ac_cv_func_fdopendir"-if test "x$ac_cv_func_fdopendir" = xyes-then :- printf "%s\n" "#define HAVE_FDOPENDIR 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "fnmatch" "ac_cv_func_fnmatch"-if test "x$ac_cv_func_fnmatch" = xyes-then :- printf "%s\n" "#define HAVE_FNMATCH 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"-if test "x$ac_cv_func_fork" = xyes-then :- printf "%s\n" "#define HAVE_FORK 1" >>confdefs.h--fi--ac_fn_c_check_func "$LINENO" "fstat" "ac_cv_func_fstat"-if test "x$ac_cv_func_fstat" = xyes-then :- printf "%s\n" "#define HAVE_FSTAT 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "fstatat" "ac_cv_func_fstatat"-if test "x$ac_cv_func_fstatat" = xyes-then :- printf "%s\n" "#define HAVE_FSTATAT 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "fstatfs" "ac_cv_func_fstatfs"-if test "x$ac_cv_func_fstatfs" = xyes-then :- printf "%s\n" "#define HAVE_FSTATFS 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "fstatvfs" "ac_cv_func_fstatvfs"-if test "x$ac_cv_func_fstatvfs" = xyes-then :- printf "%s\n" "#define HAVE_FSTATVFS 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"-if test "x$ac_cv_func_ftruncate" = xyes-then :- printf "%s\n" "#define HAVE_FTRUNCATE 1" >>confdefs.h--fi--ac_fn_c_check_func "$LINENO" "futimens" "ac_cv_func_futimens"-if test "x$ac_cv_func_futimens" = xyes-then :- printf "%s\n" "#define HAVE_FUTIMENS 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "futimes" "ac_cv_func_futimes"-if test "x$ac_cv_func_futimes" = xyes-then :- printf "%s\n" "#define HAVE_FUTIMES 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "futimesat" "ac_cv_func_futimesat"-if test "x$ac_cv_func_futimesat" = xyes-then :- printf "%s\n" "#define HAVE_FUTIMESAT 1" >>confdefs.h--fi--ac_fn_c_check_func "$LINENO" "getegid" "ac_cv_func_getegid"-if test "x$ac_cv_func_getegid" = xyes-then :- printf "%s\n" "#define HAVE_GETEGID 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"-if test "x$ac_cv_func_geteuid" = xyes-then :- printf "%s\n" "#define HAVE_GETEUID 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"-if test "x$ac_cv_func_getline" = xyes-then :- printf "%s\n" "#define HAVE_GETLINE 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "getpid" "ac_cv_func_getpid"-if test "x$ac_cv_func_getpid" = xyes-then :- printf "%s\n" "#define HAVE_GETPID 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "getresgid" "ac_cv_func_getresgid"-if test "x$ac_cv_func_getresgid" = xyes-then :- printf "%s\n" "#define HAVE_GETRESGID 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid"-if test "x$ac_cv_func_getresuid" = xyes-then :- printf "%s\n" "#define HAVE_GETRESUID 1" >>confdefs.h--fi--ac_fn_c_check_func "$LINENO" "getgrgid_r" "ac_cv_func_getgrgid_r"-if test "x$ac_cv_func_getgrgid_r" = xyes-then :- printf "%s\n" "#define HAVE_GETGRGID_R 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "getgrnam_r" "ac_cv_func_getgrnam_r"-if test "x$ac_cv_func_getgrnam_r" = xyes-then :- printf "%s\n" "#define HAVE_GETGRNAM_R 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "getpwnam_r" "ac_cv_func_getpwnam_r"-if test "x$ac_cv_func_getpwnam_r" = xyes-then :- printf "%s\n" "#define HAVE_GETPWNAM_R 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r"-if test "x$ac_cv_func_getpwuid_r" = xyes-then :- printf "%s\n" "#define HAVE_GETPWUID_R 1" >>confdefs.h--fi--ac_fn_c_check_func "$LINENO" "getvfsbyname" "ac_cv_func_getvfsbyname"-if test "x$ac_cv_func_getvfsbyname" = xyes-then :- printf "%s\n" "#define HAVE_GETVFSBYNAME 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"-if test "x$ac_cv_func_gmtime_r" = xyes-then :- printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h--fi--ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"-if test "x$ac_cv_func_issetugid" = xyes-then :- printf "%s\n" "#define HAVE_ISSETUGID 1" >>confdefs.h--fi--ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags"-if test "x$ac_cv_func_lchflags" = xyes-then :- printf "%s\n" "#define HAVE_LCHFLAGS 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "lchmod" "ac_cv_func_lchmod"-if test "x$ac_cv_func_lchmod" = xyes-then :- printf "%s\n" "#define HAVE_LCHMOD 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "lchown" "ac_cv_func_lchown"-if test "x$ac_cv_func_lchown" = xyes-then :- printf "%s\n" "#define HAVE_LCHOWN 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "link" "ac_cv_func_link"-if test "x$ac_cv_func_link" = xyes-then :- printf "%s\n" "#define HAVE_LINK 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "linkat" "ac_cv_func_linkat"-if test "x$ac_cv_func_linkat" = xyes-then :- printf "%s\n" "#define HAVE_LINKAT 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"-if test "x$ac_cv_func_localtime_r" = xyes-then :- printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "lstat" "ac_cv_func_lstat"-if test "x$ac_cv_func_lstat" = xyes-then :- printf "%s\n" "#define HAVE_LSTAT 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "lutimes" "ac_cv_func_lutimes"-if test "x$ac_cv_func_lutimes" = xyes-then :- printf "%s\n" "#define HAVE_LUTIMES 1" >>confdefs.h--fi--ac_fn_c_check_func "$LINENO" "mbrtowc" "ac_cv_func_mbrtowc"-if test "x$ac_cv_func_mbrtowc" = xyes-then :- printf "%s\n" "#define HAVE_MBRTOWC 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"-if test "x$ac_cv_func_memmove" = xyes-then :- printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"-if test "x$ac_cv_func_memset" = xyes-then :- printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h--fi--ac_fn_c_check_func "$LINENO" "mkdir" "ac_cv_func_mkdir"-if test "x$ac_cv_func_mkdir" = xyes-then :- printf "%s\n" "#define HAVE_MKDIR 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "mkfifo" "ac_cv_func_mkfifo"-if test "x$ac_cv_func_mkfifo" = xyes-then :- printf "%s\n" "#define HAVE_MKFIFO 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "mknod" "ac_cv_func_mknod"-if test "x$ac_cv_func_mknod" = xyes-then :- printf "%s\n" "#define HAVE_MKNOD 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"-if test "x$ac_cv_func_mkstemp" = xyes-then :- printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h--fi--ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"-if test "x$ac_cv_func_nl_langinfo" = xyes-then :- printf "%s\n" "#define HAVE_NL_LANGINFO 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat"-if test "x$ac_cv_func_openat" = xyes-then :- printf "%s\n" "#define HAVE_OPENAT 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "pipe" "ac_cv_func_pipe"-if test "x$ac_cv_func_pipe" = xyes-then :- printf "%s\n" "#define HAVE_PIPE 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"-if test "x$ac_cv_func_poll" = xyes-then :- printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn"-if test "x$ac_cv_func_posix_spawn" = xyes-then :- printf "%s\n" "#define HAVE_POSIX_SPAWN 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "posix_spawnp" "ac_cv_func_posix_spawnp"-if test "x$ac_cv_func_posix_spawnp" = xyes-then :- printf "%s\n" "#define HAVE_POSIX_SPAWNP 1" >>confdefs.h--fi--ac_fn_c_check_func "$LINENO" "readlink" "ac_cv_func_readlink"-if test "x$ac_cv_func_readlink" = xyes-then :- printf "%s\n" "#define HAVE_READLINK 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "readlinkat" "ac_cv_func_readlinkat"-if test "x$ac_cv_func_readlinkat" = xyes-then :- printf "%s\n" "#define HAVE_READLINKAT 1" >>confdefs.h--fi--ac_fn_c_check_func "$LINENO" "readpassphrase" "ac_cv_func_readpassphrase"-if test "x$ac_cv_func_readpassphrase" = xyes-then :- printf "%s\n" "#define HAVE_READPASSPHRASE 1" >>confdefs.h--fi--ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"-if test "x$ac_cv_func_select" = xyes-then :- printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"-if test "x$ac_cv_func_setenv" = xyes-then :- printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"-if test "x$ac_cv_func_setlocale" = xyes-then :- printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"-if test "x$ac_cv_func_sigaction" = xyes-then :- printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "statfs" "ac_cv_func_statfs"-if test "x$ac_cv_func_statfs" = xyes-then :- printf "%s\n" "#define HAVE_STATFS 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "statvfs" "ac_cv_func_statvfs"-if test "x$ac_cv_func_statvfs" = xyes-then :- printf "%s\n" "#define HAVE_STATVFS 1" >>confdefs.h--fi--ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"-if test "x$ac_cv_func_strchr" = xyes-then :- printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"-if test "x$ac_cv_func_strdup" = xyes-then :- printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"-if test "x$ac_cv_func_strerror" = xyes-then :- printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "strncpy_s" "ac_cv_func_strncpy_s"-if test "x$ac_cv_func_strncpy_s" = xyes-then :- printf "%s\n" "#define HAVE_STRNCPY_S 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"-if test "x$ac_cv_func_strnlen" = xyes-then :- printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"-if test "x$ac_cv_func_strrchr" = xyes-then :- printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "symlink" "ac_cv_func_symlink"-if test "x$ac_cv_func_symlink" = xyes-then :- printf "%s\n" "#define HAVE_SYMLINK 1" >>confdefs.h--fi--ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"-if test "x$ac_cv_func_sysconf" = xyes-then :- printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h--fi--ac_fn_c_check_func "$LINENO" "tcgetattr" "ac_cv_func_tcgetattr"-if test "x$ac_cv_func_tcgetattr" = xyes-then :- printf "%s\n" "#define HAVE_TCGETATTR 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "tcsetattr" "ac_cv_func_tcsetattr"-if test "x$ac_cv_func_tcsetattr" = xyes-then :- printf "%s\n" "#define HAVE_TCSETATTR 1" >>confdefs.h--fi--ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"-if test "x$ac_cv_func_timegm" = xyes-then :- printf "%s\n" "#define HAVE_TIMEGM 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset"-if test "x$ac_cv_func_tzset" = xyes-then :- printf "%s\n" "#define HAVE_TZSET 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "unlinkat" "ac_cv_func_unlinkat"-if test "x$ac_cv_func_unlinkat" = xyes-then :- printf "%s\n" "#define HAVE_UNLINKAT 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"-if test "x$ac_cv_func_unsetenv" = xyes-then :- printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime"-if test "x$ac_cv_func_utime" = xyes-then :- printf "%s\n" "#define HAVE_UTIME 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "utimensat" "ac_cv_func_utimensat"-if test "x$ac_cv_func_utimensat" = xyes-then :- printf "%s\n" "#define HAVE_UTIMENSAT 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"-if test "x$ac_cv_func_utimes" = xyes-then :- printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "vfork" "ac_cv_func_vfork"-if test "x$ac_cv_func_vfork" = xyes-then :- printf "%s\n" "#define HAVE_VFORK 1" >>confdefs.h--fi--ac_fn_c_check_func "$LINENO" "wcrtomb" "ac_cv_func_wcrtomb"-if test "x$ac_cv_func_wcrtomb" = xyes-then :- printf "%s\n" "#define HAVE_WCRTOMB 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "wcscmp" "ac_cv_func_wcscmp"-if test "x$ac_cv_func_wcscmp" = xyes-then :- printf "%s\n" "#define HAVE_WCSCMP 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "wcscpy" "ac_cv_func_wcscpy"-if test "x$ac_cv_func_wcscpy" = xyes-then :- printf "%s\n" "#define HAVE_WCSCPY 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"-if test "x$ac_cv_func_wcslen" = xyes-then :- printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "wctomb" "ac_cv_func_wctomb"-if test "x$ac_cv_func_wctomb" = xyes-then :- printf "%s\n" "#define HAVE_WCTOMB 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "wmemcmp" "ac_cv_func_wmemcmp"-if test "x$ac_cv_func_wmemcmp" = xyes-then :- printf "%s\n" "#define HAVE_WMEMCMP 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "wmemcpy" "ac_cv_func_wmemcpy"-if test "x$ac_cv_func_wmemcpy" = xyes-then :- printf "%s\n" "#define HAVE_WMEMCPY 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "wmemmove" "ac_cv_func_wmemmove"-if test "x$ac_cv_func_wmemmove" = xyes-then :- printf "%s\n" "#define HAVE_WMEMMOVE 1" >>confdefs.h--fi--ac_fn_c_check_func "$LINENO" "_fseeki64" "ac_cv_func__fseeki64"-if test "x$ac_cv_func__fseeki64" = xyes-then :- printf "%s\n" "#define HAVE__FSEEKI64 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "_get_timezone" "ac_cv_func__get_timezone"-if test "x$ac_cv_func__get_timezone" = xyes-then :- printf "%s\n" "#define HAVE__GET_TIMEZONE 1" >>confdefs.h--fi--ac_fn_check_decl "$LINENO" "cmtime_s" "ac_cv_have_decl_cmtime_s" "#include <time.h>-" "$ac_c_undeclared_builtin_options" "CFLAGS"-if test "x$ac_cv_have_decl_cmtime_s" = xyes-then :--printf "%s\n" "#define HAVE_CMTIME_S 1" >>confdefs.h--fi-ac_fn_check_decl "$LINENO" "gmtime_s" "ac_cv_have_decl_gmtime_s" "#include <time.h>-" "$ac_c_undeclared_builtin_options" "CFLAGS"-if test "x$ac_cv_have_decl_gmtime_s" = xyes-then :--printf "%s\n" "#define HAVE_GMTIME_S 1" >>confdefs.h--fi-ac_fn_c_check_type "$LINENO" "localtime_s" "ac_cv_type_localtime_s" "#include <time.h>-"-if test "x$ac_cv_type_localtime_s" = xyes-then :--printf "%s\n" "#define HAVE_LOCALTIME_S 1" >>confdefs.h--fi--ac_fn_check_decl "$LINENO" "_mkgmtime" "ac_cv_have_decl__mkgmtime" "#include <time.h>-" "$ac_c_undeclared_builtin_options" "CFLAGS"-if test "x$ac_cv_have_decl__mkgmtime" = xyes-then :--printf "%s\n" "#define HAVE__MKGMTIME 1" >>confdefs.h--fi--# detects cygwin-1.7, as opposed to older versions-ac_fn_c_check_func "$LINENO" "cygwin_conv_path" "ac_cv_func_cygwin_conv_path"-if test "x$ac_cv_func_cygwin_conv_path" = xyes-then :- printf "%s\n" "#define HAVE_CYGWIN_CONV_PATH 1" >>confdefs.h--fi---# DragonFly uses vfsconf, FreeBSD xvfsconf.-ac_fn_c_check_type "$LINENO" "struct vfsconf" "ac_cv_type_struct_vfsconf" "#if HAVE_SYS_TYPES_H- #include <sys/types.h>- #endif- #include <sys/mount.h>--"-if test "x$ac_cv_type_struct_vfsconf" = xyes-then :--printf "%s\n" "#define HAVE_STRUCT_VFSCONF 1" >>confdefs.h---fi---ac_fn_c_check_type "$LINENO" "struct xvfsconf" "ac_cv_type_struct_xvfsconf" "#if HAVE_SYS_TYPES_H- #include <sys/types.h>- #endif- #include <sys/mount.h>--"-if test "x$ac_cv_type_struct_xvfsconf" = xyes-then :--printf "%s\n" "#define HAVE_STRUCT_XVFSCONF 1" >>confdefs.h---fi---ac_fn_c_check_type "$LINENO" "struct statfs" "ac_cv_type_struct_statfs" "#if HAVE_SYS_TYPES_H- #include <sys/types.h>- #endif- #include <sys/mount.h>--"-if test "x$ac_cv_type_struct_statfs" = xyes-then :--printf "%s\n" "#define HAVE_STRUCT_STATFS 1" >>confdefs.h---fi---# dirfd can be either a function or a macro.-cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */-#include <dirent.h>- DIR *dir;-int-main (void)-{-return(dirfd(dir));- ;- return 0;-}-_ACEOF-if ac_fn_c_try_link "$LINENO"-then :--printf "%s\n" "#define HAVE_DIRFD 1" >>confdefs.h---fi-rm -f core conftest.err conftest.$ac_objext conftest.beam \- conftest$ac_exeext conftest.$ac_ext--# FreeBSD's nl_langinfo supports an option to specify whether the-# current locale uses month/day or day/month ordering. It makes the-# output a little prettier...-ac_fn_check_decl "$LINENO" "D_MD_ORDER" "ac_cv_have_decl_D_MD_ORDER" "#if HAVE_LANGINFO_H-#include <langinfo.h>-#endif--" "$ac_c_undeclared_builtin_options" "CFLAGS"-if test "x$ac_cv_have_decl_D_MD_ORDER" = xyes-then :--printf "%s\n" "#define HAVE_D_MD_ORDER 1" >>confdefs.h--fi--# Check for dirent.d_namlen field explicitly-# (This is a bit more straightforward than, if not quite as portable as,-# the recipe given by the autoconf maintainers.)-ac_fn_c_check_member "$LINENO" "struct dirent" "d_namlen" "ac_cv_member_struct_dirent_d_namlen" "#if HAVE_DIRENT_H-#include <dirent.h>-#endif--"-if test "x$ac_cv_member_struct_dirent_d_namlen" = xyes-then :--fi---# Check for Extended Attributes support-# Check whether --enable-xattr was given.-if test ${enable_xattr+y}-then :- enableval=$enable_xattr;-fi---if test "x$enable_xattr" = "xyes" || test "$CABAL_FLAG_xattr" = 1; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing setxattr" >&5-printf %s "checking for library containing setxattr... " >&6; }-if test ${ac_cv_search_setxattr+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) ac_func_search_save_LIBS=$LIBS-cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */--/* Override any GCC internal prototype to avoid an error.- Use char because int might match the return type of a GCC- builtin and then its argument prototype would still apply.- The 'extern "C"' is for builds by C++ compilers;- although this is not generally supported in C code supporting it here- has little cost and some practical benefit (sr 110532). */-#ifdef __cplusplus-extern "C"-#endif-char setxattr (void);-int-main (void)-{-return setxattr ();- ;- return 0;-}-_ACEOF-for ac_lib in '' attr gnu-do- if test -z "$ac_lib"; then- ac_res="none required"- else- ac_res=-l$ac_lib- LIBS="-l$ac_lib $ac_func_search_save_LIBS"- fi- if ac_fn_c_try_link "$LINENO"-then :- ac_cv_search_setxattr=$ac_res-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam \- conftest$ac_exeext- if test ${ac_cv_search_setxattr+y}-then :- break-fi-done-if test ${ac_cv_search_setxattr+y}-then :--else case e in #(- e) ac_cv_search_setxattr=no ;;-esac-fi-rm conftest.$ac_ext-LIBS=$ac_func_search_save_LIBS ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setxattr" >&5-printf "%s\n" "$ac_cv_search_setxattr" >&6; }-ac_res=$ac_cv_search_setxattr-if test "$ac_res" != no-then :- test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"--fi-- ac_fn_check_decl "$LINENO" "EXTATTR_NAMESPACE_USER" "ac_cv_have_decl_EXTATTR_NAMESPACE_USER" "#include <sys/types.h>-#include <sys/extattr.h>--" "$ac_c_undeclared_builtin_options" "CFLAGS"-if test "x$ac_cv_have_decl_EXTATTR_NAMESPACE_USER" = xyes-then :- ac_have_decl=1-else case e in #(- e) ac_have_decl=0 ;;-esac-fi-printf "%s\n" "#define HAVE_DECL_EXTATTR_NAMESPACE_USER $ac_have_decl" >>confdefs.h-- ac_fn_check_decl "$LINENO" "XATTR_NOFOLLOW" "ac_cv_have_decl_XATTR_NOFOLLOW" "#include <sys/xattr.h>--" "$ac_c_undeclared_builtin_options" "CFLAGS"-if test "x$ac_cv_have_decl_XATTR_NOFOLLOW" = xyes-then :- ac_have_decl=1-else case e in #(- e) ac_have_decl=0 ;;-esac-fi-printf "%s\n" "#define HAVE_DECL_XATTR_NOFOLLOW $ac_have_decl" >>confdefs.h-- ATTR_PC_VER=`$PKG_CONFIG --modversion libattr`- if test "x$ATTR_PC_VER" != "x"; then--printf "%s\n" "#define LIBATTR_PKGCONFIG_VERSION \"$ATTR_PC_VER\"" >>confdefs.h-- fi- if test "x$ac_cv_header_sys_xattr_h" = "xyes" \- -a "x$ac_cv_have_decl_XATTR_NOFOLLOW" = "xyes"; then- # Darwin extended attributes support- if test ${ac_cv_archive_xattr_darwin+y}-then :- printf %s "(cached) " >&6-else case e in #(- e)- for ac_func in fgetxattr flistxattr fsetxattr getxattr listxattr setxattr-do :- as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`-ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"-if eval test \"x\$"$as_ac_var"\" = x"yes"-then :- cat >>confdefs.h <<_ACEOF-#define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1-_ACEOF- ac_cv_archive_xattr_darwin=yes-else case e in #(- e) ac_cv_archive_xattr_darwin=no ;;-esac-fi--done-- ;;-esac-fi-- elif test "x$ac_cv_header_sys_extattr_h" = "xyes" \- -a "x$ac_cv_have_decl_EXTATTR_NAMESPACE_USER" = "xyes"; then- # FreeBSD extended attributes support- if test ${ac_cv_archive_xattr_freebsd+y}-then :- printf %s "(cached) " >&6-else case e in #(- e)- for ac_func in extattr_get_fd extattr_get_file extattr_get_link extattr_list_fd extattr_list_file extattr_list_link extattr_set_fd extattr_set_link-do :- as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`-ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"-if eval test \"x\$"$as_ac_var"\" = x"yes"-then :- cat >>confdefs.h <<_ACEOF-#define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1-_ACEOF- ac_cv_archive_xattr_freebsd=yes-else case e in #(- e) ac_cv_archive_xattr_freebsd=no ;;-esac-fi--done-- ;;-esac-fi-- elif test "x$ac_cv_header_sys_xattr_h" = "xyes" \- -o "x$ac_cv_header_attr_xattr_h" = "xyes"; then- # Linux extended attributes support- if test ${ac_cv_archive_xattr_linux+y}-then :- printf %s "(cached) " >&6-else case e in #(- e)- for ac_func in fgetxattr flistxattr fsetxattr getxattr lgetxattr listxattr llistxattr lsetxattr-do :- as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`-ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"-if eval test \"x\$"$as_ac_var"\" = x"yes"-then :- cat >>confdefs.h <<_ACEOF-#define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1-_ACEOF- ac_cv_archive_xattr_linux=yes-else case e in #(- e) ac_cv_archive_xattr_linux=no ;;-esac-fi--done-- ;;-esac-fi-- elif test "x$ac_cv_header_sys_ea_h" = "xyes"; then- # AIX extended attributes support- if test ${ac_cv_archive_xattr_aix+y}-then :- printf %s "(cached) " >&6-else case e in #(- e)- for ac_func in fgetea flistea fsetea getea lgetea listea llistea lsetea-do :- as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`-ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"-if eval test \"x\$"$as_ac_var"\" = x"yes"-then :- cat >>confdefs.h <<_ACEOF-#define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1-_ACEOF- ac_cv_archive_xattr_aix=yes-else case e in #(- e) ac_cv_archive_xattr_aix=no ;;-esac-fi--done-- ;;-esac-fi-- fi-- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for extended attributes support" >&5-printf %s "checking for extended attributes support... " >&6; }- if test "x$ac_cv_archive_xattr_linux" = "xyes"; then--printf "%s\n" "#define ARCHIVE_XATTR_LINUX 1" >>confdefs.h-- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Linux" >&5-printf "%s\n" "Linux" >&6; }- elif test "x$ac_cv_archive_xattr_darwin" = "xyes"; then--printf "%s\n" "#define ARCHIVE_XATTR_DARWIN 1" >>confdefs.h-- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5-printf "%s\n" "Darwin" >&6; }- elif test "x$ac_cv_archive_xattr_freebsd" = "xyes"; then--printf "%s\n" "#define ARCHIVE_XATTR_FREEBSD 1" >>confdefs.h-- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FreeBSD" >&5-printf "%s\n" "FreeBSD" >&6; }- elif test "x$ac_cv_archive_xattr_aix" = "xyes"; then--printf "%s\n" "#define ARCHIVE_XATTR_AIX 1" >>confdefs.h-- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: AIX" >&5-printf "%s\n" "AIX" >&6; }- else- as_fn_error $? "Could not find a suitable version of xattr" "$LINENO" 5- fi-fi--# Check for ACL support-#-# The ACL support in libarchive is written against the POSIX1e draft,-# which was never officially approved and varies quite a bit across-# platforms. Worse, some systems have completely non-POSIX acl functions,-# which makes the following checks rather more complex than I would like.-#-# Check whether --enable-acl was given.-if test ${enable_acl+y}-then :- enableval=$enable_acl;-fi---if test "x$enable_acl" = "xyes" || test "$CABAL_FLAG_acl" = 1; then- # Libacl- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5-printf %s "checking for acl_get_file in -lacl... " >&6; }-if test ${ac_cv_lib_acl_acl_get_file+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) ac_check_lib_save_LIBS=$LIBS-LIBS="-lacl $LIBS"-cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */--/* Override any GCC internal prototype to avoid an error.- Use char because int might match the return type of a GCC- builtin and then its argument prototype would still apply.- The 'extern "C"' is for builds by C++ compilers;- although this is not generally supported in C code supporting it here- has little cost and some practical benefit (sr 110532). */-#ifdef __cplusplus-extern "C"-#endif-char acl_get_file (void);-int-main (void)-{-return acl_get_file ();- ;- return 0;-}-_ACEOF-if ac_fn_c_try_link "$LINENO"-then :- ac_cv_lib_acl_acl_get_file=yes-else case e in #(- e) ac_cv_lib_acl_acl_get_file=no ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam \- conftest$ac_exeext conftest.$ac_ext-LIBS=$ac_check_lib_save_LIBS ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5-printf "%s\n" "$ac_cv_lib_acl_acl_get_file" >&6; }-if test "x$ac_cv_lib_acl_acl_get_file" = xyes-then :- printf "%s\n" "#define HAVE_LIBACL 1" >>confdefs.h-- LIBS="-lacl $LIBS"--fi-- ACL_PC_VER=`$PKG_CONFIG --modversion libacl`- if test "x$ACL_PC_VER" != "x"; then--printf "%s\n" "#define LIBACL_PKGCONFIG_VERSION \"$ACL_PC_VER\"" >>confdefs.h-- fi- ac_fn_c_check_type "$LINENO" "acl_t" "ac_cv_type_acl_t" "- #if HAVE_SYS_TYPES_H- #include <sys/types.h>- #endif- #if HAVE_SYS_ACL_H- #include <sys/acl.h>- #endif--"-if test "x$ac_cv_type_acl_t" = xyes-then :--printf "%s\n" "#define HAVE_ACL_T 1" >>confdefs.h---fi-ac_fn_c_check_type "$LINENO" "acl_entry_t" "ac_cv_type_acl_entry_t" "- #if HAVE_SYS_TYPES_H- #include <sys/types.h>- #endif- #if HAVE_SYS_ACL_H- #include <sys/acl.h>- #endif--"-if test "x$ac_cv_type_acl_entry_t" = xyes-then :--printf "%s\n" "#define HAVE_ACL_ENTRY_T 1" >>confdefs.h---fi-ac_fn_c_check_type "$LINENO" "acl_permset_t" "ac_cv_type_acl_permset_t" "- #if HAVE_SYS_TYPES_H- #include <sys/types.h>- #endif- #if HAVE_SYS_ACL_H- #include <sys/acl.h>- #endif--"-if test "x$ac_cv_type_acl_permset_t" = xyes-then :--printf "%s\n" "#define HAVE_ACL_PERMSET_T 1" >>confdefs.h---fi-ac_fn_c_check_type "$LINENO" "acl_tag_t" "ac_cv_type_acl_tag_t" "- #if HAVE_SYS_TYPES_H- #include <sys/types.h>- #endif- #if HAVE_SYS_ACL_H- #include <sys/acl.h>- #endif--"-if test "x$ac_cv_type_acl_tag_t" = xyes-then :--printf "%s\n" "#define HAVE_ACL_TAG_T 1" >>confdefs.h---fi--- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for richacl_get_file in -lrichacl" >&5-printf %s "checking for richacl_get_file in -lrichacl... " >&6; }-if test ${ac_cv_lib_richacl_richacl_get_file+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) ac_check_lib_save_LIBS=$LIBS-LIBS="-lrichacl $LIBS"-cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */--/* Override any GCC internal prototype to avoid an error.- Use char because int might match the return type of a GCC- builtin and then its argument prototype would still apply.- The 'extern "C"' is for builds by C++ compilers;- although this is not generally supported in C code supporting it here- has little cost and some practical benefit (sr 110532). */-#ifdef __cplusplus-extern "C"-#endif-char richacl_get_file (void);-int-main (void)-{-return richacl_get_file ();- ;- return 0;-}-_ACEOF-if ac_fn_c_try_link "$LINENO"-then :- ac_cv_lib_richacl_richacl_get_file=yes-else case e in #(- e) ac_cv_lib_richacl_richacl_get_file=no ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam \- conftest$ac_exeext conftest.$ac_ext-LIBS=$ac_check_lib_save_LIBS ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_richacl_richacl_get_file" >&5-printf "%s\n" "$ac_cv_lib_richacl_richacl_get_file" >&6; }-if test "x$ac_cv_lib_richacl_richacl_get_file" = xyes-then :- printf "%s\n" "#define HAVE_LIBRICHACL 1" >>confdefs.h-- LIBS="-lrichacl $LIBS"--fi-- RICHACL_PC_VER=`$PKG_CONFIG --modversion librichacl`- if test "x$RICHACL_PC_VER" != "x"; then--printf "%s\n" "#define LIBRICHACL_PKGCONFIG_VERSION \"$RICHACL_PC_VER\"" >>confdefs.h-- fi- ac_fn_c_check_type "$LINENO" "struct richace" "ac_cv_type_struct_richace" "- #if HAVE_SYS_RICHACL_H- #include <sys/richacl.h>- #endif--"-if test "x$ac_cv_type_struct_richace" = xyes-then :--printf "%s\n" "#define HAVE_STRUCT_RICHACE 1" >>confdefs.h---fi-ac_fn_c_check_type "$LINENO" "struct richacl" "ac_cv_type_struct_richacl" "- #if HAVE_SYS_RICHACL_H- #include <sys/richacl.h>- #endif--"-if test "x$ac_cv_type_struct_richacl" = xyes-then :--printf "%s\n" "#define HAVE_STRUCT_RICHACL 1" >>confdefs.h---fi--- # Solaris and derivates ACLs- ac_fn_c_check_func "$LINENO" "acl" "ac_cv_func_acl"-if test "x$ac_cv_func_acl" = xyes-then :- printf "%s\n" "#define HAVE_ACL 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "facl" "ac_cv_func_facl"-if test "x$ac_cv_func_facl" = xyes-then :- printf "%s\n" "#define HAVE_FACL 1" >>confdefs.h--fi--- if test "x$ac_cv_lib_richacl_richacl_get_file" = "xyes" \- -a "x$ac_cv_type_struct_richace" = "xyes" \- -a "x$ac_cv_type_struct_richacl" = "xyes"; then- if test ${ac_cv_archive_acl_librichacl+y}-then :- printf %s "(cached) " >&6-else case e in #(- e)- for ac_func in richacl_alloc richacl_equiv_mode richacl_free richacl_get_fd richacl_get_file richacl_set_fd richacl_set_file-do :- as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`-ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"-if eval test \"x\$"$as_ac_var"\" = x"yes"-then :- cat >>confdefs.h <<_ACEOF-#define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1-_ACEOF- ac_cv_archive_acl_librichacl=yes-else case e in #(- e) ac_cv_archive_acl_librichacl=no ;;-esac-fi--done ;;-esac-fi-- fi-- if test "x$ac_cv_func_acl" = "xyes" \- -a "x$ac_cv_func_facl" = "xyes"; then- ac_fn_c_check_type "$LINENO" "aclent_t" "ac_cv_type_aclent_t" "#include <sys/acl.h>-"-if test "x$ac_cv_type_aclent_t" = xyes-then :--printf "%s\n" "#define HAVE_ACLENT_T 1" >>confdefs.h---fi-- if test "x$ac_cv_type_aclent_t" = "xyes"; then- if test ${ac_cv_archive_acl_sunos+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) ac_fn_check_decl "$LINENO" "GETACL" "ac_cv_have_decl_GETACL" "#include <sys/acl.h>-" "$ac_c_undeclared_builtin_options" "CFLAGS"-if test "x$ac_cv_have_decl_GETACL" = xyes-then :- ac_have_decl=1-else case e in #(- e) ac_have_decl=0 ;;-esac-fi-printf "%s\n" "#define HAVE_DECL_GETACL $ac_have_decl" >>confdefs.h-if test $ac_have_decl = 1-then :- ac_cv_archive_acl_sunos=yes-else case e in #(- e) ac_cv_archive_acl_sunos=no ;;-esac-fi-ac_fn_check_decl "$LINENO" "SETACL" "ac_cv_have_decl_SETACL" "#include <sys/acl.h>-" "$ac_c_undeclared_builtin_options" "CFLAGS"-if test "x$ac_cv_have_decl_SETACL" = xyes-then :- ac_have_decl=1-else case e in #(- e) ac_have_decl=0 ;;-esac-fi-printf "%s\n" "#define HAVE_DECL_SETACL $ac_have_decl" >>confdefs.h-if test $ac_have_decl = 1-then :- ac_cv_archive_acl_sunos=yes-else case e in #(- e) ac_cv_archive_acl_sunos=no ;;-esac-fi-ac_fn_check_decl "$LINENO" "GETACLCNT" "ac_cv_have_decl_GETACLCNT" "#include <sys/acl.h>-" "$ac_c_undeclared_builtin_options" "CFLAGS"-if test "x$ac_cv_have_decl_GETACLCNT" = xyes-then :- ac_have_decl=1-else case e in #(- e) ac_have_decl=0 ;;-esac-fi-printf "%s\n" "#define HAVE_DECL_GETACLCNT $ac_have_decl" >>confdefs.h-if test $ac_have_decl = 1-then :- ac_cv_archive_acl_sunos=yes-else case e in #(- e) ac_cv_archive_acl_sunos=no ;;-esac-fi- ;;-esac-fi-- ac_fn_c_check_type "$LINENO" "ace_t" "ac_cv_type_ace_t" "#include <sys/acl.h>-"-if test "x$ac_cv_type_ace_t" = xyes-then :--printf "%s\n" "#define HAVE_ACE_T 1" >>confdefs.h---fi-- if test "x$ac_cv_type_ace_t" = "xyes"; then- if test ${ac_cv_archive_acl_sunos_nfs4+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) ac_fn_check_decl "$LINENO" "ACE_GETACL" "ac_cv_have_decl_ACE_GETACL" "#include <sys/acl.h>-" "$ac_c_undeclared_builtin_options" "CFLAGS"-if test "x$ac_cv_have_decl_ACE_GETACL" = xyes-then :- ac_have_decl=1-else case e in #(- e) ac_have_decl=0 ;;-esac-fi-printf "%s\n" "#define HAVE_DECL_ACE_GETACL $ac_have_decl" >>confdefs.h-if test $ac_have_decl = 1-then :- ac_cv_archive_acl_sunos_nfs4=yes-else case e in #(- e) ac_cv_archive_acl_sonos_nfs4=no ;;-esac-fi-ac_fn_check_decl "$LINENO" "ACE_SETACL" "ac_cv_have_decl_ACE_SETACL" "#include <sys/acl.h>-" "$ac_c_undeclared_builtin_options" "CFLAGS"-if test "x$ac_cv_have_decl_ACE_SETACL" = xyes-then :- ac_have_decl=1-else case e in #(- e) ac_have_decl=0 ;;-esac-fi-printf "%s\n" "#define HAVE_DECL_ACE_SETACL $ac_have_decl" >>confdefs.h-if test $ac_have_decl = 1-then :- ac_cv_archive_acl_sunos_nfs4=yes-else case e in #(- e) ac_cv_archive_acl_sonos_nfs4=no ;;-esac-fi-ac_fn_check_decl "$LINENO" "ACE_GETACLCNT" "ac_cv_have_decl_ACE_GETACLCNT" "#include <sys/acl.h>-" "$ac_c_undeclared_builtin_options" "CFLAGS"-if test "x$ac_cv_have_decl_ACE_GETACLCNT" = xyes-then :- ac_have_decl=1-else case e in #(- e) ac_have_decl=0 ;;-esac-fi-printf "%s\n" "#define HAVE_DECL_ACE_GETACLCNT $ac_have_decl" >>confdefs.h-if test $ac_have_decl = 1-then :- ac_cv_archive_acl_sunos_nfs4=yes-else case e in #(- e) ac_cv_archive_acl_sonos_nfs4=no ;;-esac-fi- ;;-esac-fi-- fi- fi- elif test "x$ac_cv_type_acl_t" = "xyes" \- -a "x$ac_cv_type_acl_entry_t" = "xyes" \- -a "x$ac_cv_type_acl_permset_t" = "xyes" \- -a "x$ac_cv_type_acl_tag_t" = "xyes"; then- # POSIX.1e ACL functions- if test ${ac_cv_posix_acl_funcs+y}-then :- printf %s "(cached) " >&6-else case e in #(- e)- for ac_func in acl_add_perm acl_clear_perms acl_create_entry acl_delete_def_file acl_free acl_get_entry acl_get_fd acl_get_file acl_get_permset acl_get_qualifier acl_get_tag_type acl_init acl_set_fd acl_set_file acl_set_qualifier acl_set_tag_type-do :- as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`-ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"-if eval test \"x\$"$as_ac_var"\" = x"yes"-then :- cat >>confdefs.h <<_ACEOF-#define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1-_ACEOF- ac_cv_posix_acl_funcs=yes-else case e in #(- e) ac_cv_posix_acl_funcs=no ;;-esac-fi--done- ;;-esac-fi--- ac_fn_c_check_func "$LINENO" "acl_get_perm" "ac_cv_func_acl_get_perm"-if test "x$ac_cv_func_acl_get_perm" = xyes-then :- printf "%s\n" "#define HAVE_ACL_GET_PERM 1" >>confdefs.h--fi--- if test "x$ac_cv_posix_acl_funcs" = "xyes" \- -a "x$ac_cv_header_acl_libacl_h" = "xyes" \- -a "x$ac_cv_lib_acl_acl_get_file" = "xyes" \- -a "x$ac_cv_func_acl_get_perm"; then- if test ${ac_cv_archive_acl_libacl+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) ac_cv_archive_acl_libacl=yes ;;-esac-fi---printf "%s\n" "#define ARCHIVE_ACL_LIBACL 1" >>confdefs.h-- else- # FreeBSD/Darwin- ac_fn_c_check_func "$LINENO" "acl_add_flag_np" "ac_cv_func_acl_add_flag_np"-if test "x$ac_cv_func_acl_add_flag_np" = xyes-then :- printf "%s\n" "#define HAVE_ACL_ADD_FLAG_NP 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "acl_clear_flags_np" "ac_cv_func_acl_clear_flags_np"-if test "x$ac_cv_func_acl_clear_flags_np" = xyes-then :- printf "%s\n" "#define HAVE_ACL_CLEAR_FLAGS_NP 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "acl_get_brand_np" "ac_cv_func_acl_get_brand_np"-if test "x$ac_cv_func_acl_get_brand_np" = xyes-then :- printf "%s\n" "#define HAVE_ACL_GET_BRAND_NP 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "acl_get_entry_type_np" "ac_cv_func_acl_get_entry_type_np"-if test "x$ac_cv_func_acl_get_entry_type_np" = xyes-then :- printf "%s\n" "#define HAVE_ACL_GET_ENTRY_TYPE_NP 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "acl_get_flag_np" "ac_cv_func_acl_get_flag_np"-if test "x$ac_cv_func_acl_get_flag_np" = xyes-then :- printf "%s\n" "#define HAVE_ACL_GET_FLAG_NP 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "acl_get_flagset_np" "ac_cv_func_acl_get_flagset_np"-if test "x$ac_cv_func_acl_get_flagset_np" = xyes-then :- printf "%s\n" "#define HAVE_ACL_GET_FLAGSET_NP 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "acl_get_fd_np" "ac_cv_func_acl_get_fd_np"-if test "x$ac_cv_func_acl_get_fd_np" = xyes-then :- printf "%s\n" "#define HAVE_ACL_GET_FD_NP 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "acl_get_link_np" "ac_cv_func_acl_get_link_np"-if test "x$ac_cv_func_acl_get_link_np" = xyes-then :- printf "%s\n" "#define HAVE_ACL_GET_LINK_NP 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "acl_get_perm_np" "ac_cv_func_acl_get_perm_np"-if test "x$ac_cv_func_acl_get_perm_np" = xyes-then :- printf "%s\n" "#define HAVE_ACL_GET_PERM_NP 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "acl_is_trivial_np" "ac_cv_func_acl_is_trivial_np"-if test "x$ac_cv_func_acl_is_trivial_np" = xyes-then :- printf "%s\n" "#define HAVE_ACL_IS_TRIVIAL_NP 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "acl_set_entry_type_np" "ac_cv_func_acl_set_entry_type_np"-if test "x$ac_cv_func_acl_set_entry_type_np" = xyes-then :- printf "%s\n" "#define HAVE_ACL_SET_ENTRY_TYPE_NP 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "acl_set_fd_np" "ac_cv_func_acl_set_fd_np"-if test "x$ac_cv_func_acl_set_fd_np" = xyes-then :- printf "%s\n" "#define HAVE_ACL_SET_FD_NP 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "acl_set_link_np" "ac_cv_func_acl_set_link_np"-if test "x$ac_cv_func_acl_set_link_np" = xyes-then :- printf "%s\n" "#define HAVE_ACL_SET_LINK_NP 1" >>confdefs.h--fi--- ac_fn_c_check_func "$LINENO" "mbr_uid_to_uuid" "ac_cv_func_mbr_uid_to_uuid"-if test "x$ac_cv_func_mbr_uid_to_uuid" = xyes-then :- printf "%s\n" "#define HAVE_MBR_UID_TO_UUID 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "mbr_uuid_to_id" "ac_cv_func_mbr_uuid_to_id"-if test "x$ac_cv_func_mbr_uuid_to_id" = xyes-then :- printf "%s\n" "#define HAVE_MBR_UUID_TO_ID 1" >>confdefs.h--fi-ac_fn_c_check_func "$LINENO" "mbr_gid_to_uuid" "ac_cv_func_mbr_gid_to_uuid"-if test "x$ac_cv_func_mbr_gid_to_uuid" = xyes-then :- printf "%s\n" "#define HAVE_MBR_GID_TO_UUID 1" >>confdefs.h--fi--- ac_fn_check_decl "$LINENO" "ACL_TYPE_EXTENDED" "ac_cv_have_decl_ACL_TYPE_EXTENDED" "#include <sys/types.h>- #include <sys/acl.h>-" "$ac_c_undeclared_builtin_options" "CFLAGS"-if test "x$ac_cv_have_decl_ACL_TYPE_EXTENDED" = xyes-then :- ac_have_decl=1-else case e in #(- e) ac_have_decl=0 ;;-esac-fi-printf "%s\n" "#define HAVE_DECL_ACL_TYPE_EXTENDED $ac_have_decl" >>confdefs.h-ac_fn_check_decl "$LINENO" "ACL_TYPE_NFS4" "ac_cv_have_decl_ACL_TYPE_NFS4" "#include <sys/types.h>- #include <sys/acl.h>-" "$ac_c_undeclared_builtin_options" "CFLAGS"-if test "x$ac_cv_have_decl_ACL_TYPE_NFS4" = xyes-then :- ac_have_decl=1-else case e in #(- e) ac_have_decl=0 ;;-esac-fi-printf "%s\n" "#define HAVE_DECL_ACL_TYPE_NFS4 $ac_have_decl" >>confdefs.h-ac_fn_check_decl "$LINENO" "ACL_USER" "ac_cv_have_decl_ACL_USER" "#include <sys/types.h>- #include <sys/acl.h>-" "$ac_c_undeclared_builtin_options" "CFLAGS"-if test "x$ac_cv_have_decl_ACL_USER" = xyes-then :- ac_have_decl=1-else case e in #(- e) ac_have_decl=0 ;;-esac-fi-printf "%s\n" "#define HAVE_DECL_ACL_USER $ac_have_decl" >>confdefs.h-ac_fn_check_decl "$LINENO" "ACL_SYNCHRONIZE" "ac_cv_have_decl_ACL_SYNCHRONIZE" "#include <sys/types.h>- #include <sys/acl.h>-" "$ac_c_undeclared_builtin_options" "CFLAGS"-if test "x$ac_cv_have_decl_ACL_SYNCHRONIZE" = xyes-then :- ac_have_decl=1-else case e in #(- e) ac_have_decl=0 ;;-esac-fi-printf "%s\n" "#define HAVE_DECL_ACL_SYNCHRONIZE $ac_have_decl" >>confdefs.h-- if test "x$ac_cv_posix_acl_funcs" = "xyes" \- -a "x$ac_cv_func_acl_get_fd_np" = "xyes" \- -a "x$ac_cv_func_acl_get_perm" != "xyes" \- -a "x$ac_cv_func_acl_get_perm_np" = "xyes" \- -a "x$ac_cv_func_acl_set_fd_np" = "xyes"; then- if test "x$ac_cv_have_decl_ACL_USER" = "xyes"; then- if test ${ac_cv_archive_acl_freebsd+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) ac_cv_archive_acl_freebsd=yes ;;-esac-fi-- if test "x$ac_cv_have_decl_ACL_TYPE_NFS4" = "xyes" \- -a "x$ac_cv_func_acl_add_flag_np" = "xyes" \- -a "x$ac_cv_func_acl_get_brand_np" = "xyes" \- -a "x$ac_cv_func_acl_get_entry_type_np" = "xyes" \- -a "x$ac_cv_func_acl_get_flagset_np" = "xyes" \- -a "x$ac_cv_func_acl_set_entry_type_np" = "xyes"; then- if test ${ac_cv_archive_acl_freebsd_nfs4+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) ac_cv_archive_acl_freebsd_nfs4=yes ;;-esac-fi-- fi- elif test "x$ac_cv_have_decl_ACL_TYPE_EXTENDED" = "xyes" \- -a "x$ac_cv_func_acl_add_flag_np" = "xyes" \- -a "x$ac_cv_func_acl_get_flagset_np" = "xyes" \- -a "x$ac_cv_func_acl_get_link_np" = "xyes" \- -a "x$ac_cv_func_acl_set_link_np" = "xyes" \- -a "x$ac_cv_func_mbr_uid_to_uuid" = "xyes" \- -a "x$ac_cv_func_mbr_uuid_to_id" = "xyes" \- -a "x$ac_cv_func_mbr_gid_to_uuid" = "xyes"; then- if test ${ac_cv_archive_acl_darwin+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) ac_cv_archive_acl_darwin=yes ;;-esac-fi-- fi- fi- fi- fi- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ACL support" >&5-printf %s "checking for ACL support... " >&6; }- if test "x$ac_cv_archive_acl_libacl" = "xyes" \- -a "x$ac_cv_archive_acl_librichacl" = "xyes"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libacl (POSIX.1e) + librichacl (NFSv4)" >&5-printf "%s\n" "libacl (POSIX.1e) + librichacl (NFSv4)" >&6; }--printf "%s\n" "#define ARCHIVE_ACL_LIBACL 1" >>confdefs.h---printf "%s\n" "#define ARCHIVE_ACL_LIBRICHACL 1" >>confdefs.h-- elif test "x$ac_cv_archive_acl_libacl" = "xyes"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libacl (POSIX.1e)" >&5-printf "%s\n" "libacl (POSIX.1e)" >&6; }--printf "%s\n" "#define ARCHIVE_ACL_LIBACL 1" >>confdefs.h-- elif test "x$ac_cv_archive_acl_librichacl" = "xyes"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: librichacl (NFSv4)" >&5-printf "%s\n" "librichacl (NFSv4)" >&6; }--printf "%s\n" "#define ARCHIVE_ACL_LIBRICHACL 1" >>confdefs.h-- elif test "x$ac_cv_archive_acl_darwin" = "xyes"; then--printf "%s\n" "#define ARCHIVE_ACL_DARWIN 1" >>confdefs.h-- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Darwin (limited NFSv4)" >&5-printf "%s\n" "Darwin (limited NFSv4)" >&6; }- elif test "x$ac_cv_archive_acl_sunos" = "xyes"; then--printf "%s\n" "#define ARCHIVE_ACL_SUNOS 1" >>confdefs.h-- if test "x$ac_cv_archive_acl_sunos_nfs4" = "xyes"; then--printf "%s\n" "#define ARCHIVE_ACL_SUNOS_NFS4 1" >>confdefs.h-- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Solaris (POSIX.1e and NFSv4)" >&5-printf "%s\n" "Solaris (POSIX.1e and NFSv4)" >&6; }- else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Solaris (POSIX.1e)" >&5-printf "%s\n" "Solaris (POSIX.1e)" >&6; }- fi- elif test "x$ac_cv_archive_acl_freebsd" = "xyes"; then--printf "%s\n" "#define ARCHIVE_ACL_FREEBSD 1" >>confdefs.h-- if test "x$ac_cv_archive_acl_freebsd_nfs4" = "xyes"; then--printf "%s\n" "#define ARCHIVE_ACL_FREEBSD_NFS4 1" >>confdefs.h-- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FreeBSD (POSIX.1e and NFSv4)" >&5-printf "%s\n" "FreeBSD (POSIX.1e and NFSv4)" >&6; }- else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FreeBSD (POSIX.1e)" >&5-printf "%s\n" "FreeBSD (POSIX.1e)" >&6; }- fi- else- as_fn_error $? "Could not find a suitable version of acl" "$LINENO" 5- fi-fi--- if test "x$ac_cv_archive_acl_libacl" = "xyes" \- -o "x$ac_cv_archive_acl_librichacl" = "xyes"; then- INC_LINUX_ACL_TRUE=- INC_LINUX_ACL_FALSE='#'-else- INC_LINUX_ACL_TRUE='#'- INC_LINUX_ACL_FALSE=-fi-- if test "x$ac_cv_archive_acl_sunos" = "xyes"; then- INC_SUNOS_ACL_TRUE=- INC_SUNOS_ACL_FALSE='#'-else- INC_SUNOS_ACL_TRUE='#'- INC_SUNOS_ACL_FALSE=-fi-- if test "x$ac_cv_archive_acl_darwin" = "xyes"; then- INC_DARWIN_ACL_TRUE=- INC_DARWIN_ACL_FALSE='#'-else- INC_DARWIN_ACL_TRUE='#'- INC_DARWIN_ACL_FALSE=-fi-- if test "x$ac_cv_archive_acl_freebsd" = "xyes"; then- INC_FREEBSD_ACL_TRUE=- INC_FREEBSD_ACL_FALSE='#'-else- INC_FREEBSD_ACL_TRUE='#'- INC_FREEBSD_ACL_FALSE=-fi---# Additional requirements-# Check whether --enable-largefile was given.-if test ${enable_largefile+y}-then :- enableval=$enable_largefile;-fi-if test "$enable_largefile,$enable_year2038" != no,no-then :- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CPPFLAGS option for large files" >&5-printf %s "checking for $CPPFLAGS option for large files... " >&6; }-if test ${ac_cv_sys_largefile_opts+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) ac_save_CPPFLAGS=$CPPFLAGS- ac_opt_found=no- for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1"; do- if test x"$ac_opt" != x"none needed"-then :- CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"-fi- cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */-#include <sys/types.h>-#ifndef FTYPE-# define FTYPE off_t-#endif- /* Check that FTYPE can represent 2**63 - 1 correctly.- We can't simply define LARGE_FTYPE to be 9223372036854775807,- since some C++ compilers masquerading as C compilers- incorrectly reject 9223372036854775807. */-#define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))- int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721- && LARGE_FTYPE % 2147483647 == 1)- ? 1 : -1];-int-main (void)-{-- ;- return 0;-}-_ACEOF-if ac_fn_c_try_compile "$LINENO"-then :- if test x"$ac_opt" = x"none needed"-then :- # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.- CPPFLAGS="$CPPFLAGS -DFTYPE=ino_t"- if ac_fn_c_try_compile "$LINENO"-then :--else case e in #(- e) CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64"- if ac_fn_c_try_compile "$LINENO"-then :- ac_opt='-D_FILE_OFFSET_BITS=64'-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam ;;-esac-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam-fi- ac_cv_sys_largefile_opts=$ac_opt- ac_opt_found=yes-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext- test $ac_opt_found = no || break- done- CPPFLAGS=$ac_save_CPPFLAGS-- test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5-printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }--ac_have_largefile=yes-case $ac_cv_sys_largefile_opts in #(- "none needed") :- ;; #(- "supported through gnulib") :- ;; #(- "support not detected") :- ac_have_largefile=no ;; #(- "-D_FILE_OFFSET_BITS=64") :--printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h- ;; #(- "-D_LARGE_FILES=1") :--printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h- ;; #(- *) :- as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;-esac--if test "$enable_year2038" != no-then :- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CPPFLAGS option for timestamps after 2038" >&5-printf %s "checking for $CPPFLAGS option for timestamps after 2038... " >&6; }-if test ${ac_cv_sys_year2038_opts+y}-then :- printf %s "(cached) " >&6-else case e in #(- e) ac_save_CPPFLAGS="$CPPFLAGS"- ac_opt_found=no- for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do- if test x"$ac_opt" != x"none needed"-then :- CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"-fi- cat confdefs.h - <<_ACEOF >conftest.$ac_ext-/* end confdefs.h. */-- #include <time.h>- /* Check that time_t can represent 2**32 - 1 correctly. */- #define LARGE_TIME_T \\- ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))- int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535- && LARGE_TIME_T % 65537 == 0)- ? 1 : -1];--int-main (void)-{-- ;- return 0;-}-_ACEOF-if ac_fn_c_try_compile "$LINENO"-then :- ac_cv_sys_year2038_opts="$ac_opt"- ac_opt_found=yes-fi-rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext- test $ac_opt_found = no || break- done- CPPFLAGS="$ac_save_CPPFLAGS"- test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;-esac-fi-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5-printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }--ac_have_year2038=yes-case $ac_cv_sys_year2038_opts in #(- "none needed") :- ;; #(- "support not detected") :- ac_have_year2038=no ;; #(- "-D_TIME_BITS=64") :--printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h- ;; #(- "-D__MINGW_USE_VC2005_COMPAT") :--printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h- ;; #(- "-U_USE_32_BIT_TIME_T"*) :- { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5-printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}-as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It-will stop working after mid-January 2038. Remove-_USE_32BIT_TIME_T from the compiler flags.-See 'config.log' for more details" "$LINENO" 5; } ;; #(- *) :- as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;-esac--fi--fi--EXTRA_LIBS=` printf " %s " "$LIBS" | sed -E 's/ -l([^ ]*)/\1 /g' `--ac_config_files="$ac_config_files libarchive-clib.buildinfo"---cat >confcache <<\_ACEOF-# This file is a shell script that caches the results of configure-# tests run on this system so they can be shared between configure-# scripts and configure runs, see configure's option --config-cache.-# It is not useful on other systems. If it contains results you don't-# want to keep, you may remove or edit it.-#-# config.status only pays attention to the cache file if you give it-# the --recheck option to rerun configure.-#-# 'ac_cv_env_foo' variables (set or unset) will be overridden when-# loading this file, other *unset* 'ac_cv_foo' will be assigned the-# following values.--_ACEOF--# The following way of writing the cache mishandles newlines in values,-# but we know of no workaround that is simple, portable, and efficient.-# So, we kill variables containing newlines.-# Ultrix sh set writes to stderr and can't be redirected directly,-# and sets the high bit in the cache file unless we assign to the vars.-(- for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do- eval ac_val=\$$ac_var- case $ac_val in #(- *${as_nl}*)- case $ac_var in #(- *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5-printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;- esac- case $ac_var in #(- _ | IFS | as_nl) ;; #(- BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(- *) { eval $ac_var=; unset $ac_var;} ;;- esac ;;- esac- done-- (set) 2>&1 |- case $as_nl`(ac_space=' '; set) 2>&1` in #(- *${as_nl}ac_space=\ *)- # 'set' does not quote correctly, so add quotes: double-quote- # substitution turns \\\\ into \\, and sed turns \\ into \.- sed -n \- "s/'/'\\\\''/g;- s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"- ;; #(- *)- # 'set' quotes correctly as required by POSIX, so do not add quotes.- sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"- ;;- esac |- sort-) |- sed '- /^ac_cv_env_/b end- t clear- :clear- s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/- t end- s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/- :end' >>confcache-if diff "$cache_file" confcache >/dev/null 2>&1; then :; else- if test -w "$cache_file"; then- if test "x$cache_file" != "x/dev/null"; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5-printf "%s\n" "$as_me: updating cache $cache_file" >&6;}- if test ! -f "$cache_file" || test -h "$cache_file"; then- cat confcache >"$cache_file"- else- case $cache_file in #(- */* | ?:*)- mv -f confcache "$cache_file"$$ &&- mv -f "$cache_file"$$ "$cache_file" ;; #(- *)- mv -f confcache "$cache_file" ;;- esac- fi- fi- else- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5-printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}- fi-fi-rm -f confcache--test "x$prefix" = xNONE && prefix=$ac_default_prefix-# Let make expand exec_prefix.-test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'--DEFS=-DHAVE_CONFIG_H--ac_libobjs=-ac_ltlibobjs=-U=-for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue- # 1. Remove the extension, and $U if already installed.- ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'- ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`- # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR- # will be set to the directory where LIBOBJS objects are built.- as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"- as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'-done-LIBOBJS=$ac_libobjs--LTLIBOBJS=$ac_ltlibobjs---if test -z "${INC_WINDOWS_FILES_TRUE}" && test -z "${INC_WINDOWS_FILES_FALSE}"; then- as_fn_error $? "conditional \"INC_WINDOWS_FILES\" was never defined.-Usually this means the macro was only invoked conditionally." "$LINENO" 5-fi-if test -z "${INC_CYGWIN_FILES_TRUE}" && test -z "${INC_CYGWIN_FILES_FALSE}"; then- as_fn_error $? "conditional \"INC_CYGWIN_FILES\" was never defined.-Usually this means the macro was only invoked conditionally." "$LINENO" 5-fi-if test -z "${INC_BLAKE2_TRUE}" && test -z "${INC_BLAKE2_FALSE}"; then- as_fn_error $? "conditional \"INC_BLAKE2\" was never defined.-Usually this means the macro was only invoked conditionally." "$LINENO" 5-fi-if test -z "${INC_LINUX_ACL_TRUE}" && test -z "${INC_LINUX_ACL_FALSE}"; then- as_fn_error $? "conditional \"INC_LINUX_ACL\" was never defined.-Usually this means the macro was only invoked conditionally." "$LINENO" 5-fi-if test -z "${INC_SUNOS_ACL_TRUE}" && test -z "${INC_SUNOS_ACL_FALSE}"; then- as_fn_error $? "conditional \"INC_SUNOS_ACL\" was never defined.-Usually this means the macro was only invoked conditionally." "$LINENO" 5-fi-if test -z "${INC_DARWIN_ACL_TRUE}" && test -z "${INC_DARWIN_ACL_FALSE}"; then- as_fn_error $? "conditional \"INC_DARWIN_ACL\" was never defined.-Usually this means the macro was only invoked conditionally." "$LINENO" 5-fi-if test -z "${INC_FREEBSD_ACL_TRUE}" && test -z "${INC_FREEBSD_ACL_FALSE}"; then- as_fn_error $? "conditional \"INC_FREEBSD_ACL\" was never defined.-Usually this means the macro was only invoked conditionally." "$LINENO" 5-fi-# Check whether --enable-year2038 was given.-if test ${enable_year2038+y}-then :- enableval=$enable_year2038;-fi---: "${CONFIG_STATUS=./config.status}"-ac_write_fail=0-ac_clean_files_save=$ac_clean_files-ac_clean_files="$ac_clean_files $CONFIG_STATUS"-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5-printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}-as_write_fail=0-cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1-#! $SHELL-# Generated by $as_me.-# Run this file to recreate the current configuration.-# Compiler output produced by configure, useful for debugging-# configure, is in config.log if it exists.--debug=false-ac_cs_recheck=false-ac_cs_silent=false--SHELL=\${CONFIG_SHELL-$SHELL}-export SHELL-_ASEOF-cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1-## -------------------- ##-## M4sh Initialization. ##-## -------------------- ##--# Be more Bourne compatible-DUALCASE=1; export DUALCASE # for MKS sh-if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1-then :- emulate sh- NULLCMD=:- # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which- # is contrary to our usage. Disable this feature.- alias -g '${1+"$@"}'='"$@"'- setopt NO_GLOB_SUBST-else case e in #(- e) case `(set -o) 2>/dev/null` in #(- *posix*) :- set -o posix ;; #(- *) :- ;;-esac ;;-esac-fi----# Reset variables that may have inherited troublesome values from-# the environment.--# IFS needs to be set, to space, tab, and newline, in precisely that order.-# (If _AS_PATH_WALK were called with IFS unset, it would have the-# side effect of setting IFS to empty, thus disabling word splitting.)-# Quoting is to prevent editors from complaining about space-tab.-as_nl='-'-export as_nl-IFS=" "" $as_nl"--PS1='$ '-PS2='> '-PS4='+ '--# Ensure predictable behavior from utilities with locale-dependent output.-LC_ALL=C-export LC_ALL-LANGUAGE=C-export LANGUAGE--# We cannot yet rely on "unset" to work, but we need these variables-# to be unset--not just set to an empty or harmless value--now, to-# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct-# also avoids known problems related to "unset" and subshell syntax-# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).-for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH-do eval test \${$as_var+y} \- && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :-done--# Ensure that fds 0, 1, and 2 are open.-if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi-if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi-if (exec 3>&2) ; then :; else exec 2>/dev/null; fi--# The user is always right.-if ${PATH_SEPARATOR+false} :; then- PATH_SEPARATOR=:- (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {- (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||- PATH_SEPARATOR=';'- }-fi---# Find who we are. Look in the path if we contain no directory separator.-as_myself=-case $0 in #((- *[\\/]* ) as_myself=$0 ;;- *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR-for as_dir in $PATH-do- IFS=$as_save_IFS- case $as_dir in #(((- '') as_dir=./ ;;- */) ;;- *) as_dir=$as_dir/ ;;- esac- test -r "$as_dir$0" && as_myself=$as_dir$0 && break- done-IFS=$as_save_IFS-- ;;-esac-# We did not find ourselves, most probably we were run as 'sh COMMAND'-# in which case we are not to be found in the path.-if test "x$as_myself" = x; then- as_myself=$0-fi-if test ! -f "$as_myself"; then- printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2- exit 1-fi----# as_fn_error STATUS ERROR [LINENO LOG_FD]-# -----------------------------------------# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are-# provided, also output the error to LOG_FD, referencing LINENO. Then exit the-# script with STATUS, using 1 if that was 0.-as_fn_error ()-{- as_status=$1; test $as_status -eq 0 && as_status=1- if test "$4"; then- as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack- printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4- fi- printf "%s\n" "$as_me: error: $2" >&2- as_fn_exit $as_status-} # as_fn_error---# as_fn_set_status STATUS-# ------------------------# Set $? to STATUS, without forking.-as_fn_set_status ()-{- return $1-} # as_fn_set_status--# as_fn_exit STATUS-# ------------------# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.-as_fn_exit ()-{- set +e- as_fn_set_status $1- exit $1-} # as_fn_exit--# as_fn_unset VAR-# ----------------# Portably unset VAR.-as_fn_unset ()-{- { eval $1=; unset $1;}-}-as_unset=as_fn_unset--# as_fn_append VAR VALUE-# -----------------------# Append the text in VALUE to the end of the definition contained in VAR. Take-# advantage of any shell optimizations that allow amortized linear growth over-# repeated appends, instead of the typical quadratic growth present in naive-# implementations.-if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null-then :- eval 'as_fn_append ()- {- eval $1+=\$2- }'-else case e in #(- e) as_fn_append ()- {- eval $1=\$$1\$2- } ;;-esac-fi # as_fn_append--# as_fn_arith ARG...-# -------------------# Perform arithmetic evaluation on the ARGs, and store the result in the-# global $as_val. Take advantage of shells that can avoid forks. The arguments-# must be portable across $(()) and expr.-if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null-then :- eval 'as_fn_arith ()- {- as_val=$(( $* ))- }'-else case e in #(- e) as_fn_arith ()- {- as_val=`expr "$@" || test $? -eq 1`- } ;;-esac-fi # as_fn_arith---if expr a : '\(a\)' >/dev/null 2>&1 &&- test "X`expr 00001 : '.*\(...\)'`" = X001; then- as_expr=expr-else- as_expr=false-fi--if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then- as_basename=basename-else- as_basename=false-fi--if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then- as_dirname=dirname-else- as_dirname=false-fi--as_me=`$as_basename -- "$0" ||-$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \- X"$0" : 'X\(//\)$' \| \- X"$0" : 'X\(/\)' \| . 2>/dev/null ||-printf "%s\n" X/"$0" |- sed '/^.*\/\([^/][^/]*\)\/*$/{- s//\1/- q- }- /^X\/\(\/\/\)$/{- s//\1/- q- }- /^X\/\(\/\).*/{- s//\1/- q- }- s/.*/./; q'`--# Avoid depending upon Character Ranges.-as_cr_letters='abcdefghijklmnopqrstuvwxyz'-as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'-as_cr_Letters=$as_cr_letters$as_cr_LETTERS-as_cr_digits='0123456789'-as_cr_alnum=$as_cr_Letters$as_cr_digits---# Determine whether it's possible to make 'echo' print without a newline.-# These variables are no longer used directly by Autoconf, but are AC_SUBSTed-# for compatibility with existing Makefiles.-ECHO_C= ECHO_N= ECHO_T=-case `echo -n x` in #(((((--n*)- case `echo 'xy\c'` in- *c*) ECHO_T=' ';; # ECHO_T is single tab character.- xy) ECHO_C='\c';;- *) echo `echo ksh88 bug on AIX 6.1` > /dev/null- ECHO_T=' ';;- esac;;-*)- ECHO_N='-n';;-esac--# For backward compatibility with old third-party macros, we provide-# the shell variables $as_echo and $as_echo_n. New code should use-# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.-as_echo='printf %s\n'-as_echo_n='printf %s'--rm -f conf$$ conf$$.exe conf$$.file-if test -d conf$$.dir; then- rm -f conf$$.dir/conf$$.file-else- rm -f conf$$.dir- mkdir conf$$.dir 2>/dev/null-fi-if (echo >conf$$.file) 2>/dev/null; then- if ln -s conf$$.file conf$$ 2>/dev/null; then- as_ln_s='ln -s'- # ... but there are two gotchas:- # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.- # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.- # In both cases, we have to default to 'cp -pR'.- ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||- as_ln_s='cp -pR'- elif ln conf$$.file conf$$ 2>/dev/null; then- as_ln_s=ln- else- as_ln_s='cp -pR'- fi-else- as_ln_s='cp -pR'-fi-rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file-rmdir conf$$.dir 2>/dev/null---# as_fn_mkdir_p-# --------------# Create "$as_dir" as a directory, including parents if necessary.-as_fn_mkdir_p ()-{-- case $as_dir in #(- -*) as_dir=./$as_dir;;- esac- test -d "$as_dir" || eval $as_mkdir_p || {- as_dirs=- while :; do- case $as_dir in #(- *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(- *) as_qdir=$as_dir;;- esac- as_dirs="'$as_qdir' $as_dirs"- as_dir=`$as_dirname -- "$as_dir" ||-$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \- X"$as_dir" : 'X\(//\)[^/]' \| \- X"$as_dir" : 'X\(//\)$' \| \- X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||-printf "%s\n" X"$as_dir" |- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{- s//\1/- q- }- /^X\(\/\/\)[^/].*/{- s//\1/- q- }- /^X\(\/\/\)$/{- s//\1/- q- }- /^X\(\/\).*/{- s//\1/- q- }- s/.*/./; q'`- test -d "$as_dir" && break- done- test -z "$as_dirs" || eval "mkdir $as_dirs"- } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"---} # as_fn_mkdir_p-if mkdir -p . 2>/dev/null; then- as_mkdir_p='mkdir -p "$as_dir"'-else- test -d ./-p && rmdir ./-p- as_mkdir_p=false-fi---# as_fn_executable_p FILE-# ------------------------# Test if FILE is an executable regular file.-as_fn_executable_p ()-{- test -f "$1" && test -x "$1"-} # as_fn_executable_p-as_test_x='test -x'-as_executable_p=as_fn_executable_p--# Sed expression to map a string onto a valid CPP name.-as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"-as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated--# Sed expression to map a string onto a valid variable name.-as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"-as_tr_sh="eval sed '$as_sed_sh'" # deprecated---exec 6>&1-## ----------------------------------- ##-## Main body of $CONFIG_STATUS script. ##-## ----------------------------------- ##-_ASEOF-test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1--cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1-# Save the log message, to keep $0 and so on meaningful, and to-# report actual input values of CONFIG_FILES etc. instead of their-# values after options handling.-ac_log="-This file was extended by Haskell libarchive-clib package $as_me 3.7.2, which was-generated by GNU Autoconf 2.72. Invocation command line was-- CONFIG_FILES = $CONFIG_FILES- CONFIG_HEADERS = $CONFIG_HEADERS- CONFIG_LINKS = $CONFIG_LINKS- CONFIG_COMMANDS = $CONFIG_COMMANDS- $ $0 $@--on `(hostname || uname -n) 2>/dev/null | sed 1q`-"--_ACEOF--case $ac_config_files in *"-"*) set x $ac_config_files; shift; ac_config_files=$*;;-esac--case $ac_config_headers in *"-"*) set x $ac_config_headers; shift; ac_config_headers=$*;;-esac---cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1-# Files that config.status was made for.-config_files="$ac_config_files"-config_headers="$ac_config_headers"-config_commands="$ac_config_commands"--_ACEOF--cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1-ac_cs_usage="\-'$as_me' instantiates files and other configuration actions-from templates according to the current configuration. Unless the files-and actions are specified as TAGs, all are instantiated by default.--Usage: $0 [OPTION]... [TAG]...-- -h, --help print this help, then exit- -V, --version print version number and configuration settings, then exit- --config print configuration, then exit- -q, --quiet, --silent- do not print progress messages- -d, --debug don't remove temporary files- --recheck update $as_me by reconfiguring in the same conditions- --file=FILE[:TEMPLATE]- instantiate the configuration file FILE- --header=FILE[:TEMPLATE]- instantiate the configuration header FILE--Configuration files:-$config_files--Configuration headers:-$config_headers--Configuration commands:-$config_commands--Report bugs to <vamchale@gmail.com>."--_ACEOF-ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`-ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1-ac_cs_config='$ac_cs_config_escaped'-ac_cs_version="\\-Haskell libarchive-clib package config.status 3.7.2-configured by $0, generated by GNU Autoconf 2.72,- with options \\"\$ac_cs_config\\"--Copyright (C) 2023 Free Software Foundation, Inc.-This config.status script is free software; the Free Software Foundation-gives unlimited permission to copy, distribute and modify it."--ac_pwd='$ac_pwd'-srcdir='$srcdir'-MKDIR_P='$MKDIR_P'-AWK='$AWK'-test -n "\$AWK" || AWK=awk-_ACEOF--cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1-# The default lists apply if the user does not specify any file.-ac_need_defaults=:-while test $# != 0-do- case $1 in- --*=?*)- ac_option=`expr "X$1" : 'X\([^=]*\)='`- ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`- ac_shift=:- ;;- --*=)- ac_option=`expr "X$1" : 'X\([^=]*\)='`- ac_optarg=- ac_shift=:- ;;- *)- ac_option=$1- ac_optarg=$2- ac_shift=shift- ;;- esac-- case $ac_option in- # Handling of the options.- -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)- ac_cs_recheck=: ;;- --version | --versio | --versi | --vers | --ver | --ve | --v | -V )- printf "%s\n" "$ac_cs_version"; exit ;;- --config | --confi | --conf | --con | --co | --c )- printf "%s\n" "$ac_cs_config"; exit ;;- --debug | --debu | --deb | --de | --d | -d )- debug=: ;;- --file | --fil | --fi | --f )- $ac_shift- case $ac_optarg in- *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;- '') as_fn_error $? "missing file argument" ;;- esac- as_fn_append CONFIG_FILES " '$ac_optarg'"- ac_need_defaults=false;;- --header | --heade | --head | --hea )- $ac_shift- case $ac_optarg in- *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;- esac- as_fn_append CONFIG_HEADERS " '$ac_optarg'"- ac_need_defaults=false;;- --he | --h)- # Conflict between --help and --header- as_fn_error $? "ambiguous option: '$1'-Try '$0 --help' for more information.";;- --help | --hel | -h )- printf "%s\n" "$ac_cs_usage"; exit ;;- -q | -quiet | --quiet | --quie | --qui | --qu | --q \- | -silent | --silent | --silen | --sile | --sil | --si | --s)- ac_cs_silent=: ;;-- # This is an error.- -*) as_fn_error $? "unrecognized option: '$1'-Try '$0 --help' for more information." ;;-- *) as_fn_append ac_config_targets " $1"- ac_need_defaults=false ;;-- esac- shift-done--ac_configure_extra_args=--if $ac_cs_silent; then- exec 6>/dev/null- ac_configure_extra_args="$ac_configure_extra_args --silent"-fi--_ACEOF-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1-if \$ac_cs_recheck; then- set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion- shift- \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6- CONFIG_SHELL='$SHELL'- export CONFIG_SHELL- exec "\$@"-fi--_ACEOF-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1-exec 5>>config.log-{- echo- sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX-## Running $as_me. ##-_ASBOX- printf "%s\n" "$ac_log"-} >&5--_ACEOF-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1-#-# INIT-COMMANDS-#---# The HP-UX ksh and POSIX shell print the target directory to stdout-# if CDPATH is set.-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH--sed_quote_subst='$sed_quote_subst'-double_quote_subst='$double_quote_subst'-delay_variable_subst='$delay_variable_subst'-macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'-macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'-AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'-DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'-OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'-enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'-enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'-pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'-enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'-shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'-SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'-ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'-PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'-host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'-host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'-host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'-build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'-build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'-build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'-SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'-Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'-GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'-EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'-FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'-LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'-NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'-LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'-max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'-ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'-exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'-lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'-lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'-lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'-lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'-lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'-reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'-reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'-FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'-deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'-file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'-file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'-want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'-sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'-AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'-lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'-AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'-archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'-STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'-RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'-old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'-old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'-old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'-lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'-CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'-CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'-compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'-GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'-lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'-lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'-lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'-lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'-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"`'-lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'-nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'-lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'-lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'-objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'-MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'-lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'-lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'-lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'-lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'-lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'-need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'-MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'-DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'-NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'-LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'-OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'-OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'-libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'-shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'-extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'-archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'-enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'-export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'-whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'-compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'-old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'-old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'-archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'-archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'-module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'-module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'-with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'-allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'-no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'-hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'-hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'-hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'-hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'-hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'-hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'-hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'-inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'-link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'-always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'-export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'-exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'-include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'-prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'-postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'-file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'-variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'-need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'-need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'-version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'-runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'-shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'-shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'-libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'-library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'-soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'-install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'-postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'-postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'-finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'-finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'-hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'-sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'-configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'-configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'-hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'-enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'-enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'-enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'-old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'-striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'--LTCC='$LTCC'-LTCFLAGS='$LTCFLAGS'-compiler='$compiler_DEFAULT'--# A function that is used when there is no print builtin or printf.-func_fallback_echo ()-{- eval 'cat <<_LTECHO_EOF-\$1-_LTECHO_EOF'-}--# Quote evaled strings.-for var in AS \-DLLTOOL \-OBJDUMP \-SHELL \-ECHO \-PATH_SEPARATOR \-SED \-GREP \-EGREP \-FGREP \-LD \-NM \-LN_S \-lt_SP2NL \-lt_NL2SP \-reload_flag \-FILECMD \-deplibs_check_method \-file_magic_cmd \-file_magic_glob \-want_nocaseglob \-sharedlib_from_linklib_cmd \-AR \-archiver_list_spec \-STRIP \-RANLIB \-CC \-CFLAGS \-compiler \-lt_cv_sys_global_symbol_pipe \-lt_cv_sys_global_symbol_to_cdecl \-lt_cv_sys_global_symbol_to_import \-lt_cv_sys_global_symbol_to_c_name_address \-lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \-lt_cv_nm_interface \-nm_file_list_spec \-lt_cv_truncate_bin \-lt_prog_compiler_no_builtin_flag \-lt_prog_compiler_pic \-lt_prog_compiler_wl \-lt_prog_compiler_static \-lt_cv_prog_compiler_c_o \-need_locks \-MANIFEST_TOOL \-DSYMUTIL \-NMEDIT \-LIPO \-OTOOL \-OTOOL64 \-shrext_cmds \-export_dynamic_flag_spec \-whole_archive_flag_spec \-compiler_needs_object \-with_gnu_ld \-allow_undefined_flag \-no_undefined_flag \-hardcode_libdir_flag_spec \-hardcode_libdir_separator \-exclude_expsyms \-include_expsyms \-file_list_spec \-variables_saved_for_relink \-libname_spec \-library_names_spec \-soname_spec \-install_override_mode \-finish_eval \-old_striplib \-striplib; do- case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in- *[\\\\\\\`\\"\\\$]*)- eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes- ;;- *)- eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""- ;;- esac-done--# Double-quote double-evaled strings.-for var in reload_cmds \-old_postinstall_cmds \-old_postuninstall_cmds \-old_archive_cmds \-extract_expsyms_cmds \-old_archive_from_new_cmds \-old_archive_from_expsyms_cmds \-archive_cmds \-archive_expsym_cmds \-module_cmds \-module_expsym_cmds \-export_symbols_cmds \-prelink_cmds \-postlink_cmds \-postinstall_cmds \-postuninstall_cmds \-finish_cmds \-sys_lib_search_path_spec \-configure_time_dlsearch_path \-configure_time_lt_sys_library_path; do- case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in- *[\\\\\\\`\\"\\\$]*)- eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes- ;;- *)- eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""- ;;- esac-done--ac_aux_dir='$ac_aux_dir'--# See if we are running on zsh, and set the options that allow our-# commands through without removal of \ escapes INIT.-if test -n "\${ZSH_VERSION+set}"; then- setopt NO_GLOB_SUBST-fi--- PACKAGE='$PACKAGE'- VERSION='$VERSION'- RM='$RM'- ofile='$ofile'-----_ACEOF--cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1--# Handling of arguments.-for ac_config_target in $ac_config_targets-do- case $ac_config_target in- "c/config.h") CONFIG_HEADERS="$CONFIG_HEADERS c/config.h" ;;- "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;- "libarchive-clib.buildinfo") CONFIG_FILES="$CONFIG_FILES libarchive-clib.buildinfo" ;;-- *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;- esac-done---# If the user did not use the arguments to specify the items to instantiate,-# then the envvar interface is used. Set only those that are not.-# We use the long form for the default assignment because of an extremely-# bizarre bug on SunOS 4.1.3.-if $ac_need_defaults; then- test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files- test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers- test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands-fi--# Have a temporary directory for convenience. Make it in the build tree-# simply because there is no reason against having it here, and in addition,-# creating and moving files from /tmp can sometimes cause problems.-# Hook for its removal unless debugging.-# Note that there is a small window in which the directory will not be cleaned:-# after its creation but before its name has been assigned to '$tmp'.-$debug ||-{- tmp= ac_tmp=- trap 'exit_status=$?- : "${ac_tmp:=$tmp}"- { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status-' 0- trap 'as_fn_exit 1' 1 2 13 15-}-# Create a (secure) tmp directory for tmp files.--{- tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&- test -d "$tmp"-} ||-{- tmp=./conf$$-$RANDOM- (umask 077 && mkdir "$tmp")-} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5-ac_tmp=$tmp--# Set up the scripts for CONFIG_FILES section.-# No need to generate them if there are no CONFIG_FILES.-# This happens for instance with './config.status config.h'.-if test -n "$CONFIG_FILES"; then---ac_cr=`echo X | tr X '\015'`-# On cygwin, bash can eat \r inside `` if the user requested igncr.-# But we know of no other shell where ac_cr would be empty at this-# point, so we can use a bashism as a fallback.-if test "x$ac_cr" = x; then- eval ac_cr=\$\'\\r\'-fi-ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`-if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then- ac_cs_awk_cr='\\r'-else- ac_cs_awk_cr=$ac_cr-fi--echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&-_ACEOF---{- echo "cat >conf$$subs.awk <<_ACEOF" &&- echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&- echo "_ACEOF"-} >conf$$subs.sh ||- as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5-ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`-ac_delim='%!_!# '-for ac_last_try in false false false false false :; do- . ./conf$$subs.sh ||- as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5-- ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`- if test $ac_delim_n = $ac_delim_num; then- break- elif $ac_last_try; then- as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5- else- ac_delim="$ac_delim!$ac_delim _$ac_delim!! "- fi-done-rm -f conf$$subs.sh--cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1-cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&-_ACEOF-sed -n '-h-s/^/S["/; s/!.*/"]=/-p-g-s/^[^!]*!//-:repl-t repl-s/'"$ac_delim"'$//-t delim-:nl-h-s/\(.\{148\}\)..*/\1/-t more1-s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/-p-n-b repl-:more1-s/["\\]/\\&/g; s/^/"/; s/$/"\\/-p-g-s/.\{148\}//-t nl-:delim-h-s/\(.\{148\}\)..*/\1/-t more2-s/["\\]/\\&/g; s/^/"/; s/$/"/-p-b-:more2-s/["\\]/\\&/g; s/^/"/; s/$/"\\/-p-g-s/.\{148\}//-t delim-' <conf$$subs.awk | sed '-/^[^""]/{- N- s/\n//-}-' >>$CONFIG_STATUS || ac_write_fail=1-rm -f conf$$subs.awk-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1-_ACAWK-cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&- for (key in S) S_is_set[key] = 1- FS = ""--}-{- line = $ 0- nfields = split(line, field, "@")- substed = 0- len = length(field[1])- for (i = 2; i < nfields; i++) {- key = field[i]- keylen = length(key)- if (S_is_set[key]) {- value = S[key]- line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)- len += length(value) + length(field[++i])- substed = 1- } else- len += 1 + keylen- }-- print line-}--_ACAWK-_ACEOF-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1-if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then- sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"-else- cat-fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \- || as_fn_error $? "could not setup config files machinery" "$LINENO" 5-_ACEOF--# VPATH may cause trouble with some makes, so we remove sole $(srcdir),-# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and-# trailing colons and then remove the whole line if VPATH becomes empty-# (actually we leave an empty line to preserve line numbers).-if test "x$srcdir" = x.; then- ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{-h-s///-s/^/:/-s/[ ]*$/:/-s/:\$(srcdir):/:/g-s/:\${srcdir}:/:/g-s/:@srcdir@:/:/g-s/^:*//-s/:*$//-x-s/\(=[ ]*\).*/\1/-G-s/\n//-s/^[^=]*=[ ]*$//-}'-fi--cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1-fi # test -n "$CONFIG_FILES"--# Set up the scripts for CONFIG_HEADERS section.-# No need to generate them if there are no CONFIG_HEADERS.-# This happens for instance with './config.status Makefile'.-if test -n "$CONFIG_HEADERS"; then-cat >"$ac_tmp/defines.awk" <<\_ACAWK ||-BEGIN {-_ACEOF--# Transform confdefs.h into an awk script 'defines.awk', embedded as-# here-document in config.status, that substitutes the proper values into-# config.h.in to produce config.h.--# Create a delimiter string that does not exist in confdefs.h, to ease-# handling of long lines.-ac_delim='%!_!# '-for ac_last_try in false false :; do- ac_tt=`sed -n "/$ac_delim/p" confdefs.h`- if test -z "$ac_tt"; then- break- elif $ac_last_try; then- as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5- else- ac_delim="$ac_delim!$ac_delim _$ac_delim!! "- fi-done--# For the awk script, D is an array of macro values keyed by name,-# likewise P contains macro parameters if any. Preserve backslash-# newline sequences.--ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*-sed -n '-s/.\{148\}/&'"$ac_delim"'/g-t rset-:rset-s/^[ ]*#[ ]*define[ ][ ]*/ /-t def-d-:def-s/\\$//-t bsnl-s/["\\]/\\&/g-s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\-D["\1"]=" \3"/p-s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p-d-:bsnl-s/["\\]/\\&/g-s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\-D["\1"]=" \3\\\\\\n"\\/p-t cont-s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p-t cont-d-:cont-n-s/.\{148\}/&'"$ac_delim"'/g-t clear-:clear-s/\\$//-t bsnlc-s/["\\]/\\&/g; s/^/"/; s/$/"/p-d-:bsnlc-s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p-b cont-' <confdefs.h | sed '-s/'"$ac_delim"'/"\\\-"/g' >>$CONFIG_STATUS || ac_write_fail=1--cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1- for (key in D) D_is_set[key] = 1- FS = ""-}-/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {- line = \$ 0- split(line, arg, " ")- if (arg[1] == "#") {- defundef = arg[2]- mac1 = arg[3]- } else {- defundef = substr(arg[1], 2)- mac1 = arg[2]- }- split(mac1, mac2, "(") #)- macro = mac2[1]- prefix = substr(line, 1, index(line, defundef) - 1)- if (D_is_set[macro]) {- # Preserve the white space surrounding the "#".- print prefix "define", macro P[macro] D[macro]- next- } else {- # Replace #undef with comments. This is necessary, for example,- # in the case of _POSIX_SOURCE, which is predefined and required- # on some systems where configure will not decide to define it.- if (defundef == "undef") {- print "/*", prefix defundef, macro, "*/"- next- }- }-}-{ print }-_ACAWK-_ACEOF-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1- as_fn_error $? "could not setup config headers machinery" "$LINENO" 5-fi # test -n "$CONFIG_HEADERS"---eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"-shift-for ac_tag-do- case $ac_tag in- :[FHLC]) ac_mode=$ac_tag; continue;;- esac- case $ac_mode$ac_tag in- :[FHL]*:*);;- :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;- :[FH]-) ac_tag=-:-;;- :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;- esac- ac_save_IFS=$IFS- IFS=:- set x $ac_tag- IFS=$ac_save_IFS- shift- ac_file=$1- shift-- case $ac_mode in- :L) ac_source=$1;;- :[FH])- ac_file_inputs=- for ac_f- do- case $ac_f in- -) ac_f="$ac_tmp/stdin";;- *) # Look for the file first in the build tree, then in the source tree- # (if the path is not absolute). The absolute path cannot be DOS-style,- # because $ac_f cannot contain ':'.- test -f "$ac_f" ||- case $ac_f in- [\\/$]*) false;;- *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;- esac ||- as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;- esac- case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac- as_fn_append ac_file_inputs " '$ac_f'"- done-- # Let's still pretend it is 'configure' which instantiates (i.e., don't- # use $as_me), people would be surprised to read:- # /* config.h. Generated by config.status. */- configure_input='Generated from '`- printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'- `' by configure.'- if test x"$ac_file" != x-; then- configure_input="$ac_file. $configure_input"- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5-printf "%s\n" "$as_me: creating $ac_file" >&6;}- fi- # Neutralize special characters interpreted by sed in replacement strings.- case $configure_input in #(- *\&* | *\|* | *\\* )- ac_sed_conf_input=`printf "%s\n" "$configure_input" |- sed 's/[\\\\&|]/\\\\&/g'`;; #(- *) ac_sed_conf_input=$configure_input;;- esac-- case $ac_tag in- *:-:* | *:-) cat >"$ac_tmp/stdin" \- || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;- esac- ;;- esac-- ac_dir=`$as_dirname -- "$ac_file" ||-$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \- X"$ac_file" : 'X\(//\)[^/]' \| \- X"$ac_file" : 'X\(//\)$' \| \- X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||-printf "%s\n" X"$ac_file" |- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{- s//\1/- q- }- /^X\(\/\/\)[^/].*/{- s//\1/- q- }- /^X\(\/\/\)$/{- s//\1/- q- }- /^X\(\/\).*/{- s//\1/- q- }- s/.*/./; q'`- as_dir="$ac_dir"; as_fn_mkdir_p- ac_builddir=.--case "$ac_dir" in-.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;-*)- ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`- # A ".." for each directory in $ac_dir_suffix.- ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`- case $ac_top_builddir_sub in- "") ac_top_builddir_sub=. ac_top_build_prefix= ;;- *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;- esac ;;-esac-ac_abs_top_builddir=$ac_pwd-ac_abs_builddir=$ac_pwd$ac_dir_suffix-# for backward compatibility:-ac_top_builddir=$ac_top_build_prefix--case $srcdir in- .) # We are building in place.- ac_srcdir=.- ac_top_srcdir=$ac_top_builddir_sub- ac_abs_top_srcdir=$ac_pwd ;;- [\\/]* | ?:[\\/]* ) # Absolute name.- ac_srcdir=$srcdir$ac_dir_suffix;- ac_top_srcdir=$srcdir- ac_abs_top_srcdir=$srcdir ;;- *) # Relative name.- ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix- ac_top_srcdir=$ac_top_build_prefix$srcdir- ac_abs_top_srcdir=$ac_pwd/$srcdir ;;-esac-ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix--- case $ac_mode in- :F)- #- # CONFIG_FILE- #-- ac_MKDIR_P=$MKDIR_P- case $MKDIR_P in- [\\/$]* | ?:[\\/]* ) ;;- */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;- esac-_ACEOF--cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1-# If the template does not know about datarootdir, expand it.-# FIXME: This hack should be removed a few years after 2.60.-ac_datarootdir_hack=; ac_datarootdir_seen=-ac_sed_dataroot='-/datarootdir/ {- p- q-}-/@datadir@/p-/@docdir@/p-/@infodir@/p-/@localedir@/p-/@mandir@/p'-case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in-*datarootdir*) ac_datarootdir_seen=yes;;-*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5-printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}-_ACEOF-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1- ac_datarootdir_hack='- s&@datadir@&$datadir&g- s&@docdir@&$docdir&g- s&@infodir@&$infodir&g- s&@localedir@&$localedir&g- s&@mandir@&$mandir&g- s&\\\${datarootdir}&$datarootdir&g' ;;-esac-_ACEOF--# Neutralize VPATH when '$srcdir' = '.'.-# Shell code in configure.ac might set extrasub.-# FIXME: do we really want to maintain this feature?-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1-ac_sed_extra="$ac_vpsub-$extrasub-_ACEOF-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1-:t-/@[a-zA-Z_][a-zA-Z_0-9]*@/!b-s|@configure_input@|$ac_sed_conf_input|;t t-s&@top_builddir@&$ac_top_builddir_sub&;t t-s&@top_build_prefix@&$ac_top_build_prefix&;t t-s&@srcdir@&$ac_srcdir&;t t-s&@abs_srcdir@&$ac_abs_srcdir&;t t-s&@top_srcdir@&$ac_top_srcdir&;t t-s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t-s&@builddir@&$ac_builddir&;t t-s&@abs_builddir@&$ac_abs_builddir&;t t-s&@abs_top_builddir@&$ac_abs_top_builddir&;t t-s&@MKDIR_P@&$ac_MKDIR_P&;t t-$ac_datarootdir_hack-"-eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \- >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5--test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&- { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&- { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \- "$ac_tmp/out"`; test -z "$ac_out"; } &&- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'-which seems to be undefined. Please make sure it is defined" >&5-printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'-which seems to be undefined. Please make sure it is defined" >&2;}-- rm -f "$ac_tmp/stdin"- case $ac_file in- -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;- *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;- esac \- || as_fn_error $? "could not create $ac_file" "$LINENO" 5- ;;- :H)- #- # CONFIG_HEADER- #- if test x"$ac_file" != x-; then- {- printf "%s\n" "/* $configure_input */" >&1 \- && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"- } >"$ac_tmp/config.h" \- || as_fn_error $? "could not create $ac_file" "$LINENO" 5- if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5-printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}- else- rm -f "$ac_file"- mv "$ac_tmp/config.h" "$ac_file" \- || as_fn_error $? "could not create $ac_file" "$LINENO" 5- fi- else- printf "%s\n" "/* $configure_input */" >&1 \- && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \- || as_fn_error $? "could not create -" "$LINENO" 5- fi- ;;-- :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5-printf "%s\n" "$as_me: executing $ac_file commands" >&6;}- ;;- esac--- case $ac_file$ac_mode in- "libtool":C)-- # See if we are running on zsh, and set the options that allow our- # commands through without removal of \ escapes.- if test -n "${ZSH_VERSION+set}"; then- setopt NO_GLOB_SUBST- fi-- cfgfile=${ofile}T- trap "$RM \"$cfgfile\"; exit 1" 1 2 15- $RM "$cfgfile"-- cat <<_LT_EOF >> "$cfgfile"-#! $SHELL-# Generated automatically by $as_me ($PACKAGE) $VERSION-# NOTE: Changes made to this file will be lost: look at ltmain.sh.--# Provide generalized library-building support services.-# Written by Gordon Matzigkeit, 1996--# Copyright (C) 2024 Free Software Foundation, Inc.-# This is free software; see the source for copying conditions. There is NO-# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.--# GNU Libtool is free software; you can redistribute it and/or modify-# it under the terms of the GNU General Public License as published by-# the Free Software Foundation; either version 2 of the License, or-# (at your option) any later version.-#-# As a special exception to the GNU General Public License, if you-# distribute this file as part of a program or library that is built-# using GNU Libtool, you may include this file under the same-# distribution terms that you use for the rest of that program.-#-# GNU Libtool is distributed in the hope that it will be useful, but-# WITHOUT ANY WARRANTY; without even the implied warranty of-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-# GNU General Public License for more details.-#-# You should have received a copy of the GNU General Public License-# along with this program. If not, see <http://www.gnu.org/licenses/>.---# The names of the tagged configurations supported by this script.-available_tags=''--# Configured defaults for sys_lib_dlsearch_path munging.-: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}--# ### BEGIN LIBTOOL CONFIG--# Which release of libtool.m4 was used?-macro_version=$macro_version-macro_revision=$macro_revision--# Assembler program.-AS=$lt_AS--# DLL creation program.-DLLTOOL=$lt_DLLTOOL--# Object dumper program.-OBJDUMP=$lt_OBJDUMP--# Whether or not to build shared libraries.-build_libtool_libs=$enable_shared--# Whether or not to build static libraries.-build_old_libs=$enable_static--# What type of objects to build.-pic_mode=$pic_mode--# Whether or not to optimize for fast installation.-fast_install=$enable_fast_install--# Shared archive member basename,for filename based shared library versioning on AIX.-shared_archive_member_spec=$shared_archive_member_spec--# Shell to use when invoking shell scripts.-SHELL=$lt_SHELL--# An echo program that protects backslashes.-ECHO=$lt_ECHO--# The PATH separator for the build system.-PATH_SEPARATOR=$lt_PATH_SEPARATOR--# The host system.-host_alias=$host_alias-host=$host-host_os=$host_os--# The build system.-build_alias=$build_alias-build=$build-build_os=$build_os--# A sed program that does not truncate output.-SED=$lt_SED--# Sed that helps us avoid accidentally triggering echo(1) options like -n.-Xsed="\$SED -e 1s/^X//"--# A grep program that handles long lines.-GREP=$lt_GREP--# An ERE matcher.-EGREP=$lt_EGREP--# A literal string matcher.-FGREP=$lt_FGREP--# A BSD- or MS-compatible name lister.-NM=$lt_NM--# Whether we need soft or hard links.-LN_S=$lt_LN_S--# What is the maximum length of a command?-max_cmd_len=$max_cmd_len--# Object file suffix (normally "o").-objext=$ac_objext--# Executable file suffix (normally "").-exeext=$exeext--# whether the shell understands "unset".-lt_unset=$lt_unset--# turn spaces into newlines.-SP2NL=$lt_lt_SP2NL--# turn newlines into spaces.-NL2SP=$lt_lt_NL2SP--# convert \$build file names to \$host format.-to_host_file_cmd=$lt_cv_to_host_file_cmd--# convert \$build files to toolchain format.-to_tool_file_cmd=$lt_cv_to_tool_file_cmd--# A file(cmd) program that detects file types.-FILECMD=$lt_FILECMD--# Method to check whether dependent libraries are shared objects.-deplibs_check_method=$lt_deplibs_check_method--# Command to use when deplibs_check_method = "file_magic".-file_magic_cmd=$lt_file_magic_cmd--# How to find potential files when deplibs_check_method = "file_magic".-file_magic_glob=$lt_file_magic_glob--# Find potential files using nocaseglob when deplibs_check_method = "file_magic".-want_nocaseglob=$lt_want_nocaseglob--# Command to associate shared and link libraries.-sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd--# The archiver.-AR=$lt_AR--# Flags to create an archive (by configure).-lt_ar_flags=$lt_ar_flags--# Flags to create an archive.-AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}--# How to feed a file listing to the archiver.-archiver_list_spec=$lt_archiver_list_spec--# A symbol stripping program.-STRIP=$lt_STRIP--# Commands used to install an old-style archive.-RANLIB=$lt_RANLIB-old_postinstall_cmds=$lt_old_postinstall_cmds-old_postuninstall_cmds=$lt_old_postuninstall_cmds--# Whether to use a lock for old archive extraction.-lock_old_archive_extraction=$lock_old_archive_extraction--# A C compiler.-LTCC=$lt_CC--# LTCC compiler flags.-LTCFLAGS=$lt_CFLAGS--# Take the output of nm and produce a listing of raw symbols and C names.-global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe--# Transform the output of nm in a proper C declaration.-global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl--# Transform the output of nm into a list of symbols to manually relocate.-global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import--# Transform the output of nm in a C name address pair.-global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address--# Transform the output of nm in a C name address pair when lib prefix is needed.-global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix--# The name lister interface.-nm_interface=$lt_lt_cv_nm_interface--# Specify filename containing input files for \$NM.-nm_file_list_spec=$lt_nm_file_list_spec--# The root where to search for dependent libraries,and where our libraries should be installed.-lt_sysroot=$lt_sysroot--# Command to truncate a binary pipe.-lt_truncate_bin=$lt_lt_cv_truncate_bin--# The name of the directory that contains temporary libtool files.-objdir=$objdir--# Used to examine libraries when file_magic_cmd begins with "file".-MAGIC_CMD=$MAGIC_CMD--# Must we lock files when doing compilation?-need_locks=$lt_need_locks--# Manifest tool.-MANIFEST_TOOL=$lt_MANIFEST_TOOL--# Tool to manipulate archived DWARF debug symbol files on Mac OS X.-DSYMUTIL=$lt_DSYMUTIL--# Tool to change global to local symbols on Mac OS X.-NMEDIT=$lt_NMEDIT--# Tool to manipulate fat objects and archives on Mac OS X.-LIPO=$lt_LIPO--# ldd/readelf like tool for Mach-O binaries on Mac OS X.-OTOOL=$lt_OTOOL--# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.-OTOOL64=$lt_OTOOL64--# Old archive suffix (normally "a").-libext=$libext--# Shared library suffix (normally ".so").-shrext_cmds=$lt_shrext_cmds--# The commands to extract the exported symbol list from a shared archive.-extract_expsyms_cmds=$lt_extract_expsyms_cmds--# Variables whose values should be saved in libtool wrapper scripts and-# restored at link time.-variables_saved_for_relink=$lt_variables_saved_for_relink--# Do we need the "lib" prefix for modules?-need_lib_prefix=$need_lib_prefix--# Do we need a version for libraries?-need_version=$need_version--# Library versioning type.-version_type=$version_type--# Shared library runtime path variable.-runpath_var=$runpath_var--# Shared library path variable.-shlibpath_var=$shlibpath_var--# Is shlibpath searched before the hard-coded library search path?-shlibpath_overrides_runpath=$shlibpath_overrides_runpath--# Format of library name prefix.-libname_spec=$lt_libname_spec--# List of archive names. First name is the real one, the rest are links.-# The last name is the one that the linker finds with -lNAME-library_names_spec=$lt_library_names_spec--# The coded name of the library, if different from the real name.-soname_spec=$lt_soname_spec--# Permission mode override for installation of shared libraries.-install_override_mode=$lt_install_override_mode--# Command to use after installation of a shared archive.-postinstall_cmds=$lt_postinstall_cmds--# Command to use after uninstallation of a shared archive.-postuninstall_cmds=$lt_postuninstall_cmds--# Commands used to finish a libtool library installation in a directory.-finish_cmds=$lt_finish_cmds--# As "finish_cmds", except a single script fragment to be evaled but-# not shown.-finish_eval=$lt_finish_eval--# Whether we should hardcode library paths into libraries.-hardcode_into_libs=$hardcode_into_libs--# Compile-time system search path for libraries.-sys_lib_search_path_spec=$lt_sys_lib_search_path_spec--# Detected run-time system search path for libraries.-sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path--# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.-configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path--# Whether dlopen is supported.-dlopen_support=$enable_dlopen--# Whether dlopen of programs is supported.-dlopen_self=$enable_dlopen_self--# Whether dlopen of statically linked programs is supported.-dlopen_self_static=$enable_dlopen_self_static--# Commands to strip libraries.-old_striplib=$lt_old_striplib-striplib=$lt_striplib---# The linker used to build libraries.-LD=$lt_LD--# How to create reloadable object files.-reload_flag=$lt_reload_flag-reload_cmds=$lt_reload_cmds--# Commands used to build an old-style archive.-old_archive_cmds=$lt_old_archive_cmds--# A language specific compiler.-CC=$lt_compiler--# Is the compiler the GNU compiler?-with_gcc=$GCC--# Compiler flag to turn off builtin functions.-no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag--# Additional compiler flags for building library objects.-pic_flag=$lt_lt_prog_compiler_pic--# How to pass a linker flag through the compiler.-wl=$lt_lt_prog_compiler_wl--# Compiler flag to prevent dynamic linking.-link_static_flag=$lt_lt_prog_compiler_static--# Does compiler simultaneously support -c and -o options?-compiler_c_o=$lt_lt_cv_prog_compiler_c_o--# Whether or not to add -lc for building shared libraries.-build_libtool_need_lc=$archive_cmds_need_lc--# Whether or not to disallow shared libs when runtime libs are static.-allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes--# Compiler flag to allow reflexive dlopens.-export_dynamic_flag_spec=$lt_export_dynamic_flag_spec--# Compiler flag to generate shared objects directly from archives.-whole_archive_flag_spec=$lt_whole_archive_flag_spec--# Whether the compiler copes with passing no objects directly.-compiler_needs_object=$lt_compiler_needs_object--# Create an old-style archive from a shared archive.-old_archive_from_new_cmds=$lt_old_archive_from_new_cmds--# Create a temporary old-style archive to link instead of a shared archive.-old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds--# Commands used to build a shared archive.-archive_cmds=$lt_archive_cmds-archive_expsym_cmds=$lt_archive_expsym_cmds--# Commands used to build a loadable module if different from building-# a shared archive.-module_cmds=$lt_module_cmds-module_expsym_cmds=$lt_module_expsym_cmds--# Whether we are building with GNU ld or not.-with_gnu_ld=$lt_with_gnu_ld--# Flag that allows shared libraries with undefined symbols to be built.-allow_undefined_flag=$lt_allow_undefined_flag--# Flag that enforces no undefined symbols.-no_undefined_flag=$lt_no_undefined_flag--# Flag to hardcode \$libdir into a binary during linking.-# This must work even if \$libdir does not exist-hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec--# Whether we need a single "-rpath" flag with a separated argument.-hardcode_libdir_separator=$lt_hardcode_libdir_separator--# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes-# DIR into the resulting binary.-hardcode_direct=$hardcode_direct--# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes-# DIR into the resulting binary and the resulting library dependency is-# "absolute",i.e. impossible to change by setting \$shlibpath_var if the-# library is relocated.-hardcode_direct_absolute=$hardcode_direct_absolute--# Set to "yes" if using the -LDIR flag during linking hardcodes DIR-# into the resulting binary.-hardcode_minus_L=$hardcode_minus_L--# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR-# into the resulting binary.-hardcode_shlibpath_var=$hardcode_shlibpath_var--# Set to "yes" if building a shared library automatically hardcodes DIR-# into the library and all subsequent libraries and executables linked-# against it.-hardcode_automatic=$hardcode_automatic--# Set to yes if linker adds runtime paths of dependent libraries-# to runtime path list.-inherit_rpath=$inherit_rpath--# Whether libtool must link a program against all its dependency libraries.-link_all_deplibs=$link_all_deplibs--# Set to "yes" if exported symbols are required.-always_export_symbols=$always_export_symbols--# The commands to list exported symbols.-export_symbols_cmds=$lt_export_symbols_cmds--# Symbols that should not be listed in the preloaded symbols.-exclude_expsyms=$lt_exclude_expsyms--# Symbols that must always be exported.-include_expsyms=$lt_include_expsyms--# Commands necessary for linking programs (against libraries) with templates.-prelink_cmds=$lt_prelink_cmds--# Commands necessary for finishing linking programs.-postlink_cmds=$lt_postlink_cmds--# Specify filename containing input files.-file_list_spec=$lt_file_list_spec--# How to hardcode a shared library path into an executable.-hardcode_action=$hardcode_action--# ### END LIBTOOL CONFIG--_LT_EOF-- cat <<'_LT_EOF' >> "$cfgfile"--# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE--# func_munge_path_list VARIABLE PATH-# ------------------------------------# VARIABLE is name of variable containing _space_ separated list of-# directories to be munged by the contents of PATH, which is string-# having a format:-# "DIR[:DIR]:"-# string "DIR[ DIR]" will be prepended to VARIABLE-# ":DIR[:DIR]"-# string "DIR[ DIR]" will be appended to VARIABLE-# "DIRP[:DIRP]::[DIRA:]DIRA"-# string "DIRP[ DIRP]" will be prepended to VARIABLE and string-# "DIRA[ DIRA]" will be appended to VARIABLE-# "DIR[:DIR]"-# VARIABLE will be replaced by "DIR[ DIR]"-func_munge_path_list ()-{- case x$2 in- x)- ;;- *:)- eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"- ;;- x:*)- eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"- ;;- *::*)- eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"- eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"- ;;- *)- eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"- ;;- esac-}---# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.-func_cc_basename ()-{- for cc_temp in $*""; do- case $cc_temp in- compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;- distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;- \-*) ;;- *) break;;- esac- done- func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`-}---# ### END FUNCTIONS SHARED WITH CONFIGURE--_LT_EOF-- case $host_os in- aix3*)- cat <<\_LT_EOF >> "$cfgfile"-# AIX sometimes has problems with the GCC collect2 program. For some-# reason, if we set the COLLECT_NAMES environment variable, the problems-# vanish in a puff of smoke.-if test set != "${COLLECT_NAMES+set}"; then- COLLECT_NAMES=- export COLLECT_NAMES-fi-_LT_EOF- ;;- esac----ltmain=$ac_aux_dir/ltmain.sh--- # We use sed instead of cat because bash on DJGPP gets confused if- # if finds mixed CR/LF and LF-only lines. Since sed operates in- # text mode, it properly converts lines to CR/LF. This bash problem- # is reportedly fixed, but why not run on old versions too?- $SED '$q' "$ltmain" >> "$cfgfile" \- || (rm -f "$cfgfile"; exit 1)-- mv -f "$cfgfile" "$ofile" ||- (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")- chmod +x "$ofile"-- ;;-- esac-done # for ac_tag---as_fn_exit 0-_ACEOF-ac_clean_files=$ac_clean_files_save--test $ac_write_fail = 0 ||- as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5---# configure is writing to config.log, and then calls config.status.-# config.status does its own redirection, appending to config.log.-# Unfortunately, on DOS this fails, as config.log is still kept open-# by configure, so config.status won't be able to write to it; its-# output is simply discarded. So we exec the FD to /dev/null,-# effectively closing config.log, so it can be properly (re)opened and-# appended to by config.status. When coming back to configure, we-# need to make the FD available again.-if test "$no_create" != yes; then- ac_cs_success=:- ac_config_status_args=- test "$silent" = yes &&- ac_config_status_args="$ac_config_status_args --quiet"- exec 5>/dev/null- $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false- exec 5>>config.log- # Use ||, not &&, to avoid exiting from the if with $? = 1, which- # would make configure fail if this is the last instruction.- $ac_cs_success || as_fn_exit 1-fi-if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5-printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}+# Generated by GNU Autoconf 2.73 for Haskell libarchive-clib package 3.7.2.+#+# Report bugs to <vamchale@gmail.com>.+#+#+# Copyright (C) 1992-1996, 1998-2017, 2020-2026 Free Software Foundation,+# Inc.+#+#+# This configure script is free software; the Free Software Foundation+# gives unlimited permission to copy, distribute and modify it.+## -------------------- ##+## M4sh Initialization. ##+## -------------------- ##++# Be more Bourne compatible+DUALCASE=1; export DUALCASE # for MKS sh+if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1+then :+ emulate sh+ NULLCMD=:+ # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which+ # contradicts POSIX and common usage. Disable this.+ alias -g '${1+"$@"}'='"$@"'+ setopt NO_GLOB_SUBST+else case e in #(+ e) case `(set -o) 2>/dev/null` in #(+ *posix*) :+ set -o posix ;; #(+ *) :+ ;;+esac ;;+esac+fi++++# Reset variables that may have inherited troublesome values from+# the environment.++# IFS needs to be set, to space, tab, and newline, in precisely that order.+# (If _AS_PATH_WALK were called with IFS unset, it would have the+# side effect of setting IFS to empty, thus disabling word splitting.)+# Quoting is to prevent editors from complaining about space-tab.+as_nl='+'+export as_nl+IFS=" "" $as_nl"++PS1='$ '+PS2='> '+PS4='+ '++# Ensure predictable behavior from utilities with locale-dependent output.+LC_ALL=C+export LC_ALL+LANGUAGE=C+export LANGUAGE++# We cannot yet rely on "unset" to work, but we need these variables+# to be unset--not just set to an empty or harmless value--now, to+# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct+# also avoids known problems related to "unset" and subshell syntax+# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).+for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH+do eval test \${$as_var+y} \+ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :+done++# Ensure that fds 0, 1, and 2 are open.+if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi+if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi+if (exec 3>&2) ; then :; else exec 2>/dev/null; fi++# The user is always right.+if ${PATH_SEPARATOR+false} :; then+ PATH_SEPARATOR=:+ (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {+ (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||+ PATH_SEPARATOR=';'+ }+fi+++# Find who we are. Look in the path if we contain no directory separator.+as_myself=+case $0 in #((+ *[\\/]* ) as_myself=$0 ;;+ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ test -r "$as_dir$0" && as_myself=$as_dir$0 && break+ done+IFS=$as_save_IFS++ ;;+esac+# We did not find ourselves, most probably we were run as 'sh COMMAND'+# in which case we are not to be found in the path.+if test "x$as_myself" = x; then+ as_myself=$0+fi+if test ! -f "$as_myself"; then+ printf '%s\n' "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2+ exit 1+fi+++# Use a proper internal environment variable to ensure we don't fall+ # into an infinite loop, continuously re-executing ourselves.+ if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then+ _as_can_reexec=no; export _as_can_reexec;+ # We cannot yet assume a decent shell, so we have to provide a+# neutralization value for shells without unset; and this also+# works around shells that cannot unset nonexistent variables.+# Preserve -v and -x to the replacement shell.+BASH_ENV=/dev/null+ENV=/dev/null+(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV+case $- in # ((((+ *v*x* | *x*v* ) as_opts=-vx ;;+ *v* ) as_opts=-v ;;+ *x* ) as_opts=-x ;;+ * ) as_opts= ;;+esac+case $# in # ((+ 0) exec $CONFIG_SHELL $as_opts "$as_myself" ;;+ *) exec $CONFIG_SHELL $as_opts "$as_myself" "$@" ;;+esac+# Admittedly, this is quite paranoid, since all the known shells bail+# out after a failed 'exec'.+printf '%s\n' "$0: could not re-execute with $CONFIG_SHELL" >&2+exit 255+ fi+ # We don't want this to propagate to other subprocesses.+ { _as_can_reexec=; unset _as_can_reexec;}+if test "x$CONFIG_SHELL" = x; then+ as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1+then :+ emulate sh+ NULLCMD=:+ # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which+ # contradicts POSIX and common usage. Disable this.+ alias -g '\${1+\"\$@\"}'='\"\$@\"'+ setopt NO_GLOB_SUBST+else case e in #(+ e) case \`(set -o) 2>/dev/null\` in #(+ *posix*) :+ set -o posix ;; #(+ *) :+ ;;+esac ;;+esac+fi+"+ as_required="as_fn_return () { (exit \$1); }+as_fn_success () { as_fn_return 0; }+as_fn_failure () { as_fn_return 1; }+as_fn_ret_success () { return 0; }+as_fn_ret_failure () { return 1; }++exitcode=0+as_fn_success || { exitcode=1; echo as_fn_success failed.; }+as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }+as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }+as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }+if ( set x; as_fn_ret_success y && test x = \"\$1\" )+then :++else case e in #(+ e) exitcode=1; echo positional parameters were not saved. ;;+esac+fi+test x\$exitcode = x0 || exit 1+blah=\$(echo \$(echo blah))+test x\"\$blah\" = xblah || exit 1+test -x / || exit 1"+ as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO+ as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO+ eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&+ test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1++ test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (+ ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'+ ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO+ ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO+ PATH=/empty FPATH=/empty; export PATH FPATH+ test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\+ || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1+test \$(( 1 + 1 )) = 2 || exit 1"+ if (eval "$as_required") 2>/dev/null+then :+ as_have_required=yes+else case e in #(+ e) as_have_required=no ;;+esac+fi+ if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null+then :++else case e in #(+ e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+as_found=false+for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ as_found=:+ case $as_dir in #(+ /*)+ for as_base in sh bash ksh sh5; do+ # Try only shells that exist, to save several forks.+ as_shell=$as_dir$as_base+ if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&+ as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null+then :+ CONFIG_SHELL=$as_shell as_have_required=yes+ if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null+then :+ break 2+fi+fi+ done;;+ esac+ as_found=false+done+IFS=$as_save_IFS+if $as_found+then :++else case e in #(+ e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&+ as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null+then :+ CONFIG_SHELL=$SHELL as_have_required=yes+fi ;;+esac+fi+++ if test "x$CONFIG_SHELL" != x+then :+ export CONFIG_SHELL+ # We cannot yet assume a decent shell, so we have to provide a+# neutralization value for shells without unset; and this also+# works around shells that cannot unset nonexistent variables.+# Preserve -v and -x to the replacement shell.+BASH_ENV=/dev/null+ENV=/dev/null+(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV+case $- in # ((((+ *v*x* | *x*v* ) as_opts=-vx ;;+ *v* ) as_opts=-v ;;+ *x* ) as_opts=-x ;;+ * ) as_opts= ;;+esac+case $# in # ((+ 0) exec $CONFIG_SHELL $as_opts "$as_myself" ;;+ *) exec $CONFIG_SHELL $as_opts "$as_myself" "$@" ;;+esac+# Admittedly, this is quite paranoid, since all the known shells bail+# out after a failed 'exec'.+printf '%s\n' "$0: could not re-execute with $CONFIG_SHELL" >&2+exit 255+fi++ if test x$as_have_required = xno+then :+ printf '%s\n' "$0: This script requires a shell more modern than all"+ printf '%s\n' "$0: the shells that I found on your system."+ if test ${ZSH_VERSION+y} ; then+ printf '%s\n' "$0: In particular, zsh $ZSH_VERSION has bugs and should"+ printf '%s\n' "$0: be upgraded to zsh 4.3.4 or later."+ else+ printf '%s\n' "$0: Please tell bug-autoconf@gnu.org and vamchale@gmail.com+$0: about your system, including any error possibly output+$0: before this message. Then install a modern shell, or+$0: manually run the script under such a shell if you do+$0: have one."+ fi+ exit 1+fi ;;+esac+fi+fi+SHELL=${CONFIG_SHELL-/bin/sh}+export SHELL+# Unset more variables known to interfere with behavior of common tools.+CLICOLOR_FORCE= GREP_OPTIONS=+unset CLICOLOR_FORCE GREP_OPTIONS++## --------------------- ##+## M4sh Shell Functions. ##+## --------------------- ##+# as_fn_unset VAR+# ---------------+# Portably unset VAR.+as_fn_unset ()+{+ { eval $1=; unset $1;}+}+as_unset=as_fn_unset+++# as_fn_set_status STATUS+# -----------------------+# Set $? to STATUS, without forking.+as_fn_set_status ()+{+ return $1+} # as_fn_set_status++# as_fn_exit STATUS+# -----------------+# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.+as_fn_exit ()+{+ set +e+ as_fn_set_status $1+ exit $1+} # as_fn_exit++# as_fn_mkdir_p+# -------------+# Create "$as_dir" as a directory, including parents if necessary.+as_fn_mkdir_p ()+{++ case $as_dir in #(+ -*) as_dir=./$as_dir;;+ esac+ test -d "$as_dir" || eval $as_mkdir_p || {+ as_dirs=+ while :; do+ case $as_dir in #(+ *\'*) as_qdir=`printf '%s\n' "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(+ *) as_qdir=$as_dir;;+ esac+ as_dirs="'$as_qdir' $as_dirs"+ as_dir=`$as_dirname -- "$as_dir" ||+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \+ X"$as_dir" : 'X\(//\)[^/]' \| \+ X"$as_dir" : 'X\(//\)$' \| \+ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||+printf '%s\n' X"$as_dir" |+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{+ s//\1/+ q+ }+ /^X\(\/\/\)[^/].*/{+ s//\1/+ q+ }+ /^X\(\/\/\)$/{+ s//\1/+ q+ }+ /^X\(\/\).*/{+ s//\1/+ q+ }+ s/.*/./; q'`+ test -d "$as_dir" && break+ done+ test -z "$as_dirs" || eval "mkdir $as_dirs"+ } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"+++} # as_fn_mkdir_p++# as_fn_executable_p FILE+# -----------------------+# Test if FILE is an executable regular file.+as_fn_executable_p ()+{+ test -f "$1" && test -x "$1"+} # as_fn_executable_p+# as_fn_append VAR VALUE+# ----------------------+# Append the text in VALUE to the end of the definition contained in VAR. Take+# advantage of any shell optimizations that allow amortized linear growth over+# repeated appends, instead of the typical quadratic growth present in naive+# implementations.+if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null+then :+ eval 'as_fn_append ()+ {+ eval $1+=\$2+ }'+else case e in #(+ e) as_fn_append ()+ {+ eval $1=\$$1\$2+ } ;;+esac+fi # as_fn_append++# as_fn_arith ARG...+# ------------------+# Perform arithmetic evaluation on the ARGs, and store the result in the+# global $as_val. Take advantage of shells that can avoid forks. The arguments+# must be portable across $(()) and expr.+if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null+then :+ eval 'as_fn_arith ()+ {+ as_val=$(( $* ))+ }'+else case e in #(+ e) as_fn_arith ()+ {+ as_val=`expr "$@" || test $? -eq 1`+ } ;;+esac+fi # as_fn_arith+++# as_fn_error STATUS ERROR [LINENO LOG_FD]+# ----------------------------------------+# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are+# provided, also output the error to LOG_FD, referencing LINENO. Then exit the+# script with STATUS, using 1 if that was 0.+as_fn_error ()+{+ as_status=$1; test $as_status -eq 0 && as_status=1+ if test "$4"; then+ as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: $2" >&$4+ fi+ printf '%s\n' "$as_me: error: $2" >&2+ as_fn_exit $as_status+} # as_fn_error++if expr a : '\(a\)' >/dev/null 2>&1 &&+ test "X`expr 00001 : '.*\(...\)'`" = X001; then+ as_expr=expr+else+ as_expr=false+fi++if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then+ as_basename=basename+else+ as_basename=false+fi++if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then+ as_dirname=dirname+else+ as_dirname=false+fi++as_me=`$as_basename -- "$0" ||+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \+ X"$0" : 'X\(//\)$' \| \+ X"$0" : 'X\(/\)' \| . 2>/dev/null ||+printf '%s\n' X/"$0" |+ sed '/^.*\/\([^/][^/]*\)\/*$/{+ s//\1/+ q+ }+ /^X\/\(\/\/\)$/{+ s//\1/+ q+ }+ /^X\/\(\/\).*/{+ s//\1/+ q+ }+ s/.*/./; q'`++# Avoid depending upon Character Ranges.+as_cr_letters='abcdefghijklmnopqrstuvwxyz'+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'+as_cr_Letters=$as_cr_letters$as_cr_LETTERS+as_cr_digits='0123456789'+as_cr_alnum=$as_cr_Letters$as_cr_digits+++ as_lineno_1=$LINENO as_lineno_1a=$LINENO+ as_lineno_2=$LINENO as_lineno_2a=$LINENO+ eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&+ test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {+ # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)+ sed -n '+ p+ /[$]LINENO/=+ ' <$as_myself |+ sed '+ t clear+ :clear+ s/[$]LINENO.*/&-/+ t lineno+ b+ :lineno+ N+ :loop+ s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/+ t loop+ s/-\n.*//+ ' >$as_me.lineno &&+ chmod +x "$as_me.lineno" ||+ { printf '%s\n' "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }++ # If we had to re-execute with $CONFIG_SHELL, we're ensured to have+ # already done that, so ensure we don't try to do so again and fall+ # in an infinite loop. This has already happened in practice.+ _as_can_reexec=no; export _as_can_reexec+ # Don't try to exec as it changes $[0], causing all sort of problems+ # (the dirname of $[0] is not the place where we might find the+ # original and so on. Autoconf is especially sensitive to this).+ . "./$as_me.lineno"+ # Exit status is that of the last command.+ exit+}++rm -f conf$$ conf$$.exe conf$$.file+if test -d conf$$.dir; then+ rm -f conf$$.dir/conf$$.file+else+ rm -f conf$$.dir+ mkdir conf$$.dir 2>/dev/null+fi+if (echo >conf$$.file) 2>/dev/null; then+ if ln -s conf$$.file conf$$ 2>/dev/null; then+ as_ln_s='ln -s'+ # ... but there are two gotchas:+ # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.+ # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.+ # In both cases, we have to default to 'cp -pR'.+ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||+ as_ln_s='cp -pR'+ elif ln conf$$.file conf$$ 2>/dev/null; then+ as_ln_s=ln+ else+ as_ln_s='cp -pR'+ fi+else+ as_ln_s='cp -pR'+fi+rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file+rmdir conf$$.dir 2>/dev/null++if mkdir -p . 2>/dev/null; then+ as_mkdir_p='mkdir -p "$as_dir"'+else+ test -d ./-p && rmdir ./-p+ as_mkdir_p=false+fi++as_test_x='test -x'+as_executable_p=as_fn_executable_p++# Sed expression to map a string onto a valid CPP name.+as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"+as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated++# Sed expression to map a string onto a valid variable name.+as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"+as_tr_sh="eval sed '$as_sed_sh'" # deprecated++SHELL=${CONFIG_SHELL-/bin/sh}+++test -n "$DJDIR" || exec 7<&0 </dev/null+exec 6>&1++# Name of the host.+# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,+# so uname gets run too.+ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`++#+# Initializations.+#+ac_default_prefix=/usr/local+ac_clean_CONFIG_STATUS=+ac_clean_files=+ac_config_libobj_dir=.+LIBOBJS=+cross_compiling=no+subdirs=+MFLAGS=+MAKEFLAGS=++# Identity of this package.+PACKAGE_NAME='Haskell libarchive-clib package'+PACKAGE_TARNAME='libarchive-clib'+PACKAGE_VERSION='3.7.2'+PACKAGE_STRING='Haskell libarchive-clib package 3.7.2'+PACKAGE_BUGREPORT='vamchale@gmail.com'+PACKAGE_URL=''++ac_unique_file="c"+# Factoring default headers for most tests.+ac_includes_default="\+#include <stddef.h>+#ifdef HAVE_STDIO_H+# include <stdio.h>+#endif+#ifdef HAVE_STDLIB_H+# include <stdlib.h>+#endif+#ifdef HAVE_STRING_H+# include <string.h>+#endif+#ifdef HAVE_INTTYPES_H+# include <inttypes.h>+#endif+#ifdef HAVE_STDINT_H+# include <stdint.h>+#endif+#ifdef HAVE_STRINGS_H+# include <strings.h>+#endif+#ifdef HAVE_SYS_TYPES_H+# include <sys/types.h>+#endif+#ifdef HAVE_SYS_STAT_H+# include <sys/stat.h>+#endif+#ifdef HAVE_UNISTD_H+# include <unistd.h>+#endif"++ac_header_c_list=+ac_func_c_list=+: ${enable_year2038:=no}+ac_subst_vars='LTLIBOBJS+EXTRA_LIBS+INC_FREEBSD_ACL_FALSE+INC_FREEBSD_ACL_TRUE+INC_DARWIN_ACL_FALSE+INC_DARWIN_ACL_TRUE+INC_SUNOS_ACL_FALSE+INC_SUNOS_ACL_TRUE+INC_LINUX_ACL_FALSE+INC_LINUX_ACL_TRUE+LIBOBJS+LZMA_PC_LIBS+LZMA_PC_CFLAGS+ICONV_PC_LIBS+ICONV_PC_CFLAGS+LTLIBICONV+LIBICONV+INC_BLAKE2_FALSE+INC_BLAKE2_TRUE+PKG_CONFIG_LIBDIR+PKG_CONFIG_PATH+PKG_CONFIG+MKDIR_P+LT_SYS_LIBRARY_PATH+OTOOL64+OTOOL+LIPO+NMEDIT+DSYMUTIL+MANIFEST_TOOL+AWK+RANLIB+STRIP+ac_ct_AR+AR+FILECMD+LN_S+NM+ac_ct_DUMPBIN+DUMPBIN+LD+FGREP+EGREP+GREP+SED+LIBTOOL+OBJDUMP+DLLTOOL+AS+CPP+OBJEXT+EXEEXT+ac_ct_CC+CPPFLAGS+LDFLAGS+CFLAGS+CC+INC_CYGWIN_FILES_FALSE+INC_CYGWIN_FILES_TRUE+INC_WINDOWS_FILES_FALSE+INC_WINDOWS_FILES_TRUE+host_os+host_vendor+host_cpu+host+build_os+build_vendor+build_cpu+build+LIBARCHIVE_VERSION_NUMBER+LIBARCHIVE_VERSION_STRING+BSDUNZIP_VERSION_STRING+BSDCAT_VERSION_STRING+BSDTAR_VERSION_STRING+BSDCPIO_VERSION_STRING+ARCHIVE_LIBTOOL_VERSION+ECHO_T+ECHO_N+ECHO_C+target_alias+host_alias+build_alias+LIBS+DEFS+mandir+localedir+libdir+psdir+pdfdir+dvidir+htmldir+infodir+docdir+oldincludedir+includedir+runstatedir+localstatedir+sharedstatedir+sysconfdir+datadir+datarootdir+libexecdir+sbindir+bindir+program_transform_name+prefix+exec_prefix+PACKAGE_URL+PACKAGE_BUGREPORT+PACKAGE_STRING+PACKAGE_VERSION+PACKAGE_TARNAME+PACKAGE_NAME+PATH_SEPARATOR+SHELL'+ac_subst_files=''+ac_user_opts='+enable_option_checking+enable_shared+enable_static+enable_pic+with_pic+enable_fast_install+enable_aix_soname+with_aix_soname+with_gnu_ld+with_sysroot+enable_libtool_lock+with_zlib+with_bz2lib+with_iconv+enable_rpath+with_libiconv_prefix+with_lz4+with_zstd+with_lzma+enable_xattr+enable_acl+enable_largefile+enable_year2038+'+ ac_precious_vars='build_alias+host_alias+target_alias+CC+CFLAGS+LDFLAGS+LIBS+CPPFLAGS+CPP+LT_SYS_LIBRARY_PATH+PKG_CONFIG+PKG_CONFIG_PATH+PKG_CONFIG_LIBDIR+ICONV_PC_CFLAGS+ICONV_PC_LIBS+LZMA_PC_CFLAGS+LZMA_PC_LIBS'+++# Initialize some variables set by options.+ac_init_help=+ac_init_version=false+ac_unrecognized_opts=+ac_unrecognized_sep=+# The variables have the same names as the options, with+# dashes changed to underlines.+cache_file=/dev/null+exec_prefix=NONE+no_create=+no_recursion=+prefix=NONE+program_prefix=NONE+program_suffix=NONE+program_transform_name=s,x,x,+silent=+site=+srcdir=+verbose=+x_includes=NONE+x_libraries=NONE++# Installation directory options.+# These are left unexpanded so users can "make install exec_prefix=/foo"+# and all the variables that are supposed to be based on exec_prefix+# by default will actually change.+# Use braces instead of parens because sh, perl, etc. also accept them.+# (The list follows the same order as the GNU Coding Standards.)+bindir='${exec_prefix}/bin'+sbindir='${exec_prefix}/sbin'+libexecdir='${exec_prefix}/libexec'+datarootdir='${prefix}/share'+datadir='${datarootdir}'+sysconfdir='${prefix}/etc'+sharedstatedir='${prefix}/com'+localstatedir='${prefix}/var'+runstatedir='${localstatedir}/run'+includedir='${prefix}/include'+oldincludedir='/usr/include'+docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'+infodir='${datarootdir}/info'+htmldir='${docdir}'+dvidir='${docdir}'+pdfdir='${docdir}'+psdir='${docdir}'+libdir='${exec_prefix}/lib'+localedir='${datarootdir}/locale'+mandir='${datarootdir}/man'++ac_prev=+ac_dashdash=+for ac_option+do+ # If the previous option needs an argument, assign it.+ if test -n "$ac_prev"; then+ eval $ac_prev=\$ac_option+ ac_prev=+ continue+ fi++ case $ac_option in+ *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;+ *=) ac_optarg= ;;+ *) ac_optarg=yes ;;+ esac++ case $ac_dashdash$ac_option in+ --)+ ac_dashdash=yes ;;++ -bindir | --bindir | --bindi | --bind | --bin | --bi)+ ac_prev=bindir ;;+ -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)+ bindir=$ac_optarg ;;++ -build | --build | --buil | --bui | --bu)+ ac_prev=build_alias ;;+ -build=* | --build=* | --buil=* | --bui=* | --bu=*)+ build_alias=$ac_optarg ;;++ -cache-file | --cache-file | --cache-fil | --cache-fi \+ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)+ ac_prev=cache_file ;;+ -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \+ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)+ cache_file=$ac_optarg ;;++ --config-cache | -C)+ cache_file=config.cache ;;++ -datadir | --datadir | --datadi | --datad)+ ac_prev=datadir ;;+ -datadir=* | --datadir=* | --datadi=* | --datad=*)+ datadir=$ac_optarg ;;++ -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \+ | --dataroo | --dataro | --datar)+ ac_prev=datarootdir ;;+ -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \+ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)+ datarootdir=$ac_optarg ;;++ -disable-* | --disable-*)+ ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`+ # Reject names that are not valid shell variable names.+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&+ as_fn_error $? "invalid feature name: '$ac_useropt'"+ ac_useropt_orig=$ac_useropt+ ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`+ case $ac_user_opts in+ *"+"enable_$ac_useropt"+"*) ;;+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"+ ac_unrecognized_sep=', ';;+ esac+ eval enable_$ac_useropt=no ;;++ -docdir | --docdir | --docdi | --doc | --do)+ ac_prev=docdir ;;+ -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)+ docdir=$ac_optarg ;;++ -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)+ ac_prev=dvidir ;;+ -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)+ dvidir=$ac_optarg ;;++ -enable-* | --enable-*)+ ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`+ # Reject names that are not valid shell variable names.+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&+ as_fn_error $? "invalid feature name: '$ac_useropt'"+ ac_useropt_orig=$ac_useropt+ ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`+ case $ac_user_opts in+ *"+"enable_$ac_useropt"+"*) ;;+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"+ ac_unrecognized_sep=', ';;+ esac+ eval enable_$ac_useropt=\$ac_optarg ;;++ -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \+ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \+ | --exec | --exe | --ex)+ ac_prev=exec_prefix ;;+ -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \+ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \+ | --exec=* | --exe=* | --ex=*)+ exec_prefix=$ac_optarg ;;++ -gas | --gas | --ga | --g)+ # Obsolete; use --with-gas.+ with_gas=yes ;;++ -help | --help | --hel | --he | -h)+ ac_init_help=long ;;+ -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)+ ac_init_help=recursive ;;+ -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)+ ac_init_help=short ;;++ -host | --host | --hos | --ho)+ ac_prev=host_alias ;;+ -host=* | --host=* | --hos=* | --ho=*)+ host_alias=$ac_optarg ;;++ -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)+ ac_prev=htmldir ;;+ -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \+ | --ht=*)+ htmldir=$ac_optarg ;;++ -includedir | --includedir | --includedi | --included | --include \+ | --includ | --inclu | --incl | --inc)+ ac_prev=includedir ;;+ -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \+ | --includ=* | --inclu=* | --incl=* | --inc=*)+ includedir=$ac_optarg ;;++ -infodir | --infodir | --infodi | --infod | --info | --inf)+ ac_prev=infodir ;;+ -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)+ infodir=$ac_optarg ;;++ -libdir | --libdir | --libdi | --libd)+ ac_prev=libdir ;;+ -libdir=* | --libdir=* | --libdi=* | --libd=*)+ libdir=$ac_optarg ;;++ -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \+ | --libexe | --libex | --libe)+ ac_prev=libexecdir ;;+ -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \+ | --libexe=* | --libex=* | --libe=*)+ libexecdir=$ac_optarg ;;++ -localedir | --localedir | --localedi | --localed | --locale)+ ac_prev=localedir ;;+ -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)+ localedir=$ac_optarg ;;++ -localstatedir | --localstatedir | --localstatedi | --localstated \+ | --localstate | --localstat | --localsta | --localst | --locals)+ ac_prev=localstatedir ;;+ -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \+ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)+ localstatedir=$ac_optarg ;;++ -mandir | --mandir | --mandi | --mand | --man | --ma | --m)+ ac_prev=mandir ;;+ -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)+ mandir=$ac_optarg ;;++ -nfp | --nfp | --nf)+ # Obsolete; use --without-fp.+ with_fp=no ;;++ -no-create | --no-create | --no-creat | --no-crea | --no-cre \+ | --no-cr | --no-c | -n)+ no_create=yes ;;++ -no-recursion | --no-recursion | --no-recursio | --no-recursi \+ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)+ no_recursion=yes ;;++ -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \+ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \+ | --oldin | --oldi | --old | --ol | --o)+ ac_prev=oldincludedir ;;+ -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \+ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \+ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)+ oldincludedir=$ac_optarg ;;++ -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)+ ac_prev=prefix ;;+ -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)+ prefix=$ac_optarg ;;++ -program-prefix | --program-prefix | --program-prefi | --program-pref \+ | --program-pre | --program-pr | --program-p)+ ac_prev=program_prefix ;;+ -program-prefix=* | --program-prefix=* | --program-prefi=* \+ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)+ program_prefix=$ac_optarg ;;++ -program-suffix | --program-suffix | --program-suffi | --program-suff \+ | --program-suf | --program-su | --program-s)+ ac_prev=program_suffix ;;+ -program-suffix=* | --program-suffix=* | --program-suffi=* \+ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)+ program_suffix=$ac_optarg ;;++ -program-transform-name | --program-transform-name \+ | --program-transform-nam | --program-transform-na \+ | --program-transform-n | --program-transform- \+ | --program-transform | --program-transfor \+ | --program-transfo | --program-transf \+ | --program-trans | --program-tran \+ | --progr-tra | --program-tr | --program-t)+ ac_prev=program_transform_name ;;+ -program-transform-name=* | --program-transform-name=* \+ | --program-transform-nam=* | --program-transform-na=* \+ | --program-transform-n=* | --program-transform-=* \+ | --program-transform=* | --program-transfor=* \+ | --program-transfo=* | --program-transf=* \+ | --program-trans=* | --program-tran=* \+ | --progr-tra=* | --program-tr=* | --program-t=*)+ program_transform_name=$ac_optarg ;;++ -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)+ ac_prev=pdfdir ;;+ -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)+ pdfdir=$ac_optarg ;;++ -psdir | --psdir | --psdi | --psd | --ps)+ ac_prev=psdir ;;+ -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)+ psdir=$ac_optarg ;;++ -q | -quiet | --quiet | --quie | --qui | --qu | --q \+ | -silent | --silent | --silen | --sile | --sil)+ silent=yes ;;++ -runstatedir | --runstatedir | --runstatedi | --runstated \+ | --runstate | --runstat | --runsta | --runst | --runs \+ | --run | --ru | --r)+ ac_prev=runstatedir ;;+ -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \+ | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \+ | --run=* | --ru=* | --r=*)+ runstatedir=$ac_optarg ;;++ -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)+ ac_prev=sbindir ;;+ -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \+ | --sbi=* | --sb=*)+ sbindir=$ac_optarg ;;++ -sharedstatedir | --sharedstatedir | --sharedstatedi \+ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \+ | --sharedst | --shareds | --shared | --share | --shar \+ | --sha | --sh)+ ac_prev=sharedstatedir ;;+ -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \+ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \+ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \+ | --sha=* | --sh=*)+ sharedstatedir=$ac_optarg ;;++ -site | --site | --sit)+ ac_prev=site ;;+ -site=* | --site=* | --sit=*)+ site=$ac_optarg ;;++ -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)+ ac_prev=srcdir ;;+ -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)+ srcdir=$ac_optarg ;;++ -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \+ | --syscon | --sysco | --sysc | --sys | --sy)+ ac_prev=sysconfdir ;;+ -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \+ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)+ sysconfdir=$ac_optarg ;;++ -target | --target | --targe | --targ | --tar | --ta | --t)+ ac_prev=target_alias ;;+ -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)+ target_alias=$ac_optarg ;;++ -v | -verbose | --verbose | --verbos | --verbo | --verb)+ verbose=yes ;;++ -version | --version | --versio | --versi | --vers | -V)+ ac_init_version=: ;;++ -with-* | --with-*)+ ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`+ # Reject names that are not valid shell variable names.+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&+ as_fn_error $? "invalid package name: '$ac_useropt'"+ ac_useropt_orig=$ac_useropt+ ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`+ case $ac_user_opts in+ *"+"with_$ac_useropt"+"*) ;;+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"+ ac_unrecognized_sep=', ';;+ esac+ eval with_$ac_useropt=\$ac_optarg ;;++ -without-* | --without-*)+ ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`+ # Reject names that are not valid shell variable names.+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&+ as_fn_error $? "invalid package name: '$ac_useropt'"+ ac_useropt_orig=$ac_useropt+ ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`+ case $ac_user_opts in+ *"+"with_$ac_useropt"+"*) ;;+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"+ ac_unrecognized_sep=', ';;+ esac+ eval with_$ac_useropt=no ;;++ --x)+ # Obsolete; use --with-x.+ with_x=yes ;;++ -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \+ | --x-incl | --x-inc | --x-in | --x-i)+ ac_prev=x_includes ;;+ -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \+ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)+ x_includes=$ac_optarg ;;++ -x-libraries | --x-libraries | --x-librarie | --x-librari \+ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)+ ac_prev=x_libraries ;;+ -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \+ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)+ x_libraries=$ac_optarg ;;++ -*) as_fn_error $? "unrecognized option: '$ac_option'+Try '$0 --help' for more information"+ ;;++ *=*)+ ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`+ # Reject names that are not valid shell variable names.+ case $ac_envvar in #(+ '' | [0-9]* | *[!_$as_cr_alnum]* )+ as_fn_error $? "invalid variable name: '$ac_envvar'" ;;+ esac+ eval $ac_envvar=\$ac_optarg+ export $ac_envvar ;;++ *)+ # FIXME: should be removed in autoconf 3.0.+ printf '%s\n' "$as_me: WARNING: you should use --build, --host, --target" >&2+ expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&+ printf '%s\n' "$as_me: WARNING: invalid host type: $ac_option" >&2+ : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"+ ;;++ esac+done++if test -n "$ac_prev"; then+ ac_option=--`printf '%s\n' $ac_prev | sed 's/_/-/g'`+ as_fn_error $? "missing argument to $ac_option"+fi++if test -n "$ac_unrecognized_opts"; then+ case $enable_option_checking in+ no) ;;+ fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;+ *) printf '%s\n' "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;+ esac+fi++# Check all directory arguments for consistency.+for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \+ datadir sysconfdir sharedstatedir localstatedir includedir \+ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \+ libdir localedir mandir runstatedir+do+ eval ac_val=\$$ac_var+ # Remove trailing slashes.+ case $ac_val in+ */ )+ ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`+ eval $ac_var=\$ac_val;;+ esac+ # Be sure to have absolute directory names.+ case $ac_val in+ [\\/$]* | ?:[\\/]* ) continue;;+ NONE | '' ) case $ac_var in *prefix ) continue;; esac;;+ esac+ as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"+done++# There might be people who depend on the old broken behavior: '$host'+# used to hold the argument of --host etc.+# FIXME: To remove some day.+build=$build_alias+host=$host_alias+target=$target_alias++# FIXME: To remove some day.+if test "x$host_alias" != x; then+ if test "x$build_alias" = x; then+ cross_compiling=maybe+ elif test "x$build_alias" != "x$host_alias"; then+ cross_compiling=yes+ fi+fi++ac_tool_prefix=+test -n "$host_alias" && ac_tool_prefix=$host_alias-++test "$silent" = yes && exec 6>/dev/null+++ac_pwd=`pwd` && test -n "$ac_pwd" &&+ac_ls_di=`ls -di .` &&+ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||+ as_fn_error $? "working directory cannot be determined"+test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||+ as_fn_error $? "pwd does not report name of working directory"+++# Find the source files, if location was not specified.+if test -z "$srcdir"; then+ ac_srcdir_defaulted=yes+ # Try the directory containing this script, then the parent directory.+ ac_confdir=`$as_dirname -- "$as_myself" ||+$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \+ X"$as_myself" : 'X\(//\)[^/]' \| \+ X"$as_myself" : 'X\(//\)$' \| \+ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||+printf '%s\n' X"$as_myself" |+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{+ s//\1/+ q+ }+ /^X\(\/\/\)[^/].*/{+ s//\1/+ q+ }+ /^X\(\/\/\)$/{+ s//\1/+ q+ }+ /^X\(\/\).*/{+ s//\1/+ q+ }+ s/.*/./; q'`+ srcdir=$ac_confdir+ if test ! -r "$srcdir/$ac_unique_file"; then+ srcdir=..+ fi+else+ ac_srcdir_defaulted=no+fi+if test ! -r "$srcdir/$ac_unique_file"; then+ test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."+ as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"+fi+ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"+ac_abs_confdir=`(+ cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"+ pwd)`+# When building in place, set srcdir=.+if test "$ac_abs_confdir" = "$ac_pwd"; then+ srcdir=.+fi+# Remove unnecessary trailing slashes from srcdir.+# Double slashes in file names in object file debugging info+# mess up M-x gdb in Emacs.+case $srcdir in+*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;+esac+for ac_var in $ac_precious_vars; do+ eval ac_env_${ac_var}_set=\${${ac_var}+set}+ eval ac_env_${ac_var}_value=\$${ac_var}+ eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}+ eval ac_cv_env_${ac_var}_value=\$${ac_var}+done++#+# Report the --help message.+#+if test "$ac_init_help" = "long"; then+ # Omit some internal or obsolete options to make the list less imposing.+ # This message is too long to be a string in the A/UX 3.1 sh.+ cat <<_ACEOF+'configure' configures Haskell libarchive-clib package 3.7.2 to adapt to many kinds of systems.++Usage: $0 [OPTION]... [VAR=VALUE]...++To assign environment variables (e.g., CC, CFLAGS...), specify them as+VAR=VALUE. See below for descriptions of some of the useful variables.++Defaults for the options are specified in brackets.++Configuration:+ -h, --help display this help and exit+ --help=short display options specific to this package+ --help=recursive display the short help of all the included packages+ -V, --version display version information and exit+ -q, --quiet, --silent do not print 'checking ...' messages+ --cache-file=FILE cache test results in FILE [disabled]+ -C, --config-cache alias for '--cache-file=config.cache'+ -n, --no-create do not create output files+ --srcdir=DIR find the sources in DIR [configure dir or '..']++Installation directories:+ --prefix=PREFIX install architecture-independent files in PREFIX+ [$ac_default_prefix]+ --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX+ [PREFIX]++By default, 'make install' will install all the files in+'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify+an installation prefix other than '$ac_default_prefix' using '--prefix',+for instance '--prefix=\$HOME'.++For better control, use the options below.++Fine tuning of the installation directories:+ --bindir=DIR user executables [EPREFIX/bin]+ --sbindir=DIR system admin executables [EPREFIX/sbin]+ --libexecdir=DIR program executables [EPREFIX/libexec]+ --sysconfdir=DIR read-only single-machine data [PREFIX/etc]+ --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]+ --localstatedir=DIR modifiable single-machine data [PREFIX/var]+ --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]+ --libdir=DIR object code libraries [EPREFIX/lib]+ --includedir=DIR C header files [PREFIX/include]+ --oldincludedir=DIR C header files for non-gcc [/usr/include]+ --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]+ --datadir=DIR read-only architecture-independent data [DATAROOTDIR]+ --infodir=DIR info documentation [DATAROOTDIR/info]+ --localedir=DIR locale-dependent data [DATAROOTDIR/locale]+ --mandir=DIR man documentation [DATAROOTDIR/man]+ --docdir=DIR documentation root [DATAROOTDIR/doc/libarchive-clib]+ --htmldir=DIR html documentation [DOCDIR]+ --dvidir=DIR dvi documentation [DOCDIR]+ --pdfdir=DIR pdf documentation [DOCDIR]+ --psdir=DIR ps documentation [DOCDIR]+_ACEOF++ cat <<\_ACEOF++System types:+ --build=BUILD configure for building on BUILD [guessed]+ --host=HOST cross-compile to build programs to run on HOST [BUILD]+_ACEOF+fi++if test -n "$ac_init_help"; then+ case $ac_init_help in+ short | recursive ) echo "Configuration of Haskell libarchive-clib package 3.7.2:";;+ esac+ cat <<\_ACEOF++Optional Features:+ --disable-option-checking ignore unrecognized --enable/--with options+ --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)+ --enable-FEATURE[=ARG] include FEATURE [ARG=yes]+ --enable-shared[=PKGS] build shared libraries [default=yes]+ --enable-static[=PKGS] build static libraries [default=yes]+ --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use+ both]+ --enable-fast-install[=PKGS]+ optimize for fast installation [default=yes]+ --enable-aix-soname=aix|svr4|both+ shared library versioning (aka "SONAME") variant to+ provide on AIX, [default=aix].+ --disable-libtool-lock avoid locking (might break parallel builds)+ --disable-rpath do not hardcode runtime library paths+ --disable-xattr Disable Extended Attributes support (default: check)+ --disable-acl Disable ACL support (default: check)+ --disable-largefile omit support for large files+ --enable-year2038 support timestamps after 2038++Optional Packages:+ --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]+ --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)+ --with-gnu-ld assume the C compiler uses GNU ld [default=no]+ --with-sysroot[=DIR] Search for dependent libraries within DIR (or the+ compiler's sysroot if not specified).+ --without-zlib Don't build support for gzip through zlib+ --without-bz2lib Don't build support for bzip2 through bz2lib+ --without-iconv Don't try to link against iconv+ --with-gnu-ld assume the C compiler uses GNU ld default=no+ --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib+ --without-libiconv-prefix don't search for libiconv in includedir and libdir+ --without-lz4 Don't build support for lz4 through liblz4+ --without-zstd Don't build support for zstd through libzstd+ --without-lzma Don't build support for xz through lzma++Some influential environment variables:+ CC C compiler command+ CFLAGS C compiler flags+ LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a+ nonstandard directory <lib dir>+ LIBS libraries to pass to the linker, e.g. -l<library>+ CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if+ you have headers in a nonstandard directory <include dir>+ CPP C preprocessor+ LT_SYS_LIBRARY_PATH+ User-defined run-time library search path.+ PKG_CONFIG path to pkg-config utility+ PKG_CONFIG_PATH+ directories to add to pkg-config's search path+ PKG_CONFIG_LIBDIR+ path overriding pkg-config's built-in search path+ ICONV_PC_CFLAGS+ C compiler flags for ICONV_PC, overriding pkg-config+ ICONV_PC_LIBS+ linker flags for ICONV_PC, overriding pkg-config+ LZMA_PC_CFLAGS+ C compiler flags for LZMA_PC, overriding pkg-config+ LZMA_PC_LIBS+ linker flags for LZMA_PC, overriding pkg-config++Use these variables to override the choices made by 'configure' or to help+it to find libraries and programs with nonstandard names/locations.++Report bugs to <vamchale@gmail.com>.+_ACEOF+ac_status=$?+fi++if test "$ac_init_help" = "recursive"; then+ # If there are subdirs, report their specific --help.+ for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue+ test -d "$ac_dir" ||+ { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||+ continue+ ac_builddir=.++case "$ac_dir" in+.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;+*)+ ac_dir_suffix=/`printf '%s\n' "$ac_dir" | sed 's|^\.[\\/]||'`+ # A ".." for each directory in $ac_dir_suffix.+ ac_top_builddir_sub=`printf '%s\n' "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`+ case $ac_top_builddir_sub in+ "") ac_top_builddir_sub=. ac_top_build_prefix= ;;+ *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;+ esac ;;+esac+ac_abs_top_builddir=$ac_pwd+ac_abs_builddir=$ac_pwd$ac_dir_suffix+# for backward compatibility:+ac_top_builddir=$ac_top_build_prefix++case $srcdir in+ .) # We are building in place.+ ac_srcdir=.+ ac_top_srcdir=$ac_top_builddir_sub+ ac_abs_top_srcdir=$ac_pwd ;;+ [\\/]* | ?:[\\/]* ) # Absolute name.+ ac_srcdir=$srcdir$ac_dir_suffix;+ ac_top_srcdir=$srcdir+ ac_abs_top_srcdir=$srcdir ;;+ *) # Relative name.+ ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix+ ac_top_srcdir=$ac_top_build_prefix$srcdir+ ac_abs_top_srcdir=$ac_pwd/$srcdir ;;+esac+ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix++ cd "$ac_dir" || { ac_status=$?; continue; }+ # Check for configure.gnu first; this name is used for a wrapper for+ # Metaconfig's "Configure" on case-insensitive file systems.+ if test -f "$ac_srcdir/configure.gnu"; then+ echo &&+ $SHELL "$ac_srcdir/configure.gnu" --help=recursive+ elif test -f "$ac_srcdir/configure"; then+ echo &&+ $SHELL "$ac_srcdir/configure" --help=recursive+ else+ printf '%s\n' "$as_me: WARNING: no configuration information is in $ac_dir" >&2+ fi || ac_status=$?+ cd "$ac_pwd" || { ac_status=$?; break; }+ done+fi++test -n "$ac_init_help" && exit $ac_status+if $ac_init_version; then+ cat <<\_ACEOF+Haskell libarchive-clib package configure 3.7.2+generated by GNU Autoconf 2.73++Copyright (C) 2026 Free Software Foundation, Inc.+This configure script is free software; the Free Software Foundation+gives unlimited permission to copy, distribute and modify it.+_ACEOF+ exit+fi++## ------------------------ ##+## Autoconf initialization. ##+## ------------------------ ##++# ac_fn_c_try_compile LINENO+# --------------------------+# Try to compile conftest.$ac_ext, and return whether this succeeded.+ac_fn_c_try_compile ()+{+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack+ rm -f conftest.$ac_objext conftest.beam+ if { { ac_try="$ac_compile"+case "(($ac_try" in+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;+ *) ac_try_echo=$ac_try;;+esac+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""+printf '%s\n' "$ac_try_echo"; } >&5+ (eval "$ac_compile") 2>conftest.err+ ac_status=$?+ if test -s conftest.err; then+ grep -v '^ *+' conftest.err >conftest.er1+ cat conftest.er1 >&5+ mv -f conftest.er1 conftest.err+ fi+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5+ test $ac_status = 0; } && {+ test -z "$ac_c_werror_flag" ||+ test ! -s conftest.err+ } && test -s conftest.$ac_objext+then :+ ac_retval=0+else case e in #(+ e) printf '%s\n' "$as_me: failed program was:" >&5+sed 's/^/| /' conftest.$ac_ext >&5++ ac_retval=1 ;;+esac+fi+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno+ as_fn_set_status $ac_retval++} # ac_fn_c_try_compile++# ac_fn_c_try_cpp LINENO+# ----------------------+# Try to preprocess conftest.$ac_ext, and return whether this succeeded.+ac_fn_c_try_cpp ()+{+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack+ if { { ac_try="$ac_cpp conftest.$ac_ext"+case "(($ac_try" in+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;+ *) ac_try_echo=$ac_try;;+esac+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""+printf '%s\n' "$ac_try_echo"; } >&5+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err+ ac_status=$?+ if test -s conftest.err; then+ grep -v '^ *+' conftest.err >conftest.er1+ cat conftest.er1 >&5+ mv -f conftest.er1 conftest.err+ fi+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5+ test $ac_status = 0; } > conftest.i && {+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||+ test ! -s conftest.err+ }+then :+ ac_retval=0+else case e in #(+ e) printf '%s\n' "$as_me: failed program was:" >&5+sed 's/^/| /' conftest.$ac_ext >&5++ ac_retval=1 ;;+esac+fi+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno+ as_fn_set_status $ac_retval++} # ac_fn_c_try_cpp++# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES+# -------------------------------------------------------+# Tests whether HEADER exists and can be compiled using the include files in+# INCLUDES, setting the cache variable VAR accordingly.+ac_fn_c_check_header_compile ()+{+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $2" >&5+printf %s "checking for $2... " >&6; }+if eval test \${$3+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */+$4+#include <$2>+_ACEOF+if ac_fn_c_try_compile "$LINENO"+then :+ eval "$3=yes"+else case e in #(+ e) eval "$3=no" ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;+esac+fi+eval ac_res=\$$3+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5+printf '%s\n' "$ac_res" >&6; }+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno++} # ac_fn_c_check_header_compile++# ac_fn_c_try_link LINENO+# -----------------------+# Try to link conftest.$ac_ext, and return whether this succeeded.+ac_fn_c_try_link ()+{+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack+ rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext+ if { { ac_try="$ac_link"+case "(($ac_try" in+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;+ *) ac_try_echo=$ac_try;;+esac+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""+printf '%s\n' "$ac_try_echo"; } >&5+ (eval "$ac_link") 2>conftest.err+ ac_status=$?+ if test -s conftest.err; then+ grep -v '^ *+' conftest.err >conftest.er1+ cat conftest.er1 >&5+ mv -f conftest.er1 conftest.err+ fi+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5+ test $ac_status = 0; } && {+ test -z "$ac_c_werror_flag" ||+ test ! -s conftest.err+ } && test -s conftest$ac_exeext && {+ test "$cross_compiling" = yes ||+ test -x conftest$ac_exeext+ }+then :+ ac_retval=0+else case e in #(+ e) printf '%s\n' "$as_me: failed program was:" >&5+sed 's/^/| /' conftest.$ac_ext >&5++ ac_retval=1 ;;+esac+fi+ # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information+ # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would+ # interfere with the next link command; also delete a directory that is+ # left behind by Apple's compiler. We do this before executing the actions.+ rm -rf conftest.dSYM conftest_ipa8_conftest.oo+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno+ as_fn_set_status $ac_retval++} # ac_fn_c_try_link++# ac_fn_c_check_func LINENO FUNC VAR+# ----------------------------------+# Tests whether FUNC exists, setting the cache variable VAR accordingly+ac_fn_c_check_func ()+{+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $2" >&5+printf %s "checking for $2... " >&6; }+if eval test \${$3+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */+/* Define $2 to an innocuous variant, in case <limits.h> declares $2.+ For example, HP-UX 11i <limits.h> declares gettimeofday. */+#define $2 innocuous_$2++/* System header to define __stub macros and hopefully few prototypes,+ which can conflict with char $2 (void); below. */++#include <limits.h>+#undef $2++/* Override any GCC internal prototype to avoid an error.+ Use char because int might match the return type of a GCC+ builtin and then its argument prototype would still apply. */+#ifdef __cplusplus+extern "C"+#endif+char $2 (void);+/* The GNU C library defines this for functions which it implements+ to always fail with ENOSYS. Some functions are actually named+ something starting with __ and the normal name is an alias. */+#if defined __stub_$2 || defined __stub___$2+choke me+#endif++int+main (void)+{+return $2 ();+ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_link "$LINENO"+then :+ eval "$3=yes"+else case e in #(+ e) eval "$3=no" ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam \+ conftest$ac_exeext conftest.$ac_ext ;;+esac+fi+eval ac_res=\$$3+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5+printf '%s\n' "$ac_res" >&6; }+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno++} # ac_fn_c_check_func++# ac_fn_c_check_type LINENO TYPE VAR INCLUDES+# -------------------------------------------+# Tests whether TYPE exists after having included INCLUDES, setting cache+# variable VAR accordingly.+ac_fn_c_check_type ()+{+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $2" >&5+printf %s "checking for $2... " >&6; }+if eval test \${$3+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) eval "$3=no"+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */+$4+int+main (void)+{+if (sizeof ($2))+ return 0;+ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_compile "$LINENO"+then :+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */+$4+int+main (void)+{+if (sizeof (($2)))+ return 0;+ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_compile "$LINENO"+then :++else case e in #(+ e) eval "$3=yes" ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;+esac+fi+eval ac_res=\$$3+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5+printf '%s\n' "$ac_res" >&6; }+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno++} # ac_fn_c_check_type++# ac_fn_c_try_run LINENO+# ----------------------+# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that+# executables *can* be run.+ac_fn_c_try_run ()+{+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack+ if { { ac_try="$ac_link"+case "(($ac_try" in+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;+ *) ac_try_echo=$ac_try;;+esac+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""+printf '%s\n' "$ac_try_echo"; } >&5+ (eval "$ac_link") 2>&5+ ac_status=$?+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5+ test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'+ { { case "(($ac_try" in+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;+ *) ac_try_echo=$ac_try;;+esac+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""+printf '%s\n' "$ac_try_echo"; } >&5+ (eval "$ac_try") 2>&5+ ac_status=$?+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5+ test $ac_status = 0; }; }+then :+ ac_retval=0+else case e in #(+ e) printf '%s\n' "$as_me: program exited with status $ac_status" >&5+ printf '%s\n' "$as_me: failed program was:" >&5+sed 's/^/| /' conftest.$ac_ext >&5++ ac_retval=$ac_status ;;+esac+fi+ rm -rf conftest.dSYM conftest_ipa8_conftest.oo+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno+ as_fn_set_status $ac_retval++} # ac_fn_c_try_run++# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES+# ----------------------------------------------------+# Tries to find if the field MEMBER exists in type AGGR, after including+# INCLUDES, setting cache variable VAR accordingly.+ac_fn_c_check_member ()+{+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5+printf %s "checking for $2.$3... " >&6; }+if eval test \${$4+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */+$5+int+main (void)+{+static $2 ac_aggr;+if (ac_aggr.$3)+return 0;+ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_compile "$LINENO"+then :+ eval "$4=yes"+else case e in #(+ e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */+$5+int+main (void)+{+static $2 ac_aggr;+if (sizeof ac_aggr.$3)+return 0;+ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_compile "$LINENO"+then :+ eval "$4=yes"+else case e in #(+ e) eval "$4=no" ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;+esac+fi+eval ac_res=\$$4+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5+printf '%s\n' "$ac_res" >&6; }+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno++} # ac_fn_c_check_member++# ac_fn_c_find_intX_t LINENO BITS VAR+# -----------------------------------+# Finds a signed integer type with width BITS, setting cache variable VAR+# accordingly.+ac_fn_c_find_intX_t ()+{+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5+printf %s "checking for int$2_t... " >&6; }+if eval test \${$3+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) eval "$3=no"+ # Order is important - never check a type that is potentially smaller+ # than half of the expected target width.+ for ac_type in int$2_t 'int' 'long int' \+ 'long long int' 'short int' 'signed char'; do+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */+$ac_includes_default+ enum { N = $2 / 2 - 1 };+int+main (void)+{+static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];+test_array [0] = 0;+return test_array [0];++ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_compile "$LINENO"+then :+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */+$ac_includes_default+ enum { N = $2 / 2 - 1 };+int+main (void)+{+static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)+ < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];+test_array [0] = 0;+return test_array [0];++ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_compile "$LINENO"+then :++else case e in #(+ e) case $ac_type in #(+ int$2_t) :+ eval "$3=yes" ;; #(+ *) :+ eval "$3=\$ac_type" ;;+esac ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext+ if eval test \"x\$"$3"\" = x"no"+then :++else case e in #(+ e) break ;;+esac+fi+ done ;;+esac+fi+eval ac_res=\$$3+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5+printf '%s\n' "$ac_res" >&6; }+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno++} # ac_fn_c_find_intX_t++# ac_fn_c_find_uintX_t LINENO BITS VAR+# ------------------------------------+# Finds an unsigned integer type with width BITS, setting cache variable VAR+# accordingly.+ac_fn_c_find_uintX_t ()+{+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5+printf %s "checking for uint$2_t... " >&6; }+if eval test \${$3+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) eval "$3=no"+ # Order is important - never check a type that is potentially smaller+ # than half of the expected target width.+ for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \+ 'unsigned long long int' 'unsigned short int' 'unsigned char'; do+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */+$ac_includes_default+int+main (void)+{+static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];+test_array [0] = 0;+return test_array [0];++ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_compile "$LINENO"+then :+ case $ac_type in #(+ uint$2_t) :+ eval "$3=yes" ;; #(+ *) :+ eval "$3=\$ac_type" ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext+ if eval test \"x\$"$3"\" = x"no"+then :++else case e in #(+ e) break ;;+esac+fi+ done ;;+esac+fi+eval ac_res=\$$3+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5+printf '%s\n' "$ac_res" >&6; }+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno++} # ac_fn_c_find_uintX_t++# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR+# ------------------------------------------------------------------+# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR+# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.+ac_fn_check_decl ()+{+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack+ as_decl_name=`echo $2|sed 's/ *(.*//'`+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5+printf %s "checking whether $as_decl_name is declared... " >&6; }+if eval test \${$3+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`+ eval ac_save_FLAGS=\$$6+ as_fn_append $6 " $5"+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */+$4+int+main (void)+{+#ifndef $as_decl_name+#ifdef __cplusplus+ (void) $as_decl_use;+#else+ (void) $as_decl_name;+#endif+#endif++ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_compile "$LINENO"+then :+ eval "$3=yes"+else case e in #(+ e) eval "$3=no" ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext+ eval $6=\$ac_save_FLAGS+ ;;+esac+fi+eval ac_res=\$$3+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5+printf '%s\n' "$ac_res" >&6; }+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno++} # ac_fn_check_decl++# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES+# --------------------------------------------+# Tries to find the compile-time value of EXPR in a program that includes+# INCLUDES, setting VAR accordingly. Returns whether the value could be+# computed+ac_fn_c_compute_int ()+{+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack+ if test "$cross_compiling" = yes; then+ # Depending upon the size, compute the lo and hi bounds.+cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */+$4+int+main (void)+{+static int test_array [1 - 2 * !(($2) >= 0)];+test_array [0] = 0;+return test_array [0];++ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_compile "$LINENO"+then :+ ac_lo=0 ac_mid=0+ while :; do+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */+$4+int+main (void)+{+static int test_array [1 - 2 * !(($2) <= $ac_mid)];+test_array [0] = 0;+return test_array [0];++ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_compile "$LINENO"+then :+ ac_hi=$ac_mid; break+else case e in #(+ e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val+ if test $ac_lo -le $ac_mid; then+ ac_lo= ac_hi=+ break+ fi+ as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext+ done+else case e in #(+ e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */+$4+int+main (void)+{+static int test_array [1 - 2 * !(($2) < 0)];+test_array [0] = 0;+return test_array [0];++ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_compile "$LINENO"+then :+ ac_hi=-1 ac_mid=-1+ while :; do+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */+$4+int+main (void)+{+static int test_array [1 - 2 * !(($2) >= $ac_mid)];+test_array [0] = 0;+return test_array [0];++ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_compile "$LINENO"+then :+ ac_lo=$ac_mid; break+else case e in #(+ e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val+ if test $ac_mid -le $ac_hi; then+ ac_lo= ac_hi=+ break+ fi+ as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext+ done+else case e in #(+ e) ac_lo= ac_hi= ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext+# Binary search between lo and hi bounds.+while test "x$ac_lo" != "x$ac_hi"; do+ as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */+$4+int+main (void)+{+static int test_array [1 - 2 * !(($2) <= $ac_mid)];+test_array [0] = 0;+return test_array [0];++ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_compile "$LINENO"+then :+ ac_hi=$ac_mid+else case e in #(+ e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext+done+case $ac_lo in #((+?*) eval "$3=\$ac_lo"; ac_retval=0 ;;+'') ac_retval=1 ;;+esac+ else+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */+$4+static long int longval (void) { return $2; }+static unsigned long int ulongval (void) { return $2; }+#include <stdio.h>+#include <stdlib.h>+int+main (void)+{++ FILE *f = fopen ("conftest.val", "w");+ if (! f)+ return 1;+ if (($2) < 0)+ {+ long int i = longval ();+ if (i != ($2))+ return 1;+ fprintf (f, "%ld", i);+ }+ else+ {+ unsigned long int i = ulongval ();+ if (i != ($2))+ return 1;+ fprintf (f, "%lu", i);+ }+ /* Do not output a trailing newline, as this causes \r\n confusion+ on some platforms. */+ return ferror (f) || fclose (f) != 0;++ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_run "$LINENO"+then :+ echo >>conftest.val; read $3 <conftest.val; ac_retval=0+else case e in #(+ e) ac_retval=1 ;;+esac+fi+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \+ conftest.$ac_objext conftest.beam conftest.$ac_ext+rm -f conftest.val++ fi+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno+ as_fn_set_status $ac_retval++} # ac_fn_c_compute_int+ac_configure_args_raw=+for ac_arg+do+ case $ac_arg in+ *\'*)+ ac_arg=`printf '%s\n' "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;+ esac+ as_fn_append ac_configure_args_raw " '$ac_arg'"+done++case $ac_configure_args_raw in+ *$as_nl*)+ ac_safe_unquote= ;;+ *)+ ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.+ ac_unsafe_a="$ac_unsafe_z#~"+ ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"+ ac_configure_args_raw=` printf '%s\n' "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;+esac++cat >config.log <<_ACEOF+This file contains any messages produced by compilers while+running configure, to aid debugging if configure makes a mistake.++It was created by Haskell libarchive-clib package $as_me 3.7.2, which was+generated by GNU Autoconf 2.73. Invocation command line was++ $ $0$ac_configure_args_raw++_ACEOF+exec 5>>config.log+{+cat <<_ASUNAME+## --------- ##+## Platform. ##+## --------- ##++hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`+uname -m = `(uname -m) 2>/dev/null || echo unknown`+uname -r = `(uname -r) 2>/dev/null || echo unknown`+uname -s = `(uname -s) 2>/dev/null || echo unknown`+uname -v = `(uname -v) 2>/dev/null || echo unknown`++/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`+/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`++/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`+/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`+/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`+/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`+/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`+/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`+/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`++_ASUNAME++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ printf '%s\n' "PATH: $as_dir"+ done+IFS=$as_save_IFS++} >&5++cat >&5 <<_ACEOF+++## ----------- ##+## Core tests. ##+## ----------- ##++_ACEOF+++# Keep a trace of the command line.+# Strip out --no-create and --no-recursion so they do not pile up.+# Strip out --silent because we don't want to record it for future runs.+# Also quote any args containing shell meta-characters.+# Make two passes to allow for proper duplicate-argument suppression.+ac_configure_args=+ac_configure_args0=+ac_configure_args1=+ac_must_keep_next=false+for ac_pass in 1 2+do+ for ac_arg+ do+ case $ac_arg in+ -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \+ | -silent | --silent | --silen | --sile | --sil)+ continue ;;+ *\'*)+ ac_arg=`printf '%s\n' "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;+ esac+ case $ac_pass in+ 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;+ 2)+ as_fn_append ac_configure_args1 " '$ac_arg'"+ if test $ac_must_keep_next = true; then+ ac_must_keep_next=false # Got value, back to normal.+ else+ case $ac_arg in+ *=* | --config-cache | -C | -disable-* | --disable-* \+ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \+ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \+ | -with-* | --with-* | -without-* | --without-* | --x)+ case "$ac_configure_args0 " in+ "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;+ esac+ ;;+ -* ) ac_must_keep_next=true ;;+ esac+ fi+ as_fn_append ac_configure_args " '$ac_arg'"+ ;;+ esac+ done+done+{ ac_configure_args0=; unset ac_configure_args0;}+{ ac_configure_args1=; unset ac_configure_args1;}++# Dump the cache to stdout. It can be in a pipe (this is a requirement).+ac_cache_dump ()+{+ # The following way of writing the cache mishandles newlines in values,+# but we know of no workaround that is simple, portable, and efficient.+# So, we kill variables containing newlines.+# Ultrix sh set writes to stderr and can't be redirected directly,+# and sets the high bit in the cache file unless we assign to the vars.+(+ for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do+ eval ac_val=\$$ac_var+ case $ac_val in #(+ *${as_nl}*)+ case $ac_var in #(+ *_cv_*) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5+printf '%s\n' "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;+ esac+ case $ac_var in #(+ _ | IFS | as_nl) ;; #(+ BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(+ *) { eval $ac_var=; unset $ac_var;} ;;+ esac ;;+ esac+ done++ (set) 2>&1 |+ case $as_nl`(ac_space=' '; set) 2>&1` in #(+ *${as_nl}ac_space=\ *)+ # 'set' does not quote correctly, so add quotes: double-quote+ # substitution turns \\\\ into \\, and sed turns \\ into \.+ sed -n \+ "s/'/'\\\\''/g;+ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"+ ;; #(+ *)+ # 'set' quotes correctly as required by POSIX, so do not add quotes.+ sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"+ ;;+ esac |+ sort+)+}++# Print debugging info to stdout.+ac_dump_debugging_info ()+{+ echo++ printf '%s\n' "## ---------------- ##+## Cache variables. ##+## ---------------- ##"+ echo+ ac_cache_dump+ echo++ printf '%s\n' "## ----------------- ##+## Output variables. ##+## ----------------- ##"+ echo+ for ac_var in $ac_subst_vars+ do+ eval ac_val=\$$ac_var+ case $ac_val in+ *\'*) ac_val=`printf '%s\n' "$ac_val" | sed "s/'/'\\\\\\\\''/g"`;;+ esac+ printf '%s\n' "$ac_var='$ac_val'"+ done | sort+ echo++ if test -n "$ac_subst_files"; then+ printf '%s\n' "## ------------------- ##+## File substitutions. ##+## ------------------- ##"+ echo+ for ac_var in $ac_subst_files+ do+ eval ac_val=\$$ac_var+ case $ac_val in+ *\'*) ac_val=`printf '%s\n' "$ac_val" | sed "s/'/'\\\\\\\\''/g"`;;+ esac+ printf '%s\n' "$ac_var='$ac_val'"+ done | sort+ echo+ fi++ if test -s confdefs.h; then+ printf '%s\n' "## ----------- ##+## confdefs.h. ##+## ----------- ##"+ echo+ cat confdefs.h+ echo+ fi+ test "$ac_signal" != 0 &&+ printf '%s\n' "$as_me: caught signal $ac_signal"+ printf '%s\n' "$as_me: exit $exit_status"+}++# When interrupted or exit'd, cleanup temporary files, and complete+# config.log.+ac_exit_trap ()+{+ exit_status=+ # Sanitize IFS.+ IFS=" "" $as_nl"+ # Save into config.log some information that might help in debugging.+ ac_dump_debugging_info >&5+ eval "rm -f $ac_clean_CONFIG_STATUS core *.core core.conftest.*" &&+ rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&+ exit $exit_status+}++trap 'ac_exit_trap $?' 0+for ac_signal in 1 2 13 15; do+ trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal+done+ac_signal=0++# confdefs.h avoids OS command line length limits that DEFS can exceed.+rm -f -r conftest* confdefs.h++printf '%s\n' "/* confdefs.h */" > confdefs.h++# Predefined preprocessor variables.++printf '%s\n' "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h++printf '%s\n' "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h++printf '%s\n' "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h++printf '%s\n' "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h++printf '%s\n' "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h++printf '%s\n' "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h+++# Let the site file select an alternate cache file if it wants to.+# Prefer an explicitly selected file to automatically selected ones.+if test -n "$CONFIG_SITE"; then+ ac_site_files="$CONFIG_SITE"+elif test "x$prefix" != xNONE; then+ ac_site_files="$prefix/share/config.site $prefix/etc/config.site"+else+ ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"+fi++for ac_site_file in $ac_site_files+do+ case $ac_site_file in #(+ */*) :+ ;; #(+ *) :+ ac_site_file=./$ac_site_file ;;+esac+ if test -f "$ac_site_file" && test -r "$ac_site_file"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5+printf '%s\n' "$as_me: loading site script $ac_site_file" >&6;}+ sed 's/^/| /' "$ac_site_file" >&5+ . "$ac_site_file" \+ || { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5+printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}+as_fn_error $? "failed to load site script $ac_site_file+See 'config.log' for more details" "$LINENO" 5; }+ fi+done++if test -r "$cache_file"; then+ # Some versions of bash will fail to source /dev/null (special files+ # actually), so we avoid doing that. DJGPP emulates it as a regular file.+ if test /dev/null != "$cache_file" && test -f "$cache_file"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5+printf '%s\n' "$as_me: loading cache $cache_file" >&6;}+ case $cache_file in+ [\\/]* | ?:[\\/]* ) . "$cache_file";;+ *) . "./$cache_file";;+ esac+ fi+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5+printf '%s\n' "$as_me: creating cache $cache_file" >&6;}+ >$cache_file+fi++# Test code for whether the C compiler supports C23 (global declarations)+ac_c_conftest_c23_globals='+/* Does the compiler advertise conformance to C17 or earlier?+ Although GCC 14 does not do that, even with -std=gnu23,+ it is close enough, and defines __STDC_VERSION == 202000L. */+#if !defined __STDC_VERSION__ || __STDC_VERSION__ <= 201710L+# error "Compiler advertises conformance to C17 or earlier"+#endif++// Check alignas.+char alignas (double) c23_aligned_as_double;+char alignas (0) c23_no_special_alignment;+extern char c23_aligned_as_int;+char alignas (0) alignas (int) c23_aligned_as_int;++// Check alignof.+enum+{+ c23_int_alignment = alignof (int),+ c23_int_array_alignment = alignof (int[100]),+ c23_char_alignment = alignof (char)+};+static_assert (0 < -alignof (int), "alignof is signed");++int function_with_unnamed_parameter (int) { return 0; }++void c23_noreturn ();++/* Test parsing of string and char UTF-8 literals (including hex escapes).+ The parens pacify GCC 15. */+bool use_u8 = (!sizeof u8"\xFF") == (!u8'\''x'\'');++bool check_that_bool_works = true | false | !nullptr;+#if !true+# error "true does not work in #if"+#endif+#if false+#elifdef __STDC_VERSION__+#else+# error "#elifdef does not work"+#endif++#ifndef __has_c_attribute+# error "__has_c_attribute not defined"+#endif++#ifndef __has_include+# error "__has_include not defined"+#endif++#define LPAREN() (+#define FORTY_TWO(x) 42+#define VA_OPT_TEST(r, x, ...) __VA_OPT__ (FORTY_TWO r x))+static_assert (VA_OPT_TEST (LPAREN (), 0, <:-) == 42);++static_assert (0b101010 == 42);+static_assert (0B101010 == 42);+static_assert (0xDEAD'\''BEEF == 3'\''735'\''928'\''559);+static_assert (0.500'\''000'\''000 == 0.5);++enum unsignedish : unsigned int { uione = 1 };+static_assert (0 < -uione);++#include <stddef.h>+constexpr nullptr_t null_pointer = nullptr;++static typeof (1 + 1L) two () { return 2; }+static long int three () { return 3; }+'++# Test code for whether the C compiler supports C23 (body of main).+ac_c_conftest_c23_main='+ {+ label_before_declaration:+ int arr[10] = {};+ if (arr[0])+ goto label_before_declaration;+ if (!arr[0])+ goto label_at_end_of_block;+ label_at_end_of_block:+ }+ ok |= !null_pointer;+ ok |= two != three;+'++# Test code for whether the C compiler supports C23 (complete).+ac_c_conftest_c23_program="${ac_c_conftest_c23_globals}++int+main (int, char **)+{+ int ok = 0;+ ${ac_c_conftest_c23_main}+ return ok;+}+"++# Test code for whether the C compiler supports C89 (global declarations)+ac_c_conftest_c89_globals='+/* Do not test the value of __STDC__, because some compilers define it to 0+ or do not define it, while otherwise adequately conforming. */++#include <stddef.h>+#include <stdarg.h>+struct stat;+/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */+struct buf { int x; };+struct buf * (*rcsopen) (struct buf *, struct stat *, int);+static char *e (char **p, int i)+{+ return p[i];+}+static char *f (char * (*g) (char **, int), char **p, ...)+{+ char *s;+ va_list v;+ va_start (v,p);+ s = g (p, va_arg (v,int));+ va_end (v);+ return s;+}++/* C89 style stringification. */+#define noexpand_stringify(a) #a+const char *stringified = noexpand_stringify(arbitrary+token=sequence);++/* C89 style token pasting. Exercises some of the corner cases that+ e.g. old MSVC gets wrong, but not very hard. */+#define noexpand_concat(a,b) a##b+#define expand_concat(a,b) noexpand_concat(a,b)+extern int vA;+extern int vbee;+#define aye A+#define bee B+int *pvA = &expand_concat(v,aye);+int *pvbee = &noexpand_concat(v,bee);++/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has+ function prototypes and stuff, but not \xHH hex character constants.+ These do not provoke an error unfortunately, instead are silently treated+ as an "x". The following induces an error, until -std is added to get+ proper ANSI mode. Curiously \x00 != x always comes out true, for an+ array size at least. It is necessary to write \x00 == 0 to get something+ that is true only with -std. */+int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];++/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters+ inside strings and character constants. */+#define FOO(x) '\''x'\''+int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];++int test (int i, double x);+struct s1 {int (*f) (int a);};+struct s2 {int (*f) (double a);};+int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),+ int, int);'++# Test code for whether the C compiler supports C89 (body of main).+ac_c_conftest_c89_main='+ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);+'++# Test code for whether the C compiler supports C99 (global declarations)+ac_c_conftest_c99_globals='+/* Does the compiler advertise C99 conformance? */+#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L+# error "Compiler does not advertise C99 conformance"+#endif++// See if C++-style comments work.++#include <stdbool.h>+extern int puts (const char *);+extern int printf (const char *, ...);+extern int dprintf (int, const char *, ...);+extern void *malloc (size_t);+extern void free (void *);++// Check varargs macros. These examples are taken from C99 6.10.3.5.+// dprintf is used instead of fprintf to avoid needing to declare+// FILE and stderr, and "aND" is used instead of "and" to work around+// GCC bug 40564 which is irrelevant here.+#define debug(...) dprintf (2, __VA_ARGS__)+#define showlist(...) puts (#__VA_ARGS__)+#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))+static void+test_varargs_macros (void)+{+ int x = 1234;+ int y = 5678;+ debug ("Flag");+ debug ("X = %d\n", x);+ showlist (The first, second, aND third items.);+ report (x>y, "x is %d but y is %d", x, y);+}++// Check long long types.+#define BIG64 18446744073709551615ull+#define BIG32 4294967295ul+#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)+#if !BIG_OK+ #error "your preprocessor is broken"+#endif+#if BIG_OK+#else+ #error "your preprocessor is broken"+#endif+static long long int bignum = -9223372036854775807LL;+static unsigned long long int ubignum = BIG64;++struct incomplete_array+{+ int datasize;+ double data[];+};++struct named_init {+ int number;+ const wchar_t *name;+ double average;+};++typedef const char *ccp;++static inline int+test_restrict (ccp restrict text)+{+ // Iterate through items via the restricted pointer.+ // Also check for declarations in for loops.+ for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)+ continue;+ return 0;+}++// Check varargs and va_copy.+static bool+test_varargs (const char *format, ...)+{+ va_list args;+ va_start (args, format);+ va_list args_copy;+ va_copy (args_copy, args);++ const char *str = "";+ int number = 0;+ float fnumber = 0;++ while (*format)+ {+ switch (*format++)+ {+ case '\''s'\'': // string+ str = va_arg (args_copy, const char *);+ break;+ case '\''d'\'': // int+ number = va_arg (args_copy, int);+ break;+ case '\''f'\'': // float+ fnumber = va_arg (args_copy, double);+ break;+ default:+ break;+ }+ }+ va_end (args_copy);+ va_end (args);++ return *str && number && fnumber;+}+'++# Test code for whether the C compiler supports C99 (body of main).+ac_c_conftest_c99_main='+ // Check bool.+ _Bool success = false;+ success |= (argc != 0);++ // Check restrict.+ if (test_restrict ("String literal") == 0)+ success = true;+ const char *restrict newvar = "Another string";++ // Check varargs.+ success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);+ test_varargs_macros ();++ // Check flexible array members.+ static struct incomplete_array *volatile incomplete_array_pointer;+ struct incomplete_array *ia = incomplete_array_pointer;+ ia->datasize = 10;+ for (int i = 0; i < ia->datasize; ++i)+ ia->data[i] = i * 1.234;+ // Work around memory leak warnings.+ free (ia);++ // Check named initializers.+ struct named_init ni = {+ .number = 34,+ .name = L"Test wide string",+ .average = 543.34343,+ };++ ni.number = 58;++ // Do not test for VLAs, as some otherwise-conforming compilers lack them.+ // C code should instead use __STDC_NO_VLA__; see Autoconf manual.++ // work around unused variable warnings+ ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''+ || ni.number != 58);+'++# Test code for whether the C compiler supports C11 (global declarations)+ac_c_conftest_c11_globals='+/* Does the compiler advertise C11 conformance? */+#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L+# error "Compiler does not advertise C11 conformance"+#endif++// Check _Alignas.+char _Alignas (double) aligned_as_double;+char _Alignas (0) no_special_alignment;+extern char aligned_as_int;+char _Alignas (0) _Alignas (int) aligned_as_int;++// Check _Alignof.+enum+{+ int_alignment = _Alignof (int),+ int_array_alignment = _Alignof (int[100]),+ char_alignment = _Alignof (char)+};+_Static_assert (0 < -_Alignof (int), "_Alignof is signed");++// Check _Noreturn.+int _Noreturn does_not_return (void) { for (;;) continue; }++// Check _Static_assert.+struct test_static_assert+{+ int x;+ _Static_assert (sizeof (int) <= sizeof (long int),+ "_Static_assert does not work in struct");+ long int y;+};++// Check UTF-8 literals.+#define u8 syntax error!+char const utf8_literal[] = u8"happens to be ASCII" "another string";++// Check duplicate typedefs.+typedef long *long_ptr;+typedef long int *long_ptr;+typedef long_ptr long_ptr;++// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.+struct anonymous+{+ union {+ struct { int i; int j; };+ struct { int k; long int l; } w;+ };+ int m;+} v1;+'++# Test code for whether the C compiler supports C11 (body of main).+ac_c_conftest_c11_main='+ _Static_assert ((offsetof (struct anonymous, i)+ == offsetof (struct anonymous, w.k)),+ "Anonymous union alignment botch");+ v1.i = 2;+ v1.w.k = 5;+ ok |= v1.i != 5;+'++# Test code for whether the C compiler supports C11 (complete).+ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}+${ac_c_conftest_c99_globals}+${ac_c_conftest_c11_globals}++int+main (int argc, char **argv)+{+ int ok = 0;+ ${ac_c_conftest_c89_main}+ ${ac_c_conftest_c99_main}+ ${ac_c_conftest_c11_main}+ return ok;+}+"++# Test code for whether the C compiler supports C99 (complete).+ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}+${ac_c_conftest_c99_globals}++int+main (int argc, char **argv)+{+ int ok = 0;+ ${ac_c_conftest_c89_main}+ ${ac_c_conftest_c99_main}+ return ok;+}+"++# Test code for whether the C compiler supports C89 (complete).+ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}++int+main (int argc, char **argv)+{+ int ok = 0;+ ${ac_c_conftest_c89_main}+ return ok;+}+"++as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"+as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"+as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"+as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"+as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"+as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"+as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"+as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"+as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"+as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"+as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"+as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"+as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"++# Auxiliary files required by this configure script.+ac_aux_files="config.rpath install-sh ltmain.sh config.guess config.sub"++# Locations in which to look for auxiliary files.+ac_aux_dir_candidates="${srcdir}/build/autoconf"++# Search for a directory containing all of the required auxiliary files,+# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.+# If we don't find one directory that contains all the files we need,+# we report the set of missing files from the *first* directory in+# $ac_aux_dir_candidates and give up.+ac_missing_aux_files=""+ac_first_candidate=:+printf '%s\n' "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+as_found=false+for as_dir in $ac_aux_dir_candidates+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ as_found=:++ printf '%s\n' "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5+ ac_aux_dir_found=yes+ ac_install_sh=+ for ac_aux in $ac_aux_files+ do+ # As a special case, if "install-sh" is required, that requirement+ # can be satisfied by any of "install-sh", "install.sh", or "shtool",+ # and $ac_install_sh is set appropriately for whichever one is found.+ if test x"$ac_aux" = x"install-sh"+ then+ if test -f "${as_dir}install-sh"; then+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5+ ac_install_sh="${as_dir}install-sh -c"+ elif test -f "${as_dir}install.sh"; then+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5+ ac_install_sh="${as_dir}install.sh -c"+ elif test -f "${as_dir}shtool"; then+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5+ ac_install_sh="${as_dir}shtool install -c"+ else+ ac_aux_dir_found=no+ if $ac_first_candidate; then+ ac_missing_aux_files="${ac_missing_aux_files} install-sh"+ else+ break+ fi+ fi+ else+ if test -f "${as_dir}${ac_aux}"; then+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5+ else+ ac_aux_dir_found=no+ if $ac_first_candidate; then+ ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"+ else+ break+ fi+ fi+ fi+ done+ if test "$ac_aux_dir_found" = yes; then+ ac_aux_dir="$as_dir"+ break+ fi+ ac_first_candidate=false++ as_found=false+done+IFS=$as_save_IFS+if $as_found+then :++else case e in #(+ e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;+esac+fi+++# These three variables are undocumented and unsupported,+# and are intended to be withdrawn in a future Autoconf release.+# They can cause serious problems if a builder's source tree is in a directory+# whose full name contains unusual characters.+if test -f "${ac_aux_dir}config.guess"; then+ ac_config_guess="$SHELL ${ac_aux_dir}config.guess"+fi+if test -f "${ac_aux_dir}config.sub"; then+ ac_config_sub="$SHELL ${ac_aux_dir}config.sub"+fi+if test -f "$ac_aux_dir/configure"; then+ ac_configure="$SHELL ${ac_aux_dir}configure"+fi++# Check that the precious variables saved in the cache have kept the same+# value.+ac_cache_corrupted=false+for ac_var in $ac_precious_vars; do+ eval ac_old_set=\$ac_cv_env_${ac_var}_set+ eval ac_new_set=\$ac_env_${ac_var}_set+ eval ac_old_val=\$ac_cv_env_${ac_var}_value+ eval ac_new_val=\$ac_env_${ac_var}_value+ case $ac_old_set,$ac_new_set in+ set,)+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5+printf '%s\n' "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}+ ac_cache_corrupted=: ;;+ ,set)+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5+printf '%s\n' "$as_me: error: '$ac_var' was not set in the previous run" >&2;}+ ac_cache_corrupted=: ;;+ ,);;+ *)+ if test "x$ac_old_val" != "x$ac_new_val"; then+ # differences in whitespace do not lead to failure.+ ac_old_val_w=+ for ac_val in x $ac_old_val; do+ ac_old_val_w="$ac_old_val_w $ac_val"+ done+ ac_new_val_w=+ for ac_val in x $ac_new_val; do+ ac_new_val_w="$ac_new_val_w $ac_val"+ done+ if test "$ac_old_val_w" != "$ac_new_val_w"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5+printf '%s\n' "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}+ ac_cache_corrupted=:+ else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5+printf '%s\n' "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}+ eval $ac_var=\$ac_old_val+ fi+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5+printf '%s\n' "$as_me: former value: '$ac_old_val'" >&2;}+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5+printf '%s\n' "$as_me: current value: '$ac_new_val'" >&2;}+ fi;;+ esac+ # Pass precious variables to config.status.+ if test "$ac_new_set" = set; then+ case $ac_new_val in+ *\'*) ac_arg=$ac_var=`printf '%s\n' "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;+ *) ac_arg=$ac_var=$ac_new_val ;;+ esac+ case " $ac_configure_args " in+ *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.+ *) as_fn_append ac_configure_args " '$ac_arg'" ;;+ esac+ fi+done+if $ac_cache_corrupted; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5+printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5+printf '%s\n' "$as_me: error: changes in the environment can compromise the build" >&2;}+ as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'+ and start over" "$LINENO" 5+fi+## -------------------- ##+## Main body of script. ##+## -------------------- ##+++# Determine whether it's possible to make 'echo' print without a newline.+# These variables are no longer used directly by Autoconf, but are AC_SUBSTed+# for compatibility with existing Makefiles.+ECHO_C= ECHO_N= ECHO_T=+case `echo -n x` in #(((((+-n*)+ case `echo 'xy\c'` in+ *c*) ECHO_T=' ';; # ECHO_T is single tab character.+ xy) ECHO_C='\c';;+ *) echo `echo ksh88 bug on AIX 6.1` > /dev/null+ ECHO_T=' ';;+ esac;;+*)+ ECHO_N='-n';;+esac++ac_ext=c+ac_cpp='$CPP $CPPFLAGS'+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'+ac_compiler_gnu=$ac_cv_c_compiler_gnu++++#+# Now starts the "real" configure script.+#++# Make sure the srcdir contains "libarchive" directory++# Use auxiliary subscripts from this subdirectory (cleans up root)++# M4 scripts+++# Libtool's "interface version" can be computed from the libarchive version.++# Libtool interface version bumps on any API change, so increments+# whenever libarchive minor version does.+ARCHIVE_MINOR=$(( (3008006 / 1000) % 1000 ))+# Libarchive 2.7 == libtool interface 9 = 2 + 7+# Libarchive 2.8 == libtool interface 10 = 2 + 8+# Libarchive 2.9 == libtool interface 11 = 2 + 9+# Libarchive 3.0 == libtool interface 12+# Libarchive 3.1 == libtool interface 13+ARCHIVE_INTERFACE=`echo $((13 + ${ARCHIVE_MINOR}))`+# Libarchive revision is bumped on any source change === libtool revision+ARCHIVE_REVISION=$(( 3008006 % 1000 ))+# Libarchive minor is bumped on any interface addition === libtool age+ARCHIVE_LIBTOOL_VERSION=$ARCHIVE_INTERFACE:$ARCHIVE_REVISION:$ARCHIVE_MINOR++# Stick the version numbers into config.h++printf '%s\n' "#define __LIBARCHIVE_CONFIG_H_INCLUDED 1" >>confdefs.h+++printf '%s\n' "#define LIBARCHIVE_VERSION_STRING \"3.8.6\"" >>confdefs.h+++printf '%s\n' "#define LIBARCHIVE_VERSION_NUMBER \"3008006\"" >>confdefs.h+++printf '%s\n' "#define BSDCPIO_VERSION_STRING \"3.8.6\"" >>confdefs.h+++printf '%s\n' "#define BSDTAR_VERSION_STRING \"3.8.6\"" >>confdefs.h+++printf '%s\n' "#define BSDCAT_VERSION_STRING \"3.8.6\"" >>confdefs.h+++printf '%s\n' "#define BSDUNZIP_VERSION_STRING \"3.8.6\"" >>confdefs.h+++# The shell variables here must be the same as the AC_SUBST() variables+# below, but the shell variable names apparently cannot be the same as+# the m4 macro names above. Why? Ask autoconf.+BSDCPIO_VERSION_STRING=3.8.6+BSDTAR_VERSION_STRING=3.8.6+BSDCAT_VERSION_STRING=3.8.6+BSDUNZIP_VERSION_STRING=3.8.6+LIBARCHIVE_VERSION_STRING=3.8.6+LIBARCHIVE_VERSION_NUMBER=3008006++# Substitute the above version numbers into the various files below.+# Yes, I believe this is the fourth time we define what are essentially+# the same symbols. Why? Ask autoconf.+++++++++ac_config_headers="$ac_config_headers c/config.h"+++# Check for host type++++ # Make sure we can run config.sub.+$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||+ as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5++{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking build system type" >&5+printf %s "checking build system type... " >&6; }+if test ${ac_cv_build+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) ac_build_alias=$build_alias+test "x$ac_build_alias" = x &&+ ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`+test "x$ac_build_alias" = x &&+ as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5+ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||+ as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5+ ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5+printf '%s\n' "$ac_cv_build" >&6; }+case $ac_cv_build in+*-*-*) ;;+*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;+esac+build=$ac_cv_build+ac_save_IFS=$IFS; IFS='-'+set x $ac_cv_build+shift+build_cpu=$1+build_vendor=$2+shift; shift+# Remember, the first character of IFS is used to create $*,+# except with old shells:+build_os=$*+IFS=$ac_save_IFS+case $build_os in *\ *) build_os=`printf '%s\n' "$build_os" | sed 's/ /-/g'`;; esac+++{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking host system type" >&5+printf %s "checking host system type... " >&6; }+if test ${ac_cv_host+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test "x$host_alias" = x; then+ ac_cv_host=$ac_cv_build+else+ ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||+ as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5+fi+ ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5+printf '%s\n' "$ac_cv_host" >&6; }+case $ac_cv_host in+*-*-*) ;;+*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;+esac+host=$ac_cv_host+ac_save_IFS=$IFS; IFS='-'+set x $ac_cv_host+shift+host_cpu=$1+host_vendor=$2+shift; shift+# Remember, the first character of IFS is used to create $*,+# except with old shells:+host_os=$*+IFS=$ac_save_IFS+case $host_os in *\ *) host_os=`printf '%s\n' "$host_os" | sed 's/ /-/g'`;; esac++++inc_windows_files=no+inc_cygwin_files=no+case "$host_os" in+ *mingw* ) inc_windows_files=yes ;;+ *cygwin* | *msys*) inc_cygwin_files=yes ;;+esac+ if test $inc_windows_files = yes; then+ INC_WINDOWS_FILES_TRUE=+ INC_WINDOWS_FILES_FALSE='#'+else+ INC_WINDOWS_FILES_TRUE='#'+ INC_WINDOWS_FILES_FALSE=+fi++ if test $inc_cygwin_files = yes; then+ INC_CYGWIN_FILES_TRUE=+ INC_CYGWIN_FILES_FALSE='#'+else+ INC_CYGWIN_FILES_TRUE='#'+ INC_CYGWIN_FILES_FALSE=+fi+++# Checks for programs.+++++++++++++ac_ext=c+ac_cpp='$CPP $CPPFLAGS'+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'+ac_compiler_gnu=$ac_cv_c_compiler_gnu+if test -n "$ac_tool_prefix"; then+ # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.+set dummy ${ac_tool_prefix}gcc; ac_word=$2+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5+printf %s "checking for $ac_word... " >&6; }+if test ${ac_cv_prog_CC+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test -n "$CC"; then+ ac_cv_prog_CC="$CC" # Let the user override the test.+else+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_exec_ext in '' $ac_executable_extensions; do+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then+ ac_cv_prog_CC="${ac_tool_prefix}gcc"+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5+ break 2+ fi+done+ done+IFS=$as_save_IFS++fi ;;+esac+fi+CC=$ac_cv_prog_CC+if test -n "$CC"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5+printf '%s\n' "$CC" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+fi+++fi+if test -z "$ac_cv_prog_CC"; then+ ac_ct_CC=$CC+ # Extract the first word of "gcc", so it can be a program name with args.+set dummy gcc; ac_word=$2+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5+printf %s "checking for $ac_word... " >&6; }+if test ${ac_cv_prog_ac_ct_CC+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test -n "$ac_ct_CC"; then+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.+else+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_exec_ext in '' $ac_executable_extensions; do+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then+ ac_cv_prog_ac_ct_CC="gcc"+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5+ break 2+ fi+done+ done+IFS=$as_save_IFS++fi ;;+esac+fi+ac_ct_CC=$ac_cv_prog_ac_ct_CC+if test -n "$ac_ct_CC"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5+printf '%s\n' "$ac_ct_CC" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+fi++ if test "x$ac_ct_CC" = x; then+ CC=""+ else+ case $cross_compiling:$ac_tool_warned in+yes:)+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5+printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}+ac_tool_warned=yes ;;+esac+ CC=$ac_ct_CC+ fi+else+ CC="$ac_cv_prog_CC"+fi++if test -z "$CC"; then+ if test -n "$ac_tool_prefix"; then+ # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.+set dummy ${ac_tool_prefix}cc; ac_word=$2+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5+printf %s "checking for $ac_word... " >&6; }+if test ${ac_cv_prog_CC+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test -n "$CC"; then+ ac_cv_prog_CC="$CC" # Let the user override the test.+else+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_exec_ext in '' $ac_executable_extensions; do+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then+ ac_cv_prog_CC="${ac_tool_prefix}cc"+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5+ break 2+ fi+done+ done+IFS=$as_save_IFS++fi ;;+esac+fi+CC=$ac_cv_prog_CC+if test -n "$CC"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5+printf '%s\n' "$CC" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+fi+++ fi+fi+if test -z "$CC"; then+ # Extract the first word of "cc", so it can be a program name with args.+set dummy cc; ac_word=$2+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5+printf %s "checking for $ac_word... " >&6; }+if test ${ac_cv_prog_CC+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test -n "$CC"; then+ ac_cv_prog_CC="$CC" # Let the user override the test.+else+ ac_prog_rejected=no+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_exec_ext in '' $ac_executable_extensions; do+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then+ if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then+ ac_prog_rejected=yes+ continue+ fi+ ac_cv_prog_CC="cc"+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5+ break 2+ fi+done+ done+IFS=$as_save_IFS++if test $ac_prog_rejected = yes; then+ # We found a bogon in the path, so make sure we never use it.+ set dummy $ac_cv_prog_CC+ shift+ if test $# != 0; then+ # We chose a different compiler from the bogus one.+ # However, it has the same basename, so the bogon will be chosen+ # first if we set CC to just the basename; use the full file name.+ shift+ ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"+ fi+fi+fi ;;+esac+fi+CC=$ac_cv_prog_CC+if test -n "$CC"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5+printf '%s\n' "$CC" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+fi+++fi+if test -z "$CC"; then+ if test -n "$ac_tool_prefix"; then+ for ac_prog in cl.exe+ do+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.+set dummy $ac_tool_prefix$ac_prog; ac_word=$2+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5+printf %s "checking for $ac_word... " >&6; }+if test ${ac_cv_prog_CC+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test -n "$CC"; then+ ac_cv_prog_CC="$CC" # Let the user override the test.+else+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_exec_ext in '' $ac_executable_extensions; do+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then+ ac_cv_prog_CC="$ac_tool_prefix$ac_prog"+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5+ break 2+ fi+done+ done+IFS=$as_save_IFS++fi ;;+esac+fi+CC=$ac_cv_prog_CC+if test -n "$CC"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5+printf '%s\n' "$CC" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+fi+++ test -n "$CC" && break+ done+fi+if test -z "$CC"; then+ ac_ct_CC=$CC+ for ac_prog in cl.exe+do+ # Extract the first word of "$ac_prog", so it can be a program name with args.+set dummy $ac_prog; ac_word=$2+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5+printf %s "checking for $ac_word... " >&6; }+if test ${ac_cv_prog_ac_ct_CC+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test -n "$ac_ct_CC"; then+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.+else+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_exec_ext in '' $ac_executable_extensions; do+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then+ ac_cv_prog_ac_ct_CC="$ac_prog"+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5+ break 2+ fi+done+ done+IFS=$as_save_IFS++fi ;;+esac+fi+ac_ct_CC=$ac_cv_prog_ac_ct_CC+if test -n "$ac_ct_CC"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5+printf '%s\n' "$ac_ct_CC" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+fi+++ test -n "$ac_ct_CC" && break+done++ if test "x$ac_ct_CC" = x; then+ CC=""+ else+ case $cross_compiling:$ac_tool_warned in+yes:)+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5+printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}+ac_tool_warned=yes ;;+esac+ CC=$ac_ct_CC+ fi+fi++fi+if test -z "$CC"; then+ if test -n "$ac_tool_prefix"; then+ # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.+set dummy ${ac_tool_prefix}clang; ac_word=$2+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5+printf %s "checking for $ac_word... " >&6; }+if test ${ac_cv_prog_CC+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test -n "$CC"; then+ ac_cv_prog_CC="$CC" # Let the user override the test.+else+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_exec_ext in '' $ac_executable_extensions; do+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then+ ac_cv_prog_CC="${ac_tool_prefix}clang"+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5+ break 2+ fi+done+ done+IFS=$as_save_IFS++fi ;;+esac+fi+CC=$ac_cv_prog_CC+if test -n "$CC"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5+printf '%s\n' "$CC" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+fi+++fi+if test -z "$ac_cv_prog_CC"; then+ ac_ct_CC=$CC+ # Extract the first word of "clang", so it can be a program name with args.+set dummy clang; ac_word=$2+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5+printf %s "checking for $ac_word... " >&6; }+if test ${ac_cv_prog_ac_ct_CC+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test -n "$ac_ct_CC"; then+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.+else+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_exec_ext in '' $ac_executable_extensions; do+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then+ ac_cv_prog_ac_ct_CC="clang"+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5+ break 2+ fi+done+ done+IFS=$as_save_IFS++fi ;;+esac+fi+ac_ct_CC=$ac_cv_prog_ac_ct_CC+if test -n "$ac_ct_CC"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5+printf '%s\n' "$ac_ct_CC" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+fi++ if test "x$ac_ct_CC" = x; then+ CC=""+ else+ case $cross_compiling:$ac_tool_warned in+yes:)+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5+printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}+ac_tool_warned=yes ;;+esac+ CC=$ac_ct_CC+ fi+else+ CC="$ac_cv_prog_CC"+fi++fi+++test -z "$CC" && { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5+printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}+as_fn_error $? "no acceptable C compiler found in \$PATH+See 'config.log' for more details" "$LINENO" 5; }++# Provide some information about the compiler.+printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5+set X $ac_compile+ac_compiler=$2+for ac_option in --version -v -V -qversion -version; do+ { { ac_try="$ac_compiler $ac_option >&5"+case "(($ac_try" in+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;+ *) ac_try_echo=$ac_try;;+esac+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""+printf '%s\n' "$ac_try_echo"; } >&5+ (eval "$ac_compiler $ac_option >&5") 2>conftest.err+ ac_status=$?+ if test -s conftest.err; then+ sed '10a\+... rest of stderr output deleted ...+ 10q' conftest.err >conftest.er1+ cat conftest.er1 >&5+ fi+ rm -f conftest.er1 conftest.err+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5+ test $ac_status = 0; }+done++cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */++int+main (void)+{++ ;+ return 0;+}+_ACEOF+ac_clean_files_save=$ac_clean_files+ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"+# Try to create an executable without -o first, disregard a.out.+# It will help us diagnose broken compilers, and finding out an intuition+# of exeext.+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5+printf %s "checking whether the C compiler works... " >&6; }+ac_link_default=`printf '%s\n' "$ac_link" | sed 's/ -o *conftest[^ ]*//'`++# The possible output files:+ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"++ac_rmfiles=+for ac_file in $ac_files+do+ case $ac_file in+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;+ * ) ac_rmfiles="$ac_rmfiles $ac_file";;+ esac+done+rm -f $ac_rmfiles++if { { ac_try="$ac_link_default"+case "(($ac_try" in+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;+ *) ac_try_echo=$ac_try;;+esac+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""+printf '%s\n' "$ac_try_echo"; } >&5+ (eval "$ac_link_default") 2>&5+ ac_status=$?+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5+ test $ac_status = 0; }+then :+ # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.+# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'+# in a Makefile. We should not override ac_cv_exeext if it was cached,+# so that the user can short-circuit this test for compilers unknown to+# Autoconf.+for ac_file in $ac_files ''+do+ test -f "$ac_file" || continue+ case $ac_file in+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )+ ;;+ [ab].out )+ # We found the default executable, but exeext='' is most+ # certainly right.+ break;;+ *.* )+ if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;+ then :; else+ ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`+ fi+ # We set ac_cv_exeext here because the later test for it is not+ # safe: cross compilers may not add the suffix if given an '-o'+ # argument, so we may need to know it at that point already.+ # Even if this section looks crufty: it has the advantage of+ # actually working.+ break;;+ * )+ break;;+ esac+done+test "$ac_cv_exeext" = no && ac_cv_exeext=++else case e in #(+ e) ac_file='' ;;+esac+fi+if test -z "$ac_file"+then :+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+printf '%s\n' "$as_me: failed program was:" >&5+sed 's/^/| /' conftest.$ac_ext >&5++{ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5+printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}+as_fn_error 77 "C compiler cannot create executables+See 'config.log' for more details" "$LINENO" 5; }+else case e in #(+ e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5+printf '%s\n' "yes" >&6; } ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5+printf %s "checking for C compiler default output file name... " >&6; }+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5+printf '%s\n' "$ac_file" >&6; }+ac_exeext=$ac_cv_exeext++rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out+ac_clean_files=$ac_clean_files_save+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5+printf %s "checking for suffix of executables... " >&6; }+if { { ac_try="$ac_link"+case "(($ac_try" in+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;+ *) ac_try_echo=$ac_try;;+esac+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""+printf '%s\n' "$ac_try_echo"; } >&5+ (eval "$ac_link") 2>&5+ ac_status=$?+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5+ test $ac_status = 0; }+then :+ # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)+# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will+# work properly (i.e., refer to 'conftest.exe'), while it won't with+# 'rm'.+for ac_file in conftest.exe conftest conftest.*; do+ test -f "$ac_file" || continue+ case $ac_file in+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;+ *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`+ break;;+ * ) break;;+ esac+done+else case e in #(+ e) { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5+printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}+as_fn_error $? "cannot compute suffix of executables: cannot compile and link+See 'config.log' for more details" "$LINENO" 5; } ;;+esac+fi+rm -f conftest conftest$ac_cv_exeext+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5+printf '%s\n' "$ac_cv_exeext" >&6; }++rm -f conftest.$ac_ext+EXEEXT=$ac_cv_exeext+ac_exeext=$EXEEXT+cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */+#include <stdio.h>+int+main (void)+{+FILE *f = fopen ("conftest.out", "w");+ if (!f)+ return 1;+ return ferror (f) || fclose (f) != 0;++ ;+ return 0;+}+_ACEOF+ac_clean_files="$ac_clean_files conftest.out"+# Check that the compiler produces executables we can run. If not, either+# the compiler is broken, or we cross compile.+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5+printf %s "checking whether we are cross compiling... " >&6; }+if test "$cross_compiling" != yes; then+ { { ac_try="$ac_link"+case "(($ac_try" in+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;+ *) ac_try_echo=$ac_try;;+esac+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""+printf '%s\n' "$ac_try_echo"; } >&5+ (eval "$ac_link") 2>&5+ ac_status=$?+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5+ test $ac_status = 0; }+ if { ac_try='./conftest$ac_cv_exeext'+ { { case "(($ac_try" in+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;+ *) ac_try_echo=$ac_try;;+esac+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""+printf '%s\n' "$ac_try_echo"; } >&5+ (eval "$ac_try") 2>&5+ ac_status=$?+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5+ test $ac_status = 0; }; }; then+ cross_compiling=no+ else+ if test "$cross_compiling" = maybe; then+ cross_compiling=yes+ else+ { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5+printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}+as_fn_error 77 "cannot run C compiled programs.+If you meant to cross compile, use '--host'.+See 'config.log' for more details" "$LINENO" 5; }+ fi+ fi+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5+printf '%s\n' "$cross_compiling" >&6; }++rm -f conftest.$ac_ext conftest$ac_cv_exeext \+ conftest.o conftest.obj conftest.out+ac_clean_files=$ac_clean_files_save+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5+printf %s "checking for suffix of object files... " >&6; }+if test ${ac_cv_objext+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */++int+main (void)+{++ ;+ return 0;+}+_ACEOF+rm -f conftest.o conftest.obj+if { { ac_try="$ac_compile"+case "(($ac_try" in+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;+ *) ac_try_echo=$ac_try;;+esac+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""+printf '%s\n' "$ac_try_echo"; } >&5+ (eval "$ac_compile") 2>&5+ ac_status=$?+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5+ test $ac_status = 0; }+then :+ for ac_file in conftest.o conftest.obj conftest.*; do+ test -f "$ac_file" || continue;+ case $ac_file in+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;+ *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`+ break;;+ esac+done+else case e in #(+ e) printf '%s\n' "$as_me: failed program was:" >&5+sed 's/^/| /' conftest.$ac_ext >&5++{ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5+printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}+as_fn_error $? "cannot compute suffix of object files: cannot compile+See 'config.log' for more details" "$LINENO" 5; } ;;+esac+fi+rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5+printf '%s\n' "$ac_cv_objext" >&6; }+OBJEXT=$ac_cv_objext+ac_objext=$OBJEXT+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5+printf %s "checking whether the compiler supports GNU C... " >&6; }+if test ${ac_cv_c_compiler_gnu+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */++int+main (void)+{+#ifndef __GNUC__+ choke me+#endif++ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_compile "$LINENO"+then :+ ac_compiler_gnu=yes+else case e in #(+ e) ac_compiler_gnu=no ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext+ac_cv_c_compiler_gnu=$ac_compiler_gnu+ ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5+printf '%s\n' "$ac_cv_c_compiler_gnu" >&6; }+ac_compiler_gnu=$ac_cv_c_compiler_gnu++if test $ac_compiler_gnu = yes; then+ GCC=yes+else+ GCC=+fi+ac_test_CFLAGS=${CFLAGS+y}+ac_save_CFLAGS=$CFLAGS+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5+printf %s "checking whether $CC accepts -g... " >&6; }+if test ${ac_cv_prog_cc_g+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) ac_save_c_werror_flag=$ac_c_werror_flag+ ac_c_werror_flag=yes+ ac_cv_prog_cc_g=no+ CFLAGS="-g"+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */++int+main (void)+{++ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_compile "$LINENO"+then :+ ac_cv_prog_cc_g=yes+else case e in #(+ e) CFLAGS=""+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */++int+main (void)+{++ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_compile "$LINENO"+then :++else case e in #(+ e) ac_c_werror_flag=$ac_save_c_werror_flag+ CFLAGS="-g"+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */++int+main (void)+{++ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_compile "$LINENO"+then :+ ac_cv_prog_cc_g=yes+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext+ ac_c_werror_flag=$ac_save_c_werror_flag ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5+printf '%s\n' "$ac_cv_prog_cc_g" >&6; }+if test $ac_test_CFLAGS; then+ CFLAGS=$ac_save_CFLAGS+elif test $ac_cv_prog_cc_g = yes; then+ if test "$GCC" = yes; then+ CFLAGS="-g -O2"+ else+ CFLAGS="-g"+ fi+else+ if test "$GCC" = yes; then+ CFLAGS="-O2"+ else+ CFLAGS=+ fi+fi+ac_prog_cc_stdc=no+if test x$ac_prog_cc_stdc = xno+then :+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C23 features" >&5+printf %s "checking for $CC option to enable C23 features... " >&6; }+if test ${ac_cv_prog_cc_c23+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) ac_cv_prog_cc_c23=no+ac_save_CC=$CC+cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */+$ac_c_conftest_c23_program+_ACEOF+for ac_arg in '' -std=gnu23+do+ CC="$ac_save_CC $ac_arg"+ if ac_fn_c_try_compile "$LINENO"+then :+ ac_cv_prog_cc_c23=$ac_arg+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam+ test "x$ac_cv_prog_cc_c23" != "xno" && break+done+rm -f conftest.$ac_ext+CC=$ac_save_CC ;;+esac+fi++if test "x$ac_cv_prog_cc_c23" = xno+then :+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5+printf '%s\n' "unsupported" >&6; }+else case e in #(+ e) if test "x$ac_cv_prog_cc_c23" = x+then :+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5+printf '%s\n' "none needed" >&6; }+else case e in #(+ e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c23" >&5+printf '%s\n' "$ac_cv_prog_cc_c23" >&6; }+ CC="$CC $ac_cv_prog_cc_c23" ;;+esac+fi+ ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c23+ ac_prog_cc_stdc=c23 ;;+esac+fi+fi+if test x$ac_prog_cc_stdc = xno+then :+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5+printf %s "checking for $CC option to enable C11 features... " >&6; }+if test ${ac_cv_prog_cc_c11+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) ac_cv_prog_cc_c11=no+ac_save_CC=$CC+cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */+$ac_c_conftest_c11_program+_ACEOF+for ac_arg in '' -std=gnu11 -std:c11+do+ CC="$ac_save_CC $ac_arg"+ if ac_fn_c_try_compile "$LINENO"+then :+ ac_cv_prog_cc_c11=$ac_arg+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam+ test "x$ac_cv_prog_cc_c11" != "xno" && break+done+rm -f conftest.$ac_ext+CC=$ac_save_CC ;;+esac+fi++if test "x$ac_cv_prog_cc_c11" = xno+then :+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5+printf '%s\n' "unsupported" >&6; }+else case e in #(+ e) if test "x$ac_cv_prog_cc_c11" = x+then :+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5+printf '%s\n' "none needed" >&6; }+else case e in #(+ e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5+printf '%s\n' "$ac_cv_prog_cc_c11" >&6; }+ CC="$CC $ac_cv_prog_cc_c11" ;;+esac+fi+ ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11+ ac_prog_cc_stdc=c11 ;;+esac+fi+fi+if test x$ac_prog_cc_stdc = xno+then :+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5+printf %s "checking for $CC option to enable C99 features... " >&6; }+if test ${ac_cv_prog_cc_c99+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) ac_cv_prog_cc_c99=no+ac_save_CC=$CC+cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */+$ac_c_conftest_c99_program+_ACEOF+for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=+do+ CC="$ac_save_CC $ac_arg"+ if ac_fn_c_try_compile "$LINENO"+then :+ ac_cv_prog_cc_c99=$ac_arg+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam+ test "x$ac_cv_prog_cc_c99" != "xno" && break+done+rm -f conftest.$ac_ext+CC=$ac_save_CC ;;+esac+fi++if test "x$ac_cv_prog_cc_c99" = xno+then :+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5+printf '%s\n' "unsupported" >&6; }+else case e in #(+ e) if test "x$ac_cv_prog_cc_c99" = x+then :+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5+printf '%s\n' "none needed" >&6; }+else case e in #(+ e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5+printf '%s\n' "$ac_cv_prog_cc_c99" >&6; }+ CC="$CC $ac_cv_prog_cc_c99" ;;+esac+fi+ ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99+ ac_prog_cc_stdc=c99 ;;+esac+fi+fi+if test x$ac_prog_cc_stdc = xno+then :+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5+printf %s "checking for $CC option to enable C89 features... " >&6; }+if test ${ac_cv_prog_cc_c89+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) ac_cv_prog_cc_c89=no+ac_save_CC=$CC+cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */+$ac_c_conftest_c89_program+_ACEOF+for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"+do+ CC="$ac_save_CC $ac_arg"+ if ac_fn_c_try_compile "$LINENO"+then :+ ac_cv_prog_cc_c89=$ac_arg+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam+ test "x$ac_cv_prog_cc_c89" != "xno" && break+done+rm -f conftest.$ac_ext+CC=$ac_save_CC ;;+esac+fi++if test "x$ac_cv_prog_cc_c89" = xno+then :+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5+printf '%s\n' "unsupported" >&6; }+else case e in #(+ e) if test "x$ac_cv_prog_cc_c89" = x+then :+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5+printf '%s\n' "none needed" >&6; }+else case e in #(+ e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5+printf '%s\n' "$ac_cv_prog_cc_c89" >&6; }+ CC="$CC $ac_cv_prog_cc_c89" ;;+esac+fi+ ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89+ ac_prog_cc_stdc=c89 ;;+esac+fi+fi++ac_ext=c+ac_cpp='$CPP $CPPFLAGS'+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'+ac_compiler_gnu=$ac_cv_c_compiler_gnu+++ac_ext=c+ac_cpp='$CPP $CPPFLAGS'+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'+ac_compiler_gnu=$ac_cv_c_compiler_gnu+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5+printf %s "checking how to run the C preprocessor... " >&6; }+# On Suns, sometimes $CPP names a directory.+if test -n "$CPP" && test -d "$CPP"; then+ CPP=+fi+if test -z "$CPP"; then+ if test ${ac_cv_prog_CPP+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) # Double quotes because $CC needs to be expanded+ for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp+ do+ ac_preproc_ok=false+for ac_c_preproc_warn_flag in '' yes+do+ # Use a header file that comes with gcc, so configuring glibc+ # with a fresh cross-compiler works.+ # On the NeXT, cc -E runs the code through the compiler's parser,+ # not just through cpp. "Syntax error" is here to catch this case.+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */+#include <limits.h>+ Syntax error+_ACEOF+if ac_fn_c_try_cpp "$LINENO"+then :++else case e in #(+ e) # Broken: fails on valid input.+continue ;;+esac+fi+rm -f conftest.err conftest.i conftest.$ac_ext++ # OK, works on sane cases. Now check whether nonexistent headers+ # can be detected and how.+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */+#include <ac_nonexistent.h>+_ACEOF+if ac_fn_c_try_cpp "$LINENO"+then :+ # Broken: success on invalid input.+continue+else case e in #(+ e) # Passes both tests.+ac_preproc_ok=:+break ;;+esac+fi+rm -f conftest.err conftest.i conftest.$ac_ext++done+# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.+rm -f conftest.i conftest.err conftest.$ac_ext+if $ac_preproc_ok+then :+ break+fi++ done+ ac_cv_prog_CPP=$CPP+ ;;+esac+fi+ CPP=$ac_cv_prog_CPP+else+ ac_cv_prog_CPP=$CPP+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5+printf '%s\n' "$CPP" >&6; }+ac_preproc_ok=false+for ac_c_preproc_warn_flag in '' yes+do+ # Use a header file that comes with gcc, so configuring glibc+ # with a fresh cross-compiler works.+ # On the NeXT, cc -E runs the code through the compiler's parser,+ # not just through cpp. "Syntax error" is here to catch this case.+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */+#include <limits.h>+ Syntax error+_ACEOF+if ac_fn_c_try_cpp "$LINENO"+then :++else case e in #(+ e) # Broken: fails on valid input.+continue ;;+esac+fi+rm -f conftest.err conftest.i conftest.$ac_ext++ # OK, works on sane cases. Now check whether nonexistent headers+ # can be detected and how.+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */+#include <ac_nonexistent.h>+_ACEOF+if ac_fn_c_try_cpp "$LINENO"+then :+ # Broken: success on invalid input.+continue+else case e in #(+ e) # Passes both tests.+ac_preproc_ok=:+break ;;+esac+fi+rm -f conftest.err conftest.i conftest.$ac_ext++done+# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.+rm -f conftest.i conftest.err conftest.$ac_ext+if $ac_preproc_ok+then :++else case e in #(+ e) { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5+printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}+as_fn_error $? "C preprocessor \"$CPP\" fails sanity check+See 'config.log' for more details" "$LINENO" 5; } ;;+esac+fi++ac_ext=c+ac_cpp='$CPP $CPPFLAGS'+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'+ac_compiler_gnu=$ac_cv_c_compiler_gnu+++ac_header= ac_cache=+for ac_item in $ac_header_c_list+do+ if test $ac_cache; then+ ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"+ if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then+ printf '%s\n' "#define $ac_item 1" >> confdefs.h+ fi+ ac_header= ac_cache=+ elif test $ac_header; then+ ac_cache=$ac_item+ else+ ac_header=$ac_item+ fi+done+++++++++if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes+then :++printf '%s\n' "#define STDC_HEADERS 1" >>confdefs.h++fi+++++++ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5+printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }+if test ${ac_cv_safe_to_define___extensions__+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */++# define __EXTENSIONS__ 1+ $ac_includes_default+int+main (void)+{++ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_compile "$LINENO"+then :+ ac_cv_safe_to_define___extensions__=yes+else case e in #(+ e) ac_cv_safe_to_define___extensions__=no ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5+printf '%s\n' "$ac_cv_safe_to_define___extensions__" >&6; }++ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5+printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }+if test ${ac_cv_should_define__xopen_source+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) ac_cv_should_define__xopen_source=no+ if test $ac_cv_header_wchar_h = yes+then :+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */++ #include <wchar.h>+ mbstate_t x;+int+main (void)+{++ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_compile "$LINENO"+then :++else case e in #(+ e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */++ #define _XOPEN_SOURCE 500+ #include <wchar.h>+ mbstate_t x;+int+main (void)+{++ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_compile "$LINENO"+then :+ ac_cv_should_define__xopen_source=yes+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext+fi ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5+printf '%s\n' "$ac_cv_should_define__xopen_source" >&6; }++ printf '%s\n' "#define _ALL_SOURCE 1" >>confdefs.h++ printf '%s\n' "#define _COSMO_SOURCE 1" >>confdefs.h++ printf '%s\n' "#define _DARWIN_C_SOURCE 1" >>confdefs.h++ printf '%s\n' "#define _GNU_SOURCE 1" >>confdefs.h++ printf '%s\n' "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h++ printf '%s\n' "#define _NETBSD_SOURCE 1" >>confdefs.h++ printf '%s\n' "#define _OPENBSD_SOURCE 1" >>confdefs.h++ printf '%s\n' "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h++ printf '%s\n' "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h++ printf '%s\n' "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h++ printf '%s\n' "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h++ printf '%s\n' "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h++ printf '%s\n' "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h++ printf '%s\n' "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h++ printf '%s\n' "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h++ printf '%s\n' "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h++ printf '%s\n' "#define _TANDEM_SOURCE 1" >>confdefs.h++ if test $ac_cv_header_minix_config_h = yes+then :+ MINIX=yes+ printf '%s\n' "#define _MINIX 1" >>confdefs.h++ printf '%s\n' "#define _POSIX_SOURCE 1" >>confdefs.h++ printf '%s\n' "#define _POSIX_1_SOURCE 2" >>confdefs.h++else case e in #(+ e) MINIX= ;;+esac+fi+ if test $ac_cv_safe_to_define___extensions__ = yes+then :+ printf '%s\n' "#define __EXTENSIONS__ 1" >>confdefs.h++fi+ if test $ac_cv_should_define__xopen_source = yes+then :+ printf '%s\n' "#define _XOPEN_SOURCE 500" >>confdefs.h++fi++++case `pwd` in+ *\ * | *\ *)+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5+printf '%s\n' "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;+esac++++macro_version='2.5.4'+macro_revision='2.5.4'+++++++++++++++ltmain=$ac_aux_dir/ltmain.sh++# Backslashify metacharacters that are still active within+# double-quoted strings.+sed_quote_subst='s/\(["`$\\]\)/\\\1/g'++# Same as above, but do not quote variable references.+double_quote_subst='s/\(["`\\]\)/\\\1/g'++# Sed substitution to delay expansion of an escaped shell variable in a+# double_quote_subst'ed string.+delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'++# Sed substitution to delay expansion of an escaped single quote.+delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'++# Sed substitution to avoid accidental globbing in evaled expressions+no_glob_subst='s/\*/\\\*/g'++ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'+ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO+ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO++{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5+printf %s "checking how to print strings... " >&6; }+# Test print first, because it will be a builtin if present.+if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \+ test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then+ ECHO='print -r --'+elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then+ ECHO='printf %s\n'+else+ # Use this function as a fallback that always works.+ func_fallback_echo ()+ {+ eval 'cat <<_LTECHO_EOF+$1+_LTECHO_EOF'+ }+ ECHO='func_fallback_echo'+fi++# func_echo_all arg...+# Invoke $ECHO with all args, space-separated.+func_echo_all ()+{+ $ECHO ""+}++case $ECHO in+ printf*) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: printf" >&5+printf '%s\n' "printf" >&6; } ;;+ print*) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: print -r" >&5+printf '%s\n' "print -r" >&6; } ;;+ *) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: cat" >&5+printf '%s\n' "cat" >&6; } ;;+esac+++++++++++++++{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5+printf %s "checking for a sed that does not truncate output... " >&6; }+if test ${ac_cv_path_SED+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/+ for ac_i in 1 2 3 4 5 6 7; do+ ac_script="$ac_script$as_nl$ac_script"+ done+ echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed+ { ac_script=; unset ac_script;}+ if test -z "$SED"; then+ ac_path_SED_found=false+ # Loop through the user's path and test for each of PROGNAME-LIST+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_prog in sed gsed+ do+ for ac_exec_ext in '' $ac_executable_extensions; do+ ac_path_SED="$as_dir$ac_prog$ac_exec_ext"+ as_fn_executable_p "$ac_path_SED" || continue+# Check for GNU ac_path_SED and select it if it is found.+ # Check for GNU $ac_path_SED+case `"$ac_path_SED" --version 2>&1` in #(+*GNU*)+ ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;+#(+*)+ ac_count=0+ printf %s 0123456789 >"conftest.in"+ while :+ do+ cat "conftest.in" "conftest.in" >"conftest.tmp"+ mv "conftest.tmp" "conftest.in"+ cp "conftest.in" "conftest.nl"+ printf '%s\n' '' >> "conftest.nl"+ "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break+ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break+ as_fn_arith $ac_count + 1 && ac_count=$as_val+ if test $ac_count -gt ${ac_path_SED_max-0}; then+ # Best one so far, save it but keep looking for a better one+ ac_cv_path_SED="$ac_path_SED"+ ac_path_SED_max=$ac_count+ fi+ # 10*(2^10) chars as input seems more than enough+ test $ac_count -gt 10 && break+ done+ rm -f conftest.in conftest.tmp conftest.nl conftest.out;;+esac++ $ac_path_SED_found && break 3+ done+ done+ done+IFS=$as_save_IFS+ if test -z "$ac_cv_path_SED"; then+ as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5+ fi+else+ ac_cv_path_SED=$SED+fi+ ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5+printf '%s\n' "$ac_cv_path_SED" >&6; }+ SED="$ac_cv_path_SED"+ rm -f conftest.sed++test -z "$SED" && SED=sed+Xsed="$SED -e 1s/^X//"++++++++++++{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5+printf %s "checking for grep that handles long lines and -e... " >&6; }+if test ${ac_cv_path_GREP+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test -z "$GREP"; then+ ac_path_GREP_found=false+ # Loop through the user's path and test for each of PROGNAME-LIST+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_prog in grep ggrep+ do+ for ac_exec_ext in '' $ac_executable_extensions; do+ ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"+ as_fn_executable_p "$ac_path_GREP" || continue+# Check for GNU ac_path_GREP and select it if it is found.+ # Check for GNU $ac_path_GREP+case `"$ac_path_GREP" --version 2>&1` in #(+*GNU*)+ ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;+#(+*)+ ac_count=0+ printf %s 0123456789 >"conftest.in"+ while :+ do+ cat "conftest.in" "conftest.in" >"conftest.tmp"+ mv "conftest.tmp" "conftest.in"+ cp "conftest.in" "conftest.nl"+ printf '%s\n' 'GREP' >> "conftest.nl"+ "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break+ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break+ as_fn_arith $ac_count + 1 && ac_count=$as_val+ if test $ac_count -gt ${ac_path_GREP_max-0}; then+ # Best one so far, save it but keep looking for a better one+ ac_cv_path_GREP="$ac_path_GREP"+ ac_path_GREP_max=$ac_count+ fi+ # 10*(2^10) chars as input seems more than enough+ test $ac_count -gt 10 && break+ done+ rm -f conftest.in conftest.tmp conftest.nl conftest.out;;+esac++ $ac_path_GREP_found && break 3+ done+ done+ done+IFS=$as_save_IFS+ if test -z "$ac_cv_path_GREP"; then+ as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5+ fi+else+ ac_cv_path_GREP=$GREP+fi+ ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5+printf '%s\n' "$ac_cv_path_GREP" >&6; }+ GREP="$ac_cv_path_GREP"+++{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5+printf %s "checking for egrep... " >&6; }+if test ${ac_cv_path_EGREP+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1+ then ac_cv_path_EGREP="$GREP -E"+ else+ if test -z "$EGREP"; then+ ac_path_EGREP_found=false+ # Loop through the user's path and test for each of PROGNAME-LIST+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_prog in egrep+ do+ for ac_exec_ext in '' $ac_executable_extensions; do+ ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"+ as_fn_executable_p "$ac_path_EGREP" || continue+# Check for GNU ac_path_EGREP and select it if it is found.+ # Check for GNU $ac_path_EGREP+case `"$ac_path_EGREP" --version 2>&1` in #(+*GNU*)+ ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;+#(+*)+ ac_count=0+ printf %s 0123456789 >"conftest.in"+ while :+ do+ cat "conftest.in" "conftest.in" >"conftest.tmp"+ mv "conftest.tmp" "conftest.in"+ cp "conftest.in" "conftest.nl"+ printf '%s\n' 'EGREP' >> "conftest.nl"+ "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break+ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break+ as_fn_arith $ac_count + 1 && ac_count=$as_val+ if test $ac_count -gt ${ac_path_EGREP_max-0}; then+ # Best one so far, save it but keep looking for a better one+ ac_cv_path_EGREP="$ac_path_EGREP"+ ac_path_EGREP_max=$ac_count+ fi+ # 10*(2^10) chars as input seems more than enough+ test $ac_count -gt 10 && break+ done+ rm -f conftest.in conftest.tmp conftest.nl conftest.out;;+esac++ $ac_path_EGREP_found && break 3+ done+ done+ done+IFS=$as_save_IFS+ if test -z "$ac_cv_path_EGREP"; then+ as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5+ fi+else+ ac_cv_path_EGREP=$EGREP+fi++ fi ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5+printf '%s\n' "$ac_cv_path_EGREP" >&6; }+ EGREP="$ac_cv_path_EGREP"++ EGREP_TRADITIONAL=$EGREP+ ac_cv_path_EGREP_TRADITIONAL=$EGREP++{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5+printf %s "checking for fgrep... " >&6; }+if test ${ac_cv_path_FGREP+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1+ then ac_cv_path_FGREP="$GREP -F"+ else+ if test -z "$FGREP"; then+ ac_path_FGREP_found=false+ # Loop through the user's path and test for each of PROGNAME-LIST+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_prog in fgrep+ do+ for ac_exec_ext in '' $ac_executable_extensions; do+ ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"+ as_fn_executable_p "$ac_path_FGREP" || continue+# Check for GNU ac_path_FGREP and select it if it is found.+ # Check for GNU $ac_path_FGREP+case `"$ac_path_FGREP" --version 2>&1` in #(+*GNU*)+ ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;+#(+*)+ ac_count=0+ printf %s 0123456789 >"conftest.in"+ while :+ do+ cat "conftest.in" "conftest.in" >"conftest.tmp"+ mv "conftest.tmp" "conftest.in"+ cp "conftest.in" "conftest.nl"+ printf '%s\n' 'FGREP' >> "conftest.nl"+ "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break+ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break+ as_fn_arith $ac_count + 1 && ac_count=$as_val+ if test $ac_count -gt ${ac_path_FGREP_max-0}; then+ # Best one so far, save it but keep looking for a better one+ ac_cv_path_FGREP="$ac_path_FGREP"+ ac_path_FGREP_max=$ac_count+ fi+ # 10*(2^10) chars as input seems more than enough+ test $ac_count -gt 10 && break+ done+ rm -f conftest.in conftest.tmp conftest.nl conftest.out;;+esac++ $ac_path_FGREP_found && break 3+ done+ done+ done+IFS=$as_save_IFS+ if test -z "$ac_cv_path_FGREP"; then+ as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5+ fi+else+ ac_cv_path_FGREP=$FGREP+fi++ fi ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5+printf '%s\n' "$ac_cv_path_FGREP" >&6; }+ FGREP="$ac_cv_path_FGREP"+++test -z "$GREP" && GREP=grep++++++++++++++++++++# Check whether --with-gnu-ld was given.+if test ${with_gnu_ld+y}+then :+ withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes+else case e in #(+ e) with_gnu_ld=no ;;+esac+fi++ac_prog=ld+if test yes = "$GCC"; then+ # Check if gcc -print-prog-name=ld gives a path.+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5+printf %s "checking for ld used by $CC... " >&6; }+ case $host in+ *-*-mingw* | *-*-windows*)+ # gcc leaves a trailing carriage return, which upsets mingw+ ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;+ *)+ ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;+ esac+ case $ac_prog in+ # Accept absolute paths.+ [\\/]* | ?:[\\/]*)+ re_direlt='/[^/][^/]*/\.\./'+ # Canonicalize the pathname of ld+ ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`+ while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do+ ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`+ done+ test -z "$LD" && LD=$ac_prog+ ;;+ "")+ # If it fails, then pretend we aren't using GCC.+ ac_prog=ld+ ;;+ *)+ # If it is relative, then search for the first ld in PATH.+ with_gnu_ld=unknown+ ;;+ esac+elif test yes = "$with_gnu_ld"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5+printf %s "checking for GNU ld... " >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5+printf %s "checking for non-GNU ld... " >&6; }+fi+if test ${lt_cv_path_LD+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test -z "$LD"; then+ lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR+ for ac_dir in $PATH; do+ IFS=$lt_save_ifs+ test -z "$ac_dir" && ac_dir=.+ if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then+ lt_cv_path_LD=$ac_dir/$ac_prog+ # Check to see if the program is GNU ld. I'd rather use --version,+ # but apparently some variants of GNU ld only accept -v.+ # Break only if it was the GNU/non-GNU ld that we prefer.+ case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in+ *GNU* | *'with BFD'*)+ test no != "$with_gnu_ld" && break+ ;;+ *)+ test yes != "$with_gnu_ld" && break+ ;;+ esac+ fi+ done+ IFS=$lt_save_ifs+else+ lt_cv_path_LD=$LD # Let the user override the test with a path.+fi ;;+esac+fi++LD=$lt_cv_path_LD+if test -n "$LD"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $LD" >&5+printf '%s\n' "$LD" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+fi+test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5+printf %s "checking if the linker ($LD) is GNU ld... " >&6; }+if test ${lt_cv_prog_gnu_ld+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) # I'd rather use --version here, but apparently some GNU lds only accept -v.+case `$LD -v 2>&1 </dev/null` in+*GNU* | *'with BFD'*)+ lt_cv_prog_gnu_ld=yes+ ;;+*)+ lt_cv_prog_gnu_ld=no+ ;;+esac ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5+printf '%s\n' "$lt_cv_prog_gnu_ld" >&6; }+with_gnu_ld=$lt_cv_prog_gnu_ld++++++++++{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5+printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }+if test ${lt_cv_path_NM+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test -n "$NM"; then+ # Let the user override the test.+ lt_cv_path_NM=$NM+else+ lt_nm_to_check=${ac_tool_prefix}nm+ if test -n "$ac_tool_prefix" && test "$build" = "$host"; then+ lt_nm_to_check="$lt_nm_to_check nm"+ fi+ for lt_tmp_nm in $lt_nm_to_check; do+ lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR+ for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do+ IFS=$lt_save_ifs+ test -z "$ac_dir" && ac_dir=.+ tmp_nm=$ac_dir/$lt_tmp_nm+ if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then+ # Check to see if the nm accepts a BSD-compat flag.+ # Adding the 'sed 1q' prevents false positives on HP-UX, which says:+ # nm: unknown option "B" ignored+ # Tru64's nm complains that /dev/null is an invalid object file+ # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty+ case $build_os in+ mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;+ *) lt_bad_file=/dev/null ;;+ esac+ case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in+ *$lt_bad_file* | *'Invalid file or object type'*)+ lt_cv_path_NM="$tmp_nm -B"+ break 2+ ;;+ *)+ case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in+ */dev/null*)+ lt_cv_path_NM="$tmp_nm -p"+ break 2+ ;;+ *)+ lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but+ continue # so that we can try to find one that supports BSD flags+ ;;+ esac+ ;;+ esac+ fi+ done+ IFS=$lt_save_ifs+ done+ : ${lt_cv_path_NM=no}+fi ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5+printf '%s\n' "$lt_cv_path_NM" >&6; }+if test no != "$lt_cv_path_NM"; then+ NM=$lt_cv_path_NM+else+ # Didn't find any BSD compatible name lister, look for dumpbin.+ if test -n "$DUMPBIN"; then :+ # Let the user override the test.+ else+ if test -n "$ac_tool_prefix"; then+ for ac_prog in dumpbin "link -dump"+ do+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.+set dummy $ac_tool_prefix$ac_prog; ac_word=$2+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5+printf %s "checking for $ac_word... " >&6; }+if test ${ac_cv_prog_DUMPBIN+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test -n "$DUMPBIN"; then+ ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.+else+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_exec_ext in '' $ac_executable_extensions; do+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then+ ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5+ break 2+ fi+done+ done+IFS=$as_save_IFS++fi ;;+esac+fi+DUMPBIN=$ac_cv_prog_DUMPBIN+if test -n "$DUMPBIN"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5+printf '%s\n' "$DUMPBIN" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+fi+++ test -n "$DUMPBIN" && break+ done+fi+if test -z "$DUMPBIN"; then+ ac_ct_DUMPBIN=$DUMPBIN+ for ac_prog in dumpbin "link -dump"+do+ # Extract the first word of "$ac_prog", so it can be a program name with args.+set dummy $ac_prog; ac_word=$2+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5+printf %s "checking for $ac_word... " >&6; }+if test ${ac_cv_prog_ac_ct_DUMPBIN+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test -n "$ac_ct_DUMPBIN"; then+ ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.+else+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_exec_ext in '' $ac_executable_extensions; do+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then+ ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5+ break 2+ fi+done+ done+IFS=$as_save_IFS++fi ;;+esac+fi+ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN+if test -n "$ac_ct_DUMPBIN"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5+printf '%s\n' "$ac_ct_DUMPBIN" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+fi+++ test -n "$ac_ct_DUMPBIN" && break+done++ if test "x$ac_ct_DUMPBIN" = x; then+ DUMPBIN=":"+ else+ case $cross_compiling:$ac_tool_warned in+yes:)+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5+printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}+ac_tool_warned=yes ;;+esac+ DUMPBIN=$ac_ct_DUMPBIN+ fi+fi++ case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in+ *COFF*)+ DUMPBIN="$DUMPBIN -symbols -headers"+ ;;+ *)+ DUMPBIN=:+ ;;+ esac+ fi++ if test : != "$DUMPBIN"; then+ NM=$DUMPBIN+ fi+fi+test -z "$NM" && NM=nm+++++++{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5+printf %s "checking the name lister ($NM) interface... " >&6; }+if test ${lt_cv_nm_interface+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) lt_cv_nm_interface="BSD nm"+ echo "int some_variable = 0;" > conftest.$ac_ext+ (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)+ (eval "$ac_compile" 2>conftest.err)+ cat conftest.err >&5+ (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)+ (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)+ cat conftest.err >&5+ (eval echo "\"\$as_me:$LINENO: output\"" >&5)+ cat conftest.out >&5+ if $GREP 'External.*some_variable' conftest.out > /dev/null; then+ lt_cv_nm_interface="MS dumpbin"+ fi+ rm -f conftest* ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5+printf '%s\n' "$lt_cv_nm_interface" >&6; }++{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5+printf %s "checking whether ln -s works... " >&6; }+LN_S=$as_ln_s+if test "$LN_S" = "ln -s"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5+printf '%s\n' "yes" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5+printf '%s\n' "no, using $LN_S" >&6; }+fi++# find the maximum length of command line arguments+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5+printf %s "checking the maximum length of command line arguments... " >&6; }+if test ${lt_cv_sys_max_cmd_len+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) i=0+ teststring=ABCD++ case $build_os in+ msdosdjgpp*)+ # On DJGPP, this test can blow up pretty badly due to problems in libc+ # (any single argument exceeding 2000 bytes causes a buffer overrun+ # during glob expansion). Even if it were fixed, the result of this+ # check would be larger than it should be.+ lt_cv_sys_max_cmd_len=12288; # 12K is about right+ ;;++ gnu* | ironclad*)+ # Under GNU Hurd and Ironclad, this test is not required because there+ # is no limit to the length of command line arguments.+ # Libtool will interpret -1 as no limit whatsoever+ lt_cv_sys_max_cmd_len=-1;+ ;;++ cygwin* | mingw* | windows* | cegcc*)+ # On Win9x/ME, this test blows up -- it succeeds, but takes+ # about 5 minutes as the teststring grows exponentially.+ # Worse, since 9x/ME are not pre-emptively multitasking,+ # you end up with a "frozen" computer, even though with patience+ # the test eventually succeeds (with a max line length of 256k).+ # Instead, let's just punt: use the minimum linelength reported by+ # all of the supported platforms: 8192 (on NT/2K/XP).+ lt_cv_sys_max_cmd_len=8192;+ ;;++ mint*)+ # On MiNT this can take a long time and run out of memory.+ lt_cv_sys_max_cmd_len=8192;+ ;;++ amigaos*)+ # On AmigaOS with pdksh, this test takes hours, literally.+ # So we just punt and use a minimum line length of 8192.+ lt_cv_sys_max_cmd_len=8192;+ ;;++ darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)+ # This has been around since 386BSD, at least. Likely further.+ if test -x /sbin/sysctl; then+ lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`+ elif test -x /usr/sbin/sysctl; then+ lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`+ else+ lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs+ fi+ # And add a safety zone+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`+ ;;++ interix*)+ # We know the value 262144 and hardcode it with a safety zone (like BSD)+ lt_cv_sys_max_cmd_len=196608+ ;;++ os2*)+ # The test takes a long time on OS/2.+ lt_cv_sys_max_cmd_len=8192+ ;;++ osf*)+ # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure+ # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not+ # nice to cause kernel panics so lets avoid the loop below.+ # First set a reasonable default.+ lt_cv_sys_max_cmd_len=16384+ #+ if test -x /sbin/sysconfig; then+ case `/sbin/sysconfig -q proc exec_disable_arg_limit` in+ *1*) lt_cv_sys_max_cmd_len=-1 ;;+ esac+ fi+ ;;+ sco3.2v5*)+ lt_cv_sys_max_cmd_len=102400+ ;;+ sysv5* | sco5v6* | sysv4.2uw2*)+ kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`+ if test -n "$kargmax"; then+ lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`+ else+ lt_cv_sys_max_cmd_len=32768+ fi+ ;;+ *)+ lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`+ if test -n "$lt_cv_sys_max_cmd_len" && \+ test undefined != "$lt_cv_sys_max_cmd_len"; then+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`+ else+ # Make teststring a little bigger before we do anything with it.+ # a 1K string should be a reasonable start.+ for i in 1 2 3 4 5 6 7 8; do+ teststring=$teststring$teststring+ done+ SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}+ # If test is not a shell built-in, we'll probably end up computing a+ # maximum length that is only half of the actual maximum length, but+ # we can't tell.+ while { test X`env echo "$teststring$teststring" 2>/dev/null` \+ = "X$teststring$teststring"; } >/dev/null 2>&1 &&+ test 17 != "$i" # 1/2 MB should be enough+ do+ i=`expr $i + 1`+ teststring=$teststring$teststring+ done+ # Only check the string length outside the loop.+ lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`+ teststring=+ # Add a significant safety factor because C++ compilers can tack on+ # massive amounts of additional arguments before passing them to the+ # linker. It appears as though 1/2 is a usable value.+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`+ fi+ ;;+ esac+ ;;+esac+fi++if test -n "$lt_cv_sys_max_cmd_len"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5+printf '%s\n' "$lt_cv_sys_max_cmd_len" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none" >&5+printf '%s\n' "none" >&6; }+fi+max_cmd_len=$lt_cv_sys_max_cmd_len+++++++: ${CP="cp -f"}+: ${MV="mv -f"}+: ${RM="rm -f"}++if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then+ lt_unset=unset+else+ lt_unset=false+fi++++++# test EBCDIC or ASCII+case `echo X|tr X '\101'` in+ A) # ASCII based system+ # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr+ lt_SP2NL='tr \040 \012'+ lt_NL2SP='tr \015\012 \040\040'+ ;;+ *) # EBCDIC based system+ lt_SP2NL='tr \100 \n'+ lt_NL2SP='tr \r\n \100\100'+ ;;+esac++++++++++{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5+printf %s "checking how to convert $build file names to $host format... " >&6; }+if test ${lt_cv_to_host_file_cmd+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) case $host in+ *-*-mingw* )+ case $build in+ *-*-mingw* | *-*-windows* ) # actually msys+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32+ ;;+ *-*-cygwin* )+ lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32+ ;;+ * ) # otherwise, assume *nix+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32+ ;;+ esac+ ;;+ *-*-cygwin* )+ case $build in+ *-*-mingw* | *-*-windows* ) # actually msys+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin+ ;;+ *-*-cygwin* )+ lt_cv_to_host_file_cmd=func_convert_file_noop+ ;;+ * ) # otherwise, assume *nix+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin+ ;;+ esac+ ;;+ * ) # unhandled hosts (and "normal" native builds)+ lt_cv_to_host_file_cmd=func_convert_file_noop+ ;;+esac+ ;;+esac+fi++to_host_file_cmd=$lt_cv_to_host_file_cmd+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5+printf '%s\n' "$lt_cv_to_host_file_cmd" >&6; }++++++{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5+printf %s "checking how to convert $build file names to toolchain format... " >&6; }+if test ${lt_cv_to_tool_file_cmd+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) #assume ordinary cross tools, or native build.+lt_cv_to_tool_file_cmd=func_convert_file_noop+case $host in+ *-*-mingw* | *-*-windows* )+ case $build in+ *-*-mingw* | *-*-windows* ) # actually msys+ lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32+ ;;+ esac+ ;;+esac+ ;;+esac+fi++to_tool_file_cmd=$lt_cv_to_tool_file_cmd+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5+printf '%s\n' "$lt_cv_to_tool_file_cmd" >&6; }++++++{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5+printf %s "checking for $LD option to reload object files... " >&6; }+if test ${lt_cv_ld_reload_flag+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) lt_cv_ld_reload_flag='-r' ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5+printf '%s\n' "$lt_cv_ld_reload_flag" >&6; }+reload_flag=$lt_cv_ld_reload_flag+case $reload_flag in+"" | " "*) ;;+*) reload_flag=" $reload_flag" ;;+esac+reload_cmds='$LD$reload_flag -o $output$reload_objs'+case $host_os in+ cygwin* | mingw* | windows* | pw32* | cegcc*)+ if test yes != "$GCC"; then+ reload_cmds=false+ fi+ ;;+ darwin*)+ if test yes = "$GCC"; then+ reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'+ else+ reload_cmds='$LD$reload_flag -o $output$reload_objs'+ fi+ ;;+esac++++++++++# Extract the first word of "file", so it can be a program name with args.+set dummy file; ac_word=$2+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5+printf %s "checking for $ac_word... " >&6; }+if test ${ac_cv_prog_FILECMD+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test -n "$FILECMD"; then+ ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.+else+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_exec_ext in '' $ac_executable_extensions; do+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then+ ac_cv_prog_FILECMD="file"+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5+ break 2+ fi+done+ done+IFS=$as_save_IFS++ test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"+fi ;;+esac+fi+FILECMD=$ac_cv_prog_FILECMD+if test -n "$FILECMD"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5+printf '%s\n' "$FILECMD" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+fi+++++++++if test -n "$ac_tool_prefix"; then+ # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.+set dummy ${ac_tool_prefix}objdump; ac_word=$2+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5+printf %s "checking for $ac_word... " >&6; }+if test ${ac_cv_prog_OBJDUMP+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test -n "$OBJDUMP"; then+ ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.+else+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_exec_ext in '' $ac_executable_extensions; do+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then+ ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5+ break 2+ fi+done+ done+IFS=$as_save_IFS++fi ;;+esac+fi+OBJDUMP=$ac_cv_prog_OBJDUMP+if test -n "$OBJDUMP"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5+printf '%s\n' "$OBJDUMP" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+fi+++fi+if test -z "$ac_cv_prog_OBJDUMP"; then+ ac_ct_OBJDUMP=$OBJDUMP+ # Extract the first word of "objdump", so it can be a program name with args.+set dummy objdump; ac_word=$2+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5+printf %s "checking for $ac_word... " >&6; }+if test ${ac_cv_prog_ac_ct_OBJDUMP+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test -n "$ac_ct_OBJDUMP"; then+ ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.+else+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_exec_ext in '' $ac_executable_extensions; do+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then+ ac_cv_prog_ac_ct_OBJDUMP="objdump"+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5+ break 2+ fi+done+ done+IFS=$as_save_IFS++fi ;;+esac+fi+ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP+if test -n "$ac_ct_OBJDUMP"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5+printf '%s\n' "$ac_ct_OBJDUMP" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+fi++ if test "x$ac_ct_OBJDUMP" = x; then+ OBJDUMP="false"+ else+ case $cross_compiling:$ac_tool_warned in+yes:)+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5+printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}+ac_tool_warned=yes ;;+esac+ OBJDUMP=$ac_ct_OBJDUMP+ fi+else+ OBJDUMP="$ac_cv_prog_OBJDUMP"+fi++test -z "$OBJDUMP" && OBJDUMP=objdump+++++++{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5+printf %s "checking how to recognize dependent libraries... " >&6; }+if test ${lt_cv_deplibs_check_method+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) lt_cv_file_magic_cmd='$MAGIC_CMD'+lt_cv_file_magic_test_file=+lt_cv_deplibs_check_method='unknown'+# Need to set the preceding variable on all platforms that support+# interlibrary dependencies.+# 'none' -- dependencies not supported.+# 'unknown' -- same as none, but documents that we really don't know.+# 'pass_all' -- all dependencies passed with no checks.+# 'file_magic [[regex]]' -- check by looking for files in library path+# that responds to the $file_magic_cmd with a given extended regex.+# If you have 'file' or equivalent on your system and you're not sure+# whether 'pass_all' will *always* work, you probably want this one.++case $host_os in+aix[4-9]*)+ lt_cv_deplibs_check_method=pass_all+ ;;++beos*)+ lt_cv_deplibs_check_method=pass_all+ ;;++bsdi[45]*)+ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'+ lt_cv_file_magic_cmd='$FILECMD -L'+ lt_cv_file_magic_test_file=/shlib/libc.so+ ;;++cygwin*)+ # func_win32_libid is a shell function defined in ltmain.sh+ lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'+ lt_cv_file_magic_cmd='func_win32_libid'+ ;;++mingw* | windows* | pw32*)+ # Base MSYS/MinGW do not provide the 'file' command needed by+ # func_win32_libid shell function, so use a weaker test based on 'objdump',+ # unless we find 'file', for example because we are cross-compiling.+ if ( file / ) >/dev/null 2>&1; then+ lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'+ lt_cv_file_magic_cmd='func_win32_libid'+ else+ # Keep this pattern in sync with the one in func_win32_libid.+ lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'+ lt_cv_file_magic_cmd='$OBJDUMP -f'+ fi+ ;;++cegcc*)+ # use the weaker test based on 'objdump'. See mingw*.+ lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'+ lt_cv_file_magic_cmd='$OBJDUMP -f'+ ;;++darwin* | rhapsody*)+ lt_cv_deplibs_check_method=pass_all+ ;;++freebsd* | dragonfly* | midnightbsd*)+ if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then+ case $host_cpu in+ i*86 )+ # Not sure whether the presence of OpenBSD here was a mistake.+ # Let's accept both of them until this is cleared up.+ lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'+ lt_cv_file_magic_cmd=$FILECMD+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`+ ;;+ esac+ else+ lt_cv_deplibs_check_method=pass_all+ fi+ ;;++haiku*)+ lt_cv_deplibs_check_method=pass_all+ ;;++hpux10.20* | hpux11*)+ lt_cv_file_magic_cmd=$FILECMD+ case $host_cpu in+ ia64*)+ lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'+ lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so+ ;;+ hppa*64*)+ lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'+ lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl+ ;;+ *)+ lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'+ lt_cv_file_magic_test_file=/usr/lib/libc.sl+ ;;+ esac+ ;;++interix[3-9]*)+ # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'+ ;;++irix5* | irix6* | nonstopux*)+ case $LD in+ *-32|*"-32 ") libmagic=32-bit;;+ *-n32|*"-n32 ") libmagic=N32;;+ *-64|*"-64 ") libmagic=64-bit;;+ *) libmagic=never-match;;+ esac+ lt_cv_deplibs_check_method=pass_all+ ;;++# This must be glibc/ELF.+linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)+ lt_cv_deplibs_check_method=pass_all+ ;;++*-mlibc)+ lt_cv_deplibs_check_method=pass_all+ ;;++netbsd* | netbsdelf*-gnu)+ if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'+ else+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'+ fi+ ;;++newos6*)+ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'+ lt_cv_file_magic_cmd=$FILECMD+ lt_cv_file_magic_test_file=/usr/lib/libnls.so+ ;;++*nto* | *qnx*)+ lt_cv_deplibs_check_method=pass_all+ ;;++openbsd*)+ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'+ else+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'+ fi+ ;;++osf3* | osf4* | osf5*)+ lt_cv_deplibs_check_method=pass_all+ ;;++rdos*)+ lt_cv_deplibs_check_method=pass_all+ ;;++serenity*)+ lt_cv_deplibs_check_method=pass_all+ ;;++solaris*)+ lt_cv_deplibs_check_method=pass_all+ ;;++sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)+ lt_cv_deplibs_check_method=pass_all+ ;;++sysv4 | sysv4.3*)+ case $host_vendor in+ motorola)+ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`+ ;;+ ncr)+ lt_cv_deplibs_check_method=pass_all+ ;;+ sequent)+ lt_cv_file_magic_cmd='/bin/file'+ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'+ ;;+ sni)+ lt_cv_file_magic_cmd='/bin/file'+ lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"+ lt_cv_file_magic_test_file=/lib/libc.so+ ;;+ siemens)+ lt_cv_deplibs_check_method=pass_all+ ;;+ pc)+ lt_cv_deplibs_check_method=pass_all+ ;;+ esac+ ;;++tpf*)+ lt_cv_deplibs_check_method=pass_all+ ;;+os2*)+ lt_cv_deplibs_check_method=pass_all+ ;;+esac+ ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5+printf '%s\n' "$lt_cv_deplibs_check_method" >&6; }++file_magic_glob=+want_nocaseglob=no+if test "$build" = "$host"; then+ case $host_os in+ mingw* | windows* | pw32*)+ if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then+ want_nocaseglob=yes+ else+ file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`+ fi+ ;;+ esac+fi++file_magic_cmd=$lt_cv_file_magic_cmd+deplibs_check_method=$lt_cv_deplibs_check_method+test -z "$deplibs_check_method" && deplibs_check_method=unknown+++++++++++++++++++++++if test -n "$ac_tool_prefix"; then+ # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.+set dummy ${ac_tool_prefix}dlltool; ac_word=$2+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5+printf %s "checking for $ac_word... " >&6; }+if test ${ac_cv_prog_DLLTOOL+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test -n "$DLLTOOL"; then+ ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.+else+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_exec_ext in '' $ac_executable_extensions; do+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then+ ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5+ break 2+ fi+done+ done+IFS=$as_save_IFS++fi ;;+esac+fi+DLLTOOL=$ac_cv_prog_DLLTOOL+if test -n "$DLLTOOL"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5+printf '%s\n' "$DLLTOOL" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+fi+++fi+if test -z "$ac_cv_prog_DLLTOOL"; then+ ac_ct_DLLTOOL=$DLLTOOL+ # Extract the first word of "dlltool", so it can be a program name with args.+set dummy dlltool; ac_word=$2+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5+printf %s "checking for $ac_word... " >&6; }+if test ${ac_cv_prog_ac_ct_DLLTOOL+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test -n "$ac_ct_DLLTOOL"; then+ ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.+else+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_exec_ext in '' $ac_executable_extensions; do+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then+ ac_cv_prog_ac_ct_DLLTOOL="dlltool"+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5+ break 2+ fi+done+ done+IFS=$as_save_IFS++fi ;;+esac+fi+ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL+if test -n "$ac_ct_DLLTOOL"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5+printf '%s\n' "$ac_ct_DLLTOOL" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+fi++ if test "x$ac_ct_DLLTOOL" = x; then+ DLLTOOL="false"+ else+ case $cross_compiling:$ac_tool_warned in+yes:)+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5+printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}+ac_tool_warned=yes ;;+esac+ DLLTOOL=$ac_ct_DLLTOOL+ fi+else+ DLLTOOL="$ac_cv_prog_DLLTOOL"+fi++test -z "$DLLTOOL" && DLLTOOL=dlltool++++++++{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5+printf %s "checking how to associate runtime and link libraries... " >&6; }+if test ${lt_cv_sharedlib_from_linklib_cmd+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) lt_cv_sharedlib_from_linklib_cmd='unknown'++case $host_os in+cygwin* | mingw* | windows* | pw32* | cegcc*)+ # two different shell functions defined in ltmain.sh;+ # decide which one to use based on capabilities of $DLLTOOL+ case `$DLLTOOL --help 2>&1` in+ *--identify-strict*)+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib+ ;;+ *)+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback+ ;;+ esac+ ;;+*)+ # fallback: assume linklib IS sharedlib+ lt_cv_sharedlib_from_linklib_cmd=$ECHO+ ;;+esac+ ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5+printf '%s\n' "$lt_cv_sharedlib_from_linklib_cmd" >&6; }+sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd+test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO++++++++if test -n "$ac_tool_prefix"; then+ # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.+set dummy ${ac_tool_prefix}ranlib; ac_word=$2+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5+printf %s "checking for $ac_word... " >&6; }+if test ${ac_cv_prog_RANLIB+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test -n "$RANLIB"; then+ ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.+else+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_exec_ext in '' $ac_executable_extensions; do+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then+ ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5+ break 2+ fi+done+ done+IFS=$as_save_IFS++fi ;;+esac+fi+RANLIB=$ac_cv_prog_RANLIB+if test -n "$RANLIB"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5+printf '%s\n' "$RANLIB" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+fi+++fi+if test -z "$ac_cv_prog_RANLIB"; then+ ac_ct_RANLIB=$RANLIB+ # Extract the first word of "ranlib", so it can be a program name with args.+set dummy ranlib; ac_word=$2+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5+printf %s "checking for $ac_word... " >&6; }+if test ${ac_cv_prog_ac_ct_RANLIB+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test -n "$ac_ct_RANLIB"; then+ ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.+else+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_exec_ext in '' $ac_executable_extensions; do+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then+ ac_cv_prog_ac_ct_RANLIB="ranlib"+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5+ break 2+ fi+done+ done+IFS=$as_save_IFS++fi ;;+esac+fi+ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB+if test -n "$ac_ct_RANLIB"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5+printf '%s\n' "$ac_ct_RANLIB" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+fi++ if test "x$ac_ct_RANLIB" = x; then+ RANLIB=":"+ else+ case $cross_compiling:$ac_tool_warned in+yes:)+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5+printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}+ac_tool_warned=yes ;;+esac+ RANLIB=$ac_ct_RANLIB+ fi+else+ RANLIB="$ac_cv_prog_RANLIB"+fi++if test -n "$ac_tool_prefix"; then+ for ac_prog in ar+ do+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.+set dummy $ac_tool_prefix$ac_prog; ac_word=$2+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5+printf %s "checking for $ac_word... " >&6; }+if test ${ac_cv_prog_AR+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test -n "$AR"; then+ ac_cv_prog_AR="$AR" # Let the user override the test.+else+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_exec_ext in '' $ac_executable_extensions; do+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then+ ac_cv_prog_AR="$ac_tool_prefix$ac_prog"+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5+ break 2+ fi+done+ done+IFS=$as_save_IFS++fi ;;+esac+fi+AR=$ac_cv_prog_AR+if test -n "$AR"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $AR" >&5+printf '%s\n' "$AR" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+fi+++ test -n "$AR" && break+ done+fi+if test -z "$AR"; then+ ac_ct_AR=$AR+ for ac_prog in ar+do+ # Extract the first word of "$ac_prog", so it can be a program name with args.+set dummy $ac_prog; ac_word=$2+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5+printf %s "checking for $ac_word... " >&6; }+if test ${ac_cv_prog_ac_ct_AR+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test -n "$ac_ct_AR"; then+ ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.+else+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_exec_ext in '' $ac_executable_extensions; do+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then+ ac_cv_prog_ac_ct_AR="$ac_prog"+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5+ break 2+ fi+done+ done+IFS=$as_save_IFS++fi ;;+esac+fi+ac_ct_AR=$ac_cv_prog_ac_ct_AR+if test -n "$ac_ct_AR"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5+printf '%s\n' "$ac_ct_AR" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+fi+++ test -n "$ac_ct_AR" && break+done++ if test "x$ac_ct_AR" = x; then+ AR="false"+ else+ case $cross_compiling:$ac_tool_warned in+yes:)+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5+printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}+ac_tool_warned=yes ;;+esac+ AR=$ac_ct_AR+ fi+fi++: ${AR=ar}+++++++# Use ARFLAGS variable as AR's operation code to sync the variable naming with+# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have+# higher priority because that's what people were doing historically (setting+# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS+# variable obsoleted/removed.++test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}+lt_ar_flags=$AR_FLAGS+++++++# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override+# by AR_FLAGS because that was never working and AR_FLAGS is about to die.+++++++{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5+printf %s "checking for archiver @FILE support... " >&6; }+if test ${lt_cv_ar_at_file+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) lt_cv_ar_at_file=no+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */++int+main (void)+{++ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_compile "$LINENO"+then :+ echo conftest.$ac_objext > conftest.lst+ lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5+ (eval $lt_ar_try) 2>&5+ ac_status=$?+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5+ test $ac_status = 0; }+ if test 0 -eq "$ac_status"; then+ # Ensure the archiver fails upon bogus file names.+ rm -f conftest.$ac_objext libconftest.a+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5+ (eval $lt_ar_try) 2>&5+ ac_status=$?+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5+ test $ac_status = 0; }+ if test 0 -ne "$ac_status"; then+ lt_cv_ar_at_file=@+ fi+ fi+ rm -f conftest.* libconftest.a++fi+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext+ ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5+printf '%s\n' "$lt_cv_ar_at_file" >&6; }++if test no = "$lt_cv_ar_at_file"; then+ archiver_list_spec=+else+ archiver_list_spec=$lt_cv_ar_at_file+fi++++++++if test -n "$ac_tool_prefix"; then+ # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.+set dummy ${ac_tool_prefix}strip; ac_word=$2+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5+printf %s "checking for $ac_word... " >&6; }+if test ${ac_cv_prog_STRIP+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test -n "$STRIP"; then+ ac_cv_prog_STRIP="$STRIP" # Let the user override the test.+else+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_exec_ext in '' $ac_executable_extensions; do+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then+ ac_cv_prog_STRIP="${ac_tool_prefix}strip"+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5+ break 2+ fi+done+ done+IFS=$as_save_IFS++fi ;;+esac+fi+STRIP=$ac_cv_prog_STRIP+if test -n "$STRIP"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5+printf '%s\n' "$STRIP" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+fi+++fi+if test -z "$ac_cv_prog_STRIP"; then+ ac_ct_STRIP=$STRIP+ # Extract the first word of "strip", so it can be a program name with args.+set dummy strip; ac_word=$2+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5+printf %s "checking for $ac_word... " >&6; }+if test ${ac_cv_prog_ac_ct_STRIP+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test -n "$ac_ct_STRIP"; then+ ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.+else+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_exec_ext in '' $ac_executable_extensions; do+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then+ ac_cv_prog_ac_ct_STRIP="strip"+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5+ break 2+ fi+done+ done+IFS=$as_save_IFS++fi ;;+esac+fi+ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP+if test -n "$ac_ct_STRIP"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5+printf '%s\n' "$ac_ct_STRIP" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+fi++ if test "x$ac_ct_STRIP" = x; then+ STRIP=":"+ else+ case $cross_compiling:$ac_tool_warned in+yes:)+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5+printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}+ac_tool_warned=yes ;;+esac+ STRIP=$ac_ct_STRIP+ fi+else+ STRIP="$ac_cv_prog_STRIP"+fi++test -z "$STRIP" && STRIP=:++++++++test -z "$RANLIB" && RANLIB=:+++++++# Determine commands to create old-style static archives.+old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'+old_postinstall_cmds='chmod 644 $oldlib'+old_postuninstall_cmds=++if test -n "$RANLIB"; then+ old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"+ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"+fi++case $host_os in+ darwin*)+ lock_old_archive_extraction=yes ;;+ *)+ lock_old_archive_extraction=no ;;+esac++++++++++++++++++++++for ac_prog in gawk mawk nawk awk 'busybox awk'+do+ # Extract the first word of "$ac_prog", so it can be a program name with args.+set dummy $ac_prog; ac_word=$2+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5+printf %s "checking for $ac_word... " >&6; }+if test ${ac_cv_prog_AWK+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test -n "$AWK"; then+ ac_cv_prog_AWK="$AWK" # Let the user override the test.+else+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_exec_ext in '' $ac_executable_extensions; do+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then+ ac_cv_prog_AWK="$ac_prog"+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5+ break 2+ fi+done+ done+IFS=$as_save_IFS++fi ;;+esac+fi+AWK=$ac_cv_prog_AWK+if test -n "$AWK"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5+printf '%s\n' "$AWK" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+fi+++ test -n "$AWK" && break+done++++++++++++++++++++# If no C compiler was specified, use CC.+LTCC=${LTCC-"$CC"}++# If no C compiler flags were specified, use CFLAGS.+LTCFLAGS=${LTCFLAGS-"$CFLAGS"}++# Allow CC to be a program name with arguments.+compiler=$CC+++# Check for command to grab the raw symbol name followed by C symbol from nm.+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5+printf %s "checking command to parse $NM output from $compiler object... " >&6; }+if test ${lt_cv_sys_global_symbol_pipe+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e)+# These are sane defaults that work on at least a few old systems.+# [They come from Ultrix. What could be older than Ultrix?!! ;)]++# Character class describing NM global symbol codes.+symcode='[BCDEGRST]'++# Regexp to match symbols that can be accessed directly from C.+sympat='\([_A-Za-z][_A-Za-z0-9]*\)'++# Define system-specific variables.+case $host_os in+aix*)+ symcode='[BCDT]'+ ;;+cygwin* | mingw* | windows* | pw32* | cegcc*)+ symcode='[ABCDGISTW]'+ ;;+hpux*)+ if test ia64 = "$host_cpu"; then+ symcode='[ABCDEGRST]'+ fi+ ;;+irix* | nonstopux*)+ symcode='[BCDEGRST]'+ ;;+osf*)+ symcode='[BCDEGQRST]'+ ;;+solaris*)+ symcode='[BCDRT]'+ ;;+sco3.2v5*)+ symcode='[DT]'+ ;;+sysv4.2uw2*)+ symcode='[DT]'+ ;;+sysv5* | sco5v6* | unixware* | OpenUNIX*)+ symcode='[ABDT]'+ ;;+sysv4)+ symcode='[DFNSTU]'+ ;;+esac++# If we're using GNU nm, then use its standard symbol codes.+case `$NM -V 2>&1` in+*GNU* | *'with BFD'*)+ symcode='[ABCDGIRSTW]' ;;+esac++if test "$lt_cv_nm_interface" = "MS dumpbin"; then+ # Gets list of data symbols to import.+ lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"+ # Adjust the below global symbol transforms to fixup imported variables.+ lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"+ lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"+ lt_c_name_lib_hook="\+ -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\+ -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"+else+ # Disable hooks by default.+ lt_cv_sys_global_symbol_to_import=+ lt_cdecl_hook=+ lt_c_name_hook=+ lt_c_name_lib_hook=+fi++# Transform an extracted symbol line into a proper C declaration.+# Some systems (esp. on ia64) link data and code symbols differently,+# so use this general approach.+lt_cv_sys_global_symbol_to_cdecl="$SED -n"\+$lt_cdecl_hook\+" -e 's/^T .* \(.*\)$/extern int \1();/p'"\+" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"++# Transform an extracted symbol line into symbol name and symbol address+lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\+$lt_c_name_hook\+" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\+" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"++# Transform an extracted symbol line into symbol name with lib prefix and+# symbol address.+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\+$lt_c_name_lib_hook\+" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\+" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\+" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"++# Handle CRLF in mingw tool chain+opt_cr=+case $build_os in+mingw* | windows*)+ opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp+ ;;+esac++# Try without a prefix underscore, then with it.+for ac_symprfx in "" "_"; do++ # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.+ symxfrm="\\1 $ac_symprfx\\2 \\2"++ # Write the raw and C identifiers.+ if test "$lt_cv_nm_interface" = "MS dumpbin"; then+ # Fake it for dumpbin and say T for any non-static function,+ # D for any global variable and I for any imported variable.+ # Also find C++ and __fastcall symbols from MSVC++ or ICC,+ # which start with @ or ?.+ lt_cv_sys_global_symbol_pipe="$AWK '"\+" {last_section=section; section=\$ 3};"\+" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\+" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\+" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\+" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\+" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\+" \$ 0!~/External *\|/{next};"\+" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\+" {if(hide[section]) next};"\+" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\+" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\+" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\+" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\+" ' prfx=^$ac_symprfx"+ else+ lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"+ fi+ lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"++ # Check to see that the pipe works correctly.+ pipe_works=no++ rm -f conftest*+ cat > conftest.$ac_ext <<_LT_EOF+#ifdef __cplusplus+extern "C" {+#endif+char nm_test_var;+void nm_test_func(void);+void nm_test_func(void){}+#ifdef __cplusplus+}+#endif+int main(void){nm_test_var='a';nm_test_func();return(0);}+_LT_EOF++ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5+ (eval $ac_compile) 2>&5+ ac_status=$?+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5+ test $ac_status = 0; }; then+ # Now try to grab the symbols.+ nlist=conftest.nm+ $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5+ if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then+ # Try sorting and uniquifying the output.+ if sort "$nlist" | uniq > "$nlist"T; then+ mv -f "$nlist"T "$nlist"+ else+ rm -f "$nlist"T+ fi++ # Make sure that we snagged all the symbols we need.+ if $GREP ' nm_test_var$' "$nlist" >/dev/null; then+ if $GREP ' nm_test_func$' "$nlist" >/dev/null; then+ cat <<_LT_EOF > conftest.$ac_ext+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */+#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE+/* DATA imports from DLLs on WIN32 can't be const, because runtime+ relocations are performed -- see ld's documentation on pseudo-relocs. */+# define LT_DLSYM_CONST+#elif defined __osf__+/* This system does not cope well with relocations in const data. */+# define LT_DLSYM_CONST+#else+# define LT_DLSYM_CONST const+#endif++#ifdef __cplusplus+extern "C" {+#endif++_LT_EOF+ # Now generate the symbol file.+ eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'++ cat <<_LT_EOF >> conftest.$ac_ext++/* The mapping between symbol names and symbols. */+LT_DLSYM_CONST struct {+ const char *name;+ void *address;+}+lt__PROGRAM__LTX_preloaded_symbols[] =+{+ { "@PROGRAM@", (void *) 0 },+_LT_EOF+ $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext+ cat <<\_LT_EOF >> conftest.$ac_ext+ {0, (void *) 0}+};++/* This works around a problem in FreeBSD linker */+#ifdef FREEBSD_WORKAROUND+static const void *lt_preloaded_setup() {+ return lt__PROGRAM__LTX_preloaded_symbols;+}+#endif++#ifdef __cplusplus+}+#endif+_LT_EOF+ # Now try linking the two files.+ mv conftest.$ac_objext conftstm.$ac_objext+ lt_globsym_save_LIBS=$LIBS+ lt_globsym_save_CFLAGS=$CFLAGS+ LIBS=conftstm.$ac_objext+ CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5+ (eval $ac_link) 2>&5+ ac_status=$?+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5+ test $ac_status = 0; } && test -s conftest$ac_exeext; then+ pipe_works=yes+ fi+ LIBS=$lt_globsym_save_LIBS+ CFLAGS=$lt_globsym_save_CFLAGS+ else+ echo "cannot find nm_test_func in $nlist" >&5+ fi+ else+ echo "cannot find nm_test_var in $nlist" >&5+ fi+ else+ echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5+ fi+ else+ echo "$progname: failed program was:" >&5+ cat conftest.$ac_ext >&5+ fi+ rm -rf conftest* conftst*++ # Do not use the global_symbol_pipe unless it works.+ if test yes = "$pipe_works"; then+ break+ else+ lt_cv_sys_global_symbol_pipe=+ fi+done+ ;;+esac+fi++if test -z "$lt_cv_sys_global_symbol_pipe"; then+ lt_cv_sys_global_symbol_to_cdecl=+fi+if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: failed" >&5+printf '%s\n' "failed" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ok" >&5+printf '%s\n' "ok" >&6; }+fi++# Response file support.+if test "$lt_cv_nm_interface" = "MS dumpbin"; then+ nm_file_list_spec='@'+elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then+ nm_file_list_spec='@'+fi++++++++++++++++++++++++++++++++++++++{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5+printf %s "checking for sysroot... " >&6; }++# Check whether --with-sysroot was given.+if test ${with_sysroot+y}+then :+ withval=$with_sysroot;+else case e in #(+ e) with_sysroot=no ;;+esac+fi+++lt_sysroot=+case $with_sysroot in #(+ yes)+ if test yes = "$GCC"; then+ # Trim trailing / since we'll always append absolute paths and we want+ # to avoid //, if only for less confusing output for the user.+ lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`+ fi+ ;; #(+ /*)+ lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`+ ;; #(+ no|'')+ ;; #(+ *)+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5+printf '%s\n' "$with_sysroot" >&6; }+ as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5+ ;;+esac++ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5+printf '%s\n' "${lt_sysroot:-no}" >&6; }++++++{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5+printf %s "checking for a working dd... " >&6; }+if test ${ac_cv_path_lt_DD+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) printf 0123456789abcdef0123456789abcdef >conftest.i+cat conftest.i conftest.i >conftest2.i+: ${lt_DD:=$DD}+if test -z "$lt_DD"; then+ ac_path_lt_DD_found=false+ # Loop through the user's path and test for each of PROGNAME-LIST+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_prog in dd+ do+ for ac_exec_ext in '' $ac_executable_extensions; do+ ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"+ as_fn_executable_p "$ac_path_lt_DD" || continue+if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then+ cmp -s conftest.i conftest.out \+ && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:+fi+ $ac_path_lt_DD_found && break 3+ done+ done+ done+IFS=$as_save_IFS+ if test -z "$ac_cv_path_lt_DD"; then+ :+ fi+else+ ac_cv_path_lt_DD=$lt_DD+fi++rm -f conftest.i conftest2.i conftest.out ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5+printf '%s\n' "$ac_cv_path_lt_DD" >&6; }+++{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5+printf %s "checking how to truncate binary pipes... " >&6; }+if test ${lt_cv_truncate_bin+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) printf 0123456789abcdef0123456789abcdef >conftest.i+cat conftest.i conftest.i >conftest2.i+lt_cv_truncate_bin=+if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then+ cmp -s conftest.i conftest.out \+ && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"+fi+rm -f conftest.i conftest2.i conftest.out+test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5+printf '%s\n' "$lt_cv_truncate_bin" >&6; }++++++++# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.+func_cc_basename ()+{+ for cc_temp in $*""; do+ case $cc_temp in+ compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;+ distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;+ \-*) ;;+ *) break;;+ esac+ done+ func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`+}++# Check whether --enable-libtool-lock was given.+if test ${enable_libtool_lock+y}+then :+ enableval=$enable_libtool_lock;+fi++test no = "$enable_libtool_lock" || enable_libtool_lock=yes++# Some flags need to be propagated to the compiler or linker for good+# libtool support.+case $host in+ia64-*-hpux*)+ # Find out what ABI is being produced by ac_compile, and set mode+ # options accordingly.+ echo 'int i;' > conftest.$ac_ext+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5+ (eval $ac_compile) 2>&5+ ac_status=$?+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5+ test $ac_status = 0; }; then+ case `$FILECMD conftest.$ac_objext` in+ *ELF-32*)+ HPUX_IA64_MODE=32+ ;;+ *ELF-64*)+ HPUX_IA64_MODE=64+ ;;+ esac+ fi+ rm -rf conftest*+ ;;+*-*-irix6*)+ # Find out what ABI is being produced by ac_compile, and set linker+ # options accordingly.+ echo '#line '$LINENO' "configure"' > conftest.$ac_ext+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5+ (eval $ac_compile) 2>&5+ ac_status=$?+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5+ test $ac_status = 0; }; then+ if test yes = "$lt_cv_prog_gnu_ld"; then+ case `$FILECMD conftest.$ac_objext` in+ *32-bit*)+ LD="${LD-ld} -melf32bsmip"+ ;;+ *N32*)+ LD="${LD-ld} -melf32bmipn32"+ ;;+ *64-bit*)+ LD="${LD-ld} -melf64bmip"+ ;;+ esac+ else+ case `$FILECMD conftest.$ac_objext` in+ *32-bit*)+ LD="${LD-ld} -32"+ ;;+ *N32*)+ LD="${LD-ld} -n32"+ ;;+ *64-bit*)+ LD="${LD-ld} -64"+ ;;+ esac+ fi+ fi+ rm -rf conftest*+ ;;++mips64*-*linux*)+ # Find out what ABI is being produced by ac_compile, and set linker+ # options accordingly.+ echo '#line '$LINENO' "configure"' > conftest.$ac_ext+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5+ (eval $ac_compile) 2>&5+ ac_status=$?+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5+ test $ac_status = 0; }; then+ emul=elf+ case `$FILECMD conftest.$ac_objext` in+ *32-bit*)+ emul="${emul}32"+ ;;+ *64-bit*)+ emul="${emul}64"+ ;;+ esac+ case `$FILECMD conftest.$ac_objext` in+ *MSB*)+ emul="${emul}btsmip"+ ;;+ *LSB*)+ emul="${emul}ltsmip"+ ;;+ esac+ case `$FILECMD conftest.$ac_objext` in+ *N32*)+ emul="${emul}n32"+ ;;+ esac+ LD="${LD-ld} -m $emul"+ fi+ rm -rf conftest*+ ;;++x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \+s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)+ # Find out what ABI is being produced by ac_compile, and set linker+ # options accordingly. Note that the listed cases only cover the+ # situations where additional linker options are needed (such as when+ # doing 32-bit compilation for a host where ld defaults to 64-bit, or+ # vice versa); the common cases where no linker options are needed do+ # not appear in the list.+ echo 'int i;' > conftest.$ac_ext+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5+ (eval $ac_compile) 2>&5+ ac_status=$?+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5+ test $ac_status = 0; }; then+ case `$FILECMD conftest.o` in+ *32-bit*)+ case $host in+ x86_64-*kfreebsd*-gnu)+ LD="${LD-ld} -m elf_i386_fbsd"+ ;;+ x86_64-*linux*|x86_64-gnu*)+ case `$FILECMD conftest.o` in+ *x86-64*)+ LD="${LD-ld} -m elf32_x86_64"+ ;;+ *)+ LD="${LD-ld} -m elf_i386"+ ;;+ esac+ ;;+ powerpc64le-*linux*)+ LD="${LD-ld} -m elf32lppclinux"+ ;;+ powerpc64-*linux*)+ LD="${LD-ld} -m elf32ppclinux"+ ;;+ s390x-*linux*)+ LD="${LD-ld} -m elf_s390"+ ;;+ sparc64-*linux*)+ LD="${LD-ld} -m elf32_sparc"+ ;;+ esac+ ;;+ *64-bit*)+ case $host in+ x86_64-*kfreebsd*-gnu)+ LD="${LD-ld} -m elf_x86_64_fbsd"+ ;;+ x86_64-*linux*|x86_64-gnu*)+ LD="${LD-ld} -m elf_x86_64"+ ;;+ powerpcle-*linux*)+ LD="${LD-ld} -m elf64lppc"+ ;;+ powerpc-*linux*)+ LD="${LD-ld} -m elf64ppc"+ ;;+ s390*-*linux*|s390*-*tpf*)+ LD="${LD-ld} -m elf64_s390"+ ;;+ sparc*-*linux*)+ LD="${LD-ld} -m elf64_sparc"+ ;;+ esac+ ;;+ esac+ fi+ rm -rf conftest*+ ;;++*-*-sco3.2v5*)+ # On SCO OpenServer 5, we need -belf to get full-featured binaries.+ SAVE_CFLAGS=$CFLAGS+ CFLAGS="$CFLAGS -belf"+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5+printf %s "checking whether the C compiler needs -belf... " >&6; }+if test ${lt_cv_cc_needs_belf+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) ac_ext=c+ac_cpp='$CPP $CPPFLAGS'+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'+ac_compiler_gnu=$ac_cv_c_compiler_gnu++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */++int+main (void)+{++ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_link "$LINENO"+then :+ lt_cv_cc_needs_belf=yes+else case e in #(+ e) lt_cv_cc_needs_belf=no ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam \+ conftest$ac_exeext conftest.$ac_ext+ ac_ext=c+ac_cpp='$CPP $CPPFLAGS'+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'+ac_compiler_gnu=$ac_cv_c_compiler_gnu+ ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5+printf '%s\n' "$lt_cv_cc_needs_belf" >&6; }+ if test yes != "$lt_cv_cc_needs_belf"; then+ # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf+ CFLAGS=$SAVE_CFLAGS+ fi+ ;;+*-*solaris*)+ # Find out what ABI is being produced by ac_compile, and set linker+ # options accordingly.+ echo 'int i;' > conftest.$ac_ext+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5+ (eval $ac_compile) 2>&5+ ac_status=$?+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5+ test $ac_status = 0; }; then+ case `$FILECMD conftest.o` in+ *64-bit*)+ case $lt_cv_prog_gnu_ld in+ yes*)+ case $host in+ i?86-*-solaris*|x86_64-*-solaris*)+ LD="${LD-ld} -m elf_x86_64"+ ;;+ sparc*-*-solaris*)+ LD="${LD-ld} -m elf64_sparc"+ ;;+ esac+ # GNU ld 2.21 introduced _sol2 emulations. Use them if available.+ if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then+ LD=${LD-ld}_sol2+ fi+ ;;+ *)+ if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then+ LD="${LD-ld} -64"+ fi+ ;;+ esac+ ;;+ esac+ fi+ rm -rf conftest*+ ;;+esac++need_locks=$enable_libtool_lock++if test -n "$ac_tool_prefix"; then+ # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.+set dummy ${ac_tool_prefix}mt; ac_word=$2+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5+printf %s "checking for $ac_word... " >&6; }+if test ${ac_cv_prog_MANIFEST_TOOL+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test -n "$MANIFEST_TOOL"; then+ ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.+else+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_exec_ext in '' $ac_executable_extensions; do+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then+ ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5+ break 2+ fi+done+ done+IFS=$as_save_IFS++fi ;;+esac+fi+MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL+if test -n "$MANIFEST_TOOL"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5+printf '%s\n' "$MANIFEST_TOOL" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+fi+++fi+if test -z "$ac_cv_prog_MANIFEST_TOOL"; then+ ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL+ # Extract the first word of "mt", so it can be a program name with args.+set dummy mt; ac_word=$2+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5+printf %s "checking for $ac_word... " >&6; }+if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test -n "$ac_ct_MANIFEST_TOOL"; then+ ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.+else+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_exec_ext in '' $ac_executable_extensions; do+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then+ ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5+ break 2+ fi+done+ done+IFS=$as_save_IFS++fi ;;+esac+fi+ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL+if test -n "$ac_ct_MANIFEST_TOOL"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5+printf '%s\n' "$ac_ct_MANIFEST_TOOL" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+fi++ if test "x$ac_ct_MANIFEST_TOOL" = x; then+ MANIFEST_TOOL=":"+ else+ case $cross_compiling:$ac_tool_warned in+yes:)+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5+printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}+ac_tool_warned=yes ;;+esac+ MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL+ fi+else+ MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"+fi++test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5+printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }+if test ${lt_cv_path_manifest_tool+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) lt_cv_path_manifest_tool=no+ echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5+ $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out+ cat conftest.err >&5+ if $GREP 'Manifest Tool' conftest.out > /dev/null; then+ lt_cv_path_manifest_tool=yes+ fi+ rm -f conftest* ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5+printf '%s\n' "$lt_cv_path_manifest_tool" >&6; }+if test yes != "$lt_cv_path_manifest_tool"; then+ MANIFEST_TOOL=:+fi+++++++ case $host_os in+ rhapsody* | darwin*)+ if test -n "$ac_tool_prefix"; then+ # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.+set dummy ${ac_tool_prefix}dsymutil; ac_word=$2+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5+printf %s "checking for $ac_word... " >&6; }+if test ${ac_cv_prog_DSYMUTIL+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test -n "$DSYMUTIL"; then+ ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.+else+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_exec_ext in '' $ac_executable_extensions; do+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then+ ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5+ break 2+ fi+done+ done+IFS=$as_save_IFS++fi ;;+esac+fi+DSYMUTIL=$ac_cv_prog_DSYMUTIL+if test -n "$DSYMUTIL"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5+printf '%s\n' "$DSYMUTIL" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+fi+++fi+if test -z "$ac_cv_prog_DSYMUTIL"; then+ ac_ct_DSYMUTIL=$DSYMUTIL+ # Extract the first word of "dsymutil", so it can be a program name with args.+set dummy dsymutil; ac_word=$2+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5+printf %s "checking for $ac_word... " >&6; }+if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test -n "$ac_ct_DSYMUTIL"; then+ ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.+else+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_exec_ext in '' $ac_executable_extensions; do+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then+ ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5+ break 2+ fi+done+ done+IFS=$as_save_IFS++fi ;;+esac+fi+ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL+if test -n "$ac_ct_DSYMUTIL"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5+printf '%s\n' "$ac_ct_DSYMUTIL" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+fi++ if test "x$ac_ct_DSYMUTIL" = x; then+ DSYMUTIL=":"+ else+ case $cross_compiling:$ac_tool_warned in+yes:)+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5+printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}+ac_tool_warned=yes ;;+esac+ DSYMUTIL=$ac_ct_DSYMUTIL+ fi+else+ DSYMUTIL="$ac_cv_prog_DSYMUTIL"+fi++ if test -n "$ac_tool_prefix"; then+ # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.+set dummy ${ac_tool_prefix}nmedit; ac_word=$2+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5+printf %s "checking for $ac_word... " >&6; }+if test ${ac_cv_prog_NMEDIT+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test -n "$NMEDIT"; then+ ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.+else+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_exec_ext in '' $ac_executable_extensions; do+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then+ ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5+ break 2+ fi+done+ done+IFS=$as_save_IFS++fi ;;+esac+fi+NMEDIT=$ac_cv_prog_NMEDIT+if test -n "$NMEDIT"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5+printf '%s\n' "$NMEDIT" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+fi+++fi+if test -z "$ac_cv_prog_NMEDIT"; then+ ac_ct_NMEDIT=$NMEDIT+ # Extract the first word of "nmedit", so it can be a program name with args.+set dummy nmedit; ac_word=$2+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5+printf %s "checking for $ac_word... " >&6; }+if test ${ac_cv_prog_ac_ct_NMEDIT+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test -n "$ac_ct_NMEDIT"; then+ ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.+else+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_exec_ext in '' $ac_executable_extensions; do+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then+ ac_cv_prog_ac_ct_NMEDIT="nmedit"+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5+ break 2+ fi+done+ done+IFS=$as_save_IFS++fi ;;+esac+fi+ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT+if test -n "$ac_ct_NMEDIT"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5+printf '%s\n' "$ac_ct_NMEDIT" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+fi++ if test "x$ac_ct_NMEDIT" = x; then+ NMEDIT=":"+ else+ case $cross_compiling:$ac_tool_warned in+yes:)+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5+printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}+ac_tool_warned=yes ;;+esac+ NMEDIT=$ac_ct_NMEDIT+ fi+else+ NMEDIT="$ac_cv_prog_NMEDIT"+fi++ if test -n "$ac_tool_prefix"; then+ # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.+set dummy ${ac_tool_prefix}lipo; ac_word=$2+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5+printf %s "checking for $ac_word... " >&6; }+if test ${ac_cv_prog_LIPO+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test -n "$LIPO"; then+ ac_cv_prog_LIPO="$LIPO" # Let the user override the test.+else+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_exec_ext in '' $ac_executable_extensions; do+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then+ ac_cv_prog_LIPO="${ac_tool_prefix}lipo"+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5+ break 2+ fi+done+ done+IFS=$as_save_IFS++fi ;;+esac+fi+LIPO=$ac_cv_prog_LIPO+if test -n "$LIPO"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5+printf '%s\n' "$LIPO" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+fi+++fi+if test -z "$ac_cv_prog_LIPO"; then+ ac_ct_LIPO=$LIPO+ # Extract the first word of "lipo", so it can be a program name with args.+set dummy lipo; ac_word=$2+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5+printf %s "checking for $ac_word... " >&6; }+if test ${ac_cv_prog_ac_ct_LIPO+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test -n "$ac_ct_LIPO"; then+ ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.+else+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_exec_ext in '' $ac_executable_extensions; do+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then+ ac_cv_prog_ac_ct_LIPO="lipo"+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5+ break 2+ fi+done+ done+IFS=$as_save_IFS++fi ;;+esac+fi+ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO+if test -n "$ac_ct_LIPO"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5+printf '%s\n' "$ac_ct_LIPO" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+fi++ if test "x$ac_ct_LIPO" = x; then+ LIPO=":"+ else+ case $cross_compiling:$ac_tool_warned in+yes:)+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5+printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}+ac_tool_warned=yes ;;+esac+ LIPO=$ac_ct_LIPO+ fi+else+ LIPO="$ac_cv_prog_LIPO"+fi++ if test -n "$ac_tool_prefix"; then+ # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.+set dummy ${ac_tool_prefix}otool; ac_word=$2+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5+printf %s "checking for $ac_word... " >&6; }+if test ${ac_cv_prog_OTOOL+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test -n "$OTOOL"; then+ ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.+else+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_exec_ext in '' $ac_executable_extensions; do+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then+ ac_cv_prog_OTOOL="${ac_tool_prefix}otool"+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5+ break 2+ fi+done+ done+IFS=$as_save_IFS++fi ;;+esac+fi+OTOOL=$ac_cv_prog_OTOOL+if test -n "$OTOOL"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5+printf '%s\n' "$OTOOL" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+fi+++fi+if test -z "$ac_cv_prog_OTOOL"; then+ ac_ct_OTOOL=$OTOOL+ # Extract the first word of "otool", so it can be a program name with args.+set dummy otool; ac_word=$2+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5+printf %s "checking for $ac_word... " >&6; }+if test ${ac_cv_prog_ac_ct_OTOOL+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test -n "$ac_ct_OTOOL"; then+ ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.+else+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_exec_ext in '' $ac_executable_extensions; do+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then+ ac_cv_prog_ac_ct_OTOOL="otool"+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5+ break 2+ fi+done+ done+IFS=$as_save_IFS++fi ;;+esac+fi+ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL+if test -n "$ac_ct_OTOOL"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5+printf '%s\n' "$ac_ct_OTOOL" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+fi++ if test "x$ac_ct_OTOOL" = x; then+ OTOOL=":"+ else+ case $cross_compiling:$ac_tool_warned in+yes:)+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5+printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}+ac_tool_warned=yes ;;+esac+ OTOOL=$ac_ct_OTOOL+ fi+else+ OTOOL="$ac_cv_prog_OTOOL"+fi++ if test -n "$ac_tool_prefix"; then+ # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.+set dummy ${ac_tool_prefix}otool64; ac_word=$2+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5+printf %s "checking for $ac_word... " >&6; }+if test ${ac_cv_prog_OTOOL64+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test -n "$OTOOL64"; then+ ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.+else+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_exec_ext in '' $ac_executable_extensions; do+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then+ ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5+ break 2+ fi+done+ done+IFS=$as_save_IFS++fi ;;+esac+fi+OTOOL64=$ac_cv_prog_OTOOL64+if test -n "$OTOOL64"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5+printf '%s\n' "$OTOOL64" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+fi+++fi+if test -z "$ac_cv_prog_OTOOL64"; then+ ac_ct_OTOOL64=$OTOOL64+ # Extract the first word of "otool64", so it can be a program name with args.+set dummy otool64; ac_word=$2+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5+printf %s "checking for $ac_word... " >&6; }+if test ${ac_cv_prog_ac_ct_OTOOL64+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test -n "$ac_ct_OTOOL64"; then+ ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.+else+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_exec_ext in '' $ac_executable_extensions; do+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then+ ac_cv_prog_ac_ct_OTOOL64="otool64"+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5+ break 2+ fi+done+ done+IFS=$as_save_IFS++fi ;;+esac+fi+ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64+if test -n "$ac_ct_OTOOL64"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5+printf '%s\n' "$ac_ct_OTOOL64" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+fi++ if test "x$ac_ct_OTOOL64" = x; then+ OTOOL64=":"+ else+ case $cross_compiling:$ac_tool_warned in+yes:)+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5+printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}+ac_tool_warned=yes ;;+esac+ OTOOL64=$ac_ct_OTOOL64+ fi+else+ OTOOL64="$ac_cv_prog_OTOOL64"+fi++++++++++++++++++++++++++++ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5+printf %s "checking for -single_module linker flag... " >&6; }+if test ${lt_cv_apple_cc_single_mod+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) lt_cv_apple_cc_single_mod=no+ if test -z "$LT_MULTI_MODULE"; then+ # By default we will add the -single_module flag. You can override+ # by either setting the environment variable LT_MULTI_MODULE+ # non-empty at configure time, or by adding -multi_module to the+ # link flags.+ rm -rf libconftest.dylib*+ echo "int foo(void){return 1;}" > conftest.c+ echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \+-dynamiclib -Wl,-single_module conftest.c" >&5+ $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \+ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err+ _lt_result=$?+ # If there is a non-empty error log, and "single_module"+ # appears in it, assume the flag caused a linker warning+ if test -s conftest.err && $GREP single_module conftest.err; then+ cat conftest.err >&5+ # Otherwise, if the output was created with a 0 exit code from+ # the compiler, it worked.+ elif test -f libconftest.dylib && test 0 = "$_lt_result"; then+ lt_cv_apple_cc_single_mod=yes+ else+ cat conftest.err >&5+ fi+ rm -rf libconftest.dylib*+ rm -f conftest.*+ fi ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5+printf '%s\n' "$lt_cv_apple_cc_single_mod" >&6; }++ # Feature test to disable chained fixups since it is not+ # compatible with '-undefined dynamic_lookup'+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5+printf %s "checking for -no_fixup_chains linker flag... " >&6; }+if test ${lt_cv_support_no_fixup_chains+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) save_LDFLAGS=$LDFLAGS+ LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */++int+main (void)+{++ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_link "$LINENO"+then :+ lt_cv_support_no_fixup_chains=yes+else case e in #(+ e) lt_cv_support_no_fixup_chains=no+ ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam \+ conftest$ac_exeext conftest.$ac_ext+ LDFLAGS=$save_LDFLAGS++ ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5+printf '%s\n' "$lt_cv_support_no_fixup_chains" >&6; }++ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5+printf %s "checking for -exported_symbols_list linker flag... " >&6; }+if test ${lt_cv_ld_exported_symbols_list+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) lt_cv_ld_exported_symbols_list=no+ save_LDFLAGS=$LDFLAGS+ echo "_main" > conftest.sym+ LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */++int+main (void)+{++ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_link "$LINENO"+then :+ lt_cv_ld_exported_symbols_list=yes+else case e in #(+ e) lt_cv_ld_exported_symbols_list=no ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam \+ conftest$ac_exeext conftest.$ac_ext+ LDFLAGS=$save_LDFLAGS+ ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5+printf '%s\n' "$lt_cv_ld_exported_symbols_list" >&6; }++ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5+printf %s "checking for -force_load linker flag... " >&6; }+if test ${lt_cv_ld_force_load+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) lt_cv_ld_force_load=no+ cat > conftest.c << _LT_EOF+int forced_loaded() { return 2;}+_LT_EOF+ echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5+ $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5+ echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5+ $AR $AR_FLAGS libconftest.a conftest.o 2>&5+ echo "$RANLIB libconftest.a" >&5+ $RANLIB libconftest.a 2>&5+ cat > conftest.c << _LT_EOF+int main(void) { return 0;}+_LT_EOF+ echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5+ $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err+ _lt_result=$?+ if test -s conftest.err && $GREP force_load conftest.err; then+ cat conftest.err >&5+ elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then+ lt_cv_ld_force_load=yes+ else+ cat conftest.err >&5+ fi+ rm -f conftest.err libconftest.a conftest conftest.c+ rm -rf conftest.dSYM+ ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5+printf '%s\n' "$lt_cv_ld_force_load" >&6; }+ case $host_os in+ rhapsody* | darwin1.[012])+ _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;+ darwin1.*)+ _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;+ darwin*)+ case $MACOSX_DEPLOYMENT_TARGET,$host in+ 10.[012],*|,*powerpc*-darwin[5-8]*)+ _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;+ *)+ _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'+ if test yes = "$lt_cv_support_no_fixup_chains"; then+ as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'+ fi+ ;;+ esac+ ;;+ esac+ if test yes = "$lt_cv_apple_cc_single_mod"; then+ _lt_dar_single_mod='$single_module'+ fi+ _lt_dar_needs_single_mod=no+ case $host_os in+ rhapsody* | darwin1.*)+ _lt_dar_needs_single_mod=yes ;;+ darwin*)+ # When targeting Mac OS X 10.4 (darwin 8) or later,+ # -single_module is the default and -multi_module is unsupported.+ # The toolchain on macOS 10.14 (darwin 18) and later cannot+ # target any OS version that needs -single_module.+ case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in+ 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)+ _lt_dar_needs_single_mod=yes ;;+ esac+ ;;+ esac+ if test yes = "$lt_cv_ld_exported_symbols_list"; then+ _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'+ else+ _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'+ fi+ if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then+ _lt_dsymutil='~$DSYMUTIL $lib || :'+ else+ _lt_dsymutil=+ fi+ ;;+ esac++# func_munge_path_list VARIABLE PATH+# -----------------------------------+# VARIABLE is name of variable containing _space_ separated list of+# directories to be munged by the contents of PATH, which is string+# having a format:+# "DIR[:DIR]:"+# string "DIR[ DIR]" will be prepended to VARIABLE+# ":DIR[:DIR]"+# string "DIR[ DIR]" will be appended to VARIABLE+# "DIRP[:DIRP]::[DIRA:]DIRA"+# string "DIRP[ DIRP]" will be prepended to VARIABLE and string+# "DIRA[ DIRA]" will be appended to VARIABLE+# "DIR[:DIR]"+# VARIABLE will be replaced by "DIR[ DIR]"+func_munge_path_list ()+{+ case x$2 in+ x)+ ;;+ *:)+ eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"+ ;;+ x:*)+ eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"+ ;;+ *::*)+ eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"+ eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"+ ;;+ *)+ eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"+ ;;+ esac+}++ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default+"+if test "x$ac_cv_header_dlfcn_h" = xyes+then :+ printf '%s\n' "#define HAVE_DLFCN_H 1" >>confdefs.h++fi++++++# Set options+enable_win32_dll=yes++case $host in+*-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)+ if test -n "$ac_tool_prefix"; then+ # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.+set dummy ${ac_tool_prefix}as; ac_word=$2+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5+printf %s "checking for $ac_word... " >&6; }+if test ${ac_cv_prog_AS+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test -n "$AS"; then+ ac_cv_prog_AS="$AS" # Let the user override the test.+else+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_exec_ext in '' $ac_executable_extensions; do+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then+ ac_cv_prog_AS="${ac_tool_prefix}as"+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5+ break 2+ fi+done+ done+IFS=$as_save_IFS++fi ;;+esac+fi+AS=$ac_cv_prog_AS+if test -n "$AS"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $AS" >&5+printf '%s\n' "$AS" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+fi+++fi+if test -z "$ac_cv_prog_AS"; then+ ac_ct_AS=$AS+ # Extract the first word of "as", so it can be a program name with args.+set dummy as; ac_word=$2+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5+printf %s "checking for $ac_word... " >&6; }+if test ${ac_cv_prog_ac_ct_AS+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test -n "$ac_ct_AS"; then+ ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.+else+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_exec_ext in '' $ac_executable_extensions; do+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then+ ac_cv_prog_ac_ct_AS="as"+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5+ break 2+ fi+done+ done+IFS=$as_save_IFS++fi ;;+esac+fi+ac_ct_AS=$ac_cv_prog_ac_ct_AS+if test -n "$ac_ct_AS"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5+printf '%s\n' "$ac_ct_AS" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+fi++ if test "x$ac_ct_AS" = x; then+ AS="false"+ else+ case $cross_compiling:$ac_tool_warned in+yes:)+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5+printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}+ac_tool_warned=yes ;;+esac+ AS=$ac_ct_AS+ fi+else+ AS="$ac_cv_prog_AS"+fi++ if test -n "$ac_tool_prefix"; then+ # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.+set dummy ${ac_tool_prefix}dlltool; ac_word=$2+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5+printf %s "checking for $ac_word... " >&6; }+if test ${ac_cv_prog_DLLTOOL+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test -n "$DLLTOOL"; then+ ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.+else+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_exec_ext in '' $ac_executable_extensions; do+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then+ ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5+ break 2+ fi+done+ done+IFS=$as_save_IFS++fi ;;+esac+fi+DLLTOOL=$ac_cv_prog_DLLTOOL+if test -n "$DLLTOOL"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5+printf '%s\n' "$DLLTOOL" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+fi+++fi+if test -z "$ac_cv_prog_DLLTOOL"; then+ ac_ct_DLLTOOL=$DLLTOOL+ # Extract the first word of "dlltool", so it can be a program name with args.+set dummy dlltool; ac_word=$2+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5+printf %s "checking for $ac_word... " >&6; }+if test ${ac_cv_prog_ac_ct_DLLTOOL+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test -n "$ac_ct_DLLTOOL"; then+ ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.+else+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_exec_ext in '' $ac_executable_extensions; do+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then+ ac_cv_prog_ac_ct_DLLTOOL="dlltool"+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5+ break 2+ fi+done+ done+IFS=$as_save_IFS++fi ;;+esac+fi+ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL+if test -n "$ac_ct_DLLTOOL"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5+printf '%s\n' "$ac_ct_DLLTOOL" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+fi++ if test "x$ac_ct_DLLTOOL" = x; then+ DLLTOOL="false"+ else+ case $cross_compiling:$ac_tool_warned in+yes:)+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5+printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}+ac_tool_warned=yes ;;+esac+ DLLTOOL=$ac_ct_DLLTOOL+ fi+else+ DLLTOOL="$ac_cv_prog_DLLTOOL"+fi++ if test -n "$ac_tool_prefix"; then+ # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.+set dummy ${ac_tool_prefix}objdump; ac_word=$2+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5+printf %s "checking for $ac_word... " >&6; }+if test ${ac_cv_prog_OBJDUMP+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test -n "$OBJDUMP"; then+ ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.+else+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_exec_ext in '' $ac_executable_extensions; do+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then+ ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5+ break 2+ fi+done+ done+IFS=$as_save_IFS++fi ;;+esac+fi+OBJDUMP=$ac_cv_prog_OBJDUMP+if test -n "$OBJDUMP"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5+printf '%s\n' "$OBJDUMP" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+fi+++fi+if test -z "$ac_cv_prog_OBJDUMP"; then+ ac_ct_OBJDUMP=$OBJDUMP+ # Extract the first word of "objdump", so it can be a program name with args.+set dummy objdump; ac_word=$2+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5+printf %s "checking for $ac_word... " >&6; }+if test ${ac_cv_prog_ac_ct_OBJDUMP+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test -n "$ac_ct_OBJDUMP"; then+ ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.+else+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_exec_ext in '' $ac_executable_extensions; do+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then+ ac_cv_prog_ac_ct_OBJDUMP="objdump"+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5+ break 2+ fi+done+ done+IFS=$as_save_IFS++fi ;;+esac+fi+ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP+if test -n "$ac_ct_OBJDUMP"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5+printf '%s\n' "$ac_ct_OBJDUMP" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+fi++ if test "x$ac_ct_OBJDUMP" = x; then+ OBJDUMP="false"+ else+ case $cross_compiling:$ac_tool_warned in+yes:)+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5+printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}+ac_tool_warned=yes ;;+esac+ OBJDUMP=$ac_ct_OBJDUMP+ fi+else+ OBJDUMP="$ac_cv_prog_OBJDUMP"+fi++ ;;+esac++test -z "$AS" && AS=as++++++test -z "$DLLTOOL" && DLLTOOL=dlltool++++++test -z "$OBJDUMP" && OBJDUMP=objdump++++++++ enable_dlopen=no++++ # Check whether --enable-shared was given.+if test ${enable_shared+y}+then :+ enableval=$enable_shared; p=${PACKAGE-default}+ case $enableval in+ yes) enable_shared=yes ;;+ no) enable_shared=no ;;+ *)+ enable_shared=no+ # Look at the argument we got. We use all the common list separators.+ lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,+ for pkg in $enableval; do+ IFS=$lt_save_ifs+ if test "X$pkg" = "X$p"; then+ enable_shared=yes+ fi+ done+ IFS=$lt_save_ifs+ ;;+ esac+else case e in #(+ e) enable_shared=yes ;;+esac+fi++++++++++ # Check whether --enable-static was given.+if test ${enable_static+y}+then :+ enableval=$enable_static; p=${PACKAGE-default}+ case $enableval in+ yes) enable_static=yes ;;+ no) enable_static=no ;;+ *)+ enable_static=no+ # Look at the argument we got. We use all the common list separators.+ lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,+ for pkg in $enableval; do+ IFS=$lt_save_ifs+ if test "X$pkg" = "X$p"; then+ enable_static=yes+ fi+ done+ IFS=$lt_save_ifs+ ;;+ esac+else case e in #(+ e) enable_static=yes ;;+esac+fi++++++++++ # Check whether --enable-pic was given.+if test ${enable_pic+y}+then :+ enableval=$enable_pic; lt_p=${PACKAGE-default}+ case $enableval in+ yes|no) pic_mode=$enableval ;;+ *)+ pic_mode=default+ # Look at the argument we got. We use all the common list separators.+ lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,+ for lt_pkg in $enableval; do+ IFS=$lt_save_ifs+ if test "X$lt_pkg" = "X$lt_p"; then+ pic_mode=yes+ fi+ done+ IFS=$lt_save_ifs+ ;;+ esac+else case e in #(+ e) # Check whether --with-pic was given.+if test ${with_pic+y}+then :+ withval=$with_pic; lt_p=${PACKAGE-default}+ case $withval in+ yes|no) pic_mode=$withval ;;+ *)+ pic_mode=default+ # Look at the argument we got. We use all the common list separators.+ lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,+ for lt_pkg in $withval; do+ IFS=$lt_save_ifs+ if test "X$lt_pkg" = "X$lt_p"; then+ pic_mode=yes+ fi+ done+ IFS=$lt_save_ifs+ ;;+ esac+else case e in #(+ e) pic_mode=default ;;+esac+fi++ ;;+esac+fi+++++++++ # Check whether --enable-fast-install was given.+if test ${enable_fast_install+y}+then :+ enableval=$enable_fast_install; p=${PACKAGE-default}+ case $enableval in+ yes) enable_fast_install=yes ;;+ no) enable_fast_install=no ;;+ *)+ enable_fast_install=no+ # Look at the argument we got. We use all the common list separators.+ lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,+ for pkg in $enableval; do+ IFS=$lt_save_ifs+ if test "X$pkg" = "X$p"; then+ enable_fast_install=yes+ fi+ done+ IFS=$lt_save_ifs+ ;;+ esac+else case e in #(+ e) enable_fast_install=yes ;;+esac+fi+++++++++ shared_archive_member_spec=+case $host,$enable_shared in+power*-*-aix[5-9]*,yes)+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5+printf %s "checking which variant of shared library versioning to provide... " >&6; }+ # Check whether --enable-aix-soname was given.+if test ${enable_aix_soname+y}+then :+ enableval=$enable_aix_soname; case $enableval in+ aix|svr4|both)+ ;;+ *)+ as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5+ ;;+ esac+ lt_cv_with_aix_soname=$enable_aix_soname+else case e in #(+ e) # Check whether --with-aix-soname was given.+if test ${with_aix_soname+y}+then :+ withval=$with_aix_soname; case $withval in+ aix|svr4|both)+ ;;+ *)+ as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5+ ;;+ esac+ lt_cv_with_aix_soname=$with_aix_soname+else case e in #(+ e) if test ${lt_cv_with_aix_soname+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) lt_cv_with_aix_soname=aix ;;+esac+fi+ ;;+esac+fi++ enable_aix_soname=$lt_cv_with_aix_soname ;;+esac+fi++ with_aix_soname=$enable_aix_soname+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5+printf '%s\n' "$with_aix_soname" >&6; }+ if test aix != "$with_aix_soname"; then+ # For the AIX way of multilib, we name the shared archive member+ # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',+ # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.+ # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,+ # the AIX toolchain works better with OBJECT_MODE set (default 32).+ if test 64 = "${OBJECT_MODE-32}"; then+ shared_archive_member_spec=shr_64+ else+ shared_archive_member_spec=shr+ fi+ fi+ ;;+*)+ with_aix_soname=aix+ ;;+esac+++++++++++# This can be used to rebuild libtool when needed+LIBTOOL_DEPS=$ltmain++# Always use our own libtool.+LIBTOOL='$(SHELL) $(top_builddir)/libtool'+++++++++++++++++++++++++++++++test -z "$LN_S" && LN_S="ln -s"+++++++++++++++if test -n "${ZSH_VERSION+set}"; then+ setopt NO_GLOB_SUBST+fi++{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5+printf %s "checking for objdir... " >&6; }+if test ${lt_cv_objdir+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) rm -f .libs 2>/dev/null+mkdir .libs 2>/dev/null+if test -d .libs; then+ lt_cv_objdir=.libs+else+ # MS-DOS does not allow filenames that begin with a dot.+ lt_cv_objdir=_libs+fi+rmdir .libs 2>/dev/null ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5+printf '%s\n' "$lt_cv_objdir" >&6; }+objdir=$lt_cv_objdir++++++printf '%s\n' "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h+++++case $host_os in+aix3*)+ # AIX sometimes has problems with the GCC collect2 program. For some+ # reason, if we set the COLLECT_NAMES environment variable, the problems+ # vanish in a puff of smoke.+ if test set != "${COLLECT_NAMES+set}"; then+ COLLECT_NAMES=+ export COLLECT_NAMES+ fi+ ;;+esac++# Global variables:+ofile=libtool+can_build_shared=yes++# All known linkers require a '.a' archive for static linking (except MSVC and+# ICC, which need '.lib').+libext=a++with_gnu_ld=$lt_cv_prog_gnu_ld++old_CC=$CC+old_CFLAGS=$CFLAGS++# Set sane defaults for various variables+test -z "$CC" && CC=cc+test -z "$LTCC" && LTCC=$CC+test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS+test -z "$LD" && LD=ld+test -z "$ac_objext" && ac_objext=o++func_cc_basename $compiler+cc_basename=$func_cc_basename_result+++# Only perform the check for file, if the check method requires it+test -z "$MAGIC_CMD" && MAGIC_CMD=file+case $deplibs_check_method in+file_magic*)+ if test "$file_magic_cmd" = '$MAGIC_CMD'; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5+printf %s "checking for ${ac_tool_prefix}file... " >&6; }+if test ${lt_cv_path_MAGIC_CMD+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) case $MAGIC_CMD in+[\\/*] | ?:[\\/]*)+ lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.+ ;;+*)+ lt_save_MAGIC_CMD=$MAGIC_CMD+ lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR+ ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"+ for ac_dir in $ac_dummy; do+ IFS=$lt_save_ifs+ test -z "$ac_dir" && ac_dir=.+ if test -f "$ac_dir/${ac_tool_prefix}file"; then+ lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"+ if test -n "$file_magic_test_file"; then+ case $deplibs_check_method in+ "file_magic "*)+ file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`+ MAGIC_CMD=$lt_cv_path_MAGIC_CMD+ if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |+ $EGREP "$file_magic_regex" > /dev/null; then+ :+ else+ cat <<_LT_EOF 1>&2++*** Warning: the command libtool uses to detect shared libraries,+*** $file_magic_cmd, produces output that libtool cannot recognize.+*** The result is that libtool may fail to recognize shared libraries+*** as such. This will affect the creation of libtool libraries that+*** depend on shared libraries, but programs linked with such libtool+*** libraries will work regardless of this problem. Nevertheless, you+*** may want to report the problem to your system manager and/or to+*** bug-libtool@gnu.org++_LT_EOF+ fi ;;+ esac+ fi+ break+ fi+ done+ IFS=$lt_save_ifs+ MAGIC_CMD=$lt_save_MAGIC_CMD+ ;;+esac ;;+esac+fi++MAGIC_CMD=$lt_cv_path_MAGIC_CMD+if test -n "$MAGIC_CMD"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5+printf '%s\n' "$MAGIC_CMD" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+fi++++++if test -z "$lt_cv_path_MAGIC_CMD"; then+ if test -n "$ac_tool_prefix"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for file" >&5+printf %s "checking for file... " >&6; }+if test ${lt_cv_path_MAGIC_CMD+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) case $MAGIC_CMD in+[\\/*] | ?:[\\/]*)+ lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.+ ;;+*)+ lt_save_MAGIC_CMD=$MAGIC_CMD+ lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR+ ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"+ for ac_dir in $ac_dummy; do+ IFS=$lt_save_ifs+ test -z "$ac_dir" && ac_dir=.+ if test -f "$ac_dir/file"; then+ lt_cv_path_MAGIC_CMD=$ac_dir/"file"+ if test -n "$file_magic_test_file"; then+ case $deplibs_check_method in+ "file_magic "*)+ file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`+ MAGIC_CMD=$lt_cv_path_MAGIC_CMD+ if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |+ $EGREP "$file_magic_regex" > /dev/null; then+ :+ else+ cat <<_LT_EOF 1>&2++*** Warning: the command libtool uses to detect shared libraries,+*** $file_magic_cmd, produces output that libtool cannot recognize.+*** The result is that libtool may fail to recognize shared libraries+*** as such. This will affect the creation of libtool libraries that+*** depend on shared libraries, but programs linked with such libtool+*** libraries will work regardless of this problem. Nevertheless, you+*** may want to report the problem to your system manager and/or to+*** bug-libtool@gnu.org++_LT_EOF+ fi ;;+ esac+ fi+ break+ fi+ done+ IFS=$lt_save_ifs+ MAGIC_CMD=$lt_save_MAGIC_CMD+ ;;+esac ;;+esac+fi++MAGIC_CMD=$lt_cv_path_MAGIC_CMD+if test -n "$MAGIC_CMD"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5+printf '%s\n' "$MAGIC_CMD" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+fi+++ else+ MAGIC_CMD=:+ fi+fi++ fi+ ;;+esac++# Use C for the default configuration in the libtool script++lt_save_CC=$CC+ac_ext=c+ac_cpp='$CPP $CPPFLAGS'+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'+ac_compiler_gnu=$ac_cv_c_compiler_gnu+++# Source file extension for C test sources.+ac_ext=c++# Object file extension for compiled C test sources.+objext=o+objext=$objext++# Code to be used in simple compile tests+lt_simple_compile_test_code="int some_variable = 0;"++# Code to be used in simple link tests+lt_simple_link_test_code='int main(void){return(0);}'++++++++# If no C compiler was specified, use CC.+LTCC=${LTCC-"$CC"}++# If no C compiler flags were specified, use CFLAGS.+LTCFLAGS=${LTCFLAGS-"$CFLAGS"}++# Allow CC to be a program name with arguments.+compiler=$CC++# Save the default compiler, since it gets overwritten when the other+# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.+compiler_DEFAULT=$CC++# save warnings/boilerplate of simple test code+ac_outfile=conftest.$ac_objext+echo "$lt_simple_compile_test_code" >conftest.$ac_ext+eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err+_lt_compiler_boilerplate=`cat conftest.err`+$RM conftest*++ac_outfile=conftest.$ac_objext+echo "$lt_simple_link_test_code" >conftest.$ac_ext+eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err+_lt_linker_boilerplate=`cat conftest.err`+$RM -r conftest*+++## CAVEAT EMPTOR:+## There is no encapsulation within the following macros, do not change+## the running order or otherwise move them around unless you know exactly+## what you are doing...+if test -n "$compiler"; then++lt_prog_compiler_no_builtin_flag=++if test yes = "$GCC"; then+ case $cc_basename in+ nvcc*)+ lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;+ *)+ lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;+ esac++ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5+printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }+if test ${lt_cv_prog_compiler_rtti_exceptions+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) lt_cv_prog_compiler_rtti_exceptions=no+ ac_outfile=conftest.$ac_objext+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext+ lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment+ # Insert the option either (1) after the last *FLAGS variable, or+ # (2) before a word containing "conftest.", or (3) at the end.+ # Note that $ac_compile itself does not contain backslashes and begins+ # with a dollar sign (not a hyphen), so the echo should work correctly.+ # The option is referenced via a variable to avoid confusing sed.+ lt_compile=`echo "$ac_compile" | $SED \+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \+ -e 's:$: $lt_compiler_flag:'`+ (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)+ (eval "$lt_compile" 2>conftest.err)+ ac_status=$?+ cat conftest.err >&5+ echo "$as_me:$LINENO: \$? = $ac_status" >&5+ if (exit $ac_status) && test -s "$ac_outfile"; then+ # The compiler can only warn and ignore the option if not recognized+ # So say no if there are warnings other than the usual output.+ $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2+ if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then+ lt_cv_prog_compiler_rtti_exceptions=yes+ fi+ fi+ $RM conftest*+ ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5+printf '%s\n' "$lt_cv_prog_compiler_rtti_exceptions" >&6; }++if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then+ lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"+else+ :+fi++fi+++++++ lt_prog_compiler_wl=+lt_prog_compiler_pic=+lt_prog_compiler_static=+++ if test yes = "$GCC"; then+ lt_prog_compiler_wl='-Wl,'+ lt_prog_compiler_static='-static'++ case $host_os in+ aix*)+ # All AIX code is PIC.+ if test ia64 = "$host_cpu"; then+ # AIX 5 now supports IA64 processor+ lt_prog_compiler_static='-Bstatic'+ fi+ lt_prog_compiler_pic='-fPIC'+ ;;++ amigaos*)+ case $host_cpu in+ powerpc)+ # see comment about AmigaOS4 .so support+ lt_prog_compiler_pic='-fPIC'+ ;;+ m68k)+ # FIXME: we need at least 68020 code to build shared libraries, but+ # adding the '-m68020' flag to GCC prevents building anything better,+ # like '-m68040'.+ lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'+ ;;+ esac+ ;;++ beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)+ # PIC is the default for these OSes.+ ;;++ mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)+ # This hack is so that the source file can tell whether it is being+ # built for inclusion in a dll (and should export symbols for example).+ # Although the cygwin gcc ignores -fPIC, still need this for old-style+ # (--disable-auto-import) libraries+ lt_prog_compiler_pic='-DDLL_EXPORT'+ case $host_os in+ os2*)+ lt_prog_compiler_static='$wl-static'+ ;;+ esac+ ;;++ darwin* | rhapsody*)+ # PIC is the default on this platform+ # Common symbols not allowed in MH_DYLIB files+ lt_prog_compiler_pic='-fno-common'+ ;;++ haiku*)+ # PIC is the default for Haiku.+ # The "-static" flag exists, but is broken.+ lt_prog_compiler_static=+ ;;++ hpux*)+ # PIC is the default for 64-bit PA HP-UX, but not for 32-bit+ # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag+ # sets the default TLS model and affects inlining.+ case $host_cpu in+ hppa*64*)+ # +Z the default+ ;;+ *)+ lt_prog_compiler_pic='-fPIC'+ ;;+ esac+ ;;++ interix[3-9]*)+ # Interix 3.x gcc -fpic/-fPIC options generate broken code.+ # Instead, we relocate shared libraries at runtime.+ ;;++ msdosdjgpp*)+ # Just because we use GCC doesn't mean we suddenly get shared libraries+ # on systems that don't support them.+ lt_prog_compiler_can_build_shared=no+ enable_shared=no+ ;;++ *nto* | *qnx*)+ # QNX uses GNU C++, but need to define -shared option too, otherwise+ # it will coredump.+ lt_prog_compiler_pic='-fPIC -shared'+ ;;++ sysv4*MP*)+ if test -d /usr/nec; then+ lt_prog_compiler_pic=-Kconform_pic+ fi+ ;;++ *)+ lt_prog_compiler_pic='-fPIC'+ ;;+ esac++ case $cc_basename in+ nvcc*) # Cuda Compiler Driver 2.2+ lt_prog_compiler_wl='-Xlinker '+ if test -n "$lt_prog_compiler_pic"; then+ lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"+ fi+ ;;+ esac+ else+ # PORTME Check for flag to pass linker flags through the system compiler.+ case $host_os in+ aix*)+ lt_prog_compiler_wl='-Wl,'+ if test ia64 = "$host_cpu"; then+ # AIX 5 now supports IA64 processor+ lt_prog_compiler_static='-Bstatic'+ else+ lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'+ fi+ ;;++ darwin* | rhapsody*)+ # PIC is the default on this platform+ # Common symbols not allowed in MH_DYLIB files+ lt_prog_compiler_pic='-fno-common'+ case $cc_basename in+ nagfor*)+ # NAG Fortran compiler+ lt_prog_compiler_wl='-Wl,-Wl,,'+ lt_prog_compiler_pic='-PIC'+ lt_prog_compiler_static='-Bstatic'+ ;;+ esac+ ;;++ mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)+ # This hack is so that the source file can tell whether it is being+ # built for inclusion in a dll (and should export symbols for example).+ lt_prog_compiler_pic='-DDLL_EXPORT'+ case $host_os in+ os2*)+ lt_prog_compiler_static='$wl-static'+ ;;+ esac+ ;;++ hpux9* | hpux10* | hpux11*)+ lt_prog_compiler_wl='-Wl,'+ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but+ # not for PA HP-UX.+ case $host_cpu in+ hppa*64*|ia64*)+ # +Z the default+ ;;+ *)+ lt_prog_compiler_pic='+Z'+ ;;+ esac+ # Is there a better lt_prog_compiler_static that works with the bundled CC?+ lt_prog_compiler_static='$wl-a ${wl}archive'+ ;;++ irix5* | irix6* | nonstopux*)+ lt_prog_compiler_wl='-Wl,'+ # PIC (with -KPIC) is the default.+ lt_prog_compiler_static='-non_shared'+ ;;++ linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | *freebsd*)+ case $cc_basename in+ # old Intel for x86_64, which still supported -KPIC.+ ecc*)+ lt_prog_compiler_wl='-Wl,'+ lt_prog_compiler_pic='-KPIC'+ lt_prog_compiler_static='-static'+ ;;+ *flang* | ftn | f18* | f95*)+ # Flang compiler.+ lt_prog_compiler_wl='-Wl,'+ lt_prog_compiler_pic='-fPIC'+ lt_prog_compiler_static='-static'+ ;;+ # icc used to be incompatible with GCC.+ # ICC 10 doesn't accept -KPIC any more.+ icc* | ifort*)+ lt_prog_compiler_wl='-Wl,'+ lt_prog_compiler_pic='-fPIC'+ lt_prog_compiler_static='-static'+ ;;+ # Lahey Fortran 8.1.+ lf95*)+ lt_prog_compiler_wl='-Wl,'+ lt_prog_compiler_pic='--shared'+ lt_prog_compiler_static='--static'+ ;;+ nagfor*)+ # NAG Fortran compiler+ lt_prog_compiler_wl='-Wl,-Wl,,'+ lt_prog_compiler_pic='-PIC'+ lt_prog_compiler_static='-Bstatic'+ ;;+ tcc*)+ # Fabrice Bellard et al's Tiny C Compiler+ lt_prog_compiler_wl='-Wl,'+ lt_prog_compiler_pic='-fPIC'+ lt_prog_compiler_static='-static'+ ;;+ pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)+ # Portland Group compilers (*not* the Pentium gcc compiler,+ # which looks to be a dead project)+ lt_prog_compiler_wl='-Wl,'+ lt_prog_compiler_pic='-fpic'+ lt_prog_compiler_static='-Bstatic'+ ;;+ ccc*)+ lt_prog_compiler_wl='-Wl,'+ # All Alpha code is PIC.+ lt_prog_compiler_static='-non_shared'+ ;;+ xl* | bgxl* | bgf* | mpixl*)+ # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene+ lt_prog_compiler_wl='-Wl,'+ lt_prog_compiler_pic='-qpic'+ lt_prog_compiler_static='-qstaticlink'+ ;;+ *)+ case `$CC -V 2>&1 | $SED 5q` in+ *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)+ # Sun Fortran 8.3 passes all unrecognized flags to the linker+ lt_prog_compiler_pic='-KPIC'+ lt_prog_compiler_static='-Bstatic'+ lt_prog_compiler_wl=''+ ;;+ *Sun\ F* | *Sun*Fortran*)+ lt_prog_compiler_pic='-KPIC'+ lt_prog_compiler_static='-Bstatic'+ lt_prog_compiler_wl='-Qoption ld '+ ;;+ *Sun\ C*)+ # Sun C 5.9+ lt_prog_compiler_pic='-KPIC'+ lt_prog_compiler_static='-Bstatic'+ lt_prog_compiler_wl='-Wl,'+ ;;+ *Intel*\ [CF]*Compiler*)+ lt_prog_compiler_wl='-Wl,'+ lt_prog_compiler_pic='-fPIC'+ lt_prog_compiler_static='-static'+ ;;+ *Portland\ Group*)+ lt_prog_compiler_wl='-Wl,'+ lt_prog_compiler_pic='-fpic'+ lt_prog_compiler_static='-Bstatic'+ ;;+ esac+ ;;+ esac+ ;;++ newsos6)+ lt_prog_compiler_pic='-KPIC'+ lt_prog_compiler_static='-Bstatic'+ ;;++ *-mlibc)+ lt_prog_compiler_wl='-Wl,'+ lt_prog_compiler_pic='-fPIC'+ lt_prog_compiler_static='-static'+ ;;++ *nto* | *qnx*)+ # QNX uses GNU C++, but need to define -shared option too, otherwise+ # it will coredump.+ lt_prog_compiler_pic='-fPIC -shared'+ ;;++ osf3* | osf4* | osf5*)+ lt_prog_compiler_wl='-Wl,'+ # All OSF/1 code is PIC.+ lt_prog_compiler_static='-non_shared'+ ;;++ rdos*)+ lt_prog_compiler_static='-non_shared'+ ;;++ serenity*)+ ;;++ solaris*)+ lt_prog_compiler_pic='-KPIC'+ lt_prog_compiler_static='-Bstatic'+ case $cc_basename in+ f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)+ lt_prog_compiler_wl='-Qoption ld ';;+ *)+ lt_prog_compiler_wl='-Wl,';;+ esac+ ;;++ sunos4*)+ lt_prog_compiler_wl='-Qoption ld '+ lt_prog_compiler_pic='-PIC'+ lt_prog_compiler_static='-Bstatic'+ ;;++ sysv4 | sysv4.2uw2* | sysv4.3*)+ lt_prog_compiler_wl='-Wl,'+ lt_prog_compiler_pic='-KPIC'+ lt_prog_compiler_static='-Bstatic'+ ;;++ sysv4*MP*)+ if test -d /usr/nec; then+ lt_prog_compiler_pic='-Kconform_pic'+ lt_prog_compiler_static='-Bstatic'+ fi+ ;;++ sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)+ lt_prog_compiler_wl='-Wl,'+ lt_prog_compiler_pic='-KPIC'+ lt_prog_compiler_static='-Bstatic'+ ;;++ unicos*)+ lt_prog_compiler_wl='-Wl,'+ lt_prog_compiler_can_build_shared=no+ ;;++ uts4*)+ lt_prog_compiler_pic='-pic'+ lt_prog_compiler_static='-Bstatic'+ ;;++ *)+ lt_prog_compiler_can_build_shared=no+ ;;+ esac+ fi++case $host_os in+ # For platforms that do not support PIC, -DPIC is meaningless:+ *djgpp*)+ lt_prog_compiler_pic=+ ;;+ *)+ lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"+ ;;+esac++{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5+printf %s "checking for $compiler option to produce PIC... " >&6; }+if test ${lt_cv_prog_compiler_pic+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5+printf '%s\n' "$lt_cv_prog_compiler_pic" >&6; }+lt_prog_compiler_pic=$lt_cv_prog_compiler_pic++#+# Check to make sure the PIC flag actually works.+#+if test -n "$lt_prog_compiler_pic"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5+printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }+if test ${lt_cv_prog_compiler_pic_works+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) lt_cv_prog_compiler_pic_works=no+ ac_outfile=conftest.$ac_objext+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext+ lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment+ # Insert the option either (1) after the last *FLAGS variable, or+ # (2) before a word containing "conftest.", or (3) at the end.+ # Note that $ac_compile itself does not contain backslashes and begins+ # with a dollar sign (not a hyphen), so the echo should work correctly.+ # The option is referenced via a variable to avoid confusing sed.+ lt_compile=`echo "$ac_compile" | $SED \+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \+ -e 's:$: $lt_compiler_flag:'`+ (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)+ (eval "$lt_compile" 2>conftest.err)+ ac_status=$?+ cat conftest.err >&5+ echo "$as_me:$LINENO: \$? = $ac_status" >&5+ if (exit $ac_status) && test -s "$ac_outfile"; then+ # The compiler can only warn and ignore the option if not recognized+ # So say no if there are warnings other than the usual output.+ $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2+ if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then+ lt_cv_prog_compiler_pic_works=yes+ fi+ fi+ $RM conftest*+ ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5+printf '%s\n' "$lt_cv_prog_compiler_pic_works" >&6; }++if test yes = "$lt_cv_prog_compiler_pic_works"; then+ case $lt_prog_compiler_pic in+ "" | " "*) ;;+ *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;+ esac+else+ lt_prog_compiler_pic=+ lt_prog_compiler_can_build_shared=no+fi++fi++++++++++++#+# Check to make sure the static flag actually works.+#+wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5+printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }+if test ${lt_cv_prog_compiler_static_works+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) lt_cv_prog_compiler_static_works=no+ save_LDFLAGS=$LDFLAGS+ LDFLAGS="$LDFLAGS $lt_tmp_static_flag"+ echo "$lt_simple_link_test_code" > conftest.$ac_ext+ if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then+ # The linker can only warn and ignore the option if not recognized+ # So say no if there are warnings+ if test -s conftest.err; then+ # Append any errors to the config.log.+ cat conftest.err 1>&5+ $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2+ if diff conftest.exp conftest.er2 >/dev/null; then+ lt_cv_prog_compiler_static_works=yes+ fi+ else+ lt_cv_prog_compiler_static_works=yes+ fi+ fi+ $RM -r conftest*+ LDFLAGS=$save_LDFLAGS+ ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5+printf '%s\n' "$lt_cv_prog_compiler_static_works" >&6; }++if test yes = "$lt_cv_prog_compiler_static_works"; then+ :+else+ lt_prog_compiler_static=+fi++++++++ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5+printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }+if test ${lt_cv_prog_compiler_c_o+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) lt_cv_prog_compiler_c_o=no+ $RM -r conftest 2>/dev/null+ mkdir conftest+ cd conftest+ mkdir out+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext++ lt_compiler_flag="-o out/conftest2.$ac_objext"+ # Insert the option either (1) after the last *FLAGS variable, or+ # (2) before a word containing "conftest.", or (3) at the end.+ # Note that $ac_compile itself does not contain backslashes and begins+ # with a dollar sign (not a hyphen), so the echo should work correctly.+ lt_compile=`echo "$ac_compile" | $SED \+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \+ -e 's:$: $lt_compiler_flag:'`+ (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)+ (eval "$lt_compile" 2>out/conftest.err)+ ac_status=$?+ cat out/conftest.err >&5+ echo "$as_me:$LINENO: \$? = $ac_status" >&5+ if (exit $ac_status) && test -s out/conftest2.$ac_objext+ then+ # The compiler can only warn and ignore the option if not recognized+ # So say no if there are warnings+ $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp+ $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2+ if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then+ lt_cv_prog_compiler_c_o=yes+ fi+ fi+ chmod u+w . 2>&5+ $RM conftest*+ # SGI C++ compiler will create directory out/ii_files/ for+ # template instantiation+ test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files+ $RM out/* && rmdir out+ cd ..+ $RM -r conftest+ $RM conftest*+ ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5+printf '%s\n' "$lt_cv_prog_compiler_c_o" >&6; }+++++++ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5+printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }+if test ${lt_cv_prog_compiler_c_o+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) lt_cv_prog_compiler_c_o=no+ $RM -r conftest 2>/dev/null+ mkdir conftest+ cd conftest+ mkdir out+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext++ lt_compiler_flag="-o out/conftest2.$ac_objext"+ # Insert the option either (1) after the last *FLAGS variable, or+ # (2) before a word containing "conftest.", or (3) at the end.+ # Note that $ac_compile itself does not contain backslashes and begins+ # with a dollar sign (not a hyphen), so the echo should work correctly.+ lt_compile=`echo "$ac_compile" | $SED \+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \+ -e 's:$: $lt_compiler_flag:'`+ (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)+ (eval "$lt_compile" 2>out/conftest.err)+ ac_status=$?+ cat out/conftest.err >&5+ echo "$as_me:$LINENO: \$? = $ac_status" >&5+ if (exit $ac_status) && test -s out/conftest2.$ac_objext+ then+ # The compiler can only warn and ignore the option if not recognized+ # So say no if there are warnings+ $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp+ $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2+ if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then+ lt_cv_prog_compiler_c_o=yes+ fi+ fi+ chmod u+w . 2>&5+ $RM conftest*+ # SGI C++ compiler will create directory out/ii_files/ for+ # template instantiation+ test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files+ $RM out/* && rmdir out+ cd ..+ $RM -r conftest+ $RM conftest*+ ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5+printf '%s\n' "$lt_cv_prog_compiler_c_o" >&6; }+++++hard_links=nottested+if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then+ # do not overwrite the value of need_locks provided by the user+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5+printf %s "checking if we can lock with hard links... " >&6; }+ hard_links=yes+ $RM conftest*+ ln conftest.a conftest.b 2>/dev/null && hard_links=no+ touch conftest.a+ ln conftest.a conftest.b 2>&5 || hard_links=no+ ln conftest.a conftest.b 2>/dev/null && hard_links=no+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5+printf '%s\n' "$hard_links" >&6; }+ if test no = "$hard_links"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5+printf '%s\n' "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}+ need_locks=warn+ fi+else+ need_locks=no+fi+++++++ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5+printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }++ runpath_var=+ allow_undefined_flag=+ always_export_symbols=no+ archive_cmds=+ archive_expsym_cmds=+ compiler_needs_object=no+ enable_shared_with_static_runtimes=no+ export_dynamic_flag_spec=+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'+ hardcode_automatic=no+ hardcode_direct=no+ hardcode_direct_absolute=no+ hardcode_libdir_flag_spec=+ hardcode_libdir_separator=+ hardcode_minus_L=no+ hardcode_shlibpath_var=unsupported+ inherit_rpath=no+ link_all_deplibs=unknown+ module_cmds=+ module_expsym_cmds=+ old_archive_from_new_cmds=+ old_archive_from_expsyms_cmds=+ thread_safe_flag_spec=+ whole_archive_flag_spec=+ # include_expsyms should be a list of space-separated symbols to be *always*+ # included in the symbol list+ include_expsyms=+ # exclude_expsyms can be an extended regexp of symbols to exclude+ # it will be wrapped by ' (' and ')$', so one must not match beginning or+ # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',+ # as well as any symbol that contains 'd'.+ exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'+ # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out+ # platforms (ab)use it in PIC code, but their linkers get confused if+ # the symbol is explicitly referenced. Since portable code cannot+ # rely on this symbol name, it's probably fine to never include it in+ # preloaded symbol tables.+ # Exclude shared library initialization/finalization symbols.+ extract_expsyms_cmds=++ case $host_os in+ cygwin* | mingw* | windows* | pw32* | cegcc*)+ # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time+ # When not using gcc, we currently assume that we are using+ # Microsoft Visual C++ or Intel C++ Compiler.+ if test yes != "$GCC"; then+ with_gnu_ld=no+ fi+ ;;+ interix*)+ # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)+ with_gnu_ld=yes+ ;;+ esac++ ld_shlibs=yes++ # On some targets, GNU ld is compatible enough with the native linker+ # that we're better off using the native interface for both.+ lt_use_gnu_ld_interface=no+ if test yes = "$with_gnu_ld"; then+ case $host_os in+ aix*)+ # The AIX port of GNU ld has always aspired to compatibility+ # with the native linker. However, as the warning in the GNU ld+ # block says, versions before 2.19.5* couldn't really create working+ # shared libraries, regardless of the interface used.+ case `$LD -v 2>&1` in+ *\ \(GNU\ Binutils\)\ 2.19.5*) ;;+ *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;+ *\ \(GNU\ Binutils\)\ [3-9]*) ;;+ *)+ lt_use_gnu_ld_interface=yes+ ;;+ esac+ ;;+ *)+ lt_use_gnu_ld_interface=yes+ ;;+ esac+ fi++ if test yes = "$lt_use_gnu_ld_interface"; then+ # If archive_cmds runs LD, not CC, wlarc should be empty+ wlarc='$wl'++ # Set some defaults for GNU ld with shared library support. These+ # are reset later if shared libraries are not supported. Putting them+ # here allows them to be overridden if necessary.+ runpath_var=LD_RUN_PATH+ hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'+ export_dynamic_flag_spec='$wl--export-dynamic'+ # ancient GNU ld didn't support --whole-archive et. al.+ if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then+ whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'+ else+ whole_archive_flag_spec=+ fi+ supports_anon_versioning=no+ case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in+ *GNU\ gold*) supports_anon_versioning=yes ;;+ *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11+ *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...+ *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...+ *\ 2.11.*) ;; # other 2.11 versions+ *) supports_anon_versioning=yes ;;+ esac++ # See if GNU ld supports shared libraries.+ case $host_os in+ aix[3-9]*)+ # On AIX/PPC, the GNU linker is very broken+ if test ia64 != "$host_cpu"; then+ ld_shlibs=no+ cat <<_LT_EOF 1>&2++*** Warning: the GNU linker, at least up to release 2.19, is reported+*** to be unable to reliably create shared libraries on AIX.+*** Therefore, libtool is disabling shared libraries support. If you+*** really care for shared libraries, you may want to install binutils+*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.+*** You will then need to restart the configuration process.++_LT_EOF+ fi+ ;;++ amigaos*)+ case $host_cpu in+ powerpc)+ # see comment about AmigaOS4 .so support+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'+ archive_expsym_cmds=''+ ;;+ m68k)+ archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'+ hardcode_libdir_flag_spec='-L$libdir'+ hardcode_minus_L=yes+ ;;+ esac+ ;;++ beos*)+ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then+ allow_undefined_flag=unsupported+ # Joseph Beckenbach <jrb3@best.com> says some releases of gcc+ # support --undefined. This deserves some investigation. FIXME+ archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'+ else+ ld_shlibs=no+ fi+ ;;++ cygwin* | mingw* | windows* | pw32* | cegcc*)+ # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,+ # as there is no search path for DLLs.+ hardcode_libdir_flag_spec='-L$libdir'+ export_dynamic_flag_spec='$wl--export-all-symbols'+ allow_undefined_flag=unsupported+ always_export_symbols=no+ enable_shared_with_static_runtimes=yes+ 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'+ exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'+ file_list_spec='@'++ if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'+ # If the export-symbols file already is a .def file, use it as+ # is; otherwise, prepend EXPORTS...+ archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then+ cp $export_symbols $output_objdir/$soname.def;+ else+ echo EXPORTS > $output_objdir/$soname.def;+ cat $export_symbols >> $output_objdir/$soname.def;+ fi~+ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'+ else+ ld_shlibs=no+ fi+ ;;++ haiku*)+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'+ link_all_deplibs=no+ ;;++ os2*)+ hardcode_libdir_flag_spec='-L$libdir'+ hardcode_minus_L=yes+ allow_undefined_flag=unsupported+ shrext_cmds=.dll+ archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~+ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~+ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~+ $ECHO EXPORTS >> $output_objdir/$libname.def~+ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~+ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~+ emximp -o $lib $output_objdir/$libname.def'+ archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~+ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~+ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~+ $ECHO EXPORTS >> $output_objdir/$libname.def~+ prefix_cmds="$SED"~+ if test EXPORTS = "`$SED 1q $export_symbols`"; then+ prefix_cmds="$prefix_cmds -e 1d";+ fi~+ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~+ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~+ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~+ emximp -o $lib $output_objdir/$libname.def'+ old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'+ enable_shared_with_static_runtimes=yes+ file_list_spec='@'+ ;;++ interix[3-9]*)+ hardcode_direct=no+ hardcode_shlibpath_var=no+ hardcode_libdir_flag_spec='$wl-rpath,$libdir'+ export_dynamic_flag_spec='$wl-E'+ # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.+ # Instead, shared libraries are loaded at an image base (0x10000000 by+ # default) and relocated if they conflict, which is a slow very memory+ # consuming and fragmenting process. To avoid this, we pick a random,+ # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link+ # time. Moving up from 0x10000000 also allows more sbrk(2) space.+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'+ archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'+ ;;++ gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)+ tmp_diet=no+ if test linux-dietlibc = "$host_os"; then+ case $cc_basename in+ diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)+ esac+ fi+ if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \+ && test no = "$tmp_diet"+ then+ tmp_addflag=' $pic_flag'+ tmp_sharedflag='-shared'+ case $cc_basename,$host_cpu in+ pgcc*) # Portland Group C compiler+ whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'+ tmp_addflag=' $pic_flag'+ ;;+ pgf77* | pgf90* | pgf95* | pgfortran*)+ # Portland Group f77 and f90 compilers+ whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'+ tmp_addflag=' $pic_flag -Mnomain' ;;+ ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64+ tmp_addflag=' -i_dynamic' ;;+ efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64+ tmp_addflag=' -i_dynamic -nofor_main' ;;+ ifc* | ifort*) # Intel Fortran compiler+ tmp_addflag=' -nofor_main' ;;+ lf95*) # Lahey Fortran 8.1+ whole_archive_flag_spec=+ tmp_sharedflag='--shared' ;;+ nagfor*) # NAGFOR 5.3+ tmp_sharedflag='-Wl,-shared' ;;+ xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)+ tmp_sharedflag='-qmkshrobj'+ tmp_addflag= ;;+ nvcc*) # Cuda Compiler Driver 2.2+ whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'+ compiler_needs_object=yes+ ;;+ esac+ case `$CC -V 2>&1 | $SED 5q` in+ *Sun\ C*) # Sun C 5.9+ whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'+ compiler_needs_object=yes+ tmp_sharedflag='-G' ;;+ *Sun\ F*) # Sun Fortran 8.3+ tmp_sharedflag='-G' ;;+ esac+ archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'++ if test yes = "$supports_anon_versioning"; then+ archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~+ cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~+ echo "local: *; };" >> $output_objdir/$libname.ver~+ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'+ fi++ case $cc_basename in+ tcc*)+ hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'+ export_dynamic_flag_spec='-rdynamic'+ ;;+ xlf* | bgf* | bgxlf* | mpixlf*)+ # IBM XL Fortran 10.1 on PPC cannot create shared libs itself+ whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'+ hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'+ archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'+ if test yes = "$supports_anon_versioning"; then+ archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~+ cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~+ echo "local: *; };" >> $output_objdir/$libname.ver~+ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'+ fi+ ;;+ esac+ else+ ld_shlibs=no+ fi+ ;;++ *-mlibc)+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'+ ;;++ netbsd* | netbsdelf*-gnu)+ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then+ archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'+ wlarc=+ else+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'+ fi+ ;;++ solaris*)+ if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then+ ld_shlibs=no+ cat <<_LT_EOF 1>&2++*** Warning: The releases 2.8.* of the GNU linker cannot reliably+*** create shared libraries on Solaris systems. Therefore, libtool+*** is disabling shared libraries support. We urge you to upgrade GNU+*** binutils to release 2.9.1 or newer. Another option is to modify+*** your PATH or compiler configuration so that the native linker is+*** used, and then restart.++_LT_EOF+ elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'+ else+ ld_shlibs=no+ fi+ ;;++ sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)+ case `$LD -v 2>&1` in+ *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)+ ld_shlibs=no+ cat <<_LT_EOF 1>&2++*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot+*** reliably create shared libraries on SCO systems. Therefore, libtool+*** is disabling shared libraries support. We urge you to upgrade GNU+*** binutils to release 2.16.91.0.3 or newer. Another option is to modify+*** your PATH or compiler configuration so that the native linker is+*** used, and then restart.++_LT_EOF+ ;;+ *)+ # For security reasons, it is highly recommended that you always+ # use absolute paths for naming shared libraries, and exclude the+ # DT_RUNPATH tag from executables and libraries. But doing so+ # requires that you compile everything twice, which is a pain.+ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then+ hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'+ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'+ else+ ld_shlibs=no+ fi+ ;;+ esac+ ;;++ sunos4*)+ archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'+ wlarc=+ hardcode_direct=yes+ hardcode_shlibpath_var=no+ ;;++ *)+ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'+ else+ ld_shlibs=no+ fi+ ;;+ esac++ if test no = "$ld_shlibs"; then+ runpath_var=+ hardcode_libdir_flag_spec=+ export_dynamic_flag_spec=+ whole_archive_flag_spec=+ fi+ else+ # PORTME fill in a description of your system's linker (not GNU ld)+ case $host_os in+ aix3*)+ allow_undefined_flag=unsupported+ always_export_symbols=yes+ archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'+ # Note: this linker hardcodes the directories in LIBPATH if there+ # are no directories specified by -L.+ hardcode_minus_L=yes+ if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then+ # Neither direct hardcoding nor static linking is supported with a+ # broken collect2.+ hardcode_direct=unsupported+ fi+ ;;++ aix[4-9]*)+ if test ia64 = "$host_cpu"; then+ # On IA64, the linker does run time linking by default, so we don't+ # have to do anything special.+ aix_use_runtimelinking=no+ exp_sym_flag='-Bexport'+ no_entry_flag=+ else+ # If we're using GNU nm, then we don't want the "-C" option.+ # -C means demangle to GNU nm, but means don't demangle to AIX nm.+ # Without the "-l" option, or with the "-B" option, AIX nm treats+ # weak defined symbols like other global defined symbols, whereas+ # GNU nm marks them as "W".+ # While the 'weak' keyword is ignored in the Export File, we need+ # it in the Import File for the 'aix-soname' feature, so we have+ # to replace the "-B" option with "-P" for AIX nm.+ if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then+ export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'+ else+ export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'+ fi+ aix_use_runtimelinking=no++ # Test if we are trying to use run time linking or normal+ # AIX style linking. If -brtl is somewhere in LDFLAGS, we+ # have runtime linking enabled, and use it for executables.+ # For shared libraries, we enable/disable runtime linking+ # depending on the kind of the shared library created -+ # when "with_aix_soname,aix_use_runtimelinking" is:+ # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables+ # "aix,yes" lib.so shared, rtl:yes, for executables+ # lib.a static archive+ # "both,no" lib.so.V(shr.o) shared, rtl:yes+ # lib.a(lib.so.V) shared, rtl:no, for executables+ # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables+ # lib.a(lib.so.V) shared, rtl:no+ # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables+ # lib.a static archive+ case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)+ for ld_flag in $LDFLAGS; do+ if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then+ aix_use_runtimelinking=yes+ break+ fi+ done+ if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then+ # With aix-soname=svr4, we create the lib.so.V shared archives only,+ # so we don't have lib.a shared libs to link our executables.+ # We have to force runtime linking in this case.+ aix_use_runtimelinking=yes+ LDFLAGS="$LDFLAGS -Wl,-brtl"+ fi+ ;;+ esac++ exp_sym_flag='-bexport'+ no_entry_flag='-bnoentry'+ fi++ # When large executables or shared objects are built, AIX ld can+ # have problems creating the table of contents. If linking a library+ # or program results in "error TOC overflow" add -mminimal-toc to+ # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not+ # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.++ archive_cmds=''+ hardcode_direct=yes+ hardcode_direct_absolute=yes+ hardcode_libdir_separator=':'+ link_all_deplibs=yes+ file_list_spec='$wl-f,'+ case $with_aix_soname,$aix_use_runtimelinking in+ aix,*) ;; # traditional, no import file+ svr4,* | *,yes) # use import file+ # The Import File defines what to hardcode.+ hardcode_direct=no+ hardcode_direct_absolute=no+ ;;+ esac++ if test yes = "$GCC"; then+ case $host_os in aix4.[012]|aix4.[012].*)+ # We only want to do this on AIX 4.2 and lower, the check+ # below for broken collect2 doesn't work under 4.3++ collect2name=`$CC -print-prog-name=collect2`+ if test -f "$collect2name" &&+ strings "$collect2name" | $GREP resolve_lib_name >/dev/null+ then+ # We have reworked collect2+ :+ else+ # We have old collect2+ hardcode_direct=unsupported+ # It fails to find uninstalled libraries when the uninstalled+ # path is not listed in the libpath. Setting hardcode_minus_L+ # to unsupported forces relinking+ hardcode_minus_L=yes+ hardcode_libdir_flag_spec='-L$libdir'+ hardcode_libdir_separator=+ fi+ ;;+ esac+ shared_flag='-shared'+ if test yes = "$aix_use_runtimelinking"; then+ shared_flag="$shared_flag "'$wl-G'+ fi+ # Need to ensure runtime linking is disabled for the traditional+ # shared library, or the linker may eventually find shared libraries+ # /with/ Import File - we do not want to mix them.+ shared_flag_aix='-shared'+ shared_flag_svr4='-shared $wl-G'+ else+ # not using gcc+ if test ia64 = "$host_cpu"; then+ # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release+ # chokes on -Wl,-G. The following line is correct:+ shared_flag='-G'+ else+ if test yes = "$aix_use_runtimelinking"; then+ shared_flag='$wl-G'+ else+ shared_flag='$wl-bM:SRE'+ fi+ shared_flag_aix='$wl-bM:SRE'+ shared_flag_svr4='$wl-G'+ fi+ fi++ export_dynamic_flag_spec='$wl-bexpall'+ # It seems that -bexpall does not export symbols beginning with+ # underscore (_), so it is better to generate a list of symbols to export.+ always_export_symbols=yes+ if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then+ # Warning - without using the other runtime loading flags (-brtl),+ # -berok will link without error, but may produce a broken library.+ allow_undefined_flag='-berok'+ # Determine the default libpath from the value encoded in an+ # empty executable.+ if test set = "${lt_cv_aix_libpath+set}"; then+ aix_libpath=$lt_cv_aix_libpath+else+ if test ${lt_cv_aix_libpath_+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */++int+main (void)+{++ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_link "$LINENO"+then :++ lt_aix_libpath_sed='+ /Import File Strings/,/^$/ {+ /^0/ {+ s/^0 *\([^ ]*\) *$/\1/+ p+ }+ }'+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`+ # Check for a 64-bit object if we didn't find anything.+ if test -z "$lt_cv_aix_libpath_"; then+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`+ fi+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam \+ conftest$ac_exeext conftest.$ac_ext+ if test -z "$lt_cv_aix_libpath_"; then+ lt_cv_aix_libpath_=/usr/lib:/lib+ fi+ ;;+esac+fi++ aix_libpath=$lt_cv_aix_libpath_+fi++ hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"+ archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag+ else+ if test ia64 = "$host_cpu"; then+ hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'+ allow_undefined_flag="-z nodefs"+ archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"+ else+ # Determine the default libpath from the value encoded in an+ # empty executable.+ if test set = "${lt_cv_aix_libpath+set}"; then+ aix_libpath=$lt_cv_aix_libpath+else+ if test ${lt_cv_aix_libpath_+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */++int+main (void)+{++ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_link "$LINENO"+then :++ lt_aix_libpath_sed='+ /Import File Strings/,/^$/ {+ /^0/ {+ s/^0 *\([^ ]*\) *$/\1/+ p+ }+ }'+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`+ # Check for a 64-bit object if we didn't find anything.+ if test -z "$lt_cv_aix_libpath_"; then+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`+ fi+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam \+ conftest$ac_exeext conftest.$ac_ext+ if test -z "$lt_cv_aix_libpath_"; then+ lt_cv_aix_libpath_=/usr/lib:/lib+ fi+ ;;+esac+fi++ aix_libpath=$lt_cv_aix_libpath_+fi++ hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"+ # Warning - without using the other run time loading flags,+ # -berok will link without error, but may produce a broken library.+ no_undefined_flag=' $wl-bernotok'+ allow_undefined_flag=' $wl-berok'+ if test yes = "$with_gnu_ld"; then+ # We only use this code for GNU lds that support --whole-archive.+ whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'+ else+ # Exported symbols can be pulled into shared objects from archives+ whole_archive_flag_spec='$convenience'+ fi+ archive_cmds_need_lc=yes+ archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'+ # -brtl affects multiple linker settings, -berok does not and is overridden later+ compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'+ if test svr4 != "$with_aix_soname"; then+ # This is similar to how AIX traditionally builds its shared libraries.+ archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'+ fi+ if test aix != "$with_aix_soname"; then+ archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'+ else+ # used by -dlpreopen to get the symbols+ archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'+ fi+ archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'+ fi+ fi+ ;;++ amigaos*)+ case $host_cpu in+ powerpc)+ # see comment about AmigaOS4 .so support+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'+ archive_expsym_cmds=''+ ;;+ m68k)+ archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'+ hardcode_libdir_flag_spec='-L$libdir'+ hardcode_minus_L=yes+ ;;+ esac+ ;;++ bsdi[45]*)+ export_dynamic_flag_spec=-rdynamic+ ;;++ cygwin* | mingw* | windows* | pw32* | cegcc*)+ # When not using gcc, we currently assume that we are using+ # Microsoft Visual C++ or Intel C++ Compiler.+ # hardcode_libdir_flag_spec is actually meaningless, as there is+ # no search path for DLLs.+ case $cc_basename in+ cl* | icl*)+ # Native MSVC or ICC+ hardcode_libdir_flag_spec=' '+ allow_undefined_flag=unsupported+ always_export_symbols=yes+ file_list_spec='@'+ # Tell ltmain to make .lib files, not .a files.+ libext=lib+ # Tell ltmain to make .dll files, not .so files.+ shrext_cmds=.dll+ # FIXME: Setting linknames here is a bad hack.+ archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='+ archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then+ cp "$export_symbols" "$output_objdir/$soname.def";+ echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";+ else+ $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;+ fi~+ $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~+ linknames='+ # The linker will not automatically build a static lib if we build a DLL.+ # _LT_TAGVAR(old_archive_from_new_cmds, )='true'+ enable_shared_with_static_runtimes=yes+ exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'+ # Don't use ranlib+ old_postinstall_cmds='chmod 644 $oldlib'+ postlink_cmds='lt_outputfile="@OUTPUT@"~+ lt_tool_outputfile="@TOOL_OUTPUT@"~+ case $lt_outputfile in+ *.exe|*.EXE) ;;+ *)+ lt_outputfile=$lt_outputfile.exe+ lt_tool_outputfile=$lt_tool_outputfile.exe+ ;;+ esac~+ if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;+ $RM "$lt_outputfile.manifest";+ fi'+ ;;+ *)+ # Assume MSVC and ICC wrapper+ hardcode_libdir_flag_spec=' '+ allow_undefined_flag=unsupported+ # Tell ltmain to make .lib files, not .a files.+ libext=lib+ # Tell ltmain to make .dll files, not .so files.+ shrext_cmds=.dll+ # FIXME: Setting linknames here is a bad hack.+ archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='+ # The linker will automatically build a .lib file if we build a DLL.+ old_archive_from_new_cmds='true'+ # FIXME: Should let the user specify the lib program.+ old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'+ enable_shared_with_static_runtimes=yes+ ;;+ esac+ ;;++ darwin* | rhapsody*)+++ archive_cmds_need_lc=no+ hardcode_direct=no+ hardcode_automatic=yes+ hardcode_shlibpath_var=unsupported+ if test yes = "$lt_cv_ld_force_load"; then+ whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'++ else+ whole_archive_flag_spec=''+ fi+ link_all_deplibs=yes+ allow_undefined_flag=$_lt_dar_allow_undefined+ case $cc_basename in+ ifort*|nagfor*) _lt_dar_can_shared=yes ;;+ *) _lt_dar_can_shared=$GCC ;;+ esac+ if test yes = "$_lt_dar_can_shared"; then+ output_verbose_link_cmd=func_echo_all+ archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"+ module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"+ archive_expsym_cmds="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"+ module_expsym_cmds="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"++ else+ ld_shlibs=no+ fi++ ;;++ dgux*)+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'+ hardcode_libdir_flag_spec='-L$libdir'+ hardcode_shlibpath_var=no+ ;;++ # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor+ # support. Future versions do this automatically, but an explicit c++rt0.o+ # does not break anything, and helps significantly (at the cost of a little+ # extra space).+ freebsd2.2*)+ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'+ hardcode_libdir_flag_spec='-R$libdir'+ hardcode_direct=yes+ hardcode_shlibpath_var=no+ ;;++ # Unfortunately, older versions of FreeBSD 2 do not have this feature.+ freebsd2.*)+ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'+ hardcode_direct=yes+ hardcode_minus_L=yes+ hardcode_shlibpath_var=no+ ;;++ # FreeBSD 3 and greater uses gcc -shared to do shared libraries.+ freebsd* | dragonfly* | midnightbsd*)+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'+ hardcode_libdir_flag_spec='-R$libdir'+ hardcode_direct=yes+ hardcode_shlibpath_var=no+ ;;++ hpux9*)+ if test yes = "$GCC"; then+ archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'+ else+ archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'+ fi+ hardcode_libdir_flag_spec='$wl+b $wl$libdir'+ hardcode_libdir_separator=:+ hardcode_direct=yes++ # hardcode_minus_L: Not really in the search PATH,+ # but as the default location of the library.+ hardcode_minus_L=yes+ export_dynamic_flag_spec='$wl-E'+ ;;++ hpux10*)+ if test yes,no = "$GCC,$with_gnu_ld"; then+ archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'+ else+ archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'+ fi+ if test no = "$with_gnu_ld"; then+ hardcode_libdir_flag_spec='$wl+b $wl$libdir'+ hardcode_libdir_separator=:+ hardcode_direct=yes+ hardcode_direct_absolute=yes+ export_dynamic_flag_spec='$wl-E'+ # hardcode_minus_L: Not really in the search PATH,+ # but as the default location of the library.+ hardcode_minus_L=yes+ fi+ ;;++ hpux11*)+ if test yes,no = "$GCC,$with_gnu_ld"; then+ case $host_cpu in+ hppa*64*)+ archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'+ ;;+ ia64*)+ archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'+ ;;+ *)+ archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'+ ;;+ esac+ else+ case $host_cpu in+ hppa*64*)+ archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'+ ;;+ ia64*)+ archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'+ ;;+ *)++ # Older versions of the 11.00 compiler do not understand -b yet+ # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5+printf %s "checking if $CC understands -b... " >&6; }+if test ${lt_cv_prog_compiler__b+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) lt_cv_prog_compiler__b=no+ save_LDFLAGS=$LDFLAGS+ LDFLAGS="$LDFLAGS -b"+ echo "$lt_simple_link_test_code" > conftest.$ac_ext+ if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then+ # The linker can only warn and ignore the option if not recognized+ # So say no if there are warnings+ if test -s conftest.err; then+ # Append any errors to the config.log.+ cat conftest.err 1>&5+ $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2+ if diff conftest.exp conftest.er2 >/dev/null; then+ lt_cv_prog_compiler__b=yes+ fi+ else+ lt_cv_prog_compiler__b=yes+ fi+ fi+ $RM -r conftest*+ LDFLAGS=$save_LDFLAGS+ ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5+printf '%s\n' "$lt_cv_prog_compiler__b" >&6; }++if test yes = "$lt_cv_prog_compiler__b"; then+ archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'+else+ archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'+fi++ ;;+ esac+ fi+ if test no = "$with_gnu_ld"; then+ hardcode_libdir_flag_spec='$wl+b $wl$libdir'+ hardcode_libdir_separator=:++ case $host_cpu in+ hppa*64*|ia64*)+ hardcode_direct=no+ hardcode_shlibpath_var=no+ ;;+ *)+ hardcode_direct=yes+ hardcode_direct_absolute=yes+ export_dynamic_flag_spec='$wl-E'++ # hardcode_minus_L: Not really in the search PATH,+ # but as the default location of the library.+ hardcode_minus_L=yes+ ;;+ esac+ fi+ ;;++ irix5* | irix6* | nonstopux*)+ if test yes = "$GCC"; then+ 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'+ # Try to use the -exported_symbol ld option, if it does not+ # work, assume that -exports_file does not work either and+ # implicitly export all symbols.+ # This should be the same for all languages, so no per-tag cache variable.+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5+printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }+if test ${lt_cv_irix_exported_symbol+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) save_LDFLAGS=$LDFLAGS+ LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */+int foo (void) { return 0; }+_ACEOF+if ac_fn_c_try_link "$LINENO"+then :+ lt_cv_irix_exported_symbol=yes+else case e in #(+ e) lt_cv_irix_exported_symbol=no ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam \+ conftest$ac_exeext conftest.$ac_ext+ LDFLAGS=$save_LDFLAGS ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5+printf '%s\n' "$lt_cv_irix_exported_symbol" >&6; }+ if test yes = "$lt_cv_irix_exported_symbol"; then+ 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'+ fi+ else+ 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'+ 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'+ fi+ archive_cmds_need_lc='no'+ hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'+ hardcode_libdir_separator=:+ inherit_rpath=yes+ link_all_deplibs=yes+ ;;++ linux*)+ case $cc_basename in+ tcc*)+ # Fabrice Bellard et al's Tiny C Compiler+ ld_shlibs=yes+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'+ hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'+ ;;+ esac+ ;;++ *-mlibc)+ ;;++ netbsd* | netbsdelf*-gnu)+ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then+ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out+ else+ archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF+ fi+ hardcode_libdir_flag_spec='-R$libdir'+ hardcode_direct=yes+ hardcode_shlibpath_var=no+ ;;++ newsos6)+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'+ hardcode_direct=yes+ hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'+ hardcode_libdir_separator=:+ hardcode_shlibpath_var=no+ ;;++ *nto* | *qnx*)+ ;;++ openbsd*)+ if test -f /usr/libexec/ld.so; then+ hardcode_direct=yes+ hardcode_shlibpath_var=no+ hardcode_direct_absolute=yes+ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'+ archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'+ hardcode_libdir_flag_spec='$wl-rpath,$libdir'+ export_dynamic_flag_spec='$wl-E'+ else+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'+ hardcode_libdir_flag_spec='$wl-rpath,$libdir'+ fi+ else+ ld_shlibs=no+ fi+ ;;++ os2*)+ hardcode_libdir_flag_spec='-L$libdir'+ hardcode_minus_L=yes+ allow_undefined_flag=unsupported+ shrext_cmds=.dll+ archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~+ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~+ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~+ $ECHO EXPORTS >> $output_objdir/$libname.def~+ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~+ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~+ emximp -o $lib $output_objdir/$libname.def'+ archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~+ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~+ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~+ $ECHO EXPORTS >> $output_objdir/$libname.def~+ prefix_cmds="$SED"~+ if test EXPORTS = "`$SED 1q $export_symbols`"; then+ prefix_cmds="$prefix_cmds -e 1d";+ fi~+ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~+ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~+ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~+ emximp -o $lib $output_objdir/$libname.def'+ old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'+ enable_shared_with_static_runtimes=yes+ file_list_spec='@'+ ;;++ osf3*)+ if test yes = "$GCC"; then+ allow_undefined_flag=' $wl-expect_unresolved $wl\*'+ archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'+ else+ allow_undefined_flag=' -expect_unresolved \*'+ archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'+ fi+ archive_cmds_need_lc='no'+ hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'+ hardcode_libdir_separator=:+ ;;++ osf4* | osf5*) # as osf3* with the addition of -msym flag+ if test yes = "$GCC"; then+ allow_undefined_flag=' $wl-expect_unresolved $wl\*'+ 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'+ hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'+ else+ allow_undefined_flag=' -expect_unresolved \*'+ archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'+ archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~+ $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'++ # Both c and cxx compiler support -rpath directly+ hardcode_libdir_flag_spec='-rpath $libdir'+ fi+ archive_cmds_need_lc='no'+ hardcode_libdir_separator=:+ ;;++ serenity*)+ ;;++ solaris*)+ no_undefined_flag=' -z defs'+ if test yes = "$GCC"; then+ wlarc='$wl'+ archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'+ archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~+ $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'+ else+ case `$CC -V 2>&1` in+ *"Compilers 5.0"*)+ wlarc=''+ archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'+ archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~+ $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'+ ;;+ *)+ wlarc='$wl'+ archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'+ archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~+ $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'+ ;;+ esac+ fi+ hardcode_libdir_flag_spec='-R$libdir'+ hardcode_shlibpath_var=no+ case $host_os in+ solaris2.[0-5] | solaris2.[0-5].*) ;;+ *)+ # The compiler driver will combine and reorder linker options,+ # but understands '-z linker_flag'. GCC discards it without '$wl',+ # but is careful enough not to reorder.+ # Supported since Solaris 2.6 (maybe 2.5.1?)+ if test yes = "$GCC"; then+ whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'+ else+ whole_archive_flag_spec='-z allextract$convenience -z defaultextract'+ fi+ ;;+ esac+ link_all_deplibs=yes+ ;;++ sunos4*)+ if test sequent = "$host_vendor"; then+ # Use $CC to link under sequent, because it throws in some extra .o+ # files that make .init and .fini sections work.+ archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'+ else+ archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'+ fi+ hardcode_libdir_flag_spec='-L$libdir'+ hardcode_direct=yes+ hardcode_minus_L=yes+ hardcode_shlibpath_var=no+ ;;++ sysv4)+ case $host_vendor in+ sni)+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'+ hardcode_direct=yes # is this really true???+ ;;+ siemens)+ ## LD is ld it makes a PLAMLIB+ ## CC just makes a GrossModule.+ archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'+ reload_cmds='$CC -r -o $output$reload_objs'+ hardcode_direct=no+ ;;+ motorola)+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'+ hardcode_direct=no #Motorola manual says yes, but my tests say they lie+ ;;+ esac+ runpath_var='LD_RUN_PATH'+ hardcode_shlibpath_var=no+ ;;++ sysv4.3*)+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'+ hardcode_shlibpath_var=no+ export_dynamic_flag_spec='-Bexport'+ ;;++ sysv4*MP*)+ if test -d /usr/nec; then+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'+ hardcode_shlibpath_var=no+ runpath_var=LD_RUN_PATH+ hardcode_runpath_var=yes+ ld_shlibs=yes+ fi+ ;;++ sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)+ no_undefined_flag='$wl-z,text'+ archive_cmds_need_lc=no+ hardcode_shlibpath_var=no+ runpath_var='LD_RUN_PATH'++ if test yes = "$GCC"; then+ archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'+ archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'+ else+ archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'+ archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'+ fi+ ;;++ sysv5* | sco3.2v5* | sco5v6*)+ # Note: We CANNOT use -z defs as we might desire, because we do not+ # link with -lc, and that would cause any symbols used from libc to+ # always be unresolved, which means just about no library would+ # ever link correctly. If we're not using GNU ld we use -z text+ # though, which does catch some bad symbols but isn't as heavy-handed+ # as -z defs.+ no_undefined_flag='$wl-z,text'+ allow_undefined_flag='$wl-z,nodefs'+ archive_cmds_need_lc=no+ hardcode_shlibpath_var=no+ hardcode_libdir_flag_spec='$wl-R,$libdir'+ hardcode_libdir_separator=':'+ link_all_deplibs=yes+ export_dynamic_flag_spec='$wl-Bexport'+ runpath_var='LD_RUN_PATH'++ if test yes = "$GCC"; then+ archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'+ archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'+ else+ archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'+ archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'+ fi+ ;;++ uts4*)+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'+ hardcode_libdir_flag_spec='-L$libdir'+ hardcode_shlibpath_var=no+ ;;++ *)+ ld_shlibs=no+ ;;+ esac++ if test sni = "$host_vendor"; then+ case $host in+ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)+ export_dynamic_flag_spec='$wl-Blargedynsym'+ ;;+ esac+ fi+ fi++{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5+printf '%s\n' "$ld_shlibs" >&6; }+test no = "$ld_shlibs" && can_build_shared=no++with_gnu_ld=$with_gnu_ld++++++++++++++++#+# Do we need to explicitly link libc?+#+case "x$archive_cmds_need_lc" in+x|xyes)+ # Assume -lc should be added+ archive_cmds_need_lc=yes++ if test yes,yes = "$GCC,$enable_shared"; then+ case $archive_cmds in+ *'~'*)+ # FIXME: we may have to deal with multi-command sequences.+ ;;+ '$CC '*)+ # Test whether the compiler implicitly links with -lc since on some+ # systems, -lgcc has to come before -lc. If gcc already passes -lc+ # to ld, don't add -lc before -lgcc.+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5+printf %s "checking whether -lc should be explicitly linked in... " >&6; }+if test ${lt_cv_archive_cmds_need_lc+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) $RM conftest*+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext++ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5+ (eval $ac_compile) 2>&5+ ac_status=$?+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5+ test $ac_status = 0; } 2>conftest.err; then+ soname=conftest+ lib=conftest+ libobjs=conftest.$ac_objext+ deplibs=+ wl=$lt_prog_compiler_wl+ pic_flag=$lt_prog_compiler_pic+ compiler_flags=-v+ linker_flags=-v+ verstring=+ output_objdir=.+ libname=conftest+ lt_save_allow_undefined_flag=$allow_undefined_flag+ allow_undefined_flag=+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5+ (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5+ ac_status=$?+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5+ test $ac_status = 0; }+ then+ lt_cv_archive_cmds_need_lc=no+ else+ lt_cv_archive_cmds_need_lc=yes+ fi+ allow_undefined_flag=$lt_save_allow_undefined_flag+ else+ cat conftest.err 1>&5+ fi+ $RM conftest*+ ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5+printf '%s\n' "$lt_cv_archive_cmds_need_lc" >&6; }+ archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc+ ;;+ esac+ fi+ ;;+esac+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5+printf %s "checking dynamic linker characteristics... " >&6; }++if test yes = "$GCC"; then+ case $host_os in+ darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;+ *) lt_awk_arg='/^libraries:/' ;;+ esac+ case $host_os in+ mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;+ *) lt_sed_strip_eq='s|=/|/|g' ;;+ esac+ lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`+ case $lt_search_path_spec in+ *\;*)+ # if the path contains ";" then we assume it to be the separator+ # otherwise default to the standard path separator (i.e. ":") - it is+ # assumed that no part of a normal pathname contains ";" but that should+ # okay in the real world where ";" in dirpaths is itself problematic.+ lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`+ ;;+ *)+ lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`+ ;;+ esac+ # Ok, now we have the path, separated by spaces, we can step through it+ # and add multilib dir if necessary...+ lt_tmp_lt_search_path_spec=+ lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`+ # ...but if some path component already ends with the multilib dir we assume+ # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).+ case "$lt_multi_os_dir; $lt_search_path_spec " in+ "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)+ lt_multi_os_dir=+ ;;+ esac+ for lt_sys_path in $lt_search_path_spec; do+ if test -d "$lt_sys_path$lt_multi_os_dir"; then+ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"+ elif test -n "$lt_multi_os_dir"; then+ test -d "$lt_sys_path" && \+ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"+ fi+ done+ lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '+BEGIN {RS = " "; FS = "/|\n";} {+ lt_foo = "";+ lt_count = 0;+ for (lt_i = NF; lt_i > 0; lt_i--) {+ if ($lt_i != "" && $lt_i != ".") {+ if ($lt_i == "..") {+ lt_count++;+ } else {+ if (lt_count == 0) {+ lt_foo = "/" $lt_i lt_foo;+ } else {+ lt_count--;+ }+ }+ }+ }+ if (lt_foo != "") { lt_freq[lt_foo]++; }+ if (lt_freq[lt_foo] == 1) { print lt_foo; }+}'`+ # AWK program above erroneously prepends '/' to C:/dos/paths+ # for these hosts.+ case $host_os in+ mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\+ $SED 's|/\([A-Za-z]:\)|\1|g'` ;;+ esac+ sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`+else+ sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"+fi+library_names_spec=+libname_spec='lib$name'+soname_spec=+shrext_cmds=.so+postinstall_cmds=+postuninstall_cmds=+finish_cmds=+finish_eval=+shlibpath_var=+shlibpath_overrides_runpath=unknown+version_type=none+dynamic_linker="$host_os ld.so"+sys_lib_dlsearch_path_spec="/lib /usr/lib"+need_lib_prefix=unknown+hardcode_into_libs=no++# when you set need_version to no, make sure it does not cause -set_version+# flags to be left without arguments+need_version=unknown++++case $host_os in+aix3*)+ version_type=linux # correct to gnu/linux during the next big refactor+ library_names_spec='$libname$release$shared_ext$versuffix $libname.a'+ shlibpath_var=LIBPATH++ # AIX 3 has no versioning support, so we append a major version to the name.+ soname_spec='$libname$release$shared_ext$major'+ ;;++aix[4-9]*)+ version_type=linux # correct to gnu/linux during the next big refactor+ need_lib_prefix=no+ need_version=no+ hardcode_into_libs=yes+ if test ia64 = "$host_cpu"; then+ # AIX 5 supports IA64+ library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'+ shlibpath_var=LD_LIBRARY_PATH+ else+ # With GCC up to 2.95.x, collect2 would create an import file+ # for dependence libraries. The import file would start with+ # the line '#! .'. This would cause the generated library to+ # depend on '.', always an invalid library. This was fixed in+ # development snapshots of GCC prior to 3.0.+ case $host_os in+ aix4 | aix4.[01] | aix4.[01].*)+ if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'+ echo ' yes '+ echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then+ :+ else+ can_build_shared=no+ fi+ ;;+ esac+ # Using Import Files as archive members, it is possible to support+ # filename-based versioning of shared library archives on AIX. While+ # this would work for both with and without runtime linking, it will+ # prevent static linking of such archives. So we do filename-based+ # shared library versioning with .so extension only, which is used+ # when both runtime linking and shared linking is enabled.+ # Unfortunately, runtime linking may impact performance, so we do+ # not want this to be the default eventually. Also, we use the+ # versioned .so libs for executables only if there is the -brtl+ # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.+ # To allow for filename-based versioning support, we need to create+ # libNAME.so.V as an archive file, containing:+ # *) an Import File, referring to the versioned filename of the+ # archive as well as the shared archive member, telling the+ # bitwidth (32 or 64) of that shared object, and providing the+ # list of exported symbols of that shared object, eventually+ # decorated with the 'weak' keyword+ # *) the shared object with the F_LOADONLY flag set, to really avoid+ # it being seen by the linker.+ # At run time we better use the real file rather than another symlink,+ # but for link time we create the symlink libNAME.so -> libNAME.so.V++ case $with_aix_soname,$aix_use_runtimelinking in+ # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct+ # soname into executable. Probably we can add versioning support to+ # collect2, so additional links can be useful in future.+ aix,yes) # traditional libtool+ dynamic_linker='AIX unversionable lib.so'+ # If using run time linking (on AIX 4.2 or later) use lib<name>.so+ # instead of lib<name>.a to let people know that these are not+ # typical AIX shared libraries.+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'+ ;;+ aix,no) # traditional AIX only+ dynamic_linker='AIX lib.a(lib.so.V)'+ # We preserve .a as extension for shared libraries through AIX4.2+ # and later when we are not doing run time linking.+ library_names_spec='$libname$release.a $libname.a'+ soname_spec='$libname$release$shared_ext$major'+ ;;+ svr4,*) # full svr4 only+ dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"+ library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'+ # We do not specify a path in Import Files, so LIBPATH fires.+ shlibpath_overrides_runpath=yes+ ;;+ *,yes) # both, prefer svr4+ dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"+ library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'+ # unpreferred sharedlib libNAME.a needs extra handling+ postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'+ postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'+ # We do not specify a path in Import Files, so LIBPATH fires.+ shlibpath_overrides_runpath=yes+ ;;+ *,no) # both, prefer aix+ dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"+ library_names_spec='$libname$release.a $libname.a'+ soname_spec='$libname$release$shared_ext$major'+ # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling+ postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'+ postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'+ ;;+ esac+ shlibpath_var=LIBPATH+ fi+ ;;++amigaos*)+ case $host_cpu in+ powerpc)+ # Since July 2007 AmigaOS4 officially supports .so libraries.+ # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'+ ;;+ m68k)+ library_names_spec='$libname.ixlibrary $libname.a'+ # Create ${libname}_ixlibrary.a entries in /sys/libs.+ finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'+ ;;+ esac+ ;;++beos*)+ library_names_spec='$libname$shared_ext'+ dynamic_linker="$host_os ld.so"+ shlibpath_var=LIBRARY_PATH+ ;;++bsdi[45]*)+ version_type=linux # correct to gnu/linux during the next big refactor+ need_version=no+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'+ soname_spec='$libname$release$shared_ext$major'+ finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'+ shlibpath_var=LD_LIBRARY_PATH+ sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"+ sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"+ # the default ld.so.conf also contains /usr/contrib/lib and+ # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow+ # libtool to hard-code these into programs+ ;;++cygwin* | mingw* | windows* | pw32* | cegcc*)+ version_type=windows+ shrext_cmds=.dll+ need_version=no+ need_lib_prefix=no++ case $GCC,$cc_basename in+ yes,*)+ # gcc+ library_names_spec='$libname.dll.a'+ # DLL is installed to $(libdir)/../bin by postinstall_cmds+ # If user builds GCC with multilib enabled,+ # it should just install on $(libdir)+ # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.+ if test xyes = x"$multilib"; then+ postinstall_cmds='base_file=`basename \$file`~+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~+ dldir=$destdir/`dirname \$dlpath`~+ $install_prog $dir/$dlname $destdir/$dlname~+ chmod a+x $destdir/$dlname~+ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then+ eval '\''$striplib $destdir/$dlname'\'' || exit \$?;+ fi'+ else+ postinstall_cmds='base_file=`basename \$file`~+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~+ dldir=$destdir/`dirname \$dlpath`~+ test -d \$dldir || mkdir -p \$dldir~+ $install_prog $dir/$dlname \$dldir/$dlname~+ chmod a+x \$dldir/$dlname~+ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then+ eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;+ fi'+ fi+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~+ dlpath=$dir/\$dldll~+ $RM \$dlpath'+ shlibpath_overrides_runpath=yes++ case $host_os in+ cygwin*)+ # Cygwin DLLs use 'cyg' prefix rather than 'lib'+ soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'++ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"+ ;;+ mingw* | windows* | cegcc*)+ # MinGW DLLs use traditional 'lib' prefix+ soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'+ ;;+ pw32*)+ # pw32 DLLs use 'pw' prefix rather than 'lib'+ library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'+ ;;+ esac+ dynamic_linker='Win32 ld.exe'+ ;;++ *,cl* | *,icl*)+ # Native MSVC or ICC+ libname_spec='$name'+ soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'+ library_names_spec='$libname.dll.lib'++ case $build_os in+ mingw* | windows*)+ sys_lib_search_path_spec=+ lt_save_ifs=$IFS+ IFS=';'+ for lt_path in $LIB+ do+ IFS=$lt_save_ifs+ # Let DOS variable expansion print the short 8.3 style file name.+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"+ done+ IFS=$lt_save_ifs+ # Convert to MSYS style.+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`+ ;;+ cygwin*)+ # Convert to unix form, then to dos form, then back to unix form+ # but this time dos style (no spaces!) so that the unix form looks+ # like /cygdrive/c/PROGRA~1:/cygdr...+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`+ ;;+ *)+ sys_lib_search_path_spec=$LIB+ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then+ # It is most probably a Windows format PATH.+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`+ else+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`+ fi+ # FIXME: find the short name or the path components, as spaces are+ # common. (e.g. "Program Files" -> "PROGRA~1")+ ;;+ esac++ # DLL is installed to $(libdir)/../bin by postinstall_cmds+ postinstall_cmds='base_file=`basename \$file`~+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~+ dldir=$destdir/`dirname \$dlpath`~+ test -d \$dldir || mkdir -p \$dldir~+ $install_prog $dir/$dlname \$dldir/$dlname'+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~+ dlpath=$dir/\$dldll~+ $RM \$dlpath'+ shlibpath_overrides_runpath=yes+ dynamic_linker='Win32 link.exe'+ ;;++ *)+ # Assume MSVC and ICC wrapper+ library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'+ dynamic_linker='Win32 ld.exe'+ ;;+ esac+ # FIXME: first we should search . and the directory the executable is in+ shlibpath_var=PATH+ ;;++darwin* | rhapsody*)+ dynamic_linker="$host_os dyld"+ version_type=darwin+ need_lib_prefix=no+ need_version=no+ library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'+ soname_spec='$libname$release$major$shared_ext'+ shlibpath_overrides_runpath=yes+ shlibpath_var=DYLD_LIBRARY_PATH+ shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'++ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"+ sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'+ ;;++dgux*)+ version_type=linux # correct to gnu/linux during the next big refactor+ need_lib_prefix=no+ need_version=no+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'+ soname_spec='$libname$release$shared_ext$major'+ shlibpath_var=LD_LIBRARY_PATH+ ;;++freebsd* | dragonfly* | midnightbsd*)+ # DragonFly does not have aout. When/if they implement a new+ # versioning mechanism, adjust this.+ if test -x /usr/bin/objformat; then+ objformat=`/usr/bin/objformat`+ else+ case $host_os in+ freebsd[23].*) objformat=aout ;;+ *) objformat=elf ;;+ esac+ fi+ version_type=freebsd-$objformat+ case $version_type in+ freebsd-elf*)+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'+ soname_spec='$libname$release$shared_ext$major'+ need_version=no+ need_lib_prefix=no+ ;;+ freebsd-*)+ library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'+ need_version=yes+ ;;+ esac+ case $host_cpu in+ powerpc64)+ # On FreeBSD bi-arch platforms, a different variable is used for 32-bit+ # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */+int test_pointer_size[sizeof (void *) - 5];++_ACEOF+if ac_fn_c_try_compile "$LINENO"+then :+ shlibpath_var=LD_LIBRARY_PATH+else case e in #(+ e) shlibpath_var=LD_32_LIBRARY_PATH ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext+ ;;+ *)+ shlibpath_var=LD_LIBRARY_PATH+ ;;+ esac+ case $host_os in+ freebsd2.*)+ shlibpath_overrides_runpath=yes+ ;;+ freebsd3.[01]* | freebsdelf3.[01]*)+ shlibpath_overrides_runpath=yes+ hardcode_into_libs=yes+ ;;+ freebsd3.[2-9]* | freebsdelf3.[2-9]* | \+ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)+ shlibpath_overrides_runpath=no+ hardcode_into_libs=yes+ ;;+ *) # from 4.6 on, and DragonFly+ shlibpath_overrides_runpath=yes+ hardcode_into_libs=yes+ ;;+ esac+ ;;++haiku*)+ version_type=linux # correct to gnu/linux during the next big refactor+ need_lib_prefix=no+ need_version=no+ dynamic_linker="$host_os runtime_loader"+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'+ soname_spec='$libname$release$shared_ext$major'+ shlibpath_var=LIBRARY_PATH+ shlibpath_overrides_runpath=no+ sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'+ sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'+ hardcode_into_libs=no+ ;;++hpux9* | hpux10* | hpux11*)+ # Give a soname corresponding to the major version so that dld.sl refuses to+ # link against other versions.+ version_type=sunos+ need_lib_prefix=no+ need_version=no+ case $host_cpu in+ ia64*)+ shrext_cmds='.so'+ hardcode_into_libs=yes+ dynamic_linker="$host_os dld.so"+ shlibpath_var=LD_LIBRARY_PATH+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'+ soname_spec='$libname$release$shared_ext$major'+ if test 32 = "$HPUX_IA64_MODE"; then+ sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"+ sys_lib_dlsearch_path_spec=/usr/lib/hpux32+ else+ sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"+ sys_lib_dlsearch_path_spec=/usr/lib/hpux64+ fi+ ;;+ hppa*64*)+ shrext_cmds='.sl'+ hardcode_into_libs=yes+ dynamic_linker="$host_os dld.sl"+ shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'+ soname_spec='$libname$release$shared_ext$major'+ sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec+ ;;+ *)+ shrext_cmds='.sl'+ dynamic_linker="$host_os dld.sl"+ shlibpath_var=SHLIB_PATH+ shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'+ soname_spec='$libname$release$shared_ext$major'+ ;;+ esac+ # HP-UX runs *really* slowly unless shared libraries are mode 555, ...+ postinstall_cmds='chmod 555 $lib'+ # or fails outright, so override atomically:+ install_override_mode=555+ ;;++interix[3-9]*)+ version_type=linux # correct to gnu/linux during the next big refactor+ need_lib_prefix=no+ need_version=no+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'+ soname_spec='$libname$release$shared_ext$major'+ dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'+ shlibpath_var=LD_LIBRARY_PATH+ shlibpath_overrides_runpath=no+ hardcode_into_libs=yes+ ;;++irix5* | irix6* | nonstopux*)+ case $host_os in+ nonstopux*) version_type=nonstopux ;;+ *)+ if test yes = "$lt_cv_prog_gnu_ld"; then+ version_type=linux # correct to gnu/linux during the next big refactor+ else+ version_type=irix+ fi ;;+ esac+ need_lib_prefix=no+ need_version=no+ soname_spec='$libname$release$shared_ext$major'+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'+ case $host_os in+ irix5* | nonstopux*)+ libsuff= shlibsuff=+ ;;+ *)+ case $LD in # libtool.m4 will add one of these switches to LD+ *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")+ libsuff= shlibsuff= libmagic=32-bit;;+ *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")+ libsuff=32 shlibsuff=N32 libmagic=N32;;+ *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")+ libsuff=64 shlibsuff=64 libmagic=64-bit;;+ *) libsuff= shlibsuff= libmagic=never-match;;+ esac+ ;;+ esac+ shlibpath_var=LD_LIBRARY${shlibsuff}_PATH+ shlibpath_overrides_runpath=no+ sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"+ sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"+ hardcode_into_libs=yes+ ;;++# No shared lib support for Linux oldld, aout, or coff.+linux*oldld* | linux*aout* | linux*coff*)+ dynamic_linker=no+ ;;++linux*android*)+ version_type=none # Android doesn't support versioned libraries.+ need_lib_prefix=no+ need_version=no+ library_names_spec='$libname$release$shared_ext $libname$shared_ext'+ soname_spec='$libname$release$shared_ext'+ finish_cmds=+ shlibpath_var=LD_LIBRARY_PATH+ shlibpath_overrides_runpath=yes++ # This implies no fast_install, which is unacceptable.+ # Some rework will be needed to allow for fast_install+ # before this can be enabled.+ hardcode_into_libs=yes++ dynamic_linker='Android linker'+ # -rpath works at least for libraries that are not overridden by+ # libraries installed in system locations.+ hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'+ ;;++# This must be glibc/ELF.+linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)+ version_type=linux # correct to gnu/linux during the next big refactor+ need_lib_prefix=no+ need_version=no+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'+ soname_spec='$libname$release$shared_ext$major'+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'+ shlibpath_var=LD_LIBRARY_PATH+ shlibpath_overrides_runpath=no++ # Some binutils ld are patched to set DT_RUNPATH+ if test ${lt_cv_shlibpath_overrides_runpath+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) lt_cv_shlibpath_overrides_runpath=no+ save_LDFLAGS=$LDFLAGS+ save_libdir=$libdir+ eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \+ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */++int+main (void)+{++ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_link "$LINENO"+then :+ if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null+then :+ lt_cv_shlibpath_overrides_runpath=yes+fi+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam \+ conftest$ac_exeext conftest.$ac_ext+ LDFLAGS=$save_LDFLAGS+ libdir=$save_libdir+ ;;+esac+fi++ shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath++ # This implies no fast_install, which is unacceptable.+ # Some rework will be needed to allow for fast_install+ # before this can be enabled.+ hardcode_into_libs=yes++ # Ideally, we could use ldconfig to report *all* directories which are+ # searched for libraries, however this is still not possible. Aside from not+ # being certain /sbin/ldconfig is available, command+ # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,+ # even though it is searched at run-time. Try to do the best guess by+ # appending ld.so.conf contents (and includes) to the search path.+ if test -f /etc/ld.so.conf; then+ lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`+ sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"+ fi++ # We used to test for /lib/ld.so.1 and disable shared libraries on+ # powerpc, because MkLinux only supported shared libraries with the+ # GNU dynamic linker. Since this was broken with cross compilers,+ # most powerpc-linux boxes support dynamic linking these days and+ # people can always --disable-shared, the test was removed, and we+ # assume the GNU/Linux dynamic linker is in use.+ dynamic_linker='GNU/Linux ld.so'+ ;;++netbsdelf*-gnu)+ version_type=linux+ need_lib_prefix=no+ need_version=no+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'+ soname_spec='$libname$release$shared_ext$major'+ shlibpath_var=LD_LIBRARY_PATH+ shlibpath_overrides_runpath=no+ hardcode_into_libs=yes+ dynamic_linker='NetBSD ld.elf_so'+ ;;++netbsd*)+ version_type=sunos+ need_lib_prefix=no+ need_version=no+ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then+ library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'+ dynamic_linker='NetBSD (a.out) ld.so'+ else+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'+ soname_spec='$libname$release$shared_ext$major'+ dynamic_linker='NetBSD ld.elf_so'+ fi+ shlibpath_var=LD_LIBRARY_PATH+ shlibpath_overrides_runpath=yes+ hardcode_into_libs=yes+ ;;++*-mlibc)+ version_type=linux # correct to gnu/linux during the next big refactor+ need_lib_prefix=no+ need_version=no+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'+ soname_spec='$libname$release$shared_ext$major'+ dynamic_linker='mlibc ld.so'+ shlibpath_var=LD_LIBRARY_PATH+ shlibpath_overrides_runpath=no+ hardcode_into_libs=yes+ ;;++newsos6)+ version_type=linux # correct to gnu/linux during the next big refactor+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'+ shlibpath_var=LD_LIBRARY_PATH+ shlibpath_overrides_runpath=yes+ ;;++*nto* | *qnx*)+ version_type=qnx+ need_lib_prefix=no+ need_version=no+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'+ soname_spec='$libname$release$shared_ext$major'+ shlibpath_var=LD_LIBRARY_PATH+ shlibpath_overrides_runpath=no+ hardcode_into_libs=yes+ dynamic_linker='ldqnx.so'+ ;;++openbsd*)+ version_type=sunos+ sys_lib_dlsearch_path_spec=/usr/lib+ need_lib_prefix=no+ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then+ need_version=no+ else+ need_version=yes+ fi+ library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'+ shlibpath_var=LD_LIBRARY_PATH+ shlibpath_overrides_runpath=yes+ ;;++os2*)+ libname_spec='$name'+ version_type=windows+ shrext_cmds=.dll+ need_version=no+ need_lib_prefix=no+ # OS/2 can only load a DLL with a base name of 8 characters or less.+ soname_spec='`test -n "$os2dllname" && libname="$os2dllname";+ v=$($ECHO $release$versuffix | tr -d .-);+ n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);+ $ECHO $n$v`$shared_ext'+ library_names_spec='${libname}_dll.$libext'+ dynamic_linker='OS/2 ld.exe'+ shlibpath_var=BEGINLIBPATH+ sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec+ postinstall_cmds='base_file=`basename \$file`~+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~+ dldir=$destdir/`dirname \$dlpath`~+ test -d \$dldir || mkdir -p \$dldir~+ $install_prog $dir/$dlname \$dldir/$dlname~+ chmod a+x \$dldir/$dlname~+ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then+ eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;+ fi'+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~+ dlpath=$dir/\$dldll~+ $RM \$dlpath'+ ;;++osf3* | osf4* | osf5*)+ version_type=osf+ need_lib_prefix=no+ need_version=no+ soname_spec='$libname$release$shared_ext$major'+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'+ shlibpath_var=LD_LIBRARY_PATH+ sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec+ ;;++rdos*)+ dynamic_linker=no+ ;;++serenity*)+ version_type=linux # correct to gnu/linux during the next big refactor+ need_lib_prefix=no+ need_version=no+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'+ soname_spec='$libname$release$shared_ext$major'+ shlibpath_var=LD_LIBRARY_PATH+ shlibpath_overrides_runpath=no+ dynamic_linker='SerenityOS LibELF'+ ;;++solaris*)+ version_type=linux # correct to gnu/linux during the next big refactor+ need_lib_prefix=no+ need_version=no+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'+ soname_spec='$libname$release$shared_ext$major'+ shlibpath_var=LD_LIBRARY_PATH+ shlibpath_overrides_runpath=yes+ hardcode_into_libs=yes+ # ldd complains unless libraries are executable+ postinstall_cmds='chmod +x $lib'+ ;;++sunos4*)+ version_type=sunos+ library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'+ finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'+ shlibpath_var=LD_LIBRARY_PATH+ shlibpath_overrides_runpath=yes+ if test yes = "$with_gnu_ld"; then+ need_lib_prefix=no+ fi+ need_version=yes+ ;;++sysv4 | sysv4.3*)+ version_type=linux # correct to gnu/linux during the next big refactor+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'+ soname_spec='$libname$release$shared_ext$major'+ shlibpath_var=LD_LIBRARY_PATH+ case $host_vendor in+ sni)+ shlibpath_overrides_runpath=no+ need_lib_prefix=no+ runpath_var=LD_RUN_PATH+ ;;+ siemens)+ need_lib_prefix=no+ ;;+ motorola)+ need_lib_prefix=no+ need_version=no+ shlibpath_overrides_runpath=no+ sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'+ ;;+ esac+ ;;++sysv4*MP*)+ if test -d /usr/nec; then+ version_type=linux # correct to gnu/linux during the next big refactor+ library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'+ soname_spec='$libname$shared_ext.$major'+ shlibpath_var=LD_LIBRARY_PATH+ fi+ ;;++sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)+ version_type=sco+ need_lib_prefix=no+ need_version=no+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'+ soname_spec='$libname$release$shared_ext$major'+ shlibpath_var=LD_LIBRARY_PATH+ shlibpath_overrides_runpath=yes+ hardcode_into_libs=yes+ if test yes = "$with_gnu_ld"; then+ sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'+ else+ sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'+ case $host_os in+ sco3.2v5*)+ sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"+ ;;+ esac+ fi+ sys_lib_dlsearch_path_spec='/usr/lib'+ ;;++tpf*)+ # TPF is a cross-target only. Preferred cross-host = GNU/Linux.+ version_type=linux # correct to gnu/linux during the next big refactor+ need_lib_prefix=no+ need_version=no+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'+ shlibpath_var=LD_LIBRARY_PATH+ shlibpath_overrides_runpath=no+ hardcode_into_libs=yes+ ;;++uts4*)+ version_type=linux # correct to gnu/linux during the next big refactor+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'+ soname_spec='$libname$release$shared_ext$major'+ shlibpath_var=LD_LIBRARY_PATH+ ;;++emscripten*)+ version_type=none+ need_lib_prefix=no+ need_version=no+ library_names_spec='$libname$release$shared_ext'+ soname_spec='$libname$release$shared_ext'+ finish_cmds=+ dynamic_linker="Emscripten linker"+ lt_prog_compiler_wl=+lt_prog_compiler_pic=+lt_prog_compiler_static=+++ if test yes = "$GCC"; then+ lt_prog_compiler_wl='-Wl,'+ lt_prog_compiler_static='-static'++ case $host_os in+ aix*)+ # All AIX code is PIC.+ if test ia64 = "$host_cpu"; then+ # AIX 5 now supports IA64 processor+ lt_prog_compiler_static='-Bstatic'+ fi+ lt_prog_compiler_pic='-fPIC'+ ;;++ amigaos*)+ case $host_cpu in+ powerpc)+ # see comment about AmigaOS4 .so support+ lt_prog_compiler_pic='-fPIC'+ ;;+ m68k)+ # FIXME: we need at least 68020 code to build shared libraries, but+ # adding the '-m68020' flag to GCC prevents building anything better,+ # like '-m68040'.+ lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'+ ;;+ esac+ ;;++ beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)+ # PIC is the default for these OSes.+ ;;++ mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)+ # This hack is so that the source file can tell whether it is being+ # built for inclusion in a dll (and should export symbols for example).+ # Although the cygwin gcc ignores -fPIC, still need this for old-style+ # (--disable-auto-import) libraries+ lt_prog_compiler_pic='-DDLL_EXPORT'+ case $host_os in+ os2*)+ lt_prog_compiler_static='$wl-static'+ ;;+ esac+ ;;++ darwin* | rhapsody*)+ # PIC is the default on this platform+ # Common symbols not allowed in MH_DYLIB files+ lt_prog_compiler_pic='-fno-common'+ ;;++ haiku*)+ # PIC is the default for Haiku.+ # The "-static" flag exists, but is broken.+ lt_prog_compiler_static=+ ;;++ hpux*)+ # PIC is the default for 64-bit PA HP-UX, but not for 32-bit+ # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag+ # sets the default TLS model and affects inlining.+ case $host_cpu in+ hppa*64*)+ # +Z the default+ ;;+ *)+ lt_prog_compiler_pic='-fPIC'+ ;;+ esac+ ;;++ interix[3-9]*)+ # Interix 3.x gcc -fpic/-fPIC options generate broken code.+ # Instead, we relocate shared libraries at runtime.+ ;;++ msdosdjgpp*)+ # Just because we use GCC doesn't mean we suddenly get shared libraries+ # on systems that don't support them.+ lt_prog_compiler_can_build_shared=no+ enable_shared=no+ ;;++ *nto* | *qnx*)+ # QNX uses GNU C++, but need to define -shared option too, otherwise+ # it will coredump.+ lt_prog_compiler_pic='-fPIC -shared'+ ;;++ sysv4*MP*)+ if test -d /usr/nec; then+ lt_prog_compiler_pic=-Kconform_pic+ fi+ ;;++ *)+ lt_prog_compiler_pic='-fPIC'+ ;;+ esac++ case $cc_basename in+ nvcc*) # Cuda Compiler Driver 2.2+ lt_prog_compiler_wl='-Xlinker '+ if test -n "$lt_prog_compiler_pic"; then+ lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"+ fi+ ;;+ esac+ else+ # PORTME Check for flag to pass linker flags through the system compiler.+ case $host_os in+ aix*)+ lt_prog_compiler_wl='-Wl,'+ if test ia64 = "$host_cpu"; then+ # AIX 5 now supports IA64 processor+ lt_prog_compiler_static='-Bstatic'+ else+ lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'+ fi+ ;;++ darwin* | rhapsody*)+ # PIC is the default on this platform+ # Common symbols not allowed in MH_DYLIB files+ lt_prog_compiler_pic='-fno-common'+ case $cc_basename in+ nagfor*)+ # NAG Fortran compiler+ lt_prog_compiler_wl='-Wl,-Wl,,'+ lt_prog_compiler_pic='-PIC'+ lt_prog_compiler_static='-Bstatic'+ ;;+ esac+ ;;++ mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)+ # This hack is so that the source file can tell whether it is being+ # built for inclusion in a dll (and should export symbols for example).+ lt_prog_compiler_pic='-DDLL_EXPORT'+ case $host_os in+ os2*)+ lt_prog_compiler_static='$wl-static'+ ;;+ esac+ ;;++ hpux9* | hpux10* | hpux11*)+ lt_prog_compiler_wl='-Wl,'+ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but+ # not for PA HP-UX.+ case $host_cpu in+ hppa*64*|ia64*)+ # +Z the default+ ;;+ *)+ lt_prog_compiler_pic='+Z'+ ;;+ esac+ # Is there a better lt_prog_compiler_static that works with the bundled CC?+ lt_prog_compiler_static='$wl-a ${wl}archive'+ ;;++ irix5* | irix6* | nonstopux*)+ lt_prog_compiler_wl='-Wl,'+ # PIC (with -KPIC) is the default.+ lt_prog_compiler_static='-non_shared'+ ;;++ linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | *freebsd*)+ case $cc_basename in+ # old Intel for x86_64, which still supported -KPIC.+ ecc*)+ lt_prog_compiler_wl='-Wl,'+ lt_prog_compiler_pic='-KPIC'+ lt_prog_compiler_static='-static'+ ;;+ *flang* | ftn | f18* | f95*)+ # Flang compiler.+ lt_prog_compiler_wl='-Wl,'+ lt_prog_compiler_pic='-fPIC'+ lt_prog_compiler_static='-static'+ ;;+ # icc used to be incompatible with GCC.+ # ICC 10 doesn't accept -KPIC any more.+ icc* | ifort*)+ lt_prog_compiler_wl='-Wl,'+ lt_prog_compiler_pic='-fPIC'+ lt_prog_compiler_static='-static'+ ;;+ # Lahey Fortran 8.1.+ lf95*)+ lt_prog_compiler_wl='-Wl,'+ lt_prog_compiler_pic='--shared'+ lt_prog_compiler_static='--static'+ ;;+ nagfor*)+ # NAG Fortran compiler+ lt_prog_compiler_wl='-Wl,-Wl,,'+ lt_prog_compiler_pic='-PIC'+ lt_prog_compiler_static='-Bstatic'+ ;;+ tcc*)+ # Fabrice Bellard et al's Tiny C Compiler+ lt_prog_compiler_wl='-Wl,'+ lt_prog_compiler_pic='-fPIC'+ lt_prog_compiler_static='-static'+ ;;+ pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)+ # Portland Group compilers (*not* the Pentium gcc compiler,+ # which looks to be a dead project)+ lt_prog_compiler_wl='-Wl,'+ lt_prog_compiler_pic='-fpic'+ lt_prog_compiler_static='-Bstatic'+ ;;+ ccc*)+ lt_prog_compiler_wl='-Wl,'+ # All Alpha code is PIC.+ lt_prog_compiler_static='-non_shared'+ ;;+ xl* | bgxl* | bgf* | mpixl*)+ # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene+ lt_prog_compiler_wl='-Wl,'+ lt_prog_compiler_pic='-qpic'+ lt_prog_compiler_static='-qstaticlink'+ ;;+ *)+ case `$CC -V 2>&1 | $SED 5q` in+ *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)+ # Sun Fortran 8.3 passes all unrecognized flags to the linker+ lt_prog_compiler_pic='-KPIC'+ lt_prog_compiler_static='-Bstatic'+ lt_prog_compiler_wl=''+ ;;+ *Sun\ F* | *Sun*Fortran*)+ lt_prog_compiler_pic='-KPIC'+ lt_prog_compiler_static='-Bstatic'+ lt_prog_compiler_wl='-Qoption ld '+ ;;+ *Sun\ C*)+ # Sun C 5.9+ lt_prog_compiler_pic='-KPIC'+ lt_prog_compiler_static='-Bstatic'+ lt_prog_compiler_wl='-Wl,'+ ;;+ *Intel*\ [CF]*Compiler*)+ lt_prog_compiler_wl='-Wl,'+ lt_prog_compiler_pic='-fPIC'+ lt_prog_compiler_static='-static'+ ;;+ *Portland\ Group*)+ lt_prog_compiler_wl='-Wl,'+ lt_prog_compiler_pic='-fpic'+ lt_prog_compiler_static='-Bstatic'+ ;;+ esac+ ;;+ esac+ ;;++ newsos6)+ lt_prog_compiler_pic='-KPIC'+ lt_prog_compiler_static='-Bstatic'+ ;;++ *-mlibc)+ lt_prog_compiler_wl='-Wl,'+ lt_prog_compiler_pic='-fPIC'+ lt_prog_compiler_static='-static'+ ;;++ *nto* | *qnx*)+ # QNX uses GNU C++, but need to define -shared option too, otherwise+ # it will coredump.+ lt_prog_compiler_pic='-fPIC -shared'+ ;;++ osf3* | osf4* | osf5*)+ lt_prog_compiler_wl='-Wl,'+ # All OSF/1 code is PIC.+ lt_prog_compiler_static='-non_shared'+ ;;++ rdos*)+ lt_prog_compiler_static='-non_shared'+ ;;++ serenity*)+ ;;++ solaris*)+ lt_prog_compiler_pic='-KPIC'+ lt_prog_compiler_static='-Bstatic'+ case $cc_basename in+ f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)+ lt_prog_compiler_wl='-Qoption ld ';;+ *)+ lt_prog_compiler_wl='-Wl,';;+ esac+ ;;++ sunos4*)+ lt_prog_compiler_wl='-Qoption ld '+ lt_prog_compiler_pic='-PIC'+ lt_prog_compiler_static='-Bstatic'+ ;;++ sysv4 | sysv4.2uw2* | sysv4.3*)+ lt_prog_compiler_wl='-Wl,'+ lt_prog_compiler_pic='-KPIC'+ lt_prog_compiler_static='-Bstatic'+ ;;++ sysv4*MP*)+ if test -d /usr/nec; then+ lt_prog_compiler_pic='-Kconform_pic'+ lt_prog_compiler_static='-Bstatic'+ fi+ ;;++ sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)+ lt_prog_compiler_wl='-Wl,'+ lt_prog_compiler_pic='-KPIC'+ lt_prog_compiler_static='-Bstatic'+ ;;++ unicos*)+ lt_prog_compiler_wl='-Wl,'+ lt_prog_compiler_can_build_shared=no+ ;;++ uts4*)+ lt_prog_compiler_pic='-pic'+ lt_prog_compiler_static='-Bstatic'+ ;;++ *)+ lt_prog_compiler_can_build_shared=no+ ;;+ esac+ fi++case $host_os in+ # For platforms that do not support PIC, -DPIC is meaningless:+ *djgpp*)+ lt_prog_compiler_pic=+ ;;+ *)+ lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"+ ;;+esac++{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5+printf %s "checking for $compiler option to produce PIC... " >&6; }+if test ${lt_cv_prog_compiler_pic+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5+printf '%s\n' "$lt_cv_prog_compiler_pic" >&6; }+lt_prog_compiler_pic=$lt_cv_prog_compiler_pic++#+# Check to make sure the PIC flag actually works.+#+if test -n "$lt_prog_compiler_pic"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5+printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }+if test ${lt_cv_prog_compiler_pic_works+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) lt_cv_prog_compiler_pic_works=no+ ac_outfile=conftest.$ac_objext+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext+ lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment+ # Insert the option either (1) after the last *FLAGS variable, or+ # (2) before a word containing "conftest.", or (3) at the end.+ # Note that $ac_compile itself does not contain backslashes and begins+ # with a dollar sign (not a hyphen), so the echo should work correctly.+ # The option is referenced via a variable to avoid confusing sed.+ lt_compile=`echo "$ac_compile" | $SED \+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \+ -e 's:$: $lt_compiler_flag:'`+ (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)+ (eval "$lt_compile" 2>conftest.err)+ ac_status=$?+ cat conftest.err >&5+ echo "$as_me:$LINENO: \$? = $ac_status" >&5+ if (exit $ac_status) && test -s "$ac_outfile"; then+ # The compiler can only warn and ignore the option if not recognized+ # So say no if there are warnings other than the usual output.+ $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2+ if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then+ lt_cv_prog_compiler_pic_works=yes+ fi+ fi+ $RM conftest*+ ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5+printf '%s\n' "$lt_cv_prog_compiler_pic_works" >&6; }++if test yes = "$lt_cv_prog_compiler_pic_works"; then+ case $lt_prog_compiler_pic in+ "" | " "*) ;;+ *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;+ esac+else+ lt_prog_compiler_pic=+ lt_prog_compiler_can_build_shared=no+fi++fi++++++#+# Check to make sure the static flag actually works.+#+wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5+printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }+if test ${lt_cv_prog_compiler_static_works+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) lt_cv_prog_compiler_static_works=no+ save_LDFLAGS=$LDFLAGS+ LDFLAGS="$LDFLAGS $lt_tmp_static_flag"+ echo "$lt_simple_link_test_code" > conftest.$ac_ext+ if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then+ # The linker can only warn and ignore the option if not recognized+ # So say no if there are warnings+ if test -s conftest.err; then+ # Append any errors to the config.log.+ cat conftest.err 1>&5+ $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2+ if diff conftest.exp conftest.er2 >/dev/null; then+ lt_cv_prog_compiler_static_works=yes+ fi+ else+ lt_cv_prog_compiler_static_works=yes+ fi+ fi+ $RM -r conftest*+ LDFLAGS=$save_LDFLAGS+ ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5+printf '%s\n' "$lt_cv_prog_compiler_static_works" >&6; }++if test yes = "$lt_cv_prog_compiler_static_works"; then+ :+else+ lt_prog_compiler_static=+fi++++='-fPIC'+ archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'+ archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'+ archive_cmds_need_lc=no+ no_undefined_flag=+ ;;++*)+ dynamic_linker=no+ ;;+esac+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5+printf '%s\n' "$dynamic_linker" >&6; }+test no = "$dynamic_linker" && can_build_shared=no++variables_saved_for_relink="PATH $shlibpath_var $runpath_var"+if test yes = "$GCC"; then+ variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"+fi++if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then+ sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec+fi++if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then+ sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec+fi++# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...+configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec++# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code+func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"++# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool+configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5+printf %s "checking how to hardcode library paths into programs... " >&6; }+hardcode_action=+if test -n "$hardcode_libdir_flag_spec" ||+ test -n "$runpath_var" ||+ test yes = "$hardcode_automatic"; then++ # We can hardcode non-existent directories.+ if test no != "$hardcode_direct" &&+ # If the only mechanism to avoid hardcoding is shlibpath_var, we+ # have to relink, otherwise we might link with an installed library+ # when we should be linking with a yet-to-be-installed one+ ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&+ test no != "$hardcode_minus_L"; then+ # Linking always hardcodes the temporary library directory.+ hardcode_action=relink+ else+ # We can link without hardcoding, and we can hardcode nonexisting dirs.+ hardcode_action=immediate+ fi+else+ # We cannot hardcode anything, or else we can only hardcode existing+ # directories.+ hardcode_action=unsupported+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5+printf '%s\n' "$hardcode_action" >&6; }++if test relink = "$hardcode_action" ||+ test yes = "$inherit_rpath"; then+ # Fast installation is not supported+ enable_fast_install=no+elif test yes = "$shlibpath_overrides_runpath" ||+ test no = "$enable_shared"; then+ # Fast installation is not necessary+ enable_fast_install=needless+fi+++++++ if test yes != "$enable_dlopen"; then+ enable_dlopen=unknown+ enable_dlopen_self=unknown+ enable_dlopen_self_static=unknown+else+ lt_cv_dlopen=no+ lt_cv_dlopen_libs=++ case $host_os in+ beos*)+ lt_cv_dlopen=load_add_on+ lt_cv_dlopen_libs=+ lt_cv_dlopen_self=yes+ ;;++ mingw* | windows* | pw32* | cegcc*)+ lt_cv_dlopen=LoadLibrary+ lt_cv_dlopen_libs=+ ;;++ cygwin*)+ lt_cv_dlopen=dlopen+ lt_cv_dlopen_libs=+ ;;++ darwin*)+ # if libdl is installed we need to link against it+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5+printf %s "checking for dlopen in -ldl... " >&6; }+if test ${ac_cv_lib_dl_dlopen+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) ac_check_lib_save_LIBS=$LIBS+LIBS="-ldl $LIBS"+cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */++/* Override any GCC internal prototype to avoid an error.+ Use char because int might match the return type of a GCC+ builtin and then its argument prototype would still apply.+ The 'extern "C"' is for builds by C++ compilers;+ although this is not generally supported in C code supporting it here+ has little cost and some practical benefit (sr 110532). */+#ifdef __cplusplus+extern "C"+#endif+char dlopen (void);+int+main (void)+{+return dlopen ();+ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_link "$LINENO"+then :+ ac_cv_lib_dl_dlopen=yes+else case e in #(+ e) ac_cv_lib_dl_dlopen=no ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam \+ conftest$ac_exeext conftest.$ac_ext+LIBS=$ac_check_lib_save_LIBS ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5+printf '%s\n' "$ac_cv_lib_dl_dlopen" >&6; }+if test "x$ac_cv_lib_dl_dlopen" = xyes+then :+ lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl+else case e in #(+ e)+ lt_cv_dlopen=dyld+ lt_cv_dlopen_libs=+ lt_cv_dlopen_self=yes+ ;;+esac+fi++ ;;++ tpf*)+ # Don't try to run any link tests for TPF. We know it's impossible+ # because TPF is a cross-compiler, and we know how we open DSOs.+ lt_cv_dlopen=dlopen+ lt_cv_dlopen_libs=+ lt_cv_dlopen_self=no+ ;;++ *)+ ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"+if test "x$ac_cv_func_shl_load" = xyes+then :+ lt_cv_dlopen=shl_load+else case e in #(+ e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5+printf %s "checking for shl_load in -ldld... " >&6; }+if test ${ac_cv_lib_dld_shl_load+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) ac_check_lib_save_LIBS=$LIBS+LIBS="-ldld $LIBS"+cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */++/* Override any GCC internal prototype to avoid an error.+ Use char because int might match the return type of a GCC+ builtin and then its argument prototype would still apply.+ The 'extern "C"' is for builds by C++ compilers;+ although this is not generally supported in C code supporting it here+ has little cost and some practical benefit (sr 110532). */+#ifdef __cplusplus+extern "C"+#endif+char shl_load (void);+int+main (void)+{+return shl_load ();+ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_link "$LINENO"+then :+ ac_cv_lib_dld_shl_load=yes+else case e in #(+ e) ac_cv_lib_dld_shl_load=no ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam \+ conftest$ac_exeext conftest.$ac_ext+LIBS=$ac_check_lib_save_LIBS ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5+printf '%s\n' "$ac_cv_lib_dld_shl_load" >&6; }+if test "x$ac_cv_lib_dld_shl_load" = xyes+then :+ lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld+else case e in #(+ e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"+if test "x$ac_cv_func_dlopen" = xyes+then :+ lt_cv_dlopen=dlopen+else case e in #(+ e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5+printf %s "checking for dlopen in -ldl... " >&6; }+if test ${ac_cv_lib_dl_dlopen+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) ac_check_lib_save_LIBS=$LIBS+LIBS="-ldl $LIBS"+cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */++/* Override any GCC internal prototype to avoid an error.+ Use char because int might match the return type of a GCC+ builtin and then its argument prototype would still apply.+ The 'extern "C"' is for builds by C++ compilers;+ although this is not generally supported in C code supporting it here+ has little cost and some practical benefit (sr 110532). */+#ifdef __cplusplus+extern "C"+#endif+char dlopen (void);+int+main (void)+{+return dlopen ();+ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_link "$LINENO"+then :+ ac_cv_lib_dl_dlopen=yes+else case e in #(+ e) ac_cv_lib_dl_dlopen=no ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam \+ conftest$ac_exeext conftest.$ac_ext+LIBS=$ac_check_lib_save_LIBS ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5+printf '%s\n' "$ac_cv_lib_dl_dlopen" >&6; }+if test "x$ac_cv_lib_dl_dlopen" = xyes+then :+ lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl+else case e in #(+ e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5+printf %s "checking for dlopen in -lsvld... " >&6; }+if test ${ac_cv_lib_svld_dlopen+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) ac_check_lib_save_LIBS=$LIBS+LIBS="-lsvld $LIBS"+cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */++/* Override any GCC internal prototype to avoid an error.+ Use char because int might match the return type of a GCC+ builtin and then its argument prototype would still apply.+ The 'extern "C"' is for builds by C++ compilers;+ although this is not generally supported in C code supporting it here+ has little cost and some practical benefit (sr 110532). */+#ifdef __cplusplus+extern "C"+#endif+char dlopen (void);+int+main (void)+{+return dlopen ();+ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_link "$LINENO"+then :+ ac_cv_lib_svld_dlopen=yes+else case e in #(+ e) ac_cv_lib_svld_dlopen=no ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam \+ conftest$ac_exeext conftest.$ac_ext+LIBS=$ac_check_lib_save_LIBS ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5+printf '%s\n' "$ac_cv_lib_svld_dlopen" >&6; }+if test "x$ac_cv_lib_svld_dlopen" = xyes+then :+ lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld+else case e in #(+ e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5+printf %s "checking for dld_link in -ldld... " >&6; }+if test ${ac_cv_lib_dld_dld_link+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) ac_check_lib_save_LIBS=$LIBS+LIBS="-ldld $LIBS"+cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */++/* Override any GCC internal prototype to avoid an error.+ Use char because int might match the return type of a GCC+ builtin and then its argument prototype would still apply.+ The 'extern "C"' is for builds by C++ compilers;+ although this is not generally supported in C code supporting it here+ has little cost and some practical benefit (sr 110532). */+#ifdef __cplusplus+extern "C"+#endif+char dld_link (void);+int+main (void)+{+return dld_link ();+ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_link "$LINENO"+then :+ ac_cv_lib_dld_dld_link=yes+else case e in #(+ e) ac_cv_lib_dld_dld_link=no ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam \+ conftest$ac_exeext conftest.$ac_ext+LIBS=$ac_check_lib_save_LIBS ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5+printf '%s\n' "$ac_cv_lib_dld_dld_link" >&6; }+if test "x$ac_cv_lib_dld_dld_link" = xyes+then :+ lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld+fi++ ;;+esac+fi++ ;;+esac+fi++ ;;+esac+fi++ ;;+esac+fi++ ;;+esac+fi++ ;;+ esac++ if test no = "$lt_cv_dlopen"; then+ enable_dlopen=no+ else+ enable_dlopen=yes+ fi++ case $lt_cv_dlopen in+ dlopen)+ save_CPPFLAGS=$CPPFLAGS+ test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"++ save_LDFLAGS=$LDFLAGS+ wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"++ save_LIBS=$LIBS+ LIBS="$lt_cv_dlopen_libs $LIBS"++ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5+printf %s "checking whether a program can dlopen itself... " >&6; }+if test ${lt_cv_dlopen_self+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test yes = "$cross_compiling"; then :+ lt_cv_dlopen_self=cross+else+ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2+ lt_status=$lt_dlunknown+ cat > conftest.$ac_ext <<_LT_EOF+#line $LINENO "configure"+#include "confdefs.h"++#if HAVE_DLFCN_H+#include <dlfcn.h>+#endif++#include <stdio.h>++#ifdef RTLD_GLOBAL+# define LT_DLGLOBAL RTLD_GLOBAL+#else+# ifdef DL_GLOBAL+# define LT_DLGLOBAL DL_GLOBAL+# else+# define LT_DLGLOBAL 0+# endif+#endif++/* We may have to define LT_DLLAZY_OR_NOW in the command line if we+ find out it does not work in some platform. */+#ifndef LT_DLLAZY_OR_NOW+# ifdef RTLD_LAZY+# define LT_DLLAZY_OR_NOW RTLD_LAZY+# else+# ifdef DL_LAZY+# define LT_DLLAZY_OR_NOW DL_LAZY+# else+# ifdef RTLD_NOW+# define LT_DLLAZY_OR_NOW RTLD_NOW+# else+# ifdef DL_NOW+# define LT_DLLAZY_OR_NOW DL_NOW+# else+# define LT_DLLAZY_OR_NOW 0+# endif+# endif+# endif+# endif+#endif++/* When -fvisibility=hidden is used, assume the code has been annotated+ correspondingly for the symbols needed. */+#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))+int fnord (void) __attribute__((visibility("default")));+#endif++int fnord (void) { return 42; }+int main (void)+{+ void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);+ int status = $lt_dlunknown;++ if (self)+ {+ if (dlsym (self,"fnord")) status = $lt_dlno_uscore;+ else+ {+ if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;+ else puts (dlerror ());+ }+ /* dlclose (self); */+ }+ else+ puts (dlerror ());++ return status;+}+_LT_EOF+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5+ (eval $ac_link) 2>&5+ ac_status=$?+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5+ test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then+ (./conftest; exit; ) >&5 2>/dev/null+ lt_status=$?+ case x$lt_status in+ x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;+ x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;+ x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;+ esac+ else :+ # compilation failed+ lt_cv_dlopen_self=no+ fi+fi+rm -fr conftest*++ ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5+printf '%s\n' "$lt_cv_dlopen_self" >&6; }++ if test yes = "$lt_cv_dlopen_self"; then+ wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5+printf %s "checking whether a statically linked program can dlopen itself... " >&6; }+if test ${lt_cv_dlopen_self_static+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test yes = "$cross_compiling"; then :+ lt_cv_dlopen_self_static=cross+else+ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2+ lt_status=$lt_dlunknown+ cat > conftest.$ac_ext <<_LT_EOF+#line $LINENO "configure"+#include "confdefs.h"++#if HAVE_DLFCN_H+#include <dlfcn.h>+#endif++#include <stdio.h>++#ifdef RTLD_GLOBAL+# define LT_DLGLOBAL RTLD_GLOBAL+#else+# ifdef DL_GLOBAL+# define LT_DLGLOBAL DL_GLOBAL+# else+# define LT_DLGLOBAL 0+# endif+#endif++/* We may have to define LT_DLLAZY_OR_NOW in the command line if we+ find out it does not work in some platform. */+#ifndef LT_DLLAZY_OR_NOW+# ifdef RTLD_LAZY+# define LT_DLLAZY_OR_NOW RTLD_LAZY+# else+# ifdef DL_LAZY+# define LT_DLLAZY_OR_NOW DL_LAZY+# else+# ifdef RTLD_NOW+# define LT_DLLAZY_OR_NOW RTLD_NOW+# else+# ifdef DL_NOW+# define LT_DLLAZY_OR_NOW DL_NOW+# else+# define LT_DLLAZY_OR_NOW 0+# endif+# endif+# endif+# endif+#endif++/* When -fvisibility=hidden is used, assume the code has been annotated+ correspondingly for the symbols needed. */+#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))+int fnord (void) __attribute__((visibility("default")));+#endif++int fnord (void) { return 42; }+int main (void)+{+ void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);+ int status = $lt_dlunknown;++ if (self)+ {+ if (dlsym (self,"fnord")) status = $lt_dlno_uscore;+ else+ {+ if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;+ else puts (dlerror ());+ }+ /* dlclose (self); */+ }+ else+ puts (dlerror ());++ return status;+}+_LT_EOF+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5+ (eval $ac_link) 2>&5+ ac_status=$?+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5+ test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then+ (./conftest; exit; ) >&5 2>/dev/null+ lt_status=$?+ case x$lt_status in+ x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;+ x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;+ x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;+ esac+ else :+ # compilation failed+ lt_cv_dlopen_self_static=no+ fi+fi+rm -fr conftest*++ ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5+printf '%s\n' "$lt_cv_dlopen_self_static" >&6; }+ fi++ CPPFLAGS=$save_CPPFLAGS+ LDFLAGS=$save_LDFLAGS+ LIBS=$save_LIBS+ ;;+ esac++ case $lt_cv_dlopen_self in+ yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;+ *) enable_dlopen_self=unknown ;;+ esac++ case $lt_cv_dlopen_self_static in+ yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;+ *) enable_dlopen_self_static=unknown ;;+ esac+fi++++++++++++++++++striplib=+old_striplib=+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5+printf %s "checking whether stripping libraries is possible... " >&6; }+if test -z "$STRIP"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+else+ if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then+ old_striplib="$STRIP --strip-debug"+ striplib="$STRIP --strip-unneeded"+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5+printf '%s\n' "yes" >&6; }+ else+ case $host_os in+ darwin*)+ # FIXME - insert some real tests, host_os isn't really good enough+ striplib="$STRIP -x"+ old_striplib="$STRIP -S"+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5+printf '%s\n' "yes" >&6; }+ ;;+ freebsd*)+ if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then+ old_striplib="$STRIP --strip-debug"+ striplib="$STRIP --strip-unneeded"+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5+printf '%s\n' "yes" >&6; }+ else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+ fi+ ;;+ *)+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+ ;;+ esac+ fi+fi+++++++++++++ # Report what library types will actually be built+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5+printf %s "checking if libtool supports shared libraries... " >&6; }+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5+printf '%s\n' "$can_build_shared" >&6; }++ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5+printf %s "checking whether to build shared libraries... " >&6; }+ test no = "$can_build_shared" && enable_shared=no++ # On AIX, shared libraries and static libraries use the same namespace, and+ # are all built from PIC.+ case $host_os in+ aix3*)+ test yes = "$enable_shared" && enable_static=no+ if test -n "$RANLIB"; then+ archive_cmds="$archive_cmds~\$RANLIB \$lib"+ postinstall_cmds='$RANLIB $lib'+ fi+ ;;++ aix[4-9]*)+ if test ia64 != "$host_cpu"; then+ case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in+ yes,aix,yes) ;; # shared object as lib.so file only+ yes,svr4,*) ;; # shared object as lib.so archive member only+ yes,*) enable_static=no ;; # shared object in lib.a archive as well+ esac+ fi+ ;;+ esac+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5+printf '%s\n' "$enable_shared" >&6; }++ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5+printf %s "checking whether to build static libraries... " >&6; }+ # Make sure either enable_shared or enable_static is yes.+ test yes = "$enable_shared" || enable_static=yes+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5+printf '%s\n' "$enable_static" >&6; }+++++fi+ac_ext=c+ac_cpp='$CPP $CPPFLAGS'+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'+ac_compiler_gnu=$ac_cv_c_compiler_gnu++CC=$lt_save_CC++++++++++++++++ ac_config_commands="$ac_config_commands libtool"+++++# Only expand once:+++if test -n "$ac_tool_prefix"; then+ # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.+set dummy ${ac_tool_prefix}strip; ac_word=$2+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5+printf %s "checking for $ac_word... " >&6; }+if test ${ac_cv_prog_STRIP+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test -n "$STRIP"; then+ ac_cv_prog_STRIP="$STRIP" # Let the user override the test.+else+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_exec_ext in '' $ac_executable_extensions; do+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then+ ac_cv_prog_STRIP="${ac_tool_prefix}strip"+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5+ break 2+ fi+done+ done+IFS=$as_save_IFS++fi ;;+esac+fi+STRIP=$ac_cv_prog_STRIP+if test -n "$STRIP"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5+printf '%s\n' "$STRIP" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+fi+++fi+if test -z "$ac_cv_prog_STRIP"; then+ ac_ct_STRIP=$STRIP+ # Extract the first word of "strip", so it can be a program name with args.+set dummy strip; ac_word=$2+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5+printf %s "checking for $ac_word... " >&6; }+if test ${ac_cv_prog_ac_ct_STRIP+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test -n "$ac_ct_STRIP"; then+ ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.+else+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_exec_ext in '' $ac_executable_extensions; do+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then+ ac_cv_prog_ac_ct_STRIP="strip"+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5+ break 2+ fi+done+ done+IFS=$as_save_IFS++fi ;;+esac+fi+ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP+if test -n "$ac_ct_STRIP"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5+printf '%s\n' "$ac_ct_STRIP" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+fi++ if test "x$ac_ct_STRIP" = x; then+ STRIP=""+ else+ case $cross_compiling:$ac_tool_warned in+yes:)+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5+printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}+ac_tool_warned=yes ;;+esac+ STRIP=$ac_ct_STRIP+ fi+else+ STRIP="$ac_cv_prog_STRIP"+fi+++ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5+printf %s "checking for a race-free mkdir -p... " >&6; }+if test -z "$MKDIR_P"; then+ if test ${ac_cv_path_mkdir+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_prog in mkdir gmkdir; do+ for ac_exec_ext in '' $ac_executable_extensions; do+ as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue+ case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(+ 'mkdir ('*'coreutils) '* | \+ *'BusyBox '* | \+ 'mkdir (fileutils) '4.1*)+ ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext+ break 3;;+ esac+ done+ done+ done+IFS=$as_save_IFS+ ;;+esac+fi++ test -d ./--version && rmdir ./--version+ if test ${ac_cv_path_mkdir+y}; then+ MKDIR_P="$ac_cv_path_mkdir -p"+ else+ # As a last resort, use plain mkdir -p,+ # in the hope it doesn't have the bugs of ancient mkdir.+ MKDIR_P='mkdir -p'+ fi+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5+printf '%s\n' "$MKDIR_P" >&6; }++++# Set up defines needed before including any headers+case $host in+ *mingw* | *cygwin* | *msys* )++cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */+#include <windows.h>+ #ifdef _WIN32_WINNT+ # error _WIN32_WINNT already defined+ #endif++int+main (void)+{+;+ ;+ return 0;+}++_ACEOF+if ac_fn_c_try_cpp "$LINENO"+then :+++printf '%s\n' "#define _WIN32_WINNT 0x0502" >>confdefs.h+++printf '%s\n' "#define NTDDI_VERSION 0x05020000" >>confdefs.h+++fi+rm -f conftest.err conftest.i conftest.$ac_ext+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */+#include <windows.h>+ #ifdef WINVER+ # error WINVER already defined+ #endif++int+main (void)+{+;+ ;+ return 0;+}++_ACEOF+if ac_fn_c_try_cpp "$LINENO"+then :+++printf '%s\n' "#define WINVER 0x0502" >>confdefs.h+++fi+rm -f conftest.err conftest.i conftest.$ac_ext+ ;;+esac++# Checks for header files.+ac_header_dirent=no+for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do+ as_ac_Header=`printf '%s\n' "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"`+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5+printf %s "checking for $ac_hdr that defines DIR... " >&6; }+if eval test \${$as_ac_Header+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */+#include <sys/types.h>+#include <$ac_hdr>++int+main (void)+{+if ((DIR *) 0)+return 0;+ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_compile "$LINENO"+then :+ eval "$as_ac_Header=yes"+else case e in #(+ e) eval "$as_ac_Header=no" ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;+esac+fi+eval ac_res=\$$as_ac_Header+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5+printf '%s\n' "$ac_res" >&6; }+if eval test \"x\$"$as_ac_Header"\" = x"yes"+then :+ cat >>confdefs.h <<_ACEOF+#define `printf '%s\n' "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1+_ACEOF++ac_header_dirent=$ac_hdr; break+fi++done+# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.+if test $ac_header_dirent = dirent.h; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5+printf %s "checking for library containing opendir... " >&6; }+if test ${ac_cv_search_opendir+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) ac_func_search_save_LIBS=$LIBS+cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */++/* Override any GCC internal prototype to avoid an error.+ Use char because int might match the return type of a GCC+ builtin and then its argument prototype would still apply.+ The 'extern "C"' is for builds by C++ compilers;+ although this is not generally supported in C code supporting it here+ has little cost and some practical benefit (sr 110532). */+#ifdef __cplusplus+extern "C"+#endif+char opendir (void);+int+main (void)+{+return opendir ();+ ;+ return 0;+}+_ACEOF+for ac_lib in '' dir+do+ if test -z "$ac_lib"; then+ ac_res="none required"+ else+ ac_res=-l$ac_lib+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"+ fi+ if ac_fn_c_try_link "$LINENO"+then :+ ac_cv_search_opendir=$ac_res+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam \+ conftest$ac_exeext+ if test ${ac_cv_search_opendir+y}+then :+ break+fi+done+if test ${ac_cv_search_opendir+y}+then :++else case e in #(+ e) ac_cv_search_opendir=no ;;+esac+fi+rm conftest.$ac_ext+LIBS=$ac_func_search_save_LIBS ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5+printf '%s\n' "$ac_cv_search_opendir" >&6; }+ac_res=$ac_cv_search_opendir+if test "$ac_res" != no+then :+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"++fi++else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5+printf %s "checking for library containing opendir... " >&6; }+if test ${ac_cv_search_opendir+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) ac_func_search_save_LIBS=$LIBS+cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */++/* Override any GCC internal prototype to avoid an error.+ Use char because int might match the return type of a GCC+ builtin and then its argument prototype would still apply.+ The 'extern "C"' is for builds by C++ compilers;+ although this is not generally supported in C code supporting it here+ has little cost and some practical benefit (sr 110532). */+#ifdef __cplusplus+extern "C"+#endif+char opendir (void);+int+main (void)+{+return opendir ();+ ;+ return 0;+}+_ACEOF+for ac_lib in '' x+do+ if test -z "$ac_lib"; then+ ac_res="none required"+ else+ ac_res=-l$ac_lib+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"+ fi+ if ac_fn_c_try_link "$LINENO"+then :+ ac_cv_search_opendir=$ac_res+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam \+ conftest$ac_exeext+ if test ${ac_cv_search_opendir+y}+then :+ break+fi+done+if test ${ac_cv_search_opendir+y}+then :++else case e in #(+ e) ac_cv_search_opendir=no ;;+esac+fi+rm conftest.$ac_ext+LIBS=$ac_func_search_save_LIBS ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5+printf '%s\n' "$ac_cv_search_opendir" >&6; }+ac_res=$ac_cv_search_opendir+if test "$ac_res" != no+then :+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"++fi++fi++{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5+printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }+if test ${ac_cv_header_sys_wait_h+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */+#include <sys/types.h>+#include <sys/wait.h>+#ifndef WEXITSTATUS+# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)+#endif+#ifndef WIFEXITED+# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)+#endif++int+main (void)+{+ int s;+ wait (&s);+ s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;+ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_compile "$LINENO"+then :+ ac_cv_header_sys_wait_h=yes+else case e in #(+ e) ac_cv_header_sys_wait_h=no ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5+printf '%s\n' "$ac_cv_header_sys_wait_h" >&6; }+if test $ac_cv_header_sys_wait_h = yes; then++printf '%s\n' "#define HAVE_SYS_WAIT_H 1" >>confdefs.h++fi++ac_fn_c_check_header_compile "$LINENO" "acl/libacl.h" "ac_cv_header_acl_libacl_h" "$ac_includes_default"+if test "x$ac_cv_header_acl_libacl_h" = xyes+then :+ printf '%s\n' "#define HAVE_ACL_LIBACL_H 1" >>confdefs.h++fi+ac_fn_c_check_header_compile "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"+if test "x$ac_cv_header_attr_xattr_h" = xyes+then :+ printf '%s\n' "#define HAVE_ATTR_XATTR_H 1" >>confdefs.h++fi++ac_fn_c_check_header_compile "$LINENO" "copyfile.h" "ac_cv_header_copyfile_h" "$ac_includes_default"+if test "x$ac_cv_header_copyfile_h" = xyes+then :+ printf '%s\n' "#define HAVE_COPYFILE_H 1" >>confdefs.h++fi+ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"+if test "x$ac_cv_header_ctype_h" = xyes+then :+ printf '%s\n' "#define HAVE_CTYPE_H 1" >>confdefs.h++fi++ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"+if test "x$ac_cv_header_errno_h" = xyes+then :+ printf '%s\n' "#define HAVE_ERRNO_H 1" >>confdefs.h++fi+ac_fn_c_check_header_compile "$LINENO" "ext2fs/ext2_fs.h" "ac_cv_header_ext2fs_ext2_fs_h" "$ac_includes_default"+if test "x$ac_cv_header_ext2fs_ext2_fs_h" = xyes+then :+ printf '%s\n' "#define HAVE_EXT2FS_EXT2_FS_H 1" >>confdefs.h++fi+ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"+if test "x$ac_cv_header_fcntl_h" = xyes+then :+ printf '%s\n' "#define HAVE_FCNTL_H 1" >>confdefs.h++fi+ac_fn_c_check_header_compile "$LINENO" "fnmatch.h" "ac_cv_header_fnmatch_h" "$ac_includes_default"+if test "x$ac_cv_header_fnmatch_h" = xyes+then :+ printf '%s\n' "#define HAVE_FNMATCH_H 1" >>confdefs.h++fi+ac_fn_c_check_header_compile "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"+if test "x$ac_cv_header_grp_h" = xyes+then :+ printf '%s\n' "#define HAVE_GRP_H 1" >>confdefs.h++fi+++{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether EXT2_IOC_GETFLAGS is usable" >&5+printf %s "checking whether EXT2_IOC_GETFLAGS is usable... " >&6; }+if test ${ac_cv_have_decl_EXT2_IOC_GETFLAGS+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */+#include <sys/ioctl.h>+#include <ext2fs/ext2_fs.h>+int+main (void)+{+int x = EXT2_IOC_GETFLAGS+ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_compile "$LINENO"+then :+ ac_cv_have_decl_EXT2_IOC_GETFLAGS=yes+else case e in #(+ e) ac_cv_have_decl_EXT2_IOC_GETFLAGS=no ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_EXT2_IOC_GETFLAGS" >&5+printf '%s\n' "$ac_cv_have_decl_EXT2_IOC_GETFLAGS" >&6; }++if test "x$ac_cv_have_decl_EXT2_IOC_GETFLAGS" = xyes+then :++printf '%s\n' "#define HAVE_WORKING_EXT2_IOC_GETFLAGS 1" >>confdefs.h++fi++ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"+if test "x$ac_cv_header_inttypes_h" = xyes+then :+ printf '%s\n' "#define HAVE_INTTYPES_H 1" >>confdefs.h++fi+ac_fn_c_check_header_compile "$LINENO" "io.h" "ac_cv_header_io_h" "$ac_includes_default"+if test "x$ac_cv_header_io_h" = xyes+then :+ printf '%s\n' "#define HAVE_IO_H 1" >>confdefs.h++fi+ac_fn_c_check_header_compile "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"+if test "x$ac_cv_header_langinfo_h" = xyes+then :+ printf '%s\n' "#define HAVE_LANGINFO_H 1" >>confdefs.h++fi+ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"+if test "x$ac_cv_header_limits_h" = xyes+then :+ printf '%s\n' "#define HAVE_LIMITS_H 1" >>confdefs.h++fi++ac_fn_c_check_header_compile "$LINENO" "linux/fiemap.h" "ac_cv_header_linux_fiemap_h" "$ac_includes_default"+if test "x$ac_cv_header_linux_fiemap_h" = xyes+then :+ printf '%s\n' "#define HAVE_LINUX_FIEMAP_H 1" >>confdefs.h++fi+ac_fn_c_check_header_compile "$LINENO" "linux/fs.h" "ac_cv_header_linux_fs_h" "$ac_includes_default"+if test "x$ac_cv_header_linux_fs_h" = xyes+then :+ printf '%s\n' "#define HAVE_LINUX_FS_H 1" >>confdefs.h++fi+ac_fn_c_check_header_compile "$LINENO" "linux/magic.h" "ac_cv_header_linux_magic_h" "$ac_includes_default"+if test "x$ac_cv_header_linux_magic_h" = xyes+then :+ printf '%s\n' "#define HAVE_LINUX_MAGIC_H 1" >>confdefs.h++fi+ac_fn_c_check_header_compile "$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default"+if test "x$ac_cv_header_linux_types_h" = xyes+then :+ printf '%s\n' "#define HAVE_LINUX_TYPES_H 1" >>confdefs.h++fi+++{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether FS_IOC_GETFLAGS is usable" >&5+printf %s "checking whether FS_IOC_GETFLAGS is usable... " >&6; }+if test ${ac_cv_have_decl_FS_IOC_GETFLAGS+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */+#include <sys/ioctl.h>+#include <linux/fs.h>+int+main (void)+{+int x = FS_IOC_GETFLAGS+ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_compile "$LINENO"+then :+ ac_cv_have_decl_FS_IOC_GETFLAGS=yes+else case e in #(+ e) ac_cv_have_decl_FS_IOC_GETFLAGS=no ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_FS_IOC_GETFLAGS" >&5+printf '%s\n' "$ac_cv_have_decl_FS_IOC_GETFLAGS" >&6; }++if test "x$ac_cv_have_decl_FS_IOC_GETFLAGS" = xyes+then :++printf '%s\n' "#define HAVE_WORKING_FS_IOC_GETFLAGS 1" >>confdefs.h++fi++ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"+if test "x$ac_cv_header_locale_h" = xyes+then :+ printf '%s\n' "#define HAVE_LOCALE_H 1" >>confdefs.h++fi+ac_fn_c_check_header_compile "$LINENO" "membership.h" "ac_cv_header_membership_h" "$ac_includes_default"+if test "x$ac_cv_header_membership_h" = xyes+then :+ printf '%s\n' "#define HAVE_MEMBERSHIP_H 1" >>confdefs.h++fi+ac_fn_c_check_header_compile "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"+if test "x$ac_cv_header_paths_h" = xyes+then :+ printf '%s\n' "#define HAVE_PATHS_H 1" >>confdefs.h++fi+ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"+if test "x$ac_cv_header_poll_h" = xyes+then :+ printf '%s\n' "#define HAVE_POLL_H 1" >>confdefs.h++fi+ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"+if test "x$ac_cv_header_pthread_h" = xyes+then :+ printf '%s\n' "#define HAVE_PTHREAD_H 1" >>confdefs.h++fi+ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"+if test "x$ac_cv_header_pwd_h" = xyes+then :+ printf '%s\n' "#define HAVE_PWD_H 1" >>confdefs.h++fi++ac_fn_c_check_header_compile "$LINENO" "readpassphrase.h" "ac_cv_header_readpassphrase_h" "$ac_includes_default"+if test "x$ac_cv_header_readpassphrase_h" = xyes+then :+ printf '%s\n' "#define HAVE_READPASSPHRASE_H 1" >>confdefs.h++fi+ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"+if test "x$ac_cv_header_signal_h" = xyes+then :+ printf '%s\n' "#define HAVE_SIGNAL_H 1" >>confdefs.h++fi+ac_fn_c_check_header_compile "$LINENO" "spawn.h" "ac_cv_header_spawn_h" "$ac_includes_default"+if test "x$ac_cv_header_spawn_h" = xyes+then :+ printf '%s\n' "#define HAVE_SPAWN_H 1" >>confdefs.h++fi++ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"+if test "x$ac_cv_header_stdarg_h" = xyes+then :+ printf '%s\n' "#define HAVE_STDARG_H 1" >>confdefs.h++fi+ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"+if test "x$ac_cv_header_stdint_h" = xyes+then :+ printf '%s\n' "#define HAVE_STDINT_H 1" >>confdefs.h++fi+ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"+if test "x$ac_cv_header_stdlib_h" = xyes+then :+ printf '%s\n' "#define HAVE_STDLIB_H 1" >>confdefs.h++fi+ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"+if test "x$ac_cv_header_string_h" = xyes+then :+ printf '%s\n' "#define HAVE_STRING_H 1" >>confdefs.h++fi++ac_fn_c_check_header_compile "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"+if test "x$ac_cv_header_sys_acl_h" = xyes+then :+ printf '%s\n' "#define HAVE_SYS_ACL_H 1" >>confdefs.h++fi+ac_fn_c_check_header_compile "$LINENO" "sys/cdefs.h" "ac_cv_header_sys_cdefs_h" "$ac_includes_default"+if test "x$ac_cv_header_sys_cdefs_h" = xyes+then :+ printf '%s\n' "#define HAVE_SYS_CDEFS_H 1" >>confdefs.h++fi+ac_fn_c_check_header_compile "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"+if test "x$ac_cv_header_sys_ea_h" = xyes+then :+ printf '%s\n' "#define HAVE_SYS_EA_H 1" >>confdefs.h++fi+ac_fn_c_check_header_compile "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"+if test "x$ac_cv_header_sys_extattr_h" = xyes+then :+ printf '%s\n' "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h++fi++ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"+if test "x$ac_cv_header_sys_ioctl_h" = xyes+then :+ printf '%s\n' "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h++fi+ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"+if test "x$ac_cv_header_sys_mkdev_h" = xyes+then :+ printf '%s\n' "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h++fi+ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"+if test "x$ac_cv_header_sys_mount_h" = xyes+then :+ printf '%s\n' "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h++fi++ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"+if test "x$ac_cv_header_sys_param_h" = xyes+then :+ printf '%s\n' "#define HAVE_SYS_PARAM_H 1" >>confdefs.h++fi+ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"+if test "x$ac_cv_header_sys_poll_h" = xyes+then :+ printf '%s\n' "#define HAVE_SYS_POLL_H 1" >>confdefs.h++fi+ac_fn_c_check_header_compile "$LINENO" "sys/richacl.h" "ac_cv_header_sys_richacl_h" "$ac_includes_default"+if test "x$ac_cv_header_sys_richacl_h" = xyes+then :+ printf '%s\n' "#define HAVE_SYS_RICHACL_H 1" >>confdefs.h++fi++ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"+if test "x$ac_cv_header_sys_select_h" = xyes+then :+ printf '%s\n' "#define HAVE_SYS_SELECT_H 1" >>confdefs.h++fi+ac_fn_c_check_header_compile "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"+if test "x$ac_cv_header_sys_statfs_h" = xyes+then :+ printf '%s\n' "#define HAVE_SYS_STATFS_H 1" >>confdefs.h++fi+ac_fn_c_check_header_compile "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"+if test "x$ac_cv_header_sys_statvfs_h" = xyes+then :+ printf '%s\n' "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h++fi+ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"+if test "x$ac_cv_header_sys_sysmacros_h" = xyes+then :+ printf '%s\n' "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h++fi++ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"+if test "x$ac_cv_header_sys_time_h" = xyes+then :+ printf '%s\n' "#define HAVE_SYS_TIME_H 1" >>confdefs.h++fi+ac_fn_c_check_header_compile "$LINENO" "sys/utime.h" "ac_cv_header_sys_utime_h" "$ac_includes_default"+if test "x$ac_cv_header_sys_utime_h" = xyes+then :+ printf '%s\n' "#define HAVE_SYS_UTIME_H 1" >>confdefs.h++fi+ac_fn_c_check_header_compile "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"+if test "x$ac_cv_header_sys_utsname_h" = xyes+then :+ printf '%s\n' "#define HAVE_SYS_UTSNAME_H 1" >>confdefs.h++fi+ac_fn_c_check_header_compile "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"+if test "x$ac_cv_header_sys_vfs_h" = xyes+then :+ printf '%s\n' "#define HAVE_SYS_VFS_H 1" >>confdefs.h++fi+ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"+if test "x$ac_cv_header_sys_xattr_h" = xyes+then :+ printf '%s\n' "#define HAVE_SYS_XATTR_H 1" >>confdefs.h++fi++ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"+if test "x$ac_cv_header_time_h" = xyes+then :+ printf '%s\n' "#define HAVE_TIME_H 1" >>confdefs.h++fi+ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"+if test "x$ac_cv_header_unistd_h" = xyes+then :+ printf '%s\n' "#define HAVE_UNISTD_H 1" >>confdefs.h++fi+ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"+if test "x$ac_cv_header_utime_h" = xyes+then :+ printf '%s\n' "#define HAVE_UTIME_H 1" >>confdefs.h++fi+ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"+if test "x$ac_cv_header_wchar_h" = xyes+then :+ printf '%s\n' "#define HAVE_WCHAR_H 1" >>confdefs.h++fi+ac_fn_c_check_header_compile "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"+if test "x$ac_cv_header_wctype_h" = xyes+then :+ printf '%s\n' "#define HAVE_WCTYPE_H 1" >>confdefs.h++fi++ac_fn_c_check_type "$LINENO" "suseconds_t" "ac_cv_type_suseconds_t" "$ac_includes_default"+if test "x$ac_cv_type_suseconds_t" = xyes+then :++fi++ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"+if test "x$ac_cv_header_windows_h" = xyes+then :+ printf '%s\n' "#define HAVE_WINDOWS_H 1" >>confdefs.h++fi++# check windows.h first; the other headers require it.+ac_fn_c_check_header_compile "$LINENO" "wincrypt.h" "ac_cv_header_wincrypt_h" "#ifdef HAVE_WINDOWS_H+# include <windows.h>+#endif++"+if test "x$ac_cv_header_wincrypt_h" = xyes+then :+ printf '%s\n' "#define HAVE_WINCRYPT_H 1" >>confdefs.h++fi+ac_fn_c_check_header_compile "$LINENO" "winioctl.h" "ac_cv_header_winioctl_h" "#ifdef HAVE_WINDOWS_H+# include <windows.h>+#endif++"+if test "x$ac_cv_header_winioctl_h" = xyes+then :+ printf '%s\n' "#define HAVE_WINIOCTL_H 1" >>confdefs.h++fi+++# Checks for libraries.++# Check whether --with-zlib was given.+if test ${with_zlib+y}+then :+ withval=$with_zlib;+fi+++if test "x$with_zlib" = "xyes" || test "$CABAL_FLAG_zlib" = 1; then+ old_LIBS="$LIBS"+ LIBS="$LIBS -lz"+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */++ #include <zlib.h>+ #if !defined(ZLIB_VERNUM)+ // zlib 1.2.0 should work too, but it's difficult to test for.+ // zlib 1.2.1 onwards have ZLIB_VERNUM, which is easy to check.+ #error zlib >= 1.2.1 is required.+ #endif+ // Check that there's an inflate function.+ int main(int argc, char **argv) { inflate(NULL, 0); return 0; }++_ACEOF+if ac_fn_c_try_link "$LINENO"+then :++printf '%s\n' "#define HAVE_ZLIB_H 1" >>confdefs.h+++printf '%s\n' "#define HAVE_LIBZ 1" >>confdefs.h++ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: found a suitable version of zlib (>= 1.2.1)" >&5+printf '%s\n' "found a suitable version of zlib (>= 1.2.1)" >&6; }++else case e in #(+ e) as_fn_error $? "could not find a suitable version of zlib (>= 1.2.1)" "$LINENO" 5 ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam \+ conftest$ac_exeext conftest.$ac_ext+fi+++# Check whether --with-bz2lib was given.+if test ${with_bz2lib+y}+then :+ withval=$with_bz2lib;+fi+++if test "x$with_bz2lib" = "xyes" || test "$CABAL_FLAG_bz2lib" = 1; then+ ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"+if test "x$ac_cv_header_bzlib_h" = xyes+then :+ printf '%s\n' "#define HAVE_BZLIB_H 1" >>confdefs.h++fi++ case "$host_os" in+ *mingw* | *cygwin* | *msys*)+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompressInit in -lbz2" >&5+printf %s "checking for BZ2_bzDecompressInit in -lbz2... " >&6; }+ old_LIBS="$LIBS"+ LIBS="-lbz2 $LIBS"+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */+#include <bzlib.h>+ int main() { return BZ2_bzDecompressInit(NULL, 0, 0); }+_ACEOF+if ac_fn_c_try_link "$LINENO"+then :+ ac_cv_lib_bz2_BZ2_bzDecompressInit=yes+else case e in #(+ e) ac_cv_lib_bz2_BZ2_bzDecompressInit=no ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam \+ conftest$ac_exeext conftest.$ac_ext+ LIBS="$old_LIBS"+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompressInit" >&5+printf '%s\n' "$ac_cv_lib_bz2_BZ2_bzDecompressInit" >&6; }+ if test "x$ac_cv_lib_bz2_BZ2_bzDecompressInit" = xyes; then++printf '%s\n' "#define HAVE_LIBBZ2 1" >>confdefs.h++ LIBS="-lbz2 $LIBS"+ else+ as_fn_error $? "Could not find a suitable version of bz2lib" "$LINENO" 5+ fi+ ;;+ *)+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompressInit in -lbz2" >&5+printf %s "checking for BZ2_bzDecompressInit in -lbz2... " >&6; }+if test ${ac_cv_lib_bz2_BZ2_bzDecompressInit+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) ac_check_lib_save_LIBS=$LIBS+LIBS="-lbz2 $LIBS"+cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */++/* Override any GCC internal prototype to avoid an error.+ Use char because int might match the return type of a GCC+ builtin and then its argument prototype would still apply.+ The 'extern "C"' is for builds by C++ compilers;+ although this is not generally supported in C code supporting it here+ has little cost and some practical benefit (sr 110532). */+#ifdef __cplusplus+extern "C"+#endif+char BZ2_bzDecompressInit (void);+int+main (void)+{+return BZ2_bzDecompressInit ();+ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_link "$LINENO"+then :+ ac_cv_lib_bz2_BZ2_bzDecompressInit=yes+else case e in #(+ e) ac_cv_lib_bz2_BZ2_bzDecompressInit=no ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam \+ conftest$ac_exeext conftest.$ac_ext+LIBS=$ac_check_lib_save_LIBS ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompressInit" >&5+printf '%s\n' "$ac_cv_lib_bz2_BZ2_bzDecompressInit" >&6; }+if test "x$ac_cv_lib_bz2_BZ2_bzDecompressInit" = xyes+then :+ printf '%s\n' "#define HAVE_LIBBZ2 1" >>confdefs.h++ LIBS="-lbz2 $LIBS"++fi++ ;;+ esac+fi+++++++++if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then+ if test -n "$ac_tool_prefix"; then+ # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.+set dummy ${ac_tool_prefix}pkg-config; ac_word=$2+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5+printf %s "checking for $ac_word... " >&6; }+if test ${ac_cv_path_PKG_CONFIG+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) case $PKG_CONFIG in+ [\\/]* | ?:[\\/]*)+ ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.+ ;;+ *)+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_exec_ext in '' $ac_executable_extensions; do+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then+ ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5+ break 2+ fi+done+ done+IFS=$as_save_IFS++ ;;+esac ;;+esac+fi+PKG_CONFIG=$ac_cv_path_PKG_CONFIG+if test -n "$PKG_CONFIG"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5+printf '%s\n' "$PKG_CONFIG" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+fi+++fi+if test -z "$ac_cv_path_PKG_CONFIG"; then+ ac_pt_PKG_CONFIG=$PKG_CONFIG+ # Extract the first word of "pkg-config", so it can be a program name with args.+set dummy pkg-config; ac_word=$2+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5+printf %s "checking for $ac_word... " >&6; }+if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) case $ac_pt_PKG_CONFIG in+ [\\/]* | ?:[\\/]*)+ ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.+ ;;+ *)+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_exec_ext in '' $ac_executable_extensions; do+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then+ ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5+ break 2+ fi+done+ done+IFS=$as_save_IFS++ ;;+esac ;;+esac+fi+ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG+if test -n "$ac_pt_PKG_CONFIG"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5+printf '%s\n' "$ac_pt_PKG_CONFIG" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+fi++ if test "x$ac_pt_PKG_CONFIG" = x; then+ PKG_CONFIG=""+ else+ case $cross_compiling:$ac_tool_warned in+yes:)+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5+printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}+ac_tool_warned=yes ;;+esac+ PKG_CONFIG=$ac_pt_PKG_CONFIG+ fi+else+ PKG_CONFIG="$ac_cv_path_PKG_CONFIG"+fi++fi+if test -n "$PKG_CONFIG"; then+ _pkg_min_version=0.9.0+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5+printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }+ if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5+printf '%s\n' "yes" >&6; }+ else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+ PKG_CONFIG=""+ fi+fi+if test -z "$PKG_CONFIG"; then+ as_fn_error $? "pkg-config not found" "$LINENO" 5+fi++ if test "x$ac_cv_lib_b2_blake2sp_init" != "xyes"; then+ INC_BLAKE2_TRUE=+ INC_BLAKE2_FALSE='#'+else+ INC_BLAKE2_TRUE='#'+ INC_BLAKE2_FALSE=+fi++++# Check whether --with-iconv was given.+if test ${with_iconv+y}+then :+ withval=$with_iconv;+fi+++if test "x$with_iconv" = "xyes" || test "$CABAL_FLAG_iconv" = 1; then++ if test "X$prefix" = "XNONE"; then+ acl_final_prefix="$ac_default_prefix"+ else+ acl_final_prefix="$prefix"+ fi+ if test "X$exec_prefix" = "XNONE"; then+ acl_final_exec_prefix='${prefix}'+ else+ acl_final_exec_prefix="$exec_prefix"+ fi+ acl_save_prefix="$prefix"+ prefix="$acl_final_prefix"+ eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"+ prefix="$acl_save_prefix"+++# Check whether --with-gnu-ld was given.+if test ${with_gnu_ld+y}+then :+ withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes+else case e in #(+ e) with_gnu_ld=no ;;+esac+fi++# Prepare PATH_SEPARATOR.+# The user is always right.+if test "${PATH_SEPARATOR+set}" != set; then+ # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which+ # contains only /bin. Note that ksh looks also at the FPATH variable,+ # so we have to set that as well for the test.+ PATH_SEPARATOR=:+ (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \+ && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \+ || PATH_SEPARATOR=';'+ }+fi+ac_prog=ld+if test "$GCC" = yes; then+ # Check if gcc -print-prog-name=ld gives a path.+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5+printf %s "checking for ld used by GCC... " >&6; }+ case $host in+ *-*-mingw*)+ # gcc leaves a trailing carriage return which upsets mingw+ ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;+ *)+ ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;+ esac+ case $ac_prog in+ # Accept absolute paths.+ [\\/]* | [A-Za-z]:[\\/]*)+ re_direlt='/[^/][^/]*/\.\./'+ # Canonicalize the path of ld+ ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`+ while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do+ ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`+ done+ test -z "$LD" && LD="$ac_prog"+ ;;+ "")+ # If it fails, then pretend we aren't using GCC.+ ac_prog=ld+ ;;+ *)+ # If it is relative, then search for the first ld in PATH.+ with_gnu_ld=unknown+ ;;+ esac+elif test "$with_gnu_ld" = yes; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5+printf %s "checking for GNU ld... " >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5+printf %s "checking for non-GNU ld... " >&6; }+fi+if test ${acl_cv_path_LD+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test -z "$LD"; then+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"+ for ac_dir in $PATH; do+ test -z "$ac_dir" && ac_dir=.+ if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then+ acl_cv_path_LD="$ac_dir/$ac_prog"+ # Check to see if the program is GNU ld. I'd rather use --version,+ # but apparently some GNU ld's only accept -v.+ # Break only if it was the GNU/non-GNU ld that we prefer.+ case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in+ *GNU* | *'with BFD'*)+ test "$with_gnu_ld" != no && break ;;+ *)+ test "$with_gnu_ld" != yes && break ;;+ esac+ fi+ done+ IFS="$ac_save_ifs"+else+ acl_cv_path_LD="$LD" # Let the user override the test with a path.+fi ;;+esac+fi++LD="$acl_cv_path_LD"+if test -n "$LD"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $LD" >&5+printf '%s\n' "$LD" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+fi+test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5+printf %s "checking if the linker ($LD) is GNU ld... " >&6; }+if test ${acl_cv_prog_gnu_ld+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) # I'd rather use --version here, but apparently some GNU ld's only accept -v.+case `$LD -v 2>&1 </dev/null` in+*GNU* | *'with BFD'*)+ acl_cv_prog_gnu_ld=yes ;;+*)+ acl_cv_prog_gnu_ld=no ;;+esac ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5+printf '%s\n' "$acl_cv_prog_gnu_ld" >&6; }+with_gnu_ld=$acl_cv_prog_gnu_ld++++++ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5+printf %s "checking for shared library run path origin... " >&6; }+if test ${acl_cv_rpath+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e)+ CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \+ ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh+ . ./conftest.sh+ rm -f ./conftest.sh+ acl_cv_rpath=done+ ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5+printf '%s\n' "$acl_cv_rpath" >&6; }+ wl="$acl_cv_wl"+ acl_libext="$acl_cv_libext"+ acl_shlibext="$acl_cv_shlibext"+ acl_libname_spec="$acl_cv_libname_spec"+ acl_library_names_spec="$acl_cv_library_names_spec"+ acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"+ acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"+ acl_hardcode_direct="$acl_cv_hardcode_direct"+ acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"+ # Check whether --enable-rpath was given.+if test ${enable_rpath+y}+then :+ enableval=$enable_rpath; :+else case e in #(+ e) enable_rpath=yes ;;+esac+fi+++{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5+printf %s "checking for egrep -e... " >&6; }+if test ${ac_cv_path_EGREP_TRADITIONAL+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test -z "$EGREP_TRADITIONAL"; then+ ac_path_EGREP_TRADITIONAL_found=false+ # Loop through the user's path and test for each of PROGNAME-LIST+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_prog in grep ggrep+ do+ for ac_exec_ext in '' $ac_executable_extensions; do+ ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"+ as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue+# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.+ # Check for GNU $ac_path_EGREP_TRADITIONAL+case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(+*GNU*)+ ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;+#(+*)+ ac_count=0+ printf %s 0123456789 >"conftest.in"+ while :+ do+ cat "conftest.in" "conftest.in" >"conftest.tmp"+ mv "conftest.tmp" "conftest.in"+ cp "conftest.in" "conftest.nl"+ printf '%s\n' 'EGREP_TRADITIONAL' >> "conftest.nl"+ "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break+ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break+ as_fn_arith $ac_count + 1 && ac_count=$as_val+ if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then+ # Best one so far, save it but keep looking for a better one+ ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"+ ac_path_EGREP_TRADITIONAL_max=$ac_count+ fi+ # 10*(2^10) chars as input seems more than enough+ test $ac_count -gt 10 && break+ done+ rm -f conftest.in conftest.tmp conftest.nl conftest.out;;+esac++ $ac_path_EGREP_TRADITIONAL_found && break 3+ done+ done+ done+IFS=$as_save_IFS+ if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then+ :+ fi+else+ ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL+fi++ if test "$ac_cv_path_EGREP_TRADITIONAL"+then :+ ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"+else case e in #(+ e) if test -z "$EGREP_TRADITIONAL"; then+ ac_path_EGREP_TRADITIONAL_found=false+ # Loop through the user's path and test for each of PROGNAME-LIST+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_prog in egrep+ do+ for ac_exec_ext in '' $ac_executable_extensions; do+ ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"+ as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue+# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.+ # Check for GNU $ac_path_EGREP_TRADITIONAL+case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(+*GNU*)+ ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;+#(+*)+ ac_count=0+ printf %s 0123456789 >"conftest.in"+ while :+ do+ cat "conftest.in" "conftest.in" >"conftest.tmp"+ mv "conftest.tmp" "conftest.in"+ cp "conftest.in" "conftest.nl"+ printf '%s\n' 'EGREP_TRADITIONAL' >> "conftest.nl"+ "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break+ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break+ as_fn_arith $ac_count + 1 && ac_count=$as_val+ if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then+ # Best one so far, save it but keep looking for a better one+ ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"+ ac_path_EGREP_TRADITIONAL_max=$ac_count+ fi+ # 10*(2^10) chars as input seems more than enough+ test $ac_count -gt 10 && break+ done+ rm -f conftest.in conftest.tmp conftest.nl conftest.out;;+esac++ $ac_path_EGREP_TRADITIONAL_found && break 3+ done+ done+ done+IFS=$as_save_IFS+ if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then+ as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5+ fi+else+ ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL+fi+ ;;+esac+fi ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5+printf '%s\n' "$ac_cv_path_EGREP_TRADITIONAL" >&6; }+ EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL++++ acl_libdirstem=lib+ acl_libdirstem2=+ case "$host_os" in+ solaris*)+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5+printf %s "checking for 64-bit host... " >&6; }+if test ${gl_cv_solaris_64bit+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */++#ifdef _LP64+sixtyfour bits+#endif++_ACEOF+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |+ $EGREP_TRADITIONAL "sixtyfour bits" >/dev/null 2>&1+then :+ gl_cv_solaris_64bit=yes+else case e in #(+ e) gl_cv_solaris_64bit=no ;;+esac+fi+rm -rf conftest*++ ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5+printf '%s\n' "$gl_cv_solaris_64bit" >&6; }+ if test $gl_cv_solaris_64bit = yes; then+ acl_libdirstem=lib/64+ case "$host_cpu" in+ sparc*) acl_libdirstem2=lib/sparcv9 ;;+ i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;+ esac+ fi+ ;;+ *)+ searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`+ if test -n "$searchpath"; then+ acl_save_IFS="${IFS= }"; IFS=":"+ for searchdir in $searchpath; do+ if test -d "$searchdir"; then+ case "$searchdir" in+ */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;+ */../ | */.. )+ # Better ignore directories of this form. They are misleading.+ ;;+ *) searchdir=`cd "$searchdir" && pwd`+ case "$searchdir" in+ */lib64 ) acl_libdirstem=lib64 ;;+ esac ;;+ esac+ fi+ done+ IFS="$acl_save_IFS"+ fi+ ;;+ esac+ test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"+++++++++++++ use_additional=yes++ acl_save_prefix="$prefix"+ prefix="$acl_final_prefix"+ acl_save_exec_prefix="$exec_prefix"+ exec_prefix="$acl_final_exec_prefix"++ eval additional_includedir=\"$includedir\"+ eval additional_libdir=\"$libdir\"++ exec_prefix="$acl_save_exec_prefix"+ prefix="$acl_save_prefix"+++# Check whether --with-libiconv-prefix was given.+if test ${with_libiconv_prefix+y}+then :+ withval=$with_libiconv_prefix;+ if test "X$withval" = "Xno"; then+ use_additional=no+ else+ if test "X$withval" = "X"; then++ acl_save_prefix="$prefix"+ prefix="$acl_final_prefix"+ acl_save_exec_prefix="$exec_prefix"+ exec_prefix="$acl_final_exec_prefix"++ eval additional_includedir=\"$includedir\"+ eval additional_libdir=\"$libdir\"++ exec_prefix="$acl_save_exec_prefix"+ prefix="$acl_save_prefix"++ else+ additional_includedir="$withval/include"+ additional_libdir="$withval/$acl_libdirstem"+ if test "$acl_libdirstem2" != "$acl_libdirstem" \+ && ! test -d "$withval/$acl_libdirstem"; then+ additional_libdir="$withval/$acl_libdirstem2"+ fi+ fi+ fi++fi++ LIBICONV=+ LTLIBICONV=+ INCICONV=+ LIBICONV_PREFIX=+ HAVE_LIBICONV=+ rpathdirs=+ ltrpathdirs=+ names_already_handled=+ names_next_round='iconv '+ while test -n "$names_next_round"; do+ names_this_round="$names_next_round"+ names_next_round=+ for name in $names_this_round; do+ already_handled=+ for n in $names_already_handled; do+ if test "$n" = "$name"; then+ already_handled=yes+ break+ fi+ done+ if test -z "$already_handled"; then+ names_already_handled="$names_already_handled $name"+ uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`+ eval value=\"\$HAVE_LIB$uppername\"+ if test -n "$value"; then+ if test "$value" = yes; then+ eval value=\"\$LIB$uppername\"+ test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"+ eval value=\"\$LTLIB$uppername\"+ test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"+ else+ :+ fi+ else+ found_dir=+ found_la=+ found_so=+ found_a=+ eval libname=\"$acl_libname_spec\" # typically: libname=lib$name+ if test -n "$acl_shlibext"; then+ shrext=".$acl_shlibext" # typically: shrext=.so+ else+ shrext=+ fi+ if test $use_additional = yes; then+ dir="$additional_libdir"+ if test -n "$acl_shlibext"; then+ if test -f "$dir/$libname$shrext"; then+ found_dir="$dir"+ found_so="$dir/$libname$shrext"+ else+ if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then+ ver=`(cd "$dir" && \+ for f in "$libname$shrext".*; do echo "$f"; done \+ | sed -e "s,^$libname$shrext\\\\.,," \+ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \+ | sed 1q ) 2>/dev/null`+ if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then+ found_dir="$dir"+ found_so="$dir/$libname$shrext.$ver"+ fi+ else+ eval library_names=\"$acl_library_names_spec\"+ for f in $library_names; do+ if test -f "$dir/$f"; then+ found_dir="$dir"+ found_so="$dir/$f"+ break+ fi+ done+ fi+ fi+ fi+ if test "X$found_dir" = "X"; then+ if test -f "$dir/$libname.$acl_libext"; then+ found_dir="$dir"+ found_a="$dir/$libname.$acl_libext"+ fi+ fi+ if test "X$found_dir" != "X"; then+ if test -f "$dir/$libname.la"; then+ found_la="$dir/$libname.la"+ fi+ fi+ fi+ if test "X$found_dir" = "X"; then+ for x in $LDFLAGS $LTLIBICONV; do++ acl_save_prefix="$prefix"+ prefix="$acl_final_prefix"+ acl_save_exec_prefix="$exec_prefix"+ exec_prefix="$acl_final_exec_prefix"+ eval x=\"$x\"+ exec_prefix="$acl_save_exec_prefix"+ prefix="$acl_save_prefix"++ case "$x" in+ -L*)+ dir=`echo "X$x" | sed -e 's/^X-L//'`+ if test -n "$acl_shlibext"; then+ if test -f "$dir/$libname$shrext"; then+ found_dir="$dir"+ found_so="$dir/$libname$shrext"+ else+ if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then+ ver=`(cd "$dir" && \+ for f in "$libname$shrext".*; do echo "$f"; done \+ | sed -e "s,^$libname$shrext\\\\.,," \+ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \+ | sed 1q ) 2>/dev/null`+ if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then+ found_dir="$dir"+ found_so="$dir/$libname$shrext.$ver"+ fi+ else+ eval library_names=\"$acl_library_names_spec\"+ for f in $library_names; do+ if test -f "$dir/$f"; then+ found_dir="$dir"+ found_so="$dir/$f"+ break+ fi+ done+ fi+ fi+ fi+ if test "X$found_dir" = "X"; then+ if test -f "$dir/$libname.$acl_libext"; then+ found_dir="$dir"+ found_a="$dir/$libname.$acl_libext"+ fi+ fi+ if test "X$found_dir" != "X"; then+ if test -f "$dir/$libname.la"; then+ found_la="$dir/$libname.la"+ fi+ fi+ ;;+ esac+ if test "X$found_dir" != "X"; then+ break+ fi+ done+ fi+ if test "X$found_dir" != "X"; then+ LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"+ if test "X$found_so" != "X"; then+ if test "$enable_rpath" = no \+ || test "X$found_dir" = "X/usr/$acl_libdirstem" \+ || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then+ LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"+ else+ haveit=+ for x in $ltrpathdirs; do+ if test "X$x" = "X$found_dir"; then+ haveit=yes+ break+ fi+ done+ if test -z "$haveit"; then+ ltrpathdirs="$ltrpathdirs $found_dir"+ fi+ if test "$acl_hardcode_direct" = yes; then+ LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"+ else+ if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then+ LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"+ haveit=+ for x in $rpathdirs; do+ if test "X$x" = "X$found_dir"; then+ haveit=yes+ break+ fi+ done+ if test -z "$haveit"; then+ rpathdirs="$rpathdirs $found_dir"+ fi+ else+ haveit=+ for x in $LDFLAGS $LIBICONV; do++ acl_save_prefix="$prefix"+ prefix="$acl_final_prefix"+ acl_save_exec_prefix="$exec_prefix"+ exec_prefix="$acl_final_exec_prefix"+ eval x=\"$x\"+ exec_prefix="$acl_save_exec_prefix"+ prefix="$acl_save_prefix"++ if test "X$x" = "X-L$found_dir"; then+ haveit=yes+ break+ fi+ done+ if test -z "$haveit"; then+ LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"+ fi+ if test "$acl_hardcode_minus_L" != no; then+ LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"+ else+ LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"+ fi+ fi+ fi+ fi+ else+ if test "X$found_a" != "X"; then+ LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"+ else+ LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"+ fi+ fi+ additional_includedir=+ case "$found_dir" in+ */$acl_libdirstem | */$acl_libdirstem/)+ basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`+ if test "$name" = 'iconv'; then+ LIBICONV_PREFIX="$basedir"+ fi+ additional_includedir="$basedir/include"+ ;;+ */$acl_libdirstem2 | */$acl_libdirstem2/)+ basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`+ if test "$name" = 'iconv'; then+ LIBICONV_PREFIX="$basedir"+ fi+ additional_includedir="$basedir/include"+ ;;+ esac+ if test "X$additional_includedir" != "X"; then+ if test "X$additional_includedir" != "X/usr/include"; then+ haveit=+ if test "X$additional_includedir" = "X/usr/local/include"; then+ if test -n "$GCC"; then+ case $host_os in+ linux* | gnu* | k*bsd*-gnu) haveit=yes;;+ esac+ fi+ fi+ if test -z "$haveit"; then+ for x in $CPPFLAGS $INCICONV; do++ acl_save_prefix="$prefix"+ prefix="$acl_final_prefix"+ acl_save_exec_prefix="$exec_prefix"+ exec_prefix="$acl_final_exec_prefix"+ eval x=\"$x\"+ exec_prefix="$acl_save_exec_prefix"+ prefix="$acl_save_prefix"++ if test "X$x" = "X-I$additional_includedir"; then+ haveit=yes+ break+ fi+ done+ if test -z "$haveit"; then+ if test -d "$additional_includedir"; then+ INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"+ fi+ fi+ fi+ fi+ fi+ if test -n "$found_la"; then+ save_libdir="$libdir"+ case "$found_la" in+ */* | *\\*) . "$found_la" ;;+ *) . "./$found_la" ;;+ esac+ libdir="$save_libdir"+ for dep in $dependency_libs; do+ case "$dep" in+ -L*)+ additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`+ if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \+ && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then+ haveit=+ if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \+ || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then+ if test -n "$GCC"; then+ case $host_os in+ linux* | gnu* | k*bsd*-gnu) haveit=yes;;+ esac+ fi+ fi+ if test -z "$haveit"; then+ haveit=+ for x in $LDFLAGS $LIBICONV; do++ acl_save_prefix="$prefix"+ prefix="$acl_final_prefix"+ acl_save_exec_prefix="$exec_prefix"+ exec_prefix="$acl_final_exec_prefix"+ eval x=\"$x\"+ exec_prefix="$acl_save_exec_prefix"+ prefix="$acl_save_prefix"++ if test "X$x" = "X-L$additional_libdir"; then+ haveit=yes+ break+ fi+ done+ if test -z "$haveit"; then+ if test -d "$additional_libdir"; then+ LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"+ fi+ fi+ haveit=+ for x in $LDFLAGS $LTLIBICONV; do++ acl_save_prefix="$prefix"+ prefix="$acl_final_prefix"+ acl_save_exec_prefix="$exec_prefix"+ exec_prefix="$acl_final_exec_prefix"+ eval x=\"$x\"+ exec_prefix="$acl_save_exec_prefix"+ prefix="$acl_save_prefix"++ if test "X$x" = "X-L$additional_libdir"; then+ haveit=yes+ break+ fi+ done+ if test -z "$haveit"; then+ if test -d "$additional_libdir"; then+ LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"+ fi+ fi+ fi+ fi+ ;;+ -R*)+ dir=`echo "X$dep" | sed -e 's/^X-R//'`+ if test "$enable_rpath" != no; then+ haveit=+ for x in $rpathdirs; do+ if test "X$x" = "X$dir"; then+ haveit=yes+ break+ fi+ done+ if test -z "$haveit"; then+ rpathdirs="$rpathdirs $dir"+ fi+ haveit=+ for x in $ltrpathdirs; do+ if test "X$x" = "X$dir"; then+ haveit=yes+ break+ fi+ done+ if test -z "$haveit"; then+ ltrpathdirs="$ltrpathdirs $dir"+ fi+ fi+ ;;+ -l*)+ names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`+ ;;+ *.la)+ names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`+ ;;+ *)+ LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"+ LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"+ ;;+ esac+ done+ fi+ else+ LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"+ LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"+ fi+ fi+ fi+ done+ done+ if test "X$rpathdirs" != "X"; then+ if test -n "$acl_hardcode_libdir_separator"; then+ alldirs=+ for found_dir in $rpathdirs; do+ alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"+ done+ acl_save_libdir="$libdir"+ libdir="$alldirs"+ eval flag=\"$acl_hardcode_libdir_flag_spec\"+ libdir="$acl_save_libdir"+ LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"+ else+ for found_dir in $rpathdirs; do+ acl_save_libdir="$libdir"+ libdir="$found_dir"+ eval flag=\"$acl_hardcode_libdir_flag_spec\"+ libdir="$acl_save_libdir"+ LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"+ done+ fi+ fi+ if test "X$ltrpathdirs" != "X"; then+ for found_dir in $ltrpathdirs; do+ LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"+ done+ fi+++++++++++++ am_save_CPPFLAGS="$CPPFLAGS"++ for element in $INCICONV; do+ haveit=+ for x in $CPPFLAGS; do++ acl_save_prefix="$prefix"+ prefix="$acl_final_prefix"+ acl_save_exec_prefix="$exec_prefix"+ exec_prefix="$acl_final_exec_prefix"+ eval x=\"$x\"+ exec_prefix="$acl_save_exec_prefix"+ prefix="$acl_save_prefix"++ if test "X$x" = "X$element"; then+ haveit=yes+ break+ fi+ done+ if test -z "$haveit"; then+ CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"+ fi+ done+++ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5+printf %s "checking for iconv... " >&6; }+if test ${am_cv_func_iconv+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e)+ am_cv_func_iconv="no, consider installing GNU libiconv"+ am_cv_lib_iconv=no+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */++#include <stdlib.h>+#include <iconv.h>++int+main (void)+{+iconv_t cd = iconv_open("","");+ iconv(cd,NULL,NULL,NULL,NULL);+ iconv_close(cd);+ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_link "$LINENO"+then :+ am_cv_func_iconv=yes+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam \+ conftest$ac_exeext conftest.$ac_ext+ if test "$am_cv_func_iconv" != yes; then+ am_save_LIBS="$LIBS"+ LIBS="$LIBS $LIBICONV"+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */++#include <stdlib.h>+#include <iconv.h>++int+main (void)+{+iconv_t cd = iconv_open("","");+ iconv(cd,NULL,NULL,NULL,NULL);+ iconv_close(cd);+ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_link "$LINENO"+then :+ am_cv_lib_iconv=yes+ am_cv_func_iconv=yes+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam \+ conftest$ac_exeext conftest.$ac_ext+ LIBS="$am_save_LIBS"+ fi+ ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5+printf '%s\n' "$am_cv_func_iconv" >&6; }+ if test "$am_cv_func_iconv" = yes; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5+printf %s "checking for working iconv... " >&6; }+if test ${am_cv_func_iconv_works+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e)+ am_save_LIBS="$LIBS"+ if test $am_cv_lib_iconv = yes; then+ LIBS="$LIBS $LIBICONV"+ fi+ am_cv_func_iconv_works=no+ for ac_iconv_const in '' 'const'; do+ if test "$cross_compiling" = yes+then :+ case "$host_os" in+ aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;+ *) am_cv_func_iconv_works="guessing yes" ;;+ esac+else case e in #(+ e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */++#include <iconv.h>+#include <string.h>++#ifndef ICONV_CONST+# define ICONV_CONST $ac_iconv_const+#endif++int+main (void)+{+int result = 0;+ /* Test against AIX 5.1 bug: Failures are not distinguishable from successful+ returns. */+ {+ iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");+ if (cd_utf8_to_88591 != (iconv_t)(-1))+ {+ static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */+ char buf[10];+ ICONV_CONST char *inptr = input;+ size_t inbytesleft = strlen (input);+ char *outptr = buf;+ size_t outbytesleft = sizeof (buf);+ size_t res = iconv (cd_utf8_to_88591,+ &inptr, &inbytesleft,+ &outptr, &outbytesleft);+ if (res == 0)+ result |= 1;+ iconv_close (cd_utf8_to_88591);+ }+ }+ /* Test against Solaris 10 bug: Failures are not distinguishable from+ successful returns. */+ {+ iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");+ if (cd_ascii_to_88591 != (iconv_t)(-1))+ {+ static ICONV_CONST char input[] = "\263";+ char buf[10];+ ICONV_CONST char *inptr = input;+ size_t inbytesleft = strlen (input);+ char *outptr = buf;+ size_t outbytesleft = sizeof (buf);+ size_t res = iconv (cd_ascii_to_88591,+ &inptr, &inbytesleft,+ &outptr, &outbytesleft);+ if (res == 0)+ result |= 2;+ iconv_close (cd_ascii_to_88591);+ }+ }+ /* Test against AIX 6.1..7.1 bug: Buffer overrun. */+ {+ iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");+ if (cd_88591_to_utf8 != (iconv_t)(-1))+ {+ static ICONV_CONST char input[] = "\304";+ static char buf[2] = { (char)0xDE, (char)0xAD };+ ICONV_CONST char *inptr = input;+ size_t inbytesleft = 1;+ char *outptr = buf;+ size_t outbytesleft = 1;+ size_t res = iconv (cd_88591_to_utf8,+ &inptr, &inbytesleft,+ &outptr, &outbytesleft);+ if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)+ result |= 4;+ iconv_close (cd_88591_to_utf8);+ }+ }+#if 0 /* This bug could be worked around by the caller. */+ /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */+ {+ iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");+ if (cd_88591_to_utf8 != (iconv_t)(-1))+ {+ static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";+ char buf[50];+ ICONV_CONST char *inptr = input;+ size_t inbytesleft = strlen (input);+ char *outptr = buf;+ size_t outbytesleft = sizeof (buf);+ size_t res = iconv (cd_88591_to_utf8,+ &inptr, &inbytesleft,+ &outptr, &outbytesleft);+ if ((int)res > 0)+ result |= 8;+ iconv_close (cd_88591_to_utf8);+ }+ }+#endif+ /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is+ provided. */+ if (/* Try standardized names. */+ iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)+ /* Try IRIX, OSF/1 names. */+ && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)+ /* Try AIX names. */+ && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)+ /* Try HP-UX names. */+ && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))+ result |= 16;+ return result;++ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_run "$LINENO"+then :+ am_cv_func_iconv_works=yes+fi+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \+ conftest.$ac_objext conftest.beam conftest.$ac_ext ;;+esac+fi++ test "$am_cv_func_iconv_works" = no || break+ done+ LIBS="$am_save_LIBS"+ ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5+printf '%s\n' "$am_cv_func_iconv_works" >&6; }+ case "$am_cv_func_iconv_works" in+ *no) am_func_iconv=no am_cv_lib_iconv=no ;;+ *) am_func_iconv=yes ;;+ esac+ else+ am_func_iconv=no am_cv_lib_iconv=no+ fi+ if test "$am_func_iconv" = yes; then++printf '%s\n' "#define HAVE_ICONV 1" >>confdefs.h++ fi+ if test "$am_cv_lib_iconv" = yes; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5+printf %s "checking how to link with libiconv... " >&6; }+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5+printf '%s\n' "$LIBICONV" >&6; }+ else+ CPPFLAGS="$am_save_CPPFLAGS"+ LIBICONV=+ LTLIBICONV=+ fi++++ if test "$am_cv_func_iconv" = yes; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5+printf %s "checking for iconv declaration... " >&6; }+ if test ${am_cv_proto_iconv+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e)+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */++#include <stdlib.h>+#include <iconv.h>+extern+#ifdef __cplusplus+"C"+#endif+#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)+size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);+#else+size_t iconv();+#endif++int+main (void)+{++ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_compile "$LINENO"+then :+ am_cv_proto_iconv_arg1=""+else case e in #(+ e) am_cv_proto_iconv_arg1="const" ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext+ am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" ;;+esac+fi++ am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result:+ $am_cv_proto_iconv" >&5+printf '%s\n' "+ $am_cv_proto_iconv" >&6; }++printf '%s\n' "#define ICONV_CONST $am_cv_proto_iconv_arg1" >>confdefs.h+++ fi++ ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "#include <stdlib.h>+"+if test "x$ac_cv_header_iconv_h" = xyes+then :+ printf '%s\n' "#define HAVE_ICONV_H 1" >>confdefs.h++fi++ if test "x$am_cv_func_iconv" = "xyes"; then+ ac_fn_c_check_header_compile "$LINENO" "localcharset.h" "ac_cv_header_localcharset_h" "$ac_includes_default"+if test "x$ac_cv_header_localcharset_h" = xyes+then :+ printf '%s\n' "#define HAVE_LOCALCHARSET_H 1" >>confdefs.h++fi++ LIBS="${LIBS} ${LIBICONV}"+ if test -n "$LIBICONV"; then++printf '%s\n' "#define HAVE_LIBICONV 1" >>confdefs.h+++ # Most platforms do not provide iconv.pc, but MSYS2 MinGW does.+ # We add it to our Requires.private only if it exists.++pkg_failed=no+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5+printf %s "checking for iconv... " >&6; }++if test -n "$ICONV_PC_CFLAGS"; then+ pkg_cv_ICONV_PC_CFLAGS="$ICONV_PC_CFLAGS"+ elif test -n "$PKG_CONFIG"; then+ if test -n "$PKG_CONFIG" && \+ { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"iconv\""; } >&5+ ($PKG_CONFIG --exists --print-errors "iconv") 2>&5+ ac_status=$?+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5+ test $ac_status = 0; }; then+ pkg_cv_ICONV_PC_CFLAGS=`$PKG_CONFIG --cflags "iconv" 2>/dev/null`+ test "x$?" != "x0" && pkg_failed=yes+else+ pkg_failed=yes+fi+ else+ pkg_failed=untried+fi+if test -n "$ICONV_PC_LIBS"; then+ pkg_cv_ICONV_PC_LIBS="$ICONV_PC_LIBS"+ elif test -n "$PKG_CONFIG"; then+ if test -n "$PKG_CONFIG" && \+ { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"iconv\""; } >&5+ ($PKG_CONFIG --exists --print-errors "iconv") 2>&5+ ac_status=$?+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5+ test $ac_status = 0; }; then+ pkg_cv_ICONV_PC_LIBS=`$PKG_CONFIG --libs "iconv" 2>/dev/null`+ test "x$?" != "x0" && pkg_failed=yes+else+ pkg_failed=yes+fi+ else+ pkg_failed=untried+fi++++if test $pkg_failed = yes; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }++if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then+ _pkg_short_errors_supported=yes+else+ _pkg_short_errors_supported=no+fi+ if test $_pkg_short_errors_supported = yes; then+ ICONV_PC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "iconv" 2>&1`+ else+ ICONV_PC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "iconv" 2>&1`+ fi+ # Put the nasty error message in config.log where it belongs+ echo "$ICONV_PC_PKG_ERRORS" >&5++ true+elif test $pkg_failed = untried; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+ true+else+ ICONV_PC_CFLAGS=$pkg_cv_ICONV_PC_CFLAGS+ ICONV_PC_LIBS=$pkg_cv_ICONV_PC_LIBS+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5+printf '%s\n' "yes" >&6; }++ LIBSREQUIRED="$LIBSREQUIRED${LIBSREQUIRED:+ }iconv"++fi+ fi+ ac_fn_c_check_func "$LINENO" "locale_charset" "ac_cv_func_locale_charset"+if test "x$ac_cv_func_locale_charset" = xyes+then :+ printf '%s\n' "#define HAVE_LOCALE_CHARSET 1" >>confdefs.h++fi++ if test "x$ac_cv_func_locale_charset" != "xyes"; then+ # If locale_charset() is not in libiconv, we have to find libcharset.+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for locale_charset in -lcharset" >&5+printf %s "checking for locale_charset in -lcharset... " >&6; }+if test ${ac_cv_lib_charset_locale_charset+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) ac_check_lib_save_LIBS=$LIBS+LIBS="-lcharset $LIBS"+cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */++/* Override any GCC internal prototype to avoid an error.+ Use char because int might match the return type of a GCC+ builtin and then its argument prototype would still apply.+ The 'extern "C"' is for builds by C++ compilers;+ although this is not generally supported in C code supporting it here+ has little cost and some practical benefit (sr 110532). */+#ifdef __cplusplus+extern "C"+#endif+char locale_charset (void);+int+main (void)+{+return locale_charset ();+ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_link "$LINENO"+then :+ ac_cv_lib_charset_locale_charset=yes+else case e in #(+ e) ac_cv_lib_charset_locale_charset=no ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam \+ conftest$ac_exeext conftest.$ac_ext+LIBS=$ac_check_lib_save_LIBS ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_charset_locale_charset" >&5+printf '%s\n' "$ac_cv_lib_charset_locale_charset" >&6; }+if test "x$ac_cv_lib_charset_locale_charset" = xyes+then :+ printf '%s\n' "#define HAVE_LIBCHARSET 1" >>confdefs.h++ LIBS="-lcharset $LIBS"++fi++ fi+ fi+fi+++# Check whether --with-lz4 was given.+if test ${with_lz4+y}+then :+ withval=$with_lz4;+fi+++if test "x$with_lz4" = "xyes" || test "$CABAL_FLAG_lz4" = 1; then+ ac_fn_c_check_header_compile "$LINENO" "lz4.h" "ac_cv_header_lz4_h" "$ac_includes_default"+if test "x$ac_cv_header_lz4_h" = xyes+then :+ printf '%s\n' "#define HAVE_LZ4_H 1" >>confdefs.h++fi+ac_fn_c_check_header_compile "$LINENO" "lz4hc.h" "ac_cv_header_lz4hc_h" "$ac_includes_default"+if test "x$ac_cv_header_lz4hc_h" = xyes+then :+ printf '%s\n' "#define HAVE_LZ4HC_H 1" >>confdefs.h++fi++ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for LZ4_decompress_safe in -llz4" >&5+printf %s "checking for LZ4_decompress_safe in -llz4... " >&6; }+if test ${ac_cv_lib_lz4_LZ4_decompress_safe+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) ac_check_lib_save_LIBS=$LIBS+LIBS="-llz4 $LIBS"+cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */++/* Override any GCC internal prototype to avoid an error.+ Use char because int might match the return type of a GCC+ builtin and then its argument prototype would still apply.+ The 'extern "C"' is for builds by C++ compilers;+ although this is not generally supported in C code supporting it here+ has little cost and some practical benefit (sr 110532). */+#ifdef __cplusplus+extern "C"+#endif+char LZ4_decompress_safe (void);+int+main (void)+{+return LZ4_decompress_safe ();+ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_link "$LINENO"+then :+ ac_cv_lib_lz4_LZ4_decompress_safe=yes+else case e in #(+ e) ac_cv_lib_lz4_LZ4_decompress_safe=no ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam \+ conftest$ac_exeext conftest.$ac_ext+LIBS=$ac_check_lib_save_LIBS ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lz4_LZ4_decompress_safe" >&5+printf '%s\n' "$ac_cv_lib_lz4_LZ4_decompress_safe" >&6; }+if test "x$ac_cv_lib_lz4_LZ4_decompress_safe" = xyes+then :+ printf '%s\n' "#define HAVE_LIBLZ4 1" >>confdefs.h++ LIBS="-llz4 $LIBS"++fi++fi+++# Check whether --with-zstd was given.+if test ${with_zstd+y}+then :+ withval=$with_zstd;+fi+++if test "x$with_zstd" = "xyes" || test "$CABAL_FLAG_zstd" = 1; then+ ac_fn_c_check_header_compile "$LINENO" "zstd.h" "ac_cv_header_zstd_h" "$ac_includes_default"+if test "x$ac_cv_header_zstd_h" = xyes+then :+ printf '%s\n' "#define HAVE_ZSTD_H 1" >>confdefs.h++fi++ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for ZSTD_decompressStream in -lzstd" >&5+printf %s "checking for ZSTD_decompressStream in -lzstd... " >&6; }+if test ${ac_cv_lib_zstd_ZSTD_decompressStream+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) ac_check_lib_save_LIBS=$LIBS+LIBS="-lzstd $LIBS"+cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */++/* Override any GCC internal prototype to avoid an error.+ Use char because int might match the return type of a GCC+ builtin and then its argument prototype would still apply.+ The 'extern "C"' is for builds by C++ compilers;+ although this is not generally supported in C code supporting it here+ has little cost and some practical benefit (sr 110532). */+#ifdef __cplusplus+extern "C"+#endif+char ZSTD_decompressStream (void);+int+main (void)+{+return ZSTD_decompressStream ();+ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_link "$LINENO"+then :+ ac_cv_lib_zstd_ZSTD_decompressStream=yes+else case e in #(+ e) ac_cv_lib_zstd_ZSTD_decompressStream=no ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam \+ conftest$ac_exeext conftest.$ac_ext+LIBS=$ac_check_lib_save_LIBS ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_decompressStream" >&5+printf '%s\n' "$ac_cv_lib_zstd_ZSTD_decompressStream" >&6; }+if test "x$ac_cv_lib_zstd_ZSTD_decompressStream" = xyes+then :+ printf '%s\n' "#define HAVE_LIBZSTD 1" >>confdefs.h++ LIBS="-lzstd $LIBS"++fi++ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for ZSTD_compressStream in -lzstd" >&5+printf %s "checking for ZSTD_compressStream in -lzstd... " >&6; }+if test ${ac_cv_lib_zstd_ZSTD_compressStream+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) ac_check_lib_save_LIBS=$LIBS+LIBS="-lzstd $LIBS"+cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */++/* Override any GCC internal prototype to avoid an error.+ Use char because int might match the return type of a GCC+ builtin and then its argument prototype would still apply.+ The 'extern "C"' is for builds by C++ compilers;+ although this is not generally supported in C code supporting it here+ has little cost and some practical benefit (sr 110532). */+#ifdef __cplusplus+extern "C"+#endif+char ZSTD_compressStream (void);+int+main (void)+{+return ZSTD_compressStream ();+ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_link "$LINENO"+then :+ ac_cv_lib_zstd_ZSTD_compressStream=yes+else case e in #(+ e) ac_cv_lib_zstd_ZSTD_compressStream=no ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam \+ conftest$ac_exeext conftest.$ac_ext+LIBS=$ac_check_lib_save_LIBS ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_compressStream" >&5+printf '%s\n' "$ac_cv_lib_zstd_ZSTD_compressStream" >&6; }+if test "x$ac_cv_lib_zstd_ZSTD_compressStream" = xyes+then :++printf '%s\n' "#define HAVE_ZSTD_compressStream 1" >>confdefs.h++fi++ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for ZSTD_minCLevel in -lzstd" >&5+printf %s "checking for ZSTD_minCLevel in -lzstd... " >&6; }+if test ${ac_cv_lib_zstd_ZSTD_minCLevel+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) ac_check_lib_save_LIBS=$LIBS+LIBS="-lzstd $LIBS"+cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */++/* Override any GCC internal prototype to avoid an error.+ Use char because int might match the return type of a GCC+ builtin and then its argument prototype would still apply.+ The 'extern "C"' is for builds by C++ compilers;+ although this is not generally supported in C code supporting it here+ has little cost and some practical benefit (sr 110532). */+#ifdef __cplusplus+extern "C"+#endif+char ZSTD_minCLevel (void);+int+main (void)+{+return ZSTD_minCLevel ();+ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_link "$LINENO"+then :+ ac_cv_lib_zstd_ZSTD_minCLevel=yes+else case e in #(+ e) ac_cv_lib_zstd_ZSTD_minCLevel=no ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam \+ conftest$ac_exeext conftest.$ac_ext+LIBS=$ac_check_lib_save_LIBS ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_minCLevel" >&5+printf '%s\n' "$ac_cv_lib_zstd_ZSTD_minCLevel" >&6; }+if test "x$ac_cv_lib_zstd_ZSTD_minCLevel" = xyes+then :++printf '%s\n' "#define HAVE_ZSTD_minCLevel 1" >>confdefs.h++else case e in #(+ e) as_fn_error $? "Could not find a suitable version of zstr" "$LINENO" 5 ;;+esac+fi++fi+++# Check whether --with-lzma was given.+if test ${with_lzma+y}+then :+ withval=$with_lzma;+fi+++if test "x$with_lzma" = "xyes" || test "$CABAL_FLAG_lzma" = 1; then++++++++if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then+ if test -n "$ac_tool_prefix"; then+ # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.+set dummy ${ac_tool_prefix}pkg-config; ac_word=$2+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5+printf %s "checking for $ac_word... " >&6; }+if test ${ac_cv_path_PKG_CONFIG+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) case $PKG_CONFIG in+ [\\/]* | ?:[\\/]*)+ ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.+ ;;+ *)+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_exec_ext in '' $ac_executable_extensions; do+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then+ ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5+ break 2+ fi+done+ done+IFS=$as_save_IFS++ ;;+esac ;;+esac+fi+PKG_CONFIG=$ac_cv_path_PKG_CONFIG+if test -n "$PKG_CONFIG"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5+printf '%s\n' "$PKG_CONFIG" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+fi+++fi+if test -z "$ac_cv_path_PKG_CONFIG"; then+ ac_pt_PKG_CONFIG=$PKG_CONFIG+ # Extract the first word of "pkg-config", so it can be a program name with args.+set dummy pkg-config; ac_word=$2+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5+printf %s "checking for $ac_word... " >&6; }+if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) case $ac_pt_PKG_CONFIG in+ [\\/]* | ?:[\\/]*)+ ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.+ ;;+ *)+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ for ac_exec_ext in '' $ac_executable_extensions; do+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then+ ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5+ break 2+ fi+done+ done+IFS=$as_save_IFS++ ;;+esac ;;+esac+fi+ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG+if test -n "$ac_pt_PKG_CONFIG"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5+printf '%s\n' "$ac_pt_PKG_CONFIG" >&6; }+else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+fi++ if test "x$ac_pt_PKG_CONFIG" = x; then+ PKG_CONFIG=""+ else+ case $cross_compiling:$ac_tool_warned in+yes:)+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5+printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}+ac_tool_warned=yes ;;+esac+ PKG_CONFIG=$ac_pt_PKG_CONFIG+ fi+else+ PKG_CONFIG="$ac_cv_path_PKG_CONFIG"+fi++fi+if test -n "$PKG_CONFIG"; then+ _pkg_min_version=0.9.0+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5+printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }+ if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5+printf '%s\n' "yes" >&6; }+ else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }+ PKG_CONFIG=""+ fi+fi+if test -z "$PKG_CONFIG"; then+ as_fn_error $? "pkg-config not found" "$LINENO" 5+fi++pkg_failed=no+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5+printf %s "checking for liblzma... " >&6; }++if test -n "$LZMA_PC_CFLAGS"; then+ pkg_cv_LZMA_PC_CFLAGS="$LZMA_PC_CFLAGS"+ elif test -n "$PKG_CONFIG"; then+ if test -n "$PKG_CONFIG" && \+ { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma\""; } >&5+ ($PKG_CONFIG --exists --print-errors "liblzma") 2>&5+ ac_status=$?+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5+ test $ac_status = 0; }; then+ pkg_cv_LZMA_PC_CFLAGS=`$PKG_CONFIG --cflags "liblzma" 2>/dev/null`+ test "x$?" != "x0" && pkg_failed=yes+else+ pkg_failed=yes+fi+ else+ pkg_failed=untried+fi+if test -n "$LZMA_PC_LIBS"; then+ pkg_cv_LZMA_PC_LIBS="$LZMA_PC_LIBS"+ elif test -n "$PKG_CONFIG"; then+ if test -n "$PKG_CONFIG" && \+ { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma\""; } >&5+ ($PKG_CONFIG --exists --print-errors "liblzma") 2>&5+ ac_status=$?+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5+ test $ac_status = 0; }; then+ pkg_cv_LZMA_PC_LIBS=`$PKG_CONFIG --libs "liblzma" 2>/dev/null`+ test "x$?" != "x0" && pkg_failed=yes+else+ pkg_failed=yes+fi+ else+ pkg_failed=untried+fi++++if test $pkg_failed = yes; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }++if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then+ _pkg_short_errors_supported=yes+else+ _pkg_short_errors_supported=no+fi+ if test $_pkg_short_errors_supported = yes; then+ LZMA_PC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblzma" 2>&1`+ else+ LZMA_PC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblzma" 2>&1`+ fi+ # Put the nasty error message in config.log where it belongs+ echo "$LZMA_PC_PKG_ERRORS" >&5+++ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for lzma_stream_decoder in -llzma" >&5+printf %s "checking for lzma_stream_decoder in -llzma... " >&6; }+if test ${ac_cv_lib_lzma_lzma_stream_decoder+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) ac_check_lib_save_LIBS=$LIBS+LIBS="-llzma $LIBS"+cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */++/* Override any GCC internal prototype to avoid an error.+ Use char because int might match the return type of a GCC+ builtin and then its argument prototype would still apply.+ The 'extern "C"' is for builds by C++ compilers;+ although this is not generally supported in C code supporting it here+ has little cost and some practical benefit (sr 110532). */+#ifdef __cplusplus+extern "C"+#endif+char lzma_stream_decoder (void);+int+main (void)+{+return lzma_stream_decoder ();+ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_link "$LINENO"+then :+ ac_cv_lib_lzma_lzma_stream_decoder=yes+else case e in #(+ e) ac_cv_lib_lzma_lzma_stream_decoder=no ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam \+ conftest$ac_exeext conftest.$ac_ext+LIBS=$ac_check_lib_save_LIBS ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_stream_decoder" >&5+printf '%s\n' "$ac_cv_lib_lzma_lzma_stream_decoder" >&6; }+if test "x$ac_cv_lib_lzma_lzma_stream_decoder" = xyes+then :+ printf '%s\n' "#define HAVE_LIBLZMA 1" >>confdefs.h++ LIBS="-llzma $LIBS"++else case e in #(+ e) as_fn_error $? "Could not find a suitable version of lzma" "$LINENO" 5 ;;+esac+fi+++elif test $pkg_failed = untried; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5+printf '%s\n' "no" >&6; }++ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for lzma_stream_decoder in -llzma" >&5+printf %s "checking for lzma_stream_decoder in -llzma... " >&6; }+if test ${ac_cv_lib_lzma_lzma_stream_decoder+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) ac_check_lib_save_LIBS=$LIBS+LIBS="-llzma $LIBS"+cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */++/* Override any GCC internal prototype to avoid an error.+ Use char because int might match the return type of a GCC+ builtin and then its argument prototype would still apply.+ The 'extern "C"' is for builds by C++ compilers;+ although this is not generally supported in C code supporting it here+ has little cost and some practical benefit (sr 110532). */+#ifdef __cplusplus+extern "C"+#endif+char lzma_stream_decoder (void);+int+main (void)+{+return lzma_stream_decoder ();+ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_link "$LINENO"+then :+ ac_cv_lib_lzma_lzma_stream_decoder=yes+else case e in #(+ e) ac_cv_lib_lzma_lzma_stream_decoder=no ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam \+ conftest$ac_exeext conftest.$ac_ext+LIBS=$ac_check_lib_save_LIBS ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_stream_decoder" >&5+printf '%s\n' "$ac_cv_lib_lzma_lzma_stream_decoder" >&6; }+if test "x$ac_cv_lib_lzma_lzma_stream_decoder" = xyes+then :+ printf '%s\n' "#define HAVE_LIBLZMA 1" >>confdefs.h++ LIBS="-llzma $LIBS"++else case e in #(+ e) as_fn_error $? "Could not find a suitable version of lzma" "$LINENO" 5 ;;+esac+fi+++else+ LZMA_PC_CFLAGS=$pkg_cv_LZMA_PC_CFLAGS+ LZMA_PC_LIBS=$pkg_cv_LZMA_PC_LIBS+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5+printf '%s\n' "yes" >&6; }++ CFLAGS="${CFLAGS} ${LZMA_PC_CFLAGS}"+ LIBS="${LIBS} ${LZMA_PC_LIBS}"++printf '%s\n' "#define HAVE_LIBLZMA 1" >>confdefs.h+++fi+ ac_fn_c_check_header_compile "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"+if test "x$ac_cv_header_lzma_h" = xyes+then :+ printf '%s\n' "#define HAVE_LZMA_H 1" >>confdefs.h++fi+++ # Some pre-release (but widely distributed) versions of liblzma+ # included a disabled version of lzma_stream_encoder_mt that+ # fools a naive AC_CHECK_LIB or AC_CHECK_FUNC, so we need+ # to do something more complex here:+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether we have multithread support in lzma" >&5+printf %s "checking whether we have multithread support in lzma... " >&6; }+if test ${ac_cv_lzma_has_mt+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */++ #include <lzma.h>+ #if LZMA_VERSION < 50020000+ #error unsupported+ #endif+int+main (void)+{+int ignored __attribute__((unused)); ignored = lzma_stream_encoder_mt(0, 0);+ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_link "$LINENO"+then :+ ac_cv_lzma_has_mt=yes+else case e in #(+ e) ac_cv_lzma_has_mt=no ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam \+ conftest$ac_exeext conftest.$ac_ext ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lzma_has_mt" >&5+printf '%s\n' "$ac_cv_lzma_has_mt" >&6; }+ if test "x$ac_cv_lzma_has_mt" != xno; then++printf '%s\n' "#define HAVE_LZMA_STREAM_ENCODER_MT 1" >>confdefs.h++ fi+fi+++# Checks for typedefs, structures, and compiler characteristics.+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5+printf %s "checking for an ANSI C-conforming const... " >&6; }+if test ${ac_cv_c_const+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */++int+main (void)+{++#ifndef __cplusplus+ /* Ultrix mips cc rejects this sort of thing. */+ typedef int charset[2];+ const charset cs = { 0, 0 };+ /* SunOS 4.1.1 cc rejects this. */+ char const *const *pcpcc;+ char **ppc;+ /* NEC SVR4.0.2 mips cc rejects this. */+ struct point {int x, y;};+ static struct point const zero = {0,0};+ /* IBM XL C 1.02.0.0 rejects this.+ It does not let you subtract one const X* pointer from another in+ an arm of an if-expression whose if-part is not a constant+ expression */+ const char *g = "string";+ pcpcc = &g + (g ? g-g : 0);+ /* HPUX 7.0 cc rejects these. */+ ++pcpcc;+ ppc = (char**) pcpcc;+ pcpcc = (char const *const *) ppc;+ { /* SCO 3.2v4 cc rejects this sort of thing. */+ char tx;+ char *t = &tx;+ char const *s = 0 ? (char *) 0 : (char const *) 0;++ *t++ = 0;+ if (s) return 0;+ }+ { /* Derived from code rejected by Sun C 1.0 and similar vintage. */+ int x[] = {25, 17};+ typedef int const *iptr;+ iptr foo = &x[0];+ ++foo;+ if (!*foo) return 0;+ }+ { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying+ "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */+ struct s { int j; const int *ap[3]; } bx;+ struct s *b = &bx; b->j = 5;+ }+ { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */+ const int foo = 10;+ if (!foo) return 0;+ }+ return !cs[0] && !zero.x;+#endif++ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_compile "$LINENO"+then :+ ac_cv_c_const=yes+else case e in #(+ e) ac_cv_c_const=no ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5+printf '%s\n' "$ac_cv_c_const" >&6; }+if test $ac_cv_c_const = no; then++printf '%s\n' "#define const /**/" >>confdefs.h++fi++# la_TYPE_UID_T defaults to "int", which is incorrect for MinGW+# and MSVC. Use a customized version.+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5+printf %s "checking for uid_t in sys/types.h... " >&6; }+if test ${la_cv_type_uid_t+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */+#include <sys/types.h>++_ACEOF+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |+ $EGREP_TRADITIONAL "uid_t" >/dev/null 2>&1+then :+ la_cv_type_uid_t=yes+else case e in #(+ e) la_cv_type_uid_t=no ;;+esac+fi+rm -rf conftest*+ ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $la_cv_type_uid_t" >&5+printf '%s\n' "$la_cv_type_uid_t" >&6; }+if test $la_cv_type_uid_t = no; then+ case $host in+ *mingw*) def_uid_t=short ;;+ *) def_uid_t=int ;;+ esac++printf '%s\n' "#define uid_t $def_uid_t" >>confdefs.h+++printf '%s\n' "#define gid_t $def_uid_t" >>confdefs.h++fi++ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"+if test "x$ac_cv_type_mode_t" = xyes+then :++else case e in #(+ e)+printf '%s\n' "#define mode_t int" >>confdefs.h+ ;;+esac+fi++# AC_TYPE_OFF_T defaults to "long", which limits us to 4GB files on+# most systems... default to "long long" instead.+ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"+if test "x$ac_cv_type_off_t" = xyes+then :++else case e in #(+ e)+printf '%s\n' "#define off_t long long" >>confdefs.h+ ;;+esac+fi++ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"+if test "x$ac_cv_type_size_t" = xyes+then :++else case e in #(+ e)+printf '%s\n' "#define size_t unsigned int" >>confdefs.h+ ;;+esac+fi++ac_fn_c_check_type "$LINENO" "id_t" "ac_cv_type_id_t" "$ac_includes_default"+if test "x$ac_cv_type_id_t" = xyes+then :++else case e in #(+ e)+printf '%s\n' "#define id_t unsigned long" >>confdefs.h+ ;;+esac+fi++ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"+if test "x$ac_cv_type_uintptr_t" = xyes+then :++else case e in #(+ e)+printf '%s\n' "#define uintptr_t unsigned int" >>confdefs.h+ ;;+esac+fi+++# Check for tm_gmtoff in struct tm+ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "+#include <time.h>++"+if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes+then :++printf '%s\n' "#define HAVE_STRUCT_TM_TM_GMTOFF 1" >>confdefs.h+++fi+ac_fn_c_check_member "$LINENO" "struct tm" "__tm_gmtoff" "ac_cv_member_struct_tm___tm_gmtoff" "+#include <time.h>++"+if test "x$ac_cv_member_struct_tm___tm_gmtoff" = xyes+then :++printf '%s\n' "#define HAVE_STRUCT_TM___TM_GMTOFF 1" >>confdefs.h+++fi+++# Check for f_namemax in struct statfs+ac_fn_c_check_member "$LINENO" "struct statfs" "f_namemax" "ac_cv_member_struct_statfs_f_namemax" "+#include <sys/param.h>+#include <sys/mount.h>++"+if test "x$ac_cv_member_struct_statfs_f_namemax" = xyes+then :++printf '%s\n' "#define HAVE_STRUCT_STATFS_F_NAMEMAX 1" >>confdefs.h+++fi+++# Check for f_iosize in struct statfs+ac_fn_c_check_member "$LINENO" "struct statfs" "f_iosize" "ac_cv_member_struct_statfs_f_iosize" "+#include <sys/param.h>+#include <sys/mount.h>++"+if test "x$ac_cv_member_struct_statfs_f_iosize" = xyes+then :++printf '%s\n' "#define HAVE_STRUCT_STATFS_F_IOSIZE 1" >>confdefs.h+++fi+++# Check for f_iosize in struct statvfs+ac_fn_c_check_member "$LINENO" "struct statvfs" "f_iosize" "ac_cv_member_struct_statvfs_f_iosize" "+#include <sys/statvfs.h>++"+if test "x$ac_cv_member_struct_statvfs_f_iosize" = xyes+then :++printf '%s\n' "#define HAVE_STRUCT_STATVFS_F_IOSIZE 1" >>confdefs.h+++fi+++# Check for birthtime in struct stat+ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"+if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes+then :++printf '%s\n' "#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1" >>confdefs.h+++fi+++# Check for high-resolution timestamps in struct stat+ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec.tv_nsec" "ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" "$ac_includes_default"+if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes+then :++printf '%s\n' "#define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1" >>confdefs.h+++fi++ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec.tv_nsec" "ac_cv_member_struct_stat_st_mtimespec_tv_nsec" "$ac_includes_default"+if test "x$ac_cv_member_struct_stat_st_mtimespec_tv_nsec" = xyes+then :++printf '%s\n' "#define HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC 1" >>confdefs.h+++fi++ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "$ac_includes_default"+if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes+then :++printf '%s\n' "#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1" >>confdefs.h+++fi++ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime_n" "ac_cv_member_struct_stat_st_mtime_n" "$ac_includes_default"+if test "x$ac_cv_member_struct_stat_st_mtime_n" = xyes+then :++printf '%s\n' "#define HAVE_STRUCT_STAT_ST_MTIME_N 1" >>confdefs.h+++fi+ # AIX+ac_fn_c_check_member "$LINENO" "struct stat" "st_umtime" "ac_cv_member_struct_stat_st_umtime" "$ac_includes_default"+if test "x$ac_cv_member_struct_stat_st_umtime" = xyes+then :++printf '%s\n' "#define HAVE_STRUCT_STAT_ST_UMTIME 1" >>confdefs.h+++fi+ # Tru64+ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime_usec" "ac_cv_member_struct_stat_st_mtime_usec" "$ac_includes_default"+if test "x$ac_cv_member_struct_stat_st_mtime_usec" = xyes+then :++printf '%s\n' "#define HAVE_STRUCT_STAT_ST_MTIME_USEC 1" >>confdefs.h+++fi+ # Hurd+# Check for block size support in struct stat+ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"+if test "x$ac_cv_member_struct_stat_st_blksize" = xyes+then :++printf '%s\n' "#define HAVE_STRUCT_STAT_ST_BLKSIZE 1" >>confdefs.h+++fi++# Check for st_flags in struct stat (BSD fflags)+ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default"+if test "x$ac_cv_member_struct_stat_st_flags" = xyes+then :++printf '%s\n' "#define HAVE_STRUCT_STAT_ST_FLAGS 1" >>confdefs.h+++fi+++# If you have uintmax_t, we assume printf supports %ju+# If you have unsigned long long, we assume printf supports %llu+# TODO: Check for %ju and %llu support directly.+ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"+if test "x$ac_cv_type_uintmax_t" = xyes+then :++printf '%s\n' "#define HAVE_UINTMAX_T 1" >>confdefs.h+++fi+ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"+if test "x$ac_cv_type_unsigned_long_long" = xyes+then :++printf '%s\n' "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h+++fi+++# We use C99-style integer types+# Declare them if the local platform doesn't already do so.++ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5+printf %s "checking for unsigned long long int... " >&6; }+if test ${ac_cv_type_unsigned_long_long_int+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) ac_cv_type_unsigned_long_long_int=yes+ case $ac_prog_cc_stdc in+ no | c89)+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */++ /* For now, do not test the preprocessor; as of 2007 there are too many+ implementations with broken preprocessors. Perhaps this can+ be revisited in 2012. In the meantime, code should not expect+ #if to work with literals wider than 32 bits. */+ /* Test literals. */+ long long int ll = 9223372036854775807ll;+ long long int nll = -9223372036854775807LL;+ unsigned long long int ull = 18446744073709551615ULL;+ /* Test constant expressions. */+ typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)+ ? 1 : -1)];+ typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1+ ? 1 : -1)];+ int i = 63;+int+main (void)+{+/* Test availability of runtime routines for shift and division. */+ long long int llmax = 9223372036854775807ll;+ unsigned long long int ullmax = 18446744073709551615ull;+ return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)+ | (llmax / ll) | (llmax % ll)+ | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)+ | (ullmax / ull) | (ullmax % ull));+ ;+ return 0;+}++_ACEOF+if ac_fn_c_try_link "$LINENO"+then :++else case e in #(+ e) ac_cv_type_unsigned_long_long_int=no ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam \+ conftest$ac_exeext conftest.$ac_ext;;+ esac ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5+printf '%s\n' "$ac_cv_type_unsigned_long_long_int" >&6; }+ if test $ac_cv_type_unsigned_long_long_int = yes; then++printf '%s\n' "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h++ fi++++ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5+printf %s "checking for long long int... " >&6; }+if test ${ac_cv_type_long_long_int+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) ac_cv_type_long_long_int=yes+ case $ac_prog_cc_stdc in+ no | c89)+ ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int+ if test $ac_cv_type_long_long_int = yes; then+ if test "$cross_compiling" = yes+then :+ :+else case e in #(+ e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */+#include <limits.h>+ #ifndef LLONG_MAX+ # define HALF \\+ (1LL << (sizeof (long long int) * CHAR_BIT - 2))+ # define LLONG_MAX (HALF - 1 + HALF)+ #endif+int+main (void)+{+long long int n = 1;+ int i;+ for (i = 0; ; i++)+ {+ long long int m = n << i;+ if (m >> i != n)+ return 1;+ if (LLONG_MAX / 2 < m)+ break;+ }+ return 0;+ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_run "$LINENO"+then :++else case e in #(+ e) ac_cv_type_long_long_int=no ;;+esac+fi+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \+ conftest.$ac_objext conftest.beam conftest.$ac_ext ;;+esac+fi++ fi;;+ esac ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5+printf '%s\n' "$ac_cv_type_long_long_int" >&6; }+ if test $ac_cv_type_long_long_int = yes; then++printf '%s\n' "#define HAVE_LONG_LONG_INT 1" >>confdefs.h++ fi++++ ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"+if test "x$ac_cv_type_intmax_t" = xyes+then :++printf '%s\n' "#define HAVE_INTMAX_T 1" >>confdefs.h++else case e in #(+ e) test $ac_cv_type_long_long_int = yes \+ && ac_type='long long int' \+ || ac_type='long int'++printf '%s\n' "#define intmax_t $ac_type" >>confdefs.h+ ;;+esac+fi+++++ ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"+if test "x$ac_cv_type_uintmax_t" = xyes+then :++printf '%s\n' "#define HAVE_UINTMAX_T 1" >>confdefs.h++else case e in #(+ e) test $ac_cv_type_unsigned_long_long_int = yes \+ && ac_type='unsigned long long int' \+ || ac_type='unsigned long int'++printf '%s\n' "#define uintmax_t $ac_type" >>confdefs.h+ ;;+esac+fi+++ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"+case $ac_cv_c_int64_t in #(+ no|yes) ;; #(+ *)++printf '%s\n' "#define int64_t $ac_cv_c_int64_t" >>confdefs.h+;;+esac++ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"+case $ac_cv_c_uint64_t in #(+ no|yes) ;; #(+ *)++printf '%s\n' "#define _UINT64_T 1" >>confdefs.h+++printf '%s\n' "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h+;;+ esac++ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"+case $ac_cv_c_int32_t in #(+ no|yes) ;; #(+ *)++printf '%s\n' "#define int32_t $ac_cv_c_int32_t" >>confdefs.h+;;+esac++ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"+case $ac_cv_c_uint32_t in #(+ no|yes) ;; #(+ *)++printf '%s\n' "#define _UINT32_T 1" >>confdefs.h+++printf '%s\n' "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h+;;+ esac++ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"+case $ac_cv_c_int16_t in #(+ no|yes) ;; #(+ *)++printf '%s\n' "#define int16_t $ac_cv_c_int16_t" >>confdefs.h+;;+esac++ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"+case $ac_cv_c_uint16_t in #(+ no|yes) ;; #(+ *)+++printf '%s\n' "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h+;;+ esac++ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"+case $ac_cv_c_uint8_t in #(+ no|yes) ;; #(+ *)++printf '%s\n' "#define _UINT8_T 1" >>confdefs.h+++printf '%s\n' "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h+;;+ esac+++{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC options to detect undeclared functions" >&5+printf %s "checking for $CC options to detect undeclared functions... " >&6; }+if test ${ac_cv_c_undeclared_builtin_options+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) ac_save_CFLAGS=$CFLAGS+ ac_cv_c_undeclared_builtin_options='cannot detect'+ for ac_arg in '' -fno-builtin; do+ CFLAGS="$ac_save_CFLAGS $ac_arg"+ # This test program should *not* compile successfully.+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */++int+main (void)+{+(void) strchr;+ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_compile "$LINENO"+then :++else case e in #(+ e) # This test program should compile successfully.+ # No library function is consistently available on+ # freestanding implementations, so test against a dummy+ # declaration. Include always-available headers on the+ # off chance that they somehow elicit warnings.+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */+#include <float.h>+#include <limits.h>+#include <stdarg.h>+#include <stddef.h>+extern void ac_decl (int, char *);++int+main (void)+{+(void) ac_decl (0, (char *) 0);+ (void) ac_decl;++ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_compile "$LINENO"+then :+ if test x"$ac_arg" = x+then :+ ac_cv_c_undeclared_builtin_options='none needed'+else case e in #(+ e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;+esac+fi+ break+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext+ done+ CFLAGS=$ac_save_CFLAGS+ ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5+printf '%s\n' "$ac_cv_c_undeclared_builtin_options" >&6; }+ case $ac_cv_c_undeclared_builtin_options in #(+ 'cannot detect') :+ { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5+printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}+as_fn_error $? "cannot make $CC report undeclared builtins+See 'config.log' for more details" "$LINENO" 5; } ;; #(+ 'none needed') :+ ac_c_undeclared_builtin_options='' ;; #(+ *) :+ ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;+esac++{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC options to ignore future-version functions" >&5+printf %s "checking for $CC options to ignore future-version functions... " >&6; }+if test ${ac_cv_c_future_darwin_options+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) ac_compile_saved="$ac_compile"+ ac_compile="$ac_compile -Werror=unguarded-availability-new"+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */+#if ! (defined __APPLE__ && defined __MACH__)+ #error "-Werror=unguarded-availability-new not needed here"+ #endif++int+main (void)+{++ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_compile "$LINENO"+then :+ ac_cv_c_future_darwin_options='-Werror=unguarded-availability-new'+else case e in #(+ e) ac_cv_c_future_darwin_options='none needed' ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext+ ac_compile="$ac_compile_saved"+ ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_future_darwin_options" >&5+printf '%s\n' "$ac_cv_c_future_darwin_options" >&6; }+ case $ac_cv_c_future_darwin_options in #(+ 'none needed') :+ ac_c_future_darwin_options='' ;; #(+ *) :+ ac_c_future_darwin_options=$ac_cv_c_future_darwin_options ;;+esac++ac_fn_check_decl "$LINENO" "SIZE_MAX" "ac_cv_have_decl_SIZE_MAX" "$ac_includes_default" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"+if test "x$ac_cv_have_decl_SIZE_MAX" = xyes+then :+ ac_have_decl=1+else case e in #(+ e) ac_have_decl=0 ;;+esac+fi+printf '%s\n' "#define HAVE_DECL_SIZE_MAX $ac_have_decl" >>confdefs.h+ac_fn_check_decl "$LINENO" "INT32_MAX" "ac_cv_have_decl_INT32_MAX" "$ac_includes_default" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"+if test "x$ac_cv_have_decl_INT32_MAX" = xyes+then :+ ac_have_decl=1+else case e in #(+ e) ac_have_decl=0 ;;+esac+fi+printf '%s\n' "#define HAVE_DECL_INT32_MAX $ac_have_decl" >>confdefs.h+ac_fn_check_decl "$LINENO" "INT32_MIN" "ac_cv_have_decl_INT32_MIN" "$ac_includes_default" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"+if test "x$ac_cv_have_decl_INT32_MIN" = xyes+then :+ ac_have_decl=1+else case e in #(+ e) ac_have_decl=0 ;;+esac+fi+printf '%s\n' "#define HAVE_DECL_INT32_MIN $ac_have_decl" >>confdefs.h++ac_fn_check_decl "$LINENO" "INT64_MAX" "ac_cv_have_decl_INT64_MAX" "$ac_includes_default" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"+if test "x$ac_cv_have_decl_INT64_MAX" = xyes+then :+ ac_have_decl=1+else case e in #(+ e) ac_have_decl=0 ;;+esac+fi+printf '%s\n' "#define HAVE_DECL_INT64_MAX $ac_have_decl" >>confdefs.h+ac_fn_check_decl "$LINENO" "INT64_MIN" "ac_cv_have_decl_INT64_MIN" "$ac_includes_default" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"+if test "x$ac_cv_have_decl_INT64_MIN" = xyes+then :+ ac_have_decl=1+else case e in #(+ e) ac_have_decl=0 ;;+esac+fi+printf '%s\n' "#define HAVE_DECL_INT64_MIN $ac_have_decl" >>confdefs.h+ac_fn_check_decl "$LINENO" "UINT64_MAX" "ac_cv_have_decl_UINT64_MAX" "$ac_includes_default" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"+if test "x$ac_cv_have_decl_UINT64_MAX" = xyes+then :+ ac_have_decl=1+else case e in #(+ e) ac_have_decl=0 ;;+esac+fi+printf '%s\n' "#define HAVE_DECL_UINT64_MAX $ac_have_decl" >>confdefs.h+ac_fn_check_decl "$LINENO" "UINT32_MAX" "ac_cv_have_decl_UINT32_MAX" "$ac_includes_default" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"+if test "x$ac_cv_have_decl_UINT32_MAX" = xyes+then :+ ac_have_decl=1+else case e in #(+ e) ac_have_decl=0 ;;+esac+fi+printf '%s\n' "#define HAVE_DECL_UINT32_MAX $ac_have_decl" >>confdefs.h++ac_fn_check_decl "$LINENO" "INTMAX_MAX" "ac_cv_have_decl_INTMAX_MAX" "$ac_includes_default" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"+if test "x$ac_cv_have_decl_INTMAX_MAX" = xyes+then :+ ac_have_decl=1+else case e in #(+ e) ac_have_decl=0 ;;+esac+fi+printf '%s\n' "#define HAVE_DECL_INTMAX_MAX $ac_have_decl" >>confdefs.h+ac_fn_check_decl "$LINENO" "INTMAX_MIN" "ac_cv_have_decl_INTMAX_MIN" "$ac_includes_default" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"+if test "x$ac_cv_have_decl_INTMAX_MIN" = xyes+then :+ ac_have_decl=1+else case e in #(+ e) ac_have_decl=0 ;;+esac+fi+printf '%s\n' "#define HAVE_DECL_INTMAX_MIN $ac_have_decl" >>confdefs.h+ac_fn_check_decl "$LINENO" "UINTMAX_MAX" "ac_cv_have_decl_UINTMAX_MAX" "$ac_includes_default" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"+if test "x$ac_cv_have_decl_UINTMAX_MAX" = xyes+then :+ ac_have_decl=1+else case e in #(+ e) ac_have_decl=0 ;;+esac+fi+printf '%s\n' "#define HAVE_DECL_UINTMAX_MAX $ac_have_decl" >>confdefs.h+++ac_fn_check_decl "$LINENO" "SSIZE_MAX" "ac_cv_have_decl_SSIZE_MAX" "#include <limits.h>+" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"+if test "x$ac_cv_have_decl_SSIZE_MAX" = xyes+then :++printf '%s\n' "#define HAVE_DECL_SSIZE_MAX 1" >>confdefs.h++fi++ac_fn_check_decl "$LINENO" "EFTYPE" "ac_cv_have_decl_EFTYPE" "#include <errno.h>+" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"+if test "x$ac_cv_have_decl_EFTYPE" = xyes+then :++printf '%s\n' "#define HAVE_EFTYPE 1" >>confdefs.h++fi+ac_fn_check_decl "$LINENO" "EILSEQ" "ac_cv_have_decl_EILSEQ" "#include <errno.h>+" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"+if test "x$ac_cv_have_decl_EILSEQ" = xyes+then :++printf '%s\n' "#define HAVE_EILSEQ 1" >>confdefs.h++fi+ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"+if test "x$ac_cv_type_wchar_t" = xyes+then :++printf '%s\n' "#define HAVE_WCHAR_T 1" >>confdefs.h+ # The cast to long int works around a bug in the HP C Compiler+# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects+# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.+# This bug is HP SR number 8606223364.+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5+printf %s "checking size of wchar_t... " >&6; }+if test ${ac_cv_sizeof_wchar_t+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "$ac_includes_default"+then :++else case e in #(+ e) ac_cv_sizeof_wchar_t=0 ;;+esac+fi+ ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5+printf '%s\n' "$ac_cv_sizeof_wchar_t" >&6; }++++printf '%s\n' "#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t" >>confdefs.h+++fi+++{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking size of int" >&5+printf %s "checking size of int... " >&6; }+if test ${ac_cv_sizeof_int+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */++#include <sys/types.h>+++int+main (void)+{+switch (0) case 0: case (sizeof (int) == $ac_size):;+ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_compile "$LINENO"+then :+ ac_cv_sizeof_int=$ac_size+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext+ if test x$ac_cv_sizeof_int != x ; then break; fi+done+ ;;+esac+fi++if test x$ac_cv_sizeof_int = x ; then+ as_fn_error $? "cannot determine a size for int" "$LINENO" 5+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5+printf '%s\n' "$ac_cv_sizeof_int" >&6; }++printf '%s\n' "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h+++{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking size of long" >&5+printf %s "checking size of long... " >&6; }+if test ${ac_cv_sizeof_long+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */++#include <sys/types.h>+++int+main (void)+{+switch (0) case 0: case (sizeof (long) == $ac_size):;+ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_compile "$LINENO"+then :+ ac_cv_sizeof_long=$ac_size+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext+ if test x$ac_cv_sizeof_long != x ; then break; fi+done+ ;;+esac+fi++if test x$ac_cv_sizeof_long = x ; then+ as_fn_error $? "cannot determine a size for long" "$LINENO" 5+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5+printf '%s\n' "$ac_cv_sizeof_long" >&6; }++printf '%s\n' "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h+++++++# Checks for library functions.++ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"+if test "x$ac_cv_header_sys_mkdev_h" = xyes+then :++printf '%s\n' "#define MAJOR_IN_MKDEV 1" >>confdefs.h++fi++if test $ac_cv_header_sys_mkdev_h = no; then+ ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"+if test "x$ac_cv_header_sys_sysmacros_h" = xyes+then :++printf '%s\n' "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h++fi++fi++{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for declarations of fseeko and ftello" >&5+printf %s "checking for declarations of fseeko and ftello... " >&6; }+if test ${ac_cv_func_fseeko_ftello+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */++#if defined __hpux && !defined _LARGEFILE_SOURCE+# include <limits.h>+# if LONG_MAX >> 31 == 0+# error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"+# endif+#endif+#include <sys/types.h> /* for off_t */+#include <stdio.h>++int+main (void)+{++ int (*fp1) (FILE *, off_t, int) = fseeko;+ off_t (*fp2) (FILE *) = ftello;+ return fseeko (stdin, 0, 0)+ && fp1 (stdin, 0, 0)+ && ftello (stdin) >= 0+ && fp2 (stdin) >= 0;++ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_compile "$LINENO"+then :+ ac_cv_func_fseeko_ftello=yes+else case e in #(+ e) ac_save_CPPFLAGS="$CPPFLAGS"+ CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE=1"+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */++#if defined __hpux && !defined _LARGEFILE_SOURCE+# include <limits.h>+# if LONG_MAX >> 31 == 0+# error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"+# endif+#endif+#include <sys/types.h> /* for off_t */+#include <stdio.h>++int+main (void)+{++ int (*fp1) (FILE *, off_t, int) = fseeko;+ off_t (*fp2) (FILE *) = ftello;+ return fseeko (stdin, 0, 0)+ && fp1 (stdin, 0, 0)+ && ftello (stdin) >= 0+ && fp2 (stdin) >= 0;++ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_compile "$LINENO"+then :+ ac_cv_func_fseeko_ftello="need _LARGEFILE_SOURCE"+else case e in #(+ e) ac_cv_func_fseeko_ftello=no ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fseeko_ftello" >&5+printf '%s\n' "$ac_cv_func_fseeko_ftello" >&6; }+if test "$ac_cv_func_fseeko_ftello" != no+then :++printf '%s\n' "#define HAVE_FSEEKO 1" >>confdefs.h++fi+if test "$ac_cv_func_fseeko_ftello" = "need _LARGEFILE_SOURCE"+then :++printf '%s\n' "#define _LARGEFILE_SOURCE 1" >>confdefs.h++fi++{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5+printf %s "checking for working memcmp... " >&6; }+if test ${ac_cv_func_memcmp_working+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test "$cross_compiling" = yes+then :+ ac_cv_func_memcmp_working=no+else case e in #(+ e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */+$ac_includes_default+int+main (void)+{++ /* Some versions of memcmp are not 8-bit clean. */+ char c0 = '\100', c1 = '\200', c2 = '\201';+ if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)+ return 1;++ /* The Next x86 OpenStep bug shows up only when comparing 16 bytes+ or more and with at least one buffer not starting on a 4-byte boundary.+ William Lewis provided this test program. */+ {+ char foo[21];+ char bar[21];+ int i;+ for (i = 0; i < 4; i++)+ {+ char *a = foo + i;+ char *b = bar + i;+ strcpy (a, "--------01111111");+ strcpy (b, "--------10000000");+ if (memcmp (a, b, 16) >= 0)+ return 1;+ }+ return 0;+ }++ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_run "$LINENO"+then :+ ac_cv_func_memcmp_working=yes+else case e in #(+ e) ac_cv_func_memcmp_working=no ;;+esac+fi+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \+ conftest.$ac_objext conftest.beam conftest.$ac_ext ;;+esac+fi+ ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5+printf '%s\n' "$ac_cv_func_memcmp_working" >&6; }+test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in+ *" memcmp.$ac_objext "* ) ;;+ *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"+ ;;+esac+++{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5+printf %s "checking whether lstat correctly handles trailing slash... " >&6; }+if test ${ac_cv_func_lstat_dereferences_slashed_symlink+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) rm -f conftest.sym conftest.file+echo >conftest.file+if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then+ if test "$cross_compiling" = yes+then :+ case "$host_os" in # ((+ # Guess yes on glibc systems.+ *-gnu*) ac_cv_func_lstat_dereferences_slashed_symlink=yes ;;+ # If we don't know, assume the worst.+ *) ac_cv_func_lstat_dereferences_slashed_symlink=no ;;+ esac+else case e in #(+ e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */+$ac_includes_default+int+main (void)+{+struct stat sbuf;+ /* Linux will dereference the symlink and fail, as required by POSIX.+ That is better in the sense that it means we will not+ have to compile and use the lstat wrapper. */+ return lstat ("conftest.sym/", &sbuf) == 0;+ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_run "$LINENO"+then :+ ac_cv_func_lstat_dereferences_slashed_symlink=yes+else case e in #(+ e) ac_cv_func_lstat_dereferences_slashed_symlink=no ;;+esac+fi+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \+ conftest.$ac_objext conftest.beam conftest.$ac_ext ;;+esac+fi++else+ # If the 'ln -s' command failed, then we probably don't even+ # have an lstat function.+ ac_cv_func_lstat_dereferences_slashed_symlink=no+fi+rm -f conftest.sym conftest.file+ ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5+printf '%s\n' "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }++test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&++printf '%s\n' "#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1" >>confdefs.h+++if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then+ case " $LIBOBJS " in+ *" lstat.$ac_objext "* ) ;;+ *) LIBOBJS="$LIBOBJS lstat.$ac_objext"+ ;;+esac++fi++{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5+printf %s "checking whether lstat accepts an empty string... " >&6; }+if test ${ac_cv_func_lstat_empty_string_bug+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test "$cross_compiling" = yes+then :+ ac_cv_func_lstat_empty_string_bug=yes+else case e in #(+ e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */+$ac_includes_default+int+main (void)+{+struct stat sbuf;+ return lstat ("", &sbuf) == 0;+ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_run "$LINENO"+then :+ ac_cv_func_lstat_empty_string_bug=no+else case e in #(+ e) ac_cv_func_lstat_empty_string_bug=yes ;;+esac+fi+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \+ conftest.$ac_objext conftest.beam conftest.$ac_ext ;;+esac+fi+ ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5+printf '%s\n' "$ac_cv_func_lstat_empty_string_bug" >&6; }+if test $ac_cv_func_lstat_empty_string_bug = yes; then+ case " $LIBOBJS " in+ *" lstat.$ac_objext "* ) ;;+ *) LIBOBJS="$LIBOBJS lstat.$ac_objext"+ ;;+esac+++printf '%s\n' "#define HAVE_LSTAT_EMPTY_STRING_BUG 1" >>confdefs.h++fi++{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5+printf %s "checking whether stat accepts an empty string... " >&6; }+if test ${ac_cv_func_stat_empty_string_bug+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) if test "$cross_compiling" = yes+then :+ ac_cv_func_stat_empty_string_bug=yes+else case e in #(+ e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */+$ac_includes_default+int+main (void)+{+struct stat sbuf;+ return stat ("", &sbuf) == 0;+ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_run "$LINENO"+then :+ ac_cv_func_stat_empty_string_bug=no+else case e in #(+ e) ac_cv_func_stat_empty_string_bug=yes ;;+esac+fi+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \+ conftest.$ac_objext conftest.beam conftest.$ac_ext ;;+esac+fi+ ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5+printf '%s\n' "$ac_cv_func_stat_empty_string_bug" >&6; }+if test $ac_cv_func_stat_empty_string_bug = yes; then+ case " $LIBOBJS " in+ *" stat.$ac_objext "* ) ;;+ *) LIBOBJS="$LIBOBJS stat.$ac_objext"+ ;;+esac+++printf '%s\n' "#define HAVE_STAT_EMPTY_STRING_BUG 1" >>confdefs.h++fi++ac_fn_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"+if test "x$ac_cv_have_decl_strerror_r" = xyes+then :+ ac_have_decl=1+else case e in #(+ e) ac_have_decl=0 ;;+esac+fi+printf '%s\n' "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h+++if test $ac_cv_have_decl_strerror_r = yes; then+ # For backward compatibility's sake, define HAVE_STRERROR_R.+ # (We used to run AC_CHECK_FUNCS_ONCE for strerror_r, as well+ # as AC_CHECK_DECLS_ONCE.)++printf '%s\n' "#define HAVE_STRERROR_R 1" >>confdefs.h++fi++{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5+printf %s "checking whether strerror_r returns char *... " >&6; }+if test ${ac_cv_func_strerror_r_char_p+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e)+ ac_cv_func_strerror_r_char_p=no+ if test $ac_cv_have_decl_strerror_r = yes; then+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */+#include <string.h>+int+main (void)+{++ char buf[100];+ char x = *strerror_r (0, buf, sizeof buf);+ char *p = strerror_r (0, buf, sizeof buf);+ return !p || x;++ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_compile "$LINENO"+then :+ ac_cv_func_strerror_r_char_p=yes+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext++ fi+ ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5+printf '%s\n' "$ac_cv_func_strerror_r_char_p" >&6; }+if test $ac_cv_func_strerror_r_char_p = yes; then++printf '%s\n' "#define STRERROR_R_CHAR_P 1" >>confdefs.h++fi+++ for ac_func in strftime+do :+ ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"+if test "x$ac_cv_func_strftime" = xyes+then :+ printf '%s\n' "#define HAVE_STRFTIME 1" >>confdefs.h++else case e in #(+ e) # strftime is in -lintl on SCO UNIX.+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5+printf %s "checking for strftime in -lintl... " >&6; }+if test ${ac_cv_lib_intl_strftime+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) ac_check_lib_save_LIBS=$LIBS+LIBS="-lintl $LIBS"+cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */++/* Override any GCC internal prototype to avoid an error.+ Use char because int might match the return type of a GCC+ builtin and then its argument prototype would still apply.+ The 'extern "C"' is for builds by C++ compilers;+ although this is not generally supported in C code supporting it here+ has little cost and some practical benefit (sr 110532). */+#ifdef __cplusplus+extern "C"+#endif+char strftime (void);+int+main (void)+{+return strftime ();+ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_link "$LINENO"+then :+ ac_cv_lib_intl_strftime=yes+else case e in #(+ e) ac_cv_lib_intl_strftime=no ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam \+ conftest$ac_exeext conftest.$ac_ext+LIBS=$ac_check_lib_save_LIBS ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5+printf '%s\n' "$ac_cv_lib_intl_strftime" >&6; }+if test "x$ac_cv_lib_intl_strftime" = xyes+then :+ printf '%s\n' "#define HAVE_STRFTIME 1" >>confdefs.h++LIBS="-lintl $LIBS"+fi+ ;;+esac+fi++done+ac_func=+for ac_item in $ac_func_c_list+do+ if test $ac_func; then+ ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func+ if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then+ echo "#define $ac_item 1" >> confdefs.h+ fi+ ac_func=+ else+ ac_func=$ac_item+ fi+done++if test "x$ac_cv_func_vprintf" = xno+then :+ ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"+if test "x$ac_cv_func__doprnt" = xyes+then :++printf '%s\n' "#define HAVE_DOPRNT 1" >>confdefs.h++fi++fi+# check for:+# CreateHardLinkA(LPCSTR, LPCSTR, LPSECURITY_ATTRIBUTES)+# To avoid necessity for including windows.h or special forward declaration+# workarounds, we use 'void *' for 'struct SECURITY_ATTRIBUTES *'+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for CreateHardLinkA" >&5+printf %s "checking for CreateHardLinkA... " >&6; }+if test ${ac_cv_func_CreateHardLinkA+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */+/* System header to define __stub macros and hopefully few prototypes,+ which can conflict with char __stdcall CreateHardLinkA ( const char *, const char *, void * ) below. */+#include <assert.h>+/* Override any gcc2 internal prototype to avoid an error. */+#ifdef __cplusplus+extern "C"+#endif+/* We use char because int might match the return type of a gcc2+ builtin and then its argument prototype would still apply. */+char __stdcall CreateHardLinkA ( const char *, const char *, void * );+char (*f) ( const char *, const char *, void * );++int+main (void)+{+/* The GNU C library defines this for functions which it implements+ to always fail with ENOSYS. Some functions are actually named+ something starting with __ and the normal name is an alias. */+#if defined (__stub_CreateHardLinkA) || defined (__stub___CreateHardLinkA)+choke me+#else+f = CreateHardLinkA;+#endif++ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_link "$LINENO"+then :+ ac_cv_func_CreateHardLinkA=yes+else case e in #(+ e) ac_cv_func_CreateHardLinkA=no ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam \+ conftest$ac_exeext conftest.$ac_ext ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_CreateHardLinkA" >&5+printf '%s\n' "$ac_cv_func_CreateHardLinkA" >&6; }+if test $ac_cv_func_CreateHardLinkA = yes+then :++fi+ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf"+if test "x$ac_cv_func_arc4random_buf" = xyes+then :+ printf '%s\n' "#define HAVE_ARC4RANDOM_BUF 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"+if test "x$ac_cv_func_chflags" = xyes+then :+ printf '%s\n' "#define HAVE_CHFLAGS 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "chown" "ac_cv_func_chown"+if test "x$ac_cv_func_chown" = xyes+then :+ printf '%s\n' "#define HAVE_CHOWN 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot"+if test "x$ac_cv_func_chroot" = xyes+then :+ printf '%s\n' "#define HAVE_CHROOT 1" >>confdefs.h++fi++ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"+if test "x$ac_cv_func_closefrom" = xyes+then :+ printf '%s\n' "#define HAVE_CLOSEFROM 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "close_range" "ac_cv_func_close_range"+if test "x$ac_cv_func_close_range" = xyes+then :+ printf '%s\n' "#define HAVE_CLOSE_RANGE 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"+if test "x$ac_cv_func_ctime_r" = xyes+then :+ printf '%s\n' "#define HAVE_CTIME_R 1" >>confdefs.h++fi++ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"+if test "x$ac_cv_func_fchdir" = xyes+then :+ printf '%s\n' "#define HAVE_FCHDIR 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "fchflags" "ac_cv_func_fchflags"+if test "x$ac_cv_func_fchflags" = xyes+then :+ printf '%s\n' "#define HAVE_FCHFLAGS 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "fchmod" "ac_cv_func_fchmod"+if test "x$ac_cv_func_fchmod" = xyes+then :+ printf '%s\n' "#define HAVE_FCHMOD 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "fchown" "ac_cv_func_fchown"+if test "x$ac_cv_func_fchown" = xyes+then :+ printf '%s\n' "#define HAVE_FCHOWN 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"+if test "x$ac_cv_func_fcntl" = xyes+then :+ printf '%s\n' "#define HAVE_FCNTL 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "fdopendir" "ac_cv_func_fdopendir"+if test "x$ac_cv_func_fdopendir" = xyes+then :+ printf '%s\n' "#define HAVE_FDOPENDIR 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "fnmatch" "ac_cv_func_fnmatch"+if test "x$ac_cv_func_fnmatch" = xyes+then :+ printf '%s\n' "#define HAVE_FNMATCH 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"+if test "x$ac_cv_func_fork" = xyes+then :+ printf '%s\n' "#define HAVE_FORK 1" >>confdefs.h++fi++ac_fn_c_check_func "$LINENO" "fstat" "ac_cv_func_fstat"+if test "x$ac_cv_func_fstat" = xyes+then :+ printf '%s\n' "#define HAVE_FSTAT 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "fstatat" "ac_cv_func_fstatat"+if test "x$ac_cv_func_fstatat" = xyes+then :+ printf '%s\n' "#define HAVE_FSTATAT 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "fstatfs" "ac_cv_func_fstatfs"+if test "x$ac_cv_func_fstatfs" = xyes+then :+ printf '%s\n' "#define HAVE_FSTATFS 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "fstatvfs" "ac_cv_func_fstatvfs"+if test "x$ac_cv_func_fstatvfs" = xyes+then :+ printf '%s\n' "#define HAVE_FSTATVFS 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"+if test "x$ac_cv_func_ftruncate" = xyes+then :+ printf '%s\n' "#define HAVE_FTRUNCATE 1" >>confdefs.h++fi++ac_fn_c_check_func "$LINENO" "futimens" "ac_cv_func_futimens"+if test "x$ac_cv_func_futimens" = xyes+then :+ printf '%s\n' "#define HAVE_FUTIMENS 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "futimes" "ac_cv_func_futimes"+if test "x$ac_cv_func_futimes" = xyes+then :+ printf '%s\n' "#define HAVE_FUTIMES 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "futimesat" "ac_cv_func_futimesat"+if test "x$ac_cv_func_futimesat" = xyes+then :+ printf '%s\n' "#define HAVE_FUTIMESAT 1" >>confdefs.h++fi++ac_fn_c_check_func "$LINENO" "getegid" "ac_cv_func_getegid"+if test "x$ac_cv_func_getegid" = xyes+then :+ printf '%s\n' "#define HAVE_GETEGID 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"+if test "x$ac_cv_func_geteuid" = xyes+then :+ printf '%s\n' "#define HAVE_GETEUID 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"+if test "x$ac_cv_func_getline" = xyes+then :+ printf '%s\n' "#define HAVE_GETLINE 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "getpid" "ac_cv_func_getpid"+if test "x$ac_cv_func_getpid" = xyes+then :+ printf '%s\n' "#define HAVE_GETPID 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "getresgid" "ac_cv_func_getresgid"+if test "x$ac_cv_func_getresgid" = xyes+then :+ printf '%s\n' "#define HAVE_GETRESGID 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid"+if test "x$ac_cv_func_getresuid" = xyes+then :+ printf '%s\n' "#define HAVE_GETRESUID 1" >>confdefs.h++fi++ac_fn_c_check_func "$LINENO" "getgrgid_r" "ac_cv_func_getgrgid_r"+if test "x$ac_cv_func_getgrgid_r" = xyes+then :+ printf '%s\n' "#define HAVE_GETGRGID_R 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "getgrnam_r" "ac_cv_func_getgrnam_r"+if test "x$ac_cv_func_getgrnam_r" = xyes+then :+ printf '%s\n' "#define HAVE_GETGRNAM_R 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "getpwnam_r" "ac_cv_func_getpwnam_r"+if test "x$ac_cv_func_getpwnam_r" = xyes+then :+ printf '%s\n' "#define HAVE_GETPWNAM_R 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r"+if test "x$ac_cv_func_getpwuid_r" = xyes+then :+ printf '%s\n' "#define HAVE_GETPWUID_R 1" >>confdefs.h++fi++ac_fn_c_check_func "$LINENO" "getvfsbyname" "ac_cv_func_getvfsbyname"+if test "x$ac_cv_func_getvfsbyname" = xyes+then :+ printf '%s\n' "#define HAVE_GETVFSBYNAME 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"+if test "x$ac_cv_func_gmtime_r" = xyes+then :+ printf '%s\n' "#define HAVE_GMTIME_R 1" >>confdefs.h++fi++ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"+if test "x$ac_cv_func_issetugid" = xyes+then :+ printf '%s\n' "#define HAVE_ISSETUGID 1" >>confdefs.h++fi++ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags"+if test "x$ac_cv_func_lchflags" = xyes+then :+ printf '%s\n' "#define HAVE_LCHFLAGS 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "lchmod" "ac_cv_func_lchmod"+if test "x$ac_cv_func_lchmod" = xyes+then :+ printf '%s\n' "#define HAVE_LCHMOD 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "lchown" "ac_cv_func_lchown"+if test "x$ac_cv_func_lchown" = xyes+then :+ printf '%s\n' "#define HAVE_LCHOWN 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "link" "ac_cv_func_link"+if test "x$ac_cv_func_link" = xyes+then :+ printf '%s\n' "#define HAVE_LINK 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "linkat" "ac_cv_func_linkat"+if test "x$ac_cv_func_linkat" = xyes+then :+ printf '%s\n' "#define HAVE_LINKAT 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"+if test "x$ac_cv_func_localtime_r" = xyes+then :+ printf '%s\n' "#define HAVE_LOCALTIME_R 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "lstat" "ac_cv_func_lstat"+if test "x$ac_cv_func_lstat" = xyes+then :+ printf '%s\n' "#define HAVE_LSTAT 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "lutimes" "ac_cv_func_lutimes"+if test "x$ac_cv_func_lutimes" = xyes+then :+ printf '%s\n' "#define HAVE_LUTIMES 1" >>confdefs.h++fi++ac_fn_c_check_func "$LINENO" "mbrtowc" "ac_cv_func_mbrtowc"+if test "x$ac_cv_func_mbrtowc" = xyes+then :+ printf '%s\n' "#define HAVE_MBRTOWC 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"+if test "x$ac_cv_func_memmove" = xyes+then :+ printf '%s\n' "#define HAVE_MEMMOVE 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"+if test "x$ac_cv_func_memset" = xyes+then :+ printf '%s\n' "#define HAVE_MEMSET 1" >>confdefs.h++fi++ac_fn_c_check_func "$LINENO" "mkdir" "ac_cv_func_mkdir"+if test "x$ac_cv_func_mkdir" = xyes+then :+ printf '%s\n' "#define HAVE_MKDIR 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "mkfifo" "ac_cv_func_mkfifo"+if test "x$ac_cv_func_mkfifo" = xyes+then :+ printf '%s\n' "#define HAVE_MKFIFO 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "mknod" "ac_cv_func_mknod"+if test "x$ac_cv_func_mknod" = xyes+then :+ printf '%s\n' "#define HAVE_MKNOD 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"+if test "x$ac_cv_func_mkstemp" = xyes+then :+ printf '%s\n' "#define HAVE_MKSTEMP 1" >>confdefs.h++fi++ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"+if test "x$ac_cv_func_nl_langinfo" = xyes+then :+ printf '%s\n' "#define HAVE_NL_LANGINFO 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat"+if test "x$ac_cv_func_openat" = xyes+then :+ printf '%s\n' "#define HAVE_OPENAT 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "pipe" "ac_cv_func_pipe"+if test "x$ac_cv_func_pipe" = xyes+then :+ printf '%s\n' "#define HAVE_PIPE 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"+if test "x$ac_cv_func_poll" = xyes+then :+ printf '%s\n' "#define HAVE_POLL 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn"+if test "x$ac_cv_func_posix_spawn" = xyes+then :+ printf '%s\n' "#define HAVE_POSIX_SPAWN 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "posix_spawnp" "ac_cv_func_posix_spawnp"+if test "x$ac_cv_func_posix_spawnp" = xyes+then :+ printf '%s\n' "#define HAVE_POSIX_SPAWNP 1" >>confdefs.h++fi++ac_fn_c_check_func "$LINENO" "readlink" "ac_cv_func_readlink"+if test "x$ac_cv_func_readlink" = xyes+then :+ printf '%s\n' "#define HAVE_READLINK 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "readlinkat" "ac_cv_func_readlinkat"+if test "x$ac_cv_func_readlinkat" = xyes+then :+ printf '%s\n' "#define HAVE_READLINKAT 1" >>confdefs.h++fi++ac_fn_c_check_func "$LINENO" "readpassphrase" "ac_cv_func_readpassphrase"+if test "x$ac_cv_func_readpassphrase" = xyes+then :+ printf '%s\n' "#define HAVE_READPASSPHRASE 1" >>confdefs.h++fi++ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"+if test "x$ac_cv_func_select" = xyes+then :+ printf '%s\n' "#define HAVE_SELECT 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"+if test "x$ac_cv_func_setenv" = xyes+then :+ printf '%s\n' "#define HAVE_SETENV 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"+if test "x$ac_cv_func_setlocale" = xyes+then :+ printf '%s\n' "#define HAVE_SETLOCALE 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"+if test "x$ac_cv_func_sigaction" = xyes+then :+ printf '%s\n' "#define HAVE_SIGACTION 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "statfs" "ac_cv_func_statfs"+if test "x$ac_cv_func_statfs" = xyes+then :+ printf '%s\n' "#define HAVE_STATFS 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "statvfs" "ac_cv_func_statvfs"+if test "x$ac_cv_func_statvfs" = xyes+then :+ printf '%s\n' "#define HAVE_STATVFS 1" >>confdefs.h++fi++ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"+if test "x$ac_cv_func_strchr" = xyes+then :+ printf '%s\n' "#define HAVE_STRCHR 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"+if test "x$ac_cv_func_strdup" = xyes+then :+ printf '%s\n' "#define HAVE_STRDUP 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"+if test "x$ac_cv_func_strerror" = xyes+then :+ printf '%s\n' "#define HAVE_STRERROR 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "strncpy_s" "ac_cv_func_strncpy_s"+if test "x$ac_cv_func_strncpy_s" = xyes+then :+ printf '%s\n' "#define HAVE_STRNCPY_S 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"+if test "x$ac_cv_func_strnlen" = xyes+then :+ printf '%s\n' "#define HAVE_STRNLEN 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"+if test "x$ac_cv_func_strrchr" = xyes+then :+ printf '%s\n' "#define HAVE_STRRCHR 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "symlink" "ac_cv_func_symlink"+if test "x$ac_cv_func_symlink" = xyes+then :+ printf '%s\n' "#define HAVE_SYMLINK 1" >>confdefs.h++fi++ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"+if test "x$ac_cv_func_sysconf" = xyes+then :+ printf '%s\n' "#define HAVE_SYSCONF 1" >>confdefs.h++fi++ac_fn_c_check_func "$LINENO" "tcgetattr" "ac_cv_func_tcgetattr"+if test "x$ac_cv_func_tcgetattr" = xyes+then :+ printf '%s\n' "#define HAVE_TCGETATTR 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "tcsetattr" "ac_cv_func_tcsetattr"+if test "x$ac_cv_func_tcsetattr" = xyes+then :+ printf '%s\n' "#define HAVE_TCSETATTR 1" >>confdefs.h++fi++ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"+if test "x$ac_cv_func_timegm" = xyes+then :+ printf '%s\n' "#define HAVE_TIMEGM 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset"+if test "x$ac_cv_func_tzset" = xyes+then :+ printf '%s\n' "#define HAVE_TZSET 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "unlinkat" "ac_cv_func_unlinkat"+if test "x$ac_cv_func_unlinkat" = xyes+then :+ printf '%s\n' "#define HAVE_UNLINKAT 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"+if test "x$ac_cv_func_unsetenv" = xyes+then :+ printf '%s\n' "#define HAVE_UNSETENV 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime"+if test "x$ac_cv_func_utime" = xyes+then :+ printf '%s\n' "#define HAVE_UTIME 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "utimensat" "ac_cv_func_utimensat"+if test "x$ac_cv_func_utimensat" = xyes+then :+ printf '%s\n' "#define HAVE_UTIMENSAT 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"+if test "x$ac_cv_func_utimes" = xyes+then :+ printf '%s\n' "#define HAVE_UTIMES 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "vfork" "ac_cv_func_vfork"+if test "x$ac_cv_func_vfork" = xyes+then :+ printf '%s\n' "#define HAVE_VFORK 1" >>confdefs.h++fi++ac_fn_c_check_func "$LINENO" "wcrtomb" "ac_cv_func_wcrtomb"+if test "x$ac_cv_func_wcrtomb" = xyes+then :+ printf '%s\n' "#define HAVE_WCRTOMB 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "wcscmp" "ac_cv_func_wcscmp"+if test "x$ac_cv_func_wcscmp" = xyes+then :+ printf '%s\n' "#define HAVE_WCSCMP 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "wcscpy" "ac_cv_func_wcscpy"+if test "x$ac_cv_func_wcscpy" = xyes+then :+ printf '%s\n' "#define HAVE_WCSCPY 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"+if test "x$ac_cv_func_wcslen" = xyes+then :+ printf '%s\n' "#define HAVE_WCSLEN 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "wctomb" "ac_cv_func_wctomb"+if test "x$ac_cv_func_wctomb" = xyes+then :+ printf '%s\n' "#define HAVE_WCTOMB 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "wmemcmp" "ac_cv_func_wmemcmp"+if test "x$ac_cv_func_wmemcmp" = xyes+then :+ printf '%s\n' "#define HAVE_WMEMCMP 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "wmemcpy" "ac_cv_func_wmemcpy"+if test "x$ac_cv_func_wmemcpy" = xyes+then :+ printf '%s\n' "#define HAVE_WMEMCPY 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "wmemmove" "ac_cv_func_wmemmove"+if test "x$ac_cv_func_wmemmove" = xyes+then :+ printf '%s\n' "#define HAVE_WMEMMOVE 1" >>confdefs.h++fi++ac_fn_c_check_func "$LINENO" "_fseeki64" "ac_cv_func__fseeki64"+if test "x$ac_cv_func__fseeki64" = xyes+then :+ printf '%s\n' "#define HAVE__FSEEKI64 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "_get_timezone" "ac_cv_func__get_timezone"+if test "x$ac_cv_func__get_timezone" = xyes+then :+ printf '%s\n' "#define HAVE__GET_TIMEZONE 1" >>confdefs.h++fi++ac_fn_check_decl "$LINENO" "cmtime_s" "ac_cv_have_decl_cmtime_s" "#include <time.h>+" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"+if test "x$ac_cv_have_decl_cmtime_s" = xyes+then :++printf '%s\n' "#define HAVE_CMTIME_S 1" >>confdefs.h++fi+ac_fn_check_decl "$LINENO" "gmtime_s" "ac_cv_have_decl_gmtime_s" "#include <time.h>+" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"+if test "x$ac_cv_have_decl_gmtime_s" = xyes+then :++printf '%s\n' "#define HAVE_GMTIME_S 1" >>confdefs.h++fi+ac_fn_c_check_type "$LINENO" "localtime_s" "ac_cv_type_localtime_s" "#include <time.h>+"+if test "x$ac_cv_type_localtime_s" = xyes+then :++printf '%s\n' "#define HAVE_LOCALTIME_S 1" >>confdefs.h++fi++ac_fn_check_decl "$LINENO" "_mkgmtime" "ac_cv_have_decl__mkgmtime" "#include <time.h>+" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"+if test "x$ac_cv_have_decl__mkgmtime" = xyes+then :++printf '%s\n' "#define HAVE__MKGMTIME 1" >>confdefs.h++fi++# detects cygwin-1.7, as opposed to older versions+ac_fn_c_check_func "$LINENO" "cygwin_conv_path" "ac_cv_func_cygwin_conv_path"+if test "x$ac_cv_func_cygwin_conv_path" = xyes+then :+ printf '%s\n' "#define HAVE_CYGWIN_CONV_PATH 1" >>confdefs.h++fi+++# DragonFly uses vfsconf, FreeBSD xvfsconf.+ac_fn_c_check_type "$LINENO" "struct vfsconf" "ac_cv_type_struct_vfsconf" "#if HAVE_SYS_TYPES_H+ #include <sys/types.h>+ #endif+ #include <sys/mount.h>++"+if test "x$ac_cv_type_struct_vfsconf" = xyes+then :++printf '%s\n' "#define HAVE_STRUCT_VFSCONF 1" >>confdefs.h+++fi+++ac_fn_c_check_type "$LINENO" "struct xvfsconf" "ac_cv_type_struct_xvfsconf" "#if HAVE_SYS_TYPES_H+ #include <sys/types.h>+ #endif+ #include <sys/mount.h>++"+if test "x$ac_cv_type_struct_xvfsconf" = xyes+then :++printf '%s\n' "#define HAVE_STRUCT_XVFSCONF 1" >>confdefs.h+++fi+++ac_fn_c_check_type "$LINENO" "struct statfs" "ac_cv_type_struct_statfs" "#if HAVE_SYS_TYPES_H+ #include <sys/types.h>+ #endif+ #include <sys/mount.h>++"+if test "x$ac_cv_type_struct_statfs" = xyes+then :++printf '%s\n' "#define HAVE_STRUCT_STATFS 1" >>confdefs.h+++fi+++# dirfd can be either a function or a macro.+cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */+#include <dirent.h>+ DIR *dir;+int+main (void)+{+return(dirfd(dir));+ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_link "$LINENO"+then :++printf '%s\n' "#define HAVE_DIRFD 1" >>confdefs.h+++fi+rm -f core conftest.err conftest.$ac_objext conftest.beam \+ conftest$ac_exeext conftest.$ac_ext++# FreeBSD's nl_langinfo supports an option to specify whether the+# current locale uses month/day or day/month ordering. It makes the+# output a little prettier...+ac_fn_check_decl "$LINENO" "D_MD_ORDER" "ac_cv_have_decl_D_MD_ORDER" "#if HAVE_LANGINFO_H+#include <langinfo.h>+#endif++" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"+if test "x$ac_cv_have_decl_D_MD_ORDER" = xyes+then :++printf '%s\n' "#define HAVE_D_MD_ORDER 1" >>confdefs.h++fi++# Check for dirent.d_namlen field explicitly+# (This is a bit more straightforward than, if not quite as portable as,+# the recipe given by the autoconf maintainers.)+ac_fn_c_check_member "$LINENO" "struct dirent" "d_namlen" "ac_cv_member_struct_dirent_d_namlen" "#if HAVE_DIRENT_H+#include <dirent.h>+#endif++"+if test "x$ac_cv_member_struct_dirent_d_namlen" = xyes+then :++fi+++# Check for Extended Attributes support+# Check whether --enable-xattr was given.+if test ${enable_xattr+y}+then :+ enableval=$enable_xattr;+fi+++if test "x$enable_xattr" = "xyes" || test "$CABAL_FLAG_xattr" = 1; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for library containing setxattr" >&5+printf %s "checking for library containing setxattr... " >&6; }+if test ${ac_cv_search_setxattr+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) ac_func_search_save_LIBS=$LIBS+cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */++/* Override any GCC internal prototype to avoid an error.+ Use char because int might match the return type of a GCC+ builtin and then its argument prototype would still apply.+ The 'extern "C"' is for builds by C++ compilers;+ although this is not generally supported in C code supporting it here+ has little cost and some practical benefit (sr 110532). */+#ifdef __cplusplus+extern "C"+#endif+char setxattr (void);+int+main (void)+{+return setxattr ();+ ;+ return 0;+}+_ACEOF+for ac_lib in '' attr gnu+do+ if test -z "$ac_lib"; then+ ac_res="none required"+ else+ ac_res=-l$ac_lib+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"+ fi+ if ac_fn_c_try_link "$LINENO"+then :+ ac_cv_search_setxattr=$ac_res+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam \+ conftest$ac_exeext+ if test ${ac_cv_search_setxattr+y}+then :+ break+fi+done+if test ${ac_cv_search_setxattr+y}+then :++else case e in #(+ e) ac_cv_search_setxattr=no ;;+esac+fi+rm conftest.$ac_ext+LIBS=$ac_func_search_save_LIBS ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setxattr" >&5+printf '%s\n' "$ac_cv_search_setxattr" >&6; }+ac_res=$ac_cv_search_setxattr+if test "$ac_res" != no+then :+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"++fi++ ac_fn_check_decl "$LINENO" "EXTATTR_NAMESPACE_USER" "ac_cv_have_decl_EXTATTR_NAMESPACE_USER" "#include <sys/types.h>+#include <sys/extattr.h>++" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"+if test "x$ac_cv_have_decl_EXTATTR_NAMESPACE_USER" = xyes+then :+ ac_have_decl=1+else case e in #(+ e) ac_have_decl=0 ;;+esac+fi+printf '%s\n' "#define HAVE_DECL_EXTATTR_NAMESPACE_USER $ac_have_decl" >>confdefs.h++ ac_fn_check_decl "$LINENO" "XATTR_NOFOLLOW" "ac_cv_have_decl_XATTR_NOFOLLOW" "#include <sys/xattr.h>++" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"+if test "x$ac_cv_have_decl_XATTR_NOFOLLOW" = xyes+then :+ ac_have_decl=1+else case e in #(+ e) ac_have_decl=0 ;;+esac+fi+printf '%s\n' "#define HAVE_DECL_XATTR_NOFOLLOW $ac_have_decl" >>confdefs.h++ ATTR_PC_VER=`$PKG_CONFIG --modversion libattr`+ if test "x$ATTR_PC_VER" != "x"; then++printf '%s\n' "#define LIBATTR_PKGCONFIG_VERSION \"$ATTR_PC_VER\"" >>confdefs.h++ fi+ if test "x$ac_cv_header_sys_xattr_h" = "xyes" \+ -a "x$ac_cv_have_decl_XATTR_NOFOLLOW" = "xyes"; then+ # Darwin extended attributes support+ if test ${ac_cv_archive_xattr_darwin+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e)+ for ac_func in fgetxattr flistxattr fsetxattr getxattr listxattr setxattr+do :+ as_ac_var=`printf '%s\n' "ac_cv_func_$ac_func" | sed "$as_sed_sh"`+ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"+if eval test \"x\$"$as_ac_var"\" = x"yes"+then :+ cat >>confdefs.h <<_ACEOF+#define `printf '%s\n' "HAVE_$ac_func" | sed "$as_sed_cpp"` 1+_ACEOF+ ac_cv_archive_xattr_darwin=yes+else case e in #(+ e) ac_cv_archive_xattr_darwin=no ;;+esac+fi++done++ ;;+esac+fi++ elif test "x$ac_cv_header_sys_extattr_h" = "xyes" \+ -a "x$ac_cv_have_decl_EXTATTR_NAMESPACE_USER" = "xyes"; then+ # FreeBSD extended attributes support+ if test ${ac_cv_archive_xattr_freebsd+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e)+ for ac_func in extattr_get_fd extattr_get_file extattr_get_link extattr_list_fd extattr_list_file extattr_list_link extattr_set_fd extattr_set_link+do :+ as_ac_var=`printf '%s\n' "ac_cv_func_$ac_func" | sed "$as_sed_sh"`+ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"+if eval test \"x\$"$as_ac_var"\" = x"yes"+then :+ cat >>confdefs.h <<_ACEOF+#define `printf '%s\n' "HAVE_$ac_func" | sed "$as_sed_cpp"` 1+_ACEOF+ ac_cv_archive_xattr_freebsd=yes+else case e in #(+ e) ac_cv_archive_xattr_freebsd=no ;;+esac+fi++done++ ;;+esac+fi++ elif test "x$ac_cv_header_sys_xattr_h" = "xyes" \+ -o "x$ac_cv_header_attr_xattr_h" = "xyes"; then+ # Linux extended attributes support+ if test ${ac_cv_archive_xattr_linux+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e)+ for ac_func in fgetxattr flistxattr fsetxattr getxattr lgetxattr listxattr llistxattr lsetxattr+do :+ as_ac_var=`printf '%s\n' "ac_cv_func_$ac_func" | sed "$as_sed_sh"`+ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"+if eval test \"x\$"$as_ac_var"\" = x"yes"+then :+ cat >>confdefs.h <<_ACEOF+#define `printf '%s\n' "HAVE_$ac_func" | sed "$as_sed_cpp"` 1+_ACEOF+ ac_cv_archive_xattr_linux=yes+else case e in #(+ e) ac_cv_archive_xattr_linux=no ;;+esac+fi++done++ ;;+esac+fi++ elif test "x$ac_cv_header_sys_ea_h" = "xyes"; then+ # AIX extended attributes support+ if test ${ac_cv_archive_xattr_aix+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e)+ for ac_func in fgetea flistea fsetea getea lgetea listea llistea lsetea+do :+ as_ac_var=`printf '%s\n' "ac_cv_func_$ac_func" | sed "$as_sed_sh"`+ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"+if eval test \"x\$"$as_ac_var"\" = x"yes"+then :+ cat >>confdefs.h <<_ACEOF+#define `printf '%s\n' "HAVE_$ac_func" | sed "$as_sed_cpp"` 1+_ACEOF+ ac_cv_archive_xattr_aix=yes+else case e in #(+ e) ac_cv_archive_xattr_aix=no ;;+esac+fi++done++ ;;+esac+fi++ fi++ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for extended attributes support" >&5+printf %s "checking for extended attributes support... " >&6; }+ if test "x$ac_cv_archive_xattr_linux" = "xyes"; then++printf '%s\n' "#define ARCHIVE_XATTR_LINUX 1" >>confdefs.h++ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: Linux" >&5+printf '%s\n' "Linux" >&6; }+ elif test "x$ac_cv_archive_xattr_darwin" = "xyes"; then++printf '%s\n' "#define ARCHIVE_XATTR_DARWIN 1" >>confdefs.h++ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5+printf '%s\n' "Darwin" >&6; }+ elif test "x$ac_cv_archive_xattr_freebsd" = "xyes"; then++printf '%s\n' "#define ARCHIVE_XATTR_FREEBSD 1" >>confdefs.h++ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: FreeBSD" >&5+printf '%s\n' "FreeBSD" >&6; }+ elif test "x$ac_cv_archive_xattr_aix" = "xyes"; then++printf '%s\n' "#define ARCHIVE_XATTR_AIX 1" >>confdefs.h++ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: AIX" >&5+printf '%s\n' "AIX" >&6; }+ else+ as_fn_error $? "Could not find a suitable version of xattr" "$LINENO" 5+ fi+fi++# Check for ACL support+#+# The ACL support in libarchive is written against the POSIX1e draft,+# which was never officially approved and varies quite a bit across+# platforms. Worse, some systems have completely non-POSIX acl functions,+# which makes the following checks rather more complex than I would like.+#+# Check whether --enable-acl was given.+if test ${enable_acl+y}+then :+ enableval=$enable_acl;+fi+++if test "x$enable_acl" = "xyes" || test "$CABAL_FLAG_acl" = 1; then+ # Libacl+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5+printf %s "checking for acl_get_file in -lacl... " >&6; }+if test ${ac_cv_lib_acl_acl_get_file+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) ac_check_lib_save_LIBS=$LIBS+LIBS="-lacl $LIBS"+cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */++/* Override any GCC internal prototype to avoid an error.+ Use char because int might match the return type of a GCC+ builtin and then its argument prototype would still apply.+ The 'extern "C"' is for builds by C++ compilers;+ although this is not generally supported in C code supporting it here+ has little cost and some practical benefit (sr 110532). */+#ifdef __cplusplus+extern "C"+#endif+char acl_get_file (void);+int+main (void)+{+return acl_get_file ();+ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_link "$LINENO"+then :+ ac_cv_lib_acl_acl_get_file=yes+else case e in #(+ e) ac_cv_lib_acl_acl_get_file=no ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam \+ conftest$ac_exeext conftest.$ac_ext+LIBS=$ac_check_lib_save_LIBS ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5+printf '%s\n' "$ac_cv_lib_acl_acl_get_file" >&6; }+if test "x$ac_cv_lib_acl_acl_get_file" = xyes+then :+ printf '%s\n' "#define HAVE_LIBACL 1" >>confdefs.h++ LIBS="-lacl $LIBS"++fi++ ACL_PC_VER=`$PKG_CONFIG --modversion libacl`+ if test "x$ACL_PC_VER" != "x"; then++printf '%s\n' "#define LIBACL_PKGCONFIG_VERSION \"$ACL_PC_VER\"" >>confdefs.h++ fi+ ac_fn_c_check_type "$LINENO" "acl_t" "ac_cv_type_acl_t" "+ #if HAVE_SYS_TYPES_H+ #include <sys/types.h>+ #endif+ #if HAVE_SYS_ACL_H+ #include <sys/acl.h>+ #endif++"+if test "x$ac_cv_type_acl_t" = xyes+then :++printf '%s\n' "#define HAVE_ACL_T 1" >>confdefs.h+++fi+ac_fn_c_check_type "$LINENO" "acl_entry_t" "ac_cv_type_acl_entry_t" "+ #if HAVE_SYS_TYPES_H+ #include <sys/types.h>+ #endif+ #if HAVE_SYS_ACL_H+ #include <sys/acl.h>+ #endif++"+if test "x$ac_cv_type_acl_entry_t" = xyes+then :++printf '%s\n' "#define HAVE_ACL_ENTRY_T 1" >>confdefs.h+++fi+ac_fn_c_check_type "$LINENO" "acl_permset_t" "ac_cv_type_acl_permset_t" "+ #if HAVE_SYS_TYPES_H+ #include <sys/types.h>+ #endif+ #if HAVE_SYS_ACL_H+ #include <sys/acl.h>+ #endif++"+if test "x$ac_cv_type_acl_permset_t" = xyes+then :++printf '%s\n' "#define HAVE_ACL_PERMSET_T 1" >>confdefs.h+++fi+ac_fn_c_check_type "$LINENO" "acl_tag_t" "ac_cv_type_acl_tag_t" "+ #if HAVE_SYS_TYPES_H+ #include <sys/types.h>+ #endif+ #if HAVE_SYS_ACL_H+ #include <sys/acl.h>+ #endif++"+if test "x$ac_cv_type_acl_tag_t" = xyes+then :++printf '%s\n' "#define HAVE_ACL_TAG_T 1" >>confdefs.h+++fi+++ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for richacl_get_file in -lrichacl" >&5+printf %s "checking for richacl_get_file in -lrichacl... " >&6; }+if test ${ac_cv_lib_richacl_richacl_get_file+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) ac_check_lib_save_LIBS=$LIBS+LIBS="-lrichacl $LIBS"+cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */++/* Override any GCC internal prototype to avoid an error.+ Use char because int might match the return type of a GCC+ builtin and then its argument prototype would still apply.+ The 'extern "C"' is for builds by C++ compilers;+ although this is not generally supported in C code supporting it here+ has little cost and some practical benefit (sr 110532). */+#ifdef __cplusplus+extern "C"+#endif+char richacl_get_file (void);+int+main (void)+{+return richacl_get_file ();+ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_link "$LINENO"+then :+ ac_cv_lib_richacl_richacl_get_file=yes+else case e in #(+ e) ac_cv_lib_richacl_richacl_get_file=no ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam \+ conftest$ac_exeext conftest.$ac_ext+LIBS=$ac_check_lib_save_LIBS ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_richacl_richacl_get_file" >&5+printf '%s\n' "$ac_cv_lib_richacl_richacl_get_file" >&6; }+if test "x$ac_cv_lib_richacl_richacl_get_file" = xyes+then :+ printf '%s\n' "#define HAVE_LIBRICHACL 1" >>confdefs.h++ LIBS="-lrichacl $LIBS"++fi++ RICHACL_PC_VER=`$PKG_CONFIG --modversion librichacl`+ if test "x$RICHACL_PC_VER" != "x"; then++printf '%s\n' "#define LIBRICHACL_PKGCONFIG_VERSION \"$RICHACL_PC_VER\"" >>confdefs.h++ fi+ ac_fn_c_check_type "$LINENO" "struct richace" "ac_cv_type_struct_richace" "+ #if HAVE_SYS_RICHACL_H+ #include <sys/richacl.h>+ #endif++"+if test "x$ac_cv_type_struct_richace" = xyes+then :++printf '%s\n' "#define HAVE_STRUCT_RICHACE 1" >>confdefs.h+++fi+ac_fn_c_check_type "$LINENO" "struct richacl" "ac_cv_type_struct_richacl" "+ #if HAVE_SYS_RICHACL_H+ #include <sys/richacl.h>+ #endif++"+if test "x$ac_cv_type_struct_richacl" = xyes+then :++printf '%s\n' "#define HAVE_STRUCT_RICHACL 1" >>confdefs.h+++fi+++ # Solaris and derivates ACLs+ ac_fn_c_check_func "$LINENO" "acl" "ac_cv_func_acl"+if test "x$ac_cv_func_acl" = xyes+then :+ printf '%s\n' "#define HAVE_ACL 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "facl" "ac_cv_func_facl"+if test "x$ac_cv_func_facl" = xyes+then :+ printf '%s\n' "#define HAVE_FACL 1" >>confdefs.h++fi+++ if test "x$ac_cv_lib_richacl_richacl_get_file" = "xyes" \+ -a "x$ac_cv_type_struct_richace" = "xyes" \+ -a "x$ac_cv_type_struct_richacl" = "xyes"; then+ if test ${ac_cv_archive_acl_librichacl+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e)+ for ac_func in richacl_alloc richacl_equiv_mode richacl_free richacl_get_fd richacl_get_file richacl_set_fd richacl_set_file+do :+ as_ac_var=`printf '%s\n' "ac_cv_func_$ac_func" | sed "$as_sed_sh"`+ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"+if eval test \"x\$"$as_ac_var"\" = x"yes"+then :+ cat >>confdefs.h <<_ACEOF+#define `printf '%s\n' "HAVE_$ac_func" | sed "$as_sed_cpp"` 1+_ACEOF+ ac_cv_archive_acl_librichacl=yes+else case e in #(+ e) ac_cv_archive_acl_librichacl=no ;;+esac+fi++done ;;+esac+fi++ fi++ if test "x$ac_cv_func_acl" = "xyes" \+ -a "x$ac_cv_func_facl" = "xyes"; then+ ac_fn_c_check_type "$LINENO" "aclent_t" "ac_cv_type_aclent_t" "#include <sys/acl.h>+"+if test "x$ac_cv_type_aclent_t" = xyes+then :++printf '%s\n' "#define HAVE_ACLENT_T 1" >>confdefs.h+++fi++ if test "x$ac_cv_type_aclent_t" = "xyes"; then+ if test ${ac_cv_archive_acl_sunos+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) ac_fn_check_decl "$LINENO" "GETACL" "ac_cv_have_decl_GETACL" "#include <sys/acl.h>+" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"+if test "x$ac_cv_have_decl_GETACL" = xyes+then :+ ac_have_decl=1+else case e in #(+ e) ac_have_decl=0 ;;+esac+fi+printf '%s\n' "#define HAVE_DECL_GETACL $ac_have_decl" >>confdefs.h+if test $ac_have_decl = 1+then :+ ac_cv_archive_acl_sunos=yes+else case e in #(+ e) ac_cv_archive_acl_sunos=no ;;+esac+fi+ac_fn_check_decl "$LINENO" "SETACL" "ac_cv_have_decl_SETACL" "#include <sys/acl.h>+" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"+if test "x$ac_cv_have_decl_SETACL" = xyes+then :+ ac_have_decl=1+else case e in #(+ e) ac_have_decl=0 ;;+esac+fi+printf '%s\n' "#define HAVE_DECL_SETACL $ac_have_decl" >>confdefs.h+if test $ac_have_decl = 1+then :+ ac_cv_archive_acl_sunos=yes+else case e in #(+ e) ac_cv_archive_acl_sunos=no ;;+esac+fi+ac_fn_check_decl "$LINENO" "GETACLCNT" "ac_cv_have_decl_GETACLCNT" "#include <sys/acl.h>+" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"+if test "x$ac_cv_have_decl_GETACLCNT" = xyes+then :+ ac_have_decl=1+else case e in #(+ e) ac_have_decl=0 ;;+esac+fi+printf '%s\n' "#define HAVE_DECL_GETACLCNT $ac_have_decl" >>confdefs.h+if test $ac_have_decl = 1+then :+ ac_cv_archive_acl_sunos=yes+else case e in #(+ e) ac_cv_archive_acl_sunos=no ;;+esac+fi+ ;;+esac+fi++ ac_fn_c_check_type "$LINENO" "ace_t" "ac_cv_type_ace_t" "#include <sys/acl.h>+"+if test "x$ac_cv_type_ace_t" = xyes+then :++printf '%s\n' "#define HAVE_ACE_T 1" >>confdefs.h+++fi++ if test "x$ac_cv_type_ace_t" = "xyes"; then+ if test ${ac_cv_archive_acl_sunos_nfs4+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) ac_fn_check_decl "$LINENO" "ACE_GETACL" "ac_cv_have_decl_ACE_GETACL" "#include <sys/acl.h>+" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"+if test "x$ac_cv_have_decl_ACE_GETACL" = xyes+then :+ ac_have_decl=1+else case e in #(+ e) ac_have_decl=0 ;;+esac+fi+printf '%s\n' "#define HAVE_DECL_ACE_GETACL $ac_have_decl" >>confdefs.h+if test $ac_have_decl = 1+then :+ ac_cv_archive_acl_sunos_nfs4=yes+else case e in #(+ e) ac_cv_archive_acl_sonos_nfs4=no ;;+esac+fi+ac_fn_check_decl "$LINENO" "ACE_SETACL" "ac_cv_have_decl_ACE_SETACL" "#include <sys/acl.h>+" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"+if test "x$ac_cv_have_decl_ACE_SETACL" = xyes+then :+ ac_have_decl=1+else case e in #(+ e) ac_have_decl=0 ;;+esac+fi+printf '%s\n' "#define HAVE_DECL_ACE_SETACL $ac_have_decl" >>confdefs.h+if test $ac_have_decl = 1+then :+ ac_cv_archive_acl_sunos_nfs4=yes+else case e in #(+ e) ac_cv_archive_acl_sonos_nfs4=no ;;+esac+fi+ac_fn_check_decl "$LINENO" "ACE_GETACLCNT" "ac_cv_have_decl_ACE_GETACLCNT" "#include <sys/acl.h>+" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"+if test "x$ac_cv_have_decl_ACE_GETACLCNT" = xyes+then :+ ac_have_decl=1+else case e in #(+ e) ac_have_decl=0 ;;+esac+fi+printf '%s\n' "#define HAVE_DECL_ACE_GETACLCNT $ac_have_decl" >>confdefs.h+if test $ac_have_decl = 1+then :+ ac_cv_archive_acl_sunos_nfs4=yes+else case e in #(+ e) ac_cv_archive_acl_sonos_nfs4=no ;;+esac+fi+ ;;+esac+fi++ fi+ fi+ elif test "x$ac_cv_type_acl_t" = "xyes" \+ -a "x$ac_cv_type_acl_entry_t" = "xyes" \+ -a "x$ac_cv_type_acl_permset_t" = "xyes" \+ -a "x$ac_cv_type_acl_tag_t" = "xyes"; then+ # POSIX.1e ACL functions+ if test ${ac_cv_posix_acl_funcs+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e)+ for ac_func in acl_add_perm acl_clear_perms acl_create_entry acl_delete_def_file acl_free acl_get_entry acl_get_fd acl_get_file acl_get_permset acl_get_qualifier acl_get_tag_type acl_init acl_set_fd acl_set_file acl_set_qualifier acl_set_tag_type+do :+ as_ac_var=`printf '%s\n' "ac_cv_func_$ac_func" | sed "$as_sed_sh"`+ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"+if eval test \"x\$"$as_ac_var"\" = x"yes"+then :+ cat >>confdefs.h <<_ACEOF+#define `printf '%s\n' "HAVE_$ac_func" | sed "$as_sed_cpp"` 1+_ACEOF+ ac_cv_posix_acl_funcs=yes+else case e in #(+ e) ac_cv_posix_acl_funcs=no ;;+esac+fi++done+ ;;+esac+fi+++ ac_fn_c_check_func "$LINENO" "acl_get_perm" "ac_cv_func_acl_get_perm"+if test "x$ac_cv_func_acl_get_perm" = xyes+then :+ printf '%s\n' "#define HAVE_ACL_GET_PERM 1" >>confdefs.h++fi+++ if test "x$ac_cv_posix_acl_funcs" = "xyes" \+ -a "x$ac_cv_header_acl_libacl_h" = "xyes" \+ -a "x$ac_cv_lib_acl_acl_get_file" = "xyes" \+ -a "x$ac_cv_func_acl_get_perm"; then+ if test ${ac_cv_archive_acl_libacl+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) ac_cv_archive_acl_libacl=yes ;;+esac+fi+++printf '%s\n' "#define ARCHIVE_ACL_LIBACL 1" >>confdefs.h++ else+ # FreeBSD/Darwin+ ac_fn_c_check_func "$LINENO" "acl_add_flag_np" "ac_cv_func_acl_add_flag_np"+if test "x$ac_cv_func_acl_add_flag_np" = xyes+then :+ printf '%s\n' "#define HAVE_ACL_ADD_FLAG_NP 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "acl_clear_flags_np" "ac_cv_func_acl_clear_flags_np"+if test "x$ac_cv_func_acl_clear_flags_np" = xyes+then :+ printf '%s\n' "#define HAVE_ACL_CLEAR_FLAGS_NP 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "acl_get_brand_np" "ac_cv_func_acl_get_brand_np"+if test "x$ac_cv_func_acl_get_brand_np" = xyes+then :+ printf '%s\n' "#define HAVE_ACL_GET_BRAND_NP 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "acl_get_entry_type_np" "ac_cv_func_acl_get_entry_type_np"+if test "x$ac_cv_func_acl_get_entry_type_np" = xyes+then :+ printf '%s\n' "#define HAVE_ACL_GET_ENTRY_TYPE_NP 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "acl_get_flag_np" "ac_cv_func_acl_get_flag_np"+if test "x$ac_cv_func_acl_get_flag_np" = xyes+then :+ printf '%s\n' "#define HAVE_ACL_GET_FLAG_NP 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "acl_get_flagset_np" "ac_cv_func_acl_get_flagset_np"+if test "x$ac_cv_func_acl_get_flagset_np" = xyes+then :+ printf '%s\n' "#define HAVE_ACL_GET_FLAGSET_NP 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "acl_get_fd_np" "ac_cv_func_acl_get_fd_np"+if test "x$ac_cv_func_acl_get_fd_np" = xyes+then :+ printf '%s\n' "#define HAVE_ACL_GET_FD_NP 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "acl_get_link_np" "ac_cv_func_acl_get_link_np"+if test "x$ac_cv_func_acl_get_link_np" = xyes+then :+ printf '%s\n' "#define HAVE_ACL_GET_LINK_NP 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "acl_get_perm_np" "ac_cv_func_acl_get_perm_np"+if test "x$ac_cv_func_acl_get_perm_np" = xyes+then :+ printf '%s\n' "#define HAVE_ACL_GET_PERM_NP 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "acl_is_trivial_np" "ac_cv_func_acl_is_trivial_np"+if test "x$ac_cv_func_acl_is_trivial_np" = xyes+then :+ printf '%s\n' "#define HAVE_ACL_IS_TRIVIAL_NP 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "acl_set_entry_type_np" "ac_cv_func_acl_set_entry_type_np"+if test "x$ac_cv_func_acl_set_entry_type_np" = xyes+then :+ printf '%s\n' "#define HAVE_ACL_SET_ENTRY_TYPE_NP 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "acl_set_fd_np" "ac_cv_func_acl_set_fd_np"+if test "x$ac_cv_func_acl_set_fd_np" = xyes+then :+ printf '%s\n' "#define HAVE_ACL_SET_FD_NP 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "acl_set_link_np" "ac_cv_func_acl_set_link_np"+if test "x$ac_cv_func_acl_set_link_np" = xyes+then :+ printf '%s\n' "#define HAVE_ACL_SET_LINK_NP 1" >>confdefs.h++fi+++ ac_fn_c_check_func "$LINENO" "mbr_uid_to_uuid" "ac_cv_func_mbr_uid_to_uuid"+if test "x$ac_cv_func_mbr_uid_to_uuid" = xyes+then :+ printf '%s\n' "#define HAVE_MBR_UID_TO_UUID 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "mbr_uuid_to_id" "ac_cv_func_mbr_uuid_to_id"+if test "x$ac_cv_func_mbr_uuid_to_id" = xyes+then :+ printf '%s\n' "#define HAVE_MBR_UUID_TO_ID 1" >>confdefs.h++fi+ac_fn_c_check_func "$LINENO" "mbr_gid_to_uuid" "ac_cv_func_mbr_gid_to_uuid"+if test "x$ac_cv_func_mbr_gid_to_uuid" = xyes+then :+ printf '%s\n' "#define HAVE_MBR_GID_TO_UUID 1" >>confdefs.h++fi+++ ac_fn_check_decl "$LINENO" "ACL_TYPE_EXTENDED" "ac_cv_have_decl_ACL_TYPE_EXTENDED" "#include <sys/types.h>+ #include <sys/acl.h>+" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"+if test "x$ac_cv_have_decl_ACL_TYPE_EXTENDED" = xyes+then :+ ac_have_decl=1+else case e in #(+ e) ac_have_decl=0 ;;+esac+fi+printf '%s\n' "#define HAVE_DECL_ACL_TYPE_EXTENDED $ac_have_decl" >>confdefs.h+ac_fn_check_decl "$LINENO" "ACL_TYPE_NFS4" "ac_cv_have_decl_ACL_TYPE_NFS4" "#include <sys/types.h>+ #include <sys/acl.h>+" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"+if test "x$ac_cv_have_decl_ACL_TYPE_NFS4" = xyes+then :+ ac_have_decl=1+else case e in #(+ e) ac_have_decl=0 ;;+esac+fi+printf '%s\n' "#define HAVE_DECL_ACL_TYPE_NFS4 $ac_have_decl" >>confdefs.h+ac_fn_check_decl "$LINENO" "ACL_USER" "ac_cv_have_decl_ACL_USER" "#include <sys/types.h>+ #include <sys/acl.h>+" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"+if test "x$ac_cv_have_decl_ACL_USER" = xyes+then :+ ac_have_decl=1+else case e in #(+ e) ac_have_decl=0 ;;+esac+fi+printf '%s\n' "#define HAVE_DECL_ACL_USER $ac_have_decl" >>confdefs.h+ac_fn_check_decl "$LINENO" "ACL_SYNCHRONIZE" "ac_cv_have_decl_ACL_SYNCHRONIZE" "#include <sys/types.h>+ #include <sys/acl.h>+" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"+if test "x$ac_cv_have_decl_ACL_SYNCHRONIZE" = xyes+then :+ ac_have_decl=1+else case e in #(+ e) ac_have_decl=0 ;;+esac+fi+printf '%s\n' "#define HAVE_DECL_ACL_SYNCHRONIZE $ac_have_decl" >>confdefs.h++ if test "x$ac_cv_posix_acl_funcs" = "xyes" \+ -a "x$ac_cv_func_acl_get_fd_np" = "xyes" \+ -a "x$ac_cv_func_acl_get_perm" != "xyes" \+ -a "x$ac_cv_func_acl_get_perm_np" = "xyes" \+ -a "x$ac_cv_func_acl_set_fd_np" = "xyes"; then+ if test "x$ac_cv_have_decl_ACL_USER" = "xyes"; then+ if test ${ac_cv_archive_acl_freebsd+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) ac_cv_archive_acl_freebsd=yes ;;+esac+fi++ if test "x$ac_cv_have_decl_ACL_TYPE_NFS4" = "xyes" \+ -a "x$ac_cv_func_acl_add_flag_np" = "xyes" \+ -a "x$ac_cv_func_acl_get_brand_np" = "xyes" \+ -a "x$ac_cv_func_acl_get_entry_type_np" = "xyes" \+ -a "x$ac_cv_func_acl_get_flagset_np" = "xyes" \+ -a "x$ac_cv_func_acl_set_entry_type_np" = "xyes"; then+ if test ${ac_cv_archive_acl_freebsd_nfs4+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) ac_cv_archive_acl_freebsd_nfs4=yes ;;+esac+fi++ fi+ elif test "x$ac_cv_have_decl_ACL_TYPE_EXTENDED" = "xyes" \+ -a "x$ac_cv_func_acl_add_flag_np" = "xyes" \+ -a "x$ac_cv_func_acl_get_flagset_np" = "xyes" \+ -a "x$ac_cv_func_acl_get_link_np" = "xyes" \+ -a "x$ac_cv_func_acl_set_link_np" = "xyes" \+ -a "x$ac_cv_func_mbr_uid_to_uuid" = "xyes" \+ -a "x$ac_cv_func_mbr_uuid_to_id" = "xyes" \+ -a "x$ac_cv_func_mbr_gid_to_uuid" = "xyes"; then+ if test ${ac_cv_archive_acl_darwin+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) ac_cv_archive_acl_darwin=yes ;;+esac+fi++ fi+ fi+ fi+ fi+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for ACL support" >&5+printf %s "checking for ACL support... " >&6; }+ if test "x$ac_cv_archive_acl_libacl" = "xyes" \+ -a "x$ac_cv_archive_acl_librichacl" = "xyes"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: libacl (POSIX.1e) + librichacl (NFSv4)" >&5+printf '%s\n' "libacl (POSIX.1e) + librichacl (NFSv4)" >&6; }++printf '%s\n' "#define ARCHIVE_ACL_LIBACL 1" >>confdefs.h+++printf '%s\n' "#define ARCHIVE_ACL_LIBRICHACL 1" >>confdefs.h++ elif test "x$ac_cv_archive_acl_libacl" = "xyes"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: libacl (POSIX.1e)" >&5+printf '%s\n' "libacl (POSIX.1e)" >&6; }++printf '%s\n' "#define ARCHIVE_ACL_LIBACL 1" >>confdefs.h++ elif test "x$ac_cv_archive_acl_librichacl" = "xyes"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: librichacl (NFSv4)" >&5+printf '%s\n' "librichacl (NFSv4)" >&6; }++printf '%s\n' "#define ARCHIVE_ACL_LIBRICHACL 1" >>confdefs.h++ elif test "x$ac_cv_archive_acl_darwin" = "xyes"; then++printf '%s\n' "#define ARCHIVE_ACL_DARWIN 1" >>confdefs.h++ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: Darwin (limited NFSv4)" >&5+printf '%s\n' "Darwin (limited NFSv4)" >&6; }+ elif test "x$ac_cv_archive_acl_sunos" = "xyes"; then++printf '%s\n' "#define ARCHIVE_ACL_SUNOS 1" >>confdefs.h++ if test "x$ac_cv_archive_acl_sunos_nfs4" = "xyes"; then++printf '%s\n' "#define ARCHIVE_ACL_SUNOS_NFS4 1" >>confdefs.h++ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: Solaris (POSIX.1e and NFSv4)" >&5+printf '%s\n' "Solaris (POSIX.1e and NFSv4)" >&6; }+ else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: Solaris (POSIX.1e)" >&5+printf '%s\n' "Solaris (POSIX.1e)" >&6; }+ fi+ elif test "x$ac_cv_archive_acl_freebsd" = "xyes"; then++printf '%s\n' "#define ARCHIVE_ACL_FREEBSD 1" >>confdefs.h++ if test "x$ac_cv_archive_acl_freebsd_nfs4" = "xyes"; then++printf '%s\n' "#define ARCHIVE_ACL_FREEBSD_NFS4 1" >>confdefs.h++ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: FreeBSD (POSIX.1e and NFSv4)" >&5+printf '%s\n' "FreeBSD (POSIX.1e and NFSv4)" >&6; }+ else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: FreeBSD (POSIX.1e)" >&5+printf '%s\n' "FreeBSD (POSIX.1e)" >&6; }+ fi+ else+ as_fn_error $? "Could not find a suitable version of acl" "$LINENO" 5+ fi+fi+++ if test "x$ac_cv_archive_acl_libacl" = "xyes" \+ -o "x$ac_cv_archive_acl_librichacl" = "xyes"; then+ INC_LINUX_ACL_TRUE=+ INC_LINUX_ACL_FALSE='#'+else+ INC_LINUX_ACL_TRUE='#'+ INC_LINUX_ACL_FALSE=+fi++ if test "x$ac_cv_archive_acl_sunos" = "xyes"; then+ INC_SUNOS_ACL_TRUE=+ INC_SUNOS_ACL_FALSE='#'+else+ INC_SUNOS_ACL_TRUE='#'+ INC_SUNOS_ACL_FALSE=+fi++ if test "x$ac_cv_archive_acl_darwin" = "xyes"; then+ INC_DARWIN_ACL_TRUE=+ INC_DARWIN_ACL_FALSE='#'+else+ INC_DARWIN_ACL_TRUE='#'+ INC_DARWIN_ACL_FALSE=+fi++ if test "x$ac_cv_archive_acl_freebsd" = "xyes"; then+ INC_FREEBSD_ACL_TRUE=+ INC_FREEBSD_ACL_FALSE='#'+else+ INC_FREEBSD_ACL_TRUE='#'+ INC_FREEBSD_ACL_FALSE=+fi+++# Additional requirements+# Check whether --enable-largefile was given.+if test ${enable_largefile+y}+then :+ enableval=$enable_largefile;+fi+if test "$enable_largefile,$enable_year2038" != no,no+then :+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to support large files" >&5+printf %s "checking for $CC option to support large files... " >&6; }+if test ${ac_cv_sys_largefile_opts+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) ac_save_CPPFLAGS=$CPPFLAGS+ ac_opt_found=no+ for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1"; do+ if test x"$ac_opt" != x"none needed"+then :+ CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"+fi+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */+#include <sys/types.h>+#ifndef FTYPE+# define FTYPE off_t+#endif+ /* Check that FTYPE can represent 2**63 - 1 correctly.+ We can't simply define LARGE_FTYPE to be 9223372036854775807,+ since some C++ compilers masquerading as C compilers+ incorrectly reject 9223372036854775807. */+#define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))+ int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721+ && LARGE_FTYPE % 2147483647 == 1)+ ? 1 : -1];+int+main (void)+{++ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_compile "$LINENO"+then :+ if test x"$ac_opt" = x"none needed"+then :+ # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.+ CPPFLAGS="$CPPFLAGS -DFTYPE=ino_t"+ if ac_fn_c_try_compile "$LINENO"+then :++else case e in #(+ e) CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64"+ if ac_fn_c_try_compile "$LINENO"+then :+ ac_opt='-D_FILE_OFFSET_BITS=64'+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam ;;+esac+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam+fi+ ac_cv_sys_largefile_opts=$ac_opt+ ac_opt_found=yes+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext+ test $ac_opt_found = no || break+ done+ CPPFLAGS=$ac_save_CPPFLAGS++ test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5+printf '%s\n' "$ac_cv_sys_largefile_opts" >&6; }++ac_have_largefile=yes+case $ac_cv_sys_largefile_opts in #(+ "none needed") :+ ;; #(+ "supported through gnulib") :+ ;; #(+ "support not detected") :+ ac_have_largefile=no ;; #(+ "-D_FILE_OFFSET_BITS=64") :++printf '%s\n' "#define _FILE_OFFSET_BITS 64" >>confdefs.h+ ;; #(+ "-D_LARGE_FILES=1") :++printf '%s\n' "#define _LARGE_FILES 1" >>confdefs.h+ ;; #(+ *) :+ as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;+esac++if test "$enable_year2038" != no+then :+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to support timestamps after 2038" >&5+printf %s "checking for $CC option to support timestamps after 2038... " >&6; }+if test ${ac_cv_sys_year2038_opts+y}+then :+ printf %s "(cached) " >&6+else case e in #(+ e) ac_save_CPPFLAGS="$CPPFLAGS"+ ac_opt_found=no+ for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do+ if test x"$ac_opt" != x"none needed"+then :+ CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"+fi+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext+/* end confdefs.h. */++ #include <time.h>+ /* Check that time_t can represent 2**32 - 1 correctly. */+ #define LARGE_TIME_T \\+ ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))+ int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535+ && LARGE_TIME_T % 65537 == 0)+ ? 1 : -1];++int+main (void)+{++ ;+ return 0;+}+_ACEOF+if ac_fn_c_try_compile "$LINENO"+then :+ ac_cv_sys_year2038_opts="$ac_opt"+ ac_opt_found=yes+fi+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext+ test $ac_opt_found = no || break+ done+ CPPFLAGS="$ac_save_CPPFLAGS"+ test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;+esac+fi+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5+printf '%s\n' "$ac_cv_sys_year2038_opts" >&6; }++ac_have_year2038=yes+case $ac_cv_sys_year2038_opts in #(+ "none needed") :+ ;; #(+ "support not detected") :+ ac_have_year2038=no ;; #(+ "-D_TIME_BITS=64") :++printf '%s\n' "#define _TIME_BITS 64" >>confdefs.h+ ;; #(+ "-D__MINGW_USE_VC2005_COMPAT") :++printf '%s\n' "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h+ ;; #(+ "-U_USE_32_BIT_TIME_T"*) :+ { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5+printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}+as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It+will stop working after mid-January 2038. Remove+_USE_32BIT_TIME_T from the compiler flags.+See 'config.log' for more details" "$LINENO" 5; } ;; #(+ *) :+ as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;+esac++fi++fi++EXTRA_LIBS=` printf " %s " "$LIBS" | sed -E 's/ -l([^ ]*)/\1 /g' `++ac_config_files="$ac_config_files libarchive-clib.buildinfo"+++cat >confcache <<\_ACEOF+# This file is a shell script that caches the results of configure+# tests run on this system so they can be shared between configure+# scripts and configure runs, see configure's option --config-cache.+# It is not useful on other systems. If it contains results you don't+# want to keep, you may remove or edit it.+#+# config.status only pays attention to the cache file if you give it+# the --recheck option to rerun configure.+#+# 'ac_cv_env_foo' variables (set or unset) will be overridden when+# loading this file, other *unset* 'ac_cv_foo' will be assigned the+# following values.++_ACEOF++ac_cache_dump |+ sed '+ /^ac_cv_env_/b end+ t clear+ :clear+ s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/+ t end+ s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/+ :end' >>confcache+if diff "$cache_file" confcache >/dev/null 2>&1; then :; else+ if test -w "$cache_file"; then+ if test "x$cache_file" != "x/dev/null"; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5+printf '%s\n' "$as_me: updating cache $cache_file" >&6;}+ if test ! -f "$cache_file" || test -h "$cache_file"; then+ cat confcache >"$cache_file"+ else+ case $cache_file in #(+ */* | ?:*)+ mv -f confcache "$cache_file"$$ &&+ mv -f "$cache_file"$$ "$cache_file" ;; #(+ *)+ mv -f confcache "$cache_file" ;;+ esac+ fi+ fi+ else+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5+printf '%s\n' "$as_me: not updating unwritable cache $cache_file" >&6;}+ fi+fi+rm -f confcache++test "x$prefix" = xNONE && prefix=$ac_default_prefix+# Let make expand exec_prefix.+test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'++DEFS=-DHAVE_CONFIG_H++ac_libobjs=+ac_ltlibobjs=+U=+for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue+ # 1. Remove the extension, and $U if already installed.+ ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'+ ac_i=`printf '%s\n' "$ac_i" | sed "$ac_script"`+ # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR+ # will be set to the directory where LIBOBJS objects are built.+ as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"+ as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'+done+LIBOBJS=$ac_libobjs++LTLIBOBJS=$ac_ltlibobjs+++if test -z "${INC_WINDOWS_FILES_TRUE}" && test -z "${INC_WINDOWS_FILES_FALSE}"; then+ as_fn_error $? "conditional \"INC_WINDOWS_FILES\" was never defined.+Usually this means the macro was only invoked conditionally." "$LINENO" 5+fi+if test -z "${INC_CYGWIN_FILES_TRUE}" && test -z "${INC_CYGWIN_FILES_FALSE}"; then+ as_fn_error $? "conditional \"INC_CYGWIN_FILES\" was never defined.+Usually this means the macro was only invoked conditionally." "$LINENO" 5+fi+if test -z "${INC_BLAKE2_TRUE}" && test -z "${INC_BLAKE2_FALSE}"; then+ as_fn_error $? "conditional \"INC_BLAKE2\" was never defined.+Usually this means the macro was only invoked conditionally." "$LINENO" 5+fi+if test -z "${INC_LINUX_ACL_TRUE}" && test -z "${INC_LINUX_ACL_FALSE}"; then+ as_fn_error $? "conditional \"INC_LINUX_ACL\" was never defined.+Usually this means the macro was only invoked conditionally." "$LINENO" 5+fi+if test -z "${INC_SUNOS_ACL_TRUE}" && test -z "${INC_SUNOS_ACL_FALSE}"; then+ as_fn_error $? "conditional \"INC_SUNOS_ACL\" was never defined.+Usually this means the macro was only invoked conditionally." "$LINENO" 5+fi+if test -z "${INC_DARWIN_ACL_TRUE}" && test -z "${INC_DARWIN_ACL_FALSE}"; then+ as_fn_error $? "conditional \"INC_DARWIN_ACL\" was never defined.+Usually this means the macro was only invoked conditionally." "$LINENO" 5+fi+if test -z "${INC_FREEBSD_ACL_TRUE}" && test -z "${INC_FREEBSD_ACL_FALSE}"; then+ as_fn_error $? "conditional \"INC_FREEBSD_ACL\" was never defined.+Usually this means the macro was only invoked conditionally." "$LINENO" 5+fi+# Check whether --enable-year2038 was given.+if test ${enable_year2038+y}+then :+ enableval=$enable_year2038;+fi+++: "${CONFIG_STATUS=./config.status}"+case $CONFIG_STATUS in #(+ -*) :+ CONFIG_STATUS=./$CONFIG_STATUS ;; #(+ */*) :+ ;; #(+ *) :+ CONFIG_STATUS=./$CONFIG_STATUS ;;+esac++ac_write_fail=0+ac_clean_CONFIG_STATUS='"$CONFIG_STATUS"'+{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5+printf '%s\n' "$as_me: creating $CONFIG_STATUS" >&6;}+as_write_fail=0+cat >"$CONFIG_STATUS" <<_ASEOF || as_write_fail=1+#! $SHELL+# Generated by $as_me.+# Run this file to recreate the current configuration.+# Compiler output produced by configure, useful for debugging+# configure, is in config.log if it exists.++debug=false+ac_cs_recheck=false+ac_cs_silent=false++SHELL=\${CONFIG_SHELL-$SHELL}+export SHELL+_ASEOF+cat >>"$CONFIG_STATUS" <<\_ASEOF || as_write_fail=1+## -------------------- ##+## M4sh Initialization. ##+## -------------------- ##++# Be more Bourne compatible+DUALCASE=1; export DUALCASE # for MKS sh+if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1+then :+ emulate sh+ NULLCMD=:+ # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which+ # contradicts POSIX and common usage. Disable this.+ alias -g '${1+"$@"}'='"$@"'+ setopt NO_GLOB_SUBST+else case e in #(+ e) case `(set -o) 2>/dev/null` in #(+ *posix*) :+ set -o posix ;; #(+ *) :+ ;;+esac ;;+esac+fi++++# Reset variables that may have inherited troublesome values from+# the environment.++# IFS needs to be set, to space, tab, and newline, in precisely that order.+# (If _AS_PATH_WALK were called with IFS unset, it would have the+# side effect of setting IFS to empty, thus disabling word splitting.)+# Quoting is to prevent editors from complaining about space-tab.+as_nl='+'+export as_nl+IFS=" "" $as_nl"++PS1='$ '+PS2='> '+PS4='+ '++# Ensure predictable behavior from utilities with locale-dependent output.+LC_ALL=C+export LC_ALL+LANGUAGE=C+export LANGUAGE++# We cannot yet rely on "unset" to work, but we need these variables+# to be unset--not just set to an empty or harmless value--now, to+# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct+# also avoids known problems related to "unset" and subshell syntax+# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).+for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH+do eval test \${$as_var+y} \+ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :+done++# Ensure that fds 0, 1, and 2 are open.+if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi+if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi+if (exec 3>&2) ; then :; else exec 2>/dev/null; fi++# The user is always right.+if ${PATH_SEPARATOR+false} :; then+ PATH_SEPARATOR=:+ (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {+ (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||+ PATH_SEPARATOR=';'+ }+fi+++# Find who we are. Look in the path if we contain no directory separator.+as_myself=+case $0 in #((+ *[\\/]* ) as_myself=$0 ;;+ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR+for as_dir in $PATH+do+ IFS=$as_save_IFS+ case $as_dir in #(((+ '') as_dir=./ ;;+ */) ;;+ *) as_dir=$as_dir/ ;;+ esac+ test -r "$as_dir$0" && as_myself=$as_dir$0 && break+ done+IFS=$as_save_IFS++ ;;+esac+# We did not find ourselves, most probably we were run as 'sh COMMAND'+# in which case we are not to be found in the path.+if test "x$as_myself" = x; then+ as_myself=$0+fi+if test ! -f "$as_myself"; then+ printf '%s\n' "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2+ exit 1+fi++++# as_fn_error STATUS ERROR [LINENO LOG_FD]+# ----------------------------------------+# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are+# provided, also output the error to LOG_FD, referencing LINENO. Then exit the+# script with STATUS, using 1 if that was 0.+as_fn_error ()+{+ as_status=$1; test $as_status -eq 0 && as_status=1+ if test "$4"; then+ as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack+ printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: $2" >&$4+ fi+ printf '%s\n' "$as_me: error: $2" >&2+ as_fn_exit $as_status+} # as_fn_error+++# as_fn_set_status STATUS+# -----------------------+# Set $? to STATUS, without forking.+as_fn_set_status ()+{+ return $1+} # as_fn_set_status++# as_fn_exit STATUS+# -----------------+# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.+as_fn_exit ()+{+ set +e+ as_fn_set_status $1+ exit $1+} # as_fn_exit++# as_fn_unset VAR+# ---------------+# Portably unset VAR.+as_fn_unset ()+{+ { eval $1=; unset $1;}+}+as_unset=as_fn_unset++# as_fn_append VAR VALUE+# ----------------------+# Append the text in VALUE to the end of the definition contained in VAR. Take+# advantage of any shell optimizations that allow amortized linear growth over+# repeated appends, instead of the typical quadratic growth present in naive+# implementations.+if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null+then :+ eval 'as_fn_append ()+ {+ eval $1+=\$2+ }'+else case e in #(+ e) as_fn_append ()+ {+ eval $1=\$$1\$2+ } ;;+esac+fi # as_fn_append++# as_fn_arith ARG...+# ------------------+# Perform arithmetic evaluation on the ARGs, and store the result in the+# global $as_val. Take advantage of shells that can avoid forks. The arguments+# must be portable across $(()) and expr.+if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null+then :+ eval 'as_fn_arith ()+ {+ as_val=$(( $* ))+ }'+else case e in #(+ e) as_fn_arith ()+ {+ as_val=`expr "$@" || test $? -eq 1`+ } ;;+esac+fi # as_fn_arith+++if expr a : '\(a\)' >/dev/null 2>&1 &&+ test "X`expr 00001 : '.*\(...\)'`" = X001; then+ as_expr=expr+else+ as_expr=false+fi++if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then+ as_basename=basename+else+ as_basename=false+fi++if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then+ as_dirname=dirname+else+ as_dirname=false+fi++as_me=`$as_basename -- "$0" ||+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \+ X"$0" : 'X\(//\)$' \| \+ X"$0" : 'X\(/\)' \| . 2>/dev/null ||+printf '%s\n' X/"$0" |+ sed '/^.*\/\([^/][^/]*\)\/*$/{+ s//\1/+ q+ }+ /^X\/\(\/\/\)$/{+ s//\1/+ q+ }+ /^X\/\(\/\).*/{+ s//\1/+ q+ }+ s/.*/./; q'`++# Avoid depending upon Character Ranges.+as_cr_letters='abcdefghijklmnopqrstuvwxyz'+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'+as_cr_Letters=$as_cr_letters$as_cr_LETTERS+as_cr_digits='0123456789'+as_cr_alnum=$as_cr_Letters$as_cr_digits++rm -f conf$$ conf$$.exe conf$$.file+if test -d conf$$.dir; then+ rm -f conf$$.dir/conf$$.file+else+ rm -f conf$$.dir+ mkdir conf$$.dir 2>/dev/null+fi+if (echo >conf$$.file) 2>/dev/null; then+ if ln -s conf$$.file conf$$ 2>/dev/null; then+ as_ln_s='ln -s'+ # ... but there are two gotchas:+ # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.+ # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.+ # In both cases, we have to default to 'cp -pR'.+ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||+ as_ln_s='cp -pR'+ elif ln conf$$.file conf$$ 2>/dev/null; then+ as_ln_s=ln+ else+ as_ln_s='cp -pR'+ fi+else+ as_ln_s='cp -pR'+fi+rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file+rmdir conf$$.dir 2>/dev/null+++# as_fn_mkdir_p+# -------------+# Create "$as_dir" as a directory, including parents if necessary.+as_fn_mkdir_p ()+{++ case $as_dir in #(+ -*) as_dir=./$as_dir;;+ esac+ test -d "$as_dir" || eval $as_mkdir_p || {+ as_dirs=+ while :; do+ case $as_dir in #(+ *\'*) as_qdir=`printf '%s\n' "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(+ *) as_qdir=$as_dir;;+ esac+ as_dirs="'$as_qdir' $as_dirs"+ as_dir=`$as_dirname -- "$as_dir" ||+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \+ X"$as_dir" : 'X\(//\)[^/]' \| \+ X"$as_dir" : 'X\(//\)$' \| \+ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||+printf '%s\n' X"$as_dir" |+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{+ s//\1/+ q+ }+ /^X\(\/\/\)[^/].*/{+ s//\1/+ q+ }+ /^X\(\/\/\)$/{+ s//\1/+ q+ }+ /^X\(\/\).*/{+ s//\1/+ q+ }+ s/.*/./; q'`+ test -d "$as_dir" && break+ done+ test -z "$as_dirs" || eval "mkdir $as_dirs"+ } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"+++} # as_fn_mkdir_p+if mkdir -p . 2>/dev/null; then+ as_mkdir_p='mkdir -p "$as_dir"'+else+ test -d ./-p && rmdir ./-p+ as_mkdir_p=false+fi+++# as_fn_executable_p FILE+# -----------------------+# Test if FILE is an executable regular file.+as_fn_executable_p ()+{+ test -f "$1" && test -x "$1"+} # as_fn_executable_p+as_test_x='test -x'+as_executable_p=as_fn_executable_p++# Sed expression to map a string onto a valid CPP name.+as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"+as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated++# Sed expression to map a string onto a valid variable name.+as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"+as_tr_sh="eval sed '$as_sed_sh'" # deprecated+++exec 6>&1+## ------------------------------------- ##+## Main body of "$CONFIG_STATUS" script. ##+## ------------------------------------- ##+_ASEOF+test $as_write_fail = 0 && chmod +x "$CONFIG_STATUS" || ac_write_fail=1++cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1+# Save the log message, to keep $0 and so on meaningful, and to+# report actual input values of CONFIG_FILES etc. instead of their+# values after options handling.+ac_log="+This file was extended by Haskell libarchive-clib package $as_me 3.7.2, which was+generated by GNU Autoconf 2.73. Invocation command line was++ CONFIG_FILES = $CONFIG_FILES+ CONFIG_HEADERS = $CONFIG_HEADERS+ CONFIG_LINKS = $CONFIG_LINKS+ CONFIG_COMMANDS = $CONFIG_COMMANDS+ $ $0 $@++on `(hostname || uname -n) 2>/dev/null | sed 1q`+"++_ACEOF++case $ac_config_files in *"+"*) set x $ac_config_files; shift; ac_config_files=$*;;+esac++case $ac_config_headers in *"+"*) set x $ac_config_headers; shift; ac_config_headers=$*;;+esac+++cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1+# Files that config.status was made for.+config_files="$ac_config_files"+config_headers="$ac_config_headers"+config_commands="$ac_config_commands"++_ACEOF++cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1+ac_cs_usage="\+'$as_me' instantiates files and other configuration actions+from templates according to the current configuration. Unless the files+and actions are specified as TAGs, all are instantiated by default.++Usage: $0 [OPTION]... [TAG]...++ -h, --help print this help, then exit+ -V, --version print version number and configuration settings, then exit+ --config print configuration, then exit+ -q, --quiet, --silent+ do not print progress messages+ -d, --debug don't remove temporary files+ --recheck update $as_me by reconfiguring in the same conditions+ --file=FILE[:TEMPLATE]+ instantiate the configuration file FILE+ --header=FILE[:TEMPLATE]+ instantiate the configuration header FILE++Configuration files:+$config_files++Configuration headers:+$config_headers++Configuration commands:+$config_commands++Report bugs to <vamchale@gmail.com>."++_ACEOF+ac_cs_config=`printf '%s\n' "$ac_configure_args" | sed "$ac_safe_unquote"`+ac_cs_config_escaped=`printf '%s\n' "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`+cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1+ac_cs_config='$ac_cs_config_escaped'+ac_cs_version="\\+Haskell libarchive-clib package config.status 3.7.2+configured by $0, generated by GNU Autoconf 2.73,+ with options \\"\$ac_cs_config\\"++Copyright (C) 2026 Free Software Foundation, Inc.+This config.status script is free software; the Free Software Foundation+gives unlimited permission to copy, distribute and modify it."++ac_pwd='$ac_pwd'+srcdir='$srcdir'+MKDIR_P='$MKDIR_P'+AWK='$AWK'+test -n "\$AWK" || {+ awk '' </dev/null ||+ as_fn_error \$? "try installing gawk"+ AWK=awk+}+_ACEOF++cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1+# The default lists apply if the user does not specify any file.+ac_need_defaults=:+while test $# != 0+do+ case $1 in+ --*=?*)+ ac_option=`expr "X$1" : 'X\([^=]*\)='`+ ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`+ ac_shift=:+ ;;+ --*=)+ ac_option=`expr "X$1" : 'X\([^=]*\)='`+ ac_optarg=+ ac_shift=:+ ;;+ *)+ ac_option=$1+ ac_optarg=$2+ ac_shift=shift+ ;;+ esac++ case $ac_option in+ # Handling of the options.+ -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)+ ac_cs_recheck=: ;;+ --version | --versio | --versi | --vers | --ver | --ve | --v | -V )+ printf '%s\n' "$ac_cs_version"; exit ;;+ --config | --confi | --conf | --con | --co | --c )+ printf '%s\n' "$ac_cs_config"; exit ;;+ --debug | --debu | --deb | --de | --d | -d )+ debug=: ;;+ --file | --fil | --fi | --f )+ $ac_shift+ case $ac_optarg in+ *\'*) ac_optarg=`printf '%s\n' "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;+ '') as_fn_error $? "missing file argument" ;;+ esac+ as_fn_append CONFIG_FILES " '$ac_optarg'"+ ac_need_defaults=false;;+ --header | --heade | --head | --hea )+ $ac_shift+ case $ac_optarg in+ *\'*) ac_optarg=`printf '%s\n' "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;+ esac+ as_fn_append CONFIG_HEADERS " '$ac_optarg'"+ ac_need_defaults=false;;+ --he | --h)+ # Conflict between --help and --header+ as_fn_error $? "ambiguous option: '$1'+Try '$0 --help' for more information.";;+ --help | --hel | -h )+ printf '%s\n' "$ac_cs_usage"; exit ;;+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \+ | -silent | --silent | --silen | --sile | --sil | --si | --s)+ ac_cs_silent=: ;;++ # This is an error.+ -*) as_fn_error $? "unrecognized option: '$1'+Try '$0 --help' for more information." ;;++ *) as_fn_append ac_config_targets " $1"+ ac_need_defaults=false ;;++ esac+ shift+done++ac_configure_extra_args=++if $ac_cs_silent; then+ exec 6>/dev/null+ ac_configure_extra_args="$ac_configure_extra_args --silent"+fi++_ACEOF+cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1+if \$ac_cs_recheck; then+ set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion+ shift+ \printf '%s\n' "running CONFIG_SHELL=$SHELL \$*" >&6+ CONFIG_SHELL='$SHELL'+ export CONFIG_SHELL+ exec "\$@"+fi++_ACEOF+cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1+exec 5>>config.log+{+ echo+ sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX+## Running $as_me. ##+_ASBOX+ printf '%s\n' "$ac_log"+} >&5++_ACEOF+cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1+#+# INIT-COMMANDS+#+++# The HP-UX ksh and POSIX shell print the target directory to stdout+# if CDPATH is set.+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH++sed_quote_subst='$sed_quote_subst'+double_quote_subst='$double_quote_subst'+delay_variable_subst='$delay_variable_subst'+macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'+macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'+AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'+DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'+OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'+enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'+enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'+pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'+enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'+shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'+SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'+ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'+PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'+host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'+host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'+host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'+build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'+build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'+build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'+SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'+Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'+GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'+EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'+FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'+LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'+NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'+LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'+max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'+ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'+exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'+lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'+lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'+lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'+lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'+lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'+reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'+reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'+FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'+deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'+file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'+file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'+want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'+sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'+AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'+lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'+AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'+archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'+STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'+RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'+old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'+old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'+old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'+lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'+CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'+CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'+compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'+GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'+lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'+lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'+lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'+lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'+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"`'+lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'+nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'+lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'+lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'+objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'+MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'+lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'+lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'+lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'+lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'+lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'+need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'+MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'+DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'+NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'+LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'+OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'+OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'+libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'+shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'+extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'+archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'+enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'+export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'+whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'+compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'+old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'+old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'+archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'+archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'+module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'+module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'+with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'+allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'+no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'+hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'+hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'+hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'+hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'+hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'+hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'+hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'+inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'+link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'+always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'+export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'+exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'+include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'+prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'+postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'+file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'+variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'+need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'+need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'+version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'+runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'+shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'+shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'+libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'+library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'+soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'+install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'+postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'+postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'+finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'+finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'+hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'+sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'+configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'+configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'+hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'+enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'+enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'+enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'+old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'+striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'++LTCC='$LTCC'+LTCFLAGS='$LTCFLAGS'+compiler='$compiler_DEFAULT'++# A function that is used when there is no print builtin or printf.+func_fallback_echo ()+{+ eval 'cat <<_LTECHO_EOF+\$1+_LTECHO_EOF'+}++# Quote evaled strings.+for var in AS \+DLLTOOL \+OBJDUMP \+SHELL \+ECHO \+PATH_SEPARATOR \+SED \+GREP \+EGREP \+FGREP \+LD \+NM \+LN_S \+lt_SP2NL \+lt_NL2SP \+reload_flag \+FILECMD \+deplibs_check_method \+file_magic_cmd \+file_magic_glob \+want_nocaseglob \+sharedlib_from_linklib_cmd \+AR \+archiver_list_spec \+STRIP \+RANLIB \+CC \+CFLAGS \+compiler \+lt_cv_sys_global_symbol_pipe \+lt_cv_sys_global_symbol_to_cdecl \+lt_cv_sys_global_symbol_to_import \+lt_cv_sys_global_symbol_to_c_name_address \+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \+lt_cv_nm_interface \+nm_file_list_spec \+lt_cv_truncate_bin \+lt_prog_compiler_no_builtin_flag \+lt_prog_compiler_pic \+lt_prog_compiler_wl \+lt_prog_compiler_static \+lt_cv_prog_compiler_c_o \+need_locks \+MANIFEST_TOOL \+DSYMUTIL \+NMEDIT \+LIPO \+OTOOL \+OTOOL64 \+shrext_cmds \+export_dynamic_flag_spec \+whole_archive_flag_spec \+compiler_needs_object \+with_gnu_ld \+allow_undefined_flag \+no_undefined_flag \+hardcode_libdir_flag_spec \+hardcode_libdir_separator \+exclude_expsyms \+include_expsyms \+file_list_spec \+variables_saved_for_relink \+libname_spec \+library_names_spec \+soname_spec \+install_override_mode \+finish_eval \+old_striplib \+striplib; do+ case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in+ *[\\\\\\\`\\"\\\$]*)+ eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes+ ;;+ *)+ eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""+ ;;+ esac+done++# Double-quote double-evaled strings.+for var in reload_cmds \+old_postinstall_cmds \+old_postuninstall_cmds \+old_archive_cmds \+extract_expsyms_cmds \+old_archive_from_new_cmds \+old_archive_from_expsyms_cmds \+archive_cmds \+archive_expsym_cmds \+module_cmds \+module_expsym_cmds \+export_symbols_cmds \+prelink_cmds \+postlink_cmds \+postinstall_cmds \+postuninstall_cmds \+finish_cmds \+sys_lib_search_path_spec \+configure_time_dlsearch_path \+configure_time_lt_sys_library_path; do+ case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in+ *[\\\\\\\`\\"\\\$]*)+ eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes+ ;;+ *)+ eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""+ ;;+ esac+done++ac_aux_dir='$ac_aux_dir'++# See if we are running on zsh, and set the options that allow our+# commands through without removal of \ escapes INIT.+if test -n "\${ZSH_VERSION+set}"; then+ setopt NO_GLOB_SUBST+fi+++ PACKAGE='$PACKAGE'+ VERSION='$VERSION'+ RM='$RM'+ ofile='$ofile'+++++_ACEOF++cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1++# Handling of arguments.+for ac_config_target in $ac_config_targets+do+ case $ac_config_target in+ "c/config.h") CONFIG_HEADERS="$CONFIG_HEADERS c/config.h" ;;+ "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;+ "libarchive-clib.buildinfo") CONFIG_FILES="$CONFIG_FILES libarchive-clib.buildinfo" ;;++ *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;+ esac+done+++# If the user did not use the arguments to specify the items to instantiate,+# then the envvar interface is used. Set only those that are not.+# We use the long form for the default assignment because of an extremely+# bizarre bug on SunOS 4.1.3.+if $ac_need_defaults; then+ test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files+ test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers+ test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands+fi++# Have a temporary directory for convenience. Make it in the build tree+# simply because there is no reason against having it here, and in addition,+# creating and moving files from /tmp can sometimes cause problems.+# Hook for its removal unless debugging.+# Note that there is a small window in which the directory will not be cleaned:+# after its creation but before its name has been assigned to '$tmp'.+$debug ||+{+ tmp= ac_tmp=+ trap 'exit_status=$?+ : "${ac_tmp:=$tmp}"+ { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status+' 0+ trap 'as_fn_exit 1' 1 2 13 15+}+# Create a (secure) tmp directory for tmp files.++{+ tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&+ test -d "$tmp"+} ||+{+ tmp=./conf$$-$RANDOM+ (umask 077 && mkdir "$tmp")+} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5+ac_tmp=$tmp++# Set up the scripts for CONFIG_FILES section.+# No need to generate them if there are no CONFIG_FILES.+# This happens for instance with './config.status config.h'.+if test -n "$CONFIG_FILES"; then+++ac_cr=`echo X | tr X '\015'`+# On cygwin, bash can eat \r inside `` if the user requested igncr.+# But we know of no other shell where ac_cr would be empty at this+# point, so we can use a bashism as a fallback.+if test "x$ac_cr" = x; then+ eval ac_cr=\$\'\\r\'+fi+ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`+if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then+ ac_cs_awk_cr='\\r'+else+ ac_cs_awk_cr=$ac_cr+fi++echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&+_ACEOF+++{+ echo "cat >conf$$subs.awk <<_ACEOF" &&+ echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&+ echo "_ACEOF"+} >conf$$subs.sh ||+ as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5+ac_delim_num=`echo "$ac_subst_vars" | sed -n '$='`+ac_delim='%!_!# '+for ac_last_try in false false false false false :; do+ . ./conf$$subs.sh ||+ as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5++ ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | sed -n '$='`+ if test $ac_delim_n = $ac_delim_num; then+ break+ elif $ac_last_try; then+ as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5+ else+ ac_delim="$ac_delim!$ac_delim _$ac_delim!! "+ fi+done+rm -f conf$$subs.sh++cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1+cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&+_ACEOF+sed -n '+h+s/^/S["/; s/!.*/"]=/+p+g+s/^[^!]*!//+:repl+t repl+s/'"$ac_delim"'$//+t delim+:nl+h+s/\(.\{148\}\)..*/\1/+t more1+s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/+p+n+b repl+:more1+s/["\\]/\\&/g; s/^/"/; s/$/"\\/+p+g+s/.\{148\}//+t nl+:delim+h+s/\(.\{148\}\)..*/\1/+t more2+s/["\\]/\\&/g; s/^/"/; s/$/"/+p+b+:more2+s/["\\]/\\&/g; s/^/"/; s/$/"\\/+p+g+s/.\{148\}//+t delim+' <conf$$subs.awk | sed '+/^[^""]/{+ N+ s/\n//+}+' >>"$CONFIG_STATUS" || ac_write_fail=1+rm -f conf$$subs.awk+cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1+_ACAWK+cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&+ for (key in S) S_is_set[key] = 1+ FS = ""++}+{+ line = $ 0+ nfields = split(line, field, "@")+ substed = 0+ len = length(field[1])+ for (i = 2; i < nfields; i++) {+ key = field[i]+ keylen = length(key)+ if (S_is_set[key]) {+ value = S[key]+ line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)+ len += length(value) + length(field[++i])+ substed = 1+ } else+ len += 1 + keylen+ }++ print line+}++_ACAWK+_ACEOF+cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1+if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then+ sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"+else+ cat+fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \+ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5+_ACEOF++# VPATH may cause trouble with some makes, so we remove sole $(srcdir),+# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and+# trailing colons and then remove the whole line if VPATH becomes empty+# (actually we leave an empty line to preserve line numbers).+if test "x$srcdir" = x.; then+ ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{+h+s///+s/^/:/+s/[ ]*$/:/+s/:\$(srcdir):/:/g+s/:\${srcdir}:/:/g+s/:@srcdir@:/:/g+s/^:*//+s/:*$//+x+s/\(=[ ]*\).*/\1/+G+s/\n//+s/^[^=]*=[ ]*$//+}'+fi++cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1+fi # test -n "$CONFIG_FILES"++# Set up the scripts for CONFIG_HEADERS section.+# No need to generate them if there are no CONFIG_HEADERS.+# This happens for instance with './config.status Makefile'.+if test -n "$CONFIG_HEADERS"; then+cat >"$ac_tmp/defines.awk" <<\_ACAWK ||+BEGIN {+_ACEOF++# Transform confdefs.h into an awk script 'defines.awk', embedded as+# here-document in config.status, that substitutes the proper values into+# config.h.in to produce config.h.++# Create a delimiter string that does not exist in confdefs.h, to ease+# handling of long lines.+ac_delim='%!_!# '+for ac_last_try in false false :; do+ ac_tt=`sed -n "/$ac_delim/p" confdefs.h`+ if test -z "$ac_tt"; then+ break+ elif $ac_last_try; then+ as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5+ else+ ac_delim="$ac_delim!$ac_delim _$ac_delim!! "+ fi+done++# For the awk script, D is an array of macro values keyed by name,+# likewise P contains macro parameters if any. Preserve backslash+# newline sequences.++ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*+sed -n '+s/.\{148\}/&'"$ac_delim"'/g+t rset+:rset+s/^[ ]*#[ ]*define[ ][ ]*/ /+t def+d+:def+s/\\$//+t bsnl+s/["\\]/\\&/g+s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\+D["\1"]=" \3"/p+s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p+d+:bsnl+s/["\\]/\\&/g+s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\+D["\1"]=" \3\\\\\\n"\\/p+t cont+s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p+t cont+d+:cont+n+s/.\{148\}/&'"$ac_delim"'/g+t clear+:clear+s/\\$//+t bsnlc+s/["\\]/\\&/g; s/^/"/; s/$/"/p+d+:bsnlc+s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p+b cont+' <confdefs.h | sed '+s/'"$ac_delim"'/"\\\+"/g' >>"$CONFIG_STATUS" || ac_write_fail=1++cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1+ for (key in D) D_is_set[key] = 1+ FS = ""+}+/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {+ line = \$ 0+ split(line, arg, " ")+ if (arg[1] == "#") {+ defundef = arg[2]+ mac1 = arg[3]+ } else {+ defundef = substr(arg[1], 2)+ mac1 = arg[2]+ }+ split(mac1, mac2, "(") #)+ macro = mac2[1]+ prefix = substr(line, 1, index(line, defundef) - 1)+ if (D_is_set[macro]) {+ suffix = P[macro] D[macro]+ while (suffix ~ /[\t ]$/) {+ suffix = substr(suffix, 1, length(suffix) - 1)+ }+ # Preserve the white space surrounding the "#".+ print prefix "define", macro suffix+ next+ } else {+ # Replace #undef with comments. This is necessary, for example,+ # in the case of _POSIX_SOURCE, which is predefined and required+ # on some systems where configure will not decide to define it.+ if (defundef == "undef") {+ print "/*", prefix defundef, macro, "*/"+ next+ }+ }+}+{ print }+_ACAWK+_ACEOF+cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1+ as_fn_error $? "could not setup config headers machinery" "$LINENO" 5+fi # test -n "$CONFIG_HEADERS"+++eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"+shift+for ac_tag+do+ case $ac_tag in+ :[FHLC]) ac_mode=$ac_tag; continue;;+ esac+ case $ac_mode$ac_tag in+ :[FHL]*:*);;+ :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;+ :[FH]-) ac_tag=-:-;;+ :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;+ esac+ ac_save_IFS=$IFS+ IFS=:+ set x $ac_tag+ IFS=$ac_save_IFS+ shift+ ac_file=$1+ shift++ case $ac_mode in+ :L) ac_source=$1;;+ :[FH])+ ac_file_inputs=+ for ac_f+ do+ case $ac_f in+ -) ac_f="$ac_tmp/stdin";;+ *) # Look for the file first in the build tree, then in the source tree+ # (if the path is not absolute). The absolute path cannot be DOS-style,+ # because $ac_f cannot contain ':'.+ test -f "$ac_f" ||+ case $ac_f in+ [\\/$]*) false;;+ *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;+ esac ||+ as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;+ esac+ case $ac_f in *\'*) ac_f=`printf '%s\n' "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac+ as_fn_append ac_file_inputs " '$ac_f'"+ done++ # Let's still pretend it is 'configure' which instantiates (i.e., don't+ # use $as_me), people would be surprised to read:+ # /* config.h. Generated by config.status. */+ configure_input='Generated from '`+ printf '%s\n' "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'+ `' by configure.'+ if test x"$ac_file" != x-; then+ configure_input="$ac_file. $configure_input"+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5+printf '%s\n' "$as_me: creating $ac_file" >&6;}+ fi+ # Neutralize special characters interpreted by sed in replacement strings.+ case $configure_input in #(+ *\&* | *\|* | *\\* )+ ac_sed_conf_input=`printf '%s\n' "$configure_input" |+ sed 's/[\\\\&|]/\\\\&/g'`;; #(+ *) ac_sed_conf_input=$configure_input;;+ esac++ case $ac_tag in+ *:-:* | *:-) cat >"$ac_tmp/stdin" \+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;+ esac+ ;;+ esac++ ac_dir=`$as_dirname -- "$ac_file" ||+$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \+ X"$ac_file" : 'X\(//\)[^/]' \| \+ X"$ac_file" : 'X\(//\)$' \| \+ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||+printf '%s\n' X"$ac_file" |+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{+ s//\1/+ q+ }+ /^X\(\/\/\)[^/].*/{+ s//\1/+ q+ }+ /^X\(\/\/\)$/{+ s//\1/+ q+ }+ /^X\(\/\).*/{+ s//\1/+ q+ }+ s/.*/./; q'`+ as_dir="$ac_dir"; as_fn_mkdir_p+ ac_builddir=.++case "$ac_dir" in+.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;+*)+ ac_dir_suffix=/`printf '%s\n' "$ac_dir" | sed 's|^\.[\\/]||'`+ # A ".." for each directory in $ac_dir_suffix.+ ac_top_builddir_sub=`printf '%s\n' "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`+ case $ac_top_builddir_sub in+ "") ac_top_builddir_sub=. ac_top_build_prefix= ;;+ *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;+ esac ;;+esac+ac_abs_top_builddir=$ac_pwd+ac_abs_builddir=$ac_pwd$ac_dir_suffix+# for backward compatibility:+ac_top_builddir=$ac_top_build_prefix++case $srcdir in+ .) # We are building in place.+ ac_srcdir=.+ ac_top_srcdir=$ac_top_builddir_sub+ ac_abs_top_srcdir=$ac_pwd ;;+ [\\/]* | ?:[\\/]* ) # Absolute name.+ ac_srcdir=$srcdir$ac_dir_suffix;+ ac_top_srcdir=$srcdir+ ac_abs_top_srcdir=$srcdir ;;+ *) # Relative name.+ ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix+ ac_top_srcdir=$ac_top_build_prefix$srcdir+ ac_abs_top_srcdir=$ac_pwd/$srcdir ;;+esac+ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix+++ case $ac_mode in+ :F)+ #+ # CONFIG_FILE+ #++ ac_MKDIR_P=$MKDIR_P+ case $MKDIR_P in+ [\\/$]* | ?:[\\/]* ) ;;+ */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;+ esac+_ACEOF++cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1+# If the template does not know about datarootdir, expand it.+# FIXME: This hack should be removed a few years after 2.60.+ac_datarootdir_hack=; ac_datarootdir_seen=+ac_sed_dataroot='+/datarootdir/ {+ p+ q+}+/@datadir@/p+/@docdir@/p+/@infodir@/p+/@localedir@/p+/@mandir@/p'+case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in+*datarootdir*) ac_datarootdir_seen=yes;;+*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5+printf '%s\n' "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}+_ACEOF+cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1+ ac_datarootdir_hack='+ s&@datadir@&$datadir&g+ s&@docdir@&$docdir&g+ s&@infodir@&$infodir&g+ s&@localedir@&$localedir&g+ s&@mandir@&$mandir&g+ s&\\\${datarootdir}&$datarootdir&g' ;;+esac+_ACEOF++# Neutralize VPATH when '$srcdir' = '.'.+# Shell code in configure.ac might set extrasub.+# FIXME: do we really want to maintain this feature?+cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1+ac_sed_extra="$ac_vpsub+$extrasub+_ACEOF+cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1+:t+/@[a-zA-Z_][a-zA-Z_0-9]*@/!b+s|@configure_input@|$ac_sed_conf_input|;t t+s&@top_builddir@&$ac_top_builddir_sub&;t t+s&@top_build_prefix@&$ac_top_build_prefix&;t t+s&@srcdir@&$ac_srcdir&;t t+s&@abs_srcdir@&$ac_abs_srcdir&;t t+s&@top_srcdir@&$ac_top_srcdir&;t t+s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t+s&@builddir@&$ac_builddir&;t t+s&@abs_builddir@&$ac_abs_builddir&;t t+s&@abs_top_builddir@&$ac_abs_top_builddir&;t t+s&@MKDIR_P@&$ac_MKDIR_P&;t t+$ac_datarootdir_hack+"+eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \+ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5++test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&+ { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&+ { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \+ "$ac_tmp/out"`; test -z "$ac_out"; } &&+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'+which seems to be undefined. Please make sure it is defined" >&5+printf '%s\n' "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'+which seems to be undefined. Please make sure it is defined" >&2;}++ rm -f "$ac_tmp/stdin"+ case $ac_file in+ -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;+ *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;+ esac \+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5+ ;;+ :H)+ #+ # CONFIG_HEADER+ #+ if test x"$ac_file" != x-; then+ {+ printf '%s\n' "/* $configure_input */" >&1 \+ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"+ } >"$ac_tmp/config.h" \+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5+ if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5+printf '%s\n' "$as_me: $ac_file is unchanged" >&6;}+ else+ rm -f "$ac_file"+ mv "$ac_tmp/config.h" "$ac_file" \+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5+ fi+ else+ printf '%s\n' "/* $configure_input */" >&1 \+ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \+ || as_fn_error $? "could not create -" "$LINENO" 5+ fi+ ;;++ :C) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5+printf '%s\n' "$as_me: executing $ac_file commands" >&6;}+ ;;+ esac+++ case $ac_file$ac_mode in+ "libtool":C)++ # See if we are running on zsh, and set the options that allow our+ # commands through without removal of \ escapes.+ if test -n "${ZSH_VERSION+set}"; then+ setopt NO_GLOB_SUBST+ fi++ cfgfile=${ofile}T+ trap "$RM \"$cfgfile\"; exit 1" 1 2 15+ $RM "$cfgfile"++ cat <<_LT_EOF >> "$cfgfile"+#! $SHELL+# Generated automatically by $as_me ($PACKAGE) $VERSION+# NOTE: Changes made to this file will be lost: look at ltmain.sh.++# Provide generalized library-building support services.+# Written by Gordon Matzigkeit, 1996++# Copyright (C) 2024 Free Software Foundation, Inc.+# This is free software; see the source for copying conditions. There is NO+# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.++# GNU Libtool is free software; you can redistribute it and/or modify+# it under the terms of the GNU General Public License as published by+# the Free Software Foundation; either version 2 of the License, or+# (at your option) any later version.+#+# As a special exception to the GNU General Public License, if you+# distribute this file as part of a program or library that is built+# using GNU Libtool, you may include this file under the same+# distribution terms that you use for the rest of that program.+#+# GNU Libtool is distributed in the hope that it will be useful, but+# WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program. If not, see <http://www.gnu.org/licenses/>.+++# The names of the tagged configurations supported by this script.+available_tags=''++# Configured defaults for sys_lib_dlsearch_path munging.+: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}++# ### BEGIN LIBTOOL CONFIG++# Which release of libtool.m4 was used?+macro_version=$macro_version+macro_revision=$macro_revision++# Assembler program.+AS=$lt_AS++# DLL creation program.+DLLTOOL=$lt_DLLTOOL++# Object dumper program.+OBJDUMP=$lt_OBJDUMP++# Whether or not to build shared libraries.+build_libtool_libs=$enable_shared++# Whether or not to build static libraries.+build_old_libs=$enable_static++# What type of objects to build.+pic_mode=$pic_mode++# Whether or not to optimize for fast installation.+fast_install=$enable_fast_install++# Shared archive member basename,for filename based shared library versioning on AIX.+shared_archive_member_spec=$shared_archive_member_spec++# Shell to use when invoking shell scripts.+SHELL=$lt_SHELL++# An echo program that protects backslashes.+ECHO=$lt_ECHO++# The PATH separator for the build system.+PATH_SEPARATOR=$lt_PATH_SEPARATOR++# The host system.+host_alias=$host_alias+host=$host+host_os=$host_os++# The build system.+build_alias=$build_alias+build=$build+build_os=$build_os++# A sed program that does not truncate output.+SED=$lt_SED++# Sed that helps us avoid accidentally triggering echo(1) options like -n.+Xsed="\$SED -e 1s/^X//"++# A grep program that handles long lines.+GREP=$lt_GREP++# An ERE matcher.+EGREP=$lt_EGREP++# A literal string matcher.+FGREP=$lt_FGREP++# A BSD- or MS-compatible name lister.+NM=$lt_NM++# Whether we need soft or hard links.+LN_S=$lt_LN_S++# What is the maximum length of a command?+max_cmd_len=$max_cmd_len++# Object file suffix (normally "o").+objext=$ac_objext++# Executable file suffix (normally "").+exeext=$exeext++# whether the shell understands "unset".+lt_unset=$lt_unset++# turn spaces into newlines.+SP2NL=$lt_lt_SP2NL++# turn newlines into spaces.+NL2SP=$lt_lt_NL2SP++# convert \$build file names to \$host format.+to_host_file_cmd=$lt_cv_to_host_file_cmd++# convert \$build files to toolchain format.+to_tool_file_cmd=$lt_cv_to_tool_file_cmd++# A file(cmd) program that detects file types.+FILECMD=$lt_FILECMD++# Method to check whether dependent libraries are shared objects.+deplibs_check_method=$lt_deplibs_check_method++# Command to use when deplibs_check_method = "file_magic".+file_magic_cmd=$lt_file_magic_cmd++# How to find potential files when deplibs_check_method = "file_magic".+file_magic_glob=$lt_file_magic_glob++# Find potential files using nocaseglob when deplibs_check_method = "file_magic".+want_nocaseglob=$lt_want_nocaseglob++# Command to associate shared and link libraries.+sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd++# The archiver.+AR=$lt_AR++# Flags to create an archive (by configure).+lt_ar_flags=$lt_ar_flags++# Flags to create an archive.+AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}++# How to feed a file listing to the archiver.+archiver_list_spec=$lt_archiver_list_spec++# A symbol stripping program.+STRIP=$lt_STRIP++# Commands used to install an old-style archive.+RANLIB=$lt_RANLIB+old_postinstall_cmds=$lt_old_postinstall_cmds+old_postuninstall_cmds=$lt_old_postuninstall_cmds++# Whether to use a lock for old archive extraction.+lock_old_archive_extraction=$lock_old_archive_extraction++# A C compiler.+LTCC=$lt_CC++# LTCC compiler flags.+LTCFLAGS=$lt_CFLAGS++# Take the output of nm and produce a listing of raw symbols and C names.+global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe++# Transform the output of nm in a proper C declaration.+global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl++# Transform the output of nm into a list of symbols to manually relocate.+global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import++# Transform the output of nm in a C name address pair.+global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address++# Transform the output of nm in a C name address pair when lib prefix is needed.+global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix++# The name lister interface.+nm_interface=$lt_lt_cv_nm_interface++# Specify filename containing input files for \$NM.+nm_file_list_spec=$lt_nm_file_list_spec++# The root where to search for dependent libraries,and where our libraries should be installed.+lt_sysroot=$lt_sysroot++# Command to truncate a binary pipe.+lt_truncate_bin=$lt_lt_cv_truncate_bin++# The name of the directory that contains temporary libtool files.+objdir=$objdir++# Used to examine libraries when file_magic_cmd begins with "file".+MAGIC_CMD=$MAGIC_CMD++# Must we lock files when doing compilation?+need_locks=$lt_need_locks++# Manifest tool.+MANIFEST_TOOL=$lt_MANIFEST_TOOL++# Tool to manipulate archived DWARF debug symbol files on Mac OS X.+DSYMUTIL=$lt_DSYMUTIL++# Tool to change global to local symbols on Mac OS X.+NMEDIT=$lt_NMEDIT++# Tool to manipulate fat objects and archives on Mac OS X.+LIPO=$lt_LIPO++# ldd/readelf like tool for Mach-O binaries on Mac OS X.+OTOOL=$lt_OTOOL++# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.+OTOOL64=$lt_OTOOL64++# Old archive suffix (normally "a").+libext=$libext++# Shared library suffix (normally ".so").+shrext_cmds=$lt_shrext_cmds++# The commands to extract the exported symbol list from a shared archive.+extract_expsyms_cmds=$lt_extract_expsyms_cmds++# Variables whose values should be saved in libtool wrapper scripts and+# restored at link time.+variables_saved_for_relink=$lt_variables_saved_for_relink++# Do we need the "lib" prefix for modules?+need_lib_prefix=$need_lib_prefix++# Do we need a version for libraries?+need_version=$need_version++# Library versioning type.+version_type=$version_type++# Shared library runtime path variable.+runpath_var=$runpath_var++# Shared library path variable.+shlibpath_var=$shlibpath_var++# Is shlibpath searched before the hard-coded library search path?+shlibpath_overrides_runpath=$shlibpath_overrides_runpath++# Format of library name prefix.+libname_spec=$lt_libname_spec++# List of archive names. First name is the real one, the rest are links.+# The last name is the one that the linker finds with -lNAME+library_names_spec=$lt_library_names_spec++# The coded name of the library, if different from the real name.+soname_spec=$lt_soname_spec++# Permission mode override for installation of shared libraries.+install_override_mode=$lt_install_override_mode++# Command to use after installation of a shared archive.+postinstall_cmds=$lt_postinstall_cmds++# Command to use after uninstallation of a shared archive.+postuninstall_cmds=$lt_postuninstall_cmds++# Commands used to finish a libtool library installation in a directory.+finish_cmds=$lt_finish_cmds++# As "finish_cmds", except a single script fragment to be evaled but+# not shown.+finish_eval=$lt_finish_eval++# Whether we should hardcode library paths into libraries.+hardcode_into_libs=$hardcode_into_libs++# Compile-time system search path for libraries.+sys_lib_search_path_spec=$lt_sys_lib_search_path_spec++# Detected run-time system search path for libraries.+sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path++# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.+configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path++# Whether dlopen is supported.+dlopen_support=$enable_dlopen++# Whether dlopen of programs is supported.+dlopen_self=$enable_dlopen_self++# Whether dlopen of statically linked programs is supported.+dlopen_self_static=$enable_dlopen_self_static++# Commands to strip libraries.+old_striplib=$lt_old_striplib+striplib=$lt_striplib+++# The linker used to build libraries.+LD=$lt_LD++# How to create reloadable object files.+reload_flag=$lt_reload_flag+reload_cmds=$lt_reload_cmds++# Commands used to build an old-style archive.+old_archive_cmds=$lt_old_archive_cmds++# A language specific compiler.+CC=$lt_compiler++# Is the compiler the GNU compiler?+with_gcc=$GCC++# Compiler flag to turn off builtin functions.+no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag++# Additional compiler flags for building library objects.+pic_flag=$lt_lt_prog_compiler_pic++# How to pass a linker flag through the compiler.+wl=$lt_lt_prog_compiler_wl++# Compiler flag to prevent dynamic linking.+link_static_flag=$lt_lt_prog_compiler_static++# Does compiler simultaneously support -c and -o options?+compiler_c_o=$lt_lt_cv_prog_compiler_c_o++# Whether or not to add -lc for building shared libraries.+build_libtool_need_lc=$archive_cmds_need_lc++# Whether or not to disallow shared libs when runtime libs are static.+allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes++# Compiler flag to allow reflexive dlopens.+export_dynamic_flag_spec=$lt_export_dynamic_flag_spec++# Compiler flag to generate shared objects directly from archives.+whole_archive_flag_spec=$lt_whole_archive_flag_spec++# Whether the compiler copes with passing no objects directly.+compiler_needs_object=$lt_compiler_needs_object++# Create an old-style archive from a shared archive.+old_archive_from_new_cmds=$lt_old_archive_from_new_cmds++# Create a temporary old-style archive to link instead of a shared archive.+old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds++# Commands used to build a shared archive.+archive_cmds=$lt_archive_cmds+archive_expsym_cmds=$lt_archive_expsym_cmds++# Commands used to build a loadable module if different from building+# a shared archive.+module_cmds=$lt_module_cmds+module_expsym_cmds=$lt_module_expsym_cmds++# Whether we are building with GNU ld or not.+with_gnu_ld=$lt_with_gnu_ld++# Flag that allows shared libraries with undefined symbols to be built.+allow_undefined_flag=$lt_allow_undefined_flag++# Flag that enforces no undefined symbols.+no_undefined_flag=$lt_no_undefined_flag++# Flag to hardcode \$libdir into a binary during linking.+# This must work even if \$libdir does not exist+hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec++# Whether we need a single "-rpath" flag with a separated argument.+hardcode_libdir_separator=$lt_hardcode_libdir_separator++# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes+# DIR into the resulting binary.+hardcode_direct=$hardcode_direct++# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes+# DIR into the resulting binary and the resulting library dependency is+# "absolute",i.e. impossible to change by setting \$shlibpath_var if the+# library is relocated.+hardcode_direct_absolute=$hardcode_direct_absolute++# Set to "yes" if using the -LDIR flag during linking hardcodes DIR+# into the resulting binary.+hardcode_minus_L=$hardcode_minus_L++# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR+# into the resulting binary.+hardcode_shlibpath_var=$hardcode_shlibpath_var++# Set to "yes" if building a shared library automatically hardcodes DIR+# into the library and all subsequent libraries and executables linked+# against it.+hardcode_automatic=$hardcode_automatic++# Set to yes if linker adds runtime paths of dependent libraries+# to runtime path list.+inherit_rpath=$inherit_rpath++# Whether libtool must link a program against all its dependency libraries.+link_all_deplibs=$link_all_deplibs++# Set to "yes" if exported symbols are required.+always_export_symbols=$always_export_symbols++# The commands to list exported symbols.+export_symbols_cmds=$lt_export_symbols_cmds++# Symbols that should not be listed in the preloaded symbols.+exclude_expsyms=$lt_exclude_expsyms++# Symbols that must always be exported.+include_expsyms=$lt_include_expsyms++# Commands necessary for linking programs (against libraries) with templates.+prelink_cmds=$lt_prelink_cmds++# Commands necessary for finishing linking programs.+postlink_cmds=$lt_postlink_cmds++# Specify filename containing input files.+file_list_spec=$lt_file_list_spec++# How to hardcode a shared library path into an executable.+hardcode_action=$hardcode_action++# ### END LIBTOOL CONFIG++_LT_EOF++ cat <<'_LT_EOF' >> "$cfgfile"++# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE++# func_munge_path_list VARIABLE PATH+# -----------------------------------+# VARIABLE is name of variable containing _space_ separated list of+# directories to be munged by the contents of PATH, which is string+# having a format:+# "DIR[:DIR]:"+# string "DIR[ DIR]" will be prepended to VARIABLE+# ":DIR[:DIR]"+# string "DIR[ DIR]" will be appended to VARIABLE+# "DIRP[:DIRP]::[DIRA:]DIRA"+# string "DIRP[ DIRP]" will be prepended to VARIABLE and string+# "DIRA[ DIRA]" will be appended to VARIABLE+# "DIR[:DIR]"+# VARIABLE will be replaced by "DIR[ DIR]"+func_munge_path_list ()+{+ case x$2 in+ x)+ ;;+ *:)+ eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"+ ;;+ x:*)+ eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"+ ;;+ *::*)+ eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"+ eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"+ ;;+ *)+ eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"+ ;;+ esac+}+++# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.+func_cc_basename ()+{+ for cc_temp in $*""; do+ case $cc_temp in+ compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;+ distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;+ \-*) ;;+ *) break;;+ esac+ done+ func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`+}+++# ### END FUNCTIONS SHARED WITH CONFIGURE++_LT_EOF++ case $host_os in+ aix3*)+ cat <<\_LT_EOF >> "$cfgfile"+# AIX sometimes has problems with the GCC collect2 program. For some+# reason, if we set the COLLECT_NAMES environment variable, the problems+# vanish in a puff of smoke.+if test set != "${COLLECT_NAMES+set}"; then+ COLLECT_NAMES=+ export COLLECT_NAMES+fi+_LT_EOF+ ;;+ esac++++ltmain=$ac_aux_dir/ltmain.sh+++ # We use sed instead of cat because bash on DJGPP gets confused if+ # if finds mixed CR/LF and LF-only lines. Since sed operates in+ # text mode, it properly converts lines to CR/LF. This bash problem+ # is reportedly fixed, but why not run on old versions too?+ $SED '$q' "$ltmain" >> "$cfgfile" \+ || (rm -f "$cfgfile"; exit 1)++ mv -f "$cfgfile" "$ofile" ||+ (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")+ chmod +x "$ofile"++ ;;++ esac+done # for ac_tag+++as_fn_exit 0+_ACEOF+ac_clean_CONFIG_STATUS=++test $ac_write_fail = 0 ||+ as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5+++# configure is writing to config.log, and then calls config.status.+# config.status does its own redirection, appending to config.log.+# Unfortunately, on DOS this fails, as config.log is still kept open+# by configure, so config.status won't be able to write to it; its+# output is simply discarded. So we exec the FD to /dev/null,+# effectively closing config.log, so it can be properly (re)opened and+# appended to by config.status. When coming back to configure, we+# need to make the FD available again.+if test "$no_create" != yes; then+ ac_cs_success=:+ case $CONFIG_STATUS in #(+ -*) :+ ac_no_opts=-- ;; #(+ *) :+ ac_no_opts= ;;+esac+ ac_config_status_args=+ test "$silent" = yes &&+ ac_config_status_args="$ac_config_status_args --quiet"+ exec 5>/dev/null+ $SHELL $ac_no_opts "$CONFIG_STATUS" $ac_config_status_args ||+ ac_cs_success=false+ exec 5>>config.log+ # Use ||, not &&, to avoid exiting from the if with $? = 1, which+ # would make configure fail if this is the last instruction.+ $ac_cs_success || as_fn_exit 1+fi+if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5+printf '%s\n' "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi
libarchive-clib.cabal view
@@ -1,9 +1,9 @@-cabal-version: 2.0+cabal-version: 3.8 name: libarchive-clib -- this is actually corresponding to upstream's 3.8.6, -- but we had to fix configure.ac and PVP has no patch versions-version: 3.8.7-license: OtherLicense+version: 3.8.8+license: BSD-2-Clause license-file: LICENSE copyright: Copyright: (c) 2018-2020 Vanessa McHale maintainer: vamchale@gmail.com@@ -80,6 +80,8 @@ default-language: Haskell2010 if os(windows) cc-options: -U__GCC_ASM_FLAG_OUTPUTS__+ extra-libraries: bcrypt+ extra-libraries-static: bcrypt if arch(i386) cc-options: -D_Alignas(t)=__attribute__((__aligned__(t)))