Commit graph

184 commits

Author SHA1 Message Date
William S Fulton
2ec156fb7f Merge branch 'vadz-csharp-complex'
* vadz-csharp-complex:
  Add header to std_complex.i
  Fix linkage problems in C# std::complex wrappers
  C# std::complex wrappers marshalling by value
  C# std::complex wrappers SwigValueWrapper fix
  Use %naturalvar for C# std::complex wrappers
  Allow avoiding generation of unwanted std::complex<T> typemaps
  Also apply csvar{in,out} typemaps to std::complex references
  Add std_complex.i for C# too
  Extend C# complex support to member variables of this type
  Add support for std::complex<> to C#
  Use new unified Mono mcs compiler if available under Unix
2017-05-20 15:21:48 +01:00
William S Fulton
28f7d61986 Bump version to 4.0.0 2017-04-21 19:36:09 +01:00
Vadim Zeitlin
07d81cc1e9 Use new unified Mono mcs compiler if available under Unix
Do not prefer the old .NET 2 gmcs compiler, which was used even if the newer
.NET 4 mcs was available. This is recommended by Mono project, see
http://www.mono-project.com/docs/about-mono/languages/csharp/, and the .NET 1
original mcs is nowhere to be found nowadays.
2017-04-01 23:51:17 +02:00
William S Fulton
be22dd94d1 configure fixes for Python under MinGW / msys
MinGW's python is a normal posix Python distribution, so handle
detection differently to vanilla Windows Python.
2017-02-04 19:18:54 +00:00
William S Fulton
2ab08e493f Bump version to 3.0.13
[skip ci]
2017-01-28 00:23:59 +00:00
William S Fulton
c766bf334a Tidier output in configure when php is not found 2017-01-27 08:36:03 +00:00
Karl Wette
f3029dda7d configure.ac: check $OCTAVE is nonempty before testing functionality 2017-01-23 17:18:34 +13:00
Karl Wette
1d370ca4ed configure.ac: check functionality of octave and mkoctfile binaries
- Run with --version and check first line of output is sensible
- Also restore functionality of #462 that was inadvertently lost
  in #875; see commit 5ab9563c2a
2017-01-23 16:30:18 +13:00
Karl Wette
e24ec40895 Octave: add support for version 4.2
- .travis.yml:
  - ppa:kwwette/octaves has Octave version 4.2, also run C++11 tests
- configure.ac:
  - prefer Octave program "octave-cli" to "octave"
  - extract any -std=* flags from CXX, add to OCTAVE_CXXFLAGS
- Lib/typemaps/fragments.swg:
  - SWIG_isfinite_func(): extern "C++" is required as this fragment can
    end up inside an extern "C" { } block
- Lib/octave:
  - add std_wstring.i (copied from std_string.i) for C++11 tests
- Lib/octave/octrun.swg:
  - move Octave version-checking macros to octruntime.swg
  - Octave single()/double() functions now call .as_single()/.as_double()
    methods; redirect calls to __float__() method as per .scalar_value()
  - << and >> operators are no longer supported by Octave
- Lib/octave/octruntime.swg:
  - move Octave version-checking macros here for conditional #includes
  - #include interpreter.h instead of #toplev.h
  - #include call-stack.h (now needed for octave_call_stack)
  - unwind_protect is now in octave:: namespace
  - error_state and warning_state are deprecated; use try/catch to catch
    errors in feval() instead
  - always set octave_exit = ::_Exit, to try to prevent segfault on exit
- Lib/octave/octopers.swg:
  - << and >> operators are no longer supported by Octave
- Lib/octave/exception.i:
  - Add macro SWIG_RETHROW_OCTAVE_EXCEPTIONS which rethrows any
    exceptions raised by Octave >= 4.2
- Examples/test-suite/exception_order.i:
  - Use macro SWIG_RETHROW_OCTAVE_EXCEPTIONS to rethrow exceptions
    raised by error() function in Octave >= 4.2
