Annotation of embedaddon/mpd/src/configure, revision 1.1
1.1 ! misho 1: #!/bin/sh
! 2:
! 3: CONFIG="config.h"
! 4:
! 5: echo "/* System features detected by configure */" > $CONFIG
! 6:
! 7: echo -n "Looking for ng_bpf ..."
! 8: if [ -e /usr/include/netgraph/ng_bpf.h \
! 9: -o -e /usr/include/bpf/netgraph/ng_bpf.h ]
! 10: then
! 11: echo " found."
! 12: echo "#define HAVE_NG_BPF 1" >> $CONFIG
! 13: else
! 14: echo " not found."
! 15: fi
! 16:
! 17: echo -n "Looking for ng_car ..."
! 18: if [ -e /usr/include/netgraph/ng_car.h \
! 19: -o -e /usr/local/include/netgraph/ng_car.h ]
! 20: then
! 21: echo " found."
! 22: echo "#define HAVE_NG_CAR 1" >> $CONFIG
! 23: else
! 24: echo " not found."
! 25: fi
! 26:
! 27: echo -n "Looking for ng_deflate ..."
! 28: if [ -e /usr/include/netgraph/ng_deflate.h ]
! 29: then
! 30: echo " found."
! 31: echo "#define HAVE_NG_DEFLATE 1" >> $CONFIG
! 32: else
! 33: echo " not found."
! 34: fi
! 35:
! 36: echo -n "Looking for ng_ipacct ..."
! 37: if [ -e /usr/include/netgraph/ng_ipacct.h \
! 38: -o -e /usr/local/include/netgraph/ng_ipacct.h ]
! 39: then
! 40: echo " found."
! 41: echo "#define HAVE_NG_IPACCT 1" >> $CONFIG
! 42: else
! 43: echo " not found."
! 44: fi
! 45:
! 46: echo -n "Looking for ng_mppc ..."
! 47: if [ -e /usr/include/netgraph/ng_mppc.h \
! 48: -o -e /usr/include/netgraph/mppc/ng_mppc.h ]
! 49: then
! 50: echo " found."
! 51: echo "#define HAVE_NG_MPPC 1" >> $CONFIG
! 52: else
! 53: echo " not found."
! 54: fi
! 55:
! 56: echo -n "Looking for ng_nat ..."
! 57: if [ -e /usr/include/netgraph/ng_nat.h ]
! 58: then
! 59: echo " found."
! 60: echo "#define HAVE_NG_NAT 1" >> $CONFIG
! 61: else
! 62: echo " not found."
! 63: fi
! 64:
! 65: echo -n "Looking for ng_netflow ..."
! 66: if [ -e /usr/include/netgraph/netflow/ng_netflow.h \
! 67: -o -e /usr/local/include/netgraph/netflow/ng_netflow.h ]
! 68: then
! 69: if [ -e /usr/include/netgraph/netflow/ng_netflow.h ] && \
! 70: /usr/bin/grep NG_NETFLOW_HOOK_OUT /usr/include/netgraph/netflow/ng_netflow.h >/dev/null 2>&1
! 71: then
! 72: echo " found."
! 73: echo "#define HAVE_NG_NETFLOW 1" >> $CONFIG
! 74: elif [ -e /usr/local/include/netgraph/netflow/ng_netflow.h ] && \
! 75: /usr/bin/grep NG_NETFLOW_HOOK_OUT /usr/local/include/netgraph/netflow/ng_netflow.h >/dev/null 2>&1
! 76: then
! 77: echo " found."
! 78: echo "#define HAVE_NG_NETFLOW 1" >> $CONFIG
! 79: else
! 80: echo " too old, unsupported."
! 81: fi
! 82: else
! 83: echo " not found."
! 84: fi
! 85:
! 86: echo -n "Looking for ng_pred1 ..."
! 87: if [ -e /usr/include/netgraph/ng_pred1.h ]
! 88: then
! 89: echo " found."
! 90: echo "#define HAVE_NG_PRED1 1" >> $CONFIG
! 91: else
! 92: echo " not found."
! 93: fi
! 94:
! 95: echo -n "Looking for ng_tcpmss ..."
! 96: if [ -e /usr/include/netgraph/ng_tcpmss.h ]
! 97: then
! 98: echo " found."
! 99: echo "#define HAVE_NG_TCPMSS 1" >> $CONFIG
! 100: else
! 101: echo " not found."
! 102: fi
! 103:
! 104: echo -n "Looking for ng_vjc ..."
! 105: if [ -e /usr/include/netgraph/ng_vjc.h \
! 106: -o -e /usr/include/vjc/netgraph/ng_vjc.h ]
! 107: then
! 108: echo " found."
! 109: echo "#define HAVE_NG_VJC 1" >> $CONFIG
! 110: else
! 111: echo " not found."
! 112: fi
! 113:
! 114: echo -n "Looking for ipfw ..."
! 115: if [ -e /sbin/ipfw ]
! 116: then
! 117: echo " found."
! 118: echo "#define HAVE_IPFW 1" >> $CONFIG
! 119: else
! 120: echo " not found."
! 121: fi
! 122:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>