diff options
author | Chris Liddell <chris.liddell@artifex.com> | 2019-10-18 09:46:03 +0100 |
---|---|---|
committer | Chris Liddell <chris.liddell@artifex.com> | 2019-11-21 15:28:28 +0000 |
commit | 327dc8943c0aac1c7be7a1fb6e93346b61cd0900 (patch) | |
tree | 0f6cc339406fe5ead96f56224b08b8dbc785b9a0 /autogen.sh | |
parent | e20cd8d8fc1f40bf4218c18e545ca4ddb175c348 (diff) | |
download | ghostpdl-327dc8943c0aac1c7be7a1fb6e93346b61cd0900.tar.gz |
Bug #699331: better support for cross-compiling
This is mainly moving from using uname to identify the the target platform,
to using the 'host' value to identify the target platform, and 'host' and
'build' values to know when we're cross-compiling.
There are also a couple of tweaks related to cross-compiling to MSYS.
Also, make double sure API symbols are always visible. This affects builds with
gcc and compatible compilers.
Remove use of $cross_compiling variable
Credit to djcj for most of the changes
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/autogen.sh b/autogen.sh index 30f865df4..7a0783623 100755 --- a/autogen.sh +++ b/autogen.sh @@ -17,10 +17,31 @@ cd "$srcdir" exit 1 } +(automake --version) < /dev/null > /dev/null 2>&1 || { + echo + echo "You must have automake installed to compile $package." + echo "Download the appropriate package for your distribution," + echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/" + exit 1 +} + +rm -rf autom4te.cache + echo "Generating configuration files for $package, please wait...." -echo " running autoconf" -autoconf || exit 1 +echo " running autoreconf" +autoreconf || exit 1 + +if test ! -x config.guess -o ! -x config.sub ; then + rm -f config.guess config.sub + cp `automake --print-libdir`/config.guess . || exit 1 + cp `automake --print-libdir`/config.sub . || exit 1 +fi + +if test ! -x install-sh ; then + rm -f install-sh + cp `automake --print-libdir`/install-sh . || exit 1 +fi if test -z "$*"; then echo "I am going to run ./configure with no arguments - if you wish " |