progname: also set global program_invocation_name, when possible.
[pspp] / ChangeLog
index 21e02a21ab0519f6dbcedc357e1cf8f78ee8b7d7..6ad5647205de490910cd46d9b59d717a976fd8e5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2009-08-24  Jim Meyering  <meyering@redhat.com>
+
+       progname: also set global program_invocation_name, when possible
+       Before this change, a libtool-enabled program that calls glibc's
+       error function would report the program name as
+       "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
+       * modules/progname (configure.ac): Check for a declaration of
+       program_invocation_name.
+       * lib/progname.c:  Include <errno.h>.
+       (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
+       Set program_invocation_name.
+
 2009-08-23  Bruno Haible  <bruno@clisp.org>
 
        * lib/dup3.c: Include <string.h>.