- Update Doc/Manual/Octave.html and CHANGES.current
2017-01-22 11:53:12 +13:00
William S Fulton
12e1ab0e93 Bump version to 3.0.12 2016-12-30 23:49:46 +00:00
William S Fulton
bdad87a242 Detect pep8 for both python 2 and python 3 and show version 2016-12-11 22:27:15 +00:00
William S Fulton
3546d096a7 Test php 7.0 and 7.1 on Travis
- php-7.1 set as failing for now due to one broken example (references)
- Look for php 7.1 in configure.ac.
2016-12-04 22:48:09 +00:00
Olly Betts
1169874f59 [PHP] Add support for PHP7.
PHP5's C extension API has changed substantially so you need to use
-php7 to specify you want PHP7 compatible wrappers.
Fixes https://github.com/swig/swig/issues/571
2016-11-30 13:05:59 +13:00
William S Fulton
84b06fa21b Bump version to 3.0.11 2016-06-12 10:14:11 +01:00
William S Fulton
8aea57c704 Bump version to 3.0.10 2016-05-29 15:46:46 +01:00
William S Fulton
2fdd4e10ad configure to only test Go 1.2 and later
Go 1.1 does not seem to work with the -cgo option which is turned on during testing
and 'make check'
2016-05-28 19:01:11 +01:00
William S Fulton
eaf74df22f Fix failure to detect lua.h on some systems
Fixes "present but cannot be compiled" autoconf failure looking for lua.h
2016-05-28 10:37:19 +01:00
Olly Betts
1e718c2ad0 Fix php-config name in error message 2016-05-27 22:50:18 +12:00
William S Fulton
b062d998e9 Improve missing php-config error message during configure 2016-05-14 21:32:24 +01:00
William S Fulton
57f1c378b2 Remove JNI checks due to numerous spurious warnings in some versions of jdk-1.8
Was happening with openjdk-1.9 on Ubuntu 16.04 Xenial Xerus and also seen in jdk-1.8 on Fedora 23 (jdk-1.8.0_65-b17)
2016-05-01 17:35:55 +01:00
William S Fulton
07b2f5ac09 Detect newer versions of Lua during configure 2016-05-01 11:53:29 +01:00
William S Fulton
8dcbbe8b6c Merge branch 'travis-ruby2.3'
* travis-ruby2.3:
  Disable tests broken in python 2.4 and 2.5
  Remove Travis 'gem pristine --all'
  Fix Travis Ruby gem pristine warnings
  Improve Ruby configure detection when multiple versions installed
  Use set -e in Travis scripts to ensure the scripts fail on error
  Travis: ensure the requested language version is being tested
  Add ruby-2.3 testing to Travis
2016-02-04 18:58:14 +00:00
William S Fulton
271ef9ab5c Improve Ruby configure detection when multiple versions installed 2016-02-04 08:35:41 +00:00
Olly Betts
33c17b6d5e configure.ac: Stop probing for Python versions < 2.0 2016-02-03 12:06:05 +13:00
Olly Betts
22b72d5da3 [Javascript] Look for "nodejs" as well as "node", as it's packaged
as the former on Debian.
2016-01-12 09:33:39 +13:00
William S Fulton
a8cf1eddf8 Bump version to 3.0.9 2015-12-31 18:04:16 +00:00
William S Fulton
64dcd50b99 Remove dependency on yodl tools and remove ccache-swig man page
Use the CCache.html docs instead of the ccache-swig man page.
The yodl2man and yodl2html tools are no longer used and so SWIG no
longer has a dependency on these packages which were required when
building from git.

Closes #286
Closes #128
2015-12-17 02:36:48 +00:00
William S Fulton
4c0db9d83d Python 3 on windows configure fix
For Appveyor, don't use python-config which comes from Cygwin
2015-11-28 18:52:27 +00:00
Olly Betts
efcaa8fdac Drop code to handle compilers lacking the 'bool' type.
SWIG requires an ISO C++ compiler, so this is no longer useful.  Fixes
issue#513.
2015-09-02 09:40:55 +12:00
Olly Betts
11c422529e Remove superfluous trailing ; 2015-09-02 09:35:07 +12:00
Olly Betts
578ab10365 Remove configure probes for ranlib and ar
These haven't been used by the SWIG build system for many years.
2015-09-01 16:09:35 +12:00
William S Fulton
abe52396b2 Leave preinst-swig as a convenience only script for ad-hoc use 2015-08-21 22:48:34 +01:00
William S Fulton
7192b1c735 Remove SWIG_LIB variable from Makefile 2015-08-21 22:48:33 +01:00
William S Fulton
ca1431f4cf Prototype removal of swig-preinst in the test-suite and examples
Prototype for Java test-suite and Java class example.

SWIG_LIB_DIR and SWIGEXE must now instead be set by all Makefiles.
SWIG_LIB is explicitly set where necessary.
Allows use of 'make SWIGTOOL="gdb --args"' to work as gdb can't be used
to debug a shell script, for both examples and test-suite.

See issue #473.
2015-08-18 08:00:01 +01:00
William S Fulton
5d363276f5 Bump version to 3.0.8 2015-08-03 22:33:52 +01:00
William S Fulton
c6f8aadc64 Cosmetic corrections - Mac OS X 2015-08-02 20:14:20 +01:00
William S Fulton
442ed8812b Merge branch 'vadz-better-no-all'
* vadz-better-no-all:
  Don't check for all the languages in Travis language-specific builds.
  Skip check for pep8 if Python is disabled in configure.
  Make configure --without-alllang option actually useful.
  Cosmetic: fix wrong configure options indentation in --help.
2015-08-02 19:42:27 +01:00
William S Fulton
2d4416136b Tweak configure output for Java 2015-08-02 19:41:10 +01:00
William S Fulton
fa16701d5c Merge branch 'vadz-java-home'
* vadz-java-home:
  Don't duplicate Java headers path under OS X in configure.
  Use JAVA_HOME value in configure to detect Java.
  Remove executable permission from appveyor.yml.
2015-08-02 19:18:56 +01:00
Vadim Zeitlin
a9c6edb3fb Skip check for pep8 if Python is disabled in configure.
There is no need for it, nor any other Python-related variables, to be defined
if Python is not used.
2015-08-02 19:57:59 +02:00
Vadim Zeitlin
1824cabcbc Make configure --without-alllang option actually useful.
Use it to disable all languages by default, but still allow enabling
individual languages by explicitly using --with-lang options for them.

E.g. to enable tests for Java only "--without-alllang --with-java" can now be
used to skip the configure checks for all the other languages.
2015-08-02 19:57:59 +02:00
Vadim Zeitlin
11974efe2e Cosmetic: fix wrong configure options indentation in --help.
Ensure that help for all options starts in the same column (unless the options
are too long, as --with-guile-config=path, but at least avoid indenting it by
a tab stop then).
2015-08-02 19:57:33 +02:00
Vadim Zeitlin
651ad3030c Don't duplicate Java headers path under OS X in configure.
Use /System/Library/Frameworks/JavaVM.framework/Headers in a single place only
to make it easier to change it later and, hopefully, make the rather
convoluted process of Java detection under OS X slightly more clear.
2015-08-02 15:40:41 +02:00
William S Fulton
130834aac2 Merge branch 'vadz-msw-srcdir'
* vadz-msw-srcdir:
  SWIG_LIB fix for out of source MinGW builds
  Use "mixed" path to source directory under Cygwin.
2015-08-02 10:07:59 +01:00
William S Fulton
f5db2b43e6 SWIG_LIB fix for out of source MinGW builds 2015-08-02 10:05:09 +01:00
William S Fulton
026d879058 Move MinGW mixed path conversion code to the pathconvert tool
In preparation for adding MinGW support to patch #438.
2015-08-01 23:08:53 +01:00
Vadim Zeitlin
2e7331964a Use JAVA_HOME value in configure to detect Java.
This is simpler than having to use --with-java, --with-javac and
--with-javaincl options and, even more importantly, will usually just work by
default.
2015-08-01 18:50:27 +02:00
William S Fulton
cc6804724f Improve configure output when python is not installed 2015-08-01 17:43:36 +01:00
William S Fulton
4ffbe8fc2c Merge branch 'kkaempf-fix-configure-ocamlc-setting'
* kkaempf-fix-configure-ocamlc-setting:
  Ocaml configure changes
  Set OCAMLC to empty if Ocaml compiler not found
2015-07-30 23:35:12 +01:00
William S Fulton
a3f0921c57 Ocaml configure changes
Remove use of peculiar ':' default for OCAML in AC_CHECK_PROGS.
Further refinement of issue #458.
2015-07-30 23:32:54 +01:00