Skip to content
Snippets Groups Projects
configure.in 87.6 KiB
Newer Older
  • Learn to ignore specific revisions
  • Kenneth Johansson's avatar
    Kenneth Johansson committed
                AC_SUBST([INCLUDE_REAL_TIME_TRACE],[yes])
            else
                AC_SUBST([INCLUDE_REAL_TIME_TRACE],[no])
            fi
        ]
    )
    
    dnl enable Debug Logger support
    AM_CONDITIONAL(INCLUDE_DSL_CPE_DEBUG_LOGGER_SUPPORT, false)
    AC_ARG_ENABLE(debug-logger-support,
        AC_HELP_STRING([--enable-debug-logger-support=x],[Enable debug logger support]),
        [
            if test "$enableval" = yes; then
                AC_DEFINE(INCLUDE_DSL_CPE_DEBUG_LOGGER_SUPPORT,,[Enable debug logger support])
                AM_CONDITIONAL(INCLUDE_DSL_CPE_DEBUG_LOGGER_SUPPORT, true)
                AC_SUBST([INCLUDE_DSL_CPE_DEBUG_LOGGER_SUPPORT],[yes])
            else
                AC_SUBST([INCLUDE_DSL_CPE_DEBUG_LOGGER_SUPPORT],[no])
            fi
        ],
        [
            if test "$PREDEFINED_CONF_INCLUDE_DSL_CPE_DEBUG_LOGGER_SUPPORT" = yes; then
                AC_DEFINE(INCLUDE_DSL_CPE_DEBUG_LOGGER_SUPPORT,,[Enable debug logger support])
                AM_CONDITIONAL(INCLUDE_DSL_CPE_DEBUG_LOGGER_SUPPORT, true)
                AC_SUBST([INCLUDE_DSL_CPE_DEBUG_LOGGER_SUPPORT],[yes])
            else
                AC_SUBST([INCLUDE_DSL_CPE_DEBUG_LOGGER_SUPPORT],[no])
            fi
        ]
    )
    
    dnl set the ID of netlink debug messages channel
    AC_ARG_WITH(dbg-netlink-id,
        AC_HELP_STRING([--with-dbg-netlink-id=value],[Debug netlink ID number.]),
        [
    
            if test -n $withval; then
                AC_DEFINE_UNQUOTED(DSL_DBG_MSG_NETLINK_ID,$withval,[Debug netlink ID number.])
                AC_SUBST([DSL_DBG_MSG_NETLINK_ID],[$withval])
            fi
        ]
    )
    
    dnl enable DTI stand-alone agent support
    AM_CONDITIONAL(INCLUDE_DTI_AGENT_STANDALONE_SUPPORT, false)
    AC_ARG_ENABLE(dti-agent-st-alone-support,
        AC_HELP_STRING([--enable-dti-agent-st-alone-support=x],[Enable debug logger support]),
        [
            if test "$enableval" = yes; then
                AC_DEFINE(INCLUDE_DTI_AGENT_STANDALONE_SUPPORT,,[Enable DTI stand-alone agent support])
                AM_CONDITIONAL(INCLUDE_DTI_AGENT_STANDALONE_SUPPORT, true)
                AC_SUBST([INCLUDE_DTI_AGENT_STANDALONE_SUPPORT],[yes])
            else
                AC_SUBST([INCLUDE_DTI_AGENT_STANDALONE_SUPPORT],[no])
            fi
        ],
        [
            if test "$PREDEFINED_CONF_INCLUDE_DTI_AGENT_STANDALONE_SUPPORT" = yes; then
                AC_DEFINE(INCLUDE_DTI_AGENT_STANDALONE_SUPPORT,,[Enable DTI stand-alone agent support])
                AM_CONDITIONAL(INCLUDE_DTI_AGENT_STANDALONE_SUPPORT, true)
                AC_SUBST([INCLUDE_DTI_AGENT_STANDALONE_SUPPORT],[yes])
            else
                AC_SUBST([INCLUDE_DTI_AGENT_STANDALONE_SUPPORT],[no])
            fi
        ]
    )
    
    
    Oussama Ghorbel's avatar
    Oussama Ghorbel committed
    dnl enable SAFE C support
    AM_CONDITIONAL(SAFEC_SUPPORT, false)
    AC_SUBST([SAFEC_SUPPORT],[no])
    AC_ARG_ENABLE(safec-support,
        AC_HELP_STRING([--enable-safec-support=x],[Enable SAFE C support]),
        [
            if test "$enableval" = yes; then
                AC_CHECK_HEADERS([safe_lib.h],[safec_header_support=yes; break;],,)
    
                if test "x$safec_header_support" = "xyes"; then
                    AC_CHECK_LIB([safec-3.3], [_strcat_s_chk], [safec_lib_ver=3; break;],,,)
    
                    if test "x$safec_lib_ver" = "x3"; then
                        AC_DEFINE([SAFEC_SUPPORT], [3], [Safe-C lib ver3.3 support])
                        AM_CONDITIONAL(SAFEC_SUPPORT, true)
                        AC_SUBST([SAFEC_SUPPORT], [yes])
                        AC_SUBST([SAFEC_LIB_NAME], [safec-3.3])
                    fi
                fi
            fi
        ],
    )
    
    dnl set system SAFE C include path
    DEFAULT_SAFEC_INCL_PATH=''
    AC_ARG_ENABLE(safec-include,
        AS_HELP_STRING(
            [--enable-safec-include= -I./STAGING_DIR/usr/include],[Set the SAFE C include path]
        ),
        [
            if test -n "$enableval"; then
                echo Set the SAFE C include path to $enableval
                AC_SUBST([SAFEC_INCL_PATH],[$enableval])
    
            else
                AC_SUBST([SAFEC_INCL_PATH],[$DEFAULT_SAFEC_INCL_PATH])
            fi
        ],
        [
            AC_SUBST([SAFEC_INCL_PATH],[$DEFAULT_SAFEC_INCL_PATH])
        ]
    )
    
    dnl set system SAFE C library path
    DEFAULT_SAFEC_LIB_PATH=''
    AC_ARG_ENABLE(safec-library,
        AS_HELP_STRING(
            [--enable-safec-library= -L./STAGING_DIR/usr/lib],[Set the SAFE C
            library path]
        ),
        [
            if test -n "$enableval"; then
                echo Set the SAFE C library path to $enableval
                AC_SUBST([SAFEC_LIB_PATH],[$enableval])
    
            else
                AC_SUBST([SAFEC_LIB_PATH],[$DEFAULT_SAFEC_LIB_PATH])
            fi
        ],
        [
            AC_SUBST([SAFEC_LIB_PATH],[$DEFAULT_SAFEC_LIB_PATH])
        ]
    )
    
    
    
    Kenneth Johansson's avatar
    Kenneth Johansson committed
    dnl Set the configure params for dist check
    
    AC_SUBST([DISTCHECK_CONFIGURE_PARAMS],[$CONFIGURE_OPTIONS])
    
    AC_CONFIG_COMMANDS_PRE([
    echo -e "------------------------------------------------------------------------"
    echo -e " Configuration for dsl_cpe_control:"
    echo -e "  DSL device:                       $DSL_DEVICE_NAME"
    if test -z "${DEVICE_VRX_TRUE}"; then
        echo -e "  DSL VRX device type:              $DSL_VRX_DEVICE_NAME"
    fi
    echo -e "  Configure model type:             $DSL_CONFIG_MODEL_TYPE"
    echo -e "  Source code location:             $srcdir"
    echo -e "  Compiler:                         $CC"
    echo -e "  Compiler c-flags:                 $CFLAGS"
    echo -e "  Extra compiler c-flags:           $EXTRA_APP_CFLAGS"
    echo -e "  External compiler c-flags :       $DSL_ADD_EXT_APPL_CFLAGS"
    echo -e "  Host System Type:                 $host"
    echo -e "  Install path:                     $prefix"
    echo -e "  Driver Include Path:              $DSL_DRIVER_INCL_PATH"
    echo -e "  Device Driver Include Path:       $DSL_DEVICE_DRIVER_INCL_PATH"
    echo -e "  Include IFXOS:                    $INCLUDE_DSL_CPE_IFXOS_SUPPORT"
    echo -e "  IFXOS library path:               $IFXOS_LIBRARY_PATH"
    echo -e "  IFXOS include path:               $IFXOS_INCLUDE_PATH"
    echo -e "  Include DTI:                      $INCLUDE_DSL_CPE_DTI_SUPPORT"
    echo -e "  DTI include path:                 $DTI_INCL_PATH"
    echo -e "  DTI library path:                 $DTI_LIBRARY_PATH"
    echo -e "  Disable debug prints:             $DSL_CPE_DEBUG_DISABLE"
    echo -e "  Preselection of max. debug level: $DSL_CCA_DBG_MAX_LEVEL_SET"
    echo -e "  Preselected max. debug level:     $DSL_CCA_DBG_MAX_LEVEL_PRE"
    echo -e "  Enable static build:              $DSL_CPE_STATIC_LINKING"
    echo -e "  Include Event Polling support:    $INCLUDE_DSL_EVENT_POLLING"
    echo -e "  Include deprecated functions:     $INCLUDE_DEPRECATED"
    echo -e "  Include Device Exception Codes:   $INCLUDE_DEVICE_EXCEPTION_CODES"
    echo -e "  Include FW request support:       $INCLUDE_FW_REQUEST_SUPPORT"
    echo -e "  Include trace buffer support:     $INCLUDE_DSL_CPE_TRACE_BUFFER"
    echo -e "  Include Filesystem:               $INCLUDE_DSL_CPE_FILESYSTEM_SUPPORT"
    echo -e "  Include CMV scripts:              $INCLUDE_DSL_CPE_CMV_SCRIPTS_SUPPORT"
    echo -e "  Include CMV scripts math:         $INCLUDE_DSL_CPE_CMV_SCRIPTS_MATH"
    echo -e "  Include scripts notification:     $INCLUDE_SCRIPT_NOTIFICATION"
    echo -e "  Include CLI:                      $INCLUDE_DSL_CPE_CLI_SUPPORT"
    echo -e "  Include Autogen CLI:              $INCLUDE_DSL_CPE_CLI_AUTOGEN_SUPPORT"
    echo -e "  Include MIB:                      $INCLUDE_DSL_ADSL_MIB"
    echo -e "  Include CEOC:                     $INCLUDE_DSL_CEOC"
    echo -e "  Include config. get support:      $INCLUDE_DSL_CONFIG_GET"
    echo -e "  Include System i/f configuration: $INCLUDE_DSL_SYSTEM_INTERFACE"
    echo -e "  Include Resource Statistics:      $INCLUDE_DSL_RESOURCE_STATISTICS"
    echo -e "  Include Framing Parameters:       $INCLUDE_DSL_FRAMING_PARAMETERS"
    echo -e "  Include G997 Line Inventory:      $INCLUDE_DSL_G997_LINE_INVENTORY"
    echo -e "  Include G997 Framing Parameters:  $INCLUDE_DSL_G997_FRAMING_PARAMETERS"
    echo -e "  Include G997 per tone data:       $INCLUDE_DSL_G997_PER_TONE"
    echo -e "  Include G997 status:              $INCLUDE_DSL_G997_STATUS"
    echo -e "  Include G997 alarm:               $INCLUDE_DSL_G997_ALARM"
    echo -e "  Include Pilot Tones Status:       $INCLUDE_PILOT_TONES_STATUS"
    echo -e "  Include Misc Line Status:         $INCLUDE_DSL_CPE_MISC_LINE_STATUS"
    echo -e "  Include DELT:                     $INCLUDE_DSL_DELT"
    echo -e "  Include Filter Detection:         $INCLUDE_DSL_FILTER_DETECTION"
    echo -e "  Include PM:                       $INCLUDE_DSL_PM"
    echo -e "  Include PM config:                $INCLUDE_DSL_CPE_PM_CONFIG"
    echo -e "  Include PM total:                 $INCLUDE_DSL_CPE_PM_TOTAL_COUNTERS"
    echo -e "  Include PM history:               $INCLUDE_DSL_CPE_PM_HISTORY"
    echo -e "  Include PM showtime:              $INCLUDE_DSL_CPE_PM_SHOWTIME_COUNTERS"
    echo -e "  Include PM optional:              $INCLUDE_DSL_CPE_PM_OPTIONAL_PARAMETERS"
    echo -e "  Include PM line:                  $INCLUDE_DSL_CPE_PM_LINE_COUNTERS"
    echo -e "  Include PM line event showtime:   $INCLUDE_DSL_CPE_PM_LINE_EVENT_SHOWTIME_COUNTERS"
    echo -e "  Include PM channel:               $INCLUDE_DSL_CPE_PM_CHANNEL_COUNTERS"
    echo -e "  Include PM channel extended:      $INCLUDE_DSL_CPE_PM_CHANNEL_EXT_COUNTERS"
    echo -e "  Include PM data path:             $INCLUDE_DSL_CPE_PM_DATA_PATH_COUNTERS"
    echo -e "  Include PM data path failure:     $INCLUDE_DSL_CPE_PM_DATA_PATH_FAILURE_COUNTERS"
    echo -e "  Include PM ReTx:                  $INCLUDE_DSL_CPE_PM_RETX_COUNTERS"
    echo -e "  Include PM line threshold:        $INCLUDE_DSL_CPE_PM_LINE_THRESHOLDS"
    echo -e "  Include PM channel threshold:     $INCLUDE_DSL_CPE_PM_CHANNEL_THRESHOLDS"
    echo -e "  Include PM data path threshold:   $INCLUDE_DSL_CPE_PM_DATA_PATH_THRESHOLDS"
    echo -e "  Include PM ReTx threshold:        $INCLUDE_DSL_CPE_PM_RETX_THRESHOLDS"
    echo -e "  Include TCP debug support:        $DSL_DEBUG_TOOL_INTERFACE"
    echo -e "  Include real time trace support:  $INCLUDE_REAL_TIME_TRACE"
    echo -e "  Include debug logger support:     $INCLUDE_DSL_CPE_DEBUG_LOGGER_SUPPORT"
    echo -e "  Netlink ID of the debug messages: $DSL_DBG_MSG_NETLINK_ID"
    echo -e "  Include DTI agent stand-alone:    $INCLUDE_DTI_AGENT_STANDALONE_SUPPORT"
    
    Oussama Ghorbel's avatar
    Oussama Ghorbel committed
    echo -e "  Safe-C support:                   $SAFEC_SUPPORT"
    echo -e "  Safe-C include path:              $SAFEC_INCL_PATH"
    echo -e "  Safe-C library path:              $SAFEC_LIB_PATH"
    echo -e "  Safe-C library:                   $SAFEC_LIB_NAME"
    echo -e "  Include JSON parser:              $INCLUDE_DSL_JSON_PARSING"
    echo -e "  JSON C include path:              $LIBJSON_C_INCL_PATH"
    echo -e "  JSON C library path:              $LIBJSON_C_LIBRARY_PATH"
    
    Kenneth Johansson's avatar
    Kenneth Johansson committed
    echo -e "----------------------- deprectated ! ----------------------------------"
    echo -e "  currently no such functions"
    echo -e "------------------------------------------------------------------------"
    echo -e " Settings:"
    echo -e "  Configure options:                $CONFIGURE_OPTIONS"
    echo -e "------------------------------------------------------------------------"
    ])
    
    AC_CONFIG_FILES([Makefile src/Makefile tools/pipe/Makefile])
    AC_OUTPUT