[packages] radiusclient-ng: fix autoreconf
[openwrt/svn-archive/archive.git] / libs / radiusclient-ng / patches / 001-cross_compile.patch
1 --- a/configure
2 +++ b/configure
3 @@ -23332,8 +23332,7 @@ echo $ECHO_N "checking for field domainn
4 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5 See \`config.log' for more details." >&5
6 echo "$as_me: error: cannot run test program while cross compiling
7 -See \`config.log' for more details." >&2;}
8 - { (exit 1); exit 1; }; }
9 +See \`config.log' for more details." >&2;} }
10 else
11 cat >conftest.$ac_ext <<_ACEOF
12 /* confdefs.h. */
13 --- a/configure.in
14 +++ b/configure.in
15 @@ -104,32 +104,7 @@ AC_REPLACE_FUNCS(strdup strerror strcase
16 AC_CHECK_FUNCS(flock fcntl uname gethostname sysinfo getdomainname)
17 AC_CHECK_FUNCS(stricmp random rand snprintf vsnprintf)
18
19 -if test "$ac_cv_func_uname" = 'yes'
20 -then
21 - AC_MSG_CHECKING([for field domainname in struct utsname])
22 - AC_TRY_RUN([
23 - #include <sys/utsname.h>
24 -
25 - main(int argc, char **argv)
26 - {
27 - struct utsname uts;
28 - uts.domainname[0] = '\0';
29 - }
30 - ],
31 - AC_MSG_RESULT(yes)
32 - AC_DEFINE(HAVE_STRUCT_UTSNAME_DOMAINNAME),
33 - AC_MSG_RESULT(no)
34 - )
35 -fi
36 -
37 -AC_MSG_CHECKING([for /dev/urandom])
38 -if test -c /dev/urandom
39 -then
40 - AC_MSG_RESULT(yes)
41 - AC_DEFINE(HAVE_DEV_URANDOM)
42 -else
43 - AC_MSG_RESULT(no)
44 -fi
45 +AC_DEFINE(HAVE_DEV_URANDOM)
46
47 dnl Determine PATH setting
48 echo $ac_n "using the following PATH setting for exec'ed programs... $ac_c" 1>&6