echo "RUNNING SETUP FOR THE SOCK INTERFACE"

#
# NOTE: This file is sourced from the device with the current working directory set to the top-level build directory.
#

#
# Variables of interest...
#
# $with_device - device name and arguments
# $device_name - name of the device
# $device_args - contains name of channel select plus an channel args
# $channel_name - name of the channel
# $master_top_srcdir - top-level source directory
# $master_top_builddir - top-level build directory
# $ac_configure_args - all arguments passed to configure
#

if test -z "$CONFIGURE_SOCK_SETUP_SOURCED" ; then
    CONFIGURE_SOCK_SETUP_SOURCED="sourced"

    . ${master_top_srcdir}/src/mpid/common/sock/setup.args

    devsubsystems="$devsubsystems src/mpid/common/sock"

    pathlist=""
    pathlist="$pathlist src/mpid/common/sock"
    pathlist="$pathlist src/mpid/common/sock/${sock_name}"
    for path in $pathlist ; do
    	CPPFLAGS="$CPPFLAGS -I${master_top_builddir}/${path}"
    	CPPFLAGS="$CPPFLAGS -I${master_top_srcdir}/${path}"
    done
fi
