From: Rosen Penev Date: Mon, 1 Jul 2019 20:33:12 +0000 (-0700) Subject: common: Fix uClibc-ng compilation X-Git-Tag: 0.23.17~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=99cdf3dc86ec7148e08351b63d8ee5f2f2a7f4d3;p=p11-kit common: Fix uClibc-ng compilation program_invocation_short_name is const under uClibc-ng. --- diff --git a/configure.ac b/configure.ac index 492288a..66ade65 100644 --- a/configure.ac +++ b/configure.ac @@ -135,9 +135,9 @@ if test "$os_unix" = "yes"; then [AC_MSG_ERROR([could not find required gmtime_r() function])]) # Check if these are declared and/or available to link against - AC_CHECK_DECLS([program_invocation_short_name]) + AC_CHECK_DECLS([program_invocation_short_name]), [], [], [#include ]) AC_MSG_CHECKING([whether program_invocation_short_name is available]) - AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include ]], + AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include ]], [[program_invocation_short_name = "test";]])], [AC_DEFINE([HAVE_PROGRAM_INVOCATION_SHORT_NAME], [1], [Whether program_invocation_short_name available])