Fixes to build with Mac OSX Intel.

This commit is contained in:
jgarcia 2006-04-24 08:44:28 +00:00
parent b98391ba3b
commit 330c3e6e09
4 changed files with 24 additions and 4 deletions

View file

@ -44,7 +44,13 @@
"#include <fcntl.h>"
"#include <stdio.h>"
#+:cygwin
"#define MSG_WAITALL 0")
"#define MSG_WAITALL 0"
"#ifndef MSG_CONFIRM"
"#define MSG_CONFIRM 0"
"#endif"
"#ifndef MSG_NOSIGNAL"
"#define MSG_NOSIGNAL 0"
"#endif")
#+:wsock
(clines
#+(and (or :msvc :mingw32) (not :threads))

6
src/aclocal.m4 vendored
View file

@ -263,9 +263,13 @@ case "${host_os}" in
LDRPATH=''
THREAD_CFLAGS='-D_THREAD_SAFE'
THREAD_LIBS='-lpthread'
# The GMP library has not yet been ported to Intel-OSX
if test `uname -m` = i386; then
gmp_build=none-apple-${host_os}
fi
;;
*)
thehost="$host_os"
Thehost="$host_os"
shared="no"
;;
esac

9
src/configure vendored
View file

@ -3588,6 +3588,10 @@ case "${host_os}" in
LDRPATH=''
THREAD_CFLAGS='-D_THREAD_SAFE'
THREAD_LIBS='-lpthread'
# The GMP library has not yet been ported to Intel-OSX
if test `uname -m` = i386; then
gmp_build=none-apple-${host_os}
fi
;;
*)
thehost="$host_os"
@ -9851,12 +9855,15 @@ _ACEOF
{ echo "$as_me:$LINENO: Configuring included GMP library:" >&5
echo "$as_me: Configuring included GMP library:" >&6;}
test -d gmp && rm -rf gmp
if test -z "$gmp_build"; then
gmp_build="${build_alias}"
fi
if mkdir gmp; then
ECL_GMP_HEADER='ecl/gmp.h'
(destdir=`${PWDCMD}`; cd gmp; CC="${CC} ${PICFLAG}" \
$srcdir/gmp/configure --disable-shared --prefix=${destdir} \
--infodir=${destdir}/doc --includedir=${destdir}/ecl \
--libdir=${destdir} --build=${build_alias} --host=${host_alias} $with_gmp)
--libdir=${destdir} --build=${gmp_build} --host=${host_alias} $with_gmp)
fi
fi
fi

View file

@ -494,12 +494,15 @@ else
if test "${with_system_gmp}" = "no" ; then
AC_MSG_NOTICE(Configuring included GMP library:)
test -d gmp && rm -rf gmp
if test -z "$gmp_build"; then
gmp_build="${build_alias}"
fi
if mkdir gmp; then
ECL_GMP_HEADER='ecl/gmp.h'
(destdir=`${PWDCMD}`; cd gmp; CC="${CC} ${PICFLAG}" \
$srcdir/gmp/configure --disable-shared --prefix=${destdir} \
--infodir=${destdir}/doc --includedir=${destdir}/ecl \
--libdir=${destdir} --build=${build_alias} --host=${host_alias} $with_gmp)
--libdir=${destdir} --build=${gmp_build} --host=${host_alias} $with_gmp)
fi
fi
fi