~ubuntu-branches/ubuntu/trusty/patch/trusty-security

« back to all changes in this revision

Viewing changes to m4/d-ino.m4

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Berg
  • Date: 2009-12-02 10:25:26 UTC
  • mfrom: (5.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20091202102526-5luk0zsqhghu58l2
Tags: 2.6-2
* Update watch file.
* Section: vcs.
* Suggests: diffutils-doc instead of diff-doc, thanks Christoph Anton
  Mitterer for spotting. Closes: #558974.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#serial 5
2
 
 
3
 
dnl From Jim Meyering.
4
 
dnl
5
 
dnl Check whether struct dirent has a member named d_ino.
6
 
dnl
7
 
 
8
 
AC_DEFUN([jm_CHECK_TYPE_STRUCT_DIRENT_D_INO],
9
 
  [AC_REQUIRE([AC_HEADER_DIRENT])dnl
10
 
   AC_CACHE_CHECK([for d_ino member in directory struct],
11
 
                  jm_cv_struct_dirent_d_ino,
12
 
     [AC_TRY_LINK(dnl
13
 
       [
14
 
#include <sys/types.h>
15
 
#ifdef HAVE_DIRENT_H
16
 
# include <dirent.h>
17
 
#else /* not HAVE_DIRENT_H */
18
 
# define dirent direct
19
 
# ifdef HAVE_SYS_NDIR_H
20
 
#  include <sys/ndir.h>
21
 
# endif /* HAVE_SYS_NDIR_H */
22
 
# ifdef HAVE_SYS_DIR_H
23
 
#  include <sys/dir.h>
24
 
# endif /* HAVE_SYS_DIR_H */
25
 
# ifdef HAVE_NDIR_H
26
 
#  include <ndir.h>
27
 
# endif /* HAVE_NDIR_H */
28
 
#endif /* HAVE_DIRENT_H */
29
 
       ],
30
 
       [struct dirent dp; dp.d_ino = 0;],
31
 
 
32
 
       jm_cv_struct_dirent_d_ino=yes,
33
 
       jm_cv_struct_dirent_d_ino=no)
34
 
     ]
35
 
   )
36
 
   if test $jm_cv_struct_dirent_d_ino = yes; then
37
 
     AC_DEFINE(D_INO_IN_DIRENT, 1,
38
 
       [Define if there is a member named d_ino in the struct describing
39
 
        directory headers.])
40
 
   fi
41
 
  ]
42
 
)