From 9fe07c496aaa23487d8e669e55872daeebdf33d9 Mon Sep 17 00:00:00 2001 From: James Michael DuPont Date: Wed, 12 Mar 2003 19:54:32 +0000 Subject: [PATCH] debian support git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4521 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Lib/csharp/csharp.swg | 8 ++++++++ SWIG/autogen-debian.sh | 16 ++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100755 SWIG/autogen-debian.sh diff --git a/SWIG/Lib/csharp/csharp.swg b/SWIG/Lib/csharp/csharp.swg index 7a411f947..a95563af0 100644 --- a/SWIG/Lib/csharp/csharp.swg +++ b/SWIG/Lib/csharp/csharp.swg @@ -11,7 +11,15 @@ #include #include + +#ifdef WIN32 #define DllExport __declspec( dllexport ) +#else +/* + This is not needed for unix +*/ +#define DllExport +#endif %} /* The jni, jtype and jstype typemaps work together and so there should be one of each. diff --git a/SWIG/autogen-debian.sh b/SWIG/autogen-debian.sh new file mode 100755 index 000000000..c633c574e --- /dev/null +++ b/SWIG/autogen-debian.sh @@ -0,0 +1,16 @@ +#! /bin/sh + +# Bootstrap the development environment - add extra files needed to run configure. +# Note autoreconf should do what this file achieves, but it has a bug when working with automake! +# The latest config.guess and config.sub should be copied into Tools/config and checked into CVS +# when upgrading the autotools. Otherwise this script will ensure the latest is copied from +# your autotool installation. + +set -x +test -d Tools/config || mkdir Tools/config +aclocal-1.7 -I Tools/config +autoheader2.50 +automake-1.7 --add-missing --copy --force-missing +autoconf2.50 +(cd Tools; autoconf2.50) +