Fix platform SWIG is built for shown in -version and correct the detection of the unix like platforms (build) on Windows for which an extra swig library should be added.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12840 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
931c331f9f
commit
6cedddb2c1
1 changed files with 2 additions and 2 deletions
|
|
@ -35,7 +35,7 @@ AM_PROG_CC_C_O # Needed for subdir-objects in AUTOMAKE_OPTIONS
|
|||
AC_COMPILE_WARNINGS # Increase warning levels
|
||||
|
||||
AC_DEFINE_UNQUOTED(SWIG_CXX, ["$CXX"], [Compiler that built SWIG])
|
||||
AC_DEFINE_UNQUOTED(SWIG_PLATFORM, ["$build"], [Platform that SWIG is built for])
|
||||
AC_DEFINE_UNQUOTED(SWIG_PLATFORM, ["$host"], [Platform that SWIG is built for])
|
||||
|
||||
dnl Checks for header files.
|
||||
AC_HEADER_STDC
|
||||
|
|
@ -2332,7 +2332,7 @@ AC_ARG_WITH(swiglibdir,[ --with-swiglibdir=DIR Put SWIG system-independent li
|
|||
AC_SUBST(swig_lib)
|
||||
AC_DEFINE_DIR(SWIG_LIB, swig_lib, [Directory for SWIG system-independent libraries])
|
||||
|
||||
case $host in
|
||||
case $build in
|
||||
# Windows does not understand unix directories. Convert into a windows directory with drive letter.
|
||||
*-*-mingw*) SWIG_LIB_WIN_UNIX=`cmd //c echo $SWIG_LIB | sed -e "s/[ ]*$//"`;; # This echo converts unix to mixed paths. Then zap unexpected trailing space.
|
||||
*-*-cygwin*) SWIG_LIB_WIN_UNIX=`cygpath --mixed "$SWIG_LIB"`;;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue