SUBDIRS="include utils client server etc test"

configure()
{
    mk_config_header "include/config.h"

    lw_define_feature_macros

    MK_CFLAGS="$MK_CFLAGS -Wall -Werror -fno-strict-aliasing"

     # Do defines/exports of system-dependent variables
    mk_multiarch_do
        mk_define LIBDIR "\"$MK_LIBDIR\""
        mk_define MOD_EXT "\"$MK_DLO_EXT\""
	lw_check_isa
    mk_multiarch_done

    mk_declare -o \
        SBINDIR="$MK_SBINDIR" \
        LIBDIR="$MK_LIBDIR" \
        MOD_EXT="$MK_DLO_EXT" \
        CACHEDIR="$LW_CACHEDIR"

    mk_define CACHEDIR "\"$LW_CACHEDIR\""

    mk_check_libraries pthread

    mk_check_functions \
	HEADERDEPS="ctype.h" \
        isblank

    mk_check_functions \
	HEADERDEPS="stdlib.h" \
	strtol strtoll __strtoll strtoul strtoull __strtoull

    mk_check_function \
	HEADERDEPS="syslog.h" \
	FUNCTION="vsyslog"

    mk_output_file etc/srvsvcd.reg
}

