Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 477486
Collapse All | Expand All

(-)a/configure.ac (-4 / +18 lines)
Lines 90-99 if test "$os_unix" = "yes"; then Link Here
90
		[AC_MSG_ERROR([could not find required gmtime_r() function])])
90
		[AC_MSG_ERROR([could not find required gmtime_r() function])])
91
91
92
	# Check if these are declared and/or available to link against
92
	# Check if these are declared and/or available to link against
93
	AC_CHECK_DECLS([program_invocation_short_name])
93
	AC_CHECK_HEADERS([errno.h argp.h])
94
	AC_CHECK_DECLS([program_invocation_short_name],,,[[
95
		#ifdef HAVE_ARGP_H
96
		#include <argp.h>
97
		#endif
98
		#ifdef HAVE_ERRNO_H
99
		#include <errno.h>
100
		#endif
101
	]])
94
	AC_MSG_CHECKING([whether program_invocation_short_name is available])
102
	AC_MSG_CHECKING([whether program_invocation_short_name is available])
95
	AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <argp.h>]],
103
	AC_LINK_IFELSE([
96
	                                [[program_invocation_short_name = "test";]])],
104
		AC_LANG_PROGRAM([[
105
			#ifdef HAVE_ARGP_H
106
			#include <argp.h>
107
			#endif
108
			#ifdef HAVE_ERRNO_H
109
			#include <errno.h>
110
			#endif
111
		]], [[program_invocation_short_name = "test";]])],
97
	               [AC_DEFINE([HAVE_PROGRAM_INVOCATION_SHORT_NAME], [1],
112
	               [AC_DEFINE([HAVE_PROGRAM_INVOCATION_SHORT_NAME], [1],
98
	                          [Whether program_invocation_short_name available])
113
	                          [Whether program_invocation_short_name available])
99
	                AC_MSG_RESULT([yes])],
114
	                AC_MSG_RESULT([yes])],
100
- 

Return to bug 477486