1 # This file is a shell script fragment that supplies the information
2 # necessary for a configure script to process the program in
3 # this directory. For more information, look at ../configure.
7 srcname="GNU Multi-Precision library/mpn"
14 sparc9*-*-* | sparc64*-*-* | ultrasparc*-*-*)
15 #path="sparc64" ;; Don't use this until compilers are ready
16 path="sparc32/v8 sparc" ;;
17 sparc8*-*-* | microsparc*-*-*)
18 path="sparc32/v8 sparc" ;;
20 path="sparc32/v8/supersparc sparc32/v8 sparc"
21 extra_functions="udiv" ;;
22 sparc*-*-*) path="sparc32"
23 if [ x$floating_point = xno ]
24 then extra_functions="udiv_nfp"
25 else extra_functions="udiv_fp"
28 hppa7000*-*-*) path="hppa/hppa1_1 hppa"; extra_functions="udiv_qrnnd" ;;
29 hppa1.0*-*-*) path="hppa"; extra_functions="udiv_qrnnd" ;;
30 hppa*-*-*) # assume pa7100
31 path="hppa/hppa1_1/pa7100 hppa/hppa1_1 hppa"
32 extra_functions="udiv_qrnnd" ;;
33 cray2-cray-unicos* | [xy]mp-cray-unicos* | [ctj]90-cray-unicos*)
35 alphaev5-*-*) path="alpha/ev5 alpha"; extra_functions="udiv_qrnnd" ;;
36 alpha*-*-*) path="alpha"; extra_functions="udiv_qrnnd" ;;
37 am29000*-*-*) path="am29000" ;;
38 a29k*-*-*) path="am29000" ;;
40 # Intel x86 configurations
41 i[34]86*-*-linuxaout* | i[34]86*-*-linuxoldld* | \
42 i[34]86*-*-*bsd*) # x86 running BSD or Linux with a.out
43 echo '#define BSD_SYNTAX' >asm-syntax.h
44 echo '#include "'$srcdir'/x86/syntax.h"' >>asm-syntax.h
46 i[56]86*-*-linuxaout* | pentium-*-linuxaout* | pentiumpro-*-linuxaout* | \
47 i[56]86*-*-linuxoldld* | pentium-*-linuxoldld* | pentiumpro-*-linuxoldld* | \
48 i[56]86*-*-*bsd* | pentium-*-*bsd* | pentiumpro-*-*bsd*)
49 echo '#define BSD_SYNTAX' >asm-syntax.h
50 echo '#include "'$srcdir'/x86/syntax.h"' >>asm-syntax.h
51 path="x86/pentium x86" ;;
52 i[34]86*-*-*) # x86 with ELF/SysV format
53 echo '#define ELF_SYNTAX' >asm-syntax.h
54 echo '#include "'$srcdir'/x86/syntax.h"' >>asm-syntax.h
56 i[56]86*-*-* | pentium-*-* | pentiumpro-*-*) # x86 with ELF/SysV format
57 echo '#define ELF_SYNTAX' >asm-syntax.h
58 echo '#include "'$srcdir'/x86/syntax.h"' >>asm-syntax.h
59 path="x86/pentium x86" ;;
61 # Motorola 68k configurations. Let m68k mean 68020-68040.
62 # mc68000 or mc68060 configurations need to be specified explicitly
63 m680[234]0*-*-linuxaout* | m68k*-*-linuxaout*)
64 echo '#define MIT_SYNTAX' >asm-syntax.h
65 echo '#include "'$srcdir'/m68k/syntax.h"' >>asm-syntax.h
66 path="m68k/mc68020 m68k" ;;
68 echo '#define MIT_SYNTAX' >asm-syntax.h
69 echo '#include "'$srcdir'/m68k/syntax.h"' >>asm-syntax.h
71 m680[234]0*-*-linux* | m68k*-*-linux*)
72 echo '#define ELF_SYNTAX' >asm-syntax.h
73 echo '#include "'$srcdir'/m68k/syntax.h"' >>asm-syntax.h
74 path="m68k/mc68020 m68k" ;;
76 echo '#define ELF_SYNTAX' >asm-syntax.h
77 echo '#include "'$srcdir'/m68k/syntax.h"' >>asm-syntax.h
79 m68000*-*-* | m68060*-*-*)
80 echo '#define MIT_SYNTAX' >asm-syntax.h
81 echo '#include "'$srcdir'/m68k/syntax.h"' >>asm-syntax.h
82 path="m68k/mc68000" ;;
83 m680[234]0*-*-* | m68k*-*-*)
84 echo '#define MIT_SYNTAX' >asm-syntax.h
85 echo '#include "'$srcdir'/m68k/syntax.h"' >>asm-syntax.h
86 path="m68k/mc68020 m68k" ;;
88 i960*-*-*) path="i960" ;;
89 m88k*-*-* | m88k*-*-*) path="m88k" ;;
90 m88110*-*-*) path="m88k/mc88110 m88k" ;;
91 ns32k*-*-*) path="n32k" ;;
92 ppc601-*-*) path="power powerpc32" ;;
93 ppc620-*-* | powerpc64*-*-*) path="powerpc64" ;;
94 ppc60[234]*-*-* | powerpc*-*-*) path="powerpc32" ;;
95 pyramid-*-*) path="pyr" ;;
96 rs6000-*-* | power-*-* | power2-*-*)
97 path="power"; extra_functions="udiv_w_sdiv" ;;
99 sh2-*-*) path="sh/sh2 sh" ;;
100 mips[34]*-*-*) path="mips3" ;;
101 mips*-*-irix6*) path="mips3" ;;
102 mips*-*-*) path="mips2" ;;
103 vax*-*-*) path="vax"; extra_functions="udiv_w_sdiv" ;;
104 z8000x*-*-*) path="z8000x"; extra_functions="udiv_w_sdiv" ;;
105 z8000*-*-*) path="z8000"; extra_functions="udiv_w_sdiv" ;;
106 clipper*-*-*) path="clipper" ;;
111 *-*-linuxaout* | *-*-linuxoldld*) config=bsd.h ;;
112 *-sysv* | *-solaris* | *-*-linux*) config="sysv.h" ;;
117 i[3456]86*-*-*bsd* | i[3456]86*-*-linuxaout* | i[3456]86*-*-linuxoldld* | \
118 pentium-*-*bsd* | pentium-*-linuxaout* | pentium-*-linuxoldld* | \
119 pentiumpro-*-*bsd* | pentiumpro-*-linuxaout* | pentiumpro-*-linuxoldld*)
120 target_makefile_frag=config/t-oldgas ;;
121 rs6000-*-aix[456789]* | rs6000-*-aix3.2.[456789])
122 target_makefile_frag=config/t-pwr-aix ;;
123 ppc601-*-aix[456789]* | ppc601-*-aix3.2.[456789] | \
124 ppc60[234]*-*-aix[456789]* | ppc60[234]*-*-aix3.2.[456789] | \
125 powerpc*-*-aix[456789]* | powerpc*-*-aix3.2.[456789])
126 target_makefile_frag=config/t-ppc-aix ;;
130 functions="${extra_functions} inlines add_n addmul_1 cmp divmod_1 \
131 divrem divrem_1 dump lshift mod_1 mul mul_1 mul_n random2 rshift sqrtrem \
132 sub_n submul_1 get_str set_str scan0 scan1 popcount hamdist gcd_1 \
133 pre_mod_1 perfsqr bdivmod gcd gcdext"
138 for fn in $functions ; do
139 mpn_objects="$mpn_objects $fn.o"
140 for dir in $path ; do
142 if test -f $srcdir/$dir/$fn.S ; then
143 files="$files $dir/$fn.S"
146 elif test -f $srcdir/$dir/$fn.s ; then
147 files="$files $dir/$fn.s"
150 elif test -f $srcdir/$dir/$fn.c ; then
151 files="$files $dir/$fn.c"
158 for dir in $path ; do
160 if test -f $srcdir/$dir/gmp-mparam.h ; then
161 files="$files $dir/gmp-mparam.h"
162 links="$links gmp-mparam.h"
167 links="sysdep.h $links"
168 files="$config $files"
174 sed <Makefile >Makefile.tmp \
175 -e "s/MPN_LINKS = .*/MPN_LINKS =${mpn_links}/" \
176 -e "s/MPN_OBJECTS = .*/MPN_OBJECTS =${mpn_objects}/"
178 mv Makefile.tmp Makefile