##------------------------------------------------------------------------------
##                                                           fli4l-3.0.0 v0.1.3
## mc_3.ext - fli4l extended configuration check
##
## Author:       Markus Strauss <sprevl6666@googlemail.com>
##
## Creation:     19.01.2005  SE6666
## Last Update:  14.03.2005  SE6666
##
## based on opt_newmc from Dominik Egert <fli4l@killus.net> 
##
##------------------------------------------------------------------------------

if ( opt_mc_3 )
then
    provides mc_3 version 0.1.3
    depends on fli4l version 3.0.[0-1]
    
    # Messages
    if ( locale =~ "de|DE" )
    then
    	set msg_too_small = "ist zu klein fuer"
    	set msg_missing_lib = "es fehlt die Libary librpc-0.9.28.so. Bitte BASE-Paket erneut installieren."
    else
    	set msg_too_small = "is too small for"
    	set msg_missing_lib = "missing libary librpc-0.9.28.so. Please reinstall package BASE."
    fi
    
    # OPT isn't suitable for floppy
    if ( boot_type =~ "fd1440|fd1680|dual1440|dual1680|dualfd|fd|fdx2" )
    then
    	error "MC_3: BOOT_TYPE='$boot_type' $msg_too_small MC_3"
    fi
    
    # Check, if librpc-0.9.28.so from package TOOLS exists
    stat("opt/files/lib/librpc-0.9.28.so", librpc)
    if(librpc_res == "OK")
    then
        add_to_opt "files/lib/librpc-0.9.28.so"
    else
        error "MC_3: $msg_missing_lib"
    fi
fi

