• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Revision516b62eb709689f9d6f91edbed871c57d2d44b7f (tree)
Time2005-04-29 23:39:21
AuthorPaul Brook <paul@code...>
CommiterPaul Brook

Log Message

2005-04-29 Paul Brook <paul@codesourcery.com>

* sim/common/callback.c (PIPE_BUF): Provide default refinition.
(os_lstat): Use stat if lstat is not available on the host.
(os_ftruncate): Return EINVAL if not available on the host.
(os_truncate): Ditto.
* sim/common/configure.ac: Check for lstat, truncate and ftruncate.
* sim/common/configure: Regenerate.
* sim/common/config.in: Regenerate.

Change Summary

Incremental Difference

--- a/ChangeLog.csl
+++ b/ChangeLog.csl
@@ -1,5 +1,15 @@
11 2005-04-29 Paul Brook <paul@codesourcery.com>
22
3+ * sim/common/callback.c (PIPE_BUF): Provide default refinition.
4+ (os_lstat): Use stat if lstat is not available on the host.
5+ (os_ftruncate): Return EINVAL if not available on the host.
6+ (os_truncate): Ditto.
7+ * sim/common/configure.ac: Check for lstat, truncate and ftruncate.
8+ * sim/common/configure: Regenerate.
9+ * sim/common/config.in: Regenerate.
10+
11+2005-04-29 Paul Brook <paul@codesourcery.com>
12+
313 * gdb/remote-sim.c (SIGTRAP): Provide default defnition.
414 * gdb/signals/signals.c (SIGRAP): Ditto.
515
--- a/sim/common/callback.c
+++ b/sim/common/callback.c
@@ -60,6 +60,10 @@
6060 #include <unistd.h>
6161 #endif
6262
63+#ifndef PIPE_BUF
64+#define PIPE_BUF 512
65+#endif
66+
6367 /* ??? sim_cb_printf should be cb_printf, but until the callback support is
6468 broken out of the simulator directory, these are here to not require
6569 sim-utils.h. */
@@ -577,7 +581,11 @@ os_lstat (p, file, buf)
577581 struct stat *buf;
578582 {
579583 /* NOTE: hpn/2004-12-12: Same issue here as with os_fstat. */
584+#ifdef HAVE_LSTAT
580585 return wrap (p, lstat (file, buf));
586+#else
587+ return wrap (p, stat (file, buf));
588+#endif
581589 }
582590
583591 static int
@@ -596,7 +604,12 @@ os_ftruncate (p, fd, len)
596604 }
597605 if (result)
598606 return result;
607+#ifdef HAVE_FTRUNCATE
599608 result = wrap (p, ftruncate (fdmap (p, fd), len));
609+#else
610+ p->last_errno = EINVAL;
611+ result = -1;
612+#endif
600613 return result;
601614 }
602615
@@ -606,7 +619,12 @@ os_truncate (p, file, len)
606619 const char *file;
607620 long len;
608621 {
622+#ifdef HAVE_TRUNCATE
609623 return wrap (p, truncate (file, len));
624+#else
625+ p->last_errno = EINVAL;
626+ return -1;
627+#endif
610628 }
611629
612630 static int
--- a/sim/common/config.in
+++ b/sim/common/config.in
@@ -1,222 +1,267 @@
1-/* config.in. Generated automatically from configure.in by autoheader. */
1+/* config.in. Generated from configure.ac by autoheader. */
22
3-/* Define if using alloca.c. */
4-#undef C_ALLOCA
3+/* Define to 1 if NLS is requested. */
4+#undef ENABLE_NLS
55
6-/* Define to empty if the keyword does not work. */
7-#undef const
6+/* Define as 1 if you have catgets and don't want to use GNU gettext. */
7+#undef HAVE_CATGETS
8+
9+/* Define as 1 if you have gettext and don't want to use GNU gettext. */
10+#undef HAVE_GETTEXT
11+
12+/* Define as 1 if you have the stpcpy function. */
13+#undef HAVE_STPCPY
14+
15+/* Define if your locale.h file contains LC_MESSAGES. */
16+#undef HAVE_LC_MESSAGES
817
9-/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems.
10- This function is required for alloca.c support on those systems. */
18+/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
19+ systems. This function is required for `alloca.c' support on those systems.
20+ */
1121 #undef CRAY_STACKSEG_END
1222
13-/* Define if you have alloca, as a function or macro. */
23+/* Define to 1 if using `alloca.c'. */
24+#undef C_ALLOCA
25+
26+/* Define to 1 if NLS is requested */
27+#undef ENABLE_NLS
28+
29+/* Define to 1 if you have `alloca', as a function or macro. */
1430 #undef HAVE_ALLOCA
1531
16-/* Define if you have <alloca.h> and it should be used (not on Ultrix). */
32+/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
33+ */
1734 #undef HAVE_ALLOCA_H
1835
19-/* Define if you have a working `mmap' system call. */
20-#undef HAVE_MMAP
36+/* Define to 1 if you have the <argz.h> header file. */
37+#undef HAVE_ARGZ_H
2138
22-/* Define as __inline if that's what the C compiler calls it. */
23-#undef inline
39+/* Define to 1 if you have the `dcgettext' function. */
40+#undef HAVE_DCGETTEXT
2441
25-/* Define to `long' if <sys/types.h> doesn't define. */
26-#undef off_t
42+/* Define to 1 if you have the <dlfcn.h> header file. */
43+#undef HAVE_DLFCN_H
2744
28-/* Define if you need to in order for stat and other things to work. */
29-#undef _POSIX_SOURCE
45+/* Define to 1 if you have the <errno.h> header file. */
46+#undef HAVE_ERRNO_H
3047
31-/* Define as the return type of signal handlers (int or void). */
32-#undef RETSIGTYPE
48+/* Define to 1 if you have the <fcntl.h> header file. */
49+#undef HAVE_FCNTL_H
3350
34-/* Define to `unsigned' if <sys/types.h> doesn't define. */
35-#undef size_t
51+/* Define to 1 if you have the <fpu_control.h> header file. */
52+#undef HAVE_FPU_CONTROL_H
3653
37-/* If using the C implementation of alloca, define if you know the
38- direction of stack growth for your system; otherwise it will be
39- automatically deduced at run-time.
40- STACK_DIRECTION > 0 => grows toward higher addresses
41- STACK_DIRECTION < 0 => grows toward lower addresses
42- STACK_DIRECTION = 0 => direction of growth unknown
43- */
44-#undef STACK_DIRECTION
54+/* Define to 1 if you have the `ftruncate' function. */
55+#undef HAVE_FTRUNCATE
4556
46-/* Define if you have the ANSI C header files. */
47-#undef STDC_HEADERS
57+/* Define to 1 if you have the `getcwd' function. */
58+#undef HAVE_GETCWD
4859
49-/* Define to 1 if NLS is requested. */
50-#undef ENABLE_NLS
60+/* Define to 1 if you have the `getpagesize' function. */
61+#undef HAVE_GETPAGESIZE
5162
52-/* Define as 1 if you have gettext and don't want to use GNU gettext. */
63+/* Define to 1 if you have the `getrusage' function. */
64+#undef HAVE_GETRUSAGE
65+
66+/* Define as 1 if you have gettext and don't want to use GNU gettext. */
5367 #undef HAVE_GETTEXT
5468
55-/* Define as 1 if you have the stpcpy function. */
56-#undef HAVE_STPCPY
69+/* Define to 1 if you have the <inttypes.h> header file. */
70+#undef HAVE_INTTYPES_H
5771
58-/* Define if your locale.h file contains LC_MESSAGES. */
72+/* Define if your locale.h file contains LC_MESSAGES. */
5973 #undef HAVE_LC_MESSAGES
6074
61-/* Define if you have the __argz_count function. */
62-#undef HAVE___ARGZ_COUNT
63-
64-/* Define if you have the __argz_next function. */
65-#undef HAVE___ARGZ_NEXT
75+/* Define to 1 if you have the `nsl' library (-lnsl). */
76+#undef HAVE_LIBNSL
6677
67-/* Define if you have the __argz_stringify function. */
68-#undef HAVE___ARGZ_STRINGIFY
78+/* Define to 1 if you have the `socket' library (-lsocket). */
79+#undef HAVE_LIBSOCKET
6980
70-/* Define if you have the __setfpucw function. */
71-#undef HAVE___SETFPUCW
81+/* Define to 1 if you have the <limits.h> header file. */
82+#undef HAVE_LIMITS_H
7283
73-/* Define if you have the dcgettext function. */
74-#undef HAVE_DCGETTEXT
84+/* Define to 1 if you have the <locale.h> header file. */
85+#undef HAVE_LOCALE_H
7586
76-/* Define if you have the getcwd function. */
77-#undef HAVE_GETCWD
87+/* Define to 1 if you have the `lstat' function. */
88+#undef HAVE_LSTAT
7889
79-/* Define if you have the getpagesize function. */
80-#undef HAVE_GETPAGESIZE
90+/* Define to 1 if you have the <malloc.h> header file. */
91+#undef HAVE_MALLOC_H
8192
82-/* Define if you have the getrusage function. */
83-#undef HAVE_GETRUSAGE
93+/* Define to 1 if you have the <memory.h> header file. */
94+#undef HAVE_MEMORY_H
8495
85-/* Define if you have the mmap function. */
96+/* Define to 1 if you have the `mmap' function. */
8697 #undef HAVE_MMAP
8798
88-/* Define if you have the munmap function. */
99+/* Define to 1 if you have the `munmap' function. */
89100 #undef HAVE_MUNMAP
90101
91-/* Define if you have the putenv function. */
102+/* Define to 1 if you have the <nl_types.h> header file. */
103+#undef HAVE_NL_TYPES_H
104+
105+/* Define to 1 if you have the `putenv' function. */
92106 #undef HAVE_PUTENV
93107
94-/* Define if you have the setenv function. */
108+/* Define to 1 if you have the `setenv' function. */
95109 #undef HAVE_SETENV
96110
97-/* Define if you have the setlocale function. */
111+/* Define to 1 if you have the `setlocale' function. */
98112 #undef HAVE_SETLOCALE
99113
100-/* Define if you have the sigaction function. */
114+/* Define to 1 if you have the `sigaction' function. */
101115 #undef HAVE_SIGACTION
102116
103-/* Define if you have the stpcpy function. */
117+/* Define to 1 if you have the <stdint.h> header file. */
118+#undef HAVE_STDINT_H
119+
120+/* Define to 1 if you have the <stdlib.h> header file. */
121+#undef HAVE_STDLIB_H
122+
123+/* Define if you have the stpcpy function */
104124 #undef HAVE_STPCPY
105125
106-/* Define if you have the strcasecmp function. */
126+/* Define to 1 if you have the `strcasecmp' function. */
107127 #undef HAVE_STRCASECMP
108128
109-/* Define if you have the strchr function. */
129+/* Define to 1 if you have the `strchr' function. */
110130 #undef HAVE_STRCHR
111131
112-/* Define if you have the time function. */
113-#undef HAVE_TIME
132+/* Define to 1 if you have the <strings.h> header file. */
133+#undef HAVE_STRINGS_H
114134
115-/* Define if you have the <argz.h> header file. */
116-#undef HAVE_ARGZ_H
135+/* Define to 1 if you have the <string.h> header file. */
136+#undef HAVE_STRING_H
117137
118-/* Define if you have the <dlfcn.h> header file. */
119-#undef HAVE_DLFCN_H
138+/* Define to 1 if st_atime is a member of struct stat. */
139+#undef HAVE_STRUCT_STAT_ST_ATIME
120140
121-/* Define if you have the <errno.h> header file. */
122-#undef HAVE_ERRNO_H
141+/* Define to 1 if st_blksize is a member of struct stat. */
142+#undef HAVE_STRUCT_STAT_ST_BLKSIZE
123143
124-/* Define if you have the <fcntl.h> header file. */
125-#undef HAVE_FCNTL_H
144+/* Define to 1 if st_blocks is a member of struct stat. */
145+#undef HAVE_STRUCT_STAT_ST_BLOCKS
126146
127-/* Define if you have the <fpu_control.h> header file. */
128-#undef HAVE_FPU_CONTROL_H
147+/* Define to 1 if st_ctime is a member of struct stat. */
148+#undef HAVE_STRUCT_STAT_ST_CTIME
129149
130-/* Define if you have the <limits.h> header file. */
131-#undef HAVE_LIMITS_H
150+/* Define to 1 if st_dev is a member of struct stat. */
151+#undef HAVE_STRUCT_STAT_ST_DEV
132152
133-/* Define if you have the <locale.h> header file. */
134-#undef HAVE_LOCALE_H
153+/* Define to 1 if st_gid is a member of struct stat. */
154+#undef HAVE_STRUCT_STAT_ST_GID
135155
136-/* Define if you have the <malloc.h> header file. */
137-#undef HAVE_MALLOC_H
156+/* Define to 1 if st_ino is a member of struct stat. */
157+#undef HAVE_STRUCT_STAT_ST_INO
138158
139-/* Define if you have the <nl_types.h> header file. */
140-#undef HAVE_NL_TYPES_H
159+/* Define to 1 if st_mode is a member of struct stat. */
160+#undef HAVE_STRUCT_STAT_ST_MODE
141161
142-/* Define if you have the <stdlib.h> header file. */
143-#undef HAVE_STDLIB_H
162+/* Define to 1 if st_mtime is a member of struct stat. */
163+#undef HAVE_STRUCT_STAT_ST_MTIME
144164
145-/* Define if you have the <string.h> header file. */
146-#undef HAVE_STRING_H
165+/* Define to 1 if st_nlink is a member of struct stat. */
166+#undef HAVE_STRUCT_STAT_ST_NLINK
147167
148-/* Define if you have the <strings.h> header file. */
149-#undef HAVE_STRINGS_H
168+/* Define to 1 if st_rdev is a member of struct stat. */
169+#undef HAVE_STRUCT_STAT_ST_RDEV
150170
151-/* Define if you have the <sys/mman.h> header file. */
171+/* Define to 1 if st_size is a member of struct stat. */
172+#undef HAVE_STRUCT_STAT_ST_SIZE
173+
174+/* Define to 1 if st_uid is a member of struct stat. */
175+#undef HAVE_STRUCT_STAT_ST_UID
176+
177+/* Define to 1 if you have the <sys/mman.h> header file. */
152178 #undef HAVE_SYS_MMAN_H
153179
154-/* Define if you have the <sys/param.h> header file. */
180+/* Define to 1 if you have the <sys/param.h> header file. */
155181 #undef HAVE_SYS_PARAM_H
156182
157-/* Define if you have the <sys/resource.h> header file. */
183+/* Define to 1 if you have the <sys/resource.h> header file. */
158184 #undef HAVE_SYS_RESOURCE_H
159185
160-/* Define if you have the <sys/stat.h> header file. */
186+/* Define to 1 if you have the <sys/stat.h> header file. */
161187 #undef HAVE_SYS_STAT_H
162188
163-/* Define if you have the <sys/time.h> header file. */
189+/* Define to 1 if you have the <sys/times.h> header file. */
190+#undef HAVE_SYS_TIMES_H
191+
192+/* Define to 1 if you have the <sys/time.h> header file. */
164193 #undef HAVE_SYS_TIME_H
165194
166-/* Define if you have the <sys/times.h> header file. */
167-#undef HAVE_SYS_TIMES_H
195+/* Define to 1 if you have the <sys/types.h> header file. */
196+#undef HAVE_SYS_TYPES_H
168197
169-/* Define if you have the <time.h> header file. */
198+/* Define to 1 if you have the `time' function. */
199+#undef HAVE_TIME
200+
201+/* Define to 1 if you have the <time.h> header file. */
170202 #undef HAVE_TIME_H
171203
172-/* Define if you have the <unistd.h> header file. */
204+/* Define to 1 if you have the `truncate' function. */
205+#undef HAVE_TRUNCATE
206+
207+/* Define to 1 if you have the <unistd.h> header file. */
173208 #undef HAVE_UNISTD_H
174209
175-/* Define if you have the <values.h> header file. */
210+/* Define to 1 if you have the <values.h> header file. */
176211 #undef HAVE_VALUES_H
177212
178-/* Define if you have the nsl library (-lnsl). */
179-#undef HAVE_LIBNSL
213+/* Define to 1 if you have the `__argz_count' function. */
214+#undef HAVE___ARGZ_COUNT
180215
181-/* Define if you have the socket library (-lsocket). */
182-#undef HAVE_LIBSOCKET
216+/* Define to 1 if you have the `__argz_next' function. */
217+#undef HAVE___ARGZ_NEXT
183218
184-/* Define to 1 if st_dev is a member of struct stat. */
185-#undef HAVE_STRUCT_STAT_ST_DEV
219+/* Define to 1 if you have the `__argz_stringify' function. */
220+#undef HAVE___ARGZ_STRINGIFY
186221
187-/* Define to 1 if st_ino is a member of struct stat. */
188-#undef HAVE_STRUCT_STAT_ST_INO
222+/* Define to 1 if you have the `__setfpucw' function. */
223+#undef HAVE___SETFPUCW
189224
190-/* Define to 1 if st_mode is a member of struct stat. */
191-#undef HAVE_STRUCT_STAT_ST_MODE
225+/* Define to the address where bug reports for this package should be sent. */
226+#undef PACKAGE_BUGREPORT
192227
193-/* Define to 1 if st_nlink is a member of struct stat. */
194-#undef HAVE_STRUCT_STAT_ST_NLINK
228+/* Define to the full name of this package. */
229+#undef PACKAGE_NAME
195230
196-/* Define to 1 if st_uid is a member of struct stat. */
197-#undef HAVE_STRUCT_STAT_ST_UID
231+/* Define to the full name and version of this package. */
232+#undef PACKAGE_STRING
198233
199-/* Define to 1 if st_gid is a member of struct stat. */
200-#undef HAVE_STRUCT_STAT_ST_GID
234+/* Define to the one symbol short name of this package. */
235+#undef PACKAGE_TARNAME
201236
202-/* Define to 1 if st_rdev is a member of struct stat. */
203-#undef HAVE_STRUCT_STAT_ST_RDEV
237+/* Define to the version of this package. */
238+#undef PACKAGE_VERSION
204239
205-/* Define to 1 if st_size is a member of struct stat. */
206-#undef HAVE_STRUCT_STAT_ST_SIZE
240+/* Define as the return type of signal handlers (`int' or `void'). */
241+#undef RETSIGTYPE
207242
208-/* Define to 1 if st_blksize is a member of struct stat. */
209-#undef HAVE_STRUCT_STAT_ST_BLKSIZE
243+/* If using the C implementation of alloca, define if you know the
244+ direction of stack growth for your system; otherwise it will be
245+ automatically deduced at run-time.
246+ STACK_DIRECTION > 0 => grows toward higher addresses
247+ STACK_DIRECTION < 0 => grows toward lower addresses
248+ STACK_DIRECTION = 0 => direction of growth unknown */
249+#undef STACK_DIRECTION
210250
211-/* Define to 1 if st_blocks is a member of struct stat. */
212-#undef HAVE_STRUCT_STAT_ST_BLOCKS
251+/* Define to 1 if you have the ANSI C header files. */
252+#undef STDC_HEADERS
213253
214-/* Define to 1 if st_atime is a member of struct stat. */
215-#undef HAVE_STRUCT_STAT_ST_ATIME
254+/* Define to empty if `const' does not conform to ANSI C. */
255+#undef const
216256
217-/* Define to 1 if st_mtime is a member of struct stat. */
218-#undef HAVE_STRUCT_STAT_ST_MTIME
257+/* Define to `__inline__' or `__inline' if that's what the C compiler
258+ calls it, or to nothing if 'inline' is not supported under any name. */
259+#ifndef __cplusplus
260+#undef inline
261+#endif
219262
220-/* Define to 1 if st_ctime is a member of struct stat. */
221-#undef HAVE_STRUCT_STAT_ST_CTIME
263+/* Define to `long' if <sys/types.h> does not define. */
264+#undef off_t
222265
266+/* Define to `unsigned' if <sys/types.h> does not define. */
267+#undef size_t
--- a/sim/common/configure
+++ b/sim/common/configure
@@ -964,7 +964,7 @@ esac
964964 else
965965 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
966966 fi
967- cd $ac_popdir
967+ cd "$ac_popdir"
968968 done
969969 fi
970970
@@ -2023,8 +2023,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20232023 cat conftest.err >&5
20242024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252025 (exit $ac_status); } &&
2026- { ac_try='test -z "$ac_c_werror_flag"
2027- || test ! -s conftest.err'
2026+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20282027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20292028 (eval $ac_try) 2>&5
20302029 ac_status=$?
@@ -2082,8 +2081,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20822081 cat conftest.err >&5
20832082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842083 (exit $ac_status); } &&
2085- { ac_try='test -z "$ac_c_werror_flag"
2086- || test ! -s conftest.err'
2084+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20872085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20882086 (eval $ac_try) 2>&5
20892087 ac_status=$?
@@ -2199,8 +2197,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21992197 cat conftest.err >&5
22002198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22012199 (exit $ac_status); } &&
2202- { ac_try='test -z "$ac_c_werror_flag"
2203- || test ! -s conftest.err'
2200+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22042201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22052202 (eval $ac_try) 2>&5
22062203 ac_status=$?
@@ -2254,8 +2251,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22542251 cat conftest.err >&5
22552252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22562253 (exit $ac_status); } &&
2257- { ac_try='test -z "$ac_c_werror_flag"
2258- || test ! -s conftest.err'
2254+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22592255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22602256 (eval $ac_try) 2>&5
22612257 ac_status=$?
@@ -2300,8 +2296,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23002296 cat conftest.err >&5
23012297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23022298 (exit $ac_status); } &&
2303- { ac_try='test -z "$ac_c_werror_flag"
2304- || test ! -s conftest.err'
2299+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23052300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23062301 (eval $ac_try) 2>&5
23072302 ac_status=$?
@@ -2345,8 +2340,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23452340 cat conftest.err >&5
23462341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23472342 (exit $ac_status); } &&
2348- { ac_try='test -z "$ac_c_werror_flag"
2349- || test ! -s conftest.err'
2343+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23502344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23512345 (eval $ac_try) 2>&5
23522346 ac_status=$?
@@ -2627,8 +2621,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26272621 cat conftest.err >&5
26282622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26292623 (exit $ac_status); } &&
2630- { ac_try='test -z "$ac_c_werror_flag"
2631- || test ! -s conftest.err'
2624+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26322625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26332626 (eval $ac_try) 2>&5
26342627 ac_status=$?
@@ -2682,8 +2675,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26822675 cat conftest.err >&5
26832676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26842677 (exit $ac_status); } &&
2685- { ac_try='test -z "$ac_c_werror_flag"
2686- || test ! -s conftest.err'
2678+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26872679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26882680 (eval $ac_try) 2>&5
26892681 ac_status=$?
@@ -2998,8 +2990,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29982990 cat conftest.err >&5
29992991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30002992 (exit $ac_status); } &&
3001- { ac_try='test -z "$ac_c_werror_flag"
3002- || test ! -s conftest.err'
2993+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30032994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30042995 (eval $ac_try) 2>&5
30052996 ac_status=$?
@@ -3206,8 +3197,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32063197 cat conftest.err >&5
32073198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32083199 (exit $ac_status); } &&
3209- { ac_try='test -z "$ac_c_werror_flag"
3210- || test ! -s conftest.err'
3200+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32113201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32123202 (eval $ac_try) 2>&5
32133203 ac_status=$?
@@ -3267,8 +3257,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32673257 cat conftest.err >&5
32683258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32693259 (exit $ac_status); } &&
3270- { ac_try='test -z "$ac_c_werror_flag"
3271- || test ! -s conftest.err'
3260+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32723261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32733262 (eval $ac_try) 2>&5
32743263 ac_status=$?
@@ -3347,8 +3336,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33473336 cat conftest.err >&5
33483337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33493338 (exit $ac_status); } &&
3350- { ac_try='test -z "$ac_c_werror_flag"
3351- || test ! -s conftest.err'
3339+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33523340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33533341 (eval $ac_try) 2>&5
33543342 ac_status=$?
@@ -3413,8 +3401,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34133401 cat conftest.err >&5
34143402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34153403 (exit $ac_status); } &&
3416- { ac_try='test -z "$ac_c_werror_flag"
3417- || test ! -s conftest.err'
3404+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34183405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34193406 (eval $ac_try) 2>&5
34203407 ac_status=$?
@@ -3479,8 +3466,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34793466 cat conftest.err >&5
34803467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34813468 (exit $ac_status); } &&
3482- { ac_try='test -z "$ac_c_werror_flag"
3483- || test ! -s conftest.err'
3469+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34843470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34853471 (eval $ac_try) 2>&5
34863472 ac_status=$?
@@ -3544,8 +3530,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35443530 cat conftest.err >&5
35453531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35463532 (exit $ac_status); } &&
3547- { ac_try='test -z "$ac_c_werror_flag"
3548- || test ! -s conftest.err'
3533+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35493534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35503535 (eval $ac_try) 2>&5
35513536 ac_status=$?
@@ -3626,8 +3611,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36263611 cat conftest.err >&5
36273612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36283613 (exit $ac_status); } &&
3629- { ac_try='test -z "$ac_c_werror_flag"
3630- || test ! -s conftest.err'
3614+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36313615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36323616 (eval $ac_try) 2>&5
36333617 ac_status=$?
@@ -3768,8 +3752,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37683752 cat conftest.err >&5
37693753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37703754 (exit $ac_status); } &&
3771- { ac_try='test -z "$ac_c_werror_flag"
3772- || test ! -s conftest.err'
3755+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37733756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37743757 (eval $ac_try) 2>&5
37753758 ac_status=$?
@@ -3907,8 +3890,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39073890 cat conftest.err >&5
39083891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39093892 (exit $ac_status); } &&
3910- { ac_try='test -z "$ac_c_werror_flag"
3911- || test ! -s conftest.err'
3893+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39123894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39133895 (eval $ac_try) 2>&5
39143896 ac_status=$?
@@ -4092,8 +4074,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40924074 cat conftest.err >&5
40934075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40944076 (exit $ac_status); } &&
4095- { ac_try='test -z "$ac_c_werror_flag"
4096- || test ! -s conftest.err'
4077+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40974078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40984079 (eval $ac_try) 2>&5
40994080 ac_status=$?
@@ -4344,8 +4325,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43444325 cat conftest.err >&5
43454326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43464327 (exit $ac_status); } &&
4347- { ac_try='test -z "$ac_c_werror_flag"
4348- || test ! -s conftest.err'
4328+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43494329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43504330 (eval $ac_try) 2>&5
43514331 ac_status=$?
@@ -4539,8 +4519,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45394519 cat conftest.err >&5
45404520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45414521 (exit $ac_status); } &&
4542- { ac_try='test -z "$ac_c_werror_flag"
4543- || test ! -s conftest.err'
4522+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45444523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45454524 (eval $ac_try) 2>&5
45464525 ac_status=$?
@@ -4643,8 +4622,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46434622 cat conftest.err >&5
46444623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46454624 (exit $ac_status); } &&
4646- { ac_try='test -z "$ac_c_werror_flag"
4647- || test ! -s conftest.err'
4625+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
46484626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46494627 (eval $ac_try) 2>&5
46504628 ac_status=$?
@@ -4715,8 +4693,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47154693 cat conftest.err >&5
47164694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47174695 (exit $ac_status); } &&
4718- { ac_try='test -z "$ac_c_werror_flag"
4719- || test ! -s conftest.err'
4696+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
47204697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47214698 (eval $ac_try) 2>&5
47224699 ac_status=$?
@@ -4813,8 +4790,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48134790 cat conftest.err >&5
48144791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48154792 (exit $ac_status); } &&
4816- { ac_try='test -z "$ac_c_werror_flag"
4817- || test ! -s conftest.err'
4793+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48184794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48194795 (eval $ac_try) 2>&5
48204796 ac_status=$?
@@ -4950,8 +4926,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49504926 cat conftest.err >&5
49514927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49524928 (exit $ac_status); } &&
4953- { ac_try='test -z "$ac_c_werror_flag"
4954- || test ! -s conftest.err'
4929+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
49554930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49564931 (eval $ac_try) 2>&5
49574932 ac_status=$?
@@ -5015,8 +4990,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50154990 cat conftest.err >&5
50164991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50174992 (exit $ac_status); } &&
5018- { ac_try='test -z "$ac_c_werror_flag"
5019- || test ! -s conftest.err'
4993+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
50204994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50214995 (eval $ac_try) 2>&5
50224996 ac_status=$?
@@ -5071,8 +5045,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50715045 cat conftest.err >&5
50725046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50735047 (exit $ac_status); } &&
5074- { ac_try='test -z "$ac_c_werror_flag"
5075- || test ! -s conftest.err'
5048+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
50765049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50775050 (eval $ac_try) 2>&5
50785051 ac_status=$?
@@ -5212,8 +5185,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52125185 cat conftest.err >&5
52135186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52145187 (exit $ac_status); } &&
5215- { ac_try='test -z "$ac_c_werror_flag"
5216- || test ! -s conftest.err'
5188+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
52175189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52185190 (eval $ac_try) 2>&5
52195191 ac_status=$?
@@ -5346,8 +5318,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53465318 cat conftest.err >&5
53475319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53485320 (exit $ac_status); } &&
5349- { ac_try='test -z "$ac_c_werror_flag"
5350- || test ! -s conftest.err'
5321+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
53515322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53525323 (eval $ac_try) 2>&5
53535324 ac_status=$?
@@ -5624,8 +5595,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56245595 cat conftest.err >&5
56255596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56265597 (exit $ac_status); } &&
5627- { ac_try='test -z "$ac_c_werror_flag"
5628- || test ! -s conftest.err'
5598+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
56295599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56305600 (eval $ac_try) 2>&5
56315601 ac_status=$?
@@ -5819,8 +5789,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58195789 cat conftest.err >&5
58205790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58215791 (exit $ac_status); } &&
5822- { ac_try='test -z "$ac_c_werror_flag"
5823- || test ! -s conftest.err'
5792+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
58245793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58255794 (eval $ac_try) 2>&5
58265795 ac_status=$?
@@ -5970,8 +5939,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59705939 cat conftest.err >&5
59715940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59725941 (exit $ac_status); } &&
5973- { ac_try='test -z "$ac_c_werror_flag"
5974- || test ! -s conftest.err'
5942+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
59755943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59765944 (eval $ac_try) 2>&5
59775945 ac_status=$?
@@ -6121,8 +6089,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61216089 cat conftest.err >&5
61226090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61236091 (exit $ac_status); } &&
6124- { ac_try='test -z "$ac_c_werror_flag"
6125- || test ! -s conftest.err'
6092+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
61266093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61276094 (eval $ac_try) 2>&5
61286095 ac_status=$?
@@ -6273,8 +6240,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
62736240 cat conftest.err >&5
62746241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62756242 (exit $ac_status); } &&
6276- { ac_try='test -z "$ac_c_werror_flag"
6277- || test ! -s conftest.err'
6243+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
62786244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62796245 (eval $ac_try) 2>&5
62806246 ac_status=$?
@@ -6461,8 +6427,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
64616427 cat conftest.err >&5
64626428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64636429 (exit $ac_status); } &&
6464- { ac_try='test -z "$ac_c_werror_flag"
6465- || test ! -s conftest.err'
6430+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
64666431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64676432 (eval $ac_try) 2>&5
64686433 ac_status=$?
@@ -6535,8 +6500,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65356500 cat conftest.err >&5
65366501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65376502 (exit $ac_status); } &&
6538- { ac_try='test -z "$ac_c_werror_flag"
6539- || test ! -s conftest.err'
6503+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
65406504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65416505 (eval $ac_try) 2>&5
65426506 ac_status=$?
@@ -6609,8 +6573,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
66096573 cat conftest.err >&5
66106574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66116575 (exit $ac_status); } &&
6612- { ac_try='test -z "$ac_c_werror_flag"
6613- || test ! -s conftest.err'
6576+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
66146577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66156578 (eval $ac_try) 2>&5
66166579 ac_status=$?
@@ -6832,8 +6795,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
68326795 cat conftest.err >&5
68336796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68346797 (exit $ac_status); } &&
6835- { ac_try='test -z "$ac_c_werror_flag"
6836- || test ! -s conftest.err'
6798+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
68376799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68386800 (eval $ac_try) 2>&5
68396801 ac_status=$?
@@ -6953,8 +6915,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
69536915 cat conftest.err >&5
69546916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69556917 (exit $ac_status); } &&
6956- { ac_try='test -z "$ac_c_werror_flag"
6957- || test ! -s conftest.err'
6918+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
69586919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69596920 (eval $ac_try) 2>&5
69606921 ac_status=$?
@@ -7071,7 +7032,10 @@ done
70717032
70727033
70737034
7074-for ac_func in mmap munmap
7035+
7036+
7037+
7038+for ac_func in mmap munmap lstat truncate ftruncate
70757039 do
70767040 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
70777041 echo "$as_me:$LINENO: checking for $ac_func" >&5
@@ -7139,8 +7103,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
71397103 cat conftest.err >&5
71407104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71417105 (exit $ac_status); } &&
7142- { ac_try='test -z "$ac_c_werror_flag"
7143- || test ! -s conftest.err'
7106+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
71447107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71457108 (eval $ac_try) 2>&5
71467109 ac_status=$?
@@ -7210,8 +7173,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72107173 cat conftest.err >&5
72117174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72127175 (exit $ac_status); } &&
7213- { ac_try='test -z "$ac_c_werror_flag"
7214- || test ! -s conftest.err'
7176+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
72157177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72167178 (eval $ac_try) 2>&5
72177179 ac_status=$?
@@ -7260,8 +7222,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72607222 cat conftest.err >&5
72617223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72627224 (exit $ac_status); } &&
7263- { ac_try='test -z "$ac_c_werror_flag"
7264- || test ! -s conftest.err'
7225+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
72657226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72667227 (eval $ac_try) 2>&5
72677228 ac_status=$?
@@ -7332,8 +7293,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
73327293 cat conftest.err >&5
73337294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
73347295 (exit $ac_status); } &&
7335- { ac_try='test -z "$ac_c_werror_flag"
7336- || test ! -s conftest.err'
7296+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
73377297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
73387298 (eval $ac_try) 2>&5
73397299 ac_status=$?
@@ -7382,8 +7342,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
73827342 cat conftest.err >&5
73837343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
73847344 (exit $ac_status); } &&
7385- { ac_try='test -z "$ac_c_werror_flag"
7386- || test ! -s conftest.err'
7345+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
73877346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
73887347 (eval $ac_try) 2>&5
73897348 ac_status=$?
@@ -7454,8 +7413,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
74547413 cat conftest.err >&5
74557414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
74567415 (exit $ac_status); } &&
7457- { ac_try='test -z "$ac_c_werror_flag"
7458- || test ! -s conftest.err'
7416+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
74597417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
74607418 (eval $ac_try) 2>&5
74617419 ac_status=$?
@@ -7504,8 +7462,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
75047462 cat conftest.err >&5
75057463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
75067464 (exit $ac_status); } &&
7507- { ac_try='test -z "$ac_c_werror_flag"
7508- || test ! -s conftest.err'
7465+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
75097466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
75107467 (eval $ac_try) 2>&5
75117468 ac_status=$?
@@ -7576,8 +7533,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
75767533 cat conftest.err >&5
75777534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
75787535 (exit $ac_status); } &&
7579- { ac_try='test -z "$ac_c_werror_flag"
7580- || test ! -s conftest.err'
7536+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
75817537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
75827538 (eval $ac_try) 2>&5
75837539 ac_status=$?
@@ -7626,8 +7582,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
76267582 cat conftest.err >&5
76277583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
76287584 (exit $ac_status); } &&
7629- { ac_try='test -z "$ac_c_werror_flag"
7630- || test ! -s conftest.err'
7585+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
76317586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
76327587 (eval $ac_try) 2>&5
76337588 ac_status=$?
@@ -7698,8 +7653,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
76987653 cat conftest.err >&5
76997654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
77007655 (exit $ac_status); } &&
7701- { ac_try='test -z "$ac_c_werror_flag"
7702- || test ! -s conftest.err'
7656+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
77037657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
77047658 (eval $ac_try) 2>&5
77057659 ac_status=$?
@@ -7748,8 +7702,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
77487702 cat conftest.err >&5
77497703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
77507704 (exit $ac_status); } &&
7751- { ac_try='test -z "$ac_c_werror_flag"
7752- || test ! -s conftest.err'
7705+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
77537706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
77547707 (eval $ac_try) 2>&5
77557708 ac_status=$?
@@ -7820,8 +7773,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
78207773 cat conftest.err >&5
78217774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
78227775 (exit $ac_status); } &&
7823- { ac_try='test -z "$ac_c_werror_flag"
7824- || test ! -s conftest.err'
7776+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
78257777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
78267778 (eval $ac_try) 2>&5
78277779 ac_status=$?
@@ -7870,8 +7822,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
78707822 cat conftest.err >&5
78717823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
78727824 (exit $ac_status); } &&
7873- { ac_try='test -z "$ac_c_werror_flag"
7874- || test ! -s conftest.err'
7825+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
78757826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
78767827 (eval $ac_try) 2>&5
78777828 ac_status=$?
@@ -7942,8 +7893,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
79427893 cat conftest.err >&5
79437894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
79447895 (exit $ac_status); } &&
7945- { ac_try='test -z "$ac_c_werror_flag"
7946- || test ! -s conftest.err'
7896+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
79477897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
79487898 (eval $ac_try) 2>&5
79497899 ac_status=$?
@@ -7992,8 +7942,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
79927942 cat conftest.err >&5
79937943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
79947944 (exit $ac_status); } &&
7995- { ac_try='test -z "$ac_c_werror_flag"
7996- || test ! -s conftest.err'
7945+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
79977946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
79987947 (eval $ac_try) 2>&5
79997948 ac_status=$?
@@ -8064,8 +8013,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
80648013 cat conftest.err >&5
80658014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
80668015 (exit $ac_status); } &&
8067- { ac_try='test -z "$ac_c_werror_flag"
8068- || test ! -s conftest.err'
8016+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
80698017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
80708018 (eval $ac_try) 2>&5
80718019 ac_status=$?
@@ -8114,8 +8062,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
81148062 cat conftest.err >&5
81158063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
81168064 (exit $ac_status); } &&
8117- { ac_try='test -z "$ac_c_werror_flag"
8118- || test ! -s conftest.err'
8065+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81198066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
81208067 (eval $ac_try) 2>&5
81218068 ac_status=$?
@@ -8186,8 +8133,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
81868133 cat conftest.err >&5
81878134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
81888135 (exit $ac_status); } &&
8189- { ac_try='test -z "$ac_c_werror_flag"
8190- || test ! -s conftest.err'
8136+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81918137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
81928138 (eval $ac_try) 2>&5
81938139 ac_status=$?
@@ -8236,8 +8182,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
82368182 cat conftest.err >&5
82378183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82388184 (exit $ac_status); } &&
8239- { ac_try='test -z "$ac_c_werror_flag"
8240- || test ! -s conftest.err'
8185+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
82418186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
82428187 (eval $ac_try) 2>&5
82438188 ac_status=$?
@@ -8308,8 +8253,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
83088253 cat conftest.err >&5
83098254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
83108255 (exit $ac_status); } &&
8311- { ac_try='test -z "$ac_c_werror_flag"
8312- || test ! -s conftest.err'
8256+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
83138257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
83148258 (eval $ac_try) 2>&5
83158259 ac_status=$?
@@ -8358,8 +8302,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
83588302 cat conftest.err >&5
83598303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
83608304 (exit $ac_status); } &&
8361- { ac_try='test -z "$ac_c_werror_flag"
8362- || test ! -s conftest.err'
8305+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
83638306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
83648307 (eval $ac_try) 2>&5
83658308 ac_status=$?
@@ -8430,8 +8373,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
84308373 cat conftest.err >&5
84318374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
84328375 (exit $ac_status); } &&
8433- { ac_try='test -z "$ac_c_werror_flag"
8434- || test ! -s conftest.err'
8376+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
84358377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
84368378 (eval $ac_try) 2>&5
84378379 ac_status=$?
@@ -8480,8 +8422,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
84808422 cat conftest.err >&5
84818423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
84828424 (exit $ac_status); } &&
8483- { ac_try='test -z "$ac_c_werror_flag"
8484- || test ! -s conftest.err'
8425+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
84858426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
84868427 (eval $ac_try) 2>&5
84878428 ac_status=$?
@@ -8552,8 +8493,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
85528493 cat conftest.err >&5
85538494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
85548495 (exit $ac_status); } &&
8555- { ac_try='test -z "$ac_c_werror_flag"
8556- || test ! -s conftest.err'
8496+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
85578497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
85588498 (eval $ac_try) 2>&5
85598499 ac_status=$?
@@ -8602,8 +8542,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
86028542 cat conftest.err >&5
86038543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
86048544 (exit $ac_status); } &&
8605- { ac_try='test -z "$ac_c_werror_flag"
8606- || test ! -s conftest.err'
8545+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
86078546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
86088547 (eval $ac_try) 2>&5
86098548 ac_status=$?
@@ -8674,8 +8613,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
86748613 cat conftest.err >&5
86758614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
86768615 (exit $ac_status); } &&
8677- { ac_try='test -z "$ac_c_werror_flag"
8678- || test ! -s conftest.err'
8616+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
86798617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
86808618 (eval $ac_try) 2>&5
86818619 ac_status=$?
@@ -8724,8 +8662,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
87248662 cat conftest.err >&5
87258663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
87268664 (exit $ac_status); } &&
8727- { ac_try='test -z "$ac_c_werror_flag"
8728- || test ! -s conftest.err'
8665+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
87298666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87308667 (eval $ac_try) 2>&5
87318668 ac_status=$?
@@ -9625,11 +9562,6 @@ esac
96259562 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
96269563 esac
96279564
9628- if test x"$ac_file" != x-; then
9629- { echo "$as_me:$LINENO: creating $ac_file" >&5
9630-echo "$as_me: creating $ac_file" >&6;}
9631- rm -f "$ac_file"
9632- fi
96339565 # Let's still pretend it is `configure' which instantiates (i.e., don't
96349566 # use $as_me), people would be surprised to read:
96359567 # /* config.h. Generated by config.status. */
@@ -9668,6 +9600,12 @@ echo "$as_me: error: cannot find input file: $f" >&2;}
96689600 fi;;
96699601 esac
96709602 done` || { (exit 1); exit 1; }
9603+
9604+ if test x"$ac_file" != x-; then
9605+ { echo "$as_me:$LINENO: creating $ac_file" >&5
9606+echo "$as_me: creating $ac_file" >&6;}
9607+ rm -f "$ac_file"
9608+ fi
96719609 _ACEOF
96729610 cat >>$CONFIG_STATUS <<_ACEOF
96739611 sed "$ac_vpsub
--- a/sim/common/configure.ac
+++ b/sim/common/configure.ac
@@ -37,7 +37,7 @@ AC_SUBST(TARGET_SUBDIR)
3737
3838 # These aren't all needed yet, but will be eventually.
3939 AC_CHECK_HEADERS(stdlib.h string.h strings.h time.h sys/times.h sys/stat.h sys/mman.h)
40-AC_CHECK_FUNCS(mmap munmap)
40+AC_CHECK_FUNCS(mmap munmap lstat truncate ftruncate)
4141 SIM_CHECK_MEMBERS([[struct stat.st_dev], [struct stat.st_ino],
4242 [struct stat.st_mode], [struct stat.st_nlink], [struct stat.st_uid],
4343 [struct stat.st_gid], [struct stat.st_rdev], [struct stat.st_size],