patch-configure 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. --- libnet-1.1.4.orig/configure 2009-06-10 01:13:22.000000000 +0200
  2. +++ libnet-1.1.4/configure 2009-12-11 11:45:26.000000000 +0100
  3. @@ -1,4 +1,4 @@
  4. -#! /bin/sh
  5. +#
  6. # Guess values for system-dependent variables and create Makefiles.
  7. # Generated by GNU Autoconf 2.61 for libnet 1.1.4.
  8. #
  9. @@ -19678,57 +19678,6 @@ done
  10. { echo "$as_me:$LINENO: checking machine endianess" >&5
  11. echo $ECHO_N "checking machine endianess... $ECHO_C" >&6; }
  12. - cat > conftest.c << EOF
  13. -# include <stdio.h>
  14. -# include <stdlib.h>
  15. -
  16. - int main()
  17. - {
  18. - union
  19. - {
  20. - short s;
  21. - char c[sizeof(short)];
  22. - } un;
  23. -
  24. - un.s = 0x0102;
  25. - if (sizeof (short) == 2)
  26. - {
  27. - if (un.c [0] == 1 && un.c [1] == 2)
  28. - {
  29. - printf("B\n");
  30. - }
  31. - else
  32. - {
  33. - if (un.c [0] == 2 && un.c [1] == 1)
  34. - {
  35. - printf("L\n");
  36. - }
  37. - }
  38. - }
  39. - else
  40. - {
  41. - printf("?\n");
  42. - }
  43. - return (EXIT_SUCCESS);
  44. - }
  45. -EOF
  46. - ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.c $LIBS > /dev/null 2>&1
  47. - # Oopz 4.3 BSD doesn't have this. Sorry.
  48. - if test ! -x conftest ; then
  49. - ac_cv_libnet_endianess=unknown
  50. - else
  51. - ./conftest > conftest.out
  52. - result=`cat conftest.out`
  53. - if test $result = "B"; then
  54. - ac_cv_libnet_endianess=big
  55. - elif test $result = "L"; then
  56. - ac_cv_libnet_endianess=lil
  57. - else
  58. - ac_cv_libnet_endianess=unknown
  59. - fi
  60. - fi
  61. - rm -f conftest* core core.conftest
  62. -
  63. { echo "$as_me:$LINENO: result: $ac_cv_libnet_endianess" >&5
  64. echo "${ECHO_T}$ac_cv_libnet_endianess" >&6; }
  65. @@ -19836,7 +19785,15 @@ _ACEOF
  66. { echo "$as_me:$LINENO: checking link-layer packet interface type" >&5
  67. echo $ECHO_N "checking link-layer packet interface type... $ECHO_C" >&6; }
  68. -if test -r /dev/bpf0 ; then
  69. +if test -n "$LL_INT_TYPE"; then
  70. + case $LIBOBJS in
  71. + "libnet_link_$LL_INT_TYPE.$ac_objext" | \
  72. + *" libnet_link_$LL_INT_TYPE.$ac_objext" | \
  73. + "libnet_link_$LL_INT_TYPE.$ac_objext "* | \
  74. + *" libnet_link_$LL_INT_TYPE.$ac_objext "* ) ;;
  75. + *) LIBOBJS="$LIBOBJS libnet_link_$LL_INT_TYPE.$ac_objext" ;;
  76. +esac
  77. +elif test -r /dev/bpf0 ; then
  78. case " $LIBOBJS " in
  79. *" libnet_link_bpf.$ac_objext "* ) ;;
  80. *) LIBOBJS="$LIBOBJS libnet_link_bpf.$ac_objext"