Support programs like Emacs that use gnulib but not gettext.
[pspp] / modules / getopt
index 22d71db6d4a3ba4b88bf83ffc6d4f27ee03e2f92..87022d1b558b9ee06aec84a5c4042f591ff1d6a7 100644 (file)
@@ -1,20 +1,36 @@
 Description:
+Process command line arguments.
 
 Files:
-lib/getopt.h
+lib/getopt_.h
 lib/getopt.c
 lib/getopt1.c
+lib/getopt_int.h
 m4/getopt.m4
 
 Depends-on:
-gettext
+gettext-h
 
 configure.ac:
 gl_GETOPT
 
 Makefile.am:
-lib_SOURCES += getopt.h getopt.c getopt1.c
+BUILT_SOURCES += $(GETOPT_H)
+EXTRA_DIST += getopt_.h getopt_int.h
+
+# We need the following in order to create an <getopt.h> when the system
+# doesn't have one that works with the given compiler.
+all-local $(lib_OBJECTS): $(GETOPT_H)
+getopt.h: getopt_.h
+       cp $(srcdir)/getopt_.h $@-t
+       mv $@-t $@
+MOSTLYCLEANFILES += getopt.h getopt.h-t
 
 Include:
-"getopt.h"
+<getopt.h>
+
+License:
+LGPL
 
+Maintainer:
+all, glibc