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.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
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"
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"
23 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
25 --with-gmp use fast GNU gmp low-level functions"
27 # Initialize some variables set by options.
28 # The variables have the same names as the options, with
29 # dashes changed to underlines.
31 cache_file=./config.cache
40 program_transform_name=s,x,x,
48 bindir='${exec_prefix}/bin'
49 sbindir='${exec_prefix}/sbin'
50 libexecdir='${exec_prefix}/libexec'
51 datadir='${prefix}/share'
52 sysconfdir='${prefix}/etc'
53 sharedstatedir='${prefix}/com'
54 localstatedir='${prefix}/var'
55 libdir='${exec_prefix}/lib'
56 includedir='${prefix}/include'
57 oldincludedir='/usr/include'
58 infodir='${prefix}/info'
59 mandir='${prefix}/man'
61 # Initialize some other variables.
64 SHELL=${CONFIG_SHELL-/bin/sh}
65 # Maximum number of lines to put in a shell here document.
72 # If the previous option needs an argument, assign it.
73 if test -n "$ac_prev"; then
74 eval "$ac_prev=\$ac_option"
80 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
84 # Accept the important Cygnus configure options, so we can diagnose typos.
88 -bindir | --bindir | --bindi | --bind | --bin | --bi)
90 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
91 bindir="$ac_optarg" ;;
93 -build | --build | --buil | --bui | --bu)
95 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
98 -cache-file | --cache-file | --cache-fil | --cache-fi \
99 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
100 ac_prev=cache_file ;;
101 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
102 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
103 cache_file="$ac_optarg" ;;
105 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
107 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
109 datadir="$ac_optarg" ;;
111 -disable-* | --disable-*)
112 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
113 # Reject names that are not valid shell variable names.
114 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
115 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
117 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
118 eval "enable_${ac_feature}=no" ;;
120 -enable-* | --enable-*)
121 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
122 # Reject names that are not valid shell variable names.
123 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
124 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
131 eval "enable_${ac_feature}='$ac_optarg'" ;;
133 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
134 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
135 | --exec | --exe | --ex)
136 ac_prev=exec_prefix ;;
137 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
138 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
139 | --exec=* | --exe=* | --ex=*)
140 exec_prefix="$ac_optarg" ;;
142 -gas | --gas | --ga | --g)
143 # Obsolete; use --with-gas.
146 -help | --help | --hel | --he)
147 # Omit some internal or obsolete options to make the list less imposing.
148 # This message is too long to be a string in the A/UX 3.1 sh.
150 Usage: configure [options] [host]
151 Options: [defaults in brackets after descriptions]
153 --cache-file=FILE cache test results in FILE
154 --help print this message
155 --no-create do not create output files
156 --quiet, --silent do not print \`checking...' messages
157 --version print the version of autoconf that created configure
158 Directory and file names:
159 --prefix=PREFIX install architecture-independent files in PREFIX
161 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
163 --bindir=DIR user executables in DIR [EPREFIX/bin]
164 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
165 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
166 --datadir=DIR read-only architecture-independent data in DIR
168 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
169 --sharedstatedir=DIR modifiable architecture-independent data in DIR
171 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
172 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
173 --includedir=DIR C header files in DIR [PREFIX/include]
174 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
175 --infodir=DIR info documentation in DIR [PREFIX/info]
176 --mandir=DIR man documentation in DIR [PREFIX/man]
177 --srcdir=DIR find the sources in DIR [configure dir or ..]
178 --program-prefix=PREFIX prepend PREFIX to installed program names
179 --program-suffix=SUFFIX append SUFFIX to installed program names
180 --program-transform-name=PROGRAM
181 run sed PROGRAM on installed program names
185 --build=BUILD configure for building on BUILD [BUILD=HOST]
186 --host=HOST configure for HOST [guessed]
187 --target=TARGET configure for TARGET [TARGET=HOST]
188 Features and packages:
189 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
190 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
191 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
192 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
193 --x-includes=DIR X include files are in DIR
194 --x-libraries=DIR X library files are in DIR
196 if test -n "$ac_help"; then
197 echo "--enable and --with options recognized:$ac_help"
201 -host | --host | --hos | --ho)
203 -host=* | --host=* | --hos=* | --ho=*)
206 -includedir | --includedir | --includedi | --included | --include \
207 | --includ | --inclu | --incl | --inc)
208 ac_prev=includedir ;;
209 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
210 | --includ=* | --inclu=* | --incl=* | --inc=*)
211 includedir="$ac_optarg" ;;
213 -infodir | --infodir | --infodi | --infod | --info | --inf)
215 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
216 infodir="$ac_optarg" ;;
218 -libdir | --libdir | --libdi | --libd)
220 -libdir=* | --libdir=* | --libdi=* | --libd=*)
221 libdir="$ac_optarg" ;;
223 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
224 | --libexe | --libex | --libe)
225 ac_prev=libexecdir ;;
226 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
227 | --libexe=* | --libex=* | --libe=*)
228 libexecdir="$ac_optarg" ;;
230 -localstatedir | --localstatedir | --localstatedi | --localstated \
231 | --localstate | --localstat | --localsta | --localst \
232 | --locals | --local | --loca | --loc | --lo)
233 ac_prev=localstatedir ;;
234 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
235 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
236 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
237 localstatedir="$ac_optarg" ;;
239 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
241 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
242 mandir="$ac_optarg" ;;
245 # Obsolete; use --without-fp.
248 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
252 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
253 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
256 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
257 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
258 | --oldin | --oldi | --old | --ol | --o)
259 ac_prev=oldincludedir ;;
260 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
261 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
262 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
263 oldincludedir="$ac_optarg" ;;
265 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
267 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
268 prefix="$ac_optarg" ;;
270 -program-prefix | --program-prefix | --program-prefi | --program-pref \
271 | --program-pre | --program-pr | --program-p)
272 ac_prev=program_prefix ;;
273 -program-prefix=* | --program-prefix=* | --program-prefi=* \
274 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
275 program_prefix="$ac_optarg" ;;
277 -program-suffix | --program-suffix | --program-suffi | --program-suff \
278 | --program-suf | --program-su | --program-s)
279 ac_prev=program_suffix ;;
280 -program-suffix=* | --program-suffix=* | --program-suffi=* \
281 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
282 program_suffix="$ac_optarg" ;;
284 -program-transform-name | --program-transform-name \
285 | --program-transform-nam | --program-transform-na \
286 | --program-transform-n | --program-transform- \
287 | --program-transform | --program-transfor \
288 | --program-transfo | --program-transf \
289 | --program-trans | --program-tran \
290 | --progr-tra | --program-tr | --program-t)
291 ac_prev=program_transform_name ;;
292 -program-transform-name=* | --program-transform-name=* \
293 | --program-transform-nam=* | --program-transform-na=* \
294 | --program-transform-n=* | --program-transform-=* \
295 | --program-transform=* | --program-transfor=* \
296 | --program-transfo=* | --program-transf=* \
297 | --program-trans=* | --program-tran=* \
298 | --progr-tra=* | --program-tr=* | --program-t=*)
299 program_transform_name="$ac_optarg" ;;
301 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
302 | -silent | --silent | --silen | --sile | --sil)
305 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
307 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
309 sbindir="$ac_optarg" ;;
311 -sharedstatedir | --sharedstatedir | --sharedstatedi \
312 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
313 | --sharedst | --shareds | --shared | --share | --shar \
315 ac_prev=sharedstatedir ;;
316 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
317 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
318 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
320 sharedstatedir="$ac_optarg" ;;
322 -site | --site | --sit)
324 -site=* | --site=* | --sit=*)
327 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
329 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
330 srcdir="$ac_optarg" ;;
332 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
333 | --syscon | --sysco | --sysc | --sys | --sy)
334 ac_prev=sysconfdir ;;
335 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
336 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
337 sysconfdir="$ac_optarg" ;;
339 -target | --target | --targe | --targ | --tar | --ta | --t)
341 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
342 target="$ac_optarg" ;;
344 -v | -verbose | --verbose | --verbos | --verbo | --verb)
347 -version | --version | --versio | --versi | --vers)
348 echo "configure generated by autoconf version 2.13"
352 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
353 # Reject names that are not valid shell variable names.
354 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
355 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
357 ac_package=`echo $ac_package| sed 's/-/_/g'`
362 eval "with_${ac_package}='$ac_optarg'" ;;
364 -without-* | --without-*)
365 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
366 # Reject names that are not valid shell variable names.
367 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
368 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370 ac_package=`echo $ac_package| sed 's/-/_/g'`
371 eval "with_${ac_package}=no" ;;
374 # Obsolete; use --with-x.
377 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
378 | --x-incl | --x-inc | --x-in | --x-i)
379 ac_prev=x_includes ;;
380 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
381 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
382 x_includes="$ac_optarg" ;;
384 -x-libraries | --x-libraries | --x-librarie | --x-librari \
385 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
386 ac_prev=x_libraries ;;
387 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
388 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
389 x_libraries="$ac_optarg" ;;
391 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
395 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
396 echo "configure: warning: $ac_option: invalid host type" 1>&2
398 if test "x$nonopt" != xNONE; then
399 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
407 if test -n "$ac_prev"; then
408 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
411 trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
413 # File descriptor usage:
416 # 2 errors and warnings
417 # 3 some systems may open it to /dev/tty
418 # 4 used on the Kubota Titan
419 # 6 checking for... messages and results
420 # 5 compiler messages saved in config.log
421 if test "$silent" = yes; then
429 This file contains any messages produced by compilers while
430 running configure, to aid debugging if configure makes a mistake.
433 # Strip out --no-create and --no-recursion so they do not pile up.
434 # Also quote any args containing shell metacharacters.
439 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
440 | --no-cr | --no-c) ;;
441 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
442 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
443 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
444 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
445 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
450 # Only set these to C if already set. These must not be set unconditionally
451 # because not all systems understand e.g. LANG=C (notably SCO).
452 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
453 # Non-C LC_CTYPE values break the ctype check.
454 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
455 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
456 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
457 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
459 # confdefs.h avoids OS command line length limits that DEFS can exceed.
460 rm -rf conftest* confdefs.h
461 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
464 # A filename unique to this package, relative to the directory that
465 # configure is in, which we can look for to find out if srcdir is correct.
466 ac_unique_file=src/integer/gcd/cl_I_gcd.cc
468 # Find the source files, if location was not specified.
469 if test -z "$srcdir"; then
470 ac_srcdir_defaulted=yes
471 # Try the directory containing this script, then its parent.
473 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
474 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
476 if test ! -r $srcdir/$ac_unique_file; then
480 ac_srcdir_defaulted=no
482 if test ! -r $srcdir/$ac_unique_file; then
483 if test "$ac_srcdir_defaulted" = yes; then
484 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
486 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
489 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
491 # Prefer explicitly selected file to automatically selected ones.
492 if test -z "$CONFIG_SITE"; then
493 if test "x$prefix" != xNONE; then
494 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
496 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
499 for ac_site_file in $CONFIG_SITE; do
500 if test -r "$ac_site_file"; then
501 echo "loading site script $ac_site_file"
506 if test -r "$cache_file"; then
507 echo "loading cache $cache_file"
510 echo "creating cache $cache_file"
515 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
516 ac_cpp='$CPP $CPPFLAGS'
517 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
518 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
519 cross_compiling=$ac_cv_prog_cc_cross
523 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
524 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
525 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
529 ac_n=-n ac_c= ac_t= ac_tt='
533 ac_n= ac_c='\c' ac_t= ac_tt='
539 echo $ac_n "checking whether ${MAKE-make} sets \$(MAKE)""... $ac_c" 1>&6
540 echo "configure:541: checking whether ${MAKE-make} sets \$(MAKE)" >&5
541 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
542 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
543 echo $ac_n "(cached) $ac_c" 1>&6
545 cat > conftestmake <<\EOF
547 @echo 'ac_maketemp="${MAKE}"'
549 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
550 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
551 if test -n "$ac_maketemp"; then
552 eval ac_cv_prog_make_${ac_make}_set=yes
554 eval ac_cv_prog_make_${ac_make}_set=no
558 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
559 echo "$ac_t""yes" 1>&6
562 echo "$ac_t""no" 1>&6
563 SET_MAKE="MAKE=${MAKE-make}"
566 extrasub="$extrasub"'
576 s/@subdir@/benchmarks/
587 # Extract the first word of "gcc", so it can be a program name with args.
588 set dummy gcc; ac_word=$2
589 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
590 echo "configure:591: checking for $ac_word" >&5
591 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
592 echo $ac_n "(cached) $ac_c" 1>&6
594 if test -n "$CC"; then
595 ac_cv_prog_CC="$CC" # Let the user override the test.
597 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
599 for ac_dir in $ac_dummy; do
600 test -z "$ac_dir" && ac_dir=.
601 if test -f $ac_dir/$ac_word; then
610 if test -n "$CC"; then
611 echo "$ac_t""$CC" 1>&6
613 echo "$ac_t""no" 1>&6
616 if test -z "$CC"; then
617 # Extract the first word of "cc", so it can be a program name with args.
618 set dummy cc; ac_word=$2
619 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
620 echo "configure:621: checking for $ac_word" >&5
621 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
622 echo $ac_n "(cached) $ac_c" 1>&6
624 if test -n "$CC"; then
625 ac_cv_prog_CC="$CC" # Let the user override the test.
627 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
630 for ac_dir in $ac_dummy; do
631 test -z "$ac_dir" && ac_dir=.
632 if test -f $ac_dir/$ac_word; then
633 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
642 if test $ac_prog_rejected = yes; then
643 # We found a bogon in the path, so make sure we never use it.
644 set dummy $ac_cv_prog_CC
646 if test $# -gt 0; then
647 # We chose a different compiler from the bogus one.
648 # However, it has the same basename, so the bogon will be chosen
649 # first if we set CC to just the basename; use the full file name.
651 set dummy "$ac_dir/$ac_word" "$@"
659 if test -n "$CC"; then
660 echo "$ac_t""$CC" 1>&6
662 echo "$ac_t""no" 1>&6
665 if test -z "$CC"; then
668 # Extract the first word of "cl", so it can be a program name with args.
669 set dummy cl; ac_word=$2
670 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
671 echo "configure:672: checking for $ac_word" >&5
672 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
673 echo $ac_n "(cached) $ac_c" 1>&6
675 if test -n "$CC"; then
676 ac_cv_prog_CC="$CC" # Let the user override the test.
678 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
680 for ac_dir in $ac_dummy; do
681 test -z "$ac_dir" && ac_dir=.
682 if test -f $ac_dir/$ac_word; then
691 if test -n "$CC"; then
692 echo "$ac_t""$CC" 1>&6
694 echo "$ac_t""no" 1>&6
699 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
702 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
703 echo "configure:704: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
706 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
707 ac_cpp='$CPP $CPPFLAGS'
708 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
709 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
710 cross_compiling=$ac_cv_prog_cc_cross
712 cat > conftest.$ac_ext << EOF
714 #line 715 "configure"
715 #include "confdefs.h"
717 int main(){return(0);}
719 if { (eval echo configure:720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
720 ac_cv_prog_cc_works=yes
721 # If we can't run a trivial program, we are probably using a cross compiler.
722 if (./conftest; exit) 2>/dev/null; then
723 ac_cv_prog_cc_cross=no
725 ac_cv_prog_cc_cross=yes
728 echo "configure: failed program was:" >&5
729 cat conftest.$ac_ext >&5
730 ac_cv_prog_cc_works=no
734 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
735 ac_cpp='$CPP $CPPFLAGS'
736 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
737 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
738 cross_compiling=$ac_cv_prog_cc_cross
740 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
741 if test $ac_cv_prog_cc_works = no; then
742 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
744 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
745 echo "configure:746: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
746 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
747 cross_compiling=$ac_cv_prog_cc_cross
749 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
750 echo "configure:751: checking whether we are using GNU C" >&5
751 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
752 echo $ac_n "(cached) $ac_c" 1>&6
754 cat > conftest.c <<EOF
759 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
765 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
767 if test $ac_cv_prog_gcc = yes; then
773 ac_test_CFLAGS="${CFLAGS+set}"
774 ac_save_CFLAGS="$CFLAGS"
776 if test "$ac_test_CFLAGS" = set; then
777 CFLAGS="$ac_save_CFLAGS"
779 if test "$GCC" = yes; then
780 # Add "-O" to both the CC and CPP commands, to eliminate possible confusion
781 # that results from __OPTIMIZE__ being defined for CC but not CPP.
782 if echo "$CC " | grep ' -O[1-9 ]' > /dev/null 2>&1; then
783 : # already optimizing
793 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
794 echo "configure:795: checking how to run the C preprocessor" >&5
795 # On Suns, sometimes $CPP names a directory.
796 if test -n "$CPP" && test -d "$CPP"; then
799 if test -z "$CPP"; then
800 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
801 echo $ac_n "(cached) $ac_c" 1>&6
803 # This must be in double quotes, not single quotes, because CPP may get
804 # substituted into the Makefile and "${CC-cc}" will confuse make.
806 if test -n "$GCC"; then
807 # Suppress warning messages.
810 # On the NeXT, cc -E runs the code through the compiler's parser,
811 # not just through cpp. On NeXTstep 3.1 the same holds for /lib/cpp; use
812 # "cc -E -traditional-cpp" instead.
813 cat > conftest.$ac_ext <<EOF
814 #line 815 "configure"
815 #include "confdefs.h"
819 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
820 { (eval echo configure:821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
821 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
822 if test -z "$ac_err"; then
827 echo "configure: failed program was:" >&5
828 cat conftest.$ac_ext >&5
831 if test -z "$ac_have_cpp"; then
832 CPP="${CC-cc} -E -traditional-cpp"
833 cat > conftest.$ac_ext <<EOF
834 #line 835 "configure"
835 #include "confdefs.h"
839 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
840 { (eval echo configure:841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
841 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
842 if test -z "$ac_err"; then
847 echo "configure: failed program was:" >&5
848 cat conftest.$ac_ext >&5
851 if test -n "$ac_have_cpp"; then
852 CC="${CC-cc} -traditional-cpp"
854 CPP="${CC-cc} -nologo -E"
855 cat > conftest.$ac_ext <<EOF
856 #line 857 "configure"
857 #include "confdefs.h"
861 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
862 { (eval echo configure:863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
863 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
864 if test -z "$ac_err"; then
869 echo "configure: failed program was:" >&5
870 cat conftest.$ac_ext >&5
873 if test -n "$ac_have_cpp"; then
874 CC="${CC-cc} -nologo"
881 ac_cv_prog_CPP="$CPP"
883 CPP="$ac_cv_prog_CPP"
885 ac_cv_prog_CPP="$CPP"
887 echo "$ac_t""$CPP" 1>&6
889 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
891 # Extract the first word of "$ac_prog", so it can be a program name with args.
892 set dummy $ac_prog; ac_word=$2
893 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
894 echo "configure:895: checking for $ac_word" >&5
895 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
896 echo $ac_n "(cached) $ac_c" 1>&6
898 if test -n "$CXX"; then
899 ac_cv_prog_CXX="$CXX" # Let the user override the test.
901 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
903 for ac_dir in $ac_dummy; do
904 test -z "$ac_dir" && ac_dir=.
905 if test -f $ac_dir/$ac_word; then
906 ac_cv_prog_CXX="$ac_prog"
913 CXX="$ac_cv_prog_CXX"
914 if test -n "$CXX"; then
915 echo "$ac_t""$CXX" 1>&6
917 echo "$ac_t""no" 1>&6
920 test -n "$CXX" && break
922 test -n "$CXX" || CXX="gcc"
925 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
926 echo "configure:927: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
929 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
930 ac_cpp='$CXXCPP $CPPFLAGS'
931 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
932 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
933 cross_compiling=$ac_cv_prog_cxx_cross
935 cat > conftest.$ac_ext << EOF
937 #line 938 "configure"
938 #include "confdefs.h"
940 int main(){return(0);}
942 if { (eval echo configure:943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
943 ac_cv_prog_cxx_works=yes
944 # If we can't run a trivial program, we are probably using a cross compiler.
945 if (./conftest; exit) 2>/dev/null; then
946 ac_cv_prog_cxx_cross=no
948 ac_cv_prog_cxx_cross=yes
951 echo "configure: failed program was:" >&5
952 cat conftest.$ac_ext >&5
953 ac_cv_prog_cxx_works=no
957 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
958 ac_cpp='$CPP $CPPFLAGS'
959 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
960 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
961 cross_compiling=$ac_cv_prog_cc_cross
963 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
964 if test $ac_cv_prog_cxx_works = no; then
965 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
967 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
968 echo "configure:969: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
969 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
970 cross_compiling=$ac_cv_prog_cxx_cross
972 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
973 echo "configure:974: checking whether we are using GNU C++" >&5
974 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
975 echo $ac_n "(cached) $ac_c" 1>&6
977 cat > conftest.C <<EOF
982 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
988 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
990 if test $ac_cv_prog_gxx = yes; then
996 ac_test_CXXFLAGS="${CXXFLAGS+set}"
997 ac_save_CXXFLAGS="$CXXFLAGS"
999 if test "$ac_test_CXXFLAGS" = set; then
1000 CXXFLAGS="$ac_save_CXXFLAGS"
1002 if test "$GXX" = yes; then
1003 # Add "-O" to both the CXX and CXXCPP commands, to eliminate possible confu-
1004 # sion that results from __OPTIMIZE__ being defined for CXX but not CXXCPP.
1005 if echo "$CXX " | grep ' -O[1-9 ]' > /dev/null; then
1006 : # already optimizing
1009 ac_cv_prog_CXX="$CXX"
1016 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1017 echo "configure:1018: checking how to run the C++ preprocessor" >&5
1018 if test -z "$CXXCPP"; then
1019 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1020 echo $ac_n "(cached) $ac_c" 1>&6
1023 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1024 ac_cpp='$CXXCPP $CPPFLAGS'
1025 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1026 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1027 cross_compiling=$ac_cv_prog_cxx_cross
1028 CXXCPP="${CXX-g++} -E"
1029 cat > conftest.$ac_ext <<EOF
1030 #line 1031 "configure"
1031 #include "confdefs.h"
1034 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1035 { (eval echo configure:1036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1036 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1037 if test -z "$ac_err"; then
1041 echo "configure: failed program was:" >&5
1042 cat conftest.$ac_ext >&5
1047 ac_cv_prog_CXXCPP="$CXXCPP"
1049 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1050 ac_cpp='$CPP $CPPFLAGS'
1051 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1052 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1053 cross_compiling=$ac_cv_prog_cc_cross
1056 CXXCPP="$ac_cv_prog_CXXCPP"
1057 echo "$ac_t""$CXXCPP" 1>&6
1060 echo $ac_n "checking for underscore in external names""... $ac_c" 1>&6
1061 echo "configure:1062: checking for underscore in external names" >&5
1062 if eval "test \"`echo '$''{'cl_cv_prog_as_underscore'+set}'`\" = set"; then
1063 echo $ac_n "(cached) $ac_c" 1>&6
1066 cat > conftest.c <<EOF
1067 int foo() { return 0; }
1069 # look for the assembly language name in the .s file
1070 { ac_try='${CC-cc} -S conftest.c'; { (eval echo configure:1071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } >/dev/null 2>&1
1071 if grep _foo conftest.s >/dev/null ; then
1072 cl_cv_prog_as_underscore=yes
1074 cl_cv_prog_as_underscore=no
1079 echo "$ac_t""$cl_cv_prog_as_underscore" 1>&6
1080 if test $cl_cv_prog_as_underscore = yes; then
1082 cat >> confdefs.h <<\EOF
1083 #define ASM_UNDERSCORE 1
1090 # Extract the first word of "ranlib", so it can be a program name with args.
1091 set dummy ranlib; ac_word=$2
1092 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1093 echo "configure:1094: checking for $ac_word" >&5
1094 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1095 echo $ac_n "(cached) $ac_c" 1>&6
1097 if test -n "$RANLIB"; then
1098 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1100 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1102 for ac_dir in $ac_dummy; do
1103 test -z "$ac_dir" && ac_dir=.
1104 if test -f $ac_dir/$ac_word; then
1105 ac_cv_prog_RANLIB="ranlib"
1110 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="true"
1113 RANLIB="$ac_cv_prog_RANLIB"
1114 if test -n "$RANLIB"; then
1115 echo "$ac_t""$RANLIB" 1>&6
1117 echo "$ac_t""no" 1>&6
1120 # Find a good install program. We prefer a C program (faster),
1121 # so one script is as good as another. But avoid the broken or
1122 # incompatible versions:
1123 # SysV /etc/install, /usr/sbin/install
1124 # SunOS /usr/etc/install
1125 # IRIX /sbin/install
1127 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1128 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1129 # ./install, which can be erroneously created by make from ./install.sh.
1130 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1131 echo "configure:1132: checking for a BSD compatible install" >&5
1132 if test -z "$INSTALL"; then
1133 if eval "test \"`echo '$''{'cl_cv_path_install'+set}'`\" = set"; then
1134 echo $ac_n "(cached) $ac_c" 1>&6
1136 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1137 for ac_dir in $PATH; do
1138 # Account for people who put trailing slashes in PATH elements.
1140 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1142 # OSF1 and SCO ODT 3.0 have their own names for install.
1143 for ac_prog in ginstall installbsd scoinst install; do
1144 if test -f $ac_dir/$ac_prog; then
1145 if test $ac_prog = install &&
1146 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1147 # AIX install. It has an incompatible calling convention.
1148 # OSF/1 installbsd also uses dspmsg, but is usable.
1151 if test $ac_prog = installbsd &&
1152 grep src/bos $ac_dir/$ac_prog >/dev/null 2>&1; then
1153 # AIX installbsd doesn't work without option "-g".
1156 ac_cv_path_install="$ac_dir/$ac_prog -c"
1166 # As a last resort, use cp.
1167 test -z "$cl_cv_path_install" && cl_cv_path_install="cp"
1170 INSTALL="$cl_cv_path_install"
1172 echo "$ac_t""$INSTALL" 1>&6
1173 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1174 # It thinks the first close brace ends the variable substitution.
1175 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='$(INSTALL)'
1176 if test -z "$INSTALL_DATA"; then
1178 cp | */cp ) INSTALL_DATA='$(INSTALL)' ;;
1179 * ) INSTALL_DATA='$(INSTALL) -m 644' ;;
1183 ac_aux_dir=${srcdir}/autoconf
1184 echo $ac_n "checking host system type""... $ac_c" 1>&6
1185 echo "configure:1186: checking host system type" >&5
1186 if eval "test \"`echo '$''{'cl_cv_host'+set}'`\" = set"; then
1187 echo $ac_n "(cached) $ac_c" 1>&6
1190 ac_config_guess=$ac_aux_dir/config.guess
1191 ac_config_sub=$ac_aux_dir/config.sub
1192 # Make sure we can run config.sub.
1193 if $ac_config_sub sun4 >/dev/null 2>&1; then :
1194 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1197 case "$host_alias" in
1200 NONE) host_alias=`export CC; $ac_config_guess` ;;
1201 *) host_alias=$nonopt ;;
1204 # Don't fail just because the system is not listed in GNU's database.
1205 if test -n "$host_alias"; then
1206 host=`$ac_config_sub $host_alias`
1208 host=unknown-unknown-unknown
1213 echo "$ac_t""$cl_cv_host" 1>&6
1215 host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
1216 host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
1217 host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
1224 alphaev[4-7] | alphaev56 | alphapca5[67] )
1227 hppa1.0 | hppa1.1 | hppa2.0 )
1233 c1 | c2 | c32 | c34 | c38 | c4 )
1237 echo $ac_n "checking for 64-bit MIPS""... $ac_c" 1>&6
1238 echo "configure:1239: checking for 64-bit MIPS" >&5
1239 if eval "test \"`echo '$''{'cl_cv_host_mips64'+set}'`\" = set"; then
1240 echo $ac_n "(cached) $ac_c" 1>&6
1243 cat > conftest.$ac_ext <<EOF
1244 #line 1245 "configure"
1245 #include "confdefs.h"
1246 #if defined(_MIPS_SZLONG)
1247 #if (_MIPS_SZLONG == 64)
1248 /* We should also check for (_MIPS_SZPTR == 64), but gcc keeps this at 32. */
1254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1255 egrep "yes" >/dev/null 2>&1; then
1257 cl_cv_host_mips64=yes
1260 cl_cv_host_mips64=no
1266 echo "$ac_t""$cl_cv_host_mips64" 1>&6
1267 if test $cl_cv_host_mips64 = yes; then
1272 echo $ac_n "checking for 64-bit SPARC""... $ac_c" 1>&6
1273 echo "configure:1274: checking for 64-bit SPARC" >&5
1274 if eval "test \"`echo '$''{'cl_cv_host_sparc64'+set}'`\" = set"; then
1275 echo $ac_n "(cached) $ac_c" 1>&6
1278 cat > conftest.$ac_ext <<EOF
1279 #line 1280 "configure"
1280 #include "confdefs.h"
1281 #if defined(__sparcv9) || defined(__arch64__)
1286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1287 egrep "yes" >/dev/null 2>&1; then
1289 cl_cv_host_sparc64=yes
1292 cl_cv_host_sparc64=no
1298 echo "$ac_t""$cl_cv_host_sparc64" 1>&6
1299 if test $cl_cv_host_sparc64 = yes; then
1306 cat >> confdefs.h <<EOF
1307 #ifndef __${host_cpu}__
1308 #define __${host_cpu}__ 1
1313 # Check whether --enable-shared or --disable-shared was given.
1314 if test "${enable_shared+set}" = set; then
1315 enableval="$enable_shared"
1316 p=${PACKAGE-default}
1317 case "$enableval" in
1318 yes) enable_shared=yes ;;
1319 no) enable_shared=no ;;
1322 # Look at the argument we got. We use all the common list separators.
1323 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1324 for pkg in $enableval; do
1325 if test "X$pkg" = "X$p"; then
1336 # Check whether --enable-static or --disable-static was given.
1337 if test "${enable_static+set}" = set; then
1338 enableval="$enable_static"
1339 p=${PACKAGE-default}
1340 case "$enableval" in
1341 yes) enable_static=yes ;;
1342 no) enable_static=no ;;
1345 # Look at the argument we got. We use all the common list separators.
1346 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1347 for pkg in $enableval; do
1348 if test "X$pkg" = "X$p"; then
1359 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1360 if test "${with_gnu_ld+set}" = set; then
1361 withval="$with_gnu_ld"
1362 test "$withval" = no || with_gnu_ld=yes
1369 if test "$ac_cv_prog_gcc" = yes; then
1370 # Check if gcc -print-prog-name=ld gives a path.
1371 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1372 echo "configure:1373: checking for ld used by GCC" >&5
1373 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1375 # Accept absolute paths.
1377 test -z "$LD" && LD="$ac_prog"
1380 # If it fails, then pretend we aren't using GCC.
1384 # If it is relative, then search for the first ld in PATH.
1388 elif test "$with_gnu_ld" = yes; then
1389 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1390 echo "configure:1391: checking for GNU ld" >&5
1392 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1393 echo "configure:1394: checking for non-GNU ld" >&5
1395 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1396 echo $ac_n "(cached) $ac_c" 1>&6
1398 if test -z "$LD"; then
1399 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1400 for ac_dir in $PATH; do
1401 test -z "$ac_dir" && ac_dir=.
1402 if test -f "$ac_dir/$ac_prog"; then
1403 ac_cv_path_LD="$ac_dir/$ac_prog"
1404 # Check to see if the program is GNU ld. I'd rather use --version,
1405 # but apparently some GNU ld's only accept -v.
1406 # Break only if it was the GNU/non-GNU ld that we prefer.
1407 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1408 test "$with_gnu_ld" != no && break
1410 test "$with_gnu_ld" != yes && break
1416 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1421 if test -n "$LD"; then
1422 echo "$ac_t""$LD" 1>&6
1424 echo "$ac_t""no" 1>&6
1426 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1428 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1429 echo "configure:1430: checking if the linker ($LD) is GNU ld" >&5
1430 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1431 echo $ac_n "(cached) $ac_c" 1>&6
1433 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1434 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1435 ac_cv_prog_gnu_ld=yes
1437 ac_cv_prog_gnu_ld=no
1440 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1443 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1444 echo "configure:1445: checking for BSD-compatible nm" >&5
1445 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1446 echo $ac_n "(cached) $ac_c" 1>&6
1450 ac_cv_path_NM="$NM" # Let the user override the test with a path.
1453 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1454 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
1455 test -z "$ac_dir" && ac_dir=.
1456 if test -f $ac_dir/nm; then
1457 # Check to see if the nm accepts a BSD-compat flag.
1458 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1459 # nm: unknown option "B" ignored
1460 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1461 ac_cv_path_NM="$ac_dir/nm -B"
1462 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1463 ac_cv_path_NM="$ac_dir/nm -p"
1465 ac_cv_path_NM="$ac_dir/nm"
1471 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1477 echo "$ac_t""$NM" 1>&6
1480 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1481 echo "configure:1482: checking whether ln -s works" >&5
1482 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1483 echo $ac_n "(cached) $ac_c" 1>&6
1486 if ln -s X conftestdata 2>/dev/null
1489 ac_cv_prog_LN_S="ln -s"
1494 LN_S="$ac_cv_prog_LN_S"
1495 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1496 echo "$ac_t""yes" 1>&6
1498 echo "$ac_t""no" 1>&6
1501 # Always use our own libtool.
1502 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1504 # Check for any special flags to pass to ltconfig.
1506 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1507 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1508 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1509 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1510 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1512 # Some flags need to be propagated to the compiler or linker for good
1516 # Find out which ABI we are using.
1517 echo '#line 1518 "configure"' > conftest.$ac_ext
1518 if { (eval echo configure:1519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1519 case "`/usr/bin/file conftest.o`" in
1535 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1536 CFLAGS="$CFLAGS -belf"
1540 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1541 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1542 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
1543 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
1544 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1545 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1548 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1549 ac_cpp='$CXXCPP $CPPFLAGS'
1550 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1551 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1552 cross_compiling=$ac_cv_prog_cxx_cross
1556 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1557 ac_cpp='$CXXCPP $CPPFLAGS'
1558 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1559 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1560 cross_compiling=$ac_cv_prog_cxx_cross
1562 echo $ac_n "checking for bool type""... $ac_c" 1>&6
1563 echo "configure:1564: checking for bool type" >&5
1564 if eval "test \"`echo '$''{'cl_cv_cplusplus_bool'+set}'`\" = set"; then
1565 echo $ac_n "(cached) $ac_c" 1>&6
1568 cat > conftest.$ac_ext <<EOF
1569 #line 1570 "configure"
1570 #include "confdefs.h"
1576 if { (eval echo configure:1577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1578 cl_cv_cplusplus_bool=yes
1580 echo "configure: failed program was:" >&5
1581 cat conftest.$ac_ext >&5
1583 cl_cv_cplusplus_bool=no
1589 echo "$ac_t""$cl_cv_cplusplus_bool" 1>&6
1590 if test $cl_cv_cplusplus_bool = yes; then
1591 cat >> confdefs.h <<\EOF
1596 cat >> confdefs.h <<\EOF
1602 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1603 ac_cpp='$CXXCPP $CPPFLAGS'
1604 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1605 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1606 cross_compiling=$ac_cv_prog_cxx_cross
1609 echo $ac_n "checking for long long type""... $ac_c" 1>&6
1610 echo "configure:1611: checking for long long type" >&5
1611 if eval "test \"`echo '$''{'cl_cv_c_longlong'+set}'`\" = set"; then
1612 echo $ac_n "(cached) $ac_c" 1>&6
1615 if test "$cross_compiling" = yes; then
1616 cl_cv_c_longlong="guessing no"
1618 cat > conftest.$ac_ext <<EOF
1619 #line 1620 "configure"
1620 #include "confdefs.h"
1622 extern "C" void exit(int);
1626 /* long longs don't work right with gcc-2.7.2 on m68k */
1627 /* long longs don't work right with gcc-2.7.2 on rs6000: avcall/tests.c gets
1630 #if defined(__m68k__) || (defined(_IBMR2) || defined(__powerpc))
1632 #if (__GNUC_MINOR__ <= 7)
1638 { long x = 944938507; long y = 737962842; long z = 162359677;
1639 exit(!(((long long) x)*((long long) y)>>32 == z));
1643 if { (eval echo configure:1644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1645 cl_cv_c_longlong=yes
1647 echo "configure: failed program was:" >&5
1648 cat conftest.$ac_ext >&5
1652 if test -f core; then
1653 coredir=core`/bin/sh -c 'echo $$'`
1655 cp confdefs.h $coredir/confdefs.h
1656 mv conftest.c $coredir/conftest.c
1657 mv conftest $coredir/conftest
1658 mv core $coredir/core
1659 echo "warning: test program dumped core -- see subdirectory $coredir"
1666 echo "$ac_t""$cl_cv_c_longlong" 1>&6
1667 case "$cl_cv_c_longlong" in
1668 *yes) cat >> confdefs.h <<\EOF
1669 #define HAVE_LONGLONG 1
1675 echo $ac_n "checking for long double type""... $ac_c" 1>&6
1676 echo "configure:1677: checking for long double type" >&5
1677 if eval "test \"`echo '$''{'cl_cv_c_longdouble'+set}'`\" = set"; then
1678 echo $ac_n "(cached) $ac_c" 1>&6
1681 if test "$cross_compiling" = yes; then
1682 cl_cv_c_longdouble="guessing no"
1684 cat > conftest.$ac_ext <<EOF
1685 #line 1686 "configure"
1686 #include "confdefs.h"
1688 extern "C" void exit(int);
1691 { long double x = 2.7182818284590452354L; x = x*x; exit (x==0.0L); }
1693 if { (eval echo configure:1694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1695 cl_cv_c_longdouble=yes
1697 echo "configure: failed program was:" >&5
1698 cat conftest.$ac_ext >&5
1700 cl_cv_c_longdouble=no
1702 if test -f core; then
1703 coredir=core`/bin/sh -c 'echo $$'`
1705 cp confdefs.h $coredir/confdefs.h
1706 mv conftest.c $coredir/conftest.c
1707 mv conftest $coredir/conftest
1708 mv core $coredir/core
1709 echo "warning: test program dumped core -- see subdirectory $coredir"
1716 echo "$ac_t""$cl_cv_c_longdouble" 1>&6
1717 case "$cl_cv_c_longdouble" in
1718 *yes) cat >> confdefs.h <<\EOF
1719 #define HAVE_LONGDOUBLE 1
1725 echo $ac_n "checking for working template<>""... $ac_c" 1>&6
1726 echo "configure:1727: checking for working template<>" >&5
1727 if eval "test \"`echo '$''{'cl_cv_c_templatenull'+set}'`\" = set"; then
1728 echo $ac_n "(cached) $ac_c" 1>&6
1731 cat > conftest.$ac_ext <<EOF
1732 #line 1733 "configure"
1733 #include "confdefs.h"
1734 template <class T> class c {}; template <> class c<int> { int x; };
1739 if { (eval echo configure:1740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1741 cl_cv_c_templatenull=yes
1743 echo "configure: failed program was:" >&5
1744 cat conftest.$ac_ext >&5
1746 cl_cv_c_templatenull=no
1752 echo "$ac_t""$cl_cv_c_templatenull" 1>&6
1753 if test $cl_cv_c_templatenull = yes; then
1754 cat >> confdefs.h <<\EOF
1755 #define HAVE_TEMPLATE_NULL 1
1761 if test -n "$GCC"; then
1762 echo $ac_n "checking for the global constructors function prefix""... $ac_c" 1>&6
1763 echo "configure:1764: checking for the global constructors function prefix" >&5
1764 if eval "test \"`echo '$''{'cl_cv_cplusplus_ctorprefix'+set}'`\" = set"; then
1765 echo $ac_n "(cached) $ac_c" 1>&6
1768 cat > conftest.cc << EOF
1769 struct foo { foo (); };
1772 # look for the assembly language name in the .s file
1773 { ac_try='${CXX-g++} $CXXFLAGS -S conftest.cc'; { (eval echo configure:1774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } >/dev/null 2>&1
1774 if grep '_GLOBAL_\$I\$foobar' conftest.s >/dev/null ; then
1775 cl_cv_cplusplus_ctorprefix='_GLOBAL_$I$'
1777 if grep '_GLOBAL_\.I\.foobar' conftest.s >/dev/null ; then
1778 cl_cv_cplusplus_ctorprefix='_GLOBAL_.I.'
1780 if grep '_GLOBAL__I_foobar' conftest.s >/dev/null ; then
1781 cl_cv_cplusplus_ctorprefix='_GLOBAL__I_'
1783 cl_cv_cplusplus_ctorprefix=unknown
1790 echo "$ac_t""$cl_cv_cplusplus_ctorprefix" 1>&6
1791 if test "$cl_cv_cplusplus_ctorprefix" '!=' unknown; then
1792 ac_value='"'"$cl_cv_cplusplus_ctorprefix"'"'
1793 cat >> confdefs.h <<EOF
1794 #define CL_GLOBAL_CONSTRUCTOR_PREFIX $ac_value
1797 ac_value=`echo "$ac_value" | sed -e 's,I,D,'`
1798 cat >> confdefs.h <<EOF
1799 #define CL_GLOBAL_DESTRUCTOR_PREFIX $ac_value
1802 echo $ac_n "checking whether the global constructors function need to be exported""... $ac_c" 1>&6
1803 echo "configure:1804: checking whether the global constructors function need to be exported" >&5
1804 if eval "test \"`echo '$''{'cl_cv_cplusplus_ctorexport'+set}'`\" = set"; then
1805 echo $ac_n "(cached) $ac_c" 1>&6
1808 cat > conftest1.cc << EOF
1809 struct foo { foo (); };
1812 cat > conftest2.cc << EOF
1813 #include "confdefs.h"
1814 #ifdef ASM_UNDERSCORE
1815 #define ASM_UNDERSCORE_PREFIX "_"
1817 #define ASM_UNDERSCORE_PREFIX ""
1819 struct foo { foo (); };
1821 extern "C" void ctor (void) __asm__ (ASM_UNDERSCORE_PREFIX CL_GLOBAL_CONSTRUCTOR_PREFIX "foobar");
1822 int main() { ctor(); return 0; }
1824 if { ac_try='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest1.cc conftest2.cc $LIBS 1>&5'; { (eval echo configure:1825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } >/dev/null 2>&1 && test -s conftest${ac_exeext}; then
1825 cl_cv_cplusplus_ctorexport=no
1827 cl_cv_cplusplus_ctorexport=yes
1832 echo "$ac_t""$cl_cv_cplusplus_ctorexport" 1>&6
1833 if test "$cl_cv_cplusplus_ctorexport" = yes; then
1834 cat >> confdefs.h <<\EOF
1835 #define CL_NEED_GLOBALIZE_CTORDTOR 1
1842 for ac_hdr in unistd.h
1844 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1845 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1846 echo "configure:1847: checking for $ac_hdr" >&5
1847 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1848 echo $ac_n "(cached) $ac_c" 1>&6
1850 cat > conftest.$ac_ext <<EOF
1851 #line 1852 "configure"
1852 #include "confdefs.h"
1855 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1856 { (eval echo configure:1857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1857 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1858 if test -z "$ac_err"; then
1860 eval "ac_cv_header_$ac_safe=yes"
1863 echo "configure: failed program was:" >&5
1864 cat conftest.$ac_ext >&5
1866 eval "ac_cv_header_$ac_safe=no"
1870 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1871 echo "$ac_t""yes" 1>&6
1872 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1873 cat >> confdefs.h <<EOF
1874 #define $ac_tr_hdr 1
1878 echo "$ac_t""no" 1>&6
1883 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1884 # for constant arguments. Useless!
1885 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1886 echo "configure:1887: checking for working alloca.h" >&5
1887 if eval "test \"`echo '$''{'cl_cv_header_alloca_h'+set}'`\" = set"; then
1888 echo $ac_n "(cached) $ac_c" 1>&6
1891 cat > conftest.$ac_ext <<EOF
1892 #line 1893 "configure"
1893 #include "confdefs.h"
1896 char *p = (char *) alloca(2 * sizeof(int));
1899 if { (eval echo configure:1900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1901 cl_cv_header_alloca_h=yes
1903 echo "configure: failed program was:" >&5
1904 cat conftest.$ac_ext >&5
1906 cl_cv_header_alloca_h=no
1912 echo "$ac_t""$cl_cv_header_alloca_h" 1>&6
1913 if test $cl_cv_header_alloca_h = yes; then
1914 cat >> confdefs.h <<\EOF
1915 #define HAVE_ALLOCA_H 1
1919 decl="#ifdef __GNUC__
1920 #define alloca __builtin_alloca
1924 #define alloca _alloca
1926 #ifdef HAVE_ALLOCA_H
1940 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1941 echo "configure:1942: checking for alloca" >&5
1942 if eval "test \"`echo '$''{'cl_cv_func_alloca'+set}'`\" = set"; then
1943 echo $ac_n "(cached) $ac_c" 1>&6
1946 cat > conftest.$ac_ext <<EOF
1947 #line 1948 "configure"
1948 #include "confdefs.h"
1951 char *p = (char *) alloca(1);
1954 if { (eval echo configure:1955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1956 cl_cv_func_alloca=yes
1958 echo "configure: failed program was:" >&5
1959 cat conftest.$ac_ext >&5
1961 cl_cv_func_alloca=no
1967 echo "$ac_t""$cl_cv_func_alloca" 1>&6
1968 if test $cl_cv_func_alloca = yes; then
1973 if test -n "$alloca_missing"; then
1974 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1975 # that cause trouble. Some versions do not even contain alloca or
1976 # contain a buggy version. If you still want to use their alloca,
1977 # use ar to extract alloca.o from them instead of compiling alloca.c.
1978 ALLOCA=alloca.${ac_objext}
1979 cat >> confdefs.h <<\EOF
1985 echo $ac_n "checking for fpu_control_t""... $ac_c" 1>&6
1986 echo "configure:1987: checking for fpu_control_t" >&5
1987 if eval "test \"`echo '$''{'cl_cv_type_fpu_control_t'+set}'`\" = set"; then
1988 echo $ac_n "(cached) $ac_c" 1>&6
1991 cat > conftest.$ac_ext <<EOF
1992 #line 1993 "configure"
1993 #include "confdefs.h"
1994 #include <fpu_control.h>
1999 if { (eval echo configure:2000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2001 cl_cv_type_fpu_control_t=yes
2003 echo "configure: failed program was:" >&5
2004 cat conftest.$ac_ext >&5
2006 cl_cv_type_fpu_control_t=no
2012 echo "$ac_t""$cl_cv_type_fpu_control_t" 1>&6
2013 if test $cl_cv_type_fpu_control_t = yes; then
2014 cat >> confdefs.h <<\EOF
2015 #define HAVE_FPU_CONTROL_T 1
2020 echo $ac_n "checking for __setfpucw""... $ac_c" 1>&6
2021 echo "configure:2022: checking for __setfpucw" >&5
2022 if eval "test \"`echo '$''{'cl_cv_func_setfpucw'+set}'`\" = set"; then
2023 echo $ac_n "(cached) $ac_c" 1>&6
2026 cat > conftest.$ac_ext <<EOF
2027 #line 2028 "configure"
2028 #include "confdefs.h"
2029 #include <fpu_control.h>
2031 __setfpucw(_FPU_IEEE);
2034 if { (eval echo configure:2035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2036 cl_cv_func_setfpucw=yes
2038 echo "configure: failed program was:" >&5
2039 cat conftest.$ac_ext >&5
2041 cl_cv_func_setfpucw=no
2047 echo "$ac_t""$cl_cv_func_setfpucw" 1>&6
2048 if test $cl_cv_func_setfpucw = yes; then
2049 cat >> confdefs.h <<\EOF
2050 #define HAVE_SETFPUCW 1
2057 for ac_func in gettimeofday
2059 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2060 echo "configure:2061: checking for $ac_func" >&5
2061 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2062 echo $ac_n "(cached) $ac_c" 1>&6
2064 cat > conftest.$ac_ext <<EOF
2065 #line 2066 "configure"
2066 #include "confdefs.h"
2067 /* System header to define __stub macros and hopefully few prototypes,
2068 which can conflict with char $ac_func(); below. */
2070 /* Override any gcc2 internal prototype to avoid an error. */
2074 /* We use char because int might match the return type of a gcc2
2075 builtin and then its argument prototype would still apply. */
2080 /* The GNU C library defines this for functions which it implements
2081 to always fail with ENOSYS. Some functions are actually named
2082 something starting with __ and the normal name is an alias. */
2083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2091 if { (eval echo configure:2092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2093 eval "ac_cv_func_$ac_func=yes"
2095 echo "configure: failed program was:" >&5
2096 cat conftest.$ac_ext >&5
2098 eval "ac_cv_func_$ac_func=no"
2103 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2104 echo "$ac_t""yes" 1>&6
2105 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2106 cat >> confdefs.h <<EOF
2107 #define $ac_tr_func 1
2111 echo "$ac_t""no" 1>&6
2114 if test $ac_cv_func_gettimeofday = yes; then
2115 echo $ac_n "checking for gettimeofday declaration""... $ac_c" 1>&6
2116 echo "configure:2117: checking for gettimeofday declaration" >&5
2117 if eval "test \"`echo '$''{'cl_cv_proto_gettimeofday'+set}'`\" = set"; then
2118 echo $ac_n "(cached) $ac_c" 1>&6
2121 cat > conftest.$ac_ext <<EOF
2122 #line 2123 "configure"
2123 #include "confdefs.h"
2125 #include <sys/types.h>
2126 #include <sys/time.h>
2133 #if defined(__STDC__) || defined(__cplusplus)
2134 int gettimeofday (struct timeval * tp, struct timezone * tzp);
2143 if { (eval echo configure:2144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2145 cl_cv_proto_gettimeofday_dots=no
2146 cl_cv_proto_gettimeofday_arg2="struct timezone *"
2148 echo "configure: failed program was:" >&5
2149 cat conftest.$ac_ext >&5
2151 cat > conftest.$ac_ext <<EOF
2152 #line 2153 "configure"
2153 #include "confdefs.h"
2155 #include <sys/types.h>
2156 #include <sys/time.h>
2163 #if defined(__STDC__) || defined(__cplusplus)
2164 int gettimeofday (struct timeval * tp, void * tzp);
2173 if { (eval echo configure:2174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2175 cl_cv_proto_gettimeofday_dots=no
2176 cl_cv_proto_gettimeofday_arg2="void *"
2178 echo "configure: failed program was:" >&5
2179 cat conftest.$ac_ext >&5
2181 cl_cv_proto_gettimeofday_dots=yes
2182 cl_cv_proto_gettimeofday_arg2="..."
2190 cl_cv_proto_gettimeofday="extern int gettimeofday (struct timeval *, $cl_cv_proto_gettimeofday_arg2);"
2193 cl_cv_proto_gettimeofday=`echo "$cl_cv_proto_gettimeofday" | tr -s ' ' | sed -e 's/( /(/'`
2194 echo "$ac_t""${ac_tt}$cl_cv_proto_gettimeofday" 1>&6
2197 if test $cl_cv_proto_gettimeofday_dots = yes; then
2198 cat >> confdefs.h <<\EOF
2199 #define GETTIMEOFDAY_DOTS 1
2203 cat >> confdefs.h <<EOF
2204 #define GETTIMEOFDAY_TZP_T $cl_cv_proto_gettimeofday_arg2
2211 for ac_func in ftime
2213 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2214 echo "configure:2215: checking for $ac_func" >&5
2215 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2216 echo $ac_n "(cached) $ac_c" 1>&6
2218 cat > conftest.$ac_ext <<EOF
2219 #line 2220 "configure"
2220 #include "confdefs.h"
2221 /* System header to define __stub macros and hopefully few prototypes,
2222 which can conflict with char $ac_func(); below. */
2224 /* Override any gcc2 internal prototype to avoid an error. */
2228 /* We use char because int might match the return type of a gcc2
2229 builtin and then its argument prototype would still apply. */
2234 /* The GNU C library defines this for functions which it implements
2235 to always fail with ENOSYS. Some functions are actually named
2236 something starting with __ and the normal name is an alias. */
2237 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2245 if { (eval echo configure:2246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2247 eval "ac_cv_func_$ac_func=yes"
2249 echo "configure: failed program was:" >&5
2250 cat conftest.$ac_ext >&5
2252 eval "ac_cv_func_$ac_func=no"
2257 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2258 echo "$ac_t""yes" 1>&6
2259 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2260 cat >> confdefs.h <<EOF
2261 #define $ac_tr_func 1
2265 echo "$ac_t""no" 1>&6
2269 if test $ac_cv_func_gettimeofday = no -a $ac_cv_func_ftime = no; then
2270 echo $ac_n "checking for times""... $ac_c" 1>&6
2271 echo "configure:2272: checking for times" >&5
2272 if eval "test \"`echo '$''{'ac_cv_func_times'+set}'`\" = set"; then
2273 echo $ac_n "(cached) $ac_c" 1>&6
2275 cat > conftest.$ac_ext <<EOF
2276 #line 2277 "configure"
2277 #include "confdefs.h"
2278 /* System header to define __stub macros and hopefully few prototypes,
2279 which can conflict with char times(); below. */
2281 /* Override any gcc2 internal prototype to avoid an error. */
2285 /* We use char because int might match the return type of a gcc2
2286 builtin and then its argument prototype would still apply. */
2291 /* The GNU C library defines this for functions which it implements
2292 to always fail with ENOSYS. Some functions are actually named
2293 something starting with __ and the normal name is an alias. */
2294 #if defined (__stub_times) || defined (__stub___times)
2302 if { (eval echo configure:2303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2304 eval "ac_cv_func_times=yes"
2306 echo "configure: failed program was:" >&5
2307 cat conftest.$ac_ext >&5
2309 eval "ac_cv_func_times=no"
2314 if eval "test \"`echo '$ac_cv_func_'times`\" = yes"; then
2315 echo "$ac_t""yes" 1>&6
2318 echo "$ac_t""no" 1>&6
2321 if test -z "$no_times"; then
2322 echo $ac_n "checking for times return value""... $ac_c" 1>&6
2323 echo "configure:2324: checking for times return value" >&5
2324 if eval "test \"`echo '$''{'cl_cv_func_times_return'+set}'`\" = set"; then
2325 echo $ac_n "(cached) $ac_c" 1>&6
2328 if test "$cross_compiling" = yes; then
2329 cl_cv_func_times_return="guessing no"
2331 cat > conftest.$ac_ext <<EOF
2332 #line 2333 "configure"
2333 #include "confdefs.h"
2335 extern "C" void exit(int);
2338 #include <sys/types.h>
2339 #include <time.h> /* needed for CLK_TCK */
2341 #include <sys/time.h> /* needed for CLK_TCK on SYSV PTX */
2343 #include <sys/times.h>
2345 { struct tms buffer;
2349 result1 = times(&buffer);
2350 if ((result1 == (clock_t)0) || (result1 == (clock_t)(-1))) exit(1);
2352 result2 = times(&buffer);
2353 if ((result2 == (clock_t)0) || (result2 == (clock_t)(-1))) exit(1);
2354 ticks = result2 - result1;
2355 exit(!((ticks >= CLK_TCK/2) && (ticks <= 3*CLK_TCK/2)));
2358 if { (eval echo configure:2359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2360 cl_cv_func_times_return=yes
2362 echo "configure: failed program was:" >&5
2363 cat conftest.$ac_ext >&5
2365 cl_cv_func_times_return=no
2367 if test -f core; then
2368 coredir=core`/bin/sh -c 'echo $$'`
2370 cp confdefs.h $coredir/confdefs.h
2371 mv conftest.c $coredir/conftest.c
2372 mv conftest $coredir/conftest
2373 mv core $coredir/core
2374 echo "warning: test program dumped core -- see subdirectory $coredir"
2381 echo "$ac_t""$cl_cv_func_times_return" 1>&6
2382 case "$cl_cv_func_times_return" in
2383 *yes) cat >> confdefs.h <<\EOF
2384 #define HAVE_TIMES_CLOCK 1
2392 for ac_hdr in sys/resource.h sys/times.h
2394 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2395 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2396 echo "configure:2397: checking for $ac_hdr" >&5
2397 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2398 echo $ac_n "(cached) $ac_c" 1>&6
2400 cat > conftest.$ac_ext <<EOF
2401 #line 2402 "configure"
2402 #include "confdefs.h"
2405 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2406 { (eval echo configure:2407: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2407 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2408 if test -z "$ac_err"; then
2410 eval "ac_cv_header_$ac_safe=yes"
2413 echo "configure: failed program was:" >&5
2414 cat conftest.$ac_ext >&5
2416 eval "ac_cv_header_$ac_safe=no"
2420 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2421 echo "$ac_t""yes" 1>&6
2422 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2423 cat >> confdefs.h <<EOF
2424 #define $ac_tr_hdr 1
2428 echo "$ac_t""no" 1>&6
2431 if test $ac_cv_header_sys_resource_h = yes; then
2432 echo $ac_n "checking for getrusage""... $ac_c" 1>&6
2433 echo "configure:2434: checking for getrusage" >&5
2434 if eval "test \"`echo '$''{'cl_cv_func_getrusage'+set}'`\" = set"; then
2435 echo $ac_n "(cached) $ac_c" 1>&6
2438 cat > conftest.$ac_ext <<EOF
2439 #line 2440 "configure"
2440 #include "confdefs.h"
2441 #include <sys/types.h> /* NetBSD 1.0 needs this */
2442 #include <sys/time.h>
2443 #include <sys/resource.h>
2445 struct rusage x; int y = RUSAGE_SELF; getrusage(y,&x); x.ru_utime.tv_sec;
2448 if { (eval echo configure:2449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2450 cl_cv_func_getrusage=yes
2452 echo "configure: failed program was:" >&5
2453 cat conftest.$ac_ext >&5
2455 cl_cv_func_getrusage=no
2461 echo "$ac_t""$cl_cv_func_getrusage" 1>&6
2462 if test $cl_cv_func_getrusage = yes; then
2463 cat >> confdefs.h <<\EOF
2464 #define HAVE_GETRUSAGE 1
2468 if test $cl_cv_func_getrusage = yes; then
2469 echo $ac_n "checking for getrusage declaration""... $ac_c" 1>&6
2470 echo "configure:2471: checking for getrusage declaration" >&5
2471 if eval "test \"`echo '$''{'cl_cv_proto_getrusage'+set}'`\" = set"; then
2472 echo $ac_n "(cached) $ac_c" 1>&6
2475 cat > conftest.$ac_ext <<EOF
2476 #line 2477 "configure"
2477 #include "confdefs.h"
2480 #ifdef HAVE_UNISTD_H
2483 #include <sys/types.h> /* NetBSD 1.0 needs this */
2484 #include <sys/time.h>
2485 #include <sys/resource.h>
2492 #if defined(__STDC__) || defined(__cplusplus)
2493 int getrusage (int who, struct rusage * rusage);
2502 if { (eval echo configure:2503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2504 cl_cv_proto_getrusage_arg1="int"
2506 echo "configure: failed program was:" >&5
2507 cat conftest.$ac_ext >&5
2509 cl_cv_proto_getrusage_arg1="enum __rusage_who"
2514 cl_cv_proto_getrusage="extern int getrusage ($cl_cv_proto_getrusage_arg1, struct rusage *);"
2517 cl_cv_proto_getrusage=`echo "$cl_cv_proto_getrusage" | tr -s ' ' | sed -e 's/( /(/'`
2518 echo "$ac_t""${ac_tt}$cl_cv_proto_getrusage" 1>&6
2521 cat >> confdefs.h <<EOF
2522 #define RUSAGE_WHO_T $cl_cv_proto_getrusage_arg1
2528 echo $ac_n "checking for perror declaration""... $ac_c" 1>&6
2529 echo "configure:2530: checking for perror declaration" >&5
2530 if eval "test \"`echo '$''{'cl_cv_proto_perror'+set}'`\" = set"; then
2531 echo $ac_n "(cached) $ac_c" 1>&6
2534 cat > conftest.$ac_ext <<EOF
2535 #line 2536 "configure"
2536 #include "confdefs.h"
2538 /* Some systems declare perror() in <errno.h>, some in <stdio.h>, some don't
2539 declare it at all. */
2551 if { (eval echo configure:2552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2553 cl_cv_proto_perror=no
2555 echo "configure: failed program was:" >&5
2556 cat conftest.$ac_ext >&5
2558 cl_cv_proto_perror=yes
2564 echo "$ac_t""$cl_cv_proto_perror" 1>&6
2565 if test $cl_cv_proto_perror = yes; then
2566 cat >> confdefs.h <<\EOF
2567 #define HAVE_PERROR_DECL 1
2572 echo $ac_n "checking whether characters are unsigned""... $ac_c" 1>&6
2573 echo "configure:2574: checking whether characters are unsigned" >&5
2574 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2575 echo $ac_n "(cached) $ac_c" 1>&6
2578 if test $ac_cv_prog_gcc = yes; then
2579 # GCC predefines this symbol on systems where it applies.
2580 cat > conftest.$ac_ext <<EOF
2581 #line 2582 "configure"
2582 #include "confdefs.h"
2583 #ifdef __CHAR_UNSIGNED__
2588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2589 egrep "yes" >/dev/null 2>&1; then
2591 ac_cv_c_char_unsigned=yes
2594 ac_cv_c_char_unsigned=no
2599 if test "$cross_compiling" = yes; then
2600 ac_cv_c_char_unsigned="guessing no"
2602 cat > conftest.$ac_ext <<EOF
2603 #line 2604 "configure"
2604 #include "confdefs.h"
2606 extern "C" void exit(int);
2608 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2609 #if !defined(__STDC__) || __STDC__ != 1
2613 volatile char c = 255; exit(c < 0);
2616 if { (eval echo configure:2617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2618 ac_cv_c_char_unsigned=yes
2620 echo "configure: failed program was:" >&5
2621 cat conftest.$ac_ext >&5
2623 ac_cv_c_char_unsigned=no
2625 if test -f core; then
2626 coredir=core`/bin/sh -c 'echo $$'`
2628 cp confdefs.h $coredir/confdefs.h
2629 mv conftest.c $coredir/conftest.c
2630 mv conftest $coredir/conftest
2631 mv core $coredir/core
2632 echo "warning: test program dumped core -- see subdirectory $coredir"
2639 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2640 if test $ac_cv_prog_gcc = no; then
2641 # GCC defines __CHAR_UNSIGNED__ by itself, no need to fix up.
2642 case "$ac_cv_c_char_unsigned" in
2643 *yes) cat >> confdefs.h <<\EOF
2644 #define __CHAR_UNSIGNED__ 1
2651 test -d 'include' || mkdir 'include'
2652 cl_machine_file_c=${srcdir}/autoconf/intparam.c
2653 cl_machine_file_h=include/cl_intparam.h
2654 if test $cross_compiling = no; then
2655 if test -z "$cl_cv_file_intparam_h"; then
2656 echo "checking for integer types and behaviour" 1>&6
2657 echo "configure:2658: checking for integer types and behaviour" >&5
2658 cat > conftest.$ac_ext <<EOF
2659 #include "confdefs.h"
2661 cat "$cl_machine_file_c" >> conftest.$ac_ext
2663 if test $ac_cv_prog_gcc = yes; then
2664 # gcc -O (gcc version <= 2.3.2) crashes when compiling long long shifts for
2665 # target 80386. Strip "-O".
2666 CC=`echo "$CC " | sed -e 's/-O //g'`
2668 { (eval echo configure:2669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
2670 if test -s conftest; then
2671 echo "creating $cl_machine_file_h"
2672 ./conftest > conftest.h
2673 if cmp -s "$cl_machine_file_h" conftest.h 2>/dev/null; then
2674 # The file exists and we would not be changing it
2677 rm -f "$cl_machine_file_h"
2678 mv conftest.h "$cl_machine_file_h"
2680 cl_cv_file_intparam_h=1
2682 echo "creation of $cl_machine_file_h failed"
2687 echo "cross-compiling - cannot create $cl_machine_file_h"
2690 cl_machine_file_c=${srcdir}/autoconf/floatparam.c
2691 cl_machine_file_h=include/cl_floatparam.h
2692 if test $cross_compiling = no; then
2693 if test -z "$cl_cv_file_floatparam_h"; then
2694 echo "checking for floating-point types and behaviour" 1>&6
2695 echo "configure:2696: checking for floating-point types and behaviour" >&5
2696 cat > conftest.$ac_ext <<EOF
2697 #include "confdefs.h"
2699 cat "$cl_machine_file_c" >> conftest.$ac_ext
2701 if test $ac_cv_prog_gcc = yes; then
2702 # gcc -O (gcc version <= 2.3.2) crashes when compiling long long shifts for
2703 # target 80386. Strip "-O".
2704 CC=`echo "$CC " | sed -e 's/-O //g'`
2706 { (eval echo configure:2707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
2708 if test -s conftest; then
2709 echo "creating $cl_machine_file_h"
2710 ./conftest > conftest.h
2711 if cmp -s "$cl_machine_file_h" conftest.h 2>/dev/null; then
2712 # The file exists and we would not be changing it
2715 rm -f "$cl_machine_file_h"
2716 mv conftest.h "$cl_machine_file_h"
2718 cl_cv_file_floatparam_h=1
2720 echo "creation of $cl_machine_file_h failed"
2725 echo "cross-compiling - cannot create $cl_machine_file_h"
2728 # Check whether --with-gmp or --without-gmp was given.
2729 if test "${with_gmp+set}" = set; then
2734 if test -z "$with_gmp"; then
2735 if test -d "${srcdir}/gmp"; then
2741 if test "$with_gmp" = yes; then
2742 cat >> confdefs.h <<\EOF
2743 #define CL_USE_GMP 1
2746 GMP_INCLUDES='-I$(top_srcdir)/gmp'
2747 GMP_OBJDEPS='../gmp/mpn/libmpn.la'
2748 GMP_OBJS='../gmp/mpn/*.lo ../gmp/*.lo'
2757 for f in 'tests/.gdbinit'; do
2758 if test '!' -f "$f"; then
2760 g=`echo "$f" | sed -e 's,/[^/]*$,,'`
2761 test "$g" = "$f" || test -d "$g" || mkdir "$g"
2762 cp "$srcdir/$f" "$f"
2766 cat > confcache <<\EOF
2767 # This file is a shell script that caches the results of configure
2768 # tests run on this system so they can be shared between configure
2769 # scripts and configure runs. It is not useful on other systems.
2770 # If it contains results you don't want to keep, you may remove or edit it.
2772 # By default, configure uses ./config.cache as the cache file,
2773 # creating it if it does not exist already. You can give configure
2774 # the --cache-file=FILE option to use a different cache file; that is
2775 # what configure does when it calls configure scripts in
2776 # subdirectories, so they share the cache.
2777 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2778 # config.status only pays attention to the cache file if you give it the
2779 # --recheck option to rerun configure.
2782 # The following way of writing the cache mishandles newlines in values,
2783 # but we know of no workaround that is simple, portable, and efficient.
2784 # So, don't put newlines in cache variables' values.
2785 # Ultrix sh set writes to stderr and can't be redirected directly,
2786 # and sets the high bit in the cache file unless we assign to the vars.
2788 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2790 # `set' does not quote correctly, so add quotes (double-quote substitution
2791 # turns \\\\ into \\, and sed turns \\ into \).
2793 -e "s/'/'\\\\''/g" \
2794 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2797 # `set' quotes correctly as required by POSIX, so do not add quotes.
2798 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2801 if cmp -s $cache_file confcache; then
2804 if test -w $cache_file; then
2805 echo "updating cache $cache_file"
2806 cat confcache > $cache_file
2808 echo "not updating unwritable cache $cache_file"
2813 trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
2815 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2816 # Let make expand exec_prefix.
2817 test "x$exec_prefix" = xNONE && exec_prefix='$(prefix)'
2819 # Any assignment to VPATH causes Sun make to only execute
2820 # the first set of double-colon rules, so remove it if not needed.
2821 # If there is a colon in the path, we need to keep it.
2822 if test "x$srcdir" = x.; then
2823 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2826 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2828 DEFS=-DHAVE_CONFIG_H
2830 # Without the "./", some shells look in PATH for config.status.
2831 : ${CONFIG_STATUS=./config.status}
2833 echo creating $CONFIG_STATUS
2834 rm -f $CONFIG_STATUS
2835 cat > $CONFIG_STATUS <<EOF
2837 # Generated automatically by configure.
2838 # Run this file to recreate the current configuration.
2839 # This directory was configured as follows,
2840 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2842 # $0 $ac_configure_args
2844 # Compiler output produced by configure, useful for debugging
2845 # configure, is in ./config.log if it exists.
2847 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2850 case "\$ac_option" in
2851 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2852 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2853 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2854 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2855 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2857 -help | --help | --hel | --he | --h)
2858 echo "\$ac_cs_usage"; exit 0 ;;
2859 *) echo "\$ac_cs_usage"; exit 1 ;;
2863 ac_given_srcdir=$srcdir
2865 trap 'rm -fr `echo "Makefile src/Makefile tests/Makefile benchmarks/Makefile examples/Makefile doc/Makefile include/cl_config.h src/base/cl_base_config.h src/base/cl_gmpconfig.h src/float/cl_float_config.h src/timing/cl_t_config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2867 cat >> $CONFIG_STATUS <<EOF
2869 # Protect against being on the right side of a sed subst in config.status.
2870 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2871 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2875 s%@CFLAGS@%$CFLAGS%g
2876 s%@CPPFLAGS@%$CPPFLAGS%g
2877 s%@CXXFLAGS@%$CXXFLAGS%g
2878 s%@FFLAGS@%$FFLAGS%g
2880 s%@LDFLAGS@%$LDFLAGS%g
2882 s%@exec_prefix@%$exec_prefix%g
2883 s%@prefix@%$prefix%g
2884 s%@program_transform_name@%$program_transform_name%g
2885 s%@bindir@%$bindir%g
2886 s%@sbindir@%$sbindir%g
2887 s%@libexecdir@%$libexecdir%g
2888 s%@datadir@%$datadir%g
2889 s%@sysconfdir@%$sysconfdir%g
2890 s%@sharedstatedir@%$sharedstatedir%g
2891 s%@localstatedir@%$localstatedir%g
2892 s%@libdir@%$libdir%g
2893 s%@includedir@%$includedir%g
2894 s%@oldincludedir@%$oldincludedir%g
2895 s%@infodir@%$infodir%g
2896 s%@mandir@%$mandir%g
2897 s%@SET_MAKE@%$SET_MAKE%g
2901 s%@CXXCPP@%$CXXCPP%g
2902 s%@AS_UNDERSCORE@%$AS_UNDERSCORE%g
2903 s%@RANLIB@%$RANLIB%g
2904 s%@INSTALL@%$INSTALL%g
2905 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2906 s%@INSTALL_DATA@%$INSTALL_DATA%g
2908 s%@host_cpu@%$host_cpu%g
2909 s%@host_vendor@%$host_vendor%g
2910 s%@host_os@%$host_os%g
2914 s%@LIBTOOL@%$LIBTOOL%g
2915 s%@ALLOCA@%$ALLOCA%g
2916 s%@GMP_INCLUDES@%$GMP_INCLUDES%g
2917 s%@GMP_OBJDEPS@%$GMP_OBJDEPS%g
2918 s%@GMP_OBJS@%$GMP_OBJS%g
2923 cat >> $CONFIG_STATUS <<\EOF
2925 # Split the substitutions into bite-sized pieces for seds with
2926 # small command number limits, like on Digital OSF/1 and HP-UX.
2927 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2928 ac_file=1 # Number of current file.
2929 ac_beg=1 # First line for current file.
2930 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2933 while $ac_more_lines; do
2934 if test $ac_beg -gt 1; then
2935 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2937 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2939 if test ! -s conftest.s$ac_file; then
2941 rm -f conftest.s$ac_file
2943 if test -z "$ac_sed_cmds"; then
2944 ac_sed_cmds="sed -f conftest.s$ac_file"
2946 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2948 ac_file=`expr $ac_file + 1`
2950 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2953 if test -z "$ac_sed_cmds"; then
2958 cat >> $CONFIG_STATUS <<EOF
2960 CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile tests/Makefile benchmarks/Makefile examples/Makefile doc/Makefile"}
2962 cat >> $CONFIG_STATUS <<\EOF
2963 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2964 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2966 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2967 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2968 *) ac_file_in="${ac_file}.in" ;;
2971 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2973 # Remove last slash and all that follows it. Not all systems have dirname.
2974 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2975 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2976 # The file is in a subdirectory.
2977 test ! -d "$ac_dir" && mkdir "$ac_dir"
2978 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2979 # A "../" for each directory in $ac_dir_suffix.
2980 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2982 ac_dir_suffix= ac_dots=
2985 case "$ac_given_srcdir" in
2987 if test -z "$ac_dots"; then top_srcdir=.
2988 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2989 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2991 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2992 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2996 echo creating "$ac_file"
2998 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3000 *Makefile*) ac_comsub="1i\\
3001 # $configure_input" ;;
3005 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3007 s%@configure_input@%$configure_input%g
3008 s%@srcdir@%$srcdir%g
3009 s%@top_srcdir@%$top_srcdir%g
3010 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3014 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3015 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3017 # ac_d sets the value in "#define NAME VALUE" lines.
3018 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3019 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3022 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3023 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3024 ac_uB='\([ ]\)%\1#\2define\3'
3027 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3028 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3029 ac_eB='$%\1#\2define\3'
3032 # ac_f turns "#define NAME" without trailing blanks into "#define NAME VALUE".
3033 ac_fA='s%^\([ ]*\)#\([ ]*\)define\([ ][ ]*\)'
3034 ac_fB='$%\1#\2define\3'
3038 if test "${CONFIG_HEADERS+set}" != set; then
3040 cat >> $CONFIG_STATUS <<EOF
3041 CONFIG_HEADERS="include/cl_config.h src/base/cl_base_config.h src/base/cl_gmpconfig.h src/float/cl_float_config.h src/timing/cl_t_config.h"
3043 cat >> $CONFIG_STATUS <<\EOF
3045 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3046 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3048 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3049 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3050 *) ac_file_in="${ac_file}.in" ;;
3053 echo creating $ac_file
3055 rm -f conftest.frag conftest.in conftest.out
3056 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3057 cat $ac_file_inputs > conftest.in
3061 # Transform confdefs.h into a sed script conftest.vals that substitutes
3062 # the proper values into config.h.in to produce config.h. And first:
3063 # Protect against being on the right side of a sed subst in config.status.
3064 # Protect against being in an unquoted here document in config.status.
3066 cat > conftest.hdr <<\EOF
3069 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3074 sed -n -f conftest.hdr confdefs.h > conftest.vals
3078 # Break up conftest.vals because some shells have a limit on
3079 # the size of here documents, and old seds have small limits too.
3084 ac_lines=`grep -c . conftest.vals`
3085 # grep -c gives empty output for an empty file on some AIX systems.
3086 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3087 # Write a limited-size here document to conftest.frag.
3088 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3089 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3091 sed -f conftest.frag conftest.in > conftest.out
3093 mv conftest.out conftest.in
3095 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3097 mv conftest.tail conftest.vals
3101 cat >> $CONFIG_STATUS <<\EOF
3102 rm -f conftest.frag conftest.h
3103 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3104 cat conftest.in >> conftest.h
3106 if cmp -s $ac_file conftest.h 2>/dev/null; then
3107 echo "$ac_file is unchanged"
3110 # Remove last slash and all that follows it. Not all systems have dirname.
3111 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3112 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3113 # The file is in a subdirectory.
3114 test ! -d "$ac_dir" && mkdir "$ac_dir"
3117 mv conftest.h $ac_file
3122 cat >> $CONFIG_STATUS <<EOF
3125 cat >> $CONFIG_STATUS <<\EOF
3129 chmod +x $CONFIG_STATUS
3130 rm -fr confdefs* $ac_clean_files
3131 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3133 if test "$with_gmp" = yes; then
3135 if test "$no_recursion" != yes; then
3137 # Remove --cache-file and --srcdir arguments so they do not pile up.
3138 ac_sub_configure_args=
3140 for ac_arg in $ac_configure_args; do
3141 if test -n "$ac_prev"; then
3146 -cache-file | --cache-file | --cache-fil | --cache-fi \
3147 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3148 ac_prev=cache_file ;;
3149 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3150 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3152 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3154 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3156 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3160 for ac_config_dir in gmp; do
3162 # Do not complain, so a configure script can configure whichever
3163 # parts of a large source tree are present.
3164 if test ! -d $srcdir/$ac_config_dir; then
3168 echo configuring in $ac_config_dir
3173 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3175 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3183 # A "../" for each directory in /$ac_config_dir.
3184 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3187 .) # No --srcdir option. We are building in place.
3188 ac_sub_srcdir=$srcdir ;;
3189 /*) # Absolute path.
3190 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3192 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3195 # Check for guested configure; otherwise get Cygnus style configure.
3196 if test -f $ac_sub_srcdir/configure; then
3197 ac_sub_configure=$ac_sub_srcdir/configure
3198 elif test -f $ac_sub_srcdir/configure.in; then
3199 ac_sub_configure=$ac_configure
3201 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3205 # The recursion is here.
3206 if test -n "$ac_sub_configure"; then
3208 # Make the cache file name correct relative to the subdirectory.
3209 case "$cache_file" in
3210 /*) ac_sub_cache_file=$cache_file ;;
3212 if test -n "$ac_dots"; then
3213 ac_sub_cache_file="$ac_dots"`echo "$cache_file" | sed 's,^\./,,'`
3215 ac_sub_cache_file="$cache_file"
3220 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3221 # The eval makes quoting arguments work.
3222 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3225 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }