~ubuntu-branches/ubuntu/raring/gnutls26/raring

« back to all changes in this revision

Viewing changes to lib/gl/m4/lseek.m4

  • Committer: Package Import Robot
  • Author(s): Andreas Metzler, 20_tests-select.diff
  • Date: 2011-11-15 19:10:06 UTC
  • mfrom: (12.1.24 sid)
  • Revision ID: package-import@ubuntu.com-20111115191006-ewpl0pfwe6et0mra
Tags: 2.12.14-3
[20_tests-select.diff] Do not run gnulib test-select test anymore. The
test fails on kfreebsd-i386, the gnutls library does not use select().
Closes: #648247

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# lseek.m4 serial 7
 
1
# lseek.m4 serial 8
2
2
dnl Copyright (C) 2007, 2009-2011 Free Software Foundation, Inc.
3
3
dnl This file is free software; the Free Software Foundation
4
4
dnl gives unlimited permission to copy and/or distribute it,
8
8
[
9
9
  AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
10
10
  AC_REQUIRE([AC_PROG_CC])
 
11
  AC_CHECK_HEADERS_ONCE([unistd.h])
11
12
  AC_CACHE_CHECK([whether lseek detects pipes], [gl_cv_func_lseek_pipe],
12
13
    [if test $cross_compiling = no; then
13
14
       AC_LINK_IFELSE([AC_LANG_PROGRAM([[
14
15
#include <sys/types.h> /* for off_t */
15
16
#include <stdio.h> /* for SEEK_CUR */
16
 
#include <unistd.h>]], [[
 
17
#if HAVE_UNISTD_H
 
18
# include <unistd.h>
 
19
#else /* on Windows with MSVC */
 
20
# include <io.h>
 
21
#endif
 
22
]], [[
17
23
  /* Exit with success only if stdin is seekable.  */
18
24
  return lseek (0, (off_t)0, SEEK_CUR) < 0;
19
25
]])],