@ -1,8 +1,8 @@ 
			
		
	
		
			
				
					dnl local autoconf macros 
			
		
	
		
			
				
					dnl Bruno Haible 21.9.1997  
			
		
	
		
			
				
					dnl Marcus Daniels 10.4.1997  
			
		
	
		
			
				
					dnl Bruno Haible 2001-02-04  
			
		
	
		
			
				
					dnl Marcus Daniels 1997-04-10  
			
		
	
		
			
				
					dnl 
			
		
	
		
			
				
					AC_PREREQ(2.13 )dnl 
			
		
	
		
			
				
					AC_PREREQ(2.12 )dnl 
			
		
	
		
			
				
					dnl 
			
		
	
		
			
				
					dnl without AC_MSG_...:   with AC_MSG_... and caching: 
			
		
	
		
			
				
					dnl   AC_TRY_CPP          CL_CPP_CHECK 
			
		
	
	
		
			
				
					
						
							
								 
						
						
							
								 
						
						
					 
				
				@ -207,13 +207,13 @@ AC_DEFUN(CL_CANONICAL_HOST, 
			
		
	
		
			
				
					[AC_REQUIRE([AC_PROG_CC]) dnl Actually: AC_REQUIRE([CL_CC_WORKS]) 
			
		
	
		
			
				
					dnl Set ac_aux_dir before the cache check, because AM_PROG_LIBTOOL needs it. 
			
		
	
		
			
				
					ac_aux_dir=${srcdir}/$1 
			
		
	
		
			
				
					AC_CACHE_CHECK(host system type, cl_cv_host, [ 
			
		
	
		
			
				
					dnl A substitute for AC_CONFIG_AUX_DIR_DEFAULT, so we don't need install.sh. 
			
		
	
		
			
				
					ac_config_guess=$ac_aux_dir/config.guess 
			
		
	
		
			
				
					ac_config_sub=$ac_aux_dir/config.sub 
			
		
	
		
			
				
					AC_CACHE_CHECK(host system type, cl_cv_host, [ 
			
		
	
		
			
				
					dnl Mostly copied from AC_CANONICAL_HOST. 
			
		
	
		
			
				
					# Make sure we can run config.sub. 
			
		
	
		
			
				
					if $ac_config_sub sun4 >/dev/null 2>&1; then : 
			
		
	
		
			
				
					if ${CONFIG_SHELL-/bin/sh} $ ac_config_sub sun4 >/dev/null 2>&1; then : 
			
		
	
		
			
				
					else AC_MSG_ERROR(can not run $ac_config_sub) 
			
		
	
		
			
				
					fi 
			
		
	
		
			
				
					host_alias=$host 
			
		
	
	
		
			
				
					
						
						
						
							
								 
						
					 
				
				@ -221,18 +221,21 @@ case "$host_alias" in 
			
		
	
		
			
				
					NONE) 
			
		
	
		
			
				
					  case $nonopt in 
			
		
	
		
			
				
					  NONE) dnl config.guess needs to compile things 
			
		
	
		
			
				
					        host_alias=`export CC; $ac_config_guess` ;; 
			
		
	
		
			
				
					        host_alias=`export CC; ${CONFIG_SHELL-/bin/sh} $ ac_config_guess` ;; 
			
		
	
		
			
				
					  *)    host_alias=$nonopt ;; 
			
		
	
		
			
				
					  esac ;; 
			
		
	
		
			
				
					esac 
			
		
	
		
			
				
					# Don't fail just because the system is not listed in GNU's database. 
			
		
	
		
			
				
					if test -n "$host_alias"; then 
			
		
	
		
			
				
					  host=`$ac_config_sub $host_alias` 
			
		
	
		
			
				
					  host=`${CONFIG_SHELL-/bin/sh} $ ac_config_sub $host_alias` 
			
		
	
		
			
				
					else 
			
		
	
		
			
				
					  host_alias=unknown 
			
		
	
		
			
				
					  host=unknown-unknown-unknown 
			
		
	
		
			
				
					fi 
			
		
	
		
			
				
					cl_cv_host_alias="$host_alias" 
			
		
	
		
			
				
					cl_cv_host="$host" 
			
		
	
		
			
				
					]) 
			
		
	
		
			
				
					host_alias="$cl_cv_host_alias" 
			
		
	
		
			
				
					host="$cl_cv_host" 
			
		
	
		
			
				
					changequote(,)dnl 
			
		
	
		
			
				
					host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 
			
		
	
	
		
			
				
					
						
						
						
							
								 
						
					 
				
				@ -243,6 +246,10 @@ AC_SUBST(host)dnl 
			
		
	
		
			
				
					AC_SUBST(host_cpu)dnl 
			
		
	
		
			
				
					AC_SUBST(host_vendor)dnl 
			
		
	
		
			
				
					AC_SUBST(host_os)dnl 
			
		
	
		
			
				
					dnl We have defined $ac_aux_dir. 
			
		
	
		
			
				
					AC_PROVIDE([AC_CONFIG_AUX_DIR_DEFAULT])dnl 
			
		
	
		
			
				
					dnl We have defined $host_alias and $host. 
			
		
	
		
			
				
					AC_PROVIDE([AC_CANONICAL_HOST])dnl 
			
		
	
		
			
				
					])dnl 
			
		
	
		
			
				
					dnl 
			
		
	
		
			
				
					AC_DEFUN(CL_CANONICAL_HOST_CPU, 
			
		
	
	
		
			
				
					
						
							
								 
						
						
							
								 
						
						
					 
				
				@ -649,7 +656,14 @@ cat > conftest.$ac_ext <<EOF 
			
		
	
		
			
				
					#include "confdefs.h" 
			
		
	
		
			
				
					EOF 
			
		
	
		
			
				
					cat "$cl_machine_file_c" >> conftest.$ac_ext 
			
		
	
		
			
				
					ORIGCC="$CC" 
			
		
	
		
			
				
					if test $ac_cv_prog_gcc = yes; then 
			
		
	
		
			
				
					# gcc -O (gcc version <= 2.3.2) crashes when compiling long long shifts for 
			
		
	
		
			
				
					# target 80386. Strip "-O". 
			
		
	
		
			
				
					CC=`echo "$CC " | sed -e 's/-O //g'` 
			
		
	
		
			
				
					fi 
			
		
	
		
			
				
					AC_TRY_EVAL(ac_link) 
			
		
	
		
			
				
					CC="$ORIGCC" 
			
		
	
		
			
				
					if test -s conftest; then 
			
		
	
		
			
				
					  echo "creating $cl_machine_file_h" 
			
		
	
		
			
				
					  ./conftest > conftest.h 
			
		
	
	
		
			
				
					
						
						
						
							
								 
						
					 
				
				@ -671,50 +685,6 @@ echo "cross-compiling - cannot create $cl_machine_file_h" 
			
		
	
		
			
				
					fi 
			
		
	
		
			
				
					])dnl 
			
		
	
		
			
				
					dnl 
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					# Is the gmp header file new enough? (should be implemented with an argument) 
			
		
	
		
			
				
					AC_DEFUN(CL_GMP_H_VERSION, 
			
		
	
		
			
				
					[AC_CACHE_CHECK([for recent enough gmp.h], cl_cv_new_gmp_h, [ 
			
		
	
		
			
				
					  AC_TRY_CPP([#include <gmp.h> 
			
		
	
		
			
				
					#if !defined(__GNU_MP_VERSION) || (__GNU_MP_VERSION < 3) 
			
		
	
		
			
				
					 #error "ancient gmp.h" 
			
		
	
		
			
				
					#endif], 
			
		
	
		
			
				
					cl_cv_new_gmp_h="yes", cl_cv_new_gmp_h="no") 
			
		
	
		
			
				
					])])dnl 
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					# Does libgmp provide some functionality introduced in version 3.0? 
			
		
	
		
			
				
					AC_DEFUN(CL_GMP_CHECK, 
			
		
	
		
			
				
					[AC_CACHE_CHECK([for working libgmp], cl_cv_new_libgmp, [ 
			
		
	
		
			
				
					    SAVELIBS=$LIBS 
			
		
	
		
			
				
					    LIBS="$LIBS -lgmp" 
			
		
	
		
			
				
					    AC_TRY_LINK([#include <gmp.h>],[mpn_divexact_by3(0,0,0)], 
			
		
	
		
			
				
					cl_cv_new_libgmp="yes", cl_cv_new_libgmp="no"; LIBS=$SAVELIBS) 
			
		
	
		
			
				
					])]) 
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					# What is sizeof(mp_limb_t)?  (It has to match sizeof(uintD) later.) 
			
		
	
		
			
				
					AC_DEFUN(CL_GMP_SET_UINTD, 
			
		
	
		
			
				
					[AC_CACHE_CHECK([how large gmp demands uintD to be], cl_cv_gmp_set_uintd, [ 
			
		
	
		
			
				
					    AC_TRY_RUN([#include <stdio.h> 
			
		
	
		
			
				
					#include <gmp.h> 
			
		
	
		
			
				
					int main() { 
			
		
	
		
			
				
					    FILE *f=fopen("conftestval", "w"); 
			
		
	
		
			
				
					    if (!f) return(1); 
			
		
	
		
			
				
					    if (sizeof(mp_limb_t) > sizeof(long)) 
			
		
	
		
			
				
					        fprintf(f, "long long"); 
			
		
	
		
			
				
					    else if (sizeof(mp_limb_t) == sizeof(long)) 
			
		
	
		
			
				
					        fprintf(f, "long"); 
			
		
	
		
			
				
					    else if (sizeof(mp_limb_t) == sizeof(int)) 
			
		
	
		
			
				
					        fprintf(f, "int"); 
			
		
	
		
			
				
					    else return(1); 
			
		
	
		
			
				
					    return(0); 
			
		
	
		
			
				
					}], cl_cv_gmp_set_uintd=`cat conftestval`; \ 
			
		
	
		
			
				
					    cl_gmp_demands="GMP_DEMANDS_UINTD_`echo ${cl_cv_gmp_set_uintd} | sed -e 'y/ gilnot/_GILNOT/'`";  
			
		
	
		
			
				
					    AC_DEFINE_UNQUOTED($cl_gmp_demands), 
			
		
	
		
			
				
					    AC_MSG_ERROR([CLN can't handle the result]),dnl 
			
		
	
		
			
				
					    AC_MSG_ERROR([cross-compiling - cannot determine])) 
			
		
	
		
			
				
					])]) 
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					# ============================================================================= 
			
		
	
		
			
				
					# libtool.m4 - Configure libtool for the host system. -*-Shell-script-*- 
			
		
	
		
			
				
					## Copyright 1996, 1997, 1998, 1999, 2000, 2001 
			
		
	
		
			
				
					## Free Software Foundation, Inc. 
			
		
	
	
		
			
				
					
						
						
						
							
								 
						
					 
				
				@ -739,9 +709,6 @@ int main() { 
			
		
	
		
			
				
					## configuration script generated by Autoconf, you may include it under 
			
		
	
		
			
				
					## the same distribution terms that you use for the rest of that program. 
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					# The next line was added by Bruno Haible 2001-06-08. 
			
		
	
		
			
				
					undefine([symbols]) 
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					# serial 46 AC_PROG_LIBTOOL 
			
		
	
		
			
				
					AC_DEFUN([AC_PROG_LIBTOOL], 
			
		
	
		
			
				
					[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl 
			
		
	
	
		
			
				
					
						
						
						
							
								 
						
					 
				
				@ -762,7 +729,7 @@ AC_DEFUN([AC_LIBTOOL_SETUP], 
			
		
	
		
			
				
					AC_REQUIRE([AC_ENABLE_SHARED])dnl 
			
		
	
		
			
				
					AC_REQUIRE([AC_ENABLE_STATIC])dnl 
			
		
	
		
			
				
					AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl 
			
		
	
		
			
				
					AC_REQUIRE([A C_CANONICAL_HOST])dnl 
			
		
	
		
			
				
					AC_REQUIRE([CL _CANONICAL_HOST])dnl 
			
		
	
		
			
				
					AC_REQUIRE([AC_CANONICAL_BUILD])dnl 
			
		
	
		
			
				
					AC_REQUIRE([AC_PROG_CC])dnl 
			
		
	
		
			
				
					AC_REQUIRE([AC_PROG_LD])dnl 
			
		
	
	
		
			
				
					
						
							
								 
						
						
							
								 
						
						
					 
				
				@ -877,7 +844,7 @@ AC_DEFUN(_LT_AC_CHECK_DLFCN, 
			
		
	
		
			
				
					# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 
			
		
	
		
			
				
					# --------------------------------- 
			
		
	
		
			
				
					AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], 
			
		
	
		
			
				
					[AC_REQUIRE([A C_CANONICAL_HOST]) 
			
		
	
		
			
				
					[AC_REQUIRE([CL _CANONICAL_HOST]) 
			
		
	
		
			
				
					AC_REQUIRE([AC_PROG_NM]) 
			
		
	
		
			
				
					AC_REQUIRE([AC_OBJEXT]) 
			
		
	
		
			
				
					# Check for command to grab the raw symbol name followed by C symbol from nm. 
			
		
	
	
		
			
				
					
						
							
								 
						
						
							
								 
						
						
					 
				
				@ -3735,7 +3702,7 @@ AC_DEFUN([AC_PROG_LD], 
			
		
	
		
			
				
					[  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]], 
			
		
	
		
			
				
					test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no) 
			
		
	
		
			
				
					AC_REQUIRE([AC_PROG_CC])dnl 
			
		
	
		
			
				
					AC_REQUIRE([A C_CANONICAL_HOST])dnl 
			
		
	
		
			
				
					AC_REQUIRE([CL _CANONICAL_HOST])dnl 
			
		
	
		
			
				
					AC_REQUIRE([AC_CANONICAL_BUILD])dnl 
			
		
	
		
			
				
					ac_prog=ld 
			
		
	
		
			
				
					if test "$GCC" = yes; then 
			
		
	
	
		
			
				
					
						
							
								 
						
						
							
								 
						
						
					 
				
				@ -4035,7 +4002,7 @@ AC_MSG_RESULT([$NM]) 
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					# AC_CHECK_LIBM - check for math library 
			
		
	
		
			
				
					AC_DEFUN([AC_CHECK_LIBM], 
			
		
	
		
			
				
					[AC_REQUIRE([A C_CANONICAL_HOST])dnl 
			
		
	
		
			
				
					[AC_REQUIRE([CL _CANONICAL_HOST])dnl 
			
		
	
		
			
				
					LIBM= 
			
		
	
		
			
				
					case $host in 
			
		
	
		
			
				
					*-*-beos* | *-*-cygwin* | *-*-pw32*) 
			
		
	
	
		
			
				
					
						
							
								 
						
						
							
								 
						
						
					 
				
				@ -4115,3 +4082,44 @@ AC_DEFUN([AM_PROG_NM],        [AC_PROG_NM]) 
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					# This is just to silence aclocal about the macro not being used 
			
		
	
		
			
				
					ifelse([AC_DISABLE_FAST_INSTALL]) 
			
		
	
		
			
				
					# Is the gmp header file new enough? (should be implemented with an argument) 
			
		
	
		
			
				
					AC_DEFUN(CL_GMP_H_VERSION, 
			
		
	
		
			
				
					[AC_CACHE_CHECK([for recent enough gmp.h], cl_cv_new_gmp_h, [ 
			
		
	
		
			
				
					  AC_TRY_CPP([#include <gmp.h> 
			
		
	
		
			
				
					#if !defined(__GNU_MP_VERSION) || (__GNU_MP_VERSION < 3) 
			
		
	
		
			
				
					 #error "ancient gmp.h" 
			
		
	
		
			
				
					#endif], 
			
		
	
		
			
				
					cl_cv_new_gmp_h="yes", cl_cv_new_gmp_h="no") 
			
		
	
		
			
				
					])])dnl 
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					# Does libgmp provide some functionality introduced in version 3.0? 
			
		
	
		
			
				
					AC_DEFUN(CL_GMP_CHECK, 
			
		
	
		
			
				
					[AC_CACHE_CHECK([for working libgmp], cl_cv_new_libgmp, [ 
			
		
	
		
			
				
					    SAVELIBS=$LIBS 
			
		
	
		
			
				
					    LIBS="$LIBS -lgmp" 
			
		
	
		
			
				
					    AC_TRY_LINK([#include <gmp.h>],[mpn_divexact_by3(0,0,0)], 
			
		
	
		
			
				
					cl_cv_new_libgmp="yes", cl_cv_new_libgmp="no"; LIBS=$SAVELIBS) 
			
		
	
		
			
				
					])]) 
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					# What is sizeof(mp_limb_t)?  (It has to match sizeof(uintD) later.) 
			
		
	
		
			
				
					AC_DEFUN(CL_GMP_SET_UINTD, 
			
		
	
		
			
				
					[AC_CACHE_CHECK([how large gmp demands uintD to be], cl_cv_gmp_set_uintd, [ 
			
		
	
		
			
				
					    AC_TRY_RUN([#include <stdio.h> 
			
		
	
		
			
				
					#include <gmp.h> 
			
		
	
		
			
				
					int main() { 
			
		
	
		
			
				
					    FILE *f=fopen("conftestval", "w"); 
			
		
	
		
			
				
					    if (!f) return(1); 
			
		
	
		
			
				
					    if (sizeof(mp_limb_t) > sizeof(long)) 
			
		
	
		
			
				
					        fprintf(f, "long long"); 
			
		
	
		
			
				
					    else if (sizeof(mp_limb_t) == sizeof(long)) 
			
		
	
		
			
				
					        fprintf(f, "long"); 
			
		
	
		
			
				
					    else if (sizeof(mp_limb_t) == sizeof(int)) 
			
		
	
		
			
				
					        fprintf(f, "int"); 
			
		
	
		
			
				
					    else return(1); 
			
		
	
		
			
				
					    return(0); 
			
		
	
		
			
				
					}], cl_cv_gmp_set_uintd=`cat conftestval`; \ 
			
		
	
		
			
				
					    cl_gmp_demands="GMP_DEMANDS_UINTD_`echo ${cl_cv_gmp_set_uintd} | sed -e 'y/ gilnot/_GILNOT/'`";  
			
		
	
		
			
				
					    AC_DEFINE_UNQUOTED($cl_gmp_demands), 
			
		
	
		
			
				
					    AC_MSG_ERROR([CLN can't handle the result]),dnl 
			
		
	
		
			
				
					    AC_MSG_ERROR([cross-compiling - cannot determine])) 
			
		
	
		
			
				
					])])