From be26243f9c92c49f990958bf715c6a122c9a796c Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Mon, 16 Apr 2012 20:43:16 +0200 Subject: [PATCH] build-sys: program_invocation_short_name is defined in errno.h 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 --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 66a56221..4093346f 100644 --- a/configure.ac +++ b/configure.ac @@ -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 ], +AC_TRY_COMPILE([#include ], [program_invocation_short_name = "test";], AC_DEFINE(HAVE_PROGRAM_INVOCATION_SHORT_NAME, 1, [Define if program_invocation_short_name is defined])