]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
gnulib module 'exitfail'.
authorBruno Haible <bruno@clisp.org>
Wed, 12 Jan 2005 12:48:16 +0000 (12:48 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:12:00 +0000 (12:12 +0200)
gettext-tools/ChangeLog
gettext-tools/configure.ac
gettext-tools/lib/ChangeLog
gettext-tools/lib/Makefile.am
gettext-tools/lib/Makefile.msvc
gettext-tools/lib/Makefile.vms
gettext-tools/lib/exitfail.c [new file with mode: 0644]
gettext-tools/lib/exitfail.h [new file with mode: 0644]
gettext-tools/m4/ChangeLog
gettext-tools/m4/Makefile.am
gettext-tools/m4/exitfail.m4 [new file with mode: 0644]

index 1cb419861e245ff81a1253f1737d392f5b0a0859..1b84e1d3b28d06419e45bfbc8e7c97544aba78f0 100644 (file)
@@ -1,3 +1,7 @@
+2005-01-06  Bruno Haible  <bruno@clisp.org>
+
+       * configure.ac: Invoke gl_EXITFAIL.
+
 2005-01-06  Bruno Haible  <bruno@clisp.org>
 
        * configure.ac: Invoke gl_GETOPT.
index 9cc99a8fd0abb81d2d20dffb82cc34aec5135152..d68e9a62de36da3243447e496c139d89fc5e1d72 100644 (file)
@@ -127,6 +127,7 @@ AM_FUNC_GETLINE
 if test $am_cv_func_working_getline != yes; then
   AC_CHECK_FUNCS(getdelim)
 fi
+gl_EXITFAIL
 gl_FUNC_FNMATCH_POSIX
 gl_GETOPT
 gl_FUNC_EACCESS
index 64284dfdc33011e1714d314d42551ac9592dac6e..76285dc820668bd000758866000b7093a3ee1706 100644 (file)
@@ -1,3 +1,13 @@
+2005-01-06  Bruno Haible  <bruno@clisp.org>
+
+       * exitfail.h: New file, from gnulib.
+       * exitfail.c: New file, from gnulib.
+       * Makefile.am (libgettextlib_la_SOURCES): Add exitfail.h, exitfail.c.
+       * Makefile.msvc (OBJECTS): Add exitfail.obj.
+       (exitfail.obj): New rule.
+       * Makefile.vms (OBJECTS): Add exitfail.obj.
+       (exitfail.obj): New rule.
+
 2005-01-06  Bruno Haible  <bruno@clisp.org>
 
        * Makefile.am (libgettextlib_la_SOURCES): Remove getopt files.
index 284c03bd3189588ae2f5edb2b22918960d02d5a1..42340ecaf09f6a996703ee32c64f855f6a99c440 100644 (file)
@@ -47,6 +47,7 @@ libgettextlib_la_SOURCES = \
   error-progname.h error-progname.c \
   execute.h execute.c w32spawn.h \
   exit.h \
+  exitfail.h exitfail.c \
   fatal-signal.h fatal-signal.c \
   findprog.h findprog.c \
   fstrcmp.h fstrcmp.c \
index 21b0397d673d0e6aa5700827144d35f0f0c583aa..ba4a3389fc6e5458b61661167cd1f643b712fc63 100644 (file)
@@ -93,6 +93,7 @@ OBJECTS = \
   error.obj \
   error-progname.obj \
   execute.obj \
+  exitfail.obj \
   fatal-signal.obj \
   findprog.obj \
   fstrcmp.obj \
@@ -178,6 +179,9 @@ error-progname.obj : error-progname.c
 execute.obj : execute.c
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c execute.c
 
+exitfail.obj : exitfail.c
+       $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c exitfail.c
+
 fatal-signal.obj : fatal-signal.c
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c fatal-signal.c
 
index 4017883e59265fdff97c16414a4794cfa735a451..957d172c6eab12bb3120aa31776f7618ea82af79 100644 (file)
@@ -51,6 +51,7 @@ OBJECTS = \
   error.obj, \
   error-progname.obj, \
   execute.obj, \
+  exitfail.obj, \
   fatal-signal.obj, \
   findprog.obj, \
   fstrcmp.obj, \
@@ -139,6 +140,9 @@ error-progname.obj : error-progname.c
 execute.obj : execute.c
        $(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) execute.c
 
+exitfail.obj : exitfail.c
+       $(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) exitfail.c
+
 fatal-signal.obj : fatal-signal.c
        $(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) fatal-signal.c
 
diff --git a/gettext-tools/lib/exitfail.c b/gettext-tools/lib/exitfail.c
new file mode 100644 (file)
index 0000000..2ae5f69
--- /dev/null
@@ -0,0 +1,27 @@
+/* Failure exit status
+
+   Copyright (C) 2002, 2003 Free Software Foundation, Inc.
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2, or (at your option)
+   any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; see the file COPYING.
+   If not, write to the Free Software Foundation,
+   59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
+
+#if HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include "exitfail.h"
+#include "exit.h"
+
+int volatile exit_failure = EXIT_FAILURE;
diff --git a/gettext-tools/lib/exitfail.h b/gettext-tools/lib/exitfail.h
new file mode 100644 (file)
index 0000000..cf5ab71
--- /dev/null
@@ -0,0 +1,20 @@
+/* Failure exit status
+
+   Copyright (C) 2002 Free Software Foundation, Inc.
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2, or (at your option)
+   any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; see the file COPYING.
+   If not, write to the Free Software Foundation,
+   59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
+
+extern int volatile exit_failure;
index 2e29b27ee4d7125eabc5a4e4b59424b2c9277ffe..d2cd96c563642fda156960401fa1e6123384d171 100644 (file)
@@ -1,3 +1,8 @@
+2005-01-06  Bruno Haible  <bruno@clisp.org>
+
+       * exitfail.m4: New file, from gnulib.
+       * Makefile.am (EXTRA_DIST): Add exitfail.m4.
+
 2005-01-06  Bruno Haible  <bruno@clisp.org>
 
        * Makefile.am (EXTRA_DIST): Add getopt.m4.
index 77b835f2c199918387465cae3f31d9172f24f9ac..41a9b35c713e7fe347b81bbb9d2943e2a782c64a 100644 (file)
@@ -55,6 +55,7 @@ csharpexec.m4 \
 eaccess.m4 \
 eealloc.m4 \
 error.m4 \
+exitfail.m4 \
 extensions.m4 \
 fnmatch.m4 \
 gcj.m4 \
diff --git a/gettext-tools/m4/exitfail.m4 b/gettext-tools/m4/exitfail.m4
new file mode 100644 (file)
index 0000000..fa5b149
--- /dev/null
@@ -0,0 +1,13 @@
+# exitfail.m4 serial 3
+dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc.
+dnl This file is free software, distributed under the terms of the GNU
+dnl General Public License.  As a special exception to the GNU General
+dnl Public License, this file may be distributed as part of a program
+dnl that contains a configuration script generated by Autoconf, under
+dnl the same distribution terms as the rest of that program.
+
+AC_DEFUN([gl_EXITFAIL],
+[
+  dnl No prerequisites of lib/exitfail.c.
+  :
+])