2009-07-05 12:14:08 -04:00
|
|
|
# unistd_h.m4 serial 17
|
|
|
|
dnl Copyright (C) 2006-2009 Free Software Foundation, Inc.
|
2007-10-14 01:37:15 -04:00
|
|
|
dnl This file is free software; the Free Software Foundation
|
|
|
|
dnl gives unlimited permission to copy and/or distribute it,
|
|
|
|
dnl with or without modifications, as long as this notice is preserved.
|
|
|
|
|
|
|
|
dnl Written by Simon Josefsson, Bruno Haible.
|
|
|
|
|
|
|
|
AC_DEFUN([gl_UNISTD_H],
|
|
|
|
[
|
|
|
|
dnl Use AC_REQUIRE here, so that the default behavior below is expanded
|
|
|
|
dnl once only, before all statements that occur in other macros.
|
|
|
|
AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
|
|
|
|
|
|
|
|
gl_CHECK_NEXT_HEADERS([unistd.h])
|
|
|
|
|
|
|
|
AC_CHECK_HEADERS_ONCE([unistd.h])
|
|
|
|
if test $ac_cv_header_unistd_h = yes; then
|
|
|
|
HAVE_UNISTD_H=1
|
|
|
|
else
|
|
|
|
HAVE_UNISTD_H=0
|
|
|
|
fi
|
|
|
|
AC_SUBST([HAVE_UNISTD_H])
|
|
|
|
])
|
|
|
|
|
|
|
|
AC_DEFUN([gl_UNISTD_MODULE_INDICATOR],
|
|
|
|
[
|
|
|
|
dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
|
|
|
|
AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
|
|
|
|
GNULIB_[]m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=1
|
|
|
|
])
|
|
|
|
|
|
|
|
AC_DEFUN([gl_UNISTD_H_DEFAULTS],
|
|
|
|
[
|
2009-07-05 12:14:08 -04:00
|
|
|
GNULIB_CHOWN=0; AC_SUBST([GNULIB_CHOWN])
|
|
|
|
GNULIB_CLOSE=0; AC_SUBST([GNULIB_CLOSE])
|
|
|
|
GNULIB_DUP2=0; AC_SUBST([GNULIB_DUP2])
|
|
|
|
GNULIB_ENVIRON=0; AC_SUBST([GNULIB_ENVIRON])
|
|
|
|
GNULIB_EUIDACCESS=0; AC_SUBST([GNULIB_EUIDACCESS])
|
|
|
|
GNULIB_FCHDIR=0; AC_SUBST([GNULIB_FCHDIR])
|
|
|
|
GNULIB_FSYNC=0; AC_SUBST([GNULIB_FSYNC])
|
|
|
|
GNULIB_FTRUNCATE=0; AC_SUBST([GNULIB_FTRUNCATE])
|
|
|
|
GNULIB_GETCWD=0; AC_SUBST([GNULIB_GETCWD])
|
|
|
|
GNULIB_GETDOMAINNAME=0; AC_SUBST([GNULIB_GETDOMAINNAME])
|
|
|
|
GNULIB_GETDTABLESIZE=0; AC_SUBST([GNULIB_GETDTABLESIZE])
|
|
|
|
GNULIB_GETHOSTNAME=0; AC_SUBST([GNULIB_GETHOSTNAME])
|
|
|
|
GNULIB_GETLOGIN_R=0; AC_SUBST([GNULIB_GETLOGIN_R])
|
|
|
|
GNULIB_GETPAGESIZE=0; AC_SUBST([GNULIB_GETPAGESIZE])
|
|
|
|
GNULIB_GETUSERSHELL=0; AC_SUBST([GNULIB_GETUSERSHELL])
|
|
|
|
GNULIB_LCHOWN=0; AC_SUBST([GNULIB_LCHOWN])
|
|
|
|
GNULIB_LINK=0; AC_SUBST([GNULIB_LINK])
|
|
|
|
GNULIB_LSEEK=0; AC_SUBST([GNULIB_LSEEK])
|
|
|
|
GNULIB_READLINK=0; AC_SUBST([GNULIB_READLINK])
|
|
|
|
GNULIB_SLEEP=0; AC_SUBST([GNULIB_SLEEP])
|
|
|
|
GNULIB_UNISTD_H_SIGPIPE=0; AC_SUBST([GNULIB_UNISTD_H_SIGPIPE])
|
|
|
|
GNULIB_WRITE=0; AC_SUBST([GNULIB_WRITE])
|
2007-10-14 01:37:15 -04:00
|
|
|
dnl Assume proper GNU behavior unless another module says otherwise.
|
|
|
|
HAVE_DUP2=1; AC_SUBST([HAVE_DUP2])
|
2009-07-05 12:14:08 -04:00
|
|
|
HAVE_EUIDACCESS=1; AC_SUBST([HAVE_EUIDACCESS])
|
|
|
|
HAVE_FSYNC=1; AC_SUBST([HAVE_FSYNC])
|
2007-10-14 01:37:15 -04:00
|
|
|
HAVE_FTRUNCATE=1; AC_SUBST([HAVE_FTRUNCATE])
|
2009-07-05 12:14:08 -04:00
|
|
|
HAVE_GETDOMAINNAME=1; AC_SUBST([HAVE_GETDOMAINNAME])
|
|
|
|
HAVE_GETDTABLESIZE=1; AC_SUBST([HAVE_GETDTABLESIZE])
|
|
|
|
HAVE_GETHOSTNAME=1; AC_SUBST([HAVE_GETHOSTNAME])
|
2007-12-08 00:11:46 -05:00
|
|
|
HAVE_GETPAGESIZE=1; AC_SUBST([HAVE_GETPAGESIZE])
|
2009-07-05 12:14:08 -04:00
|
|
|
HAVE_GETUSERSHELL=1; AC_SUBST([HAVE_GETUSERSHELL])
|
|
|
|
HAVE_LINK=1; AC_SUBST([HAVE_LINK])
|
2007-10-14 01:37:15 -04:00
|
|
|
HAVE_READLINK=1; AC_SUBST([HAVE_READLINK])
|
|
|
|
HAVE_SLEEP=1; AC_SUBST([HAVE_SLEEP])
|
2008-04-14 18:38:57 -04:00
|
|
|
HAVE_DECL_ENVIRON=1; AC_SUBST([HAVE_DECL_ENVIRON])
|
2007-10-14 01:37:15 -04:00
|
|
|
HAVE_DECL_GETLOGIN_R=1; AC_SUBST([HAVE_DECL_GETLOGIN_R])
|
2007-12-08 00:11:46 -05:00
|
|
|
HAVE_OS_H=0; AC_SUBST([HAVE_OS_H])
|
|
|
|
HAVE_SYS_PARAM_H=0; AC_SUBST([HAVE_SYS_PARAM_H])
|
2007-10-14 01:37:15 -04:00
|
|
|
REPLACE_CHOWN=0; AC_SUBST([REPLACE_CHOWN])
|
2009-07-05 12:14:08 -04:00
|
|
|
REPLACE_CLOSE=0; AC_SUBST([REPLACE_CLOSE])
|
2007-10-14 01:37:15 -04:00
|
|
|
REPLACE_FCHDIR=0; AC_SUBST([REPLACE_FCHDIR])
|
|
|
|
REPLACE_GETCWD=0; AC_SUBST([REPLACE_GETCWD])
|
2008-04-14 18:38:57 -04:00
|
|
|
REPLACE_GETPAGESIZE=0; AC_SUBST([REPLACE_GETPAGESIZE])
|
2007-10-14 01:37:15 -04:00
|
|
|
REPLACE_LCHOWN=0; AC_SUBST([REPLACE_LCHOWN])
|
|
|
|
REPLACE_LSEEK=0; AC_SUBST([REPLACE_LSEEK])
|
2009-07-05 12:14:08 -04:00
|
|
|
REPLACE_WRITE=0; AC_SUBST([REPLACE_WRITE])
|
|
|
|
UNISTD_H_HAVE_WINSOCK2_H=0; AC_SUBST([UNISTD_H_HAVE_WINSOCK2_H])
|
2007-10-14 01:37:15 -04:00
|
|
|
])
|