=================================================================== RCS file: /home/cvs/OpenXM/src/ox_math/configure.in,v retrieving revision 1.2 retrieving revision 1.3 diff -u -p -r1.2 -r1.3 --- OpenXM/src/ox_math/configure.in 2000/03/13 06:27:48 1.2 +++ OpenXM/src/ox_math/configure.in 2003/03/23 21:56:11 1.3 @@ -1,4 +1,4 @@ -dnl $OpenXM: OpenXM/src/ox_math/configure.in,v 1.1 2000/02/08 21:14:01 ohara Exp $ +dnl $OpenXM: OpenXM/src/ox_math/configure.in,v 1.2 2000/03/13 06:27:48 ohara Exp $ dnl If you change this file, do not forget to run autoconf and rm .configure_done AC_INIT(math2ox.c) @@ -8,16 +8,21 @@ AC_PROG_RANLIB AC_PROG_INSTALL AC_PATH_XTRA -AC_CHECK_FUNC(socket) -if test "$ac_cv_func_socket" = no ; then - AC_CHECK_LIB(socket,socket) +AC_ARG_WITH([gmp], +[ --with-gmp with the GNU MP library [[no]]], +[with_gmp=yes],[with_gmp=no]) + +if test ${with_gmp:=no} != no ; then + AC_DEFINE([WITH_GMP]) + GMPLIB="-lgmp" fi -AC_CHECK_FUNC(gethostbyname) -if test "$ac_cv_func_gethostbyname" = no ; then - AC_CHECK_LIB(nsl,gethostbyname) -fi +AC_SUBST([GMPLIB]) -AC_CANONICAL_HOST +dnl for Solaris 2.x +AC_CHECK_FUNC(socket, , [AC_CHECK_LIB(socket,socket)]) +AC_CHECK_FUNC(gethostbyname, , [AC_CHECK_LIB(nsl,gethostbyname)]) + +AC_CANONICAL_SYSTEM case "$host_os" in linux*|freebsd*) ml_system=Linux