diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2006-07-17 21:56:02 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2006-07-17 21:56:02 +0000 |
commit | aef037260aeaa5cac488161e647f5358b4d360ed (patch) | |
tree | f9e8cd505ff21f880b21f320e44a7502fa25f76d /configure.in | |
parent | 0e759dae5ab02f8a624cb2e3a0acf076f6cad52d (diff) | |
download | swig-aef037260aeaa5cac488161e647f5358b4d360ed.tar.gz |
Fix mingw install
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9216 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 910845728..3dc7139f2 100644 --- a/configure.in +++ b/configure.in @@ -1924,6 +1924,15 @@ 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 + # 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"`;; + *) SWIG_LIB_WIN_UNIX="";; +esac +AC_DEFINE_UNQUOTED(SWIG_LIB_WIN_UNIX, ["$SWIG_LIB_WIN_UNIX"], [Directory for SWIG system-independent libraries (Unix install on native Windows)]) + + AC_CONFIG_FILES([ \ Makefile \ swig.spec \ |