OSSP CVS Repository

ossp - Check-in [3933]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 3933
Date: 2003-Jan-22 22:56:07 (local)
2003-Jan-22 21:56:07 (UTC)
User:ms
Branch:
Comment: Try to fix detection of SIOCGENADDR and SIOCGIFHWADDR.
Tickets:
Inspections:
Files:
ossp-pkg/as/as-gui/aclocal.m4      1.9 -> 1.10     12 inserted, 18 deleted

ossp-pkg/as/as-gui/aclocal.m4 1.9 -> 1.10

--- aclocal.m4   2003/01/22 20:41:47     1.9
+++ aclocal.m4   2003/01/22 21:56:07     1.10
@@ -35,15 +35,12 @@
 
 AC_DEFUN(AC_CHECK_SIOCGIFHWADDR,[
 AC_MSG_CHECKING(whether <sys/ioctl.h> has SIOCGIFHWADDR)
-AC_TRY_RUN(
-    #include <sys/sockio.h>
-    #include <sys/ioctl.h>
-    int main()
-    {
-        int i = SIOCGIFHWADDR;
-        return 0;
-    },
-    AC_DEFINE(HAVE_SIOCGIFHWADDR, 1, [Define to 1 if <sys/ioctl.h> defines or includes SIOCFIFHWADDR.]),
+AC_TRY_COMPILE([#include <sys/sockio.h>
+#include <sys/ioctl.h>
+], [
+  int i = SIOCGIFHWADDR;
+  return 0;],
+    AC_DEFINE(HAVE_SIOCGIFHWADDR, 1, [Define to 1 if <sys/ioctl.h> defines or includes SIOCGIFHWADDR.]),
     AC_MSG_RESULT([no]),
     AC_MSG_RESULT([yes]))
 ])dnl
@@ -54,15 +51,12 @@
 dnl ##
 
 AC_DEFUN(AC_CHECK_SIOCGENADDR,[
-AC_MSG_CHECKING(whether ioctl.h has SIOCGENADDR)
-AC_TRY_RUN(
-    #include <sys/sockio.h>
-    #include <sys/ioctl.h>
-    int main()
-    {
-        int i = SIOCGENADDR;
-        return 0;
-    },
+AC_MSG_CHECKING(whether <sys/ioctl.h> has SIOCGENADDR)
+AC_TRY_COMPILE([#include <sys/sockio.h>
+#include <sys/ioctl.h>
+], [
+  int i = SIOCGENADDR;
+  return 0;],
     AC_DEFINE(HAVE_SIOCGENADDR, 1, [Define to 1 if <sys/ioctl.h> defines or includes SIOCGENADDR.]),
     AC_MSG_RESULT([no]),
     AC_MSG_RESULT([yes]))

CVSTrac 2.0.1