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

(-)configure.in.ori (-24 / +32 lines)
Lines 104-135 Link Here
104
AC_CHECK_FUNCS(flock fcntl uname gethostname sysinfo getdomainname)
104
AC_CHECK_FUNCS(flock fcntl uname gethostname sysinfo getdomainname)
105
AC_CHECK_FUNCS(stricmp random rand snprintf vsnprintf)
105
AC_CHECK_FUNCS(stricmp random rand snprintf vsnprintf)
106
106
107
if test "$ac_cv_func_uname" = 'yes'
107
AC_CACHE_CHECK([for field domainname in struct utsname], ac_cv_struct_utsname,
108
then
108
 [AC_TRY_RUN([
109
	AC_MSG_CHECKING([for field domainname in struct utsname])
109
  #include <sys/utsname.h>
110
	AC_TRY_RUN([
111
	#include <sys/utsname.h>
112
	
110
	
113
	main(int argc, char **argv)
111
  main(int argc, char **argv)
114
	{
112
  {
115
		struct utsname uts;
113
    struct utsname uts;
116
		uts.domainname[0] = '\0';
114
    uts.domainname[0] = '\0';
117
	}
115
  }
118
	],
116
 ],
119
	AC_MSG_RESULT(yes)
117
 ac_cv_struct_utsname=yes,
120
	AC_DEFINE(HAVE_STRUCT_UTSNAME_DOMAINNAME),
118
 ac_cv_struct_utsname=no,
121
	AC_MSG_RESULT(no)
119
 [AC_MSG_ERROR([cross-compiling,
122
	)
120
  presetting ac_cv_struct_utsname=(yes|no) will help])]
123
fi
121
 )
122
])
123
AS_VAR_IF(ac_cv_struct_utsname, yes,
124
 [AC_DEFINE(HAVE_STRUCT_UTSNAME_DOMAINNAME)],
125
)
124
126
125
AC_MSG_CHECKING([for /dev/urandom])
127
AC_CACHE_CHECK([for /dev/urandom], ac_cv_file__dev_urandom,
126
if test -c /dev/urandom
128
 [AS_IF([test "$cross_compiling" = yes],
127
then
129
  [AC_MSG_ERROR([cross-compiling,
128
	AC_MSG_RESULT(yes)
130
   presetting ac_cv_file__dev_urandom=(yes|no) will help])],
129
	AC_DEFINE(HAVE_DEV_URANDOM)
131
  if test -c /dev/urandom ; then
130
else
132
    ac_cv_file__dev_urandom=yes
131
	AC_MSG_RESULT(no)
133
  else
132
fi
134
    ac_cv_file__dev_urandom=no
135
  fi
136
 )]
137
)
138
AS_VAR_IF(ac_cv_file__dev_urandom, yes,
139
 [AC_DEFINE(HAVE_DEV_URANDOM)]
140
)
133
141
134
dnl Determine PATH setting
142
dnl Determine PATH setting
135
echo $ac_n "using the following PATH setting for exec'ed programs... $ac_c" 1>&6
143
echo $ac_n "using the following PATH setting for exec'ed programs... $ac_c" 1>&6

Return to bug 373365