diff options
author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2005-10-03 13:43:40 +0000 |
---|---|---|
committer | <> | 2014-09-25 11:25:48 +0000 |
commit | 10de491ef0bc43827ab8631a4c02860134e620a9 (patch) | |
tree | 22e734337cc9aa5d9b1d7c71261d160b6a60634d /m4/openat.m4 | |
download | cvs-tarball-10de491ef0bc43827ab8631a4c02860134e620a9.tar.gz |
Imported from /home/lorry/working-area/delta_cvs-tarball/cvs-1.12.13.tar.bz2.HEADcvs-1.12.13master
Diffstat (limited to 'm4/openat.m4')
-rw-r--r-- | m4/openat.m4 | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/m4/openat.m4 b/m4/openat.m4 new file mode 100644 index 0000000..27b0e59 --- /dev/null +++ b/m4/openat.m4 @@ -0,0 +1,28 @@ +#serial 3 +# See if we need to use our replacement for Solaris' openat function. + +dnl Copyright (C) 2004 Free Software Foundation, Inc. +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. + +# Written by Jim Meyering. + +AC_DEFUN([gl_FUNC_OPENAT], +[ + AC_LIBSOURCES([openat.c, openat.h]) + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + AC_REPLACE_FUNCS(openat) + case $ac_cv_func_openat in + yes) ;; + *) + AC_DEFINE([__OPENAT_PREFIX], [[rpl_]], + [Define to rpl_ if the openat replacement function should be used.]) + gl_PREREQ_OPENAT;; + esac +]) + +AC_DEFUN([gl_PREREQ_OPENAT], +[ + AC_REQUIRE([gl_SAVE_CWD]) +]) |