diff --git a/m4/fcntl-safer.m4 b/m4/fcntl-safer.m4
--- /dev/null
+++ b/m4/fcntl-safer.m4
@@ -0,0 +1,12 @@
+#serial 2
+dnl Copyright (C) 2005 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.
+
+AC_DEFUN([gl_FCNTL_SAFER],
+[
+ AC_LIBSOURCES([creat-safer.c, fcntl-safer.h, open-safer.c, fcntl--.h])
+ AC_LIBOBJ([open-safer])
+ AC_LIBOBJ([creat-safer])
+])