]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/rp-pppoe/rp-pppoe-3.5/rp-pppoe-3.5_configure_in_cross.diff
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / rp-pppoe / rp-pppoe-3.5 / rp-pppoe-3.5_configure_in_cross.diff
1 --- rp-pppoe-3.5.clean/src/configure.in 2002-07-08 16:38:24.000000000 +0200
2 +++ rp-pppoe-3.5/src/configure.in       2004-08-06 19:24:56.593931152 +0200
3 @@ -131,13 +131,16 @@
4  
5  dnl Check for Linux-specific kernel support for PPPoE
6  AC_MSG_CHECKING(for Linux 2.4.X kernel-mode PPPoE support)
7 -if test "`uname -s`" = "Linux" ; then
8 +AC_CACHE_VAL(ac_cv_linux_kernel_pppoe,[
9 +if test "`uname -s`" = "Linux"; then
10 +if test $cross_compiling = "no"; then
11  dnl Do a bunch of modprobes.  Can't hurt; might help.
12  modprobe ppp_generic > /dev/null 2>&1
13  modprobe ppp_async > /dev/null 2>&1
14  modprobe n_hdlc > /dev/null 2>&1
15  modprobe ppp_synctty > /dev/null 2>&1
16  modprobe pppoe > /dev/null 2>&1
17 +fi
18  AC_TRY_RUN([#include <sys/socket.h>
19  #include <net/ethernet.h>
20  #include <linux/if.h>
21 @@ -146,10 +149,11 @@
22  {
23         if (socket(AF_PPPOX, SOCK_DGRAM, PX_PROTO_OE) >= 0) return 0; else return 1;
24  }
25 -], ac_cv_linux_kernel_pppoe=yes, ac_cv_linux_kernel_pppoe=no)
26 +], ac_cv_linux_kernel_pppoe=yes, ac_cv_linux_kernel_pppoe=no, [ac_cv_linux_kernel_pppoe=no; $ECHO "cross-compiling, default: "] )
27  else
28         ac_cv_linux_kernel_pppoe=no
29  fi
30 +])
31  
32  $ECHO $ac_cv_linux_kernel_pppoe
33  if test "$ac_cv_linux_kernel_pppoe" != yes ; then
34 @@ -208,7 +212,7 @@
35  esac
36  
37  dnl Figure out packing order of structures
38 -AC_MSG_CHECKING(packing order of bit fields)
39 +AC_CACHE_CHECK([packing order of bit fields],rpppoe_cv_pack_bitfields,[
40  AC_TRY_RUN([
41  union foo {
42      struct bar {
43 @@ -231,9 +235,11 @@
44      } else {
45         return 2;
46      }
47 -}], PACK=normal, PACK=rev)
48 +}], rpppoe_cv_pack_bitfields=normal, rpppoe_cv_pack_bitfields=rev, 
49 +$ECHO "no defaults for cross-compiling"; exit 0)
50 +])
51  
52 -if test "$PACK" = "rev" ; then
53 +if test "$rpppoe_cv_pack_bitfields" = "rev" ; then
54         $ECHO "reversed"
55         AC_DEFINE(PACK_BITFIELDS_REVERSED)
56  else