[packages] radiusclient-ng: fix autoreconf
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 13 Dec 2010 00:48:33 +0000 (00:48 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 13 Dec 2010 00:48:33 +0000 (00:48 +0000)
SVN-Revision: 24532

libs/radiusclient-ng/patches/001-cross_compile.patch

index fc4d21ddca5f36228f0dfdfeb398b692352eeeb7..3925563882bacac5a68d6ca4cbc7f92239292d97 100644 (file)
@@ -1,6 +1,6 @@
---- radiusclient-ng-0.5.6.orig/configure
-+++ radiusclient-ng-0.5.6/configure
-@@ -23332,8 +23332,7 @@
+--- a/configure
++++ b/configure
+@@ -23332,8 +23332,7 @@ echo $ECHO_N "checking for field domainn
    { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  See \`config.log' for more details." >&5
  echo "$as_me: error: cannot run test program while cross compiling
  else
    cat >conftest.$ac_ext <<_ACEOF
  /* confdefs.h.  */
+--- a/configure.in
++++ b/configure.in
+@@ -104,32 +104,7 @@ AC_REPLACE_FUNCS(strdup strerror strcase
+ AC_CHECK_FUNCS(flock fcntl uname gethostname sysinfo getdomainname)
+ AC_CHECK_FUNCS(stricmp random rand snprintf vsnprintf)
+-if test "$ac_cv_func_uname" = 'yes'
+-then
+-      AC_MSG_CHECKING([for field domainname in struct utsname])
+-      AC_TRY_RUN([
+-      #include <sys/utsname.h>
+-      
+-      main(int argc, char **argv)
+-      {
+-              struct utsname uts;
+-              uts.domainname[0] = '\0';
+-      }
+-      ],
+-      AC_MSG_RESULT(yes)
+-      AC_DEFINE(HAVE_STRUCT_UTSNAME_DOMAINNAME),
+-      AC_MSG_RESULT(no)
+-      )
+-fi
+-
+-AC_MSG_CHECKING([for /dev/urandom])
+-if test -c /dev/urandom
+-then
+-      AC_MSG_RESULT(yes)
+-      AC_DEFINE(HAVE_DEV_URANDOM)
+-else
+-      AC_MSG_RESULT(no)
+-fi
++AC_DEFINE(HAVE_DEV_URANDOM)
+ dnl Determine PATH setting
+ echo $ac_n "using the following PATH setting for exec'ed programs... $ac_c" 1>&6