Annotation of embedaddon/mpd/src/configure, revision 1.1.1.4.2.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 ..."
1.1.1.2   misho      18: if [ -e /usr/include/netgraph/ng_car.h ]
1.1       misho      19: then
                     20:     echo " found."
                     21:     echo "#define      HAVE_NG_CAR     1" >> $CONFIG
                     22: else
                     23:     echo " not found."
                     24: fi
                     25: 
                     26: echo -n "Looking for ng_deflate ..."
                     27: if [ -e /usr/include/netgraph/ng_deflate.h ]
                     28: then
                     29:     echo " found."
                     30:     echo "#define      HAVE_NG_DEFLATE 1" >> $CONFIG
                     31: else
                     32:     echo " not found."
                     33: fi
                     34: 
                     35: echo -n "Looking for ng_ipacct ..."
1.1.1.4   misho      36: if [ "$USE_NG_IPACCT" = no ]; then
                     37:     echo " disabled."
                     38: else if [ -e /usr/include/netgraph/ng_ipacct.h \
1.1       misho      39:   -o -e /usr/local/include/netgraph/ng_ipacct.h ]
                     40: then
                     41:     echo " found."
                     42:     echo "#define      HAVE_NG_IPACCT  1" >> $CONFIG
                     43: else
                     44:     echo " not found."
1.1.1.4   misho      45: fi
1.1       misho      46: fi
                     47: 
                     48: echo -n "Looking for ng_mppc ..."
                     49: if [ -e /usr/include/netgraph/ng_mppc.h \
                     50:   -o -e /usr/include/netgraph/mppc/ng_mppc.h ]
                     51: then
                     52:     echo " found."
                     53:     echo "#define      HAVE_NG_MPPC    1" >> $CONFIG
                     54: else
                     55:     echo " not found."
                     56: fi
                     57: 
                     58: echo -n "Looking for ng_nat ..."
                     59: if [ -e /usr/include/netgraph/ng_nat.h ]
                     60: then
                     61:     echo " found."
                     62:     echo "#define      HAVE_NG_NAT     1" >> $CONFIG
                     63: else
                     64:     echo " not found."
                     65: fi
                     66: 
                     67: echo -n "Looking for ng_netflow ..."
                     68: if [ -e /usr/include/netgraph/netflow/ng_netflow.h \
                     69:   -o -e /usr/local/include/netgraph/netflow/ng_netflow.h ]
                     70: then
                     71:     if [ -e /usr/include/netgraph/netflow/ng_netflow.h ] && \
                     72:        /usr/bin/grep NG_NETFLOW_HOOK_OUT /usr/include/netgraph/netflow/ng_netflow.h >/dev/null 2>&1
                     73:     then
                     74:        echo " found."
                     75:        echo "#define   HAVE_NG_NETFLOW 1" >> $CONFIG
                     76:     elif [ -e /usr/local/include/netgraph/netflow/ng_netflow.h ] && \
                     77:        /usr/bin/grep NG_NETFLOW_HOOK_OUT /usr/local/include/netgraph/netflow/ng_netflow.h >/dev/null 2>&1
                     78:     then
                     79:        echo " found."
                     80:        echo "#define   HAVE_NG_NETFLOW 1" >> $CONFIG
                     81:     else
                     82:        echo " too old, unsupported."
                     83:     fi
                     84: else
                     85:     echo " not found."
                     86: fi
                     87: 
                     88: echo -n "Looking for ng_pred1 ..."
                     89: if [ -e /usr/include/netgraph/ng_pred1.h ]
                     90: then
                     91:     echo " found."
                     92:     echo "#define      HAVE_NG_PRED1   1" >> $CONFIG
                     93: else
                     94:     echo " not found."
                     95: fi
                     96: 
                     97: echo -n "Looking for ng_tcpmss ..."
                     98: if [ -e /usr/include/netgraph/ng_tcpmss.h ]
                     99: then
                    100:     echo " found."
                    101:     echo "#define      HAVE_NG_TCPMSS  1" >> $CONFIG
                    102: else
                    103:     echo " not found."
                    104: fi
                    105: 
                    106: echo -n "Looking for ng_vjc ..."
                    107: if [ -e /usr/include/netgraph/ng_vjc.h \
                    108:   -o -e /usr/include/vjc/netgraph/ng_vjc.h ]
                    109: then
                    110:     echo " found."
                    111:     echo "#define      HAVE_NG_VJC     1" >> $CONFIG
                    112: else
                    113:     echo " not found."
                    114: fi
                    115: 
                    116: echo -n "Looking for ipfw ..."
                    117: if [ -e /sbin/ipfw  ]
                    118: then
                    119:     echo " found."
                    120:     echo "#define      HAVE_IPFW       1" >> $CONFIG
                    121: else
                    122:     echo " not found."
                    123: fi
1.1.1.3   misho     124: 
1.1.1.4.2.1! misho     125: echo -n "Looking for radius support ..."
        !           126: if [ "$USE_RADIUS" = no ]; then
        !           127:     echo " disabled."
        !           128: else if [ -e /usr/include/radlib.h ]
        !           129: then
        !           130:     echo " found."
        !           131:     echo "#define      HAVE_RADIUS     1" >> $CONFIG
1.1.1.3   misho     132: 
                    133: echo -n "Looking for rad_bind_to() ..."
                    134: if /usr/bin/grep rad_bind_to /usr/include/radlib.h >/dev/null 2>&1
                    135: then
                    136:     echo " found."
                    137:     echo "#define      HAVE_RAD_BIND   1" >> $CONFIG
                    138: else
                    139:     echo " not found."
                    140: fi
                    141: 
                    142: echo -n "Looking for rad_cvt_addr6() ..."
                    143: if /usr/bin/grep rad_cvt_addr6 /usr/include/radlib.h >/dev/null 2>&1
                    144: then
                    145:     echo " found."
                    146:     echo "#define      HAVE_RAD_ADDR6  1" >> $CONFIG
                    147: else
                    148:     echo " not found."
                    149: fi
1.1.1.4.2.1! misho     150: fi
        !           151: fi # RADIUS support
1.1.1.3   misho     152: 
                    153: echo -n "Looking for ether_ntoa_r() ..."
                    154: if /usr/bin/grep ether_ntoa_r /usr/include/net/ethernet.h >/dev/null 2>&1
                    155: then
                    156:     echo " found."
                    157:     echo "#define      HAVE_NTOA_R     1" >> $CONFIG
                    158: else
                    159:     echo " not found."
                    160: fi

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>