]> granicus.if.org Git - procps-ng/commitdiff
build-sys: program_invocation_short_name is defined in errno.h
authorSami Kerola <kerolasa@iki.fi>
Mon, 16 Apr 2012 18:43:16 +0000 (20:43 +0200)
committerSami Kerola <kerolasa@iki.fi>
Mon, 16 Apr 2012 18:43:16 +0000 (20:43 +0200)
The autotools check is using argp.h which can be missing in some
environments.

Reference: http://old.nabble.com/-PATCH--argp%3A-fix-program_invocation_name-detection-td30252754.html
Reference: http://lists.linuxtogo.org/pipermail/openembedded-core/2011-June/003772.html
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
configure.ac

index 66a56221575a89b97ff659129c82fbdf0a221d4c..4093346fcbed7a0a6383cb84a27c0da84b51b5c9 100644 (file)
@@ -136,7 +136,7 @@ dnl ALL_LINGUAS="af am ar as be bg bn_IN bn ca cs cy da de el en_GB es et eu_ES
 dnl fi
 
 AC_MSG_CHECKING(whether program_invocation_short_name is defined)
-AC_TRY_COMPILE([#include <argp.h>],
+AC_TRY_COMPILE([#include <errno.h>],
                [program_invocation_short_name = "test";],
                AC_DEFINE(HAVE_PROGRAM_INVOCATION_SHORT_NAME, 1,
                        [Define if program_invocation_short_name is defined])