]> www.ginac.de Git - cln.git/blob - configure
6501c8e9bc4ce1af7abce58aa767f05ee0d48ccc
[cln.git] / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
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   --enable-shared         build shared libraries [default=no]
16   --enable-shared=PKGS    only build shared libraries if the current package
17                           appears as an element in the PKGS list"
18 ac_help="$ac_help
19   --enable-static         build static libraries [default=yes]
20   --enable-static=PKGS    only build shared libraries if the current package
21                           appears as an element in the PKGS list"
22 ac_help="$ac_help
23   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
24 ac_help="$ac_help
25   --with-gmp              use fast GNU gmp low-level functions"
26
27 # Initialize some variables set by options.
28 # The variables have the same names as the options, with
29 # dashes changed to underlines.
30 build=NONE
31 cache_file=./config.cache
32 exec_prefix=NONE
33 host=NONE
34 no_create=
35 nonopt=NONE
36 no_recursion=
37 prefix=NONE
38 program_prefix=NONE
39 program_suffix=NONE
40 program_transform_name=s,x,x,
41 silent=
42 site=
43 srcdir=
44 target=NONE
45 verbose=
46 x_includes=NONE
47 x_libraries=NONE
48 bindir='${exec_prefix}/bin'
49 sbindir='${exec_prefix}/sbin'
50 libexecdir='${exec_prefix}/libexec'
51 datadir='${prefix}/share'
52 sysconfdir='${prefix}/etc'
53 sharedstatedir='${prefix}/com'
54 localstatedir='${prefix}/var'
55 libdir='${exec_prefix}/lib'
56 includedir='${prefix}/include'
57 oldincludedir='/usr/include'
58 infodir='${prefix}/info'
59 mandir='${prefix}/man'
60
61 # Initialize some other variables.
62 subdirs=
63 MFLAGS= MAKEFLAGS=
64 SHELL=${CONFIG_SHELL-/bin/sh}
65 # Maximum number of lines to put in a shell here document.
66 ac_max_here_lines=12
67
68 ac_prev=
69 for ac_option
70 do
71
72   # If the previous option needs an argument, assign it.
73   if test -n "$ac_prev"; then
74     eval "$ac_prev=\$ac_option"
75     ac_prev=
76     continue
77   fi
78
79   case "$ac_option" in
80   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
81   *) ac_optarg= ;;
82   esac
83
84   # Accept the important Cygnus configure options, so we can diagnose typos.
85
86   case "$ac_option" in
87
88   -bindir | --bindir | --bindi | --bind | --bin | --bi)
89     ac_prev=bindir ;;
90   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
91     bindir="$ac_optarg" ;;
92
93   -build | --build | --buil | --bui | --bu)
94     ac_prev=build ;;
95   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
96     build="$ac_optarg" ;;
97
98   -cache-file | --cache-file | --cache-fil | --cache-fi \
99   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
100     ac_prev=cache_file ;;
101   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
102   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
103     cache_file="$ac_optarg" ;;
104
105   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
106     ac_prev=datadir ;;
107   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
108   | --da=*)
109     datadir="$ac_optarg" ;;
110
111   -disable-* | --disable-*)
112     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
113     # Reject names that are not valid shell variable names.
114     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
115       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
116     fi
117     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
118     eval "enable_${ac_feature}=no" ;;
119
120   -enable-* | --enable-*)
121     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
122     # Reject names that are not valid shell variable names.
123     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
124       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
125     fi
126     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
127     case "$ac_option" in
128       *=*) ;;
129       *) ac_optarg=yes ;;
130     esac
131     eval "enable_${ac_feature}='$ac_optarg'" ;;
132
133   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
134   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
135   | --exec | --exe | --ex)
136     ac_prev=exec_prefix ;;
137   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
138   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
139   | --exec=* | --exe=* | --ex=*)
140     exec_prefix="$ac_optarg" ;;
141
142   -gas | --gas | --ga | --g)
143     # Obsolete; use --with-gas.
144     with_gas=yes ;;
145
146   -help | --help | --hel | --he)
147     # Omit some internal or obsolete options to make the list less imposing.
148     # This message is too long to be a string in the A/UX 3.1 sh.
149     cat << EOF
150 Usage: configure [options] [host]
151 Options: [defaults in brackets after descriptions]
152 Configuration:
153   --cache-file=FILE       cache test results in FILE
154   --help                  print this message
155   --no-create             do not create output files
156   --quiet, --silent       do not print \`checking...' messages
157   --version               print the version of autoconf that created configure
158 Directory and file names:
159   --prefix=PREFIX         install architecture-independent files in PREFIX
160                           [$ac_default_prefix]
161   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
162                           [same as prefix]
163   --bindir=DIR            user executables in DIR [EPREFIX/bin]
164   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
165   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
166   --datadir=DIR           read-only architecture-independent data in DIR
167                           [PREFIX/share]
168   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
169   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
170                           [PREFIX/com]
171   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
172   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
173   --includedir=DIR        C header files in DIR [PREFIX/include]
174   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
175   --infodir=DIR           info documentation in DIR [PREFIX/info]
176   --mandir=DIR            man documentation in DIR [PREFIX/man]
177   --srcdir=DIR            find the sources in DIR [configure dir or ..]
178   --program-prefix=PREFIX prepend PREFIX to installed program names
179   --program-suffix=SUFFIX append SUFFIX to installed program names
180   --program-transform-name=PROGRAM
181                           run sed PROGRAM on installed program names
182 EOF
183     cat << EOF
184 Host type:
185   --build=BUILD           configure for building on BUILD [BUILD=HOST]
186   --host=HOST             configure for HOST [guessed]
187   --target=TARGET         configure for TARGET [TARGET=HOST]
188 Features and packages:
189   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
190   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
191   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
192   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
193   --x-includes=DIR        X include files are in DIR
194   --x-libraries=DIR       X library files are in DIR
195 EOF
196     if test -n "$ac_help"; then
197       echo "--enable and --with options recognized:$ac_help"
198     fi
199     exit 0 ;;
200
201   -host | --host | --hos | --ho)
202     ac_prev=host ;;
203   -host=* | --host=* | --hos=* | --ho=*)
204     host="$ac_optarg" ;;
205
206   -includedir | --includedir | --includedi | --included | --include \
207   | --includ | --inclu | --incl | --inc)
208     ac_prev=includedir ;;
209   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
210   | --includ=* | --inclu=* | --incl=* | --inc=*)
211     includedir="$ac_optarg" ;;
212
213   -infodir | --infodir | --infodi | --infod | --info | --inf)
214     ac_prev=infodir ;;
215   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
216     infodir="$ac_optarg" ;;
217
218   -libdir | --libdir | --libdi | --libd)
219     ac_prev=libdir ;;
220   -libdir=* | --libdir=* | --libdi=* | --libd=*)
221     libdir="$ac_optarg" ;;
222
223   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
224   | --libexe | --libex | --libe)
225     ac_prev=libexecdir ;;
226   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
227   | --libexe=* | --libex=* | --libe=*)
228     libexecdir="$ac_optarg" ;;
229
230   -localstatedir | --localstatedir | --localstatedi | --localstated \
231   | --localstate | --localstat | --localsta | --localst \
232   | --locals | --local | --loca | --loc | --lo)
233     ac_prev=localstatedir ;;
234   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
235   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
236   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
237     localstatedir="$ac_optarg" ;;
238
239   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
240     ac_prev=mandir ;;
241   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
242     mandir="$ac_optarg" ;;
243
244   -nfp | --nfp | --nf)
245     # Obsolete; use --without-fp.
246     with_fp=no ;;
247
248   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
249   | --no-cr | --no-c)
250     no_create=yes ;;
251
252   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
253   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
254     no_recursion=yes ;;
255
256   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
257   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
258   | --oldin | --oldi | --old | --ol | --o)
259     ac_prev=oldincludedir ;;
260   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
261   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
262   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
263     oldincludedir="$ac_optarg" ;;
264
265   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
266     ac_prev=prefix ;;
267   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
268     prefix="$ac_optarg" ;;
269
270   -program-prefix | --program-prefix | --program-prefi | --program-pref \
271   | --program-pre | --program-pr | --program-p)
272     ac_prev=program_prefix ;;
273   -program-prefix=* | --program-prefix=* | --program-prefi=* \
274   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
275     program_prefix="$ac_optarg" ;;
276
277   -program-suffix | --program-suffix | --program-suffi | --program-suff \
278   | --program-suf | --program-su | --program-s)
279     ac_prev=program_suffix ;;
280   -program-suffix=* | --program-suffix=* | --program-suffi=* \
281   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
282     program_suffix="$ac_optarg" ;;
283
284   -program-transform-name | --program-transform-name \
285   | --program-transform-nam | --program-transform-na \
286   | --program-transform-n | --program-transform- \
287   | --program-transform | --program-transfor \
288   | --program-transfo | --program-transf \
289   | --program-trans | --program-tran \
290   | --progr-tra | --program-tr | --program-t)
291     ac_prev=program_transform_name ;;
292   -program-transform-name=* | --program-transform-name=* \
293   | --program-transform-nam=* | --program-transform-na=* \
294   | --program-transform-n=* | --program-transform-=* \
295   | --program-transform=* | --program-transfor=* \
296   | --program-transfo=* | --program-transf=* \
297   | --program-trans=* | --program-tran=* \
298   | --progr-tra=* | --program-tr=* | --program-t=*)
299     program_transform_name="$ac_optarg" ;;
300
301   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
302   | -silent | --silent | --silen | --sile | --sil)
303     silent=yes ;;
304
305   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
306     ac_prev=sbindir ;;
307   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
308   | --sbi=* | --sb=*)
309     sbindir="$ac_optarg" ;;
310
311   -sharedstatedir | --sharedstatedir | --sharedstatedi \
312   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
313   | --sharedst | --shareds | --shared | --share | --shar \
314   | --sha | --sh)
315     ac_prev=sharedstatedir ;;
316   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
317   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
318   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
319   | --sha=* | --sh=*)
320     sharedstatedir="$ac_optarg" ;;
321
322   -site | --site | --sit)
323     ac_prev=site ;;
324   -site=* | --site=* | --sit=*)
325     site="$ac_optarg" ;;
326
327   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
328     ac_prev=srcdir ;;
329   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
330     srcdir="$ac_optarg" ;;
331
332   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
333   | --syscon | --sysco | --sysc | --sys | --sy)
334     ac_prev=sysconfdir ;;
335   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
336   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
337     sysconfdir="$ac_optarg" ;;
338
339   -target | --target | --targe | --targ | --tar | --ta | --t)
340     ac_prev=target ;;
341   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
342     target="$ac_optarg" ;;
343
344   -v | -verbose | --verbose | --verbos | --verbo | --verb)
345     verbose=yes ;;
346
347   -version | --version | --versio | --versi | --vers)
348     echo "configure generated by autoconf version 2.13"
349     exit 0 ;;
350
351   -with-* | --with-*)
352     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
353     # Reject names that are not valid shell variable names.
354     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
355       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
356     fi
357     ac_package=`echo $ac_package| sed 's/-/_/g'`
358     case "$ac_option" in
359       *=*) ;;
360       *) ac_optarg=yes ;;
361     esac
362     eval "with_${ac_package}='$ac_optarg'" ;;
363
364   -without-* | --without-*)
365     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
366     # Reject names that are not valid shell variable names.
367     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
368       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
369     fi
370     ac_package=`echo $ac_package| sed 's/-/_/g'`
371     eval "with_${ac_package}=no" ;;
372
373   --x)
374     # Obsolete; use --with-x.
375     with_x=yes ;;
376
377   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
378   | --x-incl | --x-inc | --x-in | --x-i)
379     ac_prev=x_includes ;;
380   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
381   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
382     x_includes="$ac_optarg" ;;
383
384   -x-libraries | --x-libraries | --x-librarie | --x-librari \
385   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
386     ac_prev=x_libraries ;;
387   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
388   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
389     x_libraries="$ac_optarg" ;;
390
391   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
392     ;;
393
394   *)
395     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
396       echo "configure: warning: $ac_option: invalid host type" 1>&2
397     fi
398     if test "x$nonopt" != xNONE; then
399       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
400     fi
401     nonopt="$ac_option"
402     ;;
403
404   esac
405 done
406
407 if test -n "$ac_prev"; then
408   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
409 fi
410
411 trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
412
413 # File descriptor usage:
414 # 0 standard input
415 # 1 file creation
416 # 2 errors and warnings
417 # 3 some systems may open it to /dev/tty
418 # 4 used on the Kubota Titan
419 # 6 checking for... messages and results
420 # 5 compiler messages saved in config.log
421 if test "$silent" = yes; then
422   exec 6>/dev/null
423 else
424   exec 6>&1
425 fi
426 exec 5>./config.log
427
428 echo "\
429 This file contains any messages produced by compilers while
430 running configure, to aid debugging if configure makes a mistake.
431 " 1>&5
432
433 # Strip out --no-create and --no-recursion so they do not pile up.
434 # Also quote any args containing shell metacharacters.
435 ac_configure_args=
436 for ac_arg
437 do
438   case "$ac_arg" in
439   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
440   | --no-cr | --no-c) ;;
441   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
442   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
443   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
444   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
445   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
446   esac
447 done
448
449 # NLS nuisances.
450 # Only set these to C if already set.  These must not be set unconditionally
451 # because not all systems understand e.g. LANG=C (notably SCO).
452 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
453 # Non-C LC_CTYPE values break the ctype check.
454 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
455 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
456 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
457 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
458
459 # confdefs.h avoids OS command line length limits that DEFS can exceed.
460 rm -rf conftest* confdefs.h
461 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
462 echo > confdefs.h
463
464 # A filename unique to this package, relative to the directory that
465 # configure is in, which we can look for to find out if srcdir is correct.
466 ac_unique_file=src/integer/gcd/cl_I_gcd.cc
467
468 # Find the source files, if location was not specified.
469 if test -z "$srcdir"; then
470   ac_srcdir_defaulted=yes
471   # Try the directory containing this script, then its parent.
472   ac_prog=$0
473   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
474   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
475   srcdir=$ac_confdir
476   if test ! -r $srcdir/$ac_unique_file; then
477     srcdir=..
478   fi
479 else
480   ac_srcdir_defaulted=no
481 fi
482 if test ! -r $srcdir/$ac_unique_file; then
483   if test "$ac_srcdir_defaulted" = yes; then
484     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
485   else
486     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
487   fi
488 fi
489 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
490
491 # Prefer explicitly selected file to automatically selected ones.
492 if test -z "$CONFIG_SITE"; then
493   if test "x$prefix" != xNONE; then
494     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
495   else
496     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
497   fi
498 fi
499 for ac_site_file in $CONFIG_SITE; do
500   if test -r "$ac_site_file"; then
501     echo "loading site script $ac_site_file"
502     . "$ac_site_file"
503   fi
504 done
505
506 if test -r "$cache_file"; then
507   echo "loading cache $cache_file"
508   . $cache_file
509 else
510   echo "creating cache $cache_file"
511   > $cache_file
512 fi
513
514 ac_ext=c
515 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
516 ac_cpp='$CPP $CPPFLAGS'
517 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
518 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
519 cross_compiling=$ac_cv_prog_cc_cross
520
521 ac_exeext=
522 ac_objext=o
523 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
524   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
525   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
526     ac_n= ac_c='
527 ' ac_t='        ' ac_tt=
528   else
529     ac_n=-n ac_c= ac_t= ac_tt='
530          '
531   fi
532 else
533   ac_n= ac_c='\c' ac_t= ac_tt='
534          '
535 fi
536
537
538
539 echo $ac_n "checking whether ${MAKE-make} sets \$(MAKE)""... $ac_c" 1>&6
540 echo "configure:541: checking whether ${MAKE-make} sets \$(MAKE)" >&5
541 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
542 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
543   echo $ac_n "(cached) $ac_c" 1>&6
544 else
545   cat > conftestmake <<\EOF
546 all:
547         @echo 'ac_maketemp="${MAKE}"'
548 EOF
549 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
550 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
551 if test -n "$ac_maketemp"; then
552   eval ac_cv_prog_make_${ac_make}_set=yes
553 else
554   eval ac_cv_prog_make_${ac_make}_set=no
555 fi
556 rm -f conftestmake
557 fi
558 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
559   echo "$ac_t""yes" 1>&6
560   SET_MAKE=
561 else
562   echo "$ac_t""no" 1>&6
563   SET_MAKE="MAKE=${MAKE-make}"
564 fi
565
566 extrasub="$extrasub"'
567 /@subdir@/{
568 h
569 g
570 s/@subdir@/src/
571 p
572 g
573 s/@subdir@/tests/
574 p
575 g
576 s/@subdir@/benchmarks/
577 p
578 g
579 s/@subdir@/examples/
580 p
581 g
582 s/@subdir@/doc/
583 p
584 d
585 }
586 '
587 # Extract the first word of "gcc", so it can be a program name with args.
588 set dummy gcc; ac_word=$2
589 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
590 echo "configure:591: checking for $ac_word" >&5
591 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
592   echo $ac_n "(cached) $ac_c" 1>&6
593 else
594   if test -n "$CC"; then
595   ac_cv_prog_CC="$CC" # Let the user override the test.
596 else
597   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
598   ac_dummy="$PATH"
599   for ac_dir in $ac_dummy; do
600     test -z "$ac_dir" && ac_dir=.
601     if test -f $ac_dir/$ac_word; then
602       ac_cv_prog_CC="gcc"
603       break
604     fi
605   done
606   IFS="$ac_save_ifs"
607 fi
608 fi
609 CC="$ac_cv_prog_CC"
610 if test -n "$CC"; then
611   echo "$ac_t""$CC" 1>&6
612 else
613   echo "$ac_t""no" 1>&6
614 fi
615
616 if test -z "$CC"; then
617   # Extract the first word of "cc", so it can be a program name with args.
618 set dummy cc; ac_word=$2
619 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
620 echo "configure:621: checking for $ac_word" >&5
621 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
622   echo $ac_n "(cached) $ac_c" 1>&6
623 else
624   if test -n "$CC"; then
625   ac_cv_prog_CC="$CC" # Let the user override the test.
626 else
627   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
628   ac_prog_rejected=no
629   ac_dummy="$PATH"
630   for ac_dir in $ac_dummy; do
631     test -z "$ac_dir" && ac_dir=.
632     if test -f $ac_dir/$ac_word; then
633       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
634         ac_prog_rejected=yes
635         continue
636       fi
637       ac_cv_prog_CC="cc"
638       break
639     fi
640   done
641   IFS="$ac_save_ifs"
642 if test $ac_prog_rejected = yes; then
643   # We found a bogon in the path, so make sure we never use it.
644   set dummy $ac_cv_prog_CC
645   shift
646   if test $# -gt 0; then
647     # We chose a different compiler from the bogus one.
648     # However, it has the same basename, so the bogon will be chosen
649     # first if we set CC to just the basename; use the full file name.
650     shift
651     set dummy "$ac_dir/$ac_word" "$@"
652     shift
653     ac_cv_prog_CC="$@"
654   fi
655 fi
656 fi
657 fi
658 CC="$ac_cv_prog_CC"
659 if test -n "$CC"; then
660   echo "$ac_t""$CC" 1>&6
661 else
662   echo "$ac_t""no" 1>&6
663 fi
664
665   if test -z "$CC"; then
666     case "`uname -s`" in
667     *win32* | *WIN32*)
668       # Extract the first word of "cl", so it can be a program name with args.
669 set dummy cl; ac_word=$2
670 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
671 echo "configure:672: checking for $ac_word" >&5
672 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
673   echo $ac_n "(cached) $ac_c" 1>&6
674 else
675   if test -n "$CC"; then
676   ac_cv_prog_CC="$CC" # Let the user override the test.
677 else
678   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
679   ac_dummy="$PATH"
680   for ac_dir in $ac_dummy; do
681     test -z "$ac_dir" && ac_dir=.
682     if test -f $ac_dir/$ac_word; then
683       ac_cv_prog_CC="cl"
684       break
685     fi
686   done
687   IFS="$ac_save_ifs"
688 fi
689 fi
690 CC="$ac_cv_prog_CC"
691 if test -n "$CC"; then
692   echo "$ac_t""$CC" 1>&6
693 else
694   echo "$ac_t""no" 1>&6
695 fi
696  ;;
697     esac
698   fi
699   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
700 fi
701
702 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
703 echo "configure:704: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
704
705 ac_ext=c
706 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
707 ac_cpp='$CPP $CPPFLAGS'
708 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
709 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
710 cross_compiling=$ac_cv_prog_cc_cross
711
712 cat > conftest.$ac_ext << EOF
713
714 #line 715 "configure"
715 #include "confdefs.h"
716
717 int main(){return(0);}
718 EOF
719 if { (eval echo configure:720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
720   ac_cv_prog_cc_works=yes
721   # If we can't run a trivial program, we are probably using a cross compiler.
722   if (./conftest; exit) 2>/dev/null; then
723     ac_cv_prog_cc_cross=no
724   else
725     ac_cv_prog_cc_cross=yes
726   fi
727 else
728   echo "configure: failed program was:" >&5
729   cat conftest.$ac_ext >&5
730   ac_cv_prog_cc_works=no
731 fi
732 rm -fr conftest*
733 ac_ext=c
734 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
735 ac_cpp='$CPP $CPPFLAGS'
736 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
737 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
738 cross_compiling=$ac_cv_prog_cc_cross
739
740 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
741 if test $ac_cv_prog_cc_works = no; then
742   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
743 fi
744 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
745 echo "configure:746: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
746 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
747 cross_compiling=$ac_cv_prog_cc_cross
748
749 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
750 echo "configure:751: checking whether we are using GNU C" >&5
751 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
752   echo $ac_n "(cached) $ac_c" 1>&6
753 else
754   cat > conftest.c <<EOF
755 #ifdef __GNUC__
756   yes;
757 #endif
758 EOF
759 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
760   ac_cv_prog_gcc=yes
761 else
762   ac_cv_prog_gcc=no
763 fi
764 fi
765 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
766
767 if test $ac_cv_prog_gcc = yes; then
768   GCC=yes
769 else
770   GCC=
771 fi
772
773 ac_test_CFLAGS="${CFLAGS+set}"
774 ac_save_CFLAGS="$CFLAGS"
775 CFLAGS=
776 if test "$ac_test_CFLAGS" = set; then
777   CFLAGS="$ac_save_CFLAGS"
778 else
779   if test "$GCC" = yes; then
780     # Add "-O" to both the CC and CPP commands, to eliminate possible confusion
781     # that results from __OPTIMIZE__ being defined for CC but not CPP.
782     if echo "$CC " | grep ' -O[1-9 ]' > /dev/null 2>&1; then
783       : # already optimizing
784     else
785       CC="$CC -O"
786       ac_cv_prog_CC="$CC"
787     fi
788   else
789     CFLAGS=
790   fi
791 fi
792
793                       echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
794 echo "configure:795: checking how to run the C preprocessor" >&5
795 # On Suns, sometimes $CPP names a directory.
796 if test -n "$CPP" && test -d "$CPP"; then
797   CPP=
798 fi
799 if test -z "$CPP"; then
800 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
801   echo $ac_n "(cached) $ac_c" 1>&6
802 else
803     # This must be in double quotes, not single quotes, because CPP may get
804   # substituted into the Makefile and "${CC-cc}" will confuse make.
805   CPP="${CC-cc} -E"
806   if test -n "$GCC"; then
807     # Suppress warning messages.
808     CPP="$CPP -w"
809   fi
810   # On the NeXT, cc -E runs the code through the compiler's parser,
811   # not just through cpp. On NeXTstep 3.1 the same holds for /lib/cpp; use
812   # "cc -E -traditional-cpp" instead.
813   cat > conftest.$ac_ext <<EOF
814 #line 815 "configure"
815 #include "confdefs.h"
816 #include <assert.h>
817 Syntax Error
818 EOF
819 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
820 { (eval echo configure:821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
821 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
822 if test -z "$ac_err"; then
823   rm -rf conftest*
824   ac_have_cpp=1
825 else
826   echo "$ac_err" >&5
827   echo "configure: failed program was:" >&5
828   cat conftest.$ac_ext >&5
829 fi
830 rm -f conftest*
831   if test -z "$ac_have_cpp"; then
832     CPP="${CC-cc} -E -traditional-cpp"
833     cat > conftest.$ac_ext <<EOF
834 #line 835 "configure"
835 #include "confdefs.h"
836 #include <assert.h>
837 Syntax Error
838 EOF
839 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
840 { (eval echo configure:841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
841 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
842 if test -z "$ac_err"; then
843   rm -rf conftest*
844   ac_have_cpp=1
845 else
846   echo "$ac_err" >&5
847   echo "configure: failed program was:" >&5
848   cat conftest.$ac_ext >&5
849 fi
850 rm -f conftest*
851     if test -n "$ac_have_cpp"; then
852       CC="${CC-cc} -traditional-cpp"
853     else
854       CPP="${CC-cc} -nologo -E"
855       cat > conftest.$ac_ext <<EOF
856 #line 857 "configure"
857 #include "confdefs.h"
858 #include <assert.h>
859 Syntax Error
860 EOF
861 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
862 { (eval echo configure:863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
863 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
864 if test -z "$ac_err"; then
865   rm -rf conftest*
866   ac_have_cpp=1
867 else
868   echo "$ac_err" >&5
869   echo "configure: failed program was:" >&5
870   cat conftest.$ac_ext >&5
871 fi
872 rm -f conftest*
873       if test -n "$ac_have_cpp"; then
874         CC="${CC-cc} -nologo"
875       else
876         CPP=/lib/cpp
877       fi
878     fi
879   fi
880   ac_cv_prog_CC="$CC"
881   ac_cv_prog_CPP="$CPP"
882 fi
883   CPP="$ac_cv_prog_CPP"
884 else
885   ac_cv_prog_CPP="$CPP"
886 fi
887 echo "$ac_t""$CPP" 1>&6
888
889                       for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
890 do
891 # Extract the first word of "$ac_prog", so it can be a program name with args.
892 set dummy $ac_prog; ac_word=$2
893 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
894 echo "configure:895: checking for $ac_word" >&5
895 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
896   echo $ac_n "(cached) $ac_c" 1>&6
897 else
898   if test -n "$CXX"; then
899   ac_cv_prog_CXX="$CXX" # Let the user override the test.
900 else
901   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
902   ac_dummy="$PATH"
903   for ac_dir in $ac_dummy; do
904     test -z "$ac_dir" && ac_dir=.
905     if test -f $ac_dir/$ac_word; then
906       ac_cv_prog_CXX="$ac_prog"
907       break
908     fi
909   done
910   IFS="$ac_save_ifs"
911 fi
912 fi
913 CXX="$ac_cv_prog_CXX"
914 if test -n "$CXX"; then
915   echo "$ac_t""$CXX" 1>&6
916 else
917   echo "$ac_t""no" 1>&6
918 fi
919
920 test -n "$CXX" && break
921 done
922 test -n "$CXX" || CXX="gcc"
923
924
925 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
926 echo "configure:927: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
927
928 ac_ext=C
929 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
930 ac_cpp='$CXXCPP $CPPFLAGS'
931 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
932 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
933 cross_compiling=$ac_cv_prog_cxx_cross
934
935 cat > conftest.$ac_ext << EOF
936
937 #line 938 "configure"
938 #include "confdefs.h"
939
940 int main(){return(0);}
941 EOF
942 if { (eval echo configure:943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
943   ac_cv_prog_cxx_works=yes
944   # If we can't run a trivial program, we are probably using a cross compiler.
945   if (./conftest; exit) 2>/dev/null; then
946     ac_cv_prog_cxx_cross=no
947   else
948     ac_cv_prog_cxx_cross=yes
949   fi
950 else
951   echo "configure: failed program was:" >&5
952   cat conftest.$ac_ext >&5
953   ac_cv_prog_cxx_works=no
954 fi
955 rm -fr conftest*
956 ac_ext=c
957 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
958 ac_cpp='$CPP $CPPFLAGS'
959 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
960 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
961 cross_compiling=$ac_cv_prog_cc_cross
962
963 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
964 if test $ac_cv_prog_cxx_works = no; then
965   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
966 fi
967 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
968 echo "configure:969: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
969 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
970 cross_compiling=$ac_cv_prog_cxx_cross
971
972 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
973 echo "configure:974: checking whether we are using GNU C++" >&5
974 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
975   echo $ac_n "(cached) $ac_c" 1>&6
976 else
977   cat > conftest.C <<EOF
978 #ifdef __GNUC__
979   yes;
980 #endif
981 EOF
982 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
983   ac_cv_prog_gxx=yes
984 else
985   ac_cv_prog_gxx=no
986 fi
987 fi
988 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
989
990 if test $ac_cv_prog_gxx = yes; then
991   GXX=yes
992 else
993   GXX=
994 fi
995
996 ac_test_CXXFLAGS="${CXXFLAGS+set}"
997 ac_save_CXXFLAGS="$CXXFLAGS"
998 CXXFLAGS=
999 if test "$ac_test_CXXFLAGS" = set; then
1000   CXXFLAGS="$ac_save_CXXFLAGS"
1001 else
1002   if test "$GXX" = yes; then
1003     # Add "-O" to both the CXX and CXXCPP commands, to eliminate possible confu-
1004     # sion that results from __OPTIMIZE__ being defined for CXX but not CXXCPP.
1005     if echo "$CXX " | grep ' -O[1-9 ]' > /dev/null; then
1006       : # already optimizing
1007     else
1008       CXX="$CXX -O"
1009       ac_cv_prog_CXX="$CXX"
1010     fi
1011   else
1012     CXXFLAGS=
1013   fi
1014 fi
1015
1016                       echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1017 echo "configure:1018: checking how to run the C++ preprocessor" >&5
1018 if test -z "$CXXCPP"; then
1019 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1020   echo $ac_n "(cached) $ac_c" 1>&6
1021 else
1022   ac_ext=C
1023 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1024 ac_cpp='$CXXCPP $CPPFLAGS'
1025 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1026 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1027 cross_compiling=$ac_cv_prog_cxx_cross
1028   CXXCPP="${CXX-g++} -E"
1029   cat > conftest.$ac_ext <<EOF
1030 #line 1031 "configure"
1031 #include "confdefs.h"
1032 #include <stdlib.h>
1033 EOF
1034 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1035 { (eval echo configure:1036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1036 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1037 if test -z "$ac_err"; then
1038   :
1039 else
1040   echo "$ac_err" >&5
1041   echo "configure: failed program was:" >&5
1042   cat conftest.$ac_ext >&5
1043   rm -rf conftest*
1044   CXXCPP=/lib/cpp
1045 fi
1046 rm -f conftest*
1047   ac_cv_prog_CXXCPP="$CXXCPP"
1048 ac_ext=c
1049 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1050 ac_cpp='$CPP $CPPFLAGS'
1051 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1052 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1053 cross_compiling=$ac_cv_prog_cc_cross
1054 fi
1055 fi
1056 CXXCPP="$ac_cv_prog_CXXCPP"
1057 echo "$ac_t""$CXXCPP" 1>&6
1058
1059                       
1060 echo $ac_n "checking for underscore in external names""... $ac_c" 1>&6
1061 echo "configure:1062: checking for underscore in external names" >&5
1062 if eval "test \"`echo '$''{'cl_cv_prog_as_underscore'+set}'`\" = set"; then
1063   echo $ac_n "(cached) $ac_c" 1>&6
1064 else
1065   
1066 cat > conftest.c <<EOF
1067 int foo() { return 0; }
1068 EOF
1069 # look for the assembly language name in the .s file
1070 { ac_try='${CC-cc} -S conftest.c'; { (eval echo configure:1071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } >/dev/null 2>&1
1071 if grep _foo conftest.s >/dev/null ; then
1072   cl_cv_prog_as_underscore=yes
1073 else
1074   cl_cv_prog_as_underscore=no
1075 fi
1076 rm -f conftest*
1077
1078 fi
1079 echo "$ac_t""$cl_cv_prog_as_underscore" 1>&6
1080 if test $cl_cv_prog_as_underscore = yes; then
1081   AS_UNDERSCORE=true
1082   cat >> confdefs.h <<\EOF
1083 #define ASM_UNDERSCORE 1
1084 EOF
1085
1086 else
1087   AS_UNDERSCORE=false
1088 fi
1089
1090                       # Extract the first word of "ranlib", so it can be a program name with args.
1091 set dummy ranlib; ac_word=$2
1092 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1093 echo "configure:1094: checking for $ac_word" >&5
1094 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1095   echo $ac_n "(cached) $ac_c" 1>&6
1096 else
1097   if test -n "$RANLIB"; then
1098   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1099 else
1100   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1101   ac_dummy="$PATH"
1102   for ac_dir in $ac_dummy; do
1103     test -z "$ac_dir" && ac_dir=.
1104     if test -f $ac_dir/$ac_word; then
1105       ac_cv_prog_RANLIB="ranlib"
1106       break
1107     fi
1108   done
1109   IFS="$ac_save_ifs"
1110   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="true"
1111 fi
1112 fi
1113 RANLIB="$ac_cv_prog_RANLIB"
1114 if test -n "$RANLIB"; then
1115   echo "$ac_t""$RANLIB" 1>&6
1116 else
1117   echo "$ac_t""no" 1>&6
1118 fi
1119
1120                       # Find a good install program.  We prefer a C program (faster),
1121 # so one script is as good as another.  But avoid the broken or
1122 # incompatible versions:
1123 # SysV /etc/install, /usr/sbin/install
1124 # SunOS /usr/etc/install
1125 # IRIX /sbin/install
1126 # AIX /bin/install
1127 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1128 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1129 # ./install, which can be erroneously created by make from ./install.sh.
1130 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1131 echo "configure:1132: checking for a BSD compatible install" >&5
1132 if test -z "$INSTALL"; then
1133 if eval "test \"`echo '$''{'cl_cv_path_install'+set}'`\" = set"; then
1134   echo $ac_n "(cached) $ac_c" 1>&6
1135 else
1136     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1137   for ac_dir in $PATH; do
1138     # Account for people who put trailing slashes in PATH elements.
1139     case "$ac_dir/" in
1140     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1141     *)
1142       # OSF1 and SCO ODT 3.0 have their own names for install.
1143       for ac_prog in ginstall installbsd scoinst install; do
1144         if test -f $ac_dir/$ac_prog; then
1145           if test $ac_prog = install &&
1146             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1147             # AIX install.  It has an incompatible calling convention.
1148             # OSF/1 installbsd also uses dspmsg, but is usable.
1149             :
1150           else
1151             if test $ac_prog = installbsd &&
1152               grep src/bos $ac_dir/$ac_prog >/dev/null 2>&1; then
1153               # AIX installbsd doesn't work without option "-g".
1154               :
1155             else
1156               ac_cv_path_install="$ac_dir/$ac_prog -c"
1157               break 2
1158             fi
1159           fi
1160         fi
1161       done
1162       ;;
1163     esac
1164   done
1165   IFS="$ac_save_ifs"
1166   # As a last resort, use cp.
1167   test -z "$cl_cv_path_install" && cl_cv_path_install="cp"
1168
1169 fi
1170   INSTALL="$cl_cv_path_install"
1171 fi
1172 echo "$ac_t""$INSTALL" 1>&6
1173 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1174 # It thinks the first close brace ends the variable substitution.
1175 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='$(INSTALL)'
1176 if test -z "$INSTALL_DATA"; then
1177   case "$INSTALL" in
1178     cp | */cp ) INSTALL_DATA='$(INSTALL)' ;;
1179     * )         INSTALL_DATA='$(INSTALL) -m 644' ;;
1180   esac
1181 fi
1182
1183                        ac_aux_dir=${srcdir}/autoconf
1184 echo $ac_n "checking host system type""... $ac_c" 1>&6
1185 echo "configure:1186: checking host system type" >&5
1186 if eval "test \"`echo '$''{'cl_cv_host'+set}'`\" = set"; then
1187   echo $ac_n "(cached) $ac_c" 1>&6
1188 else
1189   
1190 ac_config_guess=$ac_aux_dir/config.guess
1191 ac_config_sub=$ac_aux_dir/config.sub
1192 # Make sure we can run config.sub.
1193 if $ac_config_sub sun4 >/dev/null 2>&1; then :
1194 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1195 fi
1196 host_alias=$host
1197 case "$host_alias" in
1198 NONE)
1199   case $nonopt in
1200   NONE)         host_alias=`export CC; $ac_config_guess` ;;
1201   *)    host_alias=$nonopt ;;
1202   esac ;;
1203 esac
1204 # Don't fail just because the system is not listed in GNU's database.
1205 if test -n "$host_alias"; then
1206   host=`$ac_config_sub $host_alias`
1207 else
1208   host=unknown-unknown-unknown
1209 fi
1210 cl_cv_host="$host"
1211
1212 fi
1213 echo "$ac_t""$cl_cv_host" 1>&6
1214 host="$cl_cv_host"
1215 host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
1216 host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
1217 host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
1218
1219                       
1220 case "$host_cpu" in
1221   i[4567]86 )
1222     host_cpu=i386
1223     ;;
1224   alphaev[4-7] | alphaev56 | alphapca5[67] )
1225     host_cpu=alpha
1226     ;;
1227   hppa1.0 | hppa1.1 | hppa2.0 )
1228     host_cpu=hppa
1229     ;;
1230   powerpc )
1231     host_cpu=rs6000
1232     ;;
1233   c1 | c2 | c32 | c34 | c38 | c4 )
1234     host_cpu=convex
1235     ;;
1236   mips )
1237     echo $ac_n "checking for 64-bit MIPS""... $ac_c" 1>&6
1238 echo "configure:1239: checking for 64-bit MIPS" >&5
1239 if eval "test \"`echo '$''{'cl_cv_host_mips64'+set}'`\" = set"; then
1240   echo $ac_n "(cached) $ac_c" 1>&6
1241 else
1242   
1243 cat > conftest.$ac_ext <<EOF
1244 #line 1245 "configure"
1245 #include "confdefs.h"
1246 #if defined(_MIPS_SZLONG)
1247 #if (_MIPS_SZLONG == 64)
1248 /* We should also check for (_MIPS_SZPTR == 64), but gcc keeps this at 32. */
1249   yes
1250 #endif
1251 #endif
1252
1253 EOF
1254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1255   egrep "yes" >/dev/null 2>&1; then
1256   rm -rf conftest*
1257   cl_cv_host_mips64=yes
1258 else
1259   rm -rf conftest*
1260   cl_cv_host_mips64=no
1261 fi
1262 rm -f conftest*
1263
1264
1265 fi
1266 echo "$ac_t""$cl_cv_host_mips64" 1>&6
1267 if test $cl_cv_host_mips64 = yes; then
1268   host_cpu=mips64
1269 fi
1270     ;;
1271   sparc | sparc64 )
1272     echo $ac_n "checking for 64-bit SPARC""... $ac_c" 1>&6
1273 echo "configure:1274: checking for 64-bit SPARC" >&5
1274 if eval "test \"`echo '$''{'cl_cv_host_sparc64'+set}'`\" = set"; then
1275   echo $ac_n "(cached) $ac_c" 1>&6
1276 else
1277   
1278 cat > conftest.$ac_ext <<EOF
1279 #line 1280 "configure"
1280 #include "confdefs.h"
1281 #if defined(__sparcv9) || defined(__arch64__)
1282   yes
1283 #endif
1284
1285 EOF
1286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1287   egrep "yes" >/dev/null 2>&1; then
1288   rm -rf conftest*
1289   cl_cv_host_sparc64=yes
1290 else
1291   rm -rf conftest*
1292   cl_cv_host_sparc64=no
1293 fi
1294 rm -f conftest*
1295
1296
1297 fi
1298 echo "$ac_t""$cl_cv_host_sparc64" 1>&6
1299 if test $cl_cv_host_sparc64 = yes; then
1300   host_cpu=sparc64
1301 else
1302   host_cpu=sparc
1303 fi
1304     ;;
1305 esac
1306 cat >> confdefs.h <<EOF
1307 #ifndef __${host_cpu}__
1308 #define __${host_cpu}__ 1
1309 #endif
1310 EOF
1311
1312                       PACKAGE=cln
1313 # Check whether --enable-shared or --disable-shared was given.
1314 if test "${enable_shared+set}" = set; then
1315   enableval="$enable_shared"
1316   p=${PACKAGE-default}
1317 case "$enableval" in
1318 yes) enable_shared=yes ;;
1319 no) enable_shared=no ;;
1320 *)
1321   enable_shared=no
1322   # Look at the argument we got.  We use all the common list separators.
1323   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1324   for pkg in $enableval; do
1325     if test "X$pkg" = "X$p"; then
1326       enable_shared=yes
1327     fi
1328   done
1329   IFS="$ac_save_ifs"
1330   ;;
1331 esac
1332 else
1333   enable_shared=no
1334 fi
1335
1336 # Check whether --enable-static or --disable-static was given.
1337 if test "${enable_static+set}" = set; then
1338   enableval="$enable_static"
1339   p=${PACKAGE-default}
1340 case "$enableval" in
1341 yes) enable_static=yes ;;
1342 no) enable_static=no ;;
1343 *)
1344   enable_static=no
1345   # Look at the argument we got.  We use all the common list separators.
1346   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1347   for pkg in $enableval; do
1348     if test "X$pkg" = "X$p"; then
1349       enable_static=yes
1350     fi
1351   done
1352   IFS="$ac_save_ifs"
1353   ;;
1354 esac
1355 else
1356   enable_static=yes
1357 fi
1358
1359 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1360 if test "${with_gnu_ld+set}" = set; then
1361   withval="$with_gnu_ld"
1362   test "$withval" = no || with_gnu_ld=yes
1363 else
1364   with_gnu_ld=no
1365 fi
1366
1367
1368 ac_prog=ld
1369 if test "$ac_cv_prog_gcc" = yes; then
1370   # Check if gcc -print-prog-name=ld gives a path.
1371   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1372 echo "configure:1373: checking for ld used by GCC" >&5
1373   ac_prog=`($CC -print-prog-name=ld) 2>&5`
1374   case "$ac_prog" in
1375   # Accept absolute paths.
1376   /* | A-Za-z:\\*)
1377     test -z "$LD" && LD="$ac_prog"
1378     ;;
1379   "")
1380     # If it fails, then pretend we aren't using GCC.
1381     ac_prog=ld
1382     ;;
1383   *)
1384     # If it is relative, then search for the first ld in PATH.
1385     with_gnu_ld=unknown
1386     ;;
1387   esac
1388 elif test "$with_gnu_ld" = yes; then
1389   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1390 echo "configure:1391: checking for GNU ld" >&5
1391 else
1392   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1393 echo "configure:1394: checking for non-GNU ld" >&5
1394 fi
1395 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1396   echo $ac_n "(cached) $ac_c" 1>&6
1397 else
1398   if test -z "$LD"; then
1399   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1400   for ac_dir in $PATH; do
1401     test -z "$ac_dir" && ac_dir=.
1402     if test -f "$ac_dir/$ac_prog"; then
1403       ac_cv_path_LD="$ac_dir/$ac_prog"
1404       # Check to see if the program is GNU ld.  I'd rather use --version,
1405       # but apparently some GNU ld's only accept -v.
1406       # Break only if it was the GNU/non-GNU ld that we prefer.
1407       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1408         test "$with_gnu_ld" != no && break
1409       else
1410         test "$with_gnu_ld" != yes && break
1411       fi
1412     fi
1413   done
1414   IFS="$ac_save_ifs"
1415 else
1416   ac_cv_path_LD="$LD" # Let the user override the test with a path.
1417 fi
1418 fi
1419
1420 LD="$ac_cv_path_LD"
1421 if test -n "$LD"; then
1422   echo "$ac_t""$LD" 1>&6
1423 else
1424   echo "$ac_t""no" 1>&6
1425 fi
1426 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1427
1428 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1429 echo "configure:1430: checking if the linker ($LD) is GNU ld" >&5
1430 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1431   echo $ac_n "(cached) $ac_c" 1>&6
1432 else
1433   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1434 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1435   ac_cv_prog_gnu_ld=yes
1436 else
1437   ac_cv_prog_gnu_ld=no
1438 fi
1439 fi
1440 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1441
1442
1443 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1444 echo "configure:1445: checking for BSD-compatible nm" >&5
1445 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1446   echo $ac_n "(cached) $ac_c" 1>&6
1447 else
1448   case "$NM" in
1449 /* | A-Za-z:\\*)
1450   ac_cv_path_NM="$NM" # Let the user override the test with a path.
1451   ;;
1452 *)
1453   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1454   for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
1455     test -z "$ac_dir" && ac_dir=.
1456     if test -f $ac_dir/nm; then
1457       # Check to see if the nm accepts a BSD-compat flag.
1458       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1459       #   nm: unknown option "B" ignored
1460       if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1461         ac_cv_path_NM="$ac_dir/nm -B"
1462       elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1463         ac_cv_path_NM="$ac_dir/nm -p"
1464       else
1465         ac_cv_path_NM="$ac_dir/nm"
1466       fi
1467       break
1468     fi
1469   done
1470   IFS="$ac_save_ifs"
1471   test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1472   ;;
1473 esac
1474 fi
1475
1476 NM="$ac_cv_path_NM"
1477 echo "$ac_t""$NM" 1>&6
1478
1479
1480 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1481 echo "configure:1482: checking whether ln -s works" >&5
1482 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1483   echo $ac_n "(cached) $ac_c" 1>&6
1484 else
1485   rm -f conftestdata
1486 if ln -s X conftestdata 2>/dev/null
1487 then
1488   rm -f conftestdata
1489   ac_cv_prog_LN_S="ln -s"
1490 else
1491   ac_cv_prog_LN_S=ln
1492 fi
1493 fi
1494 LN_S="$ac_cv_prog_LN_S"
1495 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1496   echo "$ac_t""yes" 1>&6
1497 else
1498   echo "$ac_t""no" 1>&6
1499 fi
1500
1501 # Always use our own libtool.
1502 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1503
1504 # Check for any special flags to pass to ltconfig.
1505 libtool_flags=
1506 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1507 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1508 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1509 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1510 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1511
1512 # Some flags need to be propagated to the compiler or linker for good
1513 # libtool support.
1514 case "$host" in
1515 *-*-irix6*)
1516   # Find out which ABI we are using.
1517   echo '#line 1518 "configure"' > conftest.$ac_ext
1518   if { (eval echo configure:1519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1519     case "`/usr/bin/file conftest.o`" in
1520     *32-bit*)
1521       LD="${LD-ld} -32"
1522       ;;
1523     *N32*)
1524       LD="${LD-ld} -n32"
1525       ;;
1526     *64-bit*)
1527       LD="${LD-ld} -64"
1528       ;;
1529     esac
1530   fi
1531   rm -rf conftest*
1532   ;;
1533
1534 *-*-sco3.2v5*)
1535   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1536   CFLAGS="$CFLAGS -belf"
1537   ;;
1538 esac
1539
1540 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
1541 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1542 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
1543 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
1544 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1545 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1546
1547                       ac_ext=C
1548 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1549 ac_cpp='$CXXCPP $CPPFLAGS'
1550 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1551 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1552 cross_compiling=$ac_cv_prog_cxx_cross
1553
1554
1555 ac_ext=C
1556 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1557 ac_cpp='$CXXCPP $CPPFLAGS'
1558 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1559 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1560 cross_compiling=$ac_cv_prog_cxx_cross
1561
1562 echo $ac_n "checking for bool type""... $ac_c" 1>&6
1563 echo "configure:1564: checking for bool type" >&5
1564 if eval "test \"`echo '$''{'cl_cv_cplusplus_bool'+set}'`\" = set"; then
1565   echo $ac_n "(cached) $ac_c" 1>&6
1566 else
1567   
1568 cat > conftest.$ac_ext <<EOF
1569 #line 1570 "configure"
1570 #include "confdefs.h"
1571
1572 int main() {
1573 bool x;
1574 ; return 0; }
1575 EOF
1576 if { (eval echo configure:1577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1577   rm -rf conftest*
1578   cl_cv_cplusplus_bool=yes
1579 else
1580   echo "configure: failed program was:" >&5
1581   cat conftest.$ac_ext >&5
1582   rm -rf conftest*
1583   cl_cv_cplusplus_bool=no
1584 fi
1585 rm -f conftest*
1586
1587 fi
1588
1589 echo "$ac_t""$cl_cv_cplusplus_bool" 1>&6
1590 if test $cl_cv_cplusplus_bool = yes; then
1591   cat >> confdefs.h <<\EOF
1592 #define HAVE_BOOL 1
1593 EOF
1594
1595 else
1596   cat >> confdefs.h <<\EOF
1597 #define bool int
1598 EOF
1599
1600 fi
1601 ac_ext=C
1602 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1603 ac_cpp='$CXXCPP $CPPFLAGS'
1604 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1605 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1606 cross_compiling=$ac_cv_prog_cxx_cross
1607
1608
1609                       echo $ac_n "checking for long long type""... $ac_c" 1>&6
1610 echo "configure:1611: checking for long long type" >&5
1611 if eval "test \"`echo '$''{'cl_cv_c_longlong'+set}'`\" = set"; then
1612   echo $ac_n "(cached) $ac_c" 1>&6
1613 else
1614   
1615 if test "$cross_compiling" = yes; then
1616   cl_cv_c_longlong="guessing no"
1617 else
1618   cat > conftest.$ac_ext <<EOF
1619 #line 1620 "configure"
1620 #include "confdefs.h"
1621 #ifdef __cplusplus
1622 extern "C" void exit(int);
1623 #endif
1624 int main()
1625 {
1626 /* long longs don't work right with gcc-2.7.2 on m68k */
1627 /* long longs don't work right with gcc-2.7.2 on rs6000: avcall/tests.c gets
1628    miscompiled. */
1629 #ifdef __GNUC__
1630 #if defined(__m68k__) || (defined(_IBMR2) || defined(__powerpc))
1631 #if (__GNUC__ == 2)
1632 #if (__GNUC_MINOR__ <= 7)
1633   exit(1);
1634 #endif
1635 #endif
1636 #endif
1637 #endif
1638   { long x = 944938507; long y = 737962842; long z = 162359677;
1639     exit(!(((long long) x)*((long long) y)>>32 == z));
1640   }
1641 }
1642 EOF
1643 if { (eval echo configure:1644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1644 then
1645   cl_cv_c_longlong=yes
1646 else
1647   echo "configure: failed program was:" >&5
1648   cat conftest.$ac_ext >&5
1649   rm -fr conftest*
1650   cl_cv_c_longlong=no
1651 fi
1652 if test -f core; then
1653   coredir=core`/bin/sh -c 'echo $$'`
1654   mkdir $coredir
1655   cp confdefs.h $coredir/confdefs.h
1656   mv conftest.c $coredir/conftest.c
1657   mv conftest $coredir/conftest
1658   mv core $coredir/core
1659   echo "warning: test program dumped core -- see subdirectory $coredir"
1660 fi
1661 rm -fr conftest*
1662 fi
1663
1664
1665 fi
1666 echo "$ac_t""$cl_cv_c_longlong" 1>&6
1667 case "$cl_cv_c_longlong" in
1668   *yes) cat >> confdefs.h <<\EOF
1669 #define HAVE_LONGLONG 1
1670 EOF
1671  ;;
1672   *no) ;;
1673 esac
1674
1675                       echo $ac_n "checking for long double type""... $ac_c" 1>&6
1676 echo "configure:1677: checking for long double type" >&5
1677 if eval "test \"`echo '$''{'cl_cv_c_longdouble'+set}'`\" = set"; then
1678   echo $ac_n "(cached) $ac_c" 1>&6
1679 else
1680   
1681 if test "$cross_compiling" = yes; then
1682   cl_cv_c_longdouble="guessing no"
1683 else
1684   cat > conftest.$ac_ext <<EOF
1685 #line 1686 "configure"
1686 #include "confdefs.h"
1687 #ifdef __cplusplus
1688 extern "C" void exit(int);
1689 #endif
1690 int main()
1691 { long double x = 2.7182818284590452354L; x = x*x; exit (x==0.0L); }
1692 EOF
1693 if { (eval echo configure:1694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1694 then
1695   cl_cv_c_longdouble=yes
1696 else
1697   echo "configure: failed program was:" >&5
1698   cat conftest.$ac_ext >&5
1699   rm -fr conftest*
1700   cl_cv_c_longdouble=no
1701 fi
1702 if test -f core; then
1703   coredir=core`/bin/sh -c 'echo $$'`
1704   mkdir $coredir
1705   cp confdefs.h $coredir/confdefs.h
1706   mv conftest.c $coredir/conftest.c
1707   mv conftest $coredir/conftest
1708   mv core $coredir/core
1709   echo "warning: test program dumped core -- see subdirectory $coredir"
1710 fi
1711 rm -fr conftest*
1712 fi
1713
1714
1715 fi
1716 echo "$ac_t""$cl_cv_c_longdouble" 1>&6
1717 case "$cl_cv_c_longdouble" in
1718   *yes) cat >> confdefs.h <<\EOF
1719 #define HAVE_LONGDOUBLE 1
1720 EOF
1721  ;;
1722   *no) ;;
1723 esac
1724
1725                       echo $ac_n "checking for working template<>""... $ac_c" 1>&6
1726 echo "configure:1727: checking for working template<>" >&5
1727 if eval "test \"`echo '$''{'cl_cv_c_templatenull'+set}'`\" = set"; then
1728   echo $ac_n "(cached) $ac_c" 1>&6
1729 else
1730   
1731 cat > conftest.$ac_ext <<EOF
1732 #line 1733 "configure"
1733 #include "confdefs.h"
1734 template <class T> class c {}; template <> class c<int> { int x; };
1735 int main() {
1736
1737 ; return 0; }
1738 EOF
1739 if { (eval echo configure:1740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1740   rm -rf conftest*
1741   cl_cv_c_templatenull=yes
1742 else
1743   echo "configure: failed program was:" >&5
1744   cat conftest.$ac_ext >&5
1745   rm -rf conftest*
1746   cl_cv_c_templatenull=no
1747 fi
1748 rm -f conftest*
1749
1750 fi
1751
1752 echo "$ac_t""$cl_cv_c_templatenull" 1>&6
1753 if test $cl_cv_c_templatenull = yes; then
1754   cat >> confdefs.h <<\EOF
1755 #define HAVE_TEMPLATE_NULL 1
1756 EOF
1757
1758 fi
1759
1760
1761                       if test -n "$GCC"; then
1762 echo $ac_n "checking for the global constructors function prefix""... $ac_c" 1>&6
1763 echo "configure:1764: checking for the global constructors function prefix" >&5
1764 if eval "test \"`echo '$''{'cl_cv_cplusplus_ctorprefix'+set}'`\" = set"; then
1765   echo $ac_n "(cached) $ac_c" 1>&6
1766 else
1767   
1768 cat > conftest.cc << EOF
1769 struct foo { foo (); };
1770 foo foobar;
1771 EOF
1772 # look for the assembly language name in the .s file
1773 { ac_try='${CXX-g++} $CXXFLAGS -S conftest.cc'; { (eval echo configure:1774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } >/dev/null 2>&1
1774 if grep '_GLOBAL_\$I\$foobar' conftest.s >/dev/null ; then
1775   cl_cv_cplusplus_ctorprefix='_GLOBAL_$I$'
1776 else
1777   if grep '_GLOBAL_\.I\.foobar' conftest.s >/dev/null ; then
1778     cl_cv_cplusplus_ctorprefix='_GLOBAL_.I.'
1779   else
1780     if grep '_GLOBAL__I_foobar' conftest.s >/dev/null ; then
1781       cl_cv_cplusplus_ctorprefix='_GLOBAL__I_'
1782     else
1783       cl_cv_cplusplus_ctorprefix=unknown
1784     fi
1785   fi
1786 fi
1787 rm -f conftest*
1788
1789 fi
1790 echo "$ac_t""$cl_cv_cplusplus_ctorprefix" 1>&6
1791 if test "$cl_cv_cplusplus_ctorprefix" '!=' unknown; then
1792   ac_value='"'"$cl_cv_cplusplus_ctorprefix"'"'
1793   cat >> confdefs.h <<EOF
1794 #define CL_GLOBAL_CONSTRUCTOR_PREFIX $ac_value
1795 EOF
1796
1797   ac_value=`echo "$ac_value" | sed -e 's,I,D,'`
1798   cat >> confdefs.h <<EOF
1799 #define CL_GLOBAL_DESTRUCTOR_PREFIX $ac_value
1800 EOF
1801
1802 echo $ac_n "checking whether the global constructors function need to be exported""... $ac_c" 1>&6
1803 echo "configure:1804: checking whether the global constructors function need to be exported" >&5
1804 if eval "test \"`echo '$''{'cl_cv_cplusplus_ctorexport'+set}'`\" = set"; then
1805   echo $ac_n "(cached) $ac_c" 1>&6
1806 else
1807   
1808 cat > conftest1.cc << EOF
1809 struct foo { foo (); };
1810 foo foobar;
1811 EOF
1812 cat > conftest2.cc << EOF
1813 #include "confdefs.h"
1814 #ifdef ASM_UNDERSCORE
1815 #define ASM_UNDERSCORE_PREFIX "_"
1816 #else
1817 #define ASM_UNDERSCORE_PREFIX ""
1818 #endif
1819 struct foo { foo (); };
1820 foo::foo () {}
1821 extern "C" void ctor (void) __asm__ (ASM_UNDERSCORE_PREFIX CL_GLOBAL_CONSTRUCTOR_PREFIX "foobar");
1822 int main() { ctor(); return 0; }
1823 EOF
1824 if { ac_try='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest1.cc conftest2.cc $LIBS 1>&5'; { (eval echo configure:1825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } >/dev/null 2>&1 && test -s conftest${ac_exeext}; then
1825   cl_cv_cplusplus_ctorexport=no
1826 else
1827   cl_cv_cplusplus_ctorexport=yes
1828 fi
1829 rm -f conftest*
1830
1831 fi
1832 echo "$ac_t""$cl_cv_cplusplus_ctorexport" 1>&6
1833 if test "$cl_cv_cplusplus_ctorexport" = yes; then
1834   cat >> confdefs.h <<\EOF
1835 #define CL_NEED_GLOBALIZE_CTORDTOR 1
1836 EOF
1837
1838 fi
1839 fi
1840 fi
1841
1842                       for ac_hdr in unistd.h
1843 do
1844 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1845 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1846 echo "configure:1847: checking for $ac_hdr" >&5
1847 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1848   echo $ac_n "(cached) $ac_c" 1>&6
1849 else
1850   cat > conftest.$ac_ext <<EOF
1851 #line 1852 "configure"
1852 #include "confdefs.h"
1853 #include <$ac_hdr>
1854 EOF
1855 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1856 { (eval echo configure:1857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1857 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1858 if test -z "$ac_err"; then
1859   rm -rf conftest*
1860   eval "ac_cv_header_$ac_safe=yes"
1861 else
1862   echo "$ac_err" >&5
1863   echo "configure: failed program was:" >&5
1864   cat conftest.$ac_ext >&5
1865   rm -rf conftest*
1866   eval "ac_cv_header_$ac_safe=no"
1867 fi
1868 rm -f conftest*
1869 fi
1870 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1871   echo "$ac_t""yes" 1>&6
1872     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1873   cat >> confdefs.h <<EOF
1874 #define $ac_tr_hdr 1
1875 EOF
1876  
1877 else
1878   echo "$ac_t""no" 1>&6
1879 fi
1880 done
1881
1882
1883                       # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1884 # for constant arguments.  Useless!
1885 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1886 echo "configure:1887: checking for working alloca.h" >&5
1887 if eval "test \"`echo '$''{'cl_cv_header_alloca_h'+set}'`\" = set"; then
1888   echo $ac_n "(cached) $ac_c" 1>&6
1889 else
1890   
1891 cat > conftest.$ac_ext <<EOF
1892 #line 1893 "configure"
1893 #include "confdefs.h"
1894 #include <alloca.h>
1895 int main() {
1896 char *p = (char *) alloca(2 * sizeof(int));
1897 ; return 0; }
1898 EOF
1899 if { (eval echo configure:1900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1900   rm -rf conftest*
1901   cl_cv_header_alloca_h=yes
1902 else
1903   echo "configure: failed program was:" >&5
1904   cat conftest.$ac_ext >&5
1905   rm -rf conftest*
1906   cl_cv_header_alloca_h=no
1907 fi
1908 rm -f conftest*
1909
1910 fi
1911
1912 echo "$ac_t""$cl_cv_header_alloca_h" 1>&6
1913 if test $cl_cv_header_alloca_h = yes; then
1914   cat >> confdefs.h <<\EOF
1915 #define HAVE_ALLOCA_H 1
1916 EOF
1917
1918 fi
1919 decl="#ifdef __GNUC__
1920 #define alloca __builtin_alloca
1921 #else
1922 #ifdef _MSC_VER
1923 #include <malloc.h>
1924 #define alloca _alloca
1925 #else
1926 #ifdef HAVE_ALLOCA_H
1927 #include <alloca.h>
1928 #else
1929 #ifdef _AIX
1930  #pragma alloca
1931 #else
1932 #ifndef alloca
1933 char *alloca ();
1934 #endif
1935 #endif
1936 #endif
1937 #endif
1938 #endif
1939 "
1940 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1941 echo "configure:1942: checking for alloca" >&5
1942 if eval "test \"`echo '$''{'cl_cv_func_alloca'+set}'`\" = set"; then
1943   echo $ac_n "(cached) $ac_c" 1>&6
1944 else
1945   
1946 cat > conftest.$ac_ext <<EOF
1947 #line 1948 "configure"
1948 #include "confdefs.h"
1949 $decl
1950 int main() {
1951 char *p = (char *) alloca(1);
1952 ; return 0; }
1953 EOF
1954 if { (eval echo configure:1955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1955   rm -rf conftest*
1956   cl_cv_func_alloca=yes
1957 else
1958   echo "configure: failed program was:" >&5
1959   cat conftest.$ac_ext >&5
1960   rm -rf conftest*
1961   cl_cv_func_alloca=no
1962 fi
1963 rm -f conftest*
1964
1965 fi
1966
1967 echo "$ac_t""$cl_cv_func_alloca" 1>&6
1968 if test $cl_cv_func_alloca = yes; then
1969   :
1970 else
1971   alloca_missing=1
1972 fi
1973 if test -n "$alloca_missing"; then
1974   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1975   # that cause trouble.  Some versions do not even contain alloca or
1976   # contain a buggy version.  If you still want to use their alloca,
1977   # use ar to extract alloca.o from them instead of compiling alloca.c.
1978   ALLOCA=alloca.${ac_objext}
1979   cat >> confdefs.h <<\EOF
1980 #define NO_ALLOCA 1
1981 EOF
1982
1983 fi
1984
1985                       echo $ac_n "checking for fpu_control_t""... $ac_c" 1>&6
1986 echo "configure:1987: checking for fpu_control_t" >&5
1987 if eval "test \"`echo '$''{'cl_cv_type_fpu_control_t'+set}'`\" = set"; then
1988   echo $ac_n "(cached) $ac_c" 1>&6
1989 else
1990   
1991 cat > conftest.$ac_ext <<EOF
1992 #line 1993 "configure"
1993 #include "confdefs.h"
1994 #include <fpu_control.h>
1995 int main() {
1996 fpu_control_t x;
1997 ; return 0; }
1998 EOF
1999 if { (eval echo configure:2000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2000   rm -rf conftest*
2001   cl_cv_type_fpu_control_t=yes
2002 else
2003   echo "configure: failed program was:" >&5
2004   cat conftest.$ac_ext >&5
2005   rm -rf conftest*
2006   cl_cv_type_fpu_control_t=no
2007 fi
2008 rm -f conftest*
2009
2010 fi
2011
2012 echo "$ac_t""$cl_cv_type_fpu_control_t" 1>&6
2013 if test $cl_cv_type_fpu_control_t = yes; then
2014   cat >> confdefs.h <<\EOF
2015 #define HAVE_FPU_CONTROL_T 1
2016 EOF
2017
2018 fi
2019
2020 echo $ac_n "checking for __setfpucw""... $ac_c" 1>&6
2021 echo "configure:2022: checking for __setfpucw" >&5
2022 if eval "test \"`echo '$''{'cl_cv_func_setfpucw'+set}'`\" = set"; then
2023   echo $ac_n "(cached) $ac_c" 1>&6
2024 else
2025   
2026 cat > conftest.$ac_ext <<EOF
2027 #line 2028 "configure"
2028 #include "confdefs.h"
2029 #include <fpu_control.h>
2030 int main() {
2031 __setfpucw(_FPU_IEEE);
2032 ; return 0; }
2033 EOF
2034 if { (eval echo configure:2035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2035   rm -rf conftest*
2036   cl_cv_func_setfpucw=yes
2037 else
2038   echo "configure: failed program was:" >&5
2039   cat conftest.$ac_ext >&5
2040   rm -rf conftest*
2041   cl_cv_func_setfpucw=no
2042 fi
2043 rm -f conftest*
2044
2045 fi
2046
2047 echo "$ac_t""$cl_cv_func_setfpucw" 1>&6
2048 if test $cl_cv_func_setfpucw = yes; then
2049   cat >> confdefs.h <<\EOF
2050 #define HAVE_SETFPUCW 1
2051 EOF
2052
2053 fi
2054
2055
2056                       
2057 for ac_func in gettimeofday
2058 do
2059 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2060 echo "configure:2061: checking for $ac_func" >&5
2061 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2062   echo $ac_n "(cached) $ac_c" 1>&6
2063 else
2064   cat > conftest.$ac_ext <<EOF
2065 #line 2066 "configure"
2066 #include "confdefs.h"
2067 /* System header to define __stub macros and hopefully few prototypes,
2068     which can conflict with char $ac_func(); below.  */
2069 #include <assert.h>
2070 /* Override any gcc2 internal prototype to avoid an error.  */
2071 #ifdef __cplusplus
2072 extern "C"
2073 #endif
2074 /* We use char because int might match the return type of a gcc2
2075    builtin and then its argument prototype would still apply.  */
2076 char $ac_func();
2077
2078 int main() {
2079
2080 /* The GNU C library defines this for functions which it implements
2081     to always fail with ENOSYS.  Some functions are actually named
2082     something starting with __ and the normal name is an alias.  */
2083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2084 choke me
2085 #else
2086 $ac_func();
2087 #endif
2088
2089 ; return 0; }
2090 EOF
2091 if { (eval echo configure:2092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2092   rm -rf conftest*
2093   eval "ac_cv_func_$ac_func=yes"
2094 else
2095   echo "configure: failed program was:" >&5
2096   cat conftest.$ac_ext >&5
2097   rm -rf conftest*
2098   eval "ac_cv_func_$ac_func=no"
2099 fi
2100 rm -f conftest*
2101 fi
2102
2103 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2104   echo "$ac_t""yes" 1>&6
2105     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2106   cat >> confdefs.h <<EOF
2107 #define $ac_tr_func 1
2108 EOF
2109  
2110 else
2111   echo "$ac_t""no" 1>&6
2112 fi
2113 done
2114 if test $ac_cv_func_gettimeofday = yes; then
2115 echo $ac_n "checking for gettimeofday declaration""... $ac_c" 1>&6
2116 echo "configure:2117: checking for gettimeofday declaration" >&5
2117 if eval "test \"`echo '$''{'cl_cv_proto_gettimeofday'+set}'`\" = set"; then
2118   echo $ac_n "(cached) $ac_c" 1>&6
2119 else
2120   
2121 cat > conftest.$ac_ext <<EOF
2122 #line 2123 "configure"
2123 #include "confdefs.h"
2124
2125 #include <sys/types.h>
2126 #include <sys/time.h>
2127
2128 extern
2129 #ifdef __cplusplus
2130 "C"
2131 #endif
2132
2133 #if defined(__STDC__) || defined(__cplusplus)
2134 int gettimeofday (struct timeval * tp, struct timezone * tzp);
2135 #else
2136 int gettimeofday();
2137 #endif
2138
2139 int main() {
2140
2141 ; return 0; }
2142 EOF
2143 if { (eval echo configure:2144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2144   rm -rf conftest*
2145   cl_cv_proto_gettimeofday_dots=no
2146 cl_cv_proto_gettimeofday_arg2="struct timezone *"
2147 else
2148   echo "configure: failed program was:" >&5
2149   cat conftest.$ac_ext >&5
2150   rm -rf conftest*
2151   cat > conftest.$ac_ext <<EOF
2152 #line 2153 "configure"
2153 #include "confdefs.h"
2154
2155 #include <sys/types.h>
2156 #include <sys/time.h>
2157
2158 extern
2159 #ifdef __cplusplus
2160 "C"
2161 #endif
2162
2163 #if defined(__STDC__) || defined(__cplusplus)
2164 int gettimeofday (struct timeval * tp, void * tzp);
2165 #else
2166 int gettimeofday();
2167 #endif
2168
2169 int main() {
2170
2171 ; return 0; }
2172 EOF
2173 if { (eval echo configure:2174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2174   rm -rf conftest*
2175   cl_cv_proto_gettimeofday_dots=no
2176 cl_cv_proto_gettimeofday_arg2="void *"
2177 else
2178   echo "configure: failed program was:" >&5
2179   cat conftest.$ac_ext >&5
2180   rm -rf conftest*
2181   cl_cv_proto_gettimeofday_dots=yes
2182 cl_cv_proto_gettimeofday_arg2="..."
2183 fi
2184 rm -f conftest*
2185
2186 fi
2187 rm -f conftest*
2188
2189
2190 cl_cv_proto_gettimeofday="extern int gettimeofday (struct timeval *, $cl_cv_proto_gettimeofday_arg2);"
2191 fi
2192
2193 cl_cv_proto_gettimeofday=`echo "$cl_cv_proto_gettimeofday" | tr -s ' ' | sed -e 's/( /(/'`
2194 echo "$ac_t""${ac_tt}$cl_cv_proto_gettimeofday" 1>&6
2195
2196
2197 if test $cl_cv_proto_gettimeofday_dots = yes; then
2198 cat >> confdefs.h <<\EOF
2199 #define GETTIMEOFDAY_DOTS 1
2200 EOF
2201
2202 else
2203 cat >> confdefs.h <<EOF
2204 #define GETTIMEOFDAY_TZP_T $cl_cv_proto_gettimeofday_arg2
2205 EOF
2206
2207 fi
2208 fi
2209
2210                       
2211 for ac_func in ftime
2212 do
2213 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2214 echo "configure:2215: checking for $ac_func" >&5
2215 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2216   echo $ac_n "(cached) $ac_c" 1>&6
2217 else
2218   cat > conftest.$ac_ext <<EOF
2219 #line 2220 "configure"
2220 #include "confdefs.h"
2221 /* System header to define __stub macros and hopefully few prototypes,
2222     which can conflict with char $ac_func(); below.  */
2223 #include <assert.h>
2224 /* Override any gcc2 internal prototype to avoid an error.  */
2225 #ifdef __cplusplus
2226 extern "C"
2227 #endif
2228 /* We use char because int might match the return type of a gcc2
2229    builtin and then its argument prototype would still apply.  */
2230 char $ac_func();
2231
2232 int main() {
2233
2234 /* The GNU C library defines this for functions which it implements
2235     to always fail with ENOSYS.  Some functions are actually named
2236     something starting with __ and the normal name is an alias.  */
2237 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2238 choke me
2239 #else
2240 $ac_func();
2241 #endif
2242
2243 ; return 0; }
2244 EOF
2245 if { (eval echo configure:2246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2246   rm -rf conftest*
2247   eval "ac_cv_func_$ac_func=yes"
2248 else
2249   echo "configure: failed program was:" >&5
2250   cat conftest.$ac_ext >&5
2251   rm -rf conftest*
2252   eval "ac_cv_func_$ac_func=no"
2253 fi
2254 rm -f conftest*
2255 fi
2256
2257 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2258   echo "$ac_t""yes" 1>&6
2259     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2260   cat >> confdefs.h <<EOF
2261 #define $ac_tr_func 1
2262 EOF
2263  
2264 else
2265   echo "$ac_t""no" 1>&6
2266 fi
2267 done
2268
2269                       if test $ac_cv_func_gettimeofday = no -a $ac_cv_func_ftime = no; then
2270 echo $ac_n "checking for times""... $ac_c" 1>&6
2271 echo "configure:2272: checking for times" >&5
2272 if eval "test \"`echo '$''{'ac_cv_func_times'+set}'`\" = set"; then
2273   echo $ac_n "(cached) $ac_c" 1>&6
2274 else
2275   cat > conftest.$ac_ext <<EOF
2276 #line 2277 "configure"
2277 #include "confdefs.h"
2278 /* System header to define __stub macros and hopefully few prototypes,
2279     which can conflict with char times(); below.  */
2280 #include <assert.h>
2281 /* Override any gcc2 internal prototype to avoid an error.  */
2282 #ifdef __cplusplus
2283 extern "C"
2284 #endif
2285 /* We use char because int might match the return type of a gcc2
2286    builtin and then its argument prototype would still apply.  */
2287 char times();
2288
2289 int main() {
2290
2291 /* The GNU C library defines this for functions which it implements
2292     to always fail with ENOSYS.  Some functions are actually named
2293     something starting with __ and the normal name is an alias.  */
2294 #if defined (__stub_times) || defined (__stub___times)
2295 choke me
2296 #else
2297 times();
2298 #endif
2299
2300 ; return 0; }
2301 EOF
2302 if { (eval echo configure:2303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2303   rm -rf conftest*
2304   eval "ac_cv_func_times=yes"
2305 else
2306   echo "configure: failed program was:" >&5
2307   cat conftest.$ac_ext >&5
2308   rm -rf conftest*
2309   eval "ac_cv_func_times=no"
2310 fi
2311 rm -f conftest*
2312 fi
2313
2314 if eval "test \"`echo '$ac_cv_func_'times`\" = yes"; then
2315   echo "$ac_t""yes" 1>&6
2316   :
2317 else
2318   echo "$ac_t""no" 1>&6
2319 no_times=1
2320 fi
2321 if test -z "$no_times"; then
2322 echo $ac_n "checking for times return value""... $ac_c" 1>&6
2323 echo "configure:2324: checking for times return value" >&5
2324 if eval "test \"`echo '$''{'cl_cv_func_times_return'+set}'`\" = set"; then
2325   echo $ac_n "(cached) $ac_c" 1>&6
2326 else
2327   
2328 if test "$cross_compiling" = yes; then
2329   cl_cv_func_times_return="guessing no"
2330 else
2331   cat > conftest.$ac_ext <<EOF
2332 #line 2333 "configure"
2333 #include "confdefs.h"
2334 #ifdef __cplusplus
2335 extern "C" void exit(int);
2336 #endif
2337
2338 #include <sys/types.h>
2339 #include <time.h> /* needed for CLK_TCK */
2340 #ifndef CLK_TCK
2341 #include <sys/time.h> /* needed for CLK_TCK on SYSV PTX */
2342 #endif
2343 #include <sys/times.h>
2344 int main ()
2345 { struct tms buffer;
2346   clock_t result1;
2347   clock_t result2;
2348   int ticks;
2349   result1 = times(&buffer);
2350   if ((result1 == (clock_t)0) || (result1 == (clock_t)(-1))) exit(1);
2351   sleep(1);
2352   result2 = times(&buffer);
2353   if ((result2 == (clock_t)0) || (result2 == (clock_t)(-1))) exit(1);
2354   ticks = result2 - result1;
2355   exit(!((ticks >= CLK_TCK/2) && (ticks <= 3*CLK_TCK/2)));
2356 }
2357 EOF
2358 if { (eval echo configure:2359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2359 then
2360   cl_cv_func_times_return=yes
2361 else
2362   echo "configure: failed program was:" >&5
2363   cat conftest.$ac_ext >&5
2364   rm -fr conftest*
2365   cl_cv_func_times_return=no
2366 fi
2367 if test -f core; then
2368   coredir=core`/bin/sh -c 'echo $$'`
2369   mkdir $coredir
2370   cp confdefs.h $coredir/confdefs.h
2371   mv conftest.c $coredir/conftest.c
2372   mv conftest $coredir/conftest
2373   mv core $coredir/core
2374   echo "warning: test program dumped core -- see subdirectory $coredir"
2375 fi
2376 rm -fr conftest*
2377 fi
2378
2379
2380 fi
2381 echo "$ac_t""$cl_cv_func_times_return" 1>&6
2382 case "$cl_cv_func_times_return" in
2383   *yes) cat >> confdefs.h <<\EOF
2384 #define HAVE_TIMES_CLOCK 1
2385 EOF
2386  ;;
2387   *no)  ;;
2388 esac
2389 fi
2390 fi
2391
2392                       for ac_hdr in sys/resource.h sys/times.h
2393 do
2394 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2395 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2396 echo "configure:2397: checking for $ac_hdr" >&5
2397 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2398   echo $ac_n "(cached) $ac_c" 1>&6
2399 else
2400   cat > conftest.$ac_ext <<EOF
2401 #line 2402 "configure"
2402 #include "confdefs.h"
2403 #include <$ac_hdr>
2404 EOF
2405 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2406 { (eval echo configure:2407: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2407 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2408 if test -z "$ac_err"; then
2409   rm -rf conftest*
2410   eval "ac_cv_header_$ac_safe=yes"
2411 else
2412   echo "$ac_err" >&5
2413   echo "configure: failed program was:" >&5
2414   cat conftest.$ac_ext >&5
2415   rm -rf conftest*
2416   eval "ac_cv_header_$ac_safe=no"
2417 fi
2418 rm -f conftest*
2419 fi
2420 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2421   echo "$ac_t""yes" 1>&6
2422     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2423   cat >> confdefs.h <<EOF
2424 #define $ac_tr_hdr 1
2425 EOF
2426  
2427 else
2428   echo "$ac_t""no" 1>&6
2429 fi
2430 done
2431 if test $ac_cv_header_sys_resource_h = yes; then
2432     echo $ac_n "checking for getrusage""... $ac_c" 1>&6
2433 echo "configure:2434: checking for getrusage" >&5
2434 if eval "test \"`echo '$''{'cl_cv_func_getrusage'+set}'`\" = set"; then
2435   echo $ac_n "(cached) $ac_c" 1>&6
2436 else
2437   
2438 cat > conftest.$ac_ext <<EOF
2439 #line 2440 "configure"
2440 #include "confdefs.h"
2441 #include <sys/types.h> /* NetBSD 1.0 needs this */
2442 #include <sys/time.h>
2443 #include <sys/resource.h>
2444 int main() {
2445 struct rusage x; int y = RUSAGE_SELF; getrusage(y,&x); x.ru_utime.tv_sec;
2446 ; return 0; }
2447 EOF
2448 if { (eval echo configure:2449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2449   rm -rf conftest*
2450   cl_cv_func_getrusage=yes
2451 else
2452   echo "configure: failed program was:" >&5
2453   cat conftest.$ac_ext >&5
2454   rm -rf conftest*
2455   cl_cv_func_getrusage=no
2456 fi
2457 rm -f conftest*
2458
2459 fi
2460
2461 echo "$ac_t""$cl_cv_func_getrusage" 1>&6
2462 if test $cl_cv_func_getrusage = yes; then
2463   cat >> confdefs.h <<\EOF
2464 #define HAVE_GETRUSAGE 1
2465 EOF
2466
2467 fi
2468   if test $cl_cv_func_getrusage = yes; then
2469     echo $ac_n "checking for getrusage declaration""... $ac_c" 1>&6
2470 echo "configure:2471: checking for getrusage declaration" >&5
2471 if eval "test \"`echo '$''{'cl_cv_proto_getrusage'+set}'`\" = set"; then
2472   echo $ac_n "(cached) $ac_c" 1>&6
2473 else
2474   
2475     cat > conftest.$ac_ext <<EOF
2476 #line 2477 "configure"
2477 #include "confdefs.h"
2478
2479 #include <stdlib.h>
2480 #ifdef HAVE_UNISTD_H
2481 #include <unistd.h>
2482 #endif
2483 #include <sys/types.h> /* NetBSD 1.0 needs this */
2484 #include <sys/time.h>
2485 #include <sys/resource.h>
2486
2487 extern
2488 #ifdef __cplusplus
2489 "C"
2490 #endif
2491
2492 #if defined(__STDC__) || defined(__cplusplus)
2493 int getrusage (int who, struct rusage * rusage);
2494 #else
2495 int getrusage();
2496 #endif
2497
2498 int main() {
2499
2500 ; return 0; }
2501 EOF
2502 if { (eval echo configure:2503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2503   rm -rf conftest*
2504   cl_cv_proto_getrusage_arg1="int"
2505 else
2506   echo "configure: failed program was:" >&5
2507   cat conftest.$ac_ext >&5
2508   rm -rf conftest*
2509   cl_cv_proto_getrusage_arg1="enum __rusage_who"
2510 fi
2511 rm -f conftest*
2512
2513
2514 cl_cv_proto_getrusage="extern int getrusage ($cl_cv_proto_getrusage_arg1, struct rusage *);"
2515 fi
2516
2517 cl_cv_proto_getrusage=`echo "$cl_cv_proto_getrusage" | tr -s ' ' | sed -e 's/( /(/'`
2518 echo "$ac_t""${ac_tt}$cl_cv_proto_getrusage" 1>&6
2519
2520
2521     cat >> confdefs.h <<EOF
2522 #define RUSAGE_WHO_T $cl_cv_proto_getrusage_arg1
2523 EOF
2524
2525   fi
2526 fi
2527
2528                       echo $ac_n "checking for perror declaration""... $ac_c" 1>&6
2529 echo "configure:2530: checking for perror declaration" >&5
2530 if eval "test \"`echo '$''{'cl_cv_proto_perror'+set}'`\" = set"; then
2531   echo $ac_n "(cached) $ac_c" 1>&6
2532 else
2533   
2534 cat > conftest.$ac_ext <<EOF
2535 #line 2536 "configure"
2536 #include "confdefs.h"
2537
2538 /* Some systems declare perror() in <errno.h>, some in <stdio.h>, some don't
2539    declare it at all. */
2540 #include <stdio.h>
2541 #include <errno.h>
2542 extern
2543 #ifdef __cplusplus
2544 "C"
2545 #endif
2546 double perror ();
2547 int main() {
2548
2549 ; return 0; }
2550 EOF
2551 if { (eval echo configure:2552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2552   rm -rf conftest*
2553   cl_cv_proto_perror=no
2554 else
2555   echo "configure: failed program was:" >&5
2556   cat conftest.$ac_ext >&5
2557   rm -rf conftest*
2558   cl_cv_proto_perror=yes
2559 fi
2560 rm -f conftest*
2561
2562 fi
2563
2564 echo "$ac_t""$cl_cv_proto_perror" 1>&6
2565 if test $cl_cv_proto_perror = yes; then
2566 cat >> confdefs.h <<\EOF
2567 #define HAVE_PERROR_DECL 1
2568 EOF
2569
2570 fi
2571
2572                       echo $ac_n "checking whether characters are unsigned""... $ac_c" 1>&6
2573 echo "configure:2574: checking whether characters are unsigned" >&5
2574 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2575   echo $ac_n "(cached) $ac_c" 1>&6
2576 else
2577   
2578 if test $ac_cv_prog_gcc = yes; then
2579   # GCC predefines this symbol on systems where it applies.
2580 cat > conftest.$ac_ext <<EOF
2581 #line 2582 "configure"
2582 #include "confdefs.h"
2583 #ifdef __CHAR_UNSIGNED__
2584   yes
2585 #endif
2586
2587 EOF
2588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2589   egrep "yes" >/dev/null 2>&1; then
2590   rm -rf conftest*
2591   ac_cv_c_char_unsigned=yes
2592 else
2593   rm -rf conftest*
2594   ac_cv_c_char_unsigned=no
2595 fi
2596 rm -f conftest*
2597
2598 else
2599 if test "$cross_compiling" = yes; then
2600   ac_cv_c_char_unsigned="guessing no"
2601 else
2602   cat > conftest.$ac_ext <<EOF
2603 #line 2604 "configure"
2604 #include "confdefs.h"
2605 #ifdef __cplusplus
2606 extern "C" void exit(int);
2607 #endif
2608 /* volatile prevents gcc2 from optimizing the test away on sparcs.  */
2609 #if !defined(__STDC__) || __STDC__ != 1
2610 #define volatile
2611 #endif
2612 int main() {
2613   volatile char c = 255; exit(c < 0);
2614 }
2615 EOF
2616 if { (eval echo configure:2617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2617 then
2618   ac_cv_c_char_unsigned=yes
2619 else
2620   echo "configure: failed program was:" >&5
2621   cat conftest.$ac_ext >&5
2622   rm -fr conftest*
2623   ac_cv_c_char_unsigned=no
2624 fi
2625 if test -f core; then
2626   coredir=core`/bin/sh -c 'echo $$'`
2627   mkdir $coredir
2628   cp confdefs.h $coredir/confdefs.h
2629   mv conftest.c $coredir/conftest.c
2630   mv conftest $coredir/conftest
2631   mv core $coredir/core
2632   echo "warning: test program dumped core -- see subdirectory $coredir"
2633 fi
2634 rm -fr conftest*
2635 fi
2636
2637 fi
2638 fi
2639 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2640 if test $ac_cv_prog_gcc = no; then
2641   # GCC defines __CHAR_UNSIGNED__ by itself, no need to fix up.
2642   case "$ac_cv_c_char_unsigned" in
2643     *yes) cat >> confdefs.h <<\EOF
2644 #define __CHAR_UNSIGNED__ 1
2645 EOF
2646  ;;
2647     *no) ;;
2648   esac
2649 fi
2650
2651                       test -d 'include' || mkdir 'include'
2652 cl_machine_file_c=${srcdir}/autoconf/intparam.c
2653 cl_machine_file_h=include/cl_intparam.h
2654 if test $cross_compiling = no; then
2655 if test -z "$cl_cv_file_intparam_h"; then
2656 echo "checking for integer types and behaviour" 1>&6
2657 echo "configure:2658: checking for integer types and behaviour" >&5
2658 cat > conftest.$ac_ext <<EOF
2659 #include "confdefs.h"
2660 EOF
2661 cat "$cl_machine_file_c" >> conftest.$ac_ext
2662 ORIGCC="$CC"
2663 if test $ac_cv_prog_gcc = yes; then
2664 # gcc -O (gcc version <= 2.3.2) crashes when compiling long long shifts for
2665 # target 80386. Strip "-O".
2666 CC=`echo "$CC " | sed -e 's/-O //g'`
2667 fi
2668 { (eval echo configure:2669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
2669 CC="$ORIGCC"
2670 if test -s conftest; then
2671   echo "creating $cl_machine_file_h"
2672   ./conftest > conftest.h
2673   if cmp -s "$cl_machine_file_h" conftest.h 2>/dev/null; then
2674     # The file exists and we would not be changing it
2675     rm -f conftest.h
2676   else
2677     rm -f "$cl_machine_file_h"
2678     mv conftest.h "$cl_machine_file_h"
2679   fi
2680   cl_cv_file_intparam_h=1
2681 else
2682   echo "creation of $cl_machine_file_h failed"
2683 fi
2684 rm -f conftest*
2685 fi
2686 else
2687 echo "cross-compiling - cannot create $cl_machine_file_h"
2688 fi
2689
2690                       cl_machine_file_c=${srcdir}/autoconf/floatparam.c
2691 cl_machine_file_h=include/cl_floatparam.h
2692 if test $cross_compiling = no; then
2693 if test -z "$cl_cv_file_floatparam_h"; then
2694 echo "checking for floating-point types and behaviour" 1>&6
2695 echo "configure:2696: checking for floating-point types and behaviour" >&5
2696 cat > conftest.$ac_ext <<EOF
2697 #include "confdefs.h"
2698 EOF
2699 cat "$cl_machine_file_c" >> conftest.$ac_ext
2700 ORIGCC="$CC"
2701 if test $ac_cv_prog_gcc = yes; then
2702 # gcc -O (gcc version <= 2.3.2) crashes when compiling long long shifts for
2703 # target 80386. Strip "-O".
2704 CC=`echo "$CC " | sed -e 's/-O //g'`
2705 fi
2706 { (eval echo configure:2707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
2707 CC="$ORIGCC"
2708 if test -s conftest; then
2709   echo "creating $cl_machine_file_h"
2710   ./conftest > conftest.h
2711   if cmp -s "$cl_machine_file_h" conftest.h 2>/dev/null; then
2712     # The file exists and we would not be changing it
2713     rm -f conftest.h
2714   else
2715     rm -f "$cl_machine_file_h"
2716     mv conftest.h "$cl_machine_file_h"
2717   fi
2718   cl_cv_file_floatparam_h=1
2719 else
2720   echo "creation of $cl_machine_file_h failed"
2721 fi
2722 rm -f conftest*
2723 fi
2724 else
2725 echo "cross-compiling - cannot create $cl_machine_file_h"
2726 fi
2727
2728                       # Check whether --with-gmp or --without-gmp was given.
2729 if test "${with_gmp+set}" = set; then
2730   withval="$with_gmp"
2731   :
2732 fi
2733
2734 if test -z "$with_gmp"; then
2735   if test -d "${srcdir}/gmp"; then
2736     with_gmp=yes
2737   else
2738     with_gmp=no
2739   fi
2740 fi
2741 if test "$with_gmp" = yes; then
2742   cat >> confdefs.h <<\EOF
2743 #define CL_USE_GMP 1
2744 EOF
2745
2746   GMP_INCLUDES='-I$(top_srcdir)/gmp'
2747   GMP_OBJDEPS='../gmp/mpn/libmpn.la'
2748   GMP_OBJS='../gmp/mpn/*.lo ../gmp/*.lo'
2749 else
2750   GMP_INCLUDES=''
2751   GMP_OBJDEPS=''
2752   GMP_OBJS=''
2753 fi
2754
2755
2756
2757 for f in 'tests/.gdbinit'; do
2758   if test '!' -f "$f"; then
2759     echo "creating $f"
2760     g=`echo "$f" | sed -e 's,/[^/]*$,,'`
2761     test "$g" = "$f" || test -d "$g" || mkdir "$g"
2762     cp "$srcdir/$f" "$f"
2763   fi
2764 done
2765 trap '' 1 2 15
2766 cat > confcache <<\EOF
2767 # This file is a shell script that caches the results of configure
2768 # tests run on this system so they can be shared between configure
2769 # scripts and configure runs.  It is not useful on other systems.
2770 # If it contains results you don't want to keep, you may remove or edit it.
2771 #
2772 # By default, configure uses ./config.cache as the cache file,
2773 # creating it if it does not exist already.  You can give configure
2774 # the --cache-file=FILE option to use a different cache file; that is
2775 # what configure does when it calls configure scripts in
2776 # subdirectories, so they share the cache.
2777 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2778 # config.status only pays attention to the cache file if you give it the
2779 # --recheck option to rerun configure.
2780 #
2781 EOF
2782 # The following way of writing the cache mishandles newlines in values,
2783 # but we know of no workaround that is simple, portable, and efficient.
2784 # So, don't put newlines in cache variables' values.
2785 # Ultrix sh set writes to stderr and can't be redirected directly,
2786 # and sets the high bit in the cache file unless we assign to the vars.
2787 (set) 2>&1 |
2788   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2789   *ac_space=\ *)
2790     # `set' does not quote correctly, so add quotes (double-quote substitution
2791     # turns \\\\ into \\, and sed turns \\ into \).
2792     sed -n \
2793       -e "s/'/'\\\\''/g" \
2794       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2795     ;;
2796   *)
2797     # `set' quotes correctly as required by POSIX, so do not add quotes.
2798     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2799     ;;
2800   esac >> confcache
2801 if cmp -s $cache_file confcache; then
2802   :
2803 else
2804   if test -w $cache_file; then
2805     echo "updating cache $cache_file"
2806     cat confcache > $cache_file
2807   else
2808     echo "not updating unwritable cache $cache_file"
2809   fi
2810 fi
2811 rm -f confcache
2812
2813 trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
2814
2815 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2816 # Let make expand exec_prefix.
2817 test "x$exec_prefix" = xNONE && exec_prefix='$(prefix)'
2818
2819 # Any assignment to VPATH causes Sun make to only execute
2820 # the first set of double-colon rules, so remove it if not needed.
2821 # If there is a colon in the path, we need to keep it.
2822 if test "x$srcdir" = x.; then
2823   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2824 fi
2825
2826 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2827
2828 DEFS=-DHAVE_CONFIG_H
2829
2830 # Without the "./", some shells look in PATH for config.status.
2831 : ${CONFIG_STATUS=./config.status}
2832
2833 echo creating $CONFIG_STATUS
2834 rm -f $CONFIG_STATUS
2835 cat > $CONFIG_STATUS <<EOF
2836 #! /bin/sh
2837 # Generated automatically by configure.
2838 # Run this file to recreate the current configuration.
2839 # This directory was configured as follows,
2840 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2841 #
2842 # $0 $ac_configure_args
2843 #
2844 # Compiler output produced by configure, useful for debugging
2845 # configure, is in ./config.log if it exists.
2846
2847 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2848 for ac_option
2849 do
2850   case "\$ac_option" in
2851   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2852     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2853     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2854   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2855     echo "$CONFIG_STATUS generated by autoconf version 2.13"
2856     exit 0 ;;
2857   -help | --help | --hel | --he | --h)
2858     echo "\$ac_cs_usage"; exit 0 ;;
2859   *) echo "\$ac_cs_usage"; exit 1 ;;
2860   esac
2861 done
2862
2863 ac_given_srcdir=$srcdir
2864
2865 trap 'rm -fr `echo "Makefile src/Makefile tests/Makefile benchmarks/Makefile examples/Makefile doc/Makefile include/cl_config.h src/base/cl_base_config.h src/base/cl_gmpconfig.h src/float/cl_float_config.h src/timing/cl_t_config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2866 EOF
2867 cat >> $CONFIG_STATUS <<EOF
2868
2869 # Protect against being on the right side of a sed subst in config.status.
2870 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2871  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2872 $ac_vpsub
2873 $extrasub
2874 s%@SHELL@%$SHELL%g
2875 s%@CFLAGS@%$CFLAGS%g
2876 s%@CPPFLAGS@%$CPPFLAGS%g
2877 s%@CXXFLAGS@%$CXXFLAGS%g
2878 s%@FFLAGS@%$FFLAGS%g
2879 s%@DEFS@%$DEFS%g
2880 s%@LDFLAGS@%$LDFLAGS%g
2881 s%@LIBS@%$LIBS%g
2882 s%@exec_prefix@%$exec_prefix%g
2883 s%@prefix@%$prefix%g
2884 s%@program_transform_name@%$program_transform_name%g
2885 s%@bindir@%$bindir%g
2886 s%@sbindir@%$sbindir%g
2887 s%@libexecdir@%$libexecdir%g
2888 s%@datadir@%$datadir%g
2889 s%@sysconfdir@%$sysconfdir%g
2890 s%@sharedstatedir@%$sharedstatedir%g
2891 s%@localstatedir@%$localstatedir%g
2892 s%@libdir@%$libdir%g
2893 s%@includedir@%$includedir%g
2894 s%@oldincludedir@%$oldincludedir%g
2895 s%@infodir@%$infodir%g
2896 s%@mandir@%$mandir%g
2897 s%@SET_MAKE@%$SET_MAKE%g
2898 s%@CC@%$CC%g
2899 s%@CPP@%$CPP%g
2900 s%@CXX@%$CXX%g
2901 s%@CXXCPP@%$CXXCPP%g
2902 s%@AS_UNDERSCORE@%$AS_UNDERSCORE%g
2903 s%@RANLIB@%$RANLIB%g
2904 s%@INSTALL@%$INSTALL%g
2905 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2906 s%@INSTALL_DATA@%$INSTALL_DATA%g
2907 s%@host@%$host%g
2908 s%@host_cpu@%$host_cpu%g
2909 s%@host_vendor@%$host_vendor%g
2910 s%@host_os@%$host_os%g
2911 s%@LD@%$LD%g
2912 s%@NM@%$NM%g
2913 s%@LN_S@%$LN_S%g
2914 s%@LIBTOOL@%$LIBTOOL%g
2915 s%@ALLOCA@%$ALLOCA%g
2916 s%@GMP_INCLUDES@%$GMP_INCLUDES%g
2917 s%@GMP_OBJDEPS@%$GMP_OBJDEPS%g
2918 s%@GMP_OBJS@%$GMP_OBJS%g
2919
2920 CEOF
2921 EOF
2922
2923 cat >> $CONFIG_STATUS <<\EOF
2924
2925 # Split the substitutions into bite-sized pieces for seds with
2926 # small command number limits, like on Digital OSF/1 and HP-UX.
2927 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2928 ac_file=1 # Number of current file.
2929 ac_beg=1 # First line for current file.
2930 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2931 ac_more_lines=:
2932 ac_sed_cmds=""
2933 while $ac_more_lines; do
2934   if test $ac_beg -gt 1; then
2935     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2936   else
2937     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2938   fi
2939   if test ! -s conftest.s$ac_file; then
2940     ac_more_lines=false
2941     rm -f conftest.s$ac_file
2942   else
2943     if test -z "$ac_sed_cmds"; then
2944       ac_sed_cmds="sed -f conftest.s$ac_file"
2945     else
2946       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2947     fi
2948     ac_file=`expr $ac_file + 1`
2949     ac_beg=$ac_end
2950     ac_end=`expr $ac_end + $ac_max_sed_cmds`
2951   fi
2952 done
2953 if test -z "$ac_sed_cmds"; then
2954   ac_sed_cmds=cat
2955 fi
2956 EOF
2957
2958 cat >> $CONFIG_STATUS <<EOF
2959
2960 CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile tests/Makefile benchmarks/Makefile examples/Makefile doc/Makefile"}
2961 EOF
2962 cat >> $CONFIG_STATUS <<\EOF
2963 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2964   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2965   case "$ac_file" in
2966   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2967        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2968   *) ac_file_in="${ac_file}.in" ;;
2969   esac
2970
2971   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2972
2973   # Remove last slash and all that follows it.  Not all systems have dirname.
2974   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2975   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2976     # The file is in a subdirectory.
2977     test ! -d "$ac_dir" && mkdir "$ac_dir"
2978     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2979     # A "../" for each directory in $ac_dir_suffix.
2980     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2981   else
2982     ac_dir_suffix= ac_dots=
2983   fi
2984
2985   case "$ac_given_srcdir" in
2986   .)  srcdir=.
2987       if test -z "$ac_dots"; then top_srcdir=.
2988       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2989   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2990   *) # Relative path.
2991     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2992     top_srcdir="$ac_dots$ac_given_srcdir" ;;
2993   esac
2994
2995
2996   echo creating "$ac_file"
2997   rm -f "$ac_file"
2998   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2999   case "$ac_file" in
3000   *Makefile*) ac_comsub="1i\\
3001 # $configure_input" ;;
3002   *) ac_comsub= ;;
3003   esac
3004
3005   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3006   sed -e "$ac_comsub
3007 s%@configure_input@%$configure_input%g
3008 s%@srcdir@%$srcdir%g
3009 s%@top_srcdir@%$top_srcdir%g
3010 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3011 fi; done
3012 rm -f conftest.s*
3013
3014 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3015 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3016 #
3017 # ac_d sets the value in "#define NAME VALUE" lines.
3018 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
3019 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
3020 ac_dC='\3'
3021 ac_dD='%g'
3022 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3023 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3024 ac_uB='\([      ]\)%\1#\2define\3'
3025 ac_uC=' '
3026 ac_uD='\4%g'
3027 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3028 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3029 ac_eB='$%\1#\2define\3'
3030 ac_eC=' '
3031 ac_eD='%g'
3032 # ac_f turns "#define NAME" without trailing blanks into "#define NAME VALUE".
3033 ac_fA='s%^\([   ]*\)#\([        ]*\)define\([   ][      ]*\)'
3034 ac_fB='$%\1#\2define\3'
3035 ac_fC=' '
3036 ac_fD='%g'
3037
3038 if test "${CONFIG_HEADERS+set}" != set; then
3039 EOF
3040 cat >> $CONFIG_STATUS <<EOF
3041   CONFIG_HEADERS="include/cl_config.h src/base/cl_base_config.h src/base/cl_gmpconfig.h src/float/cl_float_config.h src/timing/cl_t_config.h"
3042 EOF
3043 cat >> $CONFIG_STATUS <<\EOF
3044 fi
3045 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3046   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3047   case "$ac_file" in
3048   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3049        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3050   *) ac_file_in="${ac_file}.in" ;;
3051   esac
3052
3053   echo creating $ac_file
3054
3055   rm -f conftest.frag conftest.in conftest.out
3056   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3057   cat $ac_file_inputs > conftest.in
3058
3059 EOF
3060
3061 # Transform confdefs.h into a sed script conftest.vals that substitutes
3062 # the proper values into config.h.in to produce config.h.  And first:
3063 # Protect against being on the right side of a sed subst in config.status.
3064 # Protect against being in an unquoted here document in config.status.
3065 rm -f conftest.vals
3066 cat > conftest.hdr <<\EOF
3067 s/[\\&%]/\\&/g
3068 s%[\\$`]%\\&%g
3069 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3070 s%ac_d%ac_u%gp
3071 s%ac_u%ac_e%gp
3072 s%ac_e%ac_f%gp
3073 EOF
3074 sed -n -f conftest.hdr confdefs.h > conftest.vals
3075 rm -f conftest.hdr
3076
3077
3078 # Break up conftest.vals because some shells have a limit on
3079 # the size of here documents, and old seds have small limits too.
3080
3081 rm -f conftest.tail
3082 while :
3083 do
3084   ac_lines=`grep -c . conftest.vals`
3085   # grep -c gives empty output for an empty file on some AIX systems.
3086   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3087   # Write a limited-size here document to conftest.frag.
3088   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3089   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3090   echo 'CEOF
3091   sed -f conftest.frag conftest.in > conftest.out
3092   rm -f conftest.in
3093   mv conftest.out conftest.in
3094 ' >> $CONFIG_STATUS
3095   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3096   rm -f conftest.vals
3097   mv conftest.tail conftest.vals
3098 done
3099 rm -f conftest.vals
3100
3101 cat >> $CONFIG_STATUS <<\EOF
3102   rm -f conftest.frag conftest.h
3103   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
3104   cat conftest.in >> conftest.h
3105   rm -f conftest.in
3106   if cmp -s $ac_file conftest.h 2>/dev/null; then
3107     echo "$ac_file is unchanged"
3108     rm -f conftest.h
3109   else
3110     # Remove last slash and all that follows it.  Not all systems have dirname.
3111     ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3112     if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3113       # The file is in a subdirectory.
3114       test ! -d "$ac_dir" && mkdir "$ac_dir"
3115     fi
3116     rm -f $ac_file
3117     mv conftest.h $ac_file
3118   fi
3119 fi; done
3120
3121 EOF
3122 cat >> $CONFIG_STATUS <<EOF
3123
3124 EOF
3125 cat >> $CONFIG_STATUS <<\EOF
3126
3127 exit 0
3128 EOF
3129 chmod +x $CONFIG_STATUS
3130 rm -fr confdefs* $ac_clean_files
3131 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3132
3133 if test "$with_gmp" = yes; then
3134   
3135 if test "$no_recursion" != yes; then
3136
3137   # Remove --cache-file and --srcdir arguments so they do not pile up.
3138   ac_sub_configure_args=
3139   ac_prev=
3140   for ac_arg in $ac_configure_args; do
3141     if test -n "$ac_prev"; then
3142       ac_prev=
3143       continue
3144     fi
3145     case "$ac_arg" in
3146     -cache-file | --cache-file | --cache-fil | --cache-fi \
3147     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3148       ac_prev=cache_file ;;
3149     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3150     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3151       ;;
3152     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3153       ac_prev=srcdir ;;
3154     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3155       ;;
3156     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3157     esac
3158   done
3159
3160   for ac_config_dir in gmp; do
3161
3162     # Do not complain, so a configure script can configure whichever
3163     # parts of a large source tree are present.
3164     if test ! -d $srcdir/$ac_config_dir; then
3165       continue
3166     fi
3167
3168     echo configuring in $ac_config_dir
3169
3170     case "$srcdir" in
3171     .) ;;
3172     *)
3173       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3174       else
3175         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3176       fi
3177       ;;
3178     esac
3179
3180     ac_popdir=`pwd`
3181     cd $ac_config_dir
3182
3183       # A "../" for each directory in /$ac_config_dir.
3184       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3185
3186     case "$srcdir" in
3187     .) # No --srcdir option.  We are building in place.
3188       ac_sub_srcdir=$srcdir ;;
3189     /*) # Absolute path.
3190       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3191     *) # Relative path.
3192       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3193     esac
3194
3195     # Check for guested configure; otherwise get Cygnus style configure.
3196     if test -f $ac_sub_srcdir/configure; then
3197       ac_sub_configure=$ac_sub_srcdir/configure
3198     elif test -f $ac_sub_srcdir/configure.in; then
3199       ac_sub_configure=$ac_configure
3200     else
3201       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3202       ac_sub_configure=
3203     fi
3204
3205     # The recursion is here.
3206     if test -n "$ac_sub_configure"; then
3207
3208       # Make the cache file name correct relative to the subdirectory.
3209       case "$cache_file" in
3210       /*) ac_sub_cache_file=$cache_file ;;
3211       *) # Relative path.
3212         if test -n "$ac_dots"; then
3213           ac_sub_cache_file="$ac_dots"`echo "$cache_file" | sed 's,^\./,,'`
3214         else
3215           ac_sub_cache_file="$cache_file"
3216         fi
3217         ;;
3218       esac
3219
3220       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3221       # The eval makes quoting arguments work.
3222       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3223       then :
3224       else
3225         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3226       fi
3227     fi
3228
3229     cd $ac_popdir
3230   done
3231 fi
3232
3233 fi