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