# Set the important envirimental variables that auto-conf uses to
# configure, mostly these are passed from the CMake
# configuration. Others are just explicitly passed from the
# enviroment. If there is a problem with them in the future they can
# be addressed in CMake with the same structure.

set(ENV{CC} "@CMAKE_C_COMPILER@ @CMAKE_C_COMPILER_ARG1@")
set(ENV{CFLAGS} "@CMAKE_C_FLAGS@ @CMAKE_C_FLAGS_RELEASE@")
set(ENV{LDFLAGS} "@CMAKE_LINKER_FLAGS@ @CMAKE_LINKER_FLAGS_RELEASE@")

set(ENV{LIBS} "$ENV{LIBS}")
set(ENV{CPP} "$ENV{CPP}")
set(ENV{CPPFLAGS} "$ENV{CPPFLAGS}")

set(ENV{CXX} "@CMAKE_CXX_COMPILER@ @CMAKE_CXX_COMPILER_ARG1@")
set(ENV{CXXFLAGS} "@CMAKE_CXX_FLAGS@ @CMAKE_CXX_FLAGS_RELEASE@")

set(ENV{YACC} "@BISON_EXECUTABLE@" )
set(ENV{YFLAGS} "@BISON_FLAGS@" )

execute_process(
  COMMAND sh @swig_source_dir@/configure --prefix=@swig_install_dir@ --with-pcre-prefix=@pcre_install_dir@
  WORKING_DIRECTORY @swig_binary_dir@
)

# Set the important envirimental variables that auto-conf uses to
# configure, mostly these are passed from the CMake
# configuration. Others are just explicitly passed from the
# enviroment. If there is a problem with them in the future they can
# be addressed in CMake with the same structure.

set(ENV{CC} "@CMAKE_C_COMPILER@ @CMAKE_C_COMPILER_ARG1@")
set(ENV{CFLAGS} "@CMAKE_C_FLAGS@ @CMAKE_C_FLAGS_RELEASE@")
set(ENV{LDFLAGS} "@CMAKE_LINKER_FLAGS@ @CMAKE_LINKER_FLAGS_RELEASE@")

set(ENV{LIBS} "$ENV{LIBS}")
set(ENV{CPP} "$ENV{CPP}")
set(ENV{CPPFLAGS} "$ENV{CPPFLAGS}")

set(ENV{CXX} "@CMAKE_CXX_COMPILER@ @CMAKE_CXX_COMPILER_ARG1@")
set(ENV{CXXFLAGS} "@CMAKE_CXX_FLAGS@ @CMAKE_CXX_FLAGS_RELEASE@")

set(ENV{YACC} "@BISON_EXECUTABLE@" )
set(ENV{YFLAGS} "@BISON_FLAGS@" )

execute_process(
  COMMAND sh @swig_source_dir@/configure
    --prefix=@swig_install_dir@
    --with-pcre-prefix=@pcre_install_dir@
    --without-octave
    --with-python=@PYTHON_EXECUTABLE@
  WORKING_DIRECTORY @swig_binary_dir@
)

Disable octave in Swig configure
BUG: Disable octave in Swig configure

If octave is installed but not the development libraries Swig will
generate a configuration able. To by-pass this disable ocatave during
super build of Swig.

Change-Id: I90d1cc054e511bd4ee0961781a1f536b562e28bd
