4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: Build problems on Tandem NonStop.
12 Solution: A few changes to #ifdefs (Joachim Schmitz)
13 Files: src/auto/configure, src/configure.in, src/config.h.in, src/vim.h,
14 src/if_cscope.c, src/osdef1.h.in, src/tag.c
17 *** ../vim-7.2.370/src/auto/configure 2010-02-17 16:23:03.000000000 +0100
18 --- src/auto/configure 2010-02-24 14:27:00.000000000 +0100
26 ! for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \
27 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
28 memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \
29 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
34 ! for ac_func in bcmp fchdir fchown fsync getcwd getpseudotty \
35 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
36 memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \
37 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
44 + { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
45 + $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
46 + if test "${ac_cv_sys_largefile_source+set}" = set; then
47 + $as_echo_n "(cached) " >&6
50 + cat >conftest.$ac_ext <<_ACEOF
53 + cat confdefs.h >>conftest.$ac_ext
54 + cat >>conftest.$ac_ext <<_ACEOF
55 + /* end confdefs.h. */
56 + #include <sys/types.h> /* for off_t */
61 + int (*fp) (FILE *, off_t, int) = fseeko;
62 + return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
67 + rm -f conftest.$ac_objext conftest$ac_exeext
68 + if { (ac_try="$ac_link"
70 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71 + *) ac_try_echo=$ac_try;;
73 + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
74 + $as_echo "$ac_try_echo") >&5
75 + (eval "$ac_link") 2>conftest.er1
77 + grep -v '^ *+' conftest.er1 >conftest.err
79 + cat conftest.err >&5
80 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
81 + (exit $ac_status); } && {
82 + test -z "$ac_c_werror_flag" ||
83 + test ! -s conftest.err
84 + } && test -s conftest$ac_exeext && {
85 + test "$cross_compiling" = yes ||
86 + $as_test_x conftest$ac_exeext
88 + ac_cv_sys_largefile_source=no; break
90 + $as_echo "$as_me: failed program was:" >&5
91 + sed 's/^/| /' conftest.$ac_ext >&5
96 + rm -rf conftest.dSYM
97 + rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
98 + conftest$ac_exeext conftest.$ac_ext
99 + cat >conftest.$ac_ext <<_ACEOF
102 + cat confdefs.h >>conftest.$ac_ext
103 + cat >>conftest.$ac_ext <<_ACEOF
104 + /* end confdefs.h. */
105 + #define _LARGEFILE_SOURCE 1
106 + #include <sys/types.h> /* for off_t */
111 + int (*fp) (FILE *, off_t, int) = fseeko;
112 + return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
117 + rm -f conftest.$ac_objext conftest$ac_exeext
118 + if { (ac_try="$ac_link"
119 + case "(($ac_try" in
120 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
121 + *) ac_try_echo=$ac_try;;
123 + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
124 + $as_echo "$ac_try_echo") >&5
125 + (eval "$ac_link") 2>conftest.er1
127 + grep -v '^ *+' conftest.er1 >conftest.err
129 + cat conftest.err >&5
130 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
131 + (exit $ac_status); } && {
132 + test -z "$ac_c_werror_flag" ||
133 + test ! -s conftest.err
134 + } && test -s conftest$ac_exeext && {
135 + test "$cross_compiling" = yes ||
136 + $as_test_x conftest$ac_exeext
138 + ac_cv_sys_largefile_source=1; break
140 + $as_echo "$as_me: failed program was:" >&5
141 + sed 's/^/| /' conftest.$ac_ext >&5
146 + rm -rf conftest.dSYM
147 + rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
148 + conftest$ac_exeext conftest.$ac_ext
149 + ac_cv_sys_largefile_source=unknown
153 + { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
154 + $as_echo "$ac_cv_sys_largefile_source" >&6; }
155 + case $ac_cv_sys_largefile_source in #(
158 + cat >>confdefs.h <<_ACEOF
159 + #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
165 + # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
166 + # in glibc 2.1.3, but that breaks too many other things.
167 + # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
168 + if test $ac_cv_sys_largefile_source != unknown; then
170 + cat >>confdefs.h <<\_ACEOF
171 + #define HAVE_FSEEKO 1
177 { $as_echo "$as_me:$LINENO: checking for st_blksize" >&5
178 $as_echo_n "checking for st_blksize... " >&6; }
179 *** ../vim-7.2.370/src/configure.in 2010-02-17 16:23:03.000000000 +0100
180 --- src/configure.in 2010-02-24 14:18:49.000000000 +0100
183 AC_DEFINE(BAD_GETCWD)
186 ! dnl Check for functions in one big call, to reduce the size of configure
187 ! AC_CHECK_FUNCS(bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \
188 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
189 memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \
190 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
191 sigvec strcasecmp strerror strftime stricmp strncasecmp \
192 strnicmp strpbrk strtol tgetent towlower towupper iswupper \
195 dnl fstatfs() can take 2 to 4 arguments, try to use st_blksize if possible
196 AC_MSG_CHECKING(for st_blksize)
198 AC_DEFINE(BAD_GETCWD)
201 ! dnl Check for functions in one big call, to reduce the size of configure.
202 ! dnl Can only be used for functions that do not require any include.
203 ! AC_CHECK_FUNCS(bcmp fchdir fchown fsync getcwd getpseudotty \
204 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
205 memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \
206 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
207 sigvec strcasecmp strerror strftime stricmp strncasecmp \
208 strnicmp strpbrk strtol tgetent towlower towupper iswupper \
212 dnl fstatfs() can take 2 to 4 arguments, try to use st_blksize if possible
213 AC_MSG_CHECKING(for st_blksize)
214 *** ../vim-7.2.370/src/config.h.in 2009-11-17 17:13:03.000000000 +0100
215 --- src/config.h.in 2010-02-24 14:20:26.000000000 +0100
223 #undef HAVE_GETPSEUDOTTY
226 *** ../vim-7.2.370/src/vim.h 2010-02-03 15:14:15.000000000 +0100
227 --- src/vim.h 2010-02-24 14:08:14.000000000 +0100
231 /* user ID of root is usually zero, but not for everybody */
233 ! # define _TANDEM_SOURCE
235 # define ROOT_UID 65535
239 /* user ID of root is usually zero, but not for everybody */
241 ! # ifndef _TANDEM_SOURCE
242 ! # define _TANDEM_SOURCE
245 # define ROOT_UID 65535
247 *** ../vim-7.2.370/src/if_cscope.c 2010-01-19 14:59:14.000000000 +0100
248 --- src/if_cscope.c 2010-02-24 14:10:21.000000000 +0100
252 /* Use sigaction() to limit the waiting time to two seconds. */
253 sigemptyset(&sa.sa_mask);
254 sa.sa_handler = sig_handler;
256 sa.sa_flags = SA_NODEFER;
260 sigaction(SIGALRM, &sa, &old);
261 alarm(2); /* 2 sec timeout */
263 *** ../vim-7.2.370/src/osdef1.h.in 2007-02-27 16:47:59.000000000 +0100
264 --- src/osdef1.h.in 2010-02-24 14:20:50.000000000 +0100
267 extern int fseeko __ARGS((FILE *, off_t, int));
269 extern long ftell __ARGS((FILE *));
271 extern off_t ftello __ARGS((FILE *));
273 extern void rewind __ARGS((FILE *));
275 extern int fseeko __ARGS((FILE *, off_t, int));
277 extern long ftell __ARGS((FILE *));
279 extern off_t ftello __ARGS((FILE *));
281 extern void rewind __ARGS((FILE *));
282 *** ../vim-7.2.370/src/tag.c 2009-05-17 13:30:58.000000000 +0200
283 --- src/tag.c 2010-02-24 14:20:12.000000000 +0100
287 * We use ftello() here, if available. It returns off_t instead of long,
288 * which helps if long is 32 bit and off_t is 64 bit.
291 # define ftell ftello
296 * We use ftello() here, if available. It returns off_t instead of long,
297 * which helps if long is 32 bit and off_t is 64 bit.
298 + * We assume that when fseeko() is available then ftello() is too.
301 # define ftell ftello
304 *** ../vim-7.2.370/src/version.c 2010-02-24 14:34:10.000000000 +0100
305 --- src/version.c 2010-02-24 14:45:37.000000000 +0100
309 { /* Add new patch number below this line */
315 A cow comes flying over the battlements, lowing aggressively. The cow
316 lands on GALAHAD'S PAGE, squashing him completely.
317 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
319 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
320 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
321 \\\ download, build and distribute -- http://www.A-A-P.org ///
322 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///