Annotation of OpenXM/src/kan96xx/gmp-2.0.2-ssh-2/configure, Revision 1.1.1.1
1.1 takayama 1: #! /bin/sh
2:
3: # Guess values for system-dependent variables and create Makefiles.
4: # Generated automatically using autoconf version 2.12
5: # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6: #
7: # This configure script is free software; the Free Software Foundation
8: # gives unlimited permission to copy, distribute and modify it.
9:
10: # Defaults:
11: ac_help=
12: ac_default_prefix=/usr/local
13: # Any additions from configure.in:
14: ac_help="$ac_help
15: --disable-asm Disable assembly language optimizations. "
16:
17: # Initialize some variables set by options.
18: # The variables have the same names as the options, with
19: # dashes changed to underlines.
20: build=NONE
21: cache_file=./config.cache
22: exec_prefix=NONE
23: host=NONE
24: no_create=
25: nonopt=NONE
26: no_recursion=
27: prefix=NONE
28: program_prefix=NONE
29: program_suffix=NONE
30: program_transform_name=s,x,x,
31: silent=
32: site=
33: srcdir=
34: target=NONE
35: verbose=
36: x_includes=NONE
37: x_libraries=NONE
38: bindir='${exec_prefix}/bin'
39: sbindir='${exec_prefix}/sbin'
40: libexecdir='${exec_prefix}/libexec'
41: datadir='${prefix}/share'
42: sysconfdir='${prefix}/etc'
43: sharedstatedir='${prefix}/com'
44: localstatedir='${prefix}/var'
45: libdir='${exec_prefix}/lib'
46: includedir='${prefix}/include'
47: oldincludedir='/usr/include'
48: infodir='${prefix}/info'
49: mandir='${prefix}/man'
50:
51: # Initialize some other variables.
52: subdirs=
53: MFLAGS= MAKEFLAGS=
54: # Maximum number of lines to put in a shell here document.
55: ac_max_here_lines=12
56:
57: ac_prev=
58: for ac_option
59: do
60:
61: # If the previous option needs an argument, assign it.
62: if test -n "$ac_prev"; then
63: eval "$ac_prev=\$ac_option"
64: ac_prev=
65: continue
66: fi
67:
68: case "$ac_option" in
69: -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
70: *) ac_optarg= ;;
71: esac
72:
73: # Accept the important Cygnus configure options, so we can diagnose typos.
74:
75: case "$ac_option" in
76:
77: -bindir | --bindir | --bindi | --bind | --bin | --bi)
78: ac_prev=bindir ;;
79: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
80: bindir="$ac_optarg" ;;
81:
82: -build | --build | --buil | --bui | --bu)
83: ac_prev=build ;;
84: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
85: build="$ac_optarg" ;;
86:
87: -cache-file | --cache-file | --cache-fil | --cache-fi \
88: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
89: ac_prev=cache_file ;;
90: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
91: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
92: cache_file="$ac_optarg" ;;
93:
94: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
95: ac_prev=datadir ;;
96: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
97: | --da=*)
98: datadir="$ac_optarg" ;;
99:
100: -disable-* | --disable-*)
101: ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
102: # Reject names that are not valid shell variable names.
103: if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
104: { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
105: fi
106: ac_feature=`echo $ac_feature| sed 's/-/_/g'`
107: eval "enable_${ac_feature}=no" ;;
108:
109: -enable-* | --enable-*)
110: ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
111: # Reject names that are not valid shell variable names.
112: if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
113: { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
114: fi
115: ac_feature=`echo $ac_feature| sed 's/-/_/g'`
116: case "$ac_option" in
117: *=*) ;;
118: *) ac_optarg=yes ;;
119: esac
120: eval "enable_${ac_feature}='$ac_optarg'" ;;
121:
122: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
123: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
124: | --exec | --exe | --ex)
125: ac_prev=exec_prefix ;;
126: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
127: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
128: | --exec=* | --exe=* | --ex=*)
129: exec_prefix="$ac_optarg" ;;
130:
131: -gas | --gas | --ga | --g)
132: # Obsolete; use --with-gas.
133: with_gas=yes ;;
134:
135: -help | --help | --hel | --he)
136: # Omit some internal or obsolete options to make the list less imposing.
137: # This message is too long to be a string in the A/UX 3.1 sh.
138: cat << EOF
139: Usage: configure [options] [host]
140: Options: [defaults in brackets after descriptions]
141: Configuration:
142: --cache-file=FILE cache test results in FILE
143: --help print this message
144: --no-create do not create output files
145: --quiet, --silent do not print \`checking...' messages
146: --version print the version of autoconf that created configure
147: Directory and file names:
148: --prefix=PREFIX install architecture-independent files in PREFIX
149: [$ac_default_prefix]
150: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
151: [same as prefix]
152: --bindir=DIR user executables in DIR [EPREFIX/bin]
153: --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
154: --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
155: --datadir=DIR read-only architecture-independent data in DIR
156: [PREFIX/share]
157: --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
158: --sharedstatedir=DIR modifiable architecture-independent data in DIR
159: [PREFIX/com]
160: --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
161: --libdir=DIR object code libraries in DIR [EPREFIX/lib]
162: --includedir=DIR C header files in DIR [PREFIX/include]
163: --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
164: --infodir=DIR info documentation in DIR [PREFIX/info]
165: --mandir=DIR man documentation in DIR [PREFIX/man]
166: --srcdir=DIR find the sources in DIR [configure dir or ..]
167: --program-prefix=PREFIX prepend PREFIX to installed program names
168: --program-suffix=SUFFIX append SUFFIX to installed program names
169: --program-transform-name=PROGRAM
170: run sed PROGRAM on installed program names
171: EOF
172: cat << EOF
173: Host type:
174: --build=BUILD configure for building on BUILD [BUILD=HOST]
175: --host=HOST configure for HOST [guessed]
176: --target=TARGET configure for TARGET [TARGET=HOST]
177: Features and packages:
178: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
179: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
180: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
181: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
182: --x-includes=DIR X include files are in DIR
183: --x-libraries=DIR X library files are in DIR
184: EOF
185: if test -n "$ac_help"; then
186: echo "--enable and --with options recognized:$ac_help"
187: fi
188: exit 0 ;;
189:
190: -host | --host | --hos | --ho)
191: ac_prev=host ;;
192: -host=* | --host=* | --hos=* | --ho=*)
193: host="$ac_optarg" ;;
194:
195: -includedir | --includedir | --includedi | --included | --include \
196: | --includ | --inclu | --incl | --inc)
197: ac_prev=includedir ;;
198: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
199: | --includ=* | --inclu=* | --incl=* | --inc=*)
200: includedir="$ac_optarg" ;;
201:
202: -infodir | --infodir | --infodi | --infod | --info | --inf)
203: ac_prev=infodir ;;
204: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
205: infodir="$ac_optarg" ;;
206:
207: -libdir | --libdir | --libdi | --libd)
208: ac_prev=libdir ;;
209: -libdir=* | --libdir=* | --libdi=* | --libd=*)
210: libdir="$ac_optarg" ;;
211:
212: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
213: | --libexe | --libex | --libe)
214: ac_prev=libexecdir ;;
215: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
216: | --libexe=* | --libex=* | --libe=*)
217: libexecdir="$ac_optarg" ;;
218:
219: -localstatedir | --localstatedir | --localstatedi | --localstated \
220: | --localstate | --localstat | --localsta | --localst \
221: | --locals | --local | --loca | --loc | --lo)
222: ac_prev=localstatedir ;;
223: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
224: | --localstate=* | --localstat=* | --localsta=* | --localst=* \
225: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
226: localstatedir="$ac_optarg" ;;
227:
228: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
229: ac_prev=mandir ;;
230: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
231: mandir="$ac_optarg" ;;
232:
233: -nfp | --nfp | --nf)
234: # Obsolete; use --without-fp.
235: with_fp=no ;;
236:
237: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
238: | --no-cr | --no-c)
239: no_create=yes ;;
240:
241: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
242: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
243: no_recursion=yes ;;
244:
245: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
246: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
247: | --oldin | --oldi | --old | --ol | --o)
248: ac_prev=oldincludedir ;;
249: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
250: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
251: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
252: oldincludedir="$ac_optarg" ;;
253:
254: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
255: ac_prev=prefix ;;
256: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
257: prefix="$ac_optarg" ;;
258:
259: -program-prefix | --program-prefix | --program-prefi | --program-pref \
260: | --program-pre | --program-pr | --program-p)
261: ac_prev=program_prefix ;;
262: -program-prefix=* | --program-prefix=* | --program-prefi=* \
263: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
264: program_prefix="$ac_optarg" ;;
265:
266: -program-suffix | --program-suffix | --program-suffi | --program-suff \
267: | --program-suf | --program-su | --program-s)
268: ac_prev=program_suffix ;;
269: -program-suffix=* | --program-suffix=* | --program-suffi=* \
270: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
271: program_suffix="$ac_optarg" ;;
272:
273: -program-transform-name | --program-transform-name \
274: | --program-transform-nam | --program-transform-na \
275: | --program-transform-n | --program-transform- \
276: | --program-transform | --program-transfor \
277: | --program-transfo | --program-transf \
278: | --program-trans | --program-tran \
279: | --progr-tra | --program-tr | --program-t)
280: ac_prev=program_transform_name ;;
281: -program-transform-name=* | --program-transform-name=* \
282: | --program-transform-nam=* | --program-transform-na=* \
283: | --program-transform-n=* | --program-transform-=* \
284: | --program-transform=* | --program-transfor=* \
285: | --program-transfo=* | --program-transf=* \
286: | --program-trans=* | --program-tran=* \
287: | --progr-tra=* | --program-tr=* | --program-t=*)
288: program_transform_name="$ac_optarg" ;;
289:
290: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
291: | -silent | --silent | --silen | --sile | --sil)
292: silent=yes ;;
293:
294: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
295: ac_prev=sbindir ;;
296: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
297: | --sbi=* | --sb=*)
298: sbindir="$ac_optarg" ;;
299:
300: -sharedstatedir | --sharedstatedir | --sharedstatedi \
301: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
302: | --sharedst | --shareds | --shared | --share | --shar \
303: | --sha | --sh)
304: ac_prev=sharedstatedir ;;
305: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
306: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
307: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
308: | --sha=* | --sh=*)
309: sharedstatedir="$ac_optarg" ;;
310:
311: -site | --site | --sit)
312: ac_prev=site ;;
313: -site=* | --site=* | --sit=*)
314: site="$ac_optarg" ;;
315:
316: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
317: ac_prev=srcdir ;;
318: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
319: srcdir="$ac_optarg" ;;
320:
321: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
322: | --syscon | --sysco | --sysc | --sys | --sy)
323: ac_prev=sysconfdir ;;
324: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
325: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
326: sysconfdir="$ac_optarg" ;;
327:
328: -target | --target | --targe | --targ | --tar | --ta | --t)
329: ac_prev=target ;;
330: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
331: target="$ac_optarg" ;;
332:
333: -v | -verbose | --verbose | --verbos | --verbo | --verb)
334: verbose=yes ;;
335:
336: -version | --version | --versio | --versi | --vers)
337: echo "configure generated by autoconf version 2.12"
338: exit 0 ;;
339:
340: -with-* | --with-*)
341: ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
342: # Reject names that are not valid shell variable names.
343: if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
344: { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
345: fi
346: ac_package=`echo $ac_package| sed 's/-/_/g'`
347: case "$ac_option" in
348: *=*) ;;
349: *) ac_optarg=yes ;;
350: esac
351: eval "with_${ac_package}='$ac_optarg'" ;;
352:
353: -without-* | --without-*)
354: ac_package=`echo $ac_option|sed -e 's/-*without-//'`
355: # Reject names that are not valid shell variable names.
356: if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
357: { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
358: fi
359: ac_package=`echo $ac_package| sed 's/-/_/g'`
360: eval "with_${ac_package}=no" ;;
361:
362: --x)
363: # Obsolete; use --with-x.
364: with_x=yes ;;
365:
366: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
367: | --x-incl | --x-inc | --x-in | --x-i)
368: ac_prev=x_includes ;;
369: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
370: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
371: x_includes="$ac_optarg" ;;
372:
373: -x-libraries | --x-libraries | --x-librarie | --x-librari \
374: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
375: ac_prev=x_libraries ;;
376: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
377: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
378: x_libraries="$ac_optarg" ;;
379:
380: -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
381: ;;
382:
383: *)
384: if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
385: echo "configure: warning: $ac_option: invalid host type" 1>&2
386: fi
387: if test "x$nonopt" != xNONE; then
388: { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
389: fi
390: nonopt="$ac_option"
391: ;;
392:
393: esac
394: done
395:
396: if test -n "$ac_prev"; then
397: { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
398: fi
399:
400: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
401:
402: # File descriptor usage:
403: # 0 standard input
404: # 1 file creation
405: # 2 errors and warnings
406: # 3 some systems may open it to /dev/tty
407: # 4 used on the Kubota Titan
408: # 6 checking for... messages and results
409: # 5 compiler messages saved in config.log
410: if test "$silent" = yes; then
411: exec 6>/dev/null
412: else
413: exec 6>&1
414: fi
415: exec 5>./config.log
416:
417: echo "\
418: This file contains any messages produced by compilers while
419: running configure, to aid debugging if configure makes a mistake.
420: " 1>&5
421:
422: # Strip out --no-create and --no-recursion so they do not pile up.
423: # Also quote any args containing shell metacharacters.
424: ac_configure_args=
425: for ac_arg
426: do
427: case "$ac_arg" in
428: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
429: | --no-cr | --no-c) ;;
430: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
431: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
432: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
433: ac_configure_args="$ac_configure_args '$ac_arg'" ;;
434: *) ac_configure_args="$ac_configure_args $ac_arg" ;;
435: esac
436: done
437:
438: # NLS nuisances.
439: # Only set these to C if already set. These must not be set unconditionally
440: # because not all systems understand e.g. LANG=C (notably SCO).
441: # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
442: # Non-C LC_CTYPE values break the ctype check.
443: if test "${LANG+set}" = set; then LANG=C; export LANG; fi
444: if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
445: if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
446: if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
447:
448: # confdefs.h avoids OS command line length limits that DEFS can exceed.
449: rm -rf conftest* confdefs.h
450: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
451: echo > confdefs.h
452:
453: # A filename unique to this package, relative to the directory that
454: # configure is in, which we can look for to find out if srcdir is correct.
455: ac_unique_file=gmp-impl.h
456:
457: # Find the source files, if location was not specified.
458: if test -z "$srcdir"; then
459: ac_srcdir_defaulted=yes
460: # Try the directory containing this script, then its parent.
461: ac_prog=$0
462: ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
463: test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
464: srcdir=$ac_confdir
465: if test ! -r $srcdir/$ac_unique_file; then
466: srcdir=..
467: fi
468: else
469: ac_srcdir_defaulted=no
470: fi
471: if test ! -r $srcdir/$ac_unique_file; then
472: if test "$ac_srcdir_defaulted" = yes; then
473: { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
474: else
475: { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
476: fi
477: fi
478: srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
479:
480: # Prefer explicitly selected file to automatically selected ones.
481: if test -z "$CONFIG_SITE"; then
482: if test "x$prefix" != xNONE; then
483: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
484: else
485: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
486: fi
487: fi
488: for ac_site_file in $CONFIG_SITE; do
489: if test -r "$ac_site_file"; then
490: echo "loading site script $ac_site_file"
491: . "$ac_site_file"
492: fi
493: done
494:
495: if test -r "$cache_file"; then
496: echo "loading cache $cache_file"
497: . $cache_file
498: else
499: echo "creating cache $cache_file"
500: > $cache_file
501: fi
502:
503: ac_ext=c
504: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
505: ac_cpp='$CPP $CPPFLAGS'
506: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
507: ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
508: cross_compiling=$ac_cv_prog_cc_cross
509:
510: if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
511: # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
512: if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
513: ac_n= ac_c='
514: ' ac_t=' '
515: else
516: ac_n=-n ac_c= ac_t=
517: fi
518: else
519: ac_n= ac_c='\c' ac_t=
520: fi
521:
522:
523:
524: ac_aux_dir=
525: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
526: if test -f $ac_dir/install-sh; then
527: ac_aux_dir=$ac_dir
528: ac_install_sh="$ac_aux_dir/install-sh -c"
529: break
530: elif test -f $ac_dir/install.sh; then
531: ac_aux_dir=$ac_dir
532: ac_install_sh="$ac_aux_dir/install.sh -c"
533: break
534: fi
535: done
536: if test -z "$ac_aux_dir"; then
537: { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
538: fi
539: ac_config_guess=$ac_aux_dir/config.guess
540: ac_config_sub=$ac_aux_dir/config.sub
541: ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
542:
543: # Find a good install program. We prefer a C program (faster),
544: # so one script is as good as another. But avoid the broken or
545: # incompatible versions:
546: # SysV /etc/install, /usr/sbin/install
547: # SunOS /usr/etc/install
548: # IRIX /sbin/install
549: # AIX /bin/install
550: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
551: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
552: # ./install, which can be erroneously created by make from ./install.sh.
553: echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
554: echo "configure:555: checking for a BSD compatible install" >&5
555: if test -z "$INSTALL"; then
556: if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
557: echo $ac_n "(cached) $ac_c" 1>&6
558: else
559: IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
560: for ac_dir in $PATH; do
561: # Account for people who put trailing slashes in PATH elements.
562: case "$ac_dir/" in
563: /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
564: *)
565: # OSF1 and SCO ODT 3.0 have their own names for install.
566: for ac_prog in ginstall installbsd scoinst install; do
567: if test -f $ac_dir/$ac_prog; then
568: if test $ac_prog = install &&
569: grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
570: # AIX install. It has an incompatible calling convention.
571: # OSF/1 installbsd also uses dspmsg, but is usable.
572: :
573: else
574: ac_cv_path_install="$ac_dir/$ac_prog -c"
575: break 2
576: fi
577: fi
578: done
579: ;;
580: esac
581: done
582: IFS="$ac_save_IFS"
583:
584: fi
585: if test "${ac_cv_path_install+set}" = set; then
586: INSTALL="$ac_cv_path_install"
587: else
588: # As a last resort, use the slow shell script. We don't cache a
589: # path for INSTALL within a source directory, because that will
590: # break other packages using the cache if that directory is
591: # removed, or if the path is relative.
592: INSTALL="$ac_install_sh"
593: fi
594: fi
595: echo "$ac_t""$INSTALL" 1>&6
596:
597: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
598: # It thinks the first close brace ends the variable substitution.
599: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
600:
601: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
602:
603:
604: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
605:
606: echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
607: echo "configure:608: checking whether build environment is sane" >&5
608: # Just in case
609: sleep 1
610: echo timestamp > conftestfile
611: # Do `set' in a subshell so we don't clobber the current shell's
612: # arguments. Must try -L first in case configure is actually a
613: # symlink; some systems play weird games with the mod time of symlinks
614: # (eg FreeBSD returns the mod time of the symlink's containing
615: # directory).
616: if (
617: set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
618: if test "$*" = "X"; then
619: # -L didn't work.
620: set X `ls -t $srcdir/configure conftestfile`
621: fi
622: if test "$*" != "X $srcdir/configure conftestfile" \
623: && test "$*" != "X conftestfile $srcdir/configure"; then
624:
625: # If neither matched, then we have a broken ls. This can happen
626: # if, for instance, CONFIG_SHELL is bash and it inherits a
627: # broken ls alias from the environment. This has actually
628: # happened. Such a system could not be considered "sane".
629: { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
630: alias in your environment" 1>&2; exit 1; }
631: fi
632:
633: test "$2" = conftestfile
634: )
635: then
636: # Ok.
637: :
638: else
639: { echo "configure: error: newly created file is older than distributed files!
640: Check your system clock" 1>&2; exit 1; }
641: fi
642: rm -f conftest*
643: echo "$ac_t""yes" 1>&6
644: if test "$program_transform_name" = s,x,x,; then
645: program_transform_name=
646: else
647: # Double any \ or $. echo might interpret backslashes.
648: cat <<\EOF_SED > conftestsed
649: s,\\,\\\\,g; s,\$,$$,g
650: EOF_SED
651: program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
652: rm -f conftestsed
653: fi
654: test "$program_prefix" != NONE &&
655: program_transform_name="s,^,${program_prefix},; $program_transform_name"
656: # Use a double $ so make ignores it.
657: test "$program_suffix" != NONE &&
658: program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
659:
660: # sed with no file args requires a program.
661: test "$program_transform_name" = "" && program_transform_name="s,x,x,"
662:
663: echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
664: echo "configure:665: checking whether ${MAKE-make} sets \${MAKE}" >&5
665: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
666: if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
667: echo $ac_n "(cached) $ac_c" 1>&6
668: else
669: cat > conftestmake <<\EOF
670: all:
671: @echo 'ac_maketemp="${MAKE}"'
672: EOF
673: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
674: eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
675: if test -n "$ac_maketemp"; then
676: eval ac_cv_prog_make_${ac_make}_set=yes
677: else
678: eval ac_cv_prog_make_${ac_make}_set=no
679: fi
680: rm -f conftestmake
681: fi
682: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
683: echo "$ac_t""yes" 1>&6
684: SET_MAKE=
685: else
686: echo "$ac_t""no" 1>&6
687: SET_MAKE="MAKE=${MAKE-make}"
688: fi
689:
690:
691: PACKAGE=gmp
692:
693: VERSION=`grep gmp_version $srcdir/version.c | sed 's/.*"\(.*\)".*/\1/'`
694:
695: if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
696: { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
697: fi
698: cat >> confdefs.h <<EOF
699: #define PACKAGE "$PACKAGE"
700: EOF
701:
702: cat >> confdefs.h <<EOF
703: #define VERSION "$VERSION"
704: EOF
705:
706:
707:
708: missing_dir=`cd $ac_aux_dir && pwd`
709: echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
710: echo "configure:711: checking for working aclocal" >&5
711: # Run test in a subshell; some versions of sh will print an error if
712: # an executable is not found, even if stderr is redirected.
713: # Redirect stdin to placate older versions of autoconf. Sigh.
714: if (aclocal --version) < /dev/null > /dev/null 2>&1; then
715: ACLOCAL=aclocal
716: echo "$ac_t""found" 1>&6
717: else
718: ACLOCAL="$missing_dir/missing aclocal"
719: echo "$ac_t""missing" 1>&6
720: fi
721:
722: echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
723: echo "configure:724: checking for working autoconf" >&5
724: # Run test in a subshell; some versions of sh will print an error if
725: # an executable is not found, even if stderr is redirected.
726: # Redirect stdin to placate older versions of autoconf. Sigh.
727: if (autoconf --version) < /dev/null > /dev/null 2>&1; then
728: AUTOCONF=autoconf
729: echo "$ac_t""found" 1>&6
730: else
731: AUTOCONF="$missing_dir/missing autoconf"
732: echo "$ac_t""missing" 1>&6
733: fi
734:
735: echo $ac_n "checking for working automake""... $ac_c" 1>&6
736: echo "configure:737: checking for working automake" >&5
737: # Run test in a subshell; some versions of sh will print an error if
738: # an executable is not found, even if stderr is redirected.
739: # Redirect stdin to placate older versions of autoconf. Sigh.
740: if (automake --version) < /dev/null > /dev/null 2>&1; then
741: AUTOMAKE=automake
742: echo "$ac_t""found" 1>&6
743: else
744: AUTOMAKE="$missing_dir/missing automake"
745: echo "$ac_t""missing" 1>&6
746: fi
747:
748: echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
749: echo "configure:750: checking for working autoheader" >&5
750: # Run test in a subshell; some versions of sh will print an error if
751: # an executable is not found, even if stderr is redirected.
752: # Redirect stdin to placate older versions of autoconf. Sigh.
753: if (autoheader --version) < /dev/null > /dev/null 2>&1; then
754: AUTOHEADER=autoheader
755: echo "$ac_t""found" 1>&6
756: else
757: AUTOHEADER="$missing_dir/missing autoheader"
758: echo "$ac_t""missing" 1>&6
759: fi
760:
761: echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
762: echo "configure:763: checking for working makeinfo" >&5
763: # Run test in a subshell; some versions of sh will print an error if
764: # an executable is not found, even if stderr is redirected.
765: # Redirect stdin to placate older versions of autoconf. Sigh.
766: if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
767: MAKEINFO=makeinfo
768: echo "$ac_t""found" 1>&6
769: else
770: MAKEINFO="$missing_dir/missing makeinfo"
771: echo "$ac_t""missing" 1>&6
772: fi
773:
774:
775:
776:
777: # Make sure we can run config.sub.
778: if $ac_config_sub sun4 >/dev/null 2>&1; then :
779: else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
780: fi
781:
782: echo $ac_n "checking host system type""... $ac_c" 1>&6
783: echo "configure:784: checking host system type" >&5
784:
785: host_alias=$host
786: case "$host_alias" in
787: NONE)
788: case $nonopt in
789: NONE)
790: if host_alias=`$ac_config_guess`; then :
791: else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
792: fi ;;
793: *) host_alias=$nonopt ;;
794: esac ;;
795: esac
796:
797: host=`$ac_config_sub $host_alias`
798: host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
799: host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
800: host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
801: echo "$ac_t""$host" 1>&6
802:
803: echo $ac_n "checking cached information""... $ac_c" 1>&6
804: echo "configure:805: checking cached information" >&5
805: hostcheck="$host"
806: if eval "test \"`echo '$''{'ac_cv_gmp_hostcheck'+set}'`\" = set"; then
807: echo $ac_n "(cached) $ac_c" 1>&6
808: else
809: ac_cv_gmp_hostcheck="$hostcheck"
810: fi
811:
812: if test "$ac_cv_gmp_hostcheck" != "$hostcheck"; then
813: echo "$ac_t""changed" 1>&6
814: echo "configure: warning: config.cache exists!" 1>&2
815: { echo "configure: error: you must do 'make distclean' first to compile for different host or different parameters." 1>&2; exit 1; }
816: else
817: echo "$ac_t""ok" 1>&6
818: fi
819:
820: # Extract the first word of "gcc", so it can be a program name with args.
821: set dummy gcc; ac_word=$2
822: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
823: echo "configure:824: checking for $ac_word" >&5
824: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
825: echo $ac_n "(cached) $ac_c" 1>&6
826: else
827: if test -n "$CC"; then
828: ac_cv_prog_CC="$CC" # Let the user override the test.
829: else
830: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
831: for ac_dir in $PATH; do
832: test -z "$ac_dir" && ac_dir=.
833: if test -f $ac_dir/$ac_word; then
834: ac_cv_prog_CC="gcc"
835: break
836: fi
837: done
838: IFS="$ac_save_ifs"
839: fi
840: fi
841: CC="$ac_cv_prog_CC"
842: if test -n "$CC"; then
843: echo "$ac_t""$CC" 1>&6
844: else
845: echo "$ac_t""no" 1>&6
846: fi
847:
848: if test -z "$CC"; then
849: # Extract the first word of "cc", so it can be a program name with args.
850: set dummy cc; ac_word=$2
851: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
852: echo "configure:853: checking for $ac_word" >&5
853: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
854: echo $ac_n "(cached) $ac_c" 1>&6
855: else
856: if test -n "$CC"; then
857: ac_cv_prog_CC="$CC" # Let the user override the test.
858: else
859: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
860: ac_prog_rejected=no
861: for ac_dir in $PATH; do
862: test -z "$ac_dir" && ac_dir=.
863: if test -f $ac_dir/$ac_word; then
864: if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
865: ac_prog_rejected=yes
866: continue
867: fi
868: ac_cv_prog_CC="cc"
869: break
870: fi
871: done
872: IFS="$ac_save_ifs"
873: if test $ac_prog_rejected = yes; then
874: # We found a bogon in the path, so make sure we never use it.
875: set dummy $ac_cv_prog_CC
876: shift
877: if test $# -gt 0; then
878: # We chose a different compiler from the bogus one.
879: # However, it has the same basename, so the bogon will be chosen
880: # first if we set CC to just the basename; use the full file name.
881: shift
882: set dummy "$ac_dir/$ac_word" "$@"
883: shift
884: ac_cv_prog_CC="$@"
885: fi
886: fi
887: fi
888: fi
889: CC="$ac_cv_prog_CC"
890: if test -n "$CC"; then
891: echo "$ac_t""$CC" 1>&6
892: else
893: echo "$ac_t""no" 1>&6
894: fi
895:
896: test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
897: fi
898:
899: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
900: echo "configure:901: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
901:
902: ac_ext=c
903: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
904: ac_cpp='$CPP $CPPFLAGS'
905: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
906: ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
907: cross_compiling=$ac_cv_prog_cc_cross
908:
909: cat > conftest.$ac_ext <<EOF
910: #line 911 "configure"
911: #include "confdefs.h"
912: main(){return(0);}
913: EOF
914: if { (eval echo configure:915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
915: ac_cv_prog_cc_works=yes
916: # If we can't run a trivial program, we are probably using a cross compiler.
917: if (./conftest; exit) 2>/dev/null; then
918: ac_cv_prog_cc_cross=no
919: else
920: ac_cv_prog_cc_cross=yes
921: fi
922: else
923: echo "configure: failed program was:" >&5
924: cat conftest.$ac_ext >&5
925: ac_cv_prog_cc_works=no
926: fi
927: rm -fr conftest*
928:
929: echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
930: if test $ac_cv_prog_cc_works = no; then
931: { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
932: fi
933: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
934: echo "configure:935: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
935: echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
936: cross_compiling=$ac_cv_prog_cc_cross
937:
938: echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
939: echo "configure:940: checking whether we are using GNU C" >&5
940: if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
941: echo $ac_n "(cached) $ac_c" 1>&6
942: else
943: cat > conftest.c <<EOF
944: #ifdef __GNUC__
945: yes;
946: #endif
947: EOF
948: if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
949: ac_cv_prog_gcc=yes
950: else
951: ac_cv_prog_gcc=no
952: fi
953: fi
954:
955: echo "$ac_t""$ac_cv_prog_gcc" 1>&6
956:
957: if test $ac_cv_prog_gcc = yes; then
958: GCC=yes
959: ac_test_CFLAGS="${CFLAGS+set}"
960: ac_save_CFLAGS="$CFLAGS"
961: CFLAGS=
962: echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
963: echo "configure:964: checking whether ${CC-cc} accepts -g" >&5
964: if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
965: echo $ac_n "(cached) $ac_c" 1>&6
966: else
967: echo 'void f(){}' > conftest.c
968: if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
969: ac_cv_prog_cc_g=yes
970: else
971: ac_cv_prog_cc_g=no
972: fi
973: rm -f conftest*
974:
975: fi
976:
977: echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
978: if test "$ac_test_CFLAGS" = set; then
979: CFLAGS="$ac_save_CFLAGS"
980: elif test $ac_cv_prog_cc_g = yes; then
981: CFLAGS="-g -O2"
982: else
983: CFLAGS="-O2"
984: fi
985: else
986: GCC=
987: test "${CFLAGS+set}" = set || CFLAGS="-g"
988: fi
989:
990: echo $ac_n "checking for working const""... $ac_c" 1>&6
991: echo "configure:992: checking for working const" >&5
992: if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
993: echo $ac_n "(cached) $ac_c" 1>&6
994: else
995: cat > conftest.$ac_ext <<EOF
996: #line 997 "configure"
997: #include "confdefs.h"
998:
999: int main() {
1000:
1001: /* Ultrix mips cc rejects this. */
1002: typedef int charset[2]; const charset x;
1003: /* SunOS 4.1.1 cc rejects this. */
1004: char const *const *ccp;
1005: char **p;
1006: /* NEC SVR4.0.2 mips cc rejects this. */
1007: struct point {int x, y;};
1008: static struct point const zero = {0,0};
1009: /* AIX XL C 1.02.0.0 rejects this.
1010: It does not let you subtract one const X* pointer from another in an arm
1011: of an if-expression whose if-part is not a constant expression */
1012: const char *g = "string";
1013: ccp = &g + (g ? g-g : 0);
1014: /* HPUX 7.0 cc rejects these. */
1015: ++ccp;
1016: p = (char**) ccp;
1017: ccp = (char const *const *) p;
1018: { /* SCO 3.2v4 cc rejects this. */
1019: char *t;
1020: char const *s = 0 ? (char *) 0 : (char const *) 0;
1021:
1022: *t++ = 0;
1023: }
1024: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1025: int x[] = {25, 17};
1026: const int *foo = &x[0];
1027: ++foo;
1028: }
1029: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1030: typedef const int *iptr;
1031: iptr p = 0;
1032: ++p;
1033: }
1034: { /* AIX XL C 1.02.0.0 rejects this saying
1035: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1036: struct s { int j; const int *ap[3]; };
1037: struct s *b; b->j = 5;
1038: }
1039: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1040: const int foo = 10;
1041: }
1042:
1043: ; return 0; }
1044: EOF
1045: if { (eval echo configure:1046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1046: rm -rf conftest*
1047: ac_cv_c_const=yes
1048: else
1049: echo "configure: failed program was:" >&5
1050: cat conftest.$ac_ext >&5
1051: rm -rf conftest*
1052: ac_cv_c_const=no
1053: fi
1054: rm -f conftest*
1055: fi
1056:
1057: echo "$ac_t""$ac_cv_c_const" 1>&6
1058: if test $ac_cv_c_const = no; then
1059: cat >> confdefs.h <<\EOF
1060: #define const
1061: EOF
1062:
1063: fi
1064:
1065: echo $ac_n "checking for inline""... $ac_c" 1>&6
1066: echo "configure:1067: checking for inline" >&5
1067: if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1068: echo $ac_n "(cached) $ac_c" 1>&6
1069: else
1070: ac_cv_c_inline=no
1071: for ac_kw in inline __inline__ __inline; do
1072: cat > conftest.$ac_ext <<EOF
1073: #line 1074 "configure"
1074: #include "confdefs.h"
1075:
1076: int main() {
1077: } $ac_kw foo() {
1078: ; return 0; }
1079: EOF
1080: if { (eval echo configure:1081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1081: rm -rf conftest*
1082: ac_cv_c_inline=$ac_kw; break
1083: else
1084: echo "configure: failed program was:" >&5
1085: cat conftest.$ac_ext >&5
1086: fi
1087: rm -f conftest*
1088: done
1089:
1090: fi
1091:
1092: echo "$ac_t""$ac_cv_c_inline" 1>&6
1093: case "$ac_cv_c_inline" in
1094: inline | yes) ;;
1095: no) cat >> confdefs.h <<\EOF
1096: #define inline
1097: EOF
1098: ;;
1099: *) cat >> confdefs.h <<EOF
1100: #define inline $ac_cv_c_inline
1101: EOF
1102: ;;
1103: esac
1104:
1105: echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1106: echo "configure:1107: checking how to run the C preprocessor" >&5
1107: # On Suns, sometimes $CPP names a directory.
1108: if test -n "$CPP" && test -d "$CPP"; then
1109: CPP=
1110: fi
1111: if test -z "$CPP"; then
1112: if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1113: echo $ac_n "(cached) $ac_c" 1>&6
1114: else
1115: # This must be in double quotes, not single quotes, because CPP may get
1116: # substituted into the Makefile and "${CC-cc}" will confuse make.
1117: CPP="${CC-cc} -E"
1118: # On the NeXT, cc -E runs the code through the compiler's parser,
1119: # not just through cpp.
1120: cat > conftest.$ac_ext <<EOF
1121: #line 1122 "configure"
1122: #include "confdefs.h"
1123: #include <assert.h>
1124: Syntax Error
1125: EOF
1126: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1127: { (eval echo configure:1128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1128: ac_err=`grep -v '^ *+' conftest.out`
1129: if test -z "$ac_err"; then
1130: :
1131: else
1132: echo "$ac_err" >&5
1133: echo "configure: failed program was:" >&5
1134: cat conftest.$ac_ext >&5
1135: rm -rf conftest*
1136: CPP="${CC-cc} -E -traditional-cpp"
1137: cat > conftest.$ac_ext <<EOF
1138: #line 1139 "configure"
1139: #include "confdefs.h"
1140: #include <assert.h>
1141: Syntax Error
1142: EOF
1143: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1144: { (eval echo configure:1145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1145: ac_err=`grep -v '^ *+' conftest.out`
1146: if test -z "$ac_err"; then
1147: :
1148: else
1149: echo "$ac_err" >&5
1150: echo "configure: failed program was:" >&5
1151: cat conftest.$ac_ext >&5
1152: rm -rf conftest*
1153: CPP=/lib/cpp
1154: fi
1155: rm -f conftest*
1156: fi
1157: rm -f conftest*
1158: ac_cv_prog_CPP="$CPP"
1159: fi
1160: CPP="$ac_cv_prog_CPP"
1161: else
1162: ac_cv_prog_CPP="$CPP"
1163: fi
1164: echo "$ac_t""$CPP" 1>&6
1165:
1166: echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1167: echo "configure:1168: checking for ANSI C header files" >&5
1168: if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1169: echo $ac_n "(cached) $ac_c" 1>&6
1170: else
1171: cat > conftest.$ac_ext <<EOF
1172: #line 1173 "configure"
1173: #include "confdefs.h"
1174: #include <stdlib.h>
1175: #include <stdarg.h>
1176: #include <string.h>
1177: #include <float.h>
1178: EOF
1179: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1180: { (eval echo configure:1181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1181: ac_err=`grep -v '^ *+' conftest.out`
1182: if test -z "$ac_err"; then
1183: rm -rf conftest*
1184: ac_cv_header_stdc=yes
1185: else
1186: echo "$ac_err" >&5
1187: echo "configure: failed program was:" >&5
1188: cat conftest.$ac_ext >&5
1189: rm -rf conftest*
1190: ac_cv_header_stdc=no
1191: fi
1192: rm -f conftest*
1193:
1194: if test $ac_cv_header_stdc = yes; then
1195: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1196: cat > conftest.$ac_ext <<EOF
1197: #line 1198 "configure"
1198: #include "confdefs.h"
1199: #include <string.h>
1200: EOF
1201: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1202: egrep "memchr" >/dev/null 2>&1; then
1203: :
1204: else
1205: rm -rf conftest*
1206: ac_cv_header_stdc=no
1207: fi
1208: rm -f conftest*
1209:
1210: fi
1211:
1212: if test $ac_cv_header_stdc = yes; then
1213: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1214: cat > conftest.$ac_ext <<EOF
1215: #line 1216 "configure"
1216: #include "confdefs.h"
1217: #include <stdlib.h>
1218: EOF
1219: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1220: egrep "free" >/dev/null 2>&1; then
1221: :
1222: else
1223: rm -rf conftest*
1224: ac_cv_header_stdc=no
1225: fi
1226: rm -f conftest*
1227:
1228: fi
1229:
1230: if test $ac_cv_header_stdc = yes; then
1231: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1232: if test "$cross_compiling" = yes; then
1233: :
1234: else
1235: cat > conftest.$ac_ext <<EOF
1236: #line 1237 "configure"
1237: #include "confdefs.h"
1238: #include <ctype.h>
1239: #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1240: #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1241: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1242: int main () { int i; for (i = 0; i < 256; i++)
1243: if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1244: exit (0); }
1245:
1246: EOF
1247: if { (eval echo configure:1248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1248: then
1249: :
1250: else
1251: echo "configure: failed program was:" >&5
1252: cat conftest.$ac_ext >&5
1253: rm -fr conftest*
1254: ac_cv_header_stdc=no
1255: fi
1256: rm -fr conftest*
1257: fi
1258:
1259: fi
1260: fi
1261:
1262: echo "$ac_t""$ac_cv_header_stdc" 1>&6
1263: if test $ac_cv_header_stdc = yes; then
1264: cat >> confdefs.h <<\EOF
1265: #define STDC_HEADERS 1
1266: EOF
1267:
1268: fi
1269:
1270: echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1271: echo "configure:1272: checking whether ln -s works" >&5
1272: if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1273: echo $ac_n "(cached) $ac_c" 1>&6
1274: else
1275: rm -f conftestdata
1276: if ln -s X conftestdata 2>/dev/null
1277: then
1278: rm -f conftestdata
1279: ac_cv_prog_LN_S="ln -s"
1280: else
1281: ac_cv_prog_LN_S=ln
1282: fi
1283: fi
1284: LN_S="$ac_cv_prog_LN_S"
1285: if test "$ac_cv_prog_LN_S" = "ln -s"; then
1286: echo "$ac_t""yes" 1>&6
1287: else
1288: echo "$ac_t""no" 1>&6
1289: fi
1290:
1291: # Extract the first word of "ranlib", so it can be a program name with args.
1292: set dummy ranlib; ac_word=$2
1293: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1294: echo "configure:1295: checking for $ac_word" >&5
1295: if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1296: echo $ac_n "(cached) $ac_c" 1>&6
1297: else
1298: if test -n "$RANLIB"; then
1299: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1300: else
1301: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1302: for ac_dir in $PATH; do
1303: test -z "$ac_dir" && ac_dir=.
1304: if test -f $ac_dir/$ac_word; then
1305: ac_cv_prog_RANLIB="ranlib"
1306: break
1307: fi
1308: done
1309: IFS="$ac_save_ifs"
1310: test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1311: fi
1312: fi
1313: RANLIB="$ac_cv_prog_RANLIB"
1314: if test -n "$RANLIB"; then
1315: echo "$ac_t""$RANLIB" 1>&6
1316: else
1317: echo "$ac_t""no" 1>&6
1318: fi
1319:
1320: echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1321: echo "configure:1322: checking whether ${MAKE-make} sets \${MAKE}" >&5
1322: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1323: if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1324: echo $ac_n "(cached) $ac_c" 1>&6
1325: else
1326: cat > conftestmake <<\EOF
1327: all:
1328: @echo 'ac_maketemp="${MAKE}"'
1329: EOF
1330: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1331: eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1332: if test -n "$ac_maketemp"; then
1333: eval ac_cv_prog_make_${ac_make}_set=yes
1334: else
1335: eval ac_cv_prog_make_${ac_make}_set=no
1336: fi
1337: rm -f conftestmake
1338: fi
1339: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1340: echo "$ac_t""yes" 1>&6
1341: SET_MAKE=
1342: else
1343: echo "$ac_t""no" 1>&6
1344: SET_MAKE="MAKE=${MAKE-make}"
1345: fi
1346:
1347: # Find a good install program. We prefer a C program (faster),
1348: # so one script is as good as another. But avoid the broken or
1349: # incompatible versions:
1350: # SysV /etc/install, /usr/sbin/install
1351: # SunOS /usr/etc/install
1352: # IRIX /sbin/install
1353: # AIX /bin/install
1354: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1355: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1356: # ./install, which can be erroneously created by make from ./install.sh.
1357: echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1358: echo "configure:1359: checking for a BSD compatible install" >&5
1359: if test -z "$INSTALL"; then
1360: if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1361: echo $ac_n "(cached) $ac_c" 1>&6
1362: else
1363: IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1364: for ac_dir in $PATH; do
1365: # Account for people who put trailing slashes in PATH elements.
1366: case "$ac_dir/" in
1367: /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1368: *)
1369: # OSF1 and SCO ODT 3.0 have their own names for install.
1370: for ac_prog in ginstall installbsd scoinst install; do
1371: if test -f $ac_dir/$ac_prog; then
1372: if test $ac_prog = install &&
1373: grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1374: # AIX install. It has an incompatible calling convention.
1375: # OSF/1 installbsd also uses dspmsg, but is usable.
1376: :
1377: else
1378: ac_cv_path_install="$ac_dir/$ac_prog -c"
1379: break 2
1380: fi
1381: fi
1382: done
1383: ;;
1384: esac
1385: done
1386: IFS="$ac_save_IFS"
1387:
1388: fi
1389: if test "${ac_cv_path_install+set}" = set; then
1390: INSTALL="$ac_cv_path_install"
1391: else
1392: # As a last resort, use the slow shell script. We don't cache a
1393: # path for INSTALL within a source directory, because that will
1394: # break other packages using the cache if that directory is
1395: # removed, or if the path is relative.
1396: INSTALL="$ac_install_sh"
1397: fi
1398: fi
1399: echo "$ac_t""$INSTALL" 1>&6
1400:
1401: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1402: # It thinks the first close brace ends the variable substitution.
1403: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1404:
1405: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1406:
1407: for ac_func in random
1408: do
1409: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1410: echo "configure:1411: checking for $ac_func" >&5
1411: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1412: echo $ac_n "(cached) $ac_c" 1>&6
1413: else
1414: cat > conftest.$ac_ext <<EOF
1415: #line 1416 "configure"
1416: #include "confdefs.h"
1417: /* System header to define __stub macros and hopefully few prototypes,
1418: which can conflict with char $ac_func(); below. */
1419: #include <assert.h>
1420: /* Override any gcc2 internal prototype to avoid an error. */
1421: /* We use char because int might match the return type of a gcc2
1422: builtin and then its argument prototype would still apply. */
1423: char $ac_func();
1424:
1425: int main() {
1426:
1427: /* The GNU C library defines this for functions which it implements
1428: to always fail with ENOSYS. Some functions are actually named
1429: something starting with __ and the normal name is an alias. */
1430: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1431: choke me
1432: #else
1433: $ac_func();
1434: #endif
1435:
1436: ; return 0; }
1437: EOF
1438: if { (eval echo configure:1439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1439: rm -rf conftest*
1440: eval "ac_cv_func_$ac_func=yes"
1441: else
1442: echo "configure: failed program was:" >&5
1443: cat conftest.$ac_ext >&5
1444: rm -rf conftest*
1445: eval "ac_cv_func_$ac_func=no"
1446: fi
1447: rm -f conftest*
1448: fi
1449:
1450: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1451: echo "$ac_t""yes" 1>&6
1452: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1453: cat >> confdefs.h <<EOF
1454: #define $ac_tr_func 1
1455: EOF
1456:
1457: else
1458: echo "$ac_t""no" 1>&6
1459: LIBOBJS="$LIBOBJS ${ac_func}.o"
1460: fi
1461: done
1462:
1463:
1464: if test "$program_transform_name" = s,x,x,; then
1465: program_transform_name=
1466: else
1467: # Double any \ or $. echo might interpret backslashes.
1468: cat <<\EOF_SED > conftestsed
1469: s,\\,\\\\,g; s,\$,$$,g
1470: EOF_SED
1471: program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1472: rm -f conftestsed
1473: fi
1474: test "$program_prefix" != NONE &&
1475: program_transform_name="s,^,${program_prefix},; $program_transform_name"
1476: # Use a double $ so make ignores it.
1477: test "$program_suffix" != NONE &&
1478: program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1479:
1480: # sed with no file args requires a program.
1481: test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1482:
1483: echo $ac_n "checking size of int""... $ac_c" 1>&6
1484: echo "configure:1485: checking size of int" >&5
1485: if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1486: echo $ac_n "(cached) $ac_c" 1>&6
1487: else
1488: if test "$cross_compiling" = yes; then
1489: ac_cv_sizeof_int=4
1490: else
1491: cat > conftest.$ac_ext <<EOF
1492: #line 1493 "configure"
1493: #include "confdefs.h"
1494: #include <stdio.h>
1495: main()
1496: {
1497: FILE *f=fopen("conftestval", "w");
1498: if (!f) exit(1);
1499: fprintf(f, "%d\n", sizeof(int));
1500: exit(0);
1501: }
1502: EOF
1503: if { (eval echo configure:1504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1504: then
1505: ac_cv_sizeof_int=`cat conftestval`
1506: else
1507: echo "configure: failed program was:" >&5
1508: cat conftest.$ac_ext >&5
1509: rm -fr conftest*
1510: ac_cv_sizeof_int=0
1511: fi
1512: rm -fr conftest*
1513: fi
1514:
1515: fi
1516: echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1517: cat >> confdefs.h <<EOF
1518: #define SIZEOF_INT $ac_cv_sizeof_int
1519: EOF
1520:
1521:
1522: # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1523: # for constant arguments. Useless!
1524: echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1525: echo "configure:1526: checking for working alloca.h" >&5
1526: if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1527: echo $ac_n "(cached) $ac_c" 1>&6
1528: else
1529: cat > conftest.$ac_ext <<EOF
1530: #line 1531 "configure"
1531: #include "confdefs.h"
1532: #include <alloca.h>
1533: int main() {
1534: char *p = alloca(2 * sizeof(int));
1535: ; return 0; }
1536: EOF
1537: if { (eval echo configure:1538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1538: rm -rf conftest*
1539: ac_cv_header_alloca_h=yes
1540: else
1541: echo "configure: failed program was:" >&5
1542: cat conftest.$ac_ext >&5
1543: rm -rf conftest*
1544: ac_cv_header_alloca_h=no
1545: fi
1546: rm -f conftest*
1547: fi
1548:
1549: echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1550: if test $ac_cv_header_alloca_h = yes; then
1551: cat >> confdefs.h <<\EOF
1552: #define HAVE_ALLOCA_H 1
1553: EOF
1554:
1555: fi
1556:
1557: echo $ac_n "checking for alloca""... $ac_c" 1>&6
1558: echo "configure:1559: checking for alloca" >&5
1559: if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1560: echo $ac_n "(cached) $ac_c" 1>&6
1561: else
1562: cat > conftest.$ac_ext <<EOF
1563: #line 1564 "configure"
1564: #include "confdefs.h"
1565:
1566: #ifdef __GNUC__
1567: # define alloca __builtin_alloca
1568: #else
1569: # if HAVE_ALLOCA_H
1570: # include <alloca.h>
1571: # else
1572: # ifdef _AIX
1573: #pragma alloca
1574: # else
1575: # ifndef alloca /* predefined by HP cc +Olibcalls */
1576: char *alloca ();
1577: # endif
1578: # endif
1579: # endif
1580: #endif
1581:
1582: int main() {
1583: char *p = (char *) alloca(1);
1584: ; return 0; }
1585: EOF
1586: if { (eval echo configure:1587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1587: rm -rf conftest*
1588: ac_cv_func_alloca_works=yes
1589: else
1590: echo "configure: failed program was:" >&5
1591: cat conftest.$ac_ext >&5
1592: rm -rf conftest*
1593: ac_cv_func_alloca_works=no
1594: fi
1595: rm -f conftest*
1596: fi
1597:
1598: echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1599: if test $ac_cv_func_alloca_works = yes; then
1600: cat >> confdefs.h <<\EOF
1601: #define HAVE_ALLOCA 1
1602: EOF
1603:
1604: fi
1605:
1606: if test $ac_cv_func_alloca_works = no; then
1607: # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1608: # that cause trouble. Some versions do not even contain alloca or
1609: # contain a buggy version. If you still want to use their alloca,
1610: # use ar to extract alloca.o from them instead of compiling alloca.c.
1611: ALLOCA=alloca.o
1612: cat >> confdefs.h <<\EOF
1613: #define C_ALLOCA 1
1614: EOF
1615:
1616:
1617: echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1618: echo "configure:1619: checking whether alloca needs Cray hooks" >&5
1619: if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1620: echo $ac_n "(cached) $ac_c" 1>&6
1621: else
1622: cat > conftest.$ac_ext <<EOF
1623: #line 1624 "configure"
1624: #include "confdefs.h"
1625: #if defined(CRAY) && ! defined(CRAY2)
1626: webecray
1627: #else
1628: wenotbecray
1629: #endif
1630:
1631: EOF
1632: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1633: egrep "webecray" >/dev/null 2>&1; then
1634: rm -rf conftest*
1635: ac_cv_os_cray=yes
1636: else
1637: rm -rf conftest*
1638: ac_cv_os_cray=no
1639: fi
1640: rm -f conftest*
1641:
1642: fi
1643:
1644: echo "$ac_t""$ac_cv_os_cray" 1>&6
1645: if test $ac_cv_os_cray = yes; then
1646: for ac_func in _getb67 GETB67 getb67; do
1647: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1648: echo "configure:1649: checking for $ac_func" >&5
1649: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1650: echo $ac_n "(cached) $ac_c" 1>&6
1651: else
1652: cat > conftest.$ac_ext <<EOF
1653: #line 1654 "configure"
1654: #include "confdefs.h"
1655: /* System header to define __stub macros and hopefully few prototypes,
1656: which can conflict with char $ac_func(); below. */
1657: #include <assert.h>
1658: /* Override any gcc2 internal prototype to avoid an error. */
1659: /* We use char because int might match the return type of a gcc2
1660: builtin and then its argument prototype would still apply. */
1661: char $ac_func();
1662:
1663: int main() {
1664:
1665: /* The GNU C library defines this for functions which it implements
1666: to always fail with ENOSYS. Some functions are actually named
1667: something starting with __ and the normal name is an alias. */
1668: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1669: choke me
1670: #else
1671: $ac_func();
1672: #endif
1673:
1674: ; return 0; }
1675: EOF
1676: if { (eval echo configure:1677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1677: rm -rf conftest*
1678: eval "ac_cv_func_$ac_func=yes"
1679: else
1680: echo "configure: failed program was:" >&5
1681: cat conftest.$ac_ext >&5
1682: rm -rf conftest*
1683: eval "ac_cv_func_$ac_func=no"
1684: fi
1685: rm -f conftest*
1686: fi
1687:
1688: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1689: echo "$ac_t""yes" 1>&6
1690: cat >> confdefs.h <<EOF
1691: #define CRAY_STACKSEG_END $ac_func
1692: EOF
1693:
1694: break
1695: else
1696: echo "$ac_t""no" 1>&6
1697: fi
1698:
1699: done
1700: fi
1701:
1702: echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1703: echo "configure:1704: checking stack direction for C alloca" >&5
1704: if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1705: echo $ac_n "(cached) $ac_c" 1>&6
1706: else
1707: if test "$cross_compiling" = yes; then
1708: ac_cv_c_stack_direction=0
1709: else
1710: cat > conftest.$ac_ext <<EOF
1711: #line 1712 "configure"
1712: #include "confdefs.h"
1713: find_stack_direction ()
1714: {
1715: static char *addr = 0;
1716: auto char dummy;
1717: if (addr == 0)
1718: {
1719: addr = &dummy;
1720: return find_stack_direction ();
1721: }
1722: else
1723: return (&dummy > addr) ? 1 : -1;
1724: }
1725: main ()
1726: {
1727: exit (find_stack_direction() < 0);
1728: }
1729: EOF
1730: if { (eval echo configure:1731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1731: then
1732: ac_cv_c_stack_direction=1
1733: else
1734: echo "configure: failed program was:" >&5
1735: cat conftest.$ac_ext >&5
1736: rm -fr conftest*
1737: ac_cv_c_stack_direction=-1
1738: fi
1739: rm -fr conftest*
1740: fi
1741:
1742: fi
1743:
1744: echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1745: cat >> confdefs.h <<EOF
1746: #define STACK_DIRECTION $ac_cv_c_stack_direction
1747: EOF
1748:
1749: fi
1750:
1751:
1752: # We need to kludge with autoconf quotes to use [...] syntax in regexps.
1753:
1754: case "$host" in
1755: sparc9*-*-* | sparc64*-*-* | ultrasparc*-*-*)
1756: #path="sparc64" ;; Don't use this until compilers are ready
1757: path="sparc32/v8 sparc"
1758: ;;
1759: sparc8*-*-* | microsparc*-*-*)
1760: path="sparc32/v8 sparc"
1761: GCC_CFLAGS="-mv8"
1762: ;;
1763: supersparc*-*-*)
1764: path="sparc32/v8/supersparc sparc32/v8 sparc"
1765: extra_functions="udiv"
1766: GCC_CFLAGS="-mv8 -DSUPERSPARC"
1767: ;;
1768: sparc*-*-*)
1769: path="sparc32"
1770: if test "$with_fp" = "no"
1771: then extra_functions="udiv_nfp"
1772: else extra_functions="udiv_fp"
1773: fi
1774: ;;
1775: hppa7000*-*-*)
1776: path="hppa/hppa1_1 hppa"
1777: extra_functions="udiv_qrnnd"
1778: echo $ac_n "checking whether assembler understands +DA1.1 option""... $ac_c" 1>&6
1779: echo "configure:1780: checking whether assembler understands +DA1.1 option" >&5
1780: OLD_CFLAGS=$CFLAGS
1781: CFLAGS="$CFLAGS -Wa,+DA1.1"
1782: cat > conftest.$ac_ext <<EOF
1783: #line 1784 "configure"
1784: #include "confdefs.h"
1785:
1786: int main() {
1787:
1788: ; return 0; }
1789: EOF
1790: if { (eval echo configure:1791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1791: rm -rf conftest*
1792: echo "$ac_t""yes" 1>&6
1793: SFLAGS="-Wa,+DA1.1"
1794: else
1795: echo "configure: failed program was:" >&5
1796: cat conftest.$ac_ext >&5
1797: rm -rf conftest*
1798: echo "$ac_t""no" 1>&6
1799: fi
1800: rm -f conftest*
1801: CFLAGS=$OLD_CFLAGS
1802:
1803: ;;
1804: hppa1.0*-*-*)
1805: path="hppa"
1806: extra_functions="udiv_qrnnd"
1807: ;;
1808: hppa*-*-*) # assume pa7100
1809: path="hppa/hppa1_1/pa7100 hppa/hppa1_1 hppa"
1810: extra_functions="udiv_qrnnd"
1811: echo $ac_n "checking whether assembler understands +DA1.1 option""... $ac_c" 1>&6
1812: echo "configure:1813: checking whether assembler understands +DA1.1 option" >&5
1813: OLD_CFLAGS=$CFLAGS
1814: CFLAGS="$CFLAGS -Wa,+DA1.1"
1815: cat > conftest.$ac_ext <<EOF
1816: #line 1817 "configure"
1817: #include "confdefs.h"
1818:
1819: int main() {
1820:
1821: ; return 0; }
1822: EOF
1823: if { (eval echo configure:1824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1824: rm -rf conftest*
1825: echo "$ac_t""yes" 1>&6
1826: SFLAGS="-Wa,+DA1.1"
1827: else
1828: echo "configure: failed program was:" >&5
1829: cat conftest.$ac_ext >&5
1830: rm -rf conftest*
1831: echo "$ac_t""no" 1>&6
1832: fi
1833: rm -f conftest*
1834: CFLAGS=$OLD_CFLAGS
1835:
1836: ;;
1837: cray2-cray-unicos* | [xy]mp-cray-unicos* | [ctj]90-cray-unicos* | t3e-*-*)
1838: path="cray"
1839: ;;
1840: alphaev5-*-*)
1841: path="alpha/ev5 alpha"
1842: extra_functions="udiv_qrnnd"
1843: ;;
1844: alpha*-*-*)
1845: path="alpha"
1846: extra_functions="udiv_qrnnd"
1847: ;;
1848: am29000*-*-*)
1849: path="am29000"
1850: ;;
1851: a29k*-*-*)
1852: path="am29000"
1853: ;;
1854: i[3456]86*-*-*elf | pentium-*-*elf) # 386/486 running BSD or Linux with ELF
1855: path="x86"
1856: syntax_alternatives="$syntax_alternatives ELF_SYNTAX BSD_SYNTAX INTEL_SYNTAX"
1857: ;;
1858: i[34]86*-*-linuxaout* | i[34]86*-*-linuxoldld* | \
1859: i[34]86*-*-*bsd*) # 386/486 running BSD or Linux with a.out
1860: path="x86"
1861: x86_broken_align=yes
1862: syntax_alternatives="$syntax_alternatives BSD_SYNTAX"
1863: ;;
1864: i[56]86*-*-linuxaout* | pentium-*-linuxaout* | pentiumpro-*-linuxaout* | \
1865: i[56]86*-*-linuxoldld* | pentium-*-linuxoldld* | pentiumpro-*-linuxoldld* | \
1866: i[56]86*-*-*bsd* | pentium-*-*bsd* | pentiumpro-*-*bsd*)
1867: path="x86/pentium x86"
1868: x86_broken_align=yes
1869: syntax_alternatives="$syntax_alternatives BSD_SYNTAX"
1870: ;;
1871: i[34]86*-*-*)
1872: path="x86"
1873: syntax_alternatives="$syntax_alternatives ELF_SYNTAX BSD_SYNTAX INTEL_SYNTAX"
1874: ;;
1875: i[56]86*-*-* | pentium-*-* | pentiumpro-*-*)
1876: path="x86/pentium x86"
1877: syntax_alternatives="$syntax_alternatives ELF_SYNTAX BSD_SYNTAX INTEL_SYNTAX"
1878: ;;
1879:
1880: # Motorola 68k configurations. Let m68k mean 68020-68040.
1881: # mc68000 or mc68060 configurations need to be specified explicitly
1882: m680[234]0*-*-linuxaout* | m68k*-*-linuxaout*)
1883: path="m68k/mc68020 m68k"
1884: syntax_alternatives="$syntax_alternatives MIT_SYNTAX"
1885: ;;
1886: m68060*-*-linuxaout*)
1887: path="m68k"
1888: syntax_alternatives="$syntax_alternatives MIT_SYNTAX"
1889: ;;
1890: m680[234]0*-*-linux* | m68k*-*-linux*)
1891: path="m68k/mc68020 m68k"
1892: syntax_alternatives="$syntax_alternatives ELF_SYNTAX"
1893: ;;
1894: m68060*-*-linux*)
1895: path="m68k"
1896: syntax_alternatives="$syntax_alternatives ELF_SYNTAX"
1897: ;;
1898: m68000*-*-* | m68060*-*-*)
1899: path="m68k/mc68000"
1900: syntax_alternatives="$syntax_alternatives MIT_SYNTAX"
1901: ;;
1902: m680[234]0*-*-* | m68k*-*-*)
1903: path="m68k/mc68020 m68k"
1904: syntax_alternatives="$syntax_alternatives MIT_SYNTAX ELF_SYNTAX SONY_SYNTAX MOTOROLA_SYNTAX"
1905: ;;
1906:
1907: i960*-*-*)
1908: path="i960"
1909: ;;
1910: m88k*-*-* | m88k*-*-*)
1911: path="m88k"
1912: ;;
1913: m88110*-*-*)
1914: path="m88k/mc88110 m88k"
1915: ;;
1916: ns32k*-*-*)
1917: path="n32k"
1918: ;;
1919:
1920: # Power/PowerPC platforms
1921: ppc601-*-aix[456789]* | ppc601-*-aix3.2.[456789])
1922: path="power powerpc32"
1923: SFLAGS="-Wa,-mppc"
1924: ;;
1925: ppc601-*-*)
1926: path="power powerpc32"
1927: ;;
1928: ppc620-*-* | powerpc64*-*-*)
1929: path="powerpc64"
1930: ;;
1931: ppc60[234]*-*-aix[456789]* | ppc60[234]*-*-aix3.2.[456789] | \
1932: powerpc*-*-aix[456789]* | powerpc*-*-aix3.2.[456789])
1933: path="powerpc32"
1934: SFLAGS="-Wa,-mppc"
1935: ;;
1936: ppc60[234]*-*-* | powerpc*-*-*)
1937: path="powerpc32"
1938: ;;
1939: rs6000-*-aix[456789]* | rs6000-*-aix3.2.[456789]*)
1940: path="power"
1941: extra_functions="udiv_w_sdiv"
1942: SFLAGS="-Wa,-mpwr"
1943: ;;
1944: rs6000-*-* | power-*-* | power2-*-*)
1945: path="power"
1946: extra_functions="udiv_w_sdiv"
1947: ;;
1948:
1949: pyramid-*-*)
1950: path="pyr"
1951: ;;
1952: sh-*-*)
1953: path="sh"
1954: ;;
1955: sh2-*-*)
1956: path="sh/sh2 sh"
1957: ;;
1958: mips[34]*-*-*)
1959: path="mips3"
1960: ;;
1961: mips*-*-irix6*)
1962: path="mips3"
1963: ;;
1964: mips*-*-*)
1965: path="mips2"
1966: ;;
1967: vax*-*-*)
1968: path="vax"
1969: extra_functions="udiv_w_sdiv"
1970: ;;
1971: z8000x*-*-*)
1972: path="z8000x"
1973: extra_functions="udiv_w_sdiv"
1974: ;;
1975: z8000*-*-*)
1976: path="z8000"
1977: extra_functions="udiv_w_sdiv"
1978: ;;
1979: clipper*-*-*)
1980: path="clipper"
1981: ;;
1982: *-*-*)
1983: ;;
1984: esac
1985:
1986: # System specific settings
1987:
1988: case "$host" in
1989: *-*-solaris*)
1990: # If not using gcc add -Xs option to cpp so we can process assembler files
1991: if test -z "$GCC"; then
1992: CPP="$CPP -Xs"
1993: fi
1994: esac
1995:
1996: # Add gcc-specific flags if using gcc
1997: if test -n "$GCC"; then
1998: CFLAGS="$CFLAGS $GCC_CFLAGS"
1999: fi
2000:
2001: # Check X86_BROKEN_ALIGN
2002: if test -n "$x86_broken_align"; then
2003: cat >> confdefs.h <<\EOF
2004: #define X86_BROKEN_ALIGN 1
2005: EOF
2006:
2007: fi
2008:
2009: # Check whether an underscore gets prepended in names
2010: echo $ac_n "checking whether underscore gets prepended in C function names""... $ac_c" 1>&6
2011: echo "configure:2012: checking whether underscore gets prepended in C function names" >&5
2012: if eval "test \"`echo '$''{'ac_cv_c_underscore'+set}'`\" = set"; then
2013: echo $ac_n "(cached) $ac_c" 1>&6
2014: else
2015:
2016: cat > conftest.c <<EOF
2017: int foobarzappafunction() { return 0; }
2018: EOF
2019: ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.c 1>/dev/null
2020: if test -n "`nm conftest.o | grep _foobarzappafunction`" 2>/dev/null; then
2021: ac_cv_c_underscore=yes
2022: elif test -n "`nm conftest.o | grep foobarzappafunction`" 2>/dev/null; then
2023: ac_cv_c_underscore=no
2024: else
2025: echo "configure: warning: CHECK FAILED" 1>&2
2026: path=""
2027: fi
2028: rm -f conftest.o conftest.c
2029: fi
2030:
2031: echo "$ac_t""$ac_cv_c_underscore" 1>&6
2032: if test "$ac_cv_c_underscore" = "yes"; then
2033: cat >> confdefs.h <<\EOF
2034: #define C_UNDERSCORE 1
2035: EOF
2036:
2037: echo "Underscores are prepended in function names." >&5
2038: else
2039: echo "Underscores are not prepended in function names." >&5
2040: fi
2041:
2042: # Check for asm files
2043: functions="${extra_functions} inlines add_n addmul_1 cmp divmod_1
2044: divrem divrem_1 dump lshift mod_1 mul mul_1 mul_n random2 rshift sqrtrem
2045: sub_n submul_1 get_str set_str scan0 scan1 popcount hamdist gcd_1
2046: pre_mod_1 perfsqr bdivmod gcd gcdext"
2047: path="$path generic"
2048: if test '!' -d mpn; then mkdir mpn; fi
2049:
2050: echo $ac_n "checking asm code""... $ac_c" 1>&6
2051: echo "configure:2052: checking asm code" >&5
2052: if eval "test \"`echo '$''{'ac_cv_gmp_asm_status'+set}'`\" = set"; then
2053: echo $ac_n "(cached) $ac_c" 1>&6
2054: else
2055:
2056: asm_status=""
2057: asm_files=""
2058: asm_links=""
2059: asm_objs=""
2060: remaining_functions=""
2061: for fn in $functions ; do
2062: found=no
2063: for dir in $path ; do
2064: if test -f $srcdir/mpn/$dir/$fn.S ; then
2065: if test -f mpn/../$srcdir/mpn/$dir/$fn.S; then
2066: asm_files="$asm_files ../$srcdir/mpn/$dir/$fn.S"
2067: else
2068: asm_files="$asm_files $srcdir/mpn/$dir/$fn.S"
2069: fi
2070: asm_links="$asm_links $fn.S"
2071: asm_objs="$asm_objs $fn.o"
2072: found=yes
2073: break
2074: elif test -f $srcdir/mpn/$dir/$fn.s ; then
2075: if test -f mpn/../$srcdir/mpn/$dir/$fn.s; then
2076: asm_files="$asm_files ../$srcdir/mpn/$dir/$fn.s"
2077: else
2078: asm_files="$asm_files $srcdir/mpn/$dir/$fn.s"
2079: fi
2080: asm_links="$asm_links $fn.s"
2081: asm_objs="$asm_objs $fn.o"
2082: found=yes
2083: break
2084: fi
2085: done
2086: if test "$found" = "no"; then
2087: remaining_functions="$remaining_functions $fn"
2088: fi
2089: done
2090:
2091: # Check whether --enable-asm or --disable-asm was given.
2092: if test "${enable_asm+set}" = set; then
2093: enableval="$enable_asm"
2094: case "$enableval" in
2095: no)
2096: cat >> confdefs.h <<\EOF
2097: #define NO_ASM 1
2098: EOF
2099:
2100: asm_files=""
2101: asm_objs=""
2102: asm_links=""
2103: asm_status="disabled"
2104: path="generic"
2105: remaining_functions="$functions"
2106: ;;
2107: esac
2108: fi
2109:
2110:
2111: if test -z "$asm_files"; then
2112: if test -z "$asm_status"; then
2113: asm_status="no"
2114: fi
2115: else
2116: # found asm files; validate them and determine correct syntax
2117:
2118: syntax_h=""
2119: for dir in $path; do
2120: if test -f $srcdir/mpn/$dir/syntax.h; then
2121: if test -f mpn/../$srcdir/mpn/$dir/syntax.h; then
2122: syntax_h="../$srcdir/mpn/$dir/syntax.h"
2123: else
2124: syntax_h="$srcdir/mpn/$dir/syntax.h"
2125: fi
2126: break
2127: fi
2128: done
2129:
2130: syntax_alternatives="$syntax_alternatives default"
2131:
2132: echo "asm_files: $asm_files" >&5
2133: echo "asm_links: $asm_links" >&5
2134: echo "asm_objs: $asm_objs" >&5
2135: echo "syntax_alternatives: $syntax_alternatives" >&5
2136:
2137: (cd mpn; rm -f $asm_links; $LN_S $asm_files .)
2138:
2139: asm_ok=no
2140: for asm_syntax in $syntax_alternatives; do
2141: if test "$asm_syntax" = "default"; then
2142: rm -f mpn/asm-syntax.h
2143: else
2144: echo "#define $asm_syntax" >mpn/asm-syntax.h
2145: echo "#include \"$syntax_h\"" >>mpn/asm-syntax.h
2146: fi
2147: echo "testing syntax $asm_syntax" >&5
2148:
2149: # Check if the found asm files will compile
2150: asm_ok=yes
2151: for file in $asm_links; do
2152: s=`echo $file | sed 's/[sS]$/s/'`
2153: o=`echo $file | sed 's/[sS]$/o/'`
2154: if test -d mpn/../$srcdir/mpn; then
2155: mpnincl="../$srcdir/mpn"
2156: else
2157: mpnincl="$srcdir/mpn"
2158: fi
2159: if test "$s" = "$file"; then
2160: echo "${CC-cc} -c -I$mpnincl -I. -I.. $CFLAGS $SFLAGS $file" >&5
2161: (cd mpn; ${CC-cc} -c -I$mpnincl -I. -I.. $CFLAGS $SFLAGS $file >../conftemp.$$ 2>&1 )
2162: else
2163: echo "$CPP $SFLAGS -I$mpnincl -I. -I.. $CFLAGS $file | grep -v '^#' >tmp-$s; ${CC-cc} -c $CFLAGS $SFLAGS tmp-$s; rm -f tmp-$s; mv tmp-$o $o" >&5
2164: (cd mpn; $CPP $SFLAGS -I$mpnincl -I. -I.. $CFLAGS $file | grep -v '^#' >tmp-$s; ${CC-cc} -c $CFLAGS $SFLAGS tmp-$s; rm -f tmp-$s; mv tmp-$o $o >../conftemp.$$ 2>&1)
2165: fi
2166: if test "$?" != 0 || test -n "`cat conftemp.$$`"; then
2167: asm_ok=no
2168: fi
2169: cat conftemp.$$ >&5
2170: done
2171:
2172: rm -f conftemp.$$ mpn/asm-syntax.h
2173: if test "$asm_ok" = "yes"; then
2174: asm_status="ok"
2175: echo "Chose $asm_syntax." >&5
2176: break
2177: fi
2178: done
2179:
2180: (cd mpn; rm -f $asm_objs $asm_links)
2181: if test "$asm_ok" = "no"; then
2182: asm_files=""
2183: asm_objs=""
2184: asm_links=""
2185: asm_status="FAILED"
2186: echo "Asm fails to compile; chose no asm." >&5
2187: echo "$CC -v" >&5
2188: $CC -v >&5 2>&5
2189: echo "$CC -V" >&5
2190: $CC -V >&5 2>&5
2191: remaining_functions="$functions"
2192: fi
2193: fi
2194: ac_cv_gmp_asm_status="$asm_status"
2195:
2196: fi
2197:
2198: echo "$ac_t""$ac_cv_gmp_asm_status" 1>&6
2199: if test "$ac_cv_gmp_asm_status" = "FAILED"; then
2200: echo "configure: warning: Assembly language optimizations failed and were disabled." 1>&2
2201: echo "configure: warning: Please mail gmp-2.0.2-ssh-2/config.log to ssh-bugs@cs.hut.fi." 1>&2
2202: fi
2203:
2204: echo $ac_n "checking asm links""... $ac_c" 1>&6
2205: echo "configure:2206: checking asm links" >&5
2206: if eval "test \"`echo '$''{'ac_cv_gmp_asm_links'+set}'`\" = set"; then
2207: echo $ac_n "(cached) $ac_c" 1>&6
2208: else
2209: ac_cv_gmp_asm_links="$asm_links"
2210: fi
2211:
2212: echo "$ac_t""done" 1>&6
2213:
2214: echo $ac_n "checking asm sources""... $ac_c" 1>&6
2215: echo "configure:2216: checking asm sources" >&5
2216: if eval "test \"`echo '$''{'ac_cv_gmp_asm_files'+set}'`\" = set"; then
2217: echo $ac_n "(cached) $ac_c" 1>&6
2218: else
2219: ac_cv_gmp_asm_files="$asm_files"
2220: fi
2221:
2222: echo "$ac_t""done" 1>&6
2223:
2224: echo $ac_n "checking asm objects""... $ac_c" 1>&6
2225: echo "configure:2226: checking asm objects" >&5
2226: if eval "test \"`echo '$''{'ac_cv_gmp_asm_objs'+set}'`\" = set"; then
2227: echo $ac_n "(cached) $ac_c" 1>&6
2228: else
2229: ac_cv_gmp_asm_objs="$asm_objs"
2230: fi
2231:
2232: echo "$ac_t""done" 1>&6
2233:
2234: echo $ac_n "checking asm syntax""... $ac_c" 1>&6
2235: echo "configure:2236: checking asm syntax" >&5
2236: if eval "test \"`echo '$''{'ac_cv_gmp_asm_syntax'+set}'`\" = set"; then
2237: echo $ac_n "(cached) $ac_c" 1>&6
2238: else
2239: ac_cv_gmp_asm_syntax="$asm_syntax"
2240: fi
2241:
2242: echo "$ac_t""$ac_cv_gmp_asm_syntax" 1>&6
2243: echo $ac_n "checking asm syntax header""... $ac_c" 1>&6
2244: echo "configure:2245: checking asm syntax header" >&5
2245: if eval "test \"`echo '$''{'ac_cv_gmp_asm_syntax_h'+set}'`\" = set"; then
2246: echo $ac_n "(cached) $ac_c" 1>&6
2247: else
2248: ac_cv_gmp_asm_syntax_h="$syntax_h"
2249: fi
2250:
2251: echo "$ac_t""$ac_cv_gmp_asm_syntax_h" 1>&6
2252:
2253: echo $ac_n "checking for gmp-mparam.h""... $ac_c" 1>&6
2254: echo "configure:2255: checking for gmp-mparam.h" >&5
2255: if eval "test \"`echo '$''{'ac_cv_gmp_mparam'+set}'`\" = set"; then
2256: echo $ac_n "(cached) $ac_c" 1>&6
2257: else
2258:
2259: ac_cv_gmp_mparam="NONE"
2260: for dir in $path; do
2261: if test -f $srcdir/mpn/$dir/gmp-mparam.h; then
2262: if test -f mpn/../$srcdir/mpn/$dir/gmp-mparam.h; then
2263: ac_cv_gmp_mparam="../$srcdir/mpn/$dir/gmp-mparam.h"
2264: else
2265: ac_cv_gmp_mparam="$srcdir/mpn/$dir/gmp-mparam.h"
2266: fi
2267: break
2268: fi
2269: done
2270: if test "$ac_cv_gmp_mparam" = NONE; then
2271: { echo "configure: error: gmp-mparam.h not found" 1>&2; exit 1; }
2272: fi
2273: fi
2274:
2275: echo "$ac_t""$ac_cv_gmp_mparam" 1>&6
2276:
2277: echo $ac_n "checking other objs""... $ac_c" 1>&6
2278: echo "configure:2279: checking other objs" >&5
2279: if eval "test \"`echo '$''{'ac_cv_gmp_other_objs'+set}'`\" = set"; then
2280: echo $ac_n "(cached) $ac_c" 1>&6
2281: else
2282:
2283: other_objs=""
2284: other_files=""
2285: other_links=""
2286: for fn in $remaining_functions; do
2287: for dir in $path; do
2288: if test -f $srcdir/mpn/$dir/$fn.c; then
2289: if test -f mpn/../$srcdir/mpn/$dir/$fn.c; then
2290: other_files="$other_files ../$srcdir/mpn/$dir/$fn.c"
2291: else
2292: other_files="$other_files $srcdir/mpn/$dir/$fn.c"
2293: fi
2294: other_links="$other_links $fn.c"
2295: other_objs="$other_objs $fn.o"
2296: break
2297: fi
2298: done
2299: done
2300: ac_cv_gmp_other_objs="$other_objs"
2301: fi
2302:
2303: echo "$ac_t""done" 1>&6
2304:
2305: echo $ac_n "checking other sources""... $ac_c" 1>&6
2306: echo "configure:2307: checking other sources" >&5
2307: if eval "test \"`echo '$''{'ac_cv_gmp_other_files'+set}'`\" = set"; then
2308: echo $ac_n "(cached) $ac_c" 1>&6
2309: else
2310: ac_cv_gmp_other_files="$other_files"
2311: fi
2312:
2313: echo "$ac_t""done" 1>&6
2314:
2315: echo $ac_n "checking other links""... $ac_c" 1>&6
2316: echo "configure:2317: checking other links" >&5
2317: if eval "test \"`echo '$''{'ac_cv_gmp_other_links'+set}'`\" = set"; then
2318: echo $ac_n "(cached) $ac_c" 1>&6
2319: else
2320: ac_cv_gmp_other_links="$other_links"
2321: fi
2322:
2323: echo "$ac_t""done" 1>&6
2324:
2325: MPN_DISTCLEANFILES="$ac_cv_gmp_asm_links $ac_cv_gmp_other_links gmp-mparam.h asm-syntax.h conftest.c"
2326: (cd mpn; rm -f $MPN_DISTCLEANFILES)
2327: (cd mpn; $LN_S $ac_cv_gmp_asm_files $ac_cv_gmp_other_files .)
2328: (cd mpn; $LN_S $ac_cv_gmp_mparam .)
2329:
2330: if test "$ac_cv_gmp_asm_syntax" != "default"; then
2331: echo "#define $ac_cv_gmp_asm_syntax" >mpn/asm-syntax.h
2332: echo "#include \"$ac_cv_gmp_asm_syntax_h\"" >>mpn/asm-syntax.h
2333: fi
2334:
2335: MPN_OBJS="$ac_cv_gmp_asm_objs $ac_cv_gmp_other_objs"
2336:
2337: echo $ac_n "checking links to mpz sources in mpbsd""... $ac_c" 1>&6
2338: echo "configure:2339: checking links to mpz sources in mpbsd" >&5
2339: mpz_files="add.c cmp.c dmincl.c gcd.c mul.c pow_ui.c powm.c sqrtrem.c sub.c"
2340: if test '!' -d mpbsd; then mkdir mpbsd; fi
2341: for file in $mpz_files; do
2342: rm -f mpbsd/$file
2343: if test -f mpbsd/../$srcdir/mpz/$file; then
2344: (cd mpbsd; $LN_S ../$srcdir/mpz/$file .)
2345: else
2346: (cd mpbsd; $LN_S $srcdir/mpz/$file .)
2347: fi
2348: done
2349: echo "$ac_t""done" 1>&6
2350:
2351:
2352:
2353:
2354:
2355:
2356:
2357: trap '' 1 2 15
2358: cat > confcache <<\EOF
2359: # This file is a shell script that caches the results of configure
2360: # tests run on this system so they can be shared between configure
2361: # scripts and configure runs. It is not useful on other systems.
2362: # If it contains results you don't want to keep, you may remove or edit it.
2363: #
2364: # By default, configure uses ./config.cache as the cache file,
2365: # creating it if it does not exist already. You can give configure
2366: # the --cache-file=FILE option to use a different cache file; that is
2367: # what configure does when it calls configure scripts in
2368: # subdirectories, so they share the cache.
2369: # Giving --cache-file=/dev/null disables caching, for debugging configure.
2370: # config.status only pays attention to the cache file if you give it the
2371: # --recheck option to rerun configure.
2372: #
2373: EOF
2374: # The following way of writing the cache mishandles newlines in values,
2375: # but we know of no workaround that is simple, portable, and efficient.
2376: # So, don't put newlines in cache variables' values.
2377: # Ultrix sh set writes to stderr and can't be redirected directly,
2378: # and sets the high bit in the cache file unless we assign to the vars.
2379: (set) 2>&1 |
2380: case `(ac_space=' '; set) 2>&1` in
2381: *ac_space=\ *)
2382: # `set' does not quote correctly, so add quotes (double-quote substitution
2383: # turns \\\\ into \\, and sed turns \\ into \).
2384: sed -n \
2385: -e "s/'/'\\\\''/g" \
2386: -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2387: ;;
2388: *)
2389: # `set' quotes correctly as required by POSIX, so do not add quotes.
2390: sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2391: ;;
2392: esac >> confcache
2393: if cmp -s $cache_file confcache; then
2394: :
2395: else
2396: if test -w $cache_file; then
2397: echo "updating cache $cache_file"
2398: cat confcache > $cache_file
2399: else
2400: echo "not updating unwritable cache $cache_file"
2401: fi
2402: fi
2403: rm -f confcache
2404:
2405: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2406:
2407: test "x$prefix" = xNONE && prefix=$ac_default_prefix
2408: # Let make expand exec_prefix.
2409: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2410:
2411: # Any assignment to VPATH causes Sun make to only execute
2412: # the first set of double-colon rules, so remove it if not needed.
2413: # If there is a colon in the path, we need to keep it.
2414: if test "x$srcdir" = x.; then
2415: ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2416: fi
2417:
2418: trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2419:
2420: # Transform confdefs.h into DEFS.
2421: # Protect against shell expansion while executing Makefile rules.
2422: # Protect against Makefile macro expansion.
2423: cat > conftest.defs <<\EOF
2424: s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2425: s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2426: s%\[%\\&%g
2427: s%\]%\\&%g
2428: s%\$%$$%g
2429: EOF
2430: DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2431: rm -f conftest.defs
2432:
2433:
2434: # Without the "./", some shells look in PATH for config.status.
2435: : ${CONFIG_STATUS=./config.status}
2436:
2437: echo creating $CONFIG_STATUS
2438: rm -f $CONFIG_STATUS
2439: cat > $CONFIG_STATUS <<EOF
2440: #! /bin/sh
2441: # Generated automatically by configure.
2442: # Run this file to recreate the current configuration.
2443: # This directory was configured as follows,
2444: # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2445: #
2446: # $0 $ac_configure_args
2447: #
2448: # Compiler output produced by configure, useful for debugging
2449: # configure, is in ./config.log if it exists.
2450:
2451: ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2452: for ac_option
2453: do
2454: case "\$ac_option" in
2455: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2456: echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2457: exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2458: -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2459: echo "$CONFIG_STATUS generated by autoconf version 2.12"
2460: exit 0 ;;
2461: -help | --help | --hel | --he | --h)
2462: echo "\$ac_cs_usage"; exit 0 ;;
2463: *) echo "\$ac_cs_usage"; exit 1 ;;
2464: esac
2465: done
2466:
2467: ac_given_srcdir=$srcdir
2468: ac_given_INSTALL="$INSTALL"
2469:
2470: trap 'rm -fr `echo "Makefile demos/Makefile mpbsd/Makefile mpf/Makefile mpf/tests/Makefile mpn/Makefile mpn/tests/Makefile mpq/Makefile mpq/tests/Makefile mpz/Makefile mpz/tests/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2471: EOF
2472: cat >> $CONFIG_STATUS <<EOF
2473:
2474: # Protect against being on the right side of a sed subst in config.status.
2475: sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2476: s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2477: $ac_vpsub
2478: $extrasub
2479: s%@CFLAGS@%$CFLAGS%g
2480: s%@CPPFLAGS@%$CPPFLAGS%g
2481: s%@CXXFLAGS@%$CXXFLAGS%g
2482: s%@DEFS@%$DEFS%g
2483: s%@LDFLAGS@%$LDFLAGS%g
2484: s%@LIBS@%$LIBS%g
2485: s%@exec_prefix@%$exec_prefix%g
2486: s%@prefix@%$prefix%g
2487: s%@program_transform_name@%$program_transform_name%g
2488: s%@bindir@%$bindir%g
2489: s%@sbindir@%$sbindir%g
2490: s%@libexecdir@%$libexecdir%g
2491: s%@datadir@%$datadir%g
2492: s%@sysconfdir@%$sysconfdir%g
2493: s%@sharedstatedir@%$sharedstatedir%g
2494: s%@localstatedir@%$localstatedir%g
2495: s%@libdir@%$libdir%g
2496: s%@includedir@%$includedir%g
2497: s%@oldincludedir@%$oldincludedir%g
2498: s%@infodir@%$infodir%g
2499: s%@mandir@%$mandir%g
2500: s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2501: s%@INSTALL_DATA@%$INSTALL_DATA%g
2502: s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2503: s%@PACKAGE@%$PACKAGE%g
2504: s%@VERSION@%$VERSION%g
2505: s%@ACLOCAL@%$ACLOCAL%g
2506: s%@AUTOCONF@%$AUTOCONF%g
2507: s%@AUTOMAKE@%$AUTOMAKE%g
2508: s%@AUTOHEADER@%$AUTOHEADER%g
2509: s%@MAKEINFO@%$MAKEINFO%g
2510: s%@SET_MAKE@%$SET_MAKE%g
2511: s%@host@%$host%g
2512: s%@host_alias@%$host_alias%g
2513: s%@host_cpu@%$host_cpu%g
2514: s%@host_vendor@%$host_vendor%g
2515: s%@host_os@%$host_os%g
2516: s%@CC@%$CC%g
2517: s%@CPP@%$CPP%g
2518: s%@LN_S@%$LN_S%g
2519: s%@RANLIB@%$RANLIB%g
2520: s%@LIBOBJS@%$LIBOBJS%g
2521: s%@ALLOCA@%$ALLOCA%g
2522: s%@SFLAGS@%$SFLAGS%g
2523: s%@MPN_DISTCLEANFILES@%$MPN_DISTCLEANFILES%g
2524: s%@MPN_OBJS@%$MPN_OBJS%g
2525:
2526: CEOF
2527: EOF
2528:
2529: cat >> $CONFIG_STATUS <<\EOF
2530:
2531: # Split the substitutions into bite-sized pieces for seds with
2532: # small command number limits, like on Digital OSF/1 and HP-UX.
2533: ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2534: ac_file=1 # Number of current file.
2535: ac_beg=1 # First line for current file.
2536: ac_end=$ac_max_sed_cmds # Line after last line for current file.
2537: ac_more_lines=:
2538: ac_sed_cmds=""
2539: while $ac_more_lines; do
2540: if test $ac_beg -gt 1; then
2541: sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2542: else
2543: sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2544: fi
2545: if test ! -s conftest.s$ac_file; then
2546: ac_more_lines=false
2547: rm -f conftest.s$ac_file
2548: else
2549: if test -z "$ac_sed_cmds"; then
2550: ac_sed_cmds="sed -f conftest.s$ac_file"
2551: else
2552: ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2553: fi
2554: ac_file=`expr $ac_file + 1`
2555: ac_beg=$ac_end
2556: ac_end=`expr $ac_end + $ac_max_sed_cmds`
2557: fi
2558: done
2559: if test -z "$ac_sed_cmds"; then
2560: ac_sed_cmds=cat
2561: fi
2562: EOF
2563:
2564: cat >> $CONFIG_STATUS <<EOF
2565:
2566: CONFIG_FILES=\${CONFIG_FILES-"Makefile demos/Makefile mpbsd/Makefile mpf/Makefile mpf/tests/Makefile mpn/Makefile mpn/tests/Makefile mpq/Makefile mpq/tests/Makefile mpz/Makefile mpz/tests/Makefile"}
2567: EOF
2568: cat >> $CONFIG_STATUS <<\EOF
2569: for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2570: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2571: case "$ac_file" in
2572: *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2573: ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2574: *) ac_file_in="${ac_file}.in" ;;
2575: esac
2576:
2577: # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2578:
2579: # Remove last slash and all that follows it. Not all systems have dirname.
2580: ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2581: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2582: # The file is in a subdirectory.
2583: test ! -d "$ac_dir" && mkdir "$ac_dir"
2584: ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2585: # A "../" for each directory in $ac_dir_suffix.
2586: ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2587: else
2588: ac_dir_suffix= ac_dots=
2589: fi
2590:
2591: case "$ac_given_srcdir" in
2592: .) srcdir=.
2593: if test -z "$ac_dots"; then top_srcdir=.
2594: else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2595: /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2596: *) # Relative path.
2597: srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2598: top_srcdir="$ac_dots$ac_given_srcdir" ;;
2599: esac
2600:
2601: case "$ac_given_INSTALL" in
2602: [/$]*) INSTALL="$ac_given_INSTALL" ;;
2603: *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2604: esac
2605:
2606: echo creating "$ac_file"
2607: rm -f "$ac_file"
2608: configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2609: case "$ac_file" in
2610: *Makefile*) ac_comsub="1i\\
2611: # $configure_input" ;;
2612: *) ac_comsub= ;;
2613: esac
2614:
2615: ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2616: sed -e "$ac_comsub
2617: s%@configure_input@%$configure_input%g
2618: s%@srcdir@%$srcdir%g
2619: s%@top_srcdir@%$top_srcdir%g
2620: s%@INSTALL@%$INSTALL%g
2621: " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2622: fi; done
2623: rm -f conftest.s*
2624:
2625: EOF
2626: cat >> $CONFIG_STATUS <<EOF
2627:
2628: EOF
2629: cat >> $CONFIG_STATUS <<\EOF
2630:
2631: exit 0
2632: EOF
2633: chmod +x $CONFIG_STATUS
2634: rm -fr confdefs* $ac_clean_files
2635: test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2636:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>