Changeset 943

Show
Ignore:
Timestamp:
10/15/99 14:05:27 (15 years ago)
Author:
piers
Message:

Added configure option --enable-ipv6 which amazingly enough attempts to enable
IPv6 where possible. Also added warning when UCL's tcl/tk is disabled (using
-without-ucl{tcl|tk}) to the effect that it's their problem if there are some.

Location:
vic/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • vic/trunk/configure.in

    r942 r943  
    175175                V_DEFINE="$V_DEFINE -mv8 -msupersparc" 
    176176        fi 
    177         V_DEFINE="$V_DEFINE -D__svr4__ -DSolaris" 
     177        if test $ipv6 = yes; then 
     178                V_DEFINE="$V_DEFINE -D__svr4__ -DSolaris -DHAVE_IPV6 -DSOLARIS7_IPV6" 
     179        else 
     180                V_DEFINE="$V_DEFINE -D__svr4__ -DSolaris" 
     181        fi 
    178182        OPSYS=solaris 
    179183        if test -f video/grabber-rtvc.cc || test -f video/grabber-rtvc.o ; then 
     
    235239*-*-freebsd*) 
    236240        V_STATIC="" 
    237         V_DEFINE="$V_DEFINE -DFreeBSD" 
     241        if test $ipv6 = yes; then 
     242                V_DEFINE="$V_DEFINE -DFreeBSD -DHAVE_IPV6" 
     243        else 
     244                V_DEFINE="$V_DEFINE -DFreeBSD" 
     245        fi 
    238246        OPSYS=freebsd 
    239247        ;; 
     
    265273        V_STATIC="" 
    266274        V_BROKEN_OBJ= 
    267         V_DEFINE="$V_DEFINE -DLinux" 
     275        if test $ipv6 = yes; then 
     276                V_DEFINE="$V_DEFINE -DLinux -DHAVE_IPV6 -DLINUX_IPV6" 
     277        else 
     278                V_DEFINE="$V_DEFINE -DLinux" 
     279        fi 
    268280        OPSYS=linux 
    269281        ;; 
  • vic/trunk/configure.in.head

    r942 r943  
    2222AC_CHECK_LIB(socket, poll, [V_LIB="$V_LIB -lsocket"]) 
    2323 
     24# nsl lib seems to cause problems on IRIX 
    2425if test `echo "$target_os" | sed 's/\..*//'` != irix6 ; then 
    2526        AC_CHECK_LIB(nsl, gethostbyname, [V_LIB="$V_LIB -lnsl"]) 
    2627fi 
    27  
    28 AC_CHECK_LIB(dnet_stub, getnodebyname, [V_LIB="$V_LIB -ldnet_stub"]) 
    2928 
    3029V_TAR_EXTRA="" 
     
    3231 
    3332AC_ARG_ENABLE(debug,   --enable-debug           build with debugging enabled, V_CCOPT="-g", V_CCOPT="-O2") 
     33 
     34AC_ARG_ENABLE(ipv6,   --enable-ipv6             build with ipv6 enabled, ipv6=yes, ipv6=no) 
    3435 
    3536AC_ARG_WITH(fore,       --with-fore=path        specify a pathname for fore atm, d=$withval, d="") 
  • vic/trunk/configure.in.tk

    r935 r943  
    2020                 
    2121elif test "$d" != "" ; then  
     22        echo "Not using UCL tcl - You're on your own!" 
    2223        if test ! -d $d ; then  
    2324                echo "'$d' is not a directory" 
     
    5960        fi 
    6061else 
     62        echo "Not using UCL tcl - You're on your own!" 
    6163        AC_TEST_CPP([#include <tcl.h>], V_INCLUDE_TCL="", V_INCLUDE_TCL=FAIL) 
    6264        if test "$V_INCLUDE_TCL" = FAIL; then 
     
    171173                 
    172174elif test "$d" != "" ; then  
    173  
     175        echo "Not using UCL tk - You're on your own!" 
    174176        if test ! -d $d ; then  
    175177                echo "'$d' is not a directory" 
     
    210212        fi 
    211213else 
     214        echo "Not using UCL tk - You're on your own!" 
    212215        AC_TEST_CPP([#include <tk.h>], V_INCLUDE_TK="", V_INCLUDE_TK=FAIL) 
    213216        if test "$V_INCLUDE_TK" = FAIL; then