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 <kerolasa@iki.fi>
This commit is contained in:
parent
beab98a036
commit
be26243f9c
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user