source: freewrt/package/libnids/patches/configure.patch@ 428f140

freewrt_1_0 freewrt_2_0
Last change on this file since 428f140 was 475ad56, checked in by Waldemar Brodkorb <wbx@…>, 20 years ago

add OpenWrt trunk revision 3830.

git-svn-id: svn://www.freewrt.org/trunk/freewrt@1 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 2.1 KB
  • libnids-1.18

    diff -Nur libnids-1.18/configure libnids-1.18.patched/configure
    old new  
    32533253esac
    32543254
    32553255
    3256 CFLAGS="$CFLAGS -D_BSD_SOURCE"
     3256CFLAGS="$CFLAGS"
    32573257
    32583258for ac_func in gettimeofday
    32593259do
     
    34893489echo "${ECHO_T}no" >&6
    34903490     ;;
    34913491  *)
    3492      echo "$as_me:$LINENO: result: $withval" >&5
    3493 echo "${ECHO_T}$withval" >&6
     3492     echo "$ac_t""$withval" 1>&6
    34943493     if test -f $withval/pcap.h -a -f $withval/libpcap.a; then
    34953494        owd=`pwd`
    34963495        if cd $withval; then withval=`pwd`; cd $owd; fi
    3497         PCAP_CFLAGS="-I$withval -I$withval/bpf"
     3496        PCAPINC="-I$withval -I$withval/bpf"
    34983497        PCAPLIB="-L$withval -lpcap"
     3498     elif test -f $withval/include/pcap.h -a \
     3499               -f $withval/include/pcap-bpf.h -a \
     3500               -f $withval/lib/libpcap.a; then
     3501        owd=`pwd`
     3502        if cd $withval; then withval=`pwd`; cd $owd; fi
     3503        PCAPINC="-I$withval/include"
     3504        PCAPLIB="-L$withval/lib -lpcap"
    34993505     else
    3500         { { echo "$as_me:$LINENO: error: pcap.h or libpcap.a not found in $withval" >&5
    3501 echo "$as_me: error: pcap.h or libpcap.a not found in $withval" >&2;}
    3502    { (exit 1); exit 1; }; }
     3506        { echo "configure: error: pcap.h" 1>&2; exit 1; }
    35033507     fi
    35043508     ;;
    35053509  esac
     
    36053609  *)
    36063610     echo "$as_me:$LINENO: result: $withval" >&5
    36073611echo "${ECHO_T}$withval" >&6
    3608      if test -f $withval/include/libnet.h -a -f $withval/lib/libnet.a -a -f $withval/libnet-config ; then
     3612     if test -f $withval/include/libnet.h -a -f $withval/lib/libnet.a -a -f $withval/bin/libnet-config ; then
    36093613        owd=`pwd`
    36103614        if cd $withval; then withval=`pwd`; cd $owd; fi
    3611         LNET_CFLAGS="-I$withval/include `$withval/libnet-config --defines`"
     3615        LNET_CFLAGS="-I$withval/include `$withval/bin/libnet-config --defines`"
    36123616        LNETLIB="-L$withval/lib -lnet"
    36133617     elif test -f $withval/include/libnet.h -a -f $withval/src/libnet.a; then
    36143618        owd=`pwd`
     
    38613865else
    38623866  echo "$as_me: failed program was:" >&5
    38633867cat conftest.$ac_ext >&5
    3864 HAVE_BSD_UDPHDR=0
     3868HAVE_BSD_UDPHDR=1
    38653869fi
    38663870rm -f conftest.$ac_objext conftest.$ac_ext
    38673871
Note: See TracBrowser for help on using the repository browser.