]> Savannah Git Hosting - gnulib.git/commit
getprogname: correct the test for a __progname variable
authorJim Meyering <meyering@fb.com>
Sun, 2 Oct 2016 02:53:52 +0000 (19:53 -0700)
committerJim Meyering <meyering@fb.com>
Sun, 2 Oct 2016 02:58:57 +0000 (19:58 -0700)
commit65e69153ddab1cd4ae540d02ac2d030638aab3cc
tree07cca694b711d132ce0a3e21e6c72cbc44afbb00
parent5f7358cc193d40a8e2c37409d437d7f0f2a0f9b1
getprogname: correct the test for a __progname variable

* m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
and AC_LINK_IFELSE to check for a global __progname.  If found,
define HAVE_VAR___PROGNAME.
* lib/getprogname.c (getprogname): Reflect the new name of the
preprocessor symbol: s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
Assaf Gordon reported that the erroneous prior check caused
link failure on AIX 7 in
https://lists.gnu.org/archive/html/grep-devel/2016-10/msg00001.html
ChangeLog
lib/getprogname.c
m4/getprogname.m4