OSDN Git Service

463791ed4b585a47735643639ad724e0daf19e27
[pf3gnuchains/gcc-fork.git] / libgfortran / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for GNU Fortran Runtime Library 0.2.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME='GNU Fortran Runtime Library'
269 PACKAGE_TARNAME='libgfortran'
270 PACKAGE_VERSION='0.2'
271 PACKAGE_STRING='GNU Fortran Runtime Library 0.2'
272 PACKAGE_BUGREPORT=''
273
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT multi_basedir toolexecdir toolexeclibdir CC ac_ct_CC EXEEXT OBJEXT AM_FCFLAGS AM_CFLAGS AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB LN_S LIBTOOL enable_shared enable_static FC FCFLAGS LDFLAGS ac_ct_FC extra_ldflags_libgfortran CPP CPPFLAGS EGREP MATH_OBJ LIBOBJS LTLIBOBJS'
312 ac_subst_files=''
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_FC_set=${FC+set}
753 ac_env_FC_value=$FC
754 ac_cv_env_FC_set=${FC+set}
755 ac_cv_env_FC_value=$FC
756 ac_env_FCFLAGS_set=${FCFLAGS+set}
757 ac_env_FCFLAGS_value=$FCFLAGS
758 ac_cv_env_FCFLAGS_set=${FCFLAGS+set}
759 ac_cv_env_FCFLAGS_value=$FCFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPP_set=${CPP+set}
765 ac_env_CPP_value=$CPP
766 ac_cv_env_CPP_set=${CPP+set}
767 ac_cv_env_CPP_value=$CPP
768 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772
773 #
774 # Report the --help message.
775 #
776 if test "$ac_init_help" = "long"; then
777   # Omit some internal or obsolete options to make the list less imposing.
778   # This message is too long to be a string in the A/UX 3.1 sh.
779   cat <<_ACEOF
780 \`configure' configures GNU Fortran Runtime Library 0.2 to adapt to many kinds of systems.
781
782 Usage: $0 [OPTION]... [VAR=VALUE]...
783
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE.  See below for descriptions of some of the useful variables.
786
787 Defaults for the options are specified in brackets.
788
789 Configuration:
790   -h, --help              display this help and exit
791       --help=short        display options specific to this package
792       --help=recursive    display the short help of all the included packages
793   -V, --version           display version information and exit
794   -q, --quiet, --silent   do not print \`checking...' messages
795       --cache-file=FILE   cache test results in FILE [disabled]
796   -C, --config-cache      alias for \`--cache-file=config.cache'
797   -n, --no-create         do not create output files
798       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
799
800 _ACEOF
801
802   cat <<_ACEOF
803 Installation directories:
804   --prefix=PREFIX         install architecture-independent files in PREFIX
805                           [$ac_default_prefix]
806   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
807                           [PREFIX]
808
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
813
814 For better control, use the options below.
815
816 Fine tuning of the installation directories:
817   --bindir=DIR           user executables [EPREFIX/bin]
818   --sbindir=DIR          system admin executables [EPREFIX/sbin]
819   --libexecdir=DIR       program executables [EPREFIX/libexec]
820   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
821   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
822   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
823   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
824   --libdir=DIR           object code libraries [EPREFIX/lib]
825   --includedir=DIR       C header files [PREFIX/include]
826   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
827   --infodir=DIR          info documentation [PREFIX/info]
828   --mandir=DIR           man documentation [PREFIX/man]
829 _ACEOF
830
831   cat <<\_ACEOF
832
833 Program names:
834   --program-prefix=PREFIX            prepend PREFIX to installed program names
835   --program-suffix=SUFFIX            append SUFFIX to installed program names
836   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
837
838 System types:
839   --build=BUILD     configure for building on BUILD [guessed]
840   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
841   --target=TARGET   configure for building compilers for TARGET [HOST]
842 _ACEOF
843 fi
844
845 if test -n "$ac_init_help"; then
846   case $ac_init_help in
847      short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.2:";;
848    esac
849   cat <<\_ACEOF
850
851 Optional Features:
852   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
853   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
854   --enable-version-specific-runtime-libs    Specify that runtime libraries should be installed in a compiler-specific directory
855   --enable-maintainer-mode  enable make rules and dependencies not useful
856                           (and sometimes confusing) to the casual installer
857   --enable-multilib       build many library versions (default)
858   --enable-shared=PKGS  build shared libraries default=yes
859   --enable-static=PKGS  build static libraries default=yes
860   --enable-fast-install=PKGS  optimize for fast installation default=yes
861   --disable-libtool-lock  avoid locking (might break parallel builds)
862   --disable-largefile     omit support for large files
863   --enable-cmath          Include complex math functions
864
865 Optional Packages:
866   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
867   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
868   --with-gnu-ld           assume the C compiler uses GNU ld default=no
869   --with-pic              try to use only PIC/non-PIC objects default=use both
870
871 Some influential environment variables:
872   CC          C compiler command
873   CFLAGS      C compiler flags
874   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
875               nonstandard directory <lib dir>
876   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
877               headers in a nonstandard directory <include dir>
878   FC          Fortran compiler command
879   FCFLAGS     Fortran compiler flags
880   CPP         C preprocessor
881
882 Use these variables to override the choices made by `configure' or to help
883 it to find libraries and programs with nonstandard names/locations.
884
885 _ACEOF
886 fi
887
888 if test "$ac_init_help" = "recursive"; then
889   # If there are subdirs, report their specific --help.
890   ac_popdir=`pwd`
891   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
892     test -d $ac_dir || continue
893     ac_builddir=.
894
895 if test "$ac_dir" != .; then
896   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
897   # A "../" for each directory in $ac_dir_suffix.
898   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
899 else
900   ac_dir_suffix= ac_top_builddir=
901 fi
902
903 case $srcdir in
904   .)  # No --srcdir option.  We are building in place.
905     ac_srcdir=.
906     if test -z "$ac_top_builddir"; then
907        ac_top_srcdir=.
908     else
909        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
910     fi ;;
911   [\\/]* | ?:[\\/]* )  # Absolute path.
912     ac_srcdir=$srcdir$ac_dir_suffix;
913     ac_top_srcdir=$srcdir ;;
914   *) # Relative path.
915     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
916     ac_top_srcdir=$ac_top_builddir$srcdir ;;
917 esac
918
919 # Do not use `cd foo && pwd` to compute absolute paths, because
920 # the directories may not exist.
921 case `pwd` in
922 .) ac_abs_builddir="$ac_dir";;
923 *)
924   case "$ac_dir" in
925   .) ac_abs_builddir=`pwd`;;
926   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
927   *) ac_abs_builddir=`pwd`/"$ac_dir";;
928   esac;;
929 esac
930 case $ac_abs_builddir in
931 .) ac_abs_top_builddir=${ac_top_builddir}.;;
932 *)
933   case ${ac_top_builddir}. in
934   .) ac_abs_top_builddir=$ac_abs_builddir;;
935   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
936   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
937   esac;;
938 esac
939 case $ac_abs_builddir in
940 .) ac_abs_srcdir=$ac_srcdir;;
941 *)
942   case $ac_srcdir in
943   .) ac_abs_srcdir=$ac_abs_builddir;;
944   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
945   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
946   esac;;
947 esac
948 case $ac_abs_builddir in
949 .) ac_abs_top_srcdir=$ac_top_srcdir;;
950 *)
951   case $ac_top_srcdir in
952   .) ac_abs_top_srcdir=$ac_abs_builddir;;
953   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
954   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
955   esac;;
956 esac
957
958     cd $ac_dir
959     # Check for guested configure; otherwise get Cygnus style configure.
960     if test -f $ac_srcdir/configure.gnu; then
961       echo
962       $SHELL $ac_srcdir/configure.gnu  --help=recursive
963     elif test -f $ac_srcdir/configure; then
964       echo
965       $SHELL $ac_srcdir/configure  --help=recursive
966     elif test -f $ac_srcdir/configure.ac ||
967            test -f $ac_srcdir/configure.in; then
968       echo
969       $ac_configure --help
970     else
971       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
972     fi
973     cd $ac_popdir
974   done
975 fi
976
977 test -n "$ac_init_help" && exit 0
978 if $ac_init_version; then
979   cat <<\_ACEOF
980 GNU Fortran Runtime Library configure 0.2
981 generated by GNU Autoconf 2.59
982
983 Copyright (C) 2003 Free Software Foundation, Inc.
984 This configure script is free software; the Free Software Foundation
985 gives unlimited permission to copy, distribute and modify it.
986 _ACEOF
987   exit 0
988 fi
989 exec 5>config.log
990 cat >&5 <<_ACEOF
991 This file contains any messages produced by compilers while
992 running configure, to aid debugging if configure makes a mistake.
993
994 It was created by GNU Fortran Runtime Library $as_me 0.2, which was
995 generated by GNU Autoconf 2.59.  Invocation command line was
996
997   $ $0 $@
998
999 _ACEOF
1000 {
1001 cat <<_ASUNAME
1002 ## --------- ##
1003 ## Platform. ##
1004 ## --------- ##
1005
1006 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1007 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1008 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1009 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1010 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1011
1012 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1013 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1014
1015 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1016 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1017 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1018 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1019 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1020 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1021 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1022
1023 _ASUNAME
1024
1025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1026 for as_dir in $PATH
1027 do
1028   IFS=$as_save_IFS
1029   test -z "$as_dir" && as_dir=.
1030   echo "PATH: $as_dir"
1031 done
1032
1033 } >&5
1034
1035 cat >&5 <<_ACEOF
1036
1037
1038 ## ----------- ##
1039 ## Core tests. ##
1040 ## ----------- ##
1041
1042 _ACEOF
1043
1044
1045 # Keep a trace of the command line.
1046 # Strip out --no-create and --no-recursion so they do not pile up.
1047 # Strip out --silent because we don't want to record it for future runs.
1048 # Also quote any args containing shell meta-characters.
1049 # Make two passes to allow for proper duplicate-argument suppression.
1050 ac_configure_args=
1051 ac_configure_args0=
1052 ac_configure_args1=
1053 ac_sep=
1054 ac_must_keep_next=false
1055 for ac_pass in 1 2
1056 do
1057   for ac_arg
1058   do
1059     case $ac_arg in
1060     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1061     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062     | -silent | --silent | --silen | --sile | --sil)
1063       continue ;;
1064     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1065       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1066     esac
1067     case $ac_pass in
1068     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1069     2)
1070       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1071       if test $ac_must_keep_next = true; then
1072         ac_must_keep_next=false # Got value, back to normal.
1073       else
1074         case $ac_arg in
1075           *=* | --config-cache | -C | -disable-* | --disable-* \
1076           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1077           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1078           | -with-* | --with-* | -without-* | --without-* | --x)
1079             case "$ac_configure_args0 " in
1080               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1081             esac
1082             ;;
1083           -* ) ac_must_keep_next=true ;;
1084         esac
1085       fi
1086       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1087       # Get rid of the leading space.
1088       ac_sep=" "
1089       ;;
1090     esac
1091   done
1092 done
1093 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1094 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1095
1096 # When interrupted or exit'd, cleanup temporary files, and complete
1097 # config.log.  We remove comments because anyway the quotes in there
1098 # would cause problems or look ugly.
1099 # WARNING: Be sure not to use single quotes in there, as some shells,
1100 # such as our DU 5.0 friend, will then `close' the trap.
1101 trap 'exit_status=$?
1102   # Save into config.log some information that might help in debugging.
1103   {
1104     echo
1105
1106     cat <<\_ASBOX
1107 ## ---------------- ##
1108 ## Cache variables. ##
1109 ## ---------------- ##
1110 _ASBOX
1111     echo
1112     # The following way of writing the cache mishandles newlines in values,
1113 {
1114   (set) 2>&1 |
1115     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1116     *ac_space=\ *)
1117       sed -n \
1118         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1119           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1120       ;;
1121     *)
1122       sed -n \
1123         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1124       ;;
1125     esac;
1126 }
1127     echo
1128
1129     cat <<\_ASBOX
1130 ## ----------------- ##
1131 ## Output variables. ##
1132 ## ----------------- ##
1133 _ASBOX
1134     echo
1135     for ac_var in $ac_subst_vars
1136     do
1137       eval ac_val=$`echo $ac_var`
1138       echo "$ac_var='"'"'$ac_val'"'"'"
1139     done | sort
1140     echo
1141
1142     if test -n "$ac_subst_files"; then
1143       cat <<\_ASBOX
1144 ## ------------- ##
1145 ## Output files. ##
1146 ## ------------- ##
1147 _ASBOX
1148       echo
1149       for ac_var in $ac_subst_files
1150       do
1151         eval ac_val=$`echo $ac_var`
1152         echo "$ac_var='"'"'$ac_val'"'"'"
1153       done | sort
1154       echo
1155     fi
1156
1157     if test -s confdefs.h; then
1158       cat <<\_ASBOX
1159 ## ----------- ##
1160 ## confdefs.h. ##
1161 ## ----------- ##
1162 _ASBOX
1163       echo
1164       sed "/^$/d" confdefs.h | sort
1165       echo
1166     fi
1167     test "$ac_signal" != 0 &&
1168       echo "$as_me: caught signal $ac_signal"
1169     echo "$as_me: exit $exit_status"
1170   } >&5
1171   rm -f core *.core &&
1172   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1173     exit $exit_status
1174      ' 0
1175 for ac_signal in 1 2 13 15; do
1176   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1177 done
1178 ac_signal=0
1179
1180 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1181 rm -rf conftest* confdefs.h
1182 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1183 echo >confdefs.h
1184
1185 # Predefined preprocessor variables.
1186
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_NAME "$PACKAGE_NAME"
1189 _ACEOF
1190
1191
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1194 _ACEOF
1195
1196
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1199 _ACEOF
1200
1201
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_STRING "$PACKAGE_STRING"
1204 _ACEOF
1205
1206
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1209 _ACEOF
1210
1211
1212 # Let the site file select an alternate cache file if it wants to.
1213 # Prefer explicitly selected file to automatically selected ones.
1214 if test -z "$CONFIG_SITE"; then
1215   if test "x$prefix" != xNONE; then
1216     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1217   else
1218     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1219   fi
1220 fi
1221 for ac_site_file in $CONFIG_SITE; do
1222   if test -r "$ac_site_file"; then
1223     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1224 echo "$as_me: loading site script $ac_site_file" >&6;}
1225     sed 's/^/| /' "$ac_site_file" >&5
1226     . "$ac_site_file"
1227   fi
1228 done
1229
1230 if test -r "$cache_file"; then
1231   # Some versions of bash will fail to source /dev/null (special
1232   # files actually), so we avoid doing that.
1233   if test -f "$cache_file"; then
1234     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1235 echo "$as_me: loading cache $cache_file" >&6;}
1236     case $cache_file in
1237       [\\/]* | ?:[\\/]* ) . $cache_file;;
1238       *)                      . ./$cache_file;;
1239     esac
1240   fi
1241 else
1242   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1243 echo "$as_me: creating cache $cache_file" >&6;}
1244   >$cache_file
1245 fi
1246
1247 # Check that the precious variables saved in the cache have kept the same
1248 # value.
1249 ac_cache_corrupted=false
1250 for ac_var in `(set) 2>&1 |
1251                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1252   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1253   eval ac_new_set=\$ac_env_${ac_var}_set
1254   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1255   eval ac_new_val="\$ac_env_${ac_var}_value"
1256   case $ac_old_set,$ac_new_set in
1257     set,)
1258       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1259 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1260       ac_cache_corrupted=: ;;
1261     ,set)
1262       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1263 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1264       ac_cache_corrupted=: ;;
1265     ,);;
1266     *)
1267       if test "x$ac_old_val" != "x$ac_new_val"; then
1268         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1269 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1270         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1271 echo "$as_me:   former value:  $ac_old_val" >&2;}
1272         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1273 echo "$as_me:   current value: $ac_new_val" >&2;}
1274         ac_cache_corrupted=:
1275       fi;;
1276   esac
1277   # Pass precious variables to config.status.
1278   if test "$ac_new_set" = set; then
1279     case $ac_new_val in
1280     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1281       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1282     *) ac_arg=$ac_var=$ac_new_val ;;
1283     esac
1284     case " $ac_configure_args " in
1285       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1286       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1287     esac
1288   fi
1289 done
1290 if $ac_cache_corrupted; then
1291   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1292 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1293   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1294 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1295    { (exit 1); exit 1; }; }
1296 fi
1297
1298 ac_ext=c
1299 ac_cpp='$CPP $CPPFLAGS'
1300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330           ac_config_headers="$ac_config_headers config.h"
1331
1332
1333 # -------
1334 # Options
1335 # -------
1336
1337 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1338 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1339 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1340 if test "${enable_version_specific_runtime_libs+set}" = set; then
1341   enableval="$enable_version_specific_runtime_libs"
1342   case "$enableval" in
1343  yes) version_specific_libs=yes ;;
1344  no)  version_specific_libs=no ;;
1345  *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1346 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1347    { (exit 1); exit 1; }; };;
1348  esac
1349 else
1350   version_specific_libs=no
1351 fi;
1352 echo "$as_me:$LINENO: result: $version_specific_libs" >&5
1353 echo "${ECHO_T}$version_specific_libs" >&6
1354
1355
1356 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1357 #
1358 # You will slowly go insane if you do not grok the following fact:  when
1359 # building this library, the top-level /target/ becomes the library's /host/.
1360 #
1361 # configure then causes --target to default to --host, exactly like any
1362 # other package using autoconf.  Therefore, 'target' and 'host' will
1363 # always be the same.  This makes sense both for native and cross compilers
1364 # just think about it for a little while.  :-)
1365 #
1366 # Also, if this library is being configured as part of a cross compiler, the
1367 # top-level configure script will pass the "real" host as $with_cross_host.
1368 #
1369 # Do not delete or change the following two lines.  For why, see
1370 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1371 ac_aux_dir=
1372 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1373   if test -f $ac_dir/install-sh; then
1374     ac_aux_dir=$ac_dir
1375     ac_install_sh="$ac_aux_dir/install-sh -c"
1376     break
1377   elif test -f $ac_dir/install.sh; then
1378     ac_aux_dir=$ac_dir
1379     ac_install_sh="$ac_aux_dir/install.sh -c"
1380     break
1381   elif test -f $ac_dir/shtool; then
1382     ac_aux_dir=$ac_dir
1383     ac_install_sh="$ac_aux_dir/shtool install -c"
1384     break
1385   fi
1386 done
1387 if test -z "$ac_aux_dir"; then
1388   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1389 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1390    { (exit 1); exit 1; }; }
1391 fi
1392 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1393 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1394 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1395
1396 # Make sure we can run config.sub.
1397 $ac_config_sub sun4 >/dev/null 2>&1 ||
1398   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1399 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1400    { (exit 1); exit 1; }; }
1401
1402 echo "$as_me:$LINENO: checking build system type" >&5
1403 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1404 if test "${ac_cv_build+set}" = set; then
1405   echo $ECHO_N "(cached) $ECHO_C" >&6
1406 else
1407   ac_cv_build_alias=$build_alias
1408 test -z "$ac_cv_build_alias" &&
1409   ac_cv_build_alias=`$ac_config_guess`
1410 test -z "$ac_cv_build_alias" &&
1411   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1412 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1413    { (exit 1); exit 1; }; }
1414 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1415   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1416 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1417    { (exit 1); exit 1; }; }
1418
1419 fi
1420 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1421 echo "${ECHO_T}$ac_cv_build" >&6
1422 build=$ac_cv_build
1423 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1424 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1425 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1426
1427
1428 echo "$as_me:$LINENO: checking host system type" >&5
1429 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1430 if test "${ac_cv_host+set}" = set; then
1431   echo $ECHO_N "(cached) $ECHO_C" >&6
1432 else
1433   ac_cv_host_alias=$host_alias
1434 test -z "$ac_cv_host_alias" &&
1435   ac_cv_host_alias=$ac_cv_build_alias
1436 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1437   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1438 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1439    { (exit 1); exit 1; }; }
1440
1441 fi
1442 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1443 echo "${ECHO_T}$ac_cv_host" >&6
1444 host=$ac_cv_host
1445 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1446 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1447 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1448
1449
1450 echo "$as_me:$LINENO: checking target system type" >&5
1451 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1452 if test "${ac_cv_target+set}" = set; then
1453   echo $ECHO_N "(cached) $ECHO_C" >&6
1454 else
1455   ac_cv_target_alias=$target_alias
1456 test "x$ac_cv_target_alias" = "x" &&
1457   ac_cv_target_alias=$ac_cv_host_alias
1458 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1459   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1460 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1461    { (exit 1); exit 1; }; }
1462
1463 fi
1464 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1465 echo "${ECHO_T}$ac_cv_target" >&6
1466 target=$ac_cv_target
1467 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1468 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1469 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1470
1471
1472 # The aliases save the names the user supplied, while $host etc.
1473 # will get canonicalized.
1474 test -n "$target_alias" &&
1475   test "$program_prefix$program_suffix$program_transform_name" = \
1476     NONENONEs,x,x, &&
1477   program_prefix=${target_alias}-
1478 target_alias=${target_alias-$host_alias}
1479
1480 # Sets up automake.  Must come after AC_CANONICAL_SYSTEM.  Each of the
1481 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1482 #  1.8.2:  minimum required version
1483 #  no-define:  PACKAGE and VERSION will not be #define'd in config.h (a bunch
1484 #              of other PACKAGE_* variables will, however, and there's nothing
1485 #              we can do about that; they come from AC_INIT).
1486 #  foreign:  we don't follow the normal rules for GNU packages (no COPYING
1487 #            file in the top srcdir, etc, etc), so stop complaining.
1488 #  no-dependencies:  turns off auto dependency generation (just for now)
1489 #  -Wall:  turns on all automake warnings...
1490 #  -Wno-portability:  ...except this one, since GNU make is required.
1491 am__api_version="1.9"
1492 # Find a good install program.  We prefer a C program (faster),
1493 # so one script is as good as another.  But avoid the broken or
1494 # incompatible versions:
1495 # SysV /etc/install, /usr/sbin/install
1496 # SunOS /usr/etc/install
1497 # IRIX /sbin/install
1498 # AIX /bin/install
1499 # AmigaOS /C/install, which installs bootblocks on floppy discs
1500 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1501 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1502 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1503 # OS/2's system install, which has a completely different semantic
1504 # ./install, which can be erroneously created by make from ./install.sh.
1505 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1506 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1507 if test -z "$INSTALL"; then
1508 if test "${ac_cv_path_install+set}" = set; then
1509   echo $ECHO_N "(cached) $ECHO_C" >&6
1510 else
1511   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1512 for as_dir in $PATH
1513 do
1514   IFS=$as_save_IFS
1515   test -z "$as_dir" && as_dir=.
1516   # Account for people who put trailing slashes in PATH elements.
1517 case $as_dir/ in
1518   ./ | .// | /cC/* | \
1519   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1520   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1521   /usr/ucb/* ) ;;
1522   *)
1523     # OSF1 and SCO ODT 3.0 have their own names for install.
1524     # Don't use installbsd from OSF since it installs stuff as root
1525     # by default.
1526     for ac_prog in ginstall scoinst install; do
1527       for ac_exec_ext in '' $ac_executable_extensions; do
1528         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1529           if test $ac_prog = install &&
1530             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1531             # AIX install.  It has an incompatible calling convention.
1532             :
1533           elif test $ac_prog = install &&
1534             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1535             # program-specific install script used by HP pwplus--don't use.
1536             :
1537           else
1538             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1539             break 3
1540           fi
1541         fi
1542       done
1543     done
1544     ;;
1545 esac
1546 done
1547
1548
1549 fi
1550   if test "${ac_cv_path_install+set}" = set; then
1551     INSTALL=$ac_cv_path_install
1552   else
1553     # As a last resort, use the slow shell script.  We don't cache a
1554     # path for INSTALL within a source directory, because that will
1555     # break other packages using the cache if that directory is
1556     # removed, or if the path is relative.
1557     INSTALL=$ac_install_sh
1558   fi
1559 fi
1560 echo "$as_me:$LINENO: result: $INSTALL" >&5
1561 echo "${ECHO_T}$INSTALL" >&6
1562
1563 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1564 # It thinks the first close brace ends the variable substitution.
1565 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1566
1567 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1568
1569 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1570
1571 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1572 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1573 # Just in case
1574 sleep 1
1575 echo timestamp > conftest.file
1576 # Do `set' in a subshell so we don't clobber the current shell's
1577 # arguments.  Must try -L first in case configure is actually a
1578 # symlink; some systems play weird games with the mod time of symlinks
1579 # (eg FreeBSD returns the mod time of the symlink's containing
1580 # directory).
1581 if (
1582    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1583    if test "$*" = "X"; then
1584       # -L didn't work.
1585       set X `ls -t $srcdir/configure conftest.file`
1586    fi
1587    rm -f conftest.file
1588    if test "$*" != "X $srcdir/configure conftest.file" \
1589       && test "$*" != "X conftest.file $srcdir/configure"; then
1590
1591       # If neither matched, then we have a broken ls.  This can happen
1592       # if, for instance, CONFIG_SHELL is bash and it inherits a
1593       # broken ls alias from the environment.  This has actually
1594       # happened.  Such a system could not be considered "sane".
1595       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1596 alias in your environment" >&5
1597 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1598 alias in your environment" >&2;}
1599    { (exit 1); exit 1; }; }
1600    fi
1601
1602    test "$2" = conftest.file
1603    )
1604 then
1605    # Ok.
1606    :
1607 else
1608    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1609 Check your system clock" >&5
1610 echo "$as_me: error: newly created file is older than distributed files!
1611 Check your system clock" >&2;}
1612    { (exit 1); exit 1; }; }
1613 fi
1614 echo "$as_me:$LINENO: result: yes" >&5
1615 echo "${ECHO_T}yes" >&6
1616 test "$program_prefix" != NONE &&
1617   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1618 # Use a double $ so make ignores it.
1619 test "$program_suffix" != NONE &&
1620   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1621 # Double any \ or $.  echo might interpret backslashes.
1622 # By default was `s,x,x', remove it if useless.
1623 cat <<\_ACEOF >conftest.sed
1624 s/[\\$]/&&/g;s/;s,x,x,$//
1625 _ACEOF
1626 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1627 rm conftest.sed
1628
1629 # expand $ac_aux_dir to an absolute path
1630 am_aux_dir=`cd $ac_aux_dir && pwd`
1631
1632 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1633 # Use eval to expand $SHELL
1634 if eval "$MISSING --run true"; then
1635   am_missing_run="$MISSING --run "
1636 else
1637   am_missing_run=
1638   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1639 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1640 fi
1641
1642 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1643   # We used to keeping the `.' as first argument, in order to
1644   # allow $(mkdir_p) to be used without argument.  As in
1645   #   $(mkdir_p) $(somedir)
1646   # where $(somedir) is conditionally defined.  However this is wrong
1647   # for two reasons:
1648   #  1. if the package is installed by a user who cannot write `.'
1649   #     make install will fail,
1650   #  2. the above comment should most certainly read
1651   #     $(mkdir_p) $(DESTDIR)$(somedir)
1652   #     so it does not work when $(somedir) is undefined and
1653   #     $(DESTDIR) is not.
1654   #  To support the latter case, we have to write
1655   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1656   #  so the `.' trick is pointless.
1657   mkdir_p='mkdir -p --'
1658 else
1659   # On NextStep and OpenStep, the `mkdir' command does not
1660   # recognize any option.  It will interpret all options as
1661   # directories to create, and then abort because `.' already
1662   # exists.
1663   for d in ./-p ./--version;
1664   do
1665     test -d $d && rmdir $d
1666   done
1667   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1668   if test -f "$ac_aux_dir/mkinstalldirs"; then
1669     mkdir_p='$(mkinstalldirs)'
1670   else
1671     mkdir_p='$(install_sh) -d'
1672   fi
1673 fi
1674
1675 for ac_prog in gawk mawk nawk awk
1676 do
1677   # Extract the first word of "$ac_prog", so it can be a program name with args.
1678 set dummy $ac_prog; ac_word=$2
1679 echo "$as_me:$LINENO: checking for $ac_word" >&5
1680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1681 if test "${ac_cv_prog_AWK+set}" = set; then
1682   echo $ECHO_N "(cached) $ECHO_C" >&6
1683 else
1684   if test -n "$AWK"; then
1685   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1686 else
1687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1688 for as_dir in $PATH
1689 do
1690   IFS=$as_save_IFS
1691   test -z "$as_dir" && as_dir=.
1692   for ac_exec_ext in '' $ac_executable_extensions; do
1693   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1694     ac_cv_prog_AWK="$ac_prog"
1695     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1696     break 2
1697   fi
1698 done
1699 done
1700
1701 fi
1702 fi
1703 AWK=$ac_cv_prog_AWK
1704 if test -n "$AWK"; then
1705   echo "$as_me:$LINENO: result: $AWK" >&5
1706 echo "${ECHO_T}$AWK" >&6
1707 else
1708   echo "$as_me:$LINENO: result: no" >&5
1709 echo "${ECHO_T}no" >&6
1710 fi
1711
1712   test -n "$AWK" && break
1713 done
1714
1715 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1716 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1717 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1718 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1719   echo $ECHO_N "(cached) $ECHO_C" >&6
1720 else
1721   cat >conftest.make <<\_ACEOF
1722 all:
1723         @echo 'ac_maketemp="$(MAKE)"'
1724 _ACEOF
1725 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1726 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1727 if test -n "$ac_maketemp"; then
1728   eval ac_cv_prog_make_${ac_make}_set=yes
1729 else
1730   eval ac_cv_prog_make_${ac_make}_set=no
1731 fi
1732 rm -f conftest.make
1733 fi
1734 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1735   echo "$as_me:$LINENO: result: yes" >&5
1736 echo "${ECHO_T}yes" >&6
1737   SET_MAKE=
1738 else
1739   echo "$as_me:$LINENO: result: no" >&5
1740 echo "${ECHO_T}no" >&6
1741   SET_MAKE="MAKE=${MAKE-make}"
1742 fi
1743
1744 rm -rf .tst 2>/dev/null
1745 mkdir .tst 2>/dev/null
1746 if test -d .tst; then
1747   am__leading_dot=.
1748 else
1749   am__leading_dot=_
1750 fi
1751 rmdir .tst 2>/dev/null
1752
1753 # test to see if srcdir already configured
1754 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1755    test -f $srcdir/config.status; then
1756   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1757 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1758    { (exit 1); exit 1; }; }
1759 fi
1760
1761 # test whether we have cygpath
1762 if test -z "$CYGPATH_W"; then
1763   if (cygpath --version) >/dev/null 2>/dev/null; then
1764     CYGPATH_W='cygpath -w'
1765   else
1766     CYGPATH_W=echo
1767   fi
1768 fi
1769
1770
1771 # Define the identity of the package.
1772  PACKAGE='libgfortran'
1773  VERSION='0.2'
1774
1775
1776 # Some tools Automake needs.
1777
1778 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1779
1780
1781 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1782
1783
1784 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1785
1786
1787 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1788
1789
1790 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1791
1792 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1793
1794 # Installed binaries are usually stripped using `strip' when the user
1795 # run `make install-strip'.  However `strip' might not be the right
1796 # tool to use in cross-compilation environments, therefore Automake
1797 # will honor the `STRIP' environment variable to overrule this program.
1798 if test "$cross_compiling" != no; then
1799   if test -n "$ac_tool_prefix"; then
1800   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1801 set dummy ${ac_tool_prefix}strip; ac_word=$2
1802 echo "$as_me:$LINENO: checking for $ac_word" >&5
1803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1804 if test "${ac_cv_prog_STRIP+set}" = set; then
1805   echo $ECHO_N "(cached) $ECHO_C" >&6
1806 else
1807   if test -n "$STRIP"; then
1808   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1809 else
1810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1811 for as_dir in $PATH
1812 do
1813   IFS=$as_save_IFS
1814   test -z "$as_dir" && as_dir=.
1815   for ac_exec_ext in '' $ac_executable_extensions; do
1816   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1817     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1818     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1819     break 2
1820   fi
1821 done
1822 done
1823
1824 fi
1825 fi
1826 STRIP=$ac_cv_prog_STRIP
1827 if test -n "$STRIP"; then
1828   echo "$as_me:$LINENO: result: $STRIP" >&5
1829 echo "${ECHO_T}$STRIP" >&6
1830 else
1831   echo "$as_me:$LINENO: result: no" >&5
1832 echo "${ECHO_T}no" >&6
1833 fi
1834
1835 fi
1836 if test -z "$ac_cv_prog_STRIP"; then
1837   ac_ct_STRIP=$STRIP
1838   # Extract the first word of "strip", so it can be a program name with args.
1839 set dummy strip; ac_word=$2
1840 echo "$as_me:$LINENO: checking for $ac_word" >&5
1841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1842 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1843   echo $ECHO_N "(cached) $ECHO_C" >&6
1844 else
1845   if test -n "$ac_ct_STRIP"; then
1846   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1847 else
1848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1849 for as_dir in $PATH
1850 do
1851   IFS=$as_save_IFS
1852   test -z "$as_dir" && as_dir=.
1853   for ac_exec_ext in '' $ac_executable_extensions; do
1854   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1855     ac_cv_prog_ac_ct_STRIP="strip"
1856     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1857     break 2
1858   fi
1859 done
1860 done
1861
1862   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1863 fi
1864 fi
1865 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1866 if test -n "$ac_ct_STRIP"; then
1867   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1868 echo "${ECHO_T}$ac_ct_STRIP" >&6
1869 else
1870   echo "$as_me:$LINENO: result: no" >&5
1871 echo "${ECHO_T}no" >&6
1872 fi
1873
1874   STRIP=$ac_ct_STRIP
1875 else
1876   STRIP="$ac_cv_prog_STRIP"
1877 fi
1878
1879 fi
1880 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1881
1882 # We need awk for the "check" target.  The system "awk" is bad on
1883 # some platforms.
1884 # Always define AMTAR for backward compatibility.
1885
1886 AMTAR=${AMTAR-"${am_missing_run}tar"}
1887
1888 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1889
1890
1891
1892
1893
1894
1895 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1896 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1897     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1898 if test "${enable_maintainer_mode+set}" = set; then
1899   enableval="$enable_maintainer_mode"
1900   USE_MAINTAINER_MODE=$enableval
1901 else
1902   USE_MAINTAINER_MODE=no
1903 fi;
1904   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1905 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1906
1907
1908 if test $USE_MAINTAINER_MODE = yes; then
1909   MAINTAINER_MODE_TRUE=
1910   MAINTAINER_MODE_FALSE='#'
1911 else
1912   MAINTAINER_MODE_TRUE='#'
1913   MAINTAINER_MODE_FALSE=
1914 fi
1915
1916   MAINT=$MAINTAINER_MODE_TRUE
1917
1918
1919 # Default to --enable-multilib
1920 # Check whether --enable-multilib or --disable-multilib was given.
1921 if test "${enable_multilib+set}" = set; then
1922   enableval="$enable_multilib"
1923   case "$enableval" in
1924   yes) multilib=yes ;;
1925   no)  multilib=no ;;
1926   *)   { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1927 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1928    { (exit 1); exit 1; }; } ;;
1929  esac
1930 else
1931   multilib=yes
1932 fi;
1933
1934 # We may get other options which we leave undocumented:
1935 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1936 # See config-ml.in if you want the gory details.
1937
1938 if test "$srcdir" = "."; then
1939   if test "$with_target_subdir" != "."; then
1940     multi_basedir="$srcdir/$with_multisrctop../.."
1941   else
1942     multi_basedir="$srcdir/$with_multisrctop.."
1943   fi
1944 else
1945   multi_basedir="$srcdir/.."
1946 fi
1947
1948
1949           ac_config_commands="$ac_config_commands default-1"
1950
1951
1952 # Handy for debugging:
1953 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
1954
1955 # Are we being configured with some form of cross compiler?
1956 # NB: We don't actually need to know this just now, but when, say, a test
1957 #     suite is included, we'll have to know.
1958 if test "$build" != "$host"; then
1959   LIBGFOR_IS_NATIVE=false
1960   GCC_NO_EXECUTABLES
1961 else
1962   LIBGFOR_IS_NATIVE=true
1963 fi
1964
1965 # Calculate toolexeclibdir
1966 # Also toolexecdir, though it's only used in toolexeclibdir
1967 case ${version_specific_libs} in
1968   yes)
1969     # Need the gcc compiler version to know where to install libraries
1970     # and header files if --enable-version-specific-runtime-libs option
1971     # is selected.
1972     toolexecdir='$(libdir)/gcc/$(target_alias)'
1973     toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
1974     ;;
1975   no)
1976     if test -n "$with_cross_host" &&
1977        test x"$with_cross_host" != x"no"; then
1978       # Install a library built with a cross compiler in tooldir, not libdir.
1979       toolexecdir='$(exec_prefix)/$(target_alias)'
1980       toolexeclibdir='$(toolexecdir)/lib'
1981     else
1982       toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
1983       toolexeclibdir='$(libdir)'
1984     fi
1985     multi_os_directory=`$CC -print-multi-os-directory`
1986     case $multi_os_directory in
1987       .) ;; # Avoid trailing /.
1988       *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
1989     esac
1990     ;;
1991 esac
1992
1993
1994
1995 # Check the compiler.
1996 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
1997 # We must force CC to /not/ be precious variables; otherwise
1998 # the wrong, non-multilib-adjusted value will be used in multilibs.
1999 # As a side effect, we have to subst CFLAGS ourselves.
2000
2001
2002
2003 ac_ext=c
2004 ac_cpp='$CPP $CPPFLAGS'
2005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2008 if test -n "$ac_tool_prefix"; then
2009   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2010 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2011 echo "$as_me:$LINENO: checking for $ac_word" >&5
2012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2013 if test "${ac_cv_prog_CC+set}" = set; then
2014   echo $ECHO_N "(cached) $ECHO_C" >&6
2015 else
2016   if test -n "$CC"; then
2017   ac_cv_prog_CC="$CC" # Let the user override the test.
2018 else
2019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020 for as_dir in $PATH
2021 do
2022   IFS=$as_save_IFS
2023   test -z "$as_dir" && as_dir=.
2024   for ac_exec_ext in '' $ac_executable_extensions; do
2025   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2026     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2027     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2028     break 2
2029   fi
2030 done
2031 done
2032
2033 fi
2034 fi
2035 CC=$ac_cv_prog_CC
2036 if test -n "$CC"; then
2037   echo "$as_me:$LINENO: result: $CC" >&5
2038 echo "${ECHO_T}$CC" >&6
2039 else
2040   echo "$as_me:$LINENO: result: no" >&5
2041 echo "${ECHO_T}no" >&6
2042 fi
2043
2044 fi
2045 if test -z "$ac_cv_prog_CC"; then
2046   ac_ct_CC=$CC
2047   # Extract the first word of "gcc", so it can be a program name with args.
2048 set dummy gcc; ac_word=$2
2049 echo "$as_me:$LINENO: checking for $ac_word" >&5
2050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2051 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2052   echo $ECHO_N "(cached) $ECHO_C" >&6
2053 else
2054   if test -n "$ac_ct_CC"; then
2055   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2056 else
2057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2058 for as_dir in $PATH
2059 do
2060   IFS=$as_save_IFS
2061   test -z "$as_dir" && as_dir=.
2062   for ac_exec_ext in '' $ac_executable_extensions; do
2063   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2064     ac_cv_prog_ac_ct_CC="gcc"
2065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2066     break 2
2067   fi
2068 done
2069 done
2070
2071 fi
2072 fi
2073 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2074 if test -n "$ac_ct_CC"; then
2075   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2076 echo "${ECHO_T}$ac_ct_CC" >&6
2077 else
2078   echo "$as_me:$LINENO: result: no" >&5
2079 echo "${ECHO_T}no" >&6
2080 fi
2081
2082   CC=$ac_ct_CC
2083 else
2084   CC="$ac_cv_prog_CC"
2085 fi
2086
2087 if test -z "$CC"; then
2088   if test -n "$ac_tool_prefix"; then
2089   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2090 set dummy ${ac_tool_prefix}cc; ac_word=$2
2091 echo "$as_me:$LINENO: checking for $ac_word" >&5
2092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2093 if test "${ac_cv_prog_CC+set}" = set; then
2094   echo $ECHO_N "(cached) $ECHO_C" >&6
2095 else
2096   if test -n "$CC"; then
2097   ac_cv_prog_CC="$CC" # Let the user override the test.
2098 else
2099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100 for as_dir in $PATH
2101 do
2102   IFS=$as_save_IFS
2103   test -z "$as_dir" && as_dir=.
2104   for ac_exec_ext in '' $ac_executable_extensions; do
2105   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2106     ac_cv_prog_CC="${ac_tool_prefix}cc"
2107     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2108     break 2
2109   fi
2110 done
2111 done
2112
2113 fi
2114 fi
2115 CC=$ac_cv_prog_CC
2116 if test -n "$CC"; then
2117   echo "$as_me:$LINENO: result: $CC" >&5
2118 echo "${ECHO_T}$CC" >&6
2119 else
2120   echo "$as_me:$LINENO: result: no" >&5
2121 echo "${ECHO_T}no" >&6
2122 fi
2123
2124 fi
2125 if test -z "$ac_cv_prog_CC"; then
2126   ac_ct_CC=$CC
2127   # Extract the first word of "cc", so it can be a program name with args.
2128 set dummy cc; ac_word=$2
2129 echo "$as_me:$LINENO: checking for $ac_word" >&5
2130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2131 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2132   echo $ECHO_N "(cached) $ECHO_C" >&6
2133 else
2134   if test -n "$ac_ct_CC"; then
2135   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2136 else
2137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138 for as_dir in $PATH
2139 do
2140   IFS=$as_save_IFS
2141   test -z "$as_dir" && as_dir=.
2142   for ac_exec_ext in '' $ac_executable_extensions; do
2143   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2144     ac_cv_prog_ac_ct_CC="cc"
2145     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2146     break 2
2147   fi
2148 done
2149 done
2150
2151 fi
2152 fi
2153 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2154 if test -n "$ac_ct_CC"; then
2155   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2156 echo "${ECHO_T}$ac_ct_CC" >&6
2157 else
2158   echo "$as_me:$LINENO: result: no" >&5
2159 echo "${ECHO_T}no" >&6
2160 fi
2161
2162   CC=$ac_ct_CC
2163 else
2164   CC="$ac_cv_prog_CC"
2165 fi
2166
2167 fi
2168 if test -z "$CC"; then
2169   # Extract the first word of "cc", so it can be a program name with args.
2170 set dummy cc; ac_word=$2
2171 echo "$as_me:$LINENO: checking for $ac_word" >&5
2172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2173 if test "${ac_cv_prog_CC+set}" = set; then
2174   echo $ECHO_N "(cached) $ECHO_C" >&6
2175 else
2176   if test -n "$CC"; then
2177   ac_cv_prog_CC="$CC" # Let the user override the test.
2178 else
2179   ac_prog_rejected=no
2180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2181 for as_dir in $PATH
2182 do
2183   IFS=$as_save_IFS
2184   test -z "$as_dir" && as_dir=.
2185   for ac_exec_ext in '' $ac_executable_extensions; do
2186   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2187     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2188        ac_prog_rejected=yes
2189        continue
2190      fi
2191     ac_cv_prog_CC="cc"
2192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193     break 2
2194   fi
2195 done
2196 done
2197
2198 if test $ac_prog_rejected = yes; then
2199   # We found a bogon in the path, so make sure we never use it.
2200   set dummy $ac_cv_prog_CC
2201   shift
2202   if test $# != 0; then
2203     # We chose a different compiler from the bogus one.
2204     # However, it has the same basename, so the bogon will be chosen
2205     # first if we set CC to just the basename; use the full file name.
2206     shift
2207     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2208   fi
2209 fi
2210 fi
2211 fi
2212 CC=$ac_cv_prog_CC
2213 if test -n "$CC"; then
2214   echo "$as_me:$LINENO: result: $CC" >&5
2215 echo "${ECHO_T}$CC" >&6
2216 else
2217   echo "$as_me:$LINENO: result: no" >&5
2218 echo "${ECHO_T}no" >&6
2219 fi
2220
2221 fi
2222 if test -z "$CC"; then
2223   if test -n "$ac_tool_prefix"; then
2224   for ac_prog in cl
2225   do
2226     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2227 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2228 echo "$as_me:$LINENO: checking for $ac_word" >&5
2229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2230 if test "${ac_cv_prog_CC+set}" = set; then
2231   echo $ECHO_N "(cached) $ECHO_C" >&6
2232 else
2233   if test -n "$CC"; then
2234   ac_cv_prog_CC="$CC" # Let the user override the test.
2235 else
2236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2237 for as_dir in $PATH
2238 do
2239   IFS=$as_save_IFS
2240   test -z "$as_dir" && as_dir=.
2241   for ac_exec_ext in '' $ac_executable_extensions; do
2242   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2243     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2244     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2245     break 2
2246   fi
2247 done
2248 done
2249
2250 fi
2251 fi
2252 CC=$ac_cv_prog_CC
2253 if test -n "$CC"; then
2254   echo "$as_me:$LINENO: result: $CC" >&5
2255 echo "${ECHO_T}$CC" >&6
2256 else
2257   echo "$as_me:$LINENO: result: no" >&5
2258 echo "${ECHO_T}no" >&6
2259 fi
2260
2261     test -n "$CC" && break
2262   done
2263 fi
2264 if test -z "$CC"; then
2265   ac_ct_CC=$CC
2266   for ac_prog in cl
2267 do
2268   # Extract the first word of "$ac_prog", so it can be a program name with args.
2269 set dummy $ac_prog; ac_word=$2
2270 echo "$as_me:$LINENO: checking for $ac_word" >&5
2271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2272 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2273   echo $ECHO_N "(cached) $ECHO_C" >&6
2274 else
2275   if test -n "$ac_ct_CC"; then
2276   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2277 else
2278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2279 for as_dir in $PATH
2280 do
2281   IFS=$as_save_IFS
2282   test -z "$as_dir" && as_dir=.
2283   for ac_exec_ext in '' $ac_executable_extensions; do
2284   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2285     ac_cv_prog_ac_ct_CC="$ac_prog"
2286     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2287     break 2
2288   fi
2289 done
2290 done
2291
2292 fi
2293 fi
2294 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2295 if test -n "$ac_ct_CC"; then
2296   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2297 echo "${ECHO_T}$ac_ct_CC" >&6
2298 else
2299   echo "$as_me:$LINENO: result: no" >&5
2300 echo "${ECHO_T}no" >&6
2301 fi
2302
2303   test -n "$ac_ct_CC" && break
2304 done
2305
2306   CC=$ac_ct_CC
2307 fi
2308
2309 fi
2310
2311
2312 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2313 See \`config.log' for more details." >&5
2314 echo "$as_me: error: no acceptable C compiler found in \$PATH
2315 See \`config.log' for more details." >&2;}
2316    { (exit 1); exit 1; }; }
2317
2318 # Provide some information about the compiler.
2319 echo "$as_me:$LINENO:" \
2320      "checking for C compiler version" >&5
2321 ac_compiler=`set X $ac_compile; echo $2`
2322 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2323   (eval $ac_compiler --version </dev/null >&5) 2>&5
2324   ac_status=$?
2325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326   (exit $ac_status); }
2327 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2328   (eval $ac_compiler -v </dev/null >&5) 2>&5
2329   ac_status=$?
2330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331   (exit $ac_status); }
2332 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2333   (eval $ac_compiler -V </dev/null >&5) 2>&5
2334   ac_status=$?
2335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336   (exit $ac_status); }
2337
2338 cat >conftest.$ac_ext <<_ACEOF
2339 /* confdefs.h.  */
2340 _ACEOF
2341 cat confdefs.h >>conftest.$ac_ext
2342 cat >>conftest.$ac_ext <<_ACEOF
2343 /* end confdefs.h.  */
2344
2345 int
2346 main ()
2347 {
2348
2349   ;
2350   return 0;
2351 }
2352 _ACEOF
2353 ac_clean_files_save=$ac_clean_files
2354 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2355 # Try to create an executable without -o first, disregard a.out.
2356 # It will help us diagnose broken compilers, and finding out an intuition
2357 # of exeext.
2358 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2359 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2360 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2361 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2362   (eval $ac_link_default) 2>&5
2363   ac_status=$?
2364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365   (exit $ac_status); }; then
2366   # Find the output, starting from the most likely.  This scheme is
2367 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2368 # resort.
2369
2370 # Be careful to initialize this variable, since it used to be cached.
2371 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2372 ac_cv_exeext=
2373 # b.out is created by i960 compilers.
2374 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2375 do
2376   test -f "$ac_file" || continue
2377   case $ac_file in
2378     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2379         ;;
2380     conftest.$ac_ext )
2381         # This is the source file.
2382         ;;
2383     [ab].out )
2384         # We found the default executable, but exeext='' is most
2385         # certainly right.
2386         break;;
2387     *.* )
2388         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2389         # FIXME: I believe we export ac_cv_exeext for Libtool,
2390         # but it would be cool to find out if it's true.  Does anybody
2391         # maintain Libtool? --akim.
2392         export ac_cv_exeext
2393         break;;
2394     * )
2395         break;;
2396   esac
2397 done
2398 else
2399   echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2401
2402 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2403 See \`config.log' for more details." >&5
2404 echo "$as_me: error: C compiler cannot create executables
2405 See \`config.log' for more details." >&2;}
2406    { (exit 77); exit 77; }; }
2407 fi
2408
2409 ac_exeext=$ac_cv_exeext
2410 echo "$as_me:$LINENO: result: $ac_file" >&5
2411 echo "${ECHO_T}$ac_file" >&6
2412
2413 # Check the compiler produces executables we can run.  If not, either
2414 # the compiler is broken, or we cross compile.
2415 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2416 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2417 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2418 # If not cross compiling, check that we can run a simple program.
2419 if test "$cross_compiling" != yes; then
2420   if { ac_try='./$ac_file'
2421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2422   (eval $ac_try) 2>&5
2423   ac_status=$?
2424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425   (exit $ac_status); }; }; then
2426     cross_compiling=no
2427   else
2428     if test "$cross_compiling" = maybe; then
2429         cross_compiling=yes
2430     else
2431         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2432 If you meant to cross compile, use \`--host'.
2433 See \`config.log' for more details." >&5
2434 echo "$as_me: error: cannot run C compiled programs.
2435 If you meant to cross compile, use \`--host'.
2436 See \`config.log' for more details." >&2;}
2437    { (exit 1); exit 1; }; }
2438     fi
2439   fi
2440 fi
2441 echo "$as_me:$LINENO: result: yes" >&5
2442 echo "${ECHO_T}yes" >&6
2443
2444 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2445 ac_clean_files=$ac_clean_files_save
2446 # Check the compiler produces executables we can run.  If not, either
2447 # the compiler is broken, or we cross compile.
2448 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2449 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2450 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2451 echo "${ECHO_T}$cross_compiling" >&6
2452
2453 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2454 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2456   (eval $ac_link) 2>&5
2457   ac_status=$?
2458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459   (exit $ac_status); }; then
2460   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2461 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2462 # work properly (i.e., refer to `conftest.exe'), while it won't with
2463 # `rm'.
2464 for ac_file in conftest.exe conftest conftest.*; do
2465   test -f "$ac_file" || continue
2466   case $ac_file in
2467     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2468     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2469           export ac_cv_exeext
2470           break;;
2471     * ) break;;
2472   esac
2473 done
2474 else
2475   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2476 See \`config.log' for more details." >&5
2477 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2478 See \`config.log' for more details." >&2;}
2479    { (exit 1); exit 1; }; }
2480 fi
2481
2482 rm -f conftest$ac_cv_exeext
2483 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2484 echo "${ECHO_T}$ac_cv_exeext" >&6
2485
2486 rm -f conftest.$ac_ext
2487 EXEEXT=$ac_cv_exeext
2488 ac_exeext=$EXEEXT
2489 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2490 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2491 if test "${ac_cv_objext+set}" = set; then
2492   echo $ECHO_N "(cached) $ECHO_C" >&6
2493 else
2494   cat >conftest.$ac_ext <<_ACEOF
2495 /* confdefs.h.  */
2496 _ACEOF
2497 cat confdefs.h >>conftest.$ac_ext
2498 cat >>conftest.$ac_ext <<_ACEOF
2499 /* end confdefs.h.  */
2500
2501 int
2502 main ()
2503 {
2504
2505   ;
2506   return 0;
2507 }
2508 _ACEOF
2509 rm -f conftest.o conftest.obj
2510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2511   (eval $ac_compile) 2>&5
2512   ac_status=$?
2513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514   (exit $ac_status); }; then
2515   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2516   case $ac_file in
2517     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2518     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2519        break;;
2520   esac
2521 done
2522 else
2523   echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2525
2526 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2527 See \`config.log' for more details." >&5
2528 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2529 See \`config.log' for more details." >&2;}
2530    { (exit 1); exit 1; }; }
2531 fi
2532
2533 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2534 fi
2535 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2536 echo "${ECHO_T}$ac_cv_objext" >&6
2537 OBJEXT=$ac_cv_objext
2538 ac_objext=$OBJEXT
2539 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2540 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2541 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2542   echo $ECHO_N "(cached) $ECHO_C" >&6
2543 else
2544   cat >conftest.$ac_ext <<_ACEOF
2545 /* confdefs.h.  */
2546 _ACEOF
2547 cat confdefs.h >>conftest.$ac_ext
2548 cat >>conftest.$ac_ext <<_ACEOF
2549 /* end confdefs.h.  */
2550
2551 int
2552 main ()
2553 {
2554 #ifndef __GNUC__
2555        choke me
2556 #endif
2557
2558   ;
2559   return 0;
2560 }
2561 _ACEOF
2562 rm -f conftest.$ac_objext
2563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2564   (eval $ac_compile) 2>conftest.er1
2565   ac_status=$?
2566   grep -v '^ *+' conftest.er1 >conftest.err
2567   rm -f conftest.er1
2568   cat conftest.err >&5
2569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570   (exit $ac_status); } &&
2571          { ac_try='test -z "$ac_c_werror_flag"
2572                          || test ! -s conftest.err'
2573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2574   (eval $ac_try) 2>&5
2575   ac_status=$?
2576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577   (exit $ac_status); }; } &&
2578          { ac_try='test -s conftest.$ac_objext'
2579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2580   (eval $ac_try) 2>&5
2581   ac_status=$?
2582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583   (exit $ac_status); }; }; then
2584   ac_compiler_gnu=yes
2585 else
2586   echo "$as_me: failed program was:" >&5
2587 sed 's/^/| /' conftest.$ac_ext >&5
2588
2589 ac_compiler_gnu=no
2590 fi
2591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2592 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2593
2594 fi
2595 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2596 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2597 GCC=`test $ac_compiler_gnu = yes && echo yes`
2598 ac_test_CFLAGS=${CFLAGS+set}
2599 ac_save_CFLAGS=$CFLAGS
2600 CFLAGS="-g"
2601 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2602 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2603 if test "${ac_cv_prog_cc_g+set}" = set; then
2604   echo $ECHO_N "(cached) $ECHO_C" >&6
2605 else
2606   cat >conftest.$ac_ext <<_ACEOF
2607 /* confdefs.h.  */
2608 _ACEOF
2609 cat confdefs.h >>conftest.$ac_ext
2610 cat >>conftest.$ac_ext <<_ACEOF
2611 /* end confdefs.h.  */
2612
2613 int
2614 main ()
2615 {
2616
2617   ;
2618   return 0;
2619 }
2620 _ACEOF
2621 rm -f conftest.$ac_objext
2622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2623   (eval $ac_compile) 2>conftest.er1
2624   ac_status=$?
2625   grep -v '^ *+' conftest.er1 >conftest.err
2626   rm -f conftest.er1
2627   cat conftest.err >&5
2628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629   (exit $ac_status); } &&
2630          { ac_try='test -z "$ac_c_werror_flag"
2631                          || test ! -s conftest.err'
2632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633   (eval $ac_try) 2>&5
2634   ac_status=$?
2635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636   (exit $ac_status); }; } &&
2637          { ac_try='test -s conftest.$ac_objext'
2638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639   (eval $ac_try) 2>&5
2640   ac_status=$?
2641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642   (exit $ac_status); }; }; then
2643   ac_cv_prog_cc_g=yes
2644 else
2645   echo "$as_me: failed program was:" >&5
2646 sed 's/^/| /' conftest.$ac_ext >&5
2647
2648 ac_cv_prog_cc_g=no
2649 fi
2650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2651 fi
2652 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2653 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2654 if test "$ac_test_CFLAGS" = set; then
2655   CFLAGS=$ac_save_CFLAGS
2656 elif test $ac_cv_prog_cc_g = yes; then
2657   if test "$GCC" = yes; then
2658     CFLAGS="-g -O2"
2659   else
2660     CFLAGS="-g"
2661   fi
2662 else
2663   if test "$GCC" = yes; then
2664     CFLAGS="-O2"
2665   else
2666     CFLAGS=
2667   fi
2668 fi
2669 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2670 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2671 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2672   echo $ECHO_N "(cached) $ECHO_C" >&6
2673 else
2674   ac_cv_prog_cc_stdc=no
2675 ac_save_CC=$CC
2676 cat >conftest.$ac_ext <<_ACEOF
2677 /* confdefs.h.  */
2678 _ACEOF
2679 cat confdefs.h >>conftest.$ac_ext
2680 cat >>conftest.$ac_ext <<_ACEOF
2681 /* end confdefs.h.  */
2682 #include <stdarg.h>
2683 #include <stdio.h>
2684 #include <sys/types.h>
2685 #include <sys/stat.h>
2686 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2687 struct buf { int x; };
2688 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2689 static char *e (p, i)
2690      char **p;
2691      int i;
2692 {
2693   return p[i];
2694 }
2695 static char *f (char * (*g) (char **, int), char **p, ...)
2696 {
2697   char *s;
2698   va_list v;
2699   va_start (v,p);
2700   s = g (p, va_arg (v,int));
2701   va_end (v);
2702   return s;
2703 }
2704
2705 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2706    function prototypes and stuff, but not '\xHH' hex character constants.
2707    These don't provoke an error unfortunately, instead are silently treated
2708    as 'x'.  The following induces an error, until -std1 is added to get
2709    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2710    array size at least.  It's necessary to write '\x00'==0 to get something
2711    that's true only with -std1.  */
2712 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2713
2714 int test (int i, double x);
2715 struct s1 {int (*f) (int a);};
2716 struct s2 {int (*f) (double a);};
2717 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2718 int argc;
2719 char **argv;
2720 int
2721 main ()
2722 {
2723 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2724   ;
2725   return 0;
2726 }
2727 _ACEOF
2728 # Don't try gcc -ansi; that turns off useful extensions and
2729 # breaks some systems' header files.
2730 # AIX                   -qlanglvl=ansi
2731 # Ultrix and OSF/1      -std1
2732 # HP-UX 10.20 and later -Ae
2733 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2734 # SVR4                  -Xc -D__EXTENSIONS__
2735 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2736 do
2737   CC="$ac_save_CC $ac_arg"
2738   rm -f conftest.$ac_objext
2739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2740   (eval $ac_compile) 2>conftest.er1
2741   ac_status=$?
2742   grep -v '^ *+' conftest.er1 >conftest.err
2743   rm -f conftest.er1
2744   cat conftest.err >&5
2745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746   (exit $ac_status); } &&
2747          { ac_try='test -z "$ac_c_werror_flag"
2748                          || test ! -s conftest.err'
2749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750   (eval $ac_try) 2>&5
2751   ac_status=$?
2752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753   (exit $ac_status); }; } &&
2754          { ac_try='test -s conftest.$ac_objext'
2755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756   (eval $ac_try) 2>&5
2757   ac_status=$?
2758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759   (exit $ac_status); }; }; then
2760   ac_cv_prog_cc_stdc=$ac_arg
2761 break
2762 else
2763   echo "$as_me: failed program was:" >&5
2764 sed 's/^/| /' conftest.$ac_ext >&5
2765
2766 fi
2767 rm -f conftest.err conftest.$ac_objext
2768 done
2769 rm -f conftest.$ac_ext conftest.$ac_objext
2770 CC=$ac_save_CC
2771
2772 fi
2773
2774 case "x$ac_cv_prog_cc_stdc" in
2775   x|xno)
2776     echo "$as_me:$LINENO: result: none needed" >&5
2777 echo "${ECHO_T}none needed" >&6 ;;
2778   *)
2779     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2780 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2781     CC="$CC $ac_cv_prog_cc_stdc" ;;
2782 esac
2783
2784 # Some people use a C++ compiler to compile C.  Since we use `exit',
2785 # in C++ we need to declare it.  In case someone uses the same compiler
2786 # for both compiling C and C++ we need to have the C++ compiler decide
2787 # the declaration of exit, since it's the most demanding environment.
2788 cat >conftest.$ac_ext <<_ACEOF
2789 #ifndef __cplusplus
2790   choke me
2791 #endif
2792 _ACEOF
2793 rm -f conftest.$ac_objext
2794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2795   (eval $ac_compile) 2>conftest.er1
2796   ac_status=$?
2797   grep -v '^ *+' conftest.er1 >conftest.err
2798   rm -f conftest.er1
2799   cat conftest.err >&5
2800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801   (exit $ac_status); } &&
2802          { ac_try='test -z "$ac_c_werror_flag"
2803                          || test ! -s conftest.err'
2804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805   (eval $ac_try) 2>&5
2806   ac_status=$?
2807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808   (exit $ac_status); }; } &&
2809          { ac_try='test -s conftest.$ac_objext'
2810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811   (eval $ac_try) 2>&5
2812   ac_status=$?
2813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814   (exit $ac_status); }; }; then
2815   for ac_declaration in \
2816    '' \
2817    'extern "C" void std::exit (int) throw (); using std::exit;' \
2818    'extern "C" void std::exit (int); using std::exit;' \
2819    'extern "C" void exit (int) throw ();' \
2820    'extern "C" void exit (int);' \
2821    'void exit (int);'
2822 do
2823   cat >conftest.$ac_ext <<_ACEOF
2824 /* confdefs.h.  */
2825 _ACEOF
2826 cat confdefs.h >>conftest.$ac_ext
2827 cat >>conftest.$ac_ext <<_ACEOF
2828 /* end confdefs.h.  */
2829 $ac_declaration
2830 #include <stdlib.h>
2831 int
2832 main ()
2833 {
2834 exit (42);
2835   ;
2836   return 0;
2837 }
2838 _ACEOF
2839 rm -f conftest.$ac_objext
2840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2841   (eval $ac_compile) 2>conftest.er1
2842   ac_status=$?
2843   grep -v '^ *+' conftest.er1 >conftest.err
2844   rm -f conftest.er1
2845   cat conftest.err >&5
2846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847   (exit $ac_status); } &&
2848          { ac_try='test -z "$ac_c_werror_flag"
2849                          || test ! -s conftest.err'
2850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851   (eval $ac_try) 2>&5
2852   ac_status=$?
2853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854   (exit $ac_status); }; } &&
2855          { ac_try='test -s conftest.$ac_objext'
2856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2857   (eval $ac_try) 2>&5
2858   ac_status=$?
2859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860   (exit $ac_status); }; }; then
2861   :
2862 else
2863   echo "$as_me: failed program was:" >&5
2864 sed 's/^/| /' conftest.$ac_ext >&5
2865
2866 continue
2867 fi
2868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2869   cat >conftest.$ac_ext <<_ACEOF
2870 /* confdefs.h.  */
2871 _ACEOF
2872 cat confdefs.h >>conftest.$ac_ext
2873 cat >>conftest.$ac_ext <<_ACEOF
2874 /* end confdefs.h.  */
2875 $ac_declaration
2876 int
2877 main ()
2878 {
2879 exit (42);
2880   ;
2881   return 0;
2882 }
2883 _ACEOF
2884 rm -f conftest.$ac_objext
2885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2886   (eval $ac_compile) 2>conftest.er1
2887   ac_status=$?
2888   grep -v '^ *+' conftest.er1 >conftest.err
2889   rm -f conftest.er1
2890   cat conftest.err >&5
2891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892   (exit $ac_status); } &&
2893          { ac_try='test -z "$ac_c_werror_flag"
2894                          || test ! -s conftest.err'
2895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896   (eval $ac_try) 2>&5
2897   ac_status=$?
2898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899   (exit $ac_status); }; } &&
2900          { ac_try='test -s conftest.$ac_objext'
2901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902   (eval $ac_try) 2>&5
2903   ac_status=$?
2904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905   (exit $ac_status); }; }; then
2906   break
2907 else
2908   echo "$as_me: failed program was:" >&5
2909 sed 's/^/| /' conftest.$ac_ext >&5
2910
2911 fi
2912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2913 done
2914 rm -f conftest*
2915 if test -n "$ac_declaration"; then
2916   echo '#ifdef __cplusplus' >>confdefs.h
2917   echo $ac_declaration      >>confdefs.h
2918   echo '#endif'             >>confdefs.h
2919 fi
2920
2921 else
2922   echo "$as_me: failed program was:" >&5
2923 sed 's/^/| /' conftest.$ac_ext >&5
2924
2925 fi
2926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2927 ac_ext=c
2928 ac_cpp='$CPP $CPPFLAGS'
2929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2932
2933
2934
2935 # Add -Wall if we are using GCC.
2936 if test "x$GCC" = "xyes"; then
2937   AM_FCFLAGS="-Wall"
2938   ## We like to use C99 routines when available.  This makes sure that
2939   ## __STDC_VERSION__ is set such that libc includes make them available.
2940   AM_CFLAGS="-std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings"
2941 fi
2942
2943
2944
2945 # Find other programs we need.
2946 if test -n "$ac_tool_prefix"; then
2947   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2948 set dummy ${ac_tool_prefix}as; ac_word=$2
2949 echo "$as_me:$LINENO: checking for $ac_word" >&5
2950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2951 if test "${ac_cv_prog_AS+set}" = set; then
2952   echo $ECHO_N "(cached) $ECHO_C" >&6
2953 else
2954   if test -n "$AS"; then
2955   ac_cv_prog_AS="$AS" # Let the user override the test.
2956 else
2957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958 for as_dir in $PATH
2959 do
2960   IFS=$as_save_IFS
2961   test -z "$as_dir" && as_dir=.
2962   for ac_exec_ext in '' $ac_executable_extensions; do
2963   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2964     ac_cv_prog_AS="${ac_tool_prefix}as"
2965     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2966     break 2
2967   fi
2968 done
2969 done
2970
2971 fi
2972 fi
2973 AS=$ac_cv_prog_AS
2974 if test -n "$AS"; then
2975   echo "$as_me:$LINENO: result: $AS" >&5
2976 echo "${ECHO_T}$AS" >&6
2977 else
2978   echo "$as_me:$LINENO: result: no" >&5
2979 echo "${ECHO_T}no" >&6
2980 fi
2981
2982 fi
2983 if test -z "$ac_cv_prog_AS"; then
2984   ac_ct_AS=$AS
2985   # Extract the first word of "as", so it can be a program name with args.
2986 set dummy as; ac_word=$2
2987 echo "$as_me:$LINENO: checking for $ac_word" >&5
2988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2989 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
2990   echo $ECHO_N "(cached) $ECHO_C" >&6
2991 else
2992   if test -n "$ac_ct_AS"; then
2993   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2994 else
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 for as_dir in $PATH
2997 do
2998   IFS=$as_save_IFS
2999   test -z "$as_dir" && as_dir=.
3000   for ac_exec_ext in '' $ac_executable_extensions; do
3001   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3002     ac_cv_prog_ac_ct_AS="as"
3003     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3004     break 2
3005   fi
3006 done
3007 done
3008
3009 fi
3010 fi
3011 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3012 if test -n "$ac_ct_AS"; then
3013   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3014 echo "${ECHO_T}$ac_ct_AS" >&6
3015 else
3016   echo "$as_me:$LINENO: result: no" >&5
3017 echo "${ECHO_T}no" >&6
3018 fi
3019
3020   AS=$ac_ct_AS
3021 else
3022   AS="$ac_cv_prog_AS"
3023 fi
3024
3025 if test -n "$ac_tool_prefix"; then
3026   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3027 set dummy ${ac_tool_prefix}ar; ac_word=$2
3028 echo "$as_me:$LINENO: checking for $ac_word" >&5
3029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3030 if test "${ac_cv_prog_AR+set}" = set; then
3031   echo $ECHO_N "(cached) $ECHO_C" >&6
3032 else
3033   if test -n "$AR"; then
3034   ac_cv_prog_AR="$AR" # Let the user override the test.
3035 else
3036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037 for as_dir in $PATH
3038 do
3039   IFS=$as_save_IFS
3040   test -z "$as_dir" && as_dir=.
3041   for ac_exec_ext in '' $ac_executable_extensions; do
3042   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3043     ac_cv_prog_AR="${ac_tool_prefix}ar"
3044     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3045     break 2
3046   fi
3047 done
3048 done
3049
3050 fi
3051 fi
3052 AR=$ac_cv_prog_AR
3053 if test -n "$AR"; then
3054   echo "$as_me:$LINENO: result: $AR" >&5
3055 echo "${ECHO_T}$AR" >&6
3056 else
3057   echo "$as_me:$LINENO: result: no" >&5
3058 echo "${ECHO_T}no" >&6
3059 fi
3060
3061 fi
3062 if test -z "$ac_cv_prog_AR"; then
3063   ac_ct_AR=$AR
3064   # Extract the first word of "ar", so it can be a program name with args.
3065 set dummy ar; ac_word=$2
3066 echo "$as_me:$LINENO: checking for $ac_word" >&5
3067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3068 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3069   echo $ECHO_N "(cached) $ECHO_C" >&6
3070 else
3071   if test -n "$ac_ct_AR"; then
3072   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3073 else
3074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075 for as_dir in $PATH
3076 do
3077   IFS=$as_save_IFS
3078   test -z "$as_dir" && as_dir=.
3079   for ac_exec_ext in '' $ac_executable_extensions; do
3080   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3081     ac_cv_prog_ac_ct_AR="ar"
3082     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3083     break 2
3084   fi
3085 done
3086 done
3087
3088 fi
3089 fi
3090 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3091 if test -n "$ac_ct_AR"; then
3092   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3093 echo "${ECHO_T}$ac_ct_AR" >&6
3094 else
3095   echo "$as_me:$LINENO: result: no" >&5
3096 echo "${ECHO_T}no" >&6
3097 fi
3098
3099   AR=$ac_ct_AR
3100 else
3101   AR="$ac_cv_prog_AR"
3102 fi
3103
3104 if test -n "$ac_tool_prefix"; then
3105   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3106 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3107 echo "$as_me:$LINENO: checking for $ac_word" >&5
3108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3109 if test "${ac_cv_prog_RANLIB+set}" = set; then
3110   echo $ECHO_N "(cached) $ECHO_C" >&6
3111 else
3112   if test -n "$RANLIB"; then
3113   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3114 else
3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116 for as_dir in $PATH
3117 do
3118   IFS=$as_save_IFS
3119   test -z "$as_dir" && as_dir=.
3120   for ac_exec_ext in '' $ac_executable_extensions; do
3121   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3122     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3123     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3124     break 2
3125   fi
3126 done
3127 done
3128
3129 fi
3130 fi
3131 RANLIB=$ac_cv_prog_RANLIB
3132 if test -n "$RANLIB"; then
3133   echo "$as_me:$LINENO: result: $RANLIB" >&5
3134 echo "${ECHO_T}$RANLIB" >&6
3135 else
3136   echo "$as_me:$LINENO: result: no" >&5
3137 echo "${ECHO_T}no" >&6
3138 fi
3139
3140 fi
3141 if test -z "$ac_cv_prog_RANLIB"; then
3142   ac_ct_RANLIB=$RANLIB
3143   # Extract the first word of "ranlib", so it can be a program name with args.
3144 set dummy ranlib; ac_word=$2
3145 echo "$as_me:$LINENO: checking for $ac_word" >&5
3146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3147 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3148   echo $ECHO_N "(cached) $ECHO_C" >&6
3149 else
3150   if test -n "$ac_ct_RANLIB"; then
3151   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3152 else
3153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154 for as_dir in $PATH
3155 do
3156   IFS=$as_save_IFS
3157   test -z "$as_dir" && as_dir=.
3158   for ac_exec_ext in '' $ac_executable_extensions; do
3159   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3160     ac_cv_prog_ac_ct_RANLIB="ranlib"
3161     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3162     break 2
3163   fi
3164 done
3165 done
3166
3167   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3168 fi
3169 fi
3170 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3171 if test -n "$ac_ct_RANLIB"; then
3172   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3173 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3174 else
3175   echo "$as_me:$LINENO: result: no" >&5
3176 echo "${ECHO_T}no" >&6
3177 fi
3178
3179   RANLIB=$ac_ct_RANLIB
3180 else
3181   RANLIB="$ac_cv_prog_RANLIB"
3182 fi
3183
3184 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3185 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3186 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3187 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3188   echo $ECHO_N "(cached) $ECHO_C" >&6
3189 else
3190   cat >conftest.make <<\_ACEOF
3191 all:
3192         @echo 'ac_maketemp="$(MAKE)"'
3193 _ACEOF
3194 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3195 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3196 if test -n "$ac_maketemp"; then
3197   eval ac_cv_prog_make_${ac_make}_set=yes
3198 else
3199   eval ac_cv_prog_make_${ac_make}_set=no
3200 fi
3201 rm -f conftest.make
3202 fi
3203 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3204   echo "$as_me:$LINENO: result: yes" >&5
3205 echo "${ECHO_T}yes" >&6
3206   SET_MAKE=
3207 else
3208   echo "$as_me:$LINENO: result: no" >&5
3209 echo "${ECHO_T}no" >&6
3210   SET_MAKE="MAKE=${MAKE-make}"
3211 fi
3212
3213 # Find a good install program.  We prefer a C program (faster),
3214 # so one script is as good as another.  But avoid the broken or
3215 # incompatible versions:
3216 # SysV /etc/install, /usr/sbin/install
3217 # SunOS /usr/etc/install
3218 # IRIX /sbin/install
3219 # AIX /bin/install
3220 # AmigaOS /C/install, which installs bootblocks on floppy discs
3221 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3222 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3223 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3224 # OS/2's system install, which has a completely different semantic
3225 # ./install, which can be erroneously created by make from ./install.sh.
3226 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3227 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3228 if test -z "$INSTALL"; then
3229 if test "${ac_cv_path_install+set}" = set; then
3230   echo $ECHO_N "(cached) $ECHO_C" >&6
3231 else
3232   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3233 for as_dir in $PATH
3234 do
3235   IFS=$as_save_IFS
3236   test -z "$as_dir" && as_dir=.
3237   # Account for people who put trailing slashes in PATH elements.
3238 case $as_dir/ in
3239   ./ | .// | /cC/* | \
3240   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3241   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3242   /usr/ucb/* ) ;;
3243   *)
3244     # OSF1 and SCO ODT 3.0 have their own names for install.
3245     # Don't use installbsd from OSF since it installs stuff as root
3246     # by default.
3247     for ac_prog in ginstall scoinst install; do
3248       for ac_exec_ext in '' $ac_executable_extensions; do
3249         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3250           if test $ac_prog = install &&
3251             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3252             # AIX install.  It has an incompatible calling convention.
3253             :
3254           elif test $ac_prog = install &&
3255             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3256             # program-specific install script used by HP pwplus--don't use.
3257             :
3258           else
3259             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3260             break 3
3261           fi
3262         fi
3263       done
3264     done
3265     ;;
3266 esac
3267 done
3268
3269
3270 fi
3271   if test "${ac_cv_path_install+set}" = set; then
3272     INSTALL=$ac_cv_path_install
3273   else
3274     # As a last resort, use the slow shell script.  We don't cache a
3275     # path for INSTALL within a source directory, because that will
3276     # break other packages using the cache if that directory is
3277     # removed, or if the path is relative.
3278     INSTALL=$ac_install_sh
3279   fi
3280 fi
3281 echo "$as_me:$LINENO: result: $INSTALL" >&5
3282 echo "${ECHO_T}$INSTALL" >&6
3283
3284 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3285 # It thinks the first close brace ends the variable substitution.
3286 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3287
3288 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3289
3290 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3291
3292
3293 # Configure libtool
3294 #AC_MSG_NOTICE([====== Starting libtool configuration])
3295
3296 # Check whether --enable-shared or --disable-shared was given.
3297 if test "${enable_shared+set}" = set; then
3298   enableval="$enable_shared"
3299   p=${PACKAGE-default}
3300 case $enableval in
3301 yes) enable_shared=yes ;;
3302 no) enable_shared=no ;;
3303 *)
3304   enable_shared=no
3305   # Look at the argument we got.  We use all the common list separators.
3306   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3307   for pkg in $enableval; do
3308     if test "X$pkg" = "X$p"; then
3309       enable_shared=yes
3310     fi
3311   done
3312   IFS="$ac_save_ifs"
3313   ;;
3314 esac
3315 else
3316   enable_shared=yes
3317 fi;
3318 # Check whether --enable-static or --disable-static was given.
3319 if test "${enable_static+set}" = set; then
3320   enableval="$enable_static"
3321   p=${PACKAGE-default}
3322 case $enableval in
3323 yes) enable_static=yes ;;
3324 no) enable_static=no ;;
3325 *)
3326   enable_static=no
3327   # Look at the argument we got.  We use all the common list separators.
3328   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3329   for pkg in $enableval; do
3330     if test "X$pkg" = "X$p"; then
3331       enable_static=yes
3332     fi
3333   done
3334   IFS="$ac_save_ifs"
3335   ;;
3336 esac
3337 else
3338   enable_static=yes
3339 fi;
3340 # Check whether --enable-fast-install or --disable-fast-install was given.
3341 if test "${enable_fast_install+set}" = set; then
3342   enableval="$enable_fast_install"
3343   p=${PACKAGE-default}
3344 case $enableval in
3345 yes) enable_fast_install=yes ;;
3346 no) enable_fast_install=no ;;
3347 *)
3348   enable_fast_install=no
3349   # Look at the argument we got.  We use all the common list separators.
3350   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3351   for pkg in $enableval; do
3352     if test "X$pkg" = "X$p"; then
3353       enable_fast_install=yes
3354     fi
3355   done
3356   IFS="$ac_save_ifs"
3357   ;;
3358 esac
3359 else
3360   enable_fast_install=yes
3361 fi;
3362
3363 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3364 if test "${with_gnu_ld+set}" = set; then
3365   withval="$with_gnu_ld"
3366   test "$withval" = no || with_gnu_ld=yes
3367 else
3368   with_gnu_ld=no
3369 fi;
3370 ac_prog=ld
3371 if test "$GCC" = yes; then
3372   # Check if gcc -print-prog-name=ld gives a path.
3373   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3374 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3375   case $host in
3376   *-*-mingw*)
3377     # gcc leaves a trailing carriage return which upsets mingw
3378     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3379   *)
3380     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3381   esac
3382   case $ac_prog in
3383     # Accept absolute paths.
3384     [\\/]* | [A-Za-z]:[\\/]*)
3385       re_direlt='/[^/][^/]*/\.\./'
3386       # Canonicalize the path of ld
3387       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3388       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3389         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3390       done
3391       test -z "$LD" && LD="$ac_prog"
3392       ;;
3393   "")
3394     # If it fails, then pretend we aren't using GCC.
3395     ac_prog=ld
3396     ;;
3397   *)
3398     # If it is relative, then search for the first ld in PATH.
3399     with_gnu_ld=unknown
3400     ;;
3401   esac
3402 elif test "$with_gnu_ld" = yes; then
3403   echo "$as_me:$LINENO: checking for GNU ld" >&5
3404 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3405 else
3406   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3407 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3408 fi
3409 if test "${lt_cv_path_LD+set}" = set; then
3410   echo $ECHO_N "(cached) $ECHO_C" >&6
3411 else
3412   if test -z "$LD"; then
3413   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3414   for ac_dir in $PATH; do
3415     test -z "$ac_dir" && ac_dir=.
3416     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3417       lt_cv_path_LD="$ac_dir/$ac_prog"
3418       # Check to see if the program is GNU ld.  I'd rather use --version,
3419       # but apparently some GNU ld's only accept -v.
3420       # Break only if it was the GNU/non-GNU ld that we prefer.
3421       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3422         test "$with_gnu_ld" != no && break
3423       else
3424         test "$with_gnu_ld" != yes && break
3425       fi
3426     fi
3427   done
3428   IFS="$ac_save_ifs"
3429 else
3430   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3431 fi
3432 fi
3433
3434 LD="$lt_cv_path_LD"
3435 if test -n "$LD"; then
3436   echo "$as_me:$LINENO: result: $LD" >&5
3437 echo "${ECHO_T}$LD" >&6
3438 else
3439   echo "$as_me:$LINENO: result: no" >&5
3440 echo "${ECHO_T}no" >&6
3441 fi
3442 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3443 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3444    { (exit 1); exit 1; }; }
3445 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3446 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3447 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3448   echo $ECHO_N "(cached) $ECHO_C" >&6
3449 else
3450   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3451 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3452   lt_cv_prog_gnu_ld=yes
3453 else
3454   lt_cv_prog_gnu_ld=no
3455 fi
3456 fi
3457 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3458 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3459 with_gnu_ld=$lt_cv_prog_gnu_ld
3460
3461
3462 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3463 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3464 if test "${lt_cv_ld_reload_flag+set}" = set; then
3465   echo $ECHO_N "(cached) $ECHO_C" >&6
3466 else
3467   lt_cv_ld_reload_flag='-r'
3468 fi
3469 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3470 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3471 reload_flag=$lt_cv_ld_reload_flag
3472 test -n "$reload_flag" && reload_flag=" $reload_flag"
3473
3474 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3475 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3476 if test "${lt_cv_path_NM+set}" = set; then
3477   echo $ECHO_N "(cached) $ECHO_C" >&6
3478 else
3479   if test -n "$NM"; then
3480   # Let the user override the test.
3481   lt_cv_path_NM="$NM"
3482 else
3483   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3484   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3485     test -z "$ac_dir" && ac_dir=.
3486     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3487     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3488       # Check to see if the nm accepts a BSD-compat flag.
3489       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3490       #   nm: unknown option "B" ignored
3491       # Tru64's nm complains that /dev/null is an invalid object file
3492       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3493         lt_cv_path_NM="$tmp_nm -B"
3494         break
3495       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3496         lt_cv_path_NM="$tmp_nm -p"
3497         break
3498       else
3499         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3500         continue # so that we can try to find one that supports BSD flags
3501       fi
3502     fi
3503   done
3504   IFS="$ac_save_ifs"
3505   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3506 fi
3507 fi
3508
3509 NM="$lt_cv_path_NM"
3510 echo "$as_me:$LINENO: result: $NM" >&5
3511 echo "${ECHO_T}$NM" >&6
3512
3513 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3514 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3515 LN_S=$as_ln_s
3516 if test "$LN_S" = "ln -s"; then
3517   echo "$as_me:$LINENO: result: yes" >&5
3518 echo "${ECHO_T}yes" >&6
3519 else
3520   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3521 echo "${ECHO_T}no, using $LN_S" >&6
3522 fi
3523
3524 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3525 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3526 if test "${lt_cv_deplibs_check_method+set}" = set; then
3527   echo $ECHO_N "(cached) $ECHO_C" >&6
3528 else
3529   lt_cv_file_magic_cmd='$MAGIC_CMD'
3530 lt_cv_file_magic_test_file=
3531 lt_cv_deplibs_check_method='unknown'
3532 # Need to set the preceding variable on all platforms that support
3533 # interlibrary dependencies.
3534 # 'none' -- dependencies not supported.
3535 # `unknown' -- same as none, but documents that we really don't know.
3536 # 'pass_all' -- all dependencies passed with no checks.
3537 # 'test_compile' -- check by making test program.
3538 # 'file_magic [regex]' -- check by looking for files in library path
3539 # which responds to the $file_magic_cmd with a given egrep regex.
3540 # If you have `file' or equivalent on your system and you're not sure
3541 # whether `pass_all' will *always* work, you probably want this one.
3542
3543 case $host_os in
3544 aix*)
3545   lt_cv_deplibs_check_method=pass_all
3546   ;;
3547
3548 beos*)
3549   lt_cv_deplibs_check_method=pass_all
3550   ;;
3551
3552 bsdi4*)
3553   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3554   lt_cv_file_magic_cmd='/usr/bin/file -L'
3555   lt_cv_file_magic_test_file=/shlib/libc.so
3556   ;;
3557
3558 cygwin* | mingw* |pw32*)
3559   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3560   lt_cv_file_magic_cmd='$OBJDUMP -f'
3561   ;;
3562
3563 darwin* | rhapsody*)
3564   # this will be overwritten by pass_all, but leave it in just in case
3565   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3566   lt_cv_file_magic_cmd='/usr/bin/file -L'
3567   case "$host_os" in
3568   rhapsody* | darwin1.012)
3569     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3570     ;;
3571   *) # Darwin 1.3 on
3572     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3573     ;;
3574   esac
3575   lt_cv_deplibs_check_method=pass_all
3576   ;;
3577
3578 freebsd* | kfreebsd*-gnu)
3579   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3580     case $host_cpu in
3581     i*86 )
3582       # Not sure whether the presence of OpenBSD here was a mistake.
3583       # Let's accept both of them until this is cleared up.
3584       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3585       lt_cv_file_magic_cmd=/usr/bin/file
3586       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3587       ;;
3588     esac
3589   else
3590     lt_cv_deplibs_check_method=pass_all
3591   fi
3592   ;;
3593
3594 gnu*)
3595   lt_cv_deplibs_check_method=pass_all
3596   ;;
3597
3598 hpux10.20*|hpux11*)
3599   case $host_cpu in
3600   hppa*)
3601     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3602     lt_cv_file_magic_cmd=/usr/bin/file
3603     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3604     ;;
3605   ia64*)
3606     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3607     lt_cv_file_magic_cmd=/usr/bin/file
3608     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3609     ;;
3610   esac
3611   ;;
3612
3613 irix5* | irix6*)
3614   case $host_os in
3615   irix5*)
3616     # this will be overridden with pass_all, but let us keep it just in case
3617     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3618     ;;
3619   *)
3620     case $LD in
3621     *-32|*"-32 ") libmagic=32-bit;;
3622     *-n32|*"-n32 ") libmagic=N32;;
3623     *-64|*"-64 ") libmagic=64-bit;;
3624     *) libmagic=never-match;;
3625     esac
3626     # this will be overridden with pass_all, but let us keep it just in case
3627     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3628     ;;
3629   esac
3630   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3631   lt_cv_deplibs_check_method=pass_all
3632   ;;
3633
3634 # This must be Linux ELF.
3635 linux-gnu*)
3636   lt_cv_deplibs_check_method=pass_all
3637   ;;
3638
3639 netbsd* | knetbsd*-gnu)
3640   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3641     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3642   else
3643     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3644   fi
3645   ;;
3646
3647 newsos6)
3648   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3649   lt_cv_file_magic_cmd=/usr/bin/file
3650   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3651   ;;
3652
3653 osf3* | osf4* | osf5*)
3654   # this will be overridden with pass_all, but let us keep it just in case
3655   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3656   lt_cv_file_magic_test_file=/shlib/libc.so
3657   lt_cv_deplibs_check_method=pass_all
3658   ;;
3659
3660 sco3.2v5*)
3661   lt_cv_deplibs_check_method=pass_all
3662   ;;
3663
3664 solaris*)
3665   lt_cv_deplibs_check_method=pass_all
3666   lt_cv_file_magic_test_file=/lib/libc.so
3667   ;;
3668
3669 sysv5uw[78]* | sysv4*uw2*)
3670   lt_cv_deplibs_check_method=pass_all
3671   ;;
3672
3673 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3674   case $host_vendor in
3675   ncr)
3676     lt_cv_deplibs_check_method=pass_all
3677     ;;
3678   motorola)
3679     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3680     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3681     ;;
3682   esac
3683   ;;
3684 esac
3685
3686 fi
3687 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3688 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3689 file_magic_cmd=$lt_cv_file_magic_cmd
3690 deplibs_check_method=$lt_cv_deplibs_check_method
3691
3692
3693
3694
3695
3696 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3697
3698 # find the maximum length of command line arguments
3699 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3700 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3701 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3702   echo $ECHO_N "(cached) $ECHO_C" >&6
3703 else
3704     i=0
3705   teststring="ABCD"
3706
3707   case $build_os in
3708   msdosdjgpp*)
3709     # On DJGPP, this test can blow up pretty badly due to problems in libc
3710     # (any single argument exceeding 2000 bytes causes a buffer overrun
3711     # during glob expansion).  Even if it were fixed, the result of this
3712     # check would be larger than it should be.
3713     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3714     ;;
3715
3716   cygwin* | mingw*)
3717     # On Win9x/ME, this test blows up -- it succeeds, but takes
3718     # about 5 minutes as the teststring grows exponentially.
3719     # Worse, since 9x/ME are not pre-emptively multitasking,
3720     # you end up with a "frozen" computer, even though with patience
3721     # the test eventually succeeds (with a max line length of 256k).
3722     # Instead, let's just punt: use the minimum linelength reported by
3723     # all of the supported platforms: 8192 (on NT/2K/XP).
3724     lt_cv_sys_max_cmd_len=8192;
3725     ;;
3726
3727   amigaos*)
3728     # On AmigaOS with pdksh, this test takes hours, literally.
3729     # So we just punt and use a minimum line length of 8192.
3730     lt_cv_sys_max_cmd_len=8192;
3731     ;;
3732
3733   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3734     # This has been around since 386BSD, at least.  Likely further.
3735     if test -x /sbin/sysctl; then
3736       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3737     elif test -x /usr/sbin/sysctl; then
3738       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3739     else
3740       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3741     fi
3742     # And add a safety zone
3743     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3744     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3745     ;;
3746   esac
3747
3748 fi
3749
3750 if test -n "$lt_cv_sys_max_cmd_len" ; then
3751   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3752 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3753 else
3754   echo "$as_me:$LINENO: result: none" >&5
3755 echo "${ECHO_T}none" >&6
3756 fi
3757
3758
3759 # Only perform the check for file, if the check method requires it
3760 case $deplibs_check_method in
3761 file_magic*)
3762   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3763     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3764 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3765 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3766   echo $ECHO_N "(cached) $ECHO_C" >&6
3767 else
3768   case $MAGIC_CMD in
3769   /*)
3770   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3771   ;;
3772   ?:/*)
3773   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3774   ;;
3775   *)
3776   ac_save_MAGIC_CMD="$MAGIC_CMD"
3777   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3778   ac_dummy="/usr/bin:$PATH"
3779   for ac_dir in $ac_dummy; do
3780     test -z "$ac_dir" && ac_dir=.
3781     if test -f $ac_dir/${ac_tool_prefix}file; then
3782       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3783       if test -n "$file_magic_test_file"; then
3784         case $deplibs_check_method in
3785         "file_magic "*)
3786           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3787           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3788           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3789             egrep "$file_magic_regex" > /dev/null; then
3790             :
3791           else
3792             cat <<EOF 1>&2
3793
3794 *** Warning: the command libtool uses to detect shared libraries,
3795 *** $file_magic_cmd, produces output that libtool cannot recognize.
3796 *** The result is that libtool may fail to recognize shared libraries
3797 *** as such.  This will affect the creation of libtool libraries that
3798 *** depend on shared libraries, but programs linked with such libtool
3799 *** libraries will work regardless of this problem.  Nevertheless, you
3800 *** may want to report the problem to your system manager and/or to
3801 *** bug-libtool@gnu.org
3802
3803 EOF
3804           fi ;;
3805         esac
3806       fi
3807       break
3808     fi
3809   done
3810   IFS="$ac_save_ifs"
3811   MAGIC_CMD="$ac_save_MAGIC_CMD"
3812   ;;
3813 esac
3814 fi
3815
3816 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3817 if test -n "$MAGIC_CMD"; then
3818   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3819 echo "${ECHO_T}$MAGIC_CMD" >&6
3820 else
3821   echo "$as_me:$LINENO: result: no" >&5
3822 echo "${ECHO_T}no" >&6
3823 fi
3824
3825 if test -z "$lt_cv_path_MAGIC_CMD"; then
3826   if test -n "$ac_tool_prefix"; then
3827     echo "$as_me:$LINENO: checking for file" >&5
3828 echo $ECHO_N "checking for file... $ECHO_C" >&6
3829 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3830   echo $ECHO_N "(cached) $ECHO_C" >&6
3831 else
3832   case $MAGIC_CMD in
3833   /*)
3834   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3835   ;;
3836   ?:/*)
3837   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3838   ;;
3839   *)
3840   ac_save_MAGIC_CMD="$MAGIC_CMD"
3841   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3842   ac_dummy="/usr/bin:$PATH"
3843   for ac_dir in $ac_dummy; do
3844     test -z "$ac_dir" && ac_dir=.
3845     if test -f $ac_dir/file; then
3846       lt_cv_path_MAGIC_CMD="$ac_dir/file"
3847       if test -n "$file_magic_test_file"; then
3848         case $deplibs_check_method in
3849         "file_magic "*)
3850           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3851           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3852           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3853             egrep "$file_magic_regex" > /dev/null; then
3854             :
3855           else
3856             cat <<EOF 1>&2
3857
3858 *** Warning: the command libtool uses to detect shared libraries,
3859 *** $file_magic_cmd, produces output that libtool cannot recognize.
3860 *** The result is that libtool may fail to recognize shared libraries
3861 *** as such.  This will affect the creation of libtool libraries that
3862 *** depend on shared libraries, but programs linked with such libtool
3863 *** libraries will work regardless of this problem.  Nevertheless, you
3864 *** may want to report the problem to your system manager and/or to
3865 *** bug-libtool@gnu.org
3866
3867 EOF
3868           fi ;;
3869         esac
3870       fi
3871       break
3872     fi
3873   done
3874   IFS="$ac_save_ifs"
3875   MAGIC_CMD="$ac_save_MAGIC_CMD"
3876   ;;
3877 esac
3878 fi
3879
3880 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3881 if test -n "$MAGIC_CMD"; then
3882   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3883 echo "${ECHO_T}$MAGIC_CMD" >&6
3884 else
3885   echo "$as_me:$LINENO: result: no" >&5
3886 echo "${ECHO_T}no" >&6
3887 fi
3888
3889   else
3890     MAGIC_CMD=:
3891   fi
3892 fi
3893
3894   fi
3895   ;;
3896 esac
3897
3898 if test -n "$ac_tool_prefix"; then
3899   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3900 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3901 echo "$as_me:$LINENO: checking for $ac_word" >&5
3902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3903 if test "${ac_cv_prog_RANLIB+set}" = set; then
3904   echo $ECHO_N "(cached) $ECHO_C" >&6
3905 else
3906   if test -n "$RANLIB"; then
3907   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3908 else
3909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910 for as_dir in $PATH
3911 do
3912   IFS=$as_save_IFS
3913   test -z "$as_dir" && as_dir=.
3914   for ac_exec_ext in '' $ac_executable_extensions; do
3915   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3916     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3917     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3918     break 2
3919   fi
3920 done
3921 done
3922
3923 fi
3924 fi
3925 RANLIB=$ac_cv_prog_RANLIB
3926 if test -n "$RANLIB"; then
3927   echo "$as_me:$LINENO: result: $RANLIB" >&5
3928 echo "${ECHO_T}$RANLIB" >&6
3929 else
3930   echo "$as_me:$LINENO: result: no" >&5
3931 echo "${ECHO_T}no" >&6
3932 fi
3933
3934 fi
3935 if test -z "$ac_cv_prog_RANLIB"; then
3936   ac_ct_RANLIB=$RANLIB
3937   # Extract the first word of "ranlib", so it can be a program name with args.
3938 set dummy ranlib; ac_word=$2
3939 echo "$as_me:$LINENO: checking for $ac_word" >&5
3940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3941 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3942   echo $ECHO_N "(cached) $ECHO_C" >&6
3943 else
3944   if test -n "$ac_ct_RANLIB"; then
3945   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3946 else
3947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3948 for as_dir in $PATH
3949 do
3950   IFS=$as_save_IFS
3951   test -z "$as_dir" && as_dir=.
3952   for ac_exec_ext in '' $ac_executable_extensions; do
3953   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3954     ac_cv_prog_ac_ct_RANLIB="ranlib"
3955     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3956     break 2
3957   fi
3958 done
3959 done
3960
3961   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3962 fi
3963 fi
3964 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3965 if test -n "$ac_ct_RANLIB"; then
3966   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3967 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3968 else
3969   echo "$as_me:$LINENO: result: no" >&5
3970 echo "${ECHO_T}no" >&6
3971 fi
3972
3973   RANLIB=$ac_ct_RANLIB
3974 else
3975   RANLIB="$ac_cv_prog_RANLIB"
3976 fi
3977
3978 if test -n "$ac_tool_prefix"; then
3979   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3980 set dummy ${ac_tool_prefix}strip; ac_word=$2
3981 echo "$as_me:$LINENO: checking for $ac_word" >&5
3982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3983 if test "${ac_cv_prog_STRIP+set}" = set; then
3984   echo $ECHO_N "(cached) $ECHO_C" >&6
3985 else
3986   if test -n "$STRIP"; then
3987   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3988 else
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 for as_dir in $PATH
3991 do
3992   IFS=$as_save_IFS
3993   test -z "$as_dir" && as_dir=.
3994   for ac_exec_ext in '' $ac_executable_extensions; do
3995   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3996     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3997     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3998     break 2
3999   fi
4000 done
4001 done
4002
4003 fi
4004 fi
4005 STRIP=$ac_cv_prog_STRIP
4006 if test -n "$STRIP"; then
4007   echo "$as_me:$LINENO: result: $STRIP" >&5
4008 echo "${ECHO_T}$STRIP" >&6
4009 else
4010   echo "$as_me:$LINENO: result: no" >&5
4011 echo "${ECHO_T}no" >&6
4012 fi
4013
4014 fi
4015 if test -z "$ac_cv_prog_STRIP"; then
4016   ac_ct_STRIP=$STRIP
4017   # Extract the first word of "strip", so it can be a program name with args.
4018 set dummy strip; ac_word=$2
4019 echo "$as_me:$LINENO: checking for $ac_word" >&5
4020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4021 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4022   echo $ECHO_N "(cached) $ECHO_C" >&6
4023 else
4024   if test -n "$ac_ct_STRIP"; then
4025   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4026 else
4027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4028 for as_dir in $PATH
4029 do
4030   IFS=$as_save_IFS
4031   test -z "$as_dir" && as_dir=.
4032   for ac_exec_ext in '' $ac_executable_extensions; do
4033   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4034     ac_cv_prog_ac_ct_STRIP="strip"
4035     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4036     break 2
4037   fi
4038 done
4039 done
4040
4041   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4042 fi
4043 fi
4044 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4045 if test -n "$ac_ct_STRIP"; then
4046   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4047 echo "${ECHO_T}$ac_ct_STRIP" >&6
4048 else
4049   echo "$as_me:$LINENO: result: no" >&5
4050 echo "${ECHO_T}no" >&6
4051 fi
4052
4053   STRIP=$ac_ct_STRIP
4054 else
4055   STRIP="$ac_cv_prog_STRIP"
4056 fi
4057
4058
4059 # Check for any special flags to pass to ltconfig.
4060 libtool_flags="--cache-file=$cache_file"
4061 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4062 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4063 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4064 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4065 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4066
4067
4068 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4069 if test "${enable_libtool_lock+set}" = set; then
4070   enableval="$enable_libtool_lock"
4071
4072 fi;
4073 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4074 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4075
4076
4077 # Check whether --with-pic or --without-pic was given.
4078 if test "${with_pic+set}" = set; then
4079   withval="$with_pic"
4080   pic_mode="$withval"
4081 else
4082   pic_mode=default
4083 fi;
4084 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4085 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4086
4087 # Some flags need to be propagated to the compiler or linker for good
4088 # libtool support.
4089 case $host in
4090 *-*-irix6*)
4091   # Find out which ABI we are using.
4092   echo '#line 4092 "configure"' > conftest.$ac_ext
4093   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4094   (eval $ac_compile) 2>&5
4095   ac_status=$?
4096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097   (exit $ac_status); }; then
4098    if test "$lt_cv_prog_gnu_ld" = yes; then
4099     case `/usr/bin/file conftest.$ac_objext` in
4100     *32-bit*)
4101       LD="${LD-ld} -melf32bsmip"
4102       ;;
4103     *N32*)
4104       LD="${LD-ld} -melf32bmipn32"
4105       ;;
4106     *64-bit*)
4107       LD="${LD-ld} -melf64bmip"
4108       ;;
4109     esac
4110    else
4111     case `/usr/bin/file conftest.$ac_objext` in
4112     *32-bit*)
4113       LD="${LD-ld} -32"
4114       ;;
4115     *N32*)
4116       LD="${LD-ld} -n32"
4117       ;;
4118     *64-bit*)
4119       LD="${LD-ld} -64"
4120       ;;
4121     esac
4122    fi
4123   fi
4124   rm -rf conftest*
4125   ;;
4126
4127 ia64-*-hpux*)
4128   # Find out which ABI we are using.
4129   echo 'int i;' > conftest.$ac_ext
4130   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4131   (eval $ac_compile) 2>&5
4132   ac_status=$?
4133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134   (exit $ac_status); }; then
4135     case "`/usr/bin/file conftest.o`" in
4136     *ELF-32*)
4137       HPUX_IA64_MODE="32"
4138       ;;
4139     *ELF-64*)
4140       HPUX_IA64_MODE="64"
4141       ;;
4142     esac
4143   fi
4144   rm -rf conftest*
4145   ;;
4146
4147 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4148   # Find out which ABI we are using.
4149   echo 'int i;' > conftest.$ac_ext
4150   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4151   (eval $ac_compile) 2>&5
4152   ac_status=$?
4153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154   (exit $ac_status); }; then
4155     case "`/usr/bin/file conftest.o`" in
4156     *32-bit*)
4157       case $host in
4158         x86_64-*linux*)
4159           LD="${LD-ld} -m elf_i386"
4160           ;;
4161         ppc64-*linux*|powerpc64-*linux*)
4162           LD="${LD-ld} -m elf32ppclinux"
4163           ;;
4164         s390x-*linux*)
4165           LD="${LD-ld} -m elf_s390"
4166           ;;
4167         sparc64-*linux*)
4168           LD="${LD-ld} -m elf32_sparc"
4169           ;;
4170       esac
4171       ;;
4172     *64-bit*)
4173       case $host in
4174         x86_64-*linux*)
4175           LD="${LD-ld} -m elf_x86_64"
4176           ;;
4177         ppc*-*linux*|powerpc*-*linux*)
4178           LD="${LD-ld} -m elf64ppc"
4179           ;;
4180         s390*-*linux*)
4181           LD="${LD-ld} -m elf64_s390"
4182           ;;
4183         sparc*-*linux*)
4184           LD="${LD-ld} -m elf64_sparc"
4185           ;;
4186       esac
4187       ;;
4188     esac
4189   fi
4190   rm -rf conftest*
4191   ;;
4192
4193 *-*-sco3.2v5*)
4194   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4195   SAVE_CFLAGS="$CFLAGS"
4196   CFLAGS="$CFLAGS -belf"
4197   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4198 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4199 if test "${lt_cv_cc_needs_belf+set}" = set; then
4200   echo $ECHO_N "(cached) $ECHO_C" >&6
4201 else
4202
4203
4204      ac_ext=c
4205 ac_cpp='$CPP $CPPFLAGS'
4206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4209
4210      cat >conftest.$ac_ext <<_ACEOF
4211 /* confdefs.h.  */
4212 _ACEOF
4213 cat confdefs.h >>conftest.$ac_ext
4214 cat >>conftest.$ac_ext <<_ACEOF
4215 /* end confdefs.h.  */
4216
4217 int
4218 main ()
4219 {
4220
4221   ;
4222   return 0;
4223 }
4224 _ACEOF
4225 rm -f conftest.$ac_objext conftest$ac_exeext
4226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4227   (eval $ac_link) 2>conftest.er1
4228   ac_status=$?
4229   grep -v '^ *+' conftest.er1 >conftest.err
4230   rm -f conftest.er1
4231   cat conftest.err >&5
4232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233   (exit $ac_status); } &&
4234          { ac_try='test -z "$ac_c_werror_flag"
4235                          || test ! -s conftest.err'
4236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4237   (eval $ac_try) 2>&5
4238   ac_status=$?
4239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240   (exit $ac_status); }; } &&
4241          { ac_try='test -s conftest$ac_exeext'
4242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4243   (eval $ac_try) 2>&5
4244   ac_status=$?
4245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246   (exit $ac_status); }; }; then
4247   lt_cv_cc_needs_belf=yes
4248 else
4249   echo "$as_me: failed program was:" >&5
4250 sed 's/^/| /' conftest.$ac_ext >&5
4251
4252 lt_cv_cc_needs_belf=no
4253 fi
4254 rm -f conftest.err conftest.$ac_objext \
4255       conftest$ac_exeext conftest.$ac_ext
4256      ac_ext=c
4257 ac_cpp='$CPP $CPPFLAGS'
4258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4261
4262 fi
4263 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4264 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4265   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4266     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4267     CFLAGS="$SAVE_CFLAGS"
4268   fi
4269   ;;
4270
4271
4272 esac
4273
4274
4275 # Save cache, so that ltconfig can load it
4276 cat >confcache <<\_ACEOF
4277 # This file is a shell script that caches the results of configure
4278 # tests run on this system so they can be shared between configure
4279 # scripts and configure runs, see configure's option --config-cache.
4280 # It is not useful on other systems.  If it contains results you don't
4281 # want to keep, you may remove or edit it.
4282 #
4283 # config.status only pays attention to the cache file if you give it
4284 # the --recheck option to rerun configure.
4285 #
4286 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4287 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4288 # following values.
4289
4290 _ACEOF
4291
4292 # The following way of writing the cache mishandles newlines in values,
4293 # but we know of no workaround that is simple, portable, and efficient.
4294 # So, don't put newlines in cache variables' values.
4295 # Ultrix sh set writes to stderr and can't be redirected directly,
4296 # and sets the high bit in the cache file unless we assign to the vars.
4297 {
4298   (set) 2>&1 |
4299     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4300     *ac_space=\ *)
4301       # `set' does not quote correctly, so add quotes (double-quote
4302       # substitution turns \\\\ into \\, and sed turns \\ into \).
4303       sed -n \
4304         "s/'/'\\\\''/g;
4305           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4306       ;;
4307     *)
4308       # `set' quotes correctly as required by POSIX, so do not add quotes.
4309       sed -n \
4310         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4311       ;;
4312     esac;
4313 } |
4314   sed '
4315      t clear
4316      : clear
4317      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4318      t end
4319      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4320      : end' >>confcache
4321 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4322   if test -w $cache_file; then
4323     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4324     cat confcache >$cache_file
4325   else
4326     echo "not updating unwritable cache $cache_file"
4327   fi
4328 fi
4329 rm -f confcache
4330
4331 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
4332 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4333 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4334 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4335 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4336 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4337 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4338 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4339 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4340 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4341 echo "$as_me: error: libtool configure failed" >&2;}
4342    { (exit 1); exit 1; }; }
4343
4344 # Reload cache, that may have been modified by ltconfig
4345 if test -r "$cache_file"; then
4346   # Some versions of bash will fail to source /dev/null (special
4347   # files actually), so we avoid doing that.
4348   if test -f "$cache_file"; then
4349     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4350 echo "$as_me: loading cache $cache_file" >&6;}
4351     case $cache_file in
4352       [\\/]* | ?:[\\/]* ) . $cache_file;;
4353       *)                      . ./$cache_file;;
4354     esac
4355   fi
4356 else
4357   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4358 echo "$as_me: creating cache $cache_file" >&6;}
4359   >$cache_file
4360 fi
4361
4362
4363 # This can be used to rebuild libtool when needed
4364 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4365
4366 # Always use our own libtool.
4367 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4368
4369 # Redirect the config.log output again, so that the ltconfig log is not
4370 # clobbered by the next message.
4371 exec 5>>./config.log
4372
4373
4374
4375
4376
4377
4378
4379
4380 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
4381
4382 # We need gfortran to compile parts of the library
4383 # We can't use AC_PROG_FC because it expects a fully working gfortran.
4384 #AC_PROG_FC(gfortran)
4385 FC="$GFORTRAN"
4386 ac_ext=${FC_SRCEXT-f}
4387 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
4388 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
4389 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4390 if test -n "$ac_tool_prefix"; then
4391   for ac_prog in gfortran
4392   do
4393     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4394 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4395 echo "$as_me:$LINENO: checking for $ac_word" >&5
4396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4397 if test "${ac_cv_prog_FC+set}" = set; then
4398   echo $ECHO_N "(cached) $ECHO_C" >&6
4399 else
4400   if test -n "$FC"; then
4401   ac_cv_prog_FC="$FC" # Let the user override the test.
4402 else
4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 for as_dir in $PATH
4405 do
4406   IFS=$as_save_IFS
4407   test -z "$as_dir" && as_dir=.
4408   for ac_exec_ext in '' $ac_executable_extensions; do
4409   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4410     ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4411     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4412     break 2
4413   fi
4414 done
4415 done
4416
4417 fi
4418 fi
4419 FC=$ac_cv_prog_FC
4420 if test -n "$FC"; then
4421   echo "$as_me:$LINENO: result: $FC" >&5
4422 echo "${ECHO_T}$FC" >&6
4423 else
4424   echo "$as_me:$LINENO: result: no" >&5
4425 echo "${ECHO_T}no" >&6
4426 fi
4427
4428     test -n "$FC" && break
4429   done
4430 fi
4431 if test -z "$FC"; then
4432   ac_ct_FC=$FC
4433   for ac_prog in gfortran
4434 do
4435   # Extract the first word of "$ac_prog", so it can be a program name with args.
4436 set dummy $ac_prog; ac_word=$2
4437 echo "$as_me:$LINENO: checking for $ac_word" >&5
4438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4439 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
4440   echo $ECHO_N "(cached) $ECHO_C" >&6
4441 else
4442   if test -n "$ac_ct_FC"; then
4443   ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4444 else
4445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446 for as_dir in $PATH
4447 do
4448   IFS=$as_save_IFS
4449   test -z "$as_dir" && as_dir=.
4450   for ac_exec_ext in '' $ac_executable_extensions; do
4451   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4452     ac_cv_prog_ac_ct_FC="$ac_prog"
4453     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4454     break 2
4455   fi
4456 done
4457 done
4458
4459 fi
4460 fi
4461 ac_ct_FC=$ac_cv_prog_ac_ct_FC
4462 if test -n "$ac_ct_FC"; then
4463   echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
4464 echo "${ECHO_T}$ac_ct_FC" >&6
4465 else
4466   echo "$as_me:$LINENO: result: no" >&5
4467 echo "${ECHO_T}no" >&6
4468 fi
4469
4470   test -n "$ac_ct_FC" && break
4471 done
4472
4473   FC=$ac_ct_FC
4474 fi
4475
4476
4477 # Provide some information about the compiler.
4478 echo "$as_me:4478:" \
4479      "checking for Fortran compiler version" >&5
4480 ac_compiler=`set X $ac_compile; echo $2`
4481 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4482   (eval $ac_compiler --version </dev/null >&5) 2>&5
4483   ac_status=$?
4484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485   (exit $ac_status); }
4486 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4487   (eval $ac_compiler -v </dev/null >&5) 2>&5
4488   ac_status=$?
4489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490   (exit $ac_status); }
4491 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4492   (eval $ac_compiler -V </dev/null >&5) 2>&5
4493   ac_status=$?
4494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495   (exit $ac_status); }
4496 rm -f a.out
4497
4498 # If we don't use `.F' as extension, the preprocessor is not run on the
4499 # input file.  (Note that this only needs to work for GNU compilers.)
4500 ac_save_ext=$ac_ext
4501 ac_ext=F
4502 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
4503 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
4504 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
4505   echo $ECHO_N "(cached) $ECHO_C" >&6
4506 else
4507   cat >conftest.$ac_ext <<_ACEOF
4508       program main
4509 #ifndef __GNUC__
4510        choke me
4511 #endif
4512
4513       end
4514 _ACEOF
4515 rm -f conftest.$ac_objext
4516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4517   (eval $ac_compile) 2>conftest.er1
4518   ac_status=$?
4519   grep -v '^ *+' conftest.er1 >conftest.err
4520   rm -f conftest.er1
4521   cat conftest.err >&5
4522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523   (exit $ac_status); } &&
4524          { ac_try='test -z "$ac_fc_werror_flag"
4525                          || test ! -s conftest.err'
4526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4527   (eval $ac_try) 2>&5
4528   ac_status=$?
4529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530   (exit $ac_status); }; } &&
4531          { ac_try='test -s conftest.$ac_objext'
4532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4533   (eval $ac_try) 2>&5
4534   ac_status=$?
4535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536   (exit $ac_status); }; }; then
4537   ac_compiler_gnu=yes
4538 else
4539   echo "$as_me: failed program was:" >&5
4540 sed 's/^/| /' conftest.$ac_ext >&5
4541
4542 ac_compiler_gnu=no
4543 fi
4544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4545 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4546
4547 fi
4548 echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
4549 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
4550 ac_ext=$ac_save_ext
4551 ac_test_FFLAGS=${FCFLAGS+set}
4552 ac_save_FFLAGS=$FCFLAGS
4553 FCFLAGS=
4554 echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
4555 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
4556 if test "${ac_cv_prog_fc_g+set}" = set; then
4557   echo $ECHO_N "(cached) $ECHO_C" >&6
4558 else
4559   FCFLAGS=-g
4560 cat >conftest.$ac_ext <<_ACEOF
4561       program main
4562
4563       end
4564 _ACEOF
4565 rm -f conftest.$ac_objext
4566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4567   (eval $ac_compile) 2>conftest.er1
4568   ac_status=$?
4569   grep -v '^ *+' conftest.er1 >conftest.err
4570   rm -f conftest.er1
4571   cat conftest.err >&5
4572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573   (exit $ac_status); } &&
4574          { ac_try='test -z "$ac_fc_werror_flag"
4575                          || test ! -s conftest.err'
4576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4577   (eval $ac_try) 2>&5
4578   ac_status=$?
4579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580   (exit $ac_status); }; } &&
4581          { ac_try='test -s conftest.$ac_objext'
4582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4583   (eval $ac_try) 2>&5
4584   ac_status=$?
4585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586   (exit $ac_status); }; }; then
4587   ac_cv_prog_fc_g=yes
4588 else
4589   echo "$as_me: failed program was:" >&5
4590 sed 's/^/| /' conftest.$ac_ext >&5
4591
4592 ac_cv_prog_fc_g=no
4593 fi
4594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4595
4596 fi
4597 echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
4598 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
4599 if test "$ac_test_FFLAGS" = set; then
4600   FCFLAGS=$ac_save_FFLAGS
4601 elif test $ac_cv_prog_fc_g = yes; then
4602   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4603     FCFLAGS="-g -O2"
4604   else
4605     FCFLAGS="-g"
4606   fi
4607 else
4608   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4609     FCFLAGS="-O2"
4610   else
4611     FCFLAGS=
4612   fi
4613 fi
4614
4615 ac_ext=c
4616 ac_cpp='$CPP $CPPFLAGS'
4617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4620
4621 FCFLAGS="$FCFLAGS -Wall -fno-repack-arrays -fno-underscoring"
4622
4623 # extra LD Flags which are required for targets
4624 case "${host}" in
4625   *-darwin*)
4626     # Darwin needs -single_module when linking libgfortran
4627     extra_ldflags_libgfortran=-Wl,-single_module
4628     ;;
4629 esac
4630
4631
4632 # Check whether --enable-largefile or --disable-largefile was given.
4633 if test "${enable_largefile+set}" = set; then
4634   enableval="$enable_largefile"
4635
4636 fi;
4637 if test "$enable_largefile" != no; then
4638
4639   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4640 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4641 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4642   echo $ECHO_N "(cached) $ECHO_C" >&6
4643 else
4644   ac_cv_sys_largefile_CC=no
4645      if test "$GCC" != yes; then
4646        ac_save_CC=$CC
4647        while :; do
4648          # IRIX 6.2 and later do not support large files by default,
4649          # so use the C compiler's -n32 option if that helps.
4650          cat >conftest.$ac_ext <<_ACEOF
4651 /* confdefs.h.  */
4652 _ACEOF
4653 cat confdefs.h >>conftest.$ac_ext
4654 cat >>conftest.$ac_ext <<_ACEOF
4655 /* end confdefs.h.  */
4656 #include <sys/types.h>
4657  /* Check that off_t can represent 2**63 - 1 correctly.
4658     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4659     since some C++ compilers masquerading as C compilers
4660     incorrectly reject 9223372036854775807.  */
4661 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4662   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4663                        && LARGE_OFF_T % 2147483647 == 1)
4664                       ? 1 : -1];
4665 int
4666 main ()
4667 {
4668
4669   ;
4670   return 0;
4671 }
4672 _ACEOF
4673          rm -f conftest.$ac_objext
4674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4675   (eval $ac_compile) 2>conftest.er1
4676   ac_status=$?
4677   grep -v '^ *+' conftest.er1 >conftest.err
4678   rm -f conftest.er1
4679   cat conftest.err >&5
4680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681   (exit $ac_status); } &&
4682          { ac_try='test -z "$ac_c_werror_flag"
4683                          || test ! -s conftest.err'
4684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4685   (eval $ac_try) 2>&5
4686   ac_status=$?
4687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688   (exit $ac_status); }; } &&
4689          { ac_try='test -s conftest.$ac_objext'
4690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4691   (eval $ac_try) 2>&5
4692   ac_status=$?
4693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694   (exit $ac_status); }; }; then
4695   break
4696 else
4697   echo "$as_me: failed program was:" >&5
4698 sed 's/^/| /' conftest.$ac_ext >&5
4699
4700 fi
4701 rm -f conftest.err conftest.$ac_objext
4702          CC="$CC -n32"
4703          rm -f conftest.$ac_objext
4704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4705   (eval $ac_compile) 2>conftest.er1
4706   ac_status=$?
4707   grep -v '^ *+' conftest.er1 >conftest.err
4708   rm -f conftest.er1
4709   cat conftest.err >&5
4710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711   (exit $ac_status); } &&
4712          { ac_try='test -z "$ac_c_werror_flag"
4713                          || test ! -s conftest.err'
4714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715   (eval $ac_try) 2>&5
4716   ac_status=$?
4717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718   (exit $ac_status); }; } &&
4719          { ac_try='test -s conftest.$ac_objext'
4720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721   (eval $ac_try) 2>&5
4722   ac_status=$?
4723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724   (exit $ac_status); }; }; then
4725   ac_cv_sys_largefile_CC=' -n32'; break
4726 else
4727   echo "$as_me: failed program was:" >&5
4728 sed 's/^/| /' conftest.$ac_ext >&5
4729
4730 fi
4731 rm -f conftest.err conftest.$ac_objext
4732          break
4733        done
4734        CC=$ac_save_CC
4735        rm -f conftest.$ac_ext
4736     fi
4737 fi
4738 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4739 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4740   if test "$ac_cv_sys_largefile_CC" != no; then
4741     CC=$CC$ac_cv_sys_largefile_CC
4742   fi
4743
4744   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4745 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4746 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4747   echo $ECHO_N "(cached) $ECHO_C" >&6
4748 else
4749   while :; do
4750   ac_cv_sys_file_offset_bits=no
4751   cat >conftest.$ac_ext <<_ACEOF
4752 /* confdefs.h.  */
4753 _ACEOF
4754 cat confdefs.h >>conftest.$ac_ext
4755 cat >>conftest.$ac_ext <<_ACEOF
4756 /* end confdefs.h.  */
4757 #include <sys/types.h>
4758  /* Check that off_t can represent 2**63 - 1 correctly.
4759     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4760     since some C++ compilers masquerading as C compilers
4761     incorrectly reject 9223372036854775807.  */
4762 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4763   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4764                        && LARGE_OFF_T % 2147483647 == 1)
4765                       ? 1 : -1];
4766 int
4767 main ()
4768 {
4769
4770   ;
4771   return 0;
4772 }
4773 _ACEOF
4774 rm -f conftest.$ac_objext
4775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4776   (eval $ac_compile) 2>conftest.er1
4777   ac_status=$?
4778   grep -v '^ *+' conftest.er1 >conftest.err
4779   rm -f conftest.er1
4780   cat conftest.err >&5
4781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782   (exit $ac_status); } &&
4783          { ac_try='test -z "$ac_c_werror_flag"
4784                          || test ! -s conftest.err'
4785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4786   (eval $ac_try) 2>&5
4787   ac_status=$?
4788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789   (exit $ac_status); }; } &&
4790          { ac_try='test -s conftest.$ac_objext'
4791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792   (eval $ac_try) 2>&5
4793   ac_status=$?
4794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795   (exit $ac_status); }; }; then
4796   break
4797 else
4798   echo "$as_me: failed program was:" >&5
4799 sed 's/^/| /' conftest.$ac_ext >&5
4800
4801 fi
4802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4803   cat >conftest.$ac_ext <<_ACEOF
4804 /* confdefs.h.  */
4805 _ACEOF
4806 cat confdefs.h >>conftest.$ac_ext
4807 cat >>conftest.$ac_ext <<_ACEOF
4808 /* end confdefs.h.  */
4809 #define _FILE_OFFSET_BITS 64
4810 #include <sys/types.h>
4811  /* Check that off_t can represent 2**63 - 1 correctly.
4812     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4813     since some C++ compilers masquerading as C compilers
4814     incorrectly reject 9223372036854775807.  */
4815 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4816   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4817                        && LARGE_OFF_T % 2147483647 == 1)
4818                       ? 1 : -1];
4819 int
4820 main ()
4821 {
4822
4823   ;
4824   return 0;
4825 }
4826 _ACEOF
4827 rm -f conftest.$ac_objext
4828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4829   (eval $ac_compile) 2>conftest.er1
4830   ac_status=$?
4831   grep -v '^ *+' conftest.er1 >conftest.err
4832   rm -f conftest.er1
4833   cat conftest.err >&5
4834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835   (exit $ac_status); } &&
4836          { ac_try='test -z "$ac_c_werror_flag"
4837                          || test ! -s conftest.err'
4838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4839   (eval $ac_try) 2>&5
4840   ac_status=$?
4841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842   (exit $ac_status); }; } &&
4843          { ac_try='test -s conftest.$ac_objext'
4844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4845   (eval $ac_try) 2>&5
4846   ac_status=$?
4847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848   (exit $ac_status); }; }; then
4849   ac_cv_sys_file_offset_bits=64; break
4850 else
4851   echo "$as_me: failed program was:" >&5
4852 sed 's/^/| /' conftest.$ac_ext >&5
4853
4854 fi
4855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4856   break
4857 done
4858 fi
4859 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4860 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4861 if test "$ac_cv_sys_file_offset_bits" != no; then
4862
4863 cat >>confdefs.h <<_ACEOF
4864 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4865 _ACEOF
4866
4867 fi
4868 rm -f conftest*
4869   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4870 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4871 if test "${ac_cv_sys_large_files+set}" = set; then
4872   echo $ECHO_N "(cached) $ECHO_C" >&6
4873 else
4874   while :; do
4875   ac_cv_sys_large_files=no
4876   cat >conftest.$ac_ext <<_ACEOF
4877 /* confdefs.h.  */
4878 _ACEOF
4879 cat confdefs.h >>conftest.$ac_ext
4880 cat >>conftest.$ac_ext <<_ACEOF
4881 /* end confdefs.h.  */
4882 #include <sys/types.h>
4883  /* Check that off_t can represent 2**63 - 1 correctly.
4884     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4885     since some C++ compilers masquerading as C compilers
4886     incorrectly reject 9223372036854775807.  */
4887 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4888   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4889                        && LARGE_OFF_T % 2147483647 == 1)
4890                       ? 1 : -1];
4891 int
4892 main ()
4893 {
4894
4895   ;
4896   return 0;
4897 }
4898 _ACEOF
4899 rm -f conftest.$ac_objext
4900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4901   (eval $ac_compile) 2>conftest.er1
4902   ac_status=$?
4903   grep -v '^ *+' conftest.er1 >conftest.err
4904   rm -f conftest.er1
4905   cat conftest.err >&5
4906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907   (exit $ac_status); } &&
4908          { ac_try='test -z "$ac_c_werror_flag"
4909                          || test ! -s conftest.err'
4910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4911   (eval $ac_try) 2>&5
4912   ac_status=$?
4913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914   (exit $ac_status); }; } &&
4915          { ac_try='test -s conftest.$ac_objext'
4916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4917   (eval $ac_try) 2>&5
4918   ac_status=$?
4919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920   (exit $ac_status); }; }; then
4921   break
4922 else
4923   echo "$as_me: failed program was:" >&5
4924 sed 's/^/| /' conftest.$ac_ext >&5
4925
4926 fi
4927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4928   cat >conftest.$ac_ext <<_ACEOF
4929 /* confdefs.h.  */
4930 _ACEOF
4931 cat confdefs.h >>conftest.$ac_ext
4932 cat >>conftest.$ac_ext <<_ACEOF
4933 /* end confdefs.h.  */
4934 #define _LARGE_FILES 1
4935 #include <sys/types.h>
4936  /* Check that off_t can represent 2**63 - 1 correctly.
4937     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4938     since some C++ compilers masquerading as C compilers
4939     incorrectly reject 9223372036854775807.  */
4940 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4941   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4942                        && LARGE_OFF_T % 2147483647 == 1)
4943                       ? 1 : -1];
4944 int
4945 main ()
4946 {
4947
4948   ;
4949   return 0;
4950 }
4951 _ACEOF
4952 rm -f conftest.$ac_objext
4953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4954   (eval $ac_compile) 2>conftest.er1
4955   ac_status=$?
4956   grep -v '^ *+' conftest.er1 >conftest.err
4957   rm -f conftest.er1
4958   cat conftest.err >&5
4959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960   (exit $ac_status); } &&
4961          { ac_try='test -z "$ac_c_werror_flag"
4962                          || test ! -s conftest.err'
4963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4964   (eval $ac_try) 2>&5
4965   ac_status=$?
4966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967   (exit $ac_status); }; } &&
4968          { ac_try='test -s conftest.$ac_objext'
4969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4970   (eval $ac_try) 2>&5
4971   ac_status=$?
4972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973   (exit $ac_status); }; }; then
4974   ac_cv_sys_large_files=1; break
4975 else
4976   echo "$as_me: failed program was:" >&5
4977 sed 's/^/| /' conftest.$ac_ext >&5
4978
4979 fi
4980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4981   break
4982 done
4983 fi
4984 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4985 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4986 if test "$ac_cv_sys_large_files" != no; then
4987
4988 cat >>confdefs.h <<_ACEOF
4989 #define _LARGE_FILES $ac_cv_sys_large_files
4990 _ACEOF
4991
4992 fi
4993 rm -f conftest*
4994 fi
4995
4996 ac_ext=c
4997 ac_cpp='$CPP $CPPFLAGS'
4998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5001 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5002 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5003 # On Suns, sometimes $CPP names a directory.
5004 if test -n "$CPP" && test -d "$CPP"; then
5005   CPP=
5006 fi
5007 if test -z "$CPP"; then
5008   if test "${ac_cv_prog_CPP+set}" = set; then
5009   echo $ECHO_N "(cached) $ECHO_C" >&6
5010 else
5011       # Double quotes because CPP needs to be expanded
5012     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5013     do
5014       ac_preproc_ok=false
5015 for ac_c_preproc_warn_flag in '' yes
5016 do
5017   # Use a header file that comes with gcc, so configuring glibc
5018   # with a fresh cross-compiler works.
5019   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5020   # <limits.h> exists even on freestanding compilers.
5021   # On the NeXT, cc -E runs the code through the compiler's parser,
5022   # not just through cpp. "Syntax error" is here to catch this case.
5023   cat >conftest.$ac_ext <<_ACEOF
5024 /* confdefs.h.  */
5025 _ACEOF
5026 cat confdefs.h >>conftest.$ac_ext
5027 cat >>conftest.$ac_ext <<_ACEOF
5028 /* end confdefs.h.  */
5029 #ifdef __STDC__
5030 # include <limits.h>
5031 #else
5032 # include <assert.h>
5033 #endif
5034                      Syntax error
5035 _ACEOF
5036 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5037   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5038   ac_status=$?
5039   grep -v '^ *+' conftest.er1 >conftest.err
5040   rm -f conftest.er1
5041   cat conftest.err >&5
5042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043   (exit $ac_status); } >/dev/null; then
5044   if test -s conftest.err; then
5045     ac_cpp_err=$ac_c_preproc_warn_flag
5046     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5047   else
5048     ac_cpp_err=
5049   fi
5050 else
5051   ac_cpp_err=yes
5052 fi
5053 if test -z "$ac_cpp_err"; then
5054   :
5055 else
5056   echo "$as_me: failed program was:" >&5
5057 sed 's/^/| /' conftest.$ac_ext >&5
5058
5059   # Broken: fails on valid input.
5060 continue
5061 fi
5062 rm -f conftest.err conftest.$ac_ext
5063
5064   # OK, works on sane cases.  Now check whether non-existent headers
5065   # can be detected and how.
5066   cat >conftest.$ac_ext <<_ACEOF
5067 /* confdefs.h.  */
5068 _ACEOF
5069 cat confdefs.h >>conftest.$ac_ext
5070 cat >>conftest.$ac_ext <<_ACEOF
5071 /* end confdefs.h.  */
5072 #include <ac_nonexistent.h>
5073 _ACEOF
5074 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5075   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5076   ac_status=$?
5077   grep -v '^ *+' conftest.er1 >conftest.err
5078   rm -f conftest.er1
5079   cat conftest.err >&5
5080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081   (exit $ac_status); } >/dev/null; then
5082   if test -s conftest.err; then
5083     ac_cpp_err=$ac_c_preproc_warn_flag
5084     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5085   else
5086     ac_cpp_err=
5087   fi
5088 else
5089   ac_cpp_err=yes
5090 fi
5091 if test -z "$ac_cpp_err"; then
5092   # Broken: success on invalid input.
5093 continue
5094 else
5095   echo "$as_me: failed program was:" >&5
5096 sed 's/^/| /' conftest.$ac_ext >&5
5097
5098   # Passes both tests.
5099 ac_preproc_ok=:
5100 break
5101 fi
5102 rm -f conftest.err conftest.$ac_ext
5103
5104 done
5105 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5106 rm -f conftest.err conftest.$ac_ext
5107 if $ac_preproc_ok; then
5108   break
5109 fi
5110
5111     done
5112     ac_cv_prog_CPP=$CPP
5113
5114 fi
5115   CPP=$ac_cv_prog_CPP
5116 else
5117   ac_cv_prog_CPP=$CPP
5118 fi
5119 echo "$as_me:$LINENO: result: $CPP" >&5
5120 echo "${ECHO_T}$CPP" >&6
5121 ac_preproc_ok=false
5122 for ac_c_preproc_warn_flag in '' yes
5123 do
5124   # Use a header file that comes with gcc, so configuring glibc
5125   # with a fresh cross-compiler works.
5126   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5127   # <limits.h> exists even on freestanding compilers.
5128   # On the NeXT, cc -E runs the code through the compiler's parser,
5129   # not just through cpp. "Syntax error" is here to catch this case.
5130   cat >conftest.$ac_ext <<_ACEOF
5131 /* confdefs.h.  */
5132 _ACEOF
5133 cat confdefs.h >>conftest.$ac_ext
5134 cat >>conftest.$ac_ext <<_ACEOF
5135 /* end confdefs.h.  */
5136 #ifdef __STDC__
5137 # include <limits.h>
5138 #else
5139 # include <assert.h>
5140 #endif
5141                      Syntax error
5142 _ACEOF
5143 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5144   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5145   ac_status=$?
5146   grep -v '^ *+' conftest.er1 >conftest.err
5147   rm -f conftest.er1
5148   cat conftest.err >&5
5149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150   (exit $ac_status); } >/dev/null; then
5151   if test -s conftest.err; then
5152     ac_cpp_err=$ac_c_preproc_warn_flag
5153     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5154   else
5155     ac_cpp_err=
5156   fi
5157 else
5158   ac_cpp_err=yes
5159 fi
5160 if test -z "$ac_cpp_err"; then
5161   :
5162 else
5163   echo "$as_me: failed program was:" >&5
5164 sed 's/^/| /' conftest.$ac_ext >&5
5165
5166   # Broken: fails on valid input.
5167 continue
5168 fi
5169 rm -f conftest.err conftest.$ac_ext
5170
5171   # OK, works on sane cases.  Now check whether non-existent headers
5172   # can be detected and how.
5173   cat >conftest.$ac_ext <<_ACEOF
5174 /* confdefs.h.  */
5175 _ACEOF
5176 cat confdefs.h >>conftest.$ac_ext
5177 cat >>conftest.$ac_ext <<_ACEOF
5178 /* end confdefs.h.  */
5179 #include <ac_nonexistent.h>
5180 _ACEOF
5181 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5182   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5183   ac_status=$?
5184   grep -v '^ *+' conftest.er1 >conftest.err
5185   rm -f conftest.er1
5186   cat conftest.err >&5
5187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188   (exit $ac_status); } >/dev/null; then
5189   if test -s conftest.err; then
5190     ac_cpp_err=$ac_c_preproc_warn_flag
5191     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5192   else
5193     ac_cpp_err=
5194   fi
5195 else
5196   ac_cpp_err=yes
5197 fi
5198 if test -z "$ac_cpp_err"; then
5199   # Broken: success on invalid input.
5200 continue
5201 else
5202   echo "$as_me: failed program was:" >&5
5203 sed 's/^/| /' conftest.$ac_ext >&5
5204
5205   # Passes both tests.
5206 ac_preproc_ok=:
5207 break
5208 fi
5209 rm -f conftest.err conftest.$ac_ext
5210
5211 done
5212 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5213 rm -f conftest.err conftest.$ac_ext
5214 if $ac_preproc_ok; then
5215   :
5216 else
5217   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5218 See \`config.log' for more details." >&5
5219 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5220 See \`config.log' for more details." >&2;}
5221    { (exit 1); exit 1; }; }
5222 fi
5223
5224 ac_ext=c
5225 ac_cpp='$CPP $CPPFLAGS'
5226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5229
5230
5231 echo "$as_me:$LINENO: checking for egrep" >&5
5232 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5233 if test "${ac_cv_prog_egrep+set}" = set; then
5234   echo $ECHO_N "(cached) $ECHO_C" >&6
5235 else
5236   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5237     then ac_cv_prog_egrep='grep -E'
5238     else ac_cv_prog_egrep='egrep'
5239     fi
5240 fi
5241 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5242 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5243  EGREP=$ac_cv_prog_egrep
5244
5245
5246 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5247 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5248 if test "${ac_cv_header_stdc+set}" = set; then
5249   echo $ECHO_N "(cached) $ECHO_C" >&6
5250 else
5251   cat >conftest.$ac_ext <<_ACEOF
5252 /* confdefs.h.  */
5253 _ACEOF
5254 cat confdefs.h >>conftest.$ac_ext
5255 cat >>conftest.$ac_ext <<_ACEOF
5256 /* end confdefs.h.  */
5257 #include <stdlib.h>
5258 #include <stdarg.h>
5259 #include <string.h>
5260 #include <float.h>
5261
5262 int
5263 main ()
5264 {
5265
5266   ;
5267   return 0;
5268 }
5269 _ACEOF
5270 rm -f conftest.$ac_objext
5271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5272   (eval $ac_compile) 2>conftest.er1
5273   ac_status=$?
5274   grep -v '^ *+' conftest.er1 >conftest.err
5275   rm -f conftest.er1
5276   cat conftest.err >&5
5277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278   (exit $ac_status); } &&
5279          { ac_try='test -z "$ac_c_werror_flag"
5280                          || test ! -s conftest.err'
5281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5282   (eval $ac_try) 2>&5
5283   ac_status=$?
5284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285   (exit $ac_status); }; } &&
5286          { ac_try='test -s conftest.$ac_objext'
5287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5288   (eval $ac_try) 2>&5
5289   ac_status=$?
5290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291   (exit $ac_status); }; }; then
5292   ac_cv_header_stdc=yes
5293 else
5294   echo "$as_me: failed program was:" >&5
5295 sed 's/^/| /' conftest.$ac_ext >&5
5296
5297 ac_cv_header_stdc=no
5298 fi
5299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5300
5301 if test $ac_cv_header_stdc = yes; then
5302   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5303   cat >conftest.$ac_ext <<_ACEOF
5304 /* confdefs.h.  */
5305 _ACEOF
5306 cat confdefs.h >>conftest.$ac_ext
5307 cat >>conftest.$ac_ext <<_ACEOF
5308 /* end confdefs.h.  */
5309 #include <string.h>
5310
5311 _ACEOF
5312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5313   $EGREP "memchr" >/dev/null 2>&1; then
5314   :
5315 else
5316   ac_cv_header_stdc=no
5317 fi
5318 rm -f conftest*
5319
5320 fi
5321
5322 if test $ac_cv_header_stdc = yes; then
5323   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5324   cat >conftest.$ac_ext <<_ACEOF
5325 /* confdefs.h.  */
5326 _ACEOF
5327 cat confdefs.h >>conftest.$ac_ext
5328 cat >>conftest.$ac_ext <<_ACEOF
5329 /* end confdefs.h.  */
5330 #include <stdlib.h>
5331
5332 _ACEOF
5333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5334   $EGREP "free" >/dev/null 2>&1; then
5335   :
5336 else
5337   ac_cv_header_stdc=no
5338 fi
5339 rm -f conftest*
5340
5341 fi
5342
5343 if test $ac_cv_header_stdc = yes; then
5344   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5345   if test "$cross_compiling" = yes; then
5346   :
5347 else
5348   cat >conftest.$ac_ext <<_ACEOF
5349 /* confdefs.h.  */
5350 _ACEOF
5351 cat confdefs.h >>conftest.$ac_ext
5352 cat >>conftest.$ac_ext <<_ACEOF
5353 /* end confdefs.h.  */
5354 #include <ctype.h>
5355 #if ((' ' & 0x0FF) == 0x020)
5356 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5357 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5358 #else
5359 # define ISLOWER(c) \
5360                    (('a' <= (c) && (c) <= 'i') \
5361                      || ('j' <= (c) && (c) <= 'r') \
5362                      || ('s' <= (c) && (c) <= 'z'))
5363 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5364 #endif
5365
5366 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5367 int
5368 main ()
5369 {
5370   int i;
5371   for (i = 0; i < 256; i++)
5372     if (XOR (islower (i), ISLOWER (i))
5373         || toupper (i) != TOUPPER (i))
5374       exit(2);
5375   exit (0);
5376 }
5377 _ACEOF
5378 rm -f conftest$ac_exeext
5379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5380   (eval $ac_link) 2>&5
5381   ac_status=$?
5382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5385   (eval $ac_try) 2>&5
5386   ac_status=$?
5387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388   (exit $ac_status); }; }; then
5389   :
5390 else
5391   echo "$as_me: program exited with status $ac_status" >&5
5392 echo "$as_me: failed program was:" >&5
5393 sed 's/^/| /' conftest.$ac_ext >&5
5394
5395 ( exit $ac_status )
5396 ac_cv_header_stdc=no
5397 fi
5398 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5399 fi
5400 fi
5401 fi
5402 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5403 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5404 if test $ac_cv_header_stdc = yes; then
5405
5406 cat >>confdefs.h <<\_ACEOF
5407 #define STDC_HEADERS 1
5408 _ACEOF
5409
5410 fi
5411
5412 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5423                   inttypes.h stdint.h unistd.h
5424 do
5425 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5426 echo "$as_me:$LINENO: checking for $ac_header" >&5
5427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5429   echo $ECHO_N "(cached) $ECHO_C" >&6
5430 else
5431   cat >conftest.$ac_ext <<_ACEOF
5432 /* confdefs.h.  */
5433 _ACEOF
5434 cat confdefs.h >>conftest.$ac_ext
5435 cat >>conftest.$ac_ext <<_ACEOF
5436 /* end confdefs.h.  */
5437 $ac_includes_default
5438
5439 #include <$ac_header>
5440 _ACEOF
5441 rm -f conftest.$ac_objext
5442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5443   (eval $ac_compile) 2>conftest.er1
5444   ac_status=$?
5445   grep -v '^ *+' conftest.er1 >conftest.err
5446   rm -f conftest.er1
5447   cat conftest.err >&5
5448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449   (exit $ac_status); } &&
5450          { ac_try='test -z "$ac_c_werror_flag"
5451                          || test ! -s conftest.err'
5452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5453   (eval $ac_try) 2>&5
5454   ac_status=$?
5455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456   (exit $ac_status); }; } &&
5457          { ac_try='test -s conftest.$ac_objext'
5458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5459   (eval $ac_try) 2>&5
5460   ac_status=$?
5461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462   (exit $ac_status); }; }; then
5463   eval "$as_ac_Header=yes"
5464 else
5465   echo "$as_me: failed program was:" >&5
5466 sed 's/^/| /' conftest.$ac_ext >&5
5467
5468 eval "$as_ac_Header=no"
5469 fi
5470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5471 fi
5472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5473 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5474 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5475   cat >>confdefs.h <<_ACEOF
5476 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5477 _ACEOF
5478
5479 fi
5480
5481 done
5482
5483
5484
5485
5486 for ac_header in stdlib.h unistd.h
5487 do
5488 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5490   echo "$as_me:$LINENO: checking for $ac_header" >&5
5491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5493   echo $ECHO_N "(cached) $ECHO_C" >&6
5494 fi
5495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5496 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5497 else
5498   # Is the header compilable?
5499 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5500 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5501 cat >conftest.$ac_ext <<_ACEOF
5502 /* confdefs.h.  */
5503 _ACEOF
5504 cat confdefs.h >>conftest.$ac_ext
5505 cat >>conftest.$ac_ext <<_ACEOF
5506 /* end confdefs.h.  */
5507 $ac_includes_default
5508 #include <$ac_header>
5509 _ACEOF
5510 rm -f conftest.$ac_objext
5511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5512   (eval $ac_compile) 2>conftest.er1
5513   ac_status=$?
5514   grep -v '^ *+' conftest.er1 >conftest.err
5515   rm -f conftest.er1
5516   cat conftest.err >&5
5517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518   (exit $ac_status); } &&
5519          { ac_try='test -z "$ac_c_werror_flag"
5520                          || test ! -s conftest.err'
5521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5522   (eval $ac_try) 2>&5
5523   ac_status=$?
5524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525   (exit $ac_status); }; } &&
5526          { ac_try='test -s conftest.$ac_objext'
5527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5528   (eval $ac_try) 2>&5
5529   ac_status=$?
5530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531   (exit $ac_status); }; }; then
5532   ac_header_compiler=yes
5533 else
5534   echo "$as_me: failed program was:" >&5
5535 sed 's/^/| /' conftest.$ac_ext >&5
5536
5537 ac_header_compiler=no
5538 fi
5539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5540 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5541 echo "${ECHO_T}$ac_header_compiler" >&6
5542
5543 # Is the header present?
5544 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5545 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5546 cat >conftest.$ac_ext <<_ACEOF
5547 /* confdefs.h.  */
5548 _ACEOF
5549 cat confdefs.h >>conftest.$ac_ext
5550 cat >>conftest.$ac_ext <<_ACEOF
5551 /* end confdefs.h.  */
5552 #include <$ac_header>
5553 _ACEOF
5554 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5555   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5556   ac_status=$?
5557   grep -v '^ *+' conftest.er1 >conftest.err
5558   rm -f conftest.er1
5559   cat conftest.err >&5
5560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561   (exit $ac_status); } >/dev/null; then
5562   if test -s conftest.err; then
5563     ac_cpp_err=$ac_c_preproc_warn_flag
5564     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5565   else
5566     ac_cpp_err=
5567   fi
5568 else
5569   ac_cpp_err=yes
5570 fi
5571 if test -z "$ac_cpp_err"; then
5572   ac_header_preproc=yes
5573 else
5574   echo "$as_me: failed program was:" >&5
5575 sed 's/^/| /' conftest.$ac_ext >&5
5576
5577   ac_header_preproc=no
5578 fi
5579 rm -f conftest.err conftest.$ac_ext
5580 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5581 echo "${ECHO_T}$ac_header_preproc" >&6
5582
5583 # So?  What about this header?
5584 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5585   yes:no: )
5586     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5587 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5588     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5589 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5590     ac_header_preproc=yes
5591     ;;
5592   no:yes:* )
5593     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5594 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5595     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5596 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5597     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5598 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5599     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5600 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5601     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5602 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5603     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5604 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5605     (
5606       cat <<\_ASBOX
5607 ## ------------------------------------------------------ ##
5608 ## Report this to the GNU Fortran Runtime Library lists.  ##
5609 ## ------------------------------------------------------ ##
5610 _ASBOX
5611     ) |
5612       sed "s/^/$as_me: WARNING:     /" >&2
5613     ;;
5614 esac
5615 echo "$as_me:$LINENO: checking for $ac_header" >&5
5616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5618   echo $ECHO_N "(cached) $ECHO_C" >&6
5619 else
5620   eval "$as_ac_Header=\$ac_header_preproc"
5621 fi
5622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5623 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5624
5625 fi
5626 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5627   cat >>confdefs.h <<_ACEOF
5628 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5629 _ACEOF
5630
5631 fi
5632
5633 done
5634
5635
5636 for ac_func in getpagesize
5637 do
5638 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5639 echo "$as_me:$LINENO: checking for $ac_func" >&5
5640 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5641 if eval "test \"\${$as_ac_var+set}\" = set"; then
5642   echo $ECHO_N "(cached) $ECHO_C" >&6
5643 else
5644   cat >conftest.$ac_ext <<_ACEOF
5645 /* confdefs.h.  */
5646 _ACEOF
5647 cat confdefs.h >>conftest.$ac_ext
5648 cat >>conftest.$ac_ext <<_ACEOF
5649 /* end confdefs.h.  */
5650 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5651    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5652 #define $ac_func innocuous_$ac_func
5653
5654 /* System header to define __stub macros and hopefully few prototypes,
5655     which can conflict with char $ac_func (); below.
5656     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5657     <limits.h> exists even on freestanding compilers.  */
5658
5659 #ifdef __STDC__
5660 # include <limits.h>
5661 #else
5662 # include <assert.h>
5663 #endif
5664
5665 #undef $ac_func
5666
5667 /* Override any gcc2 internal prototype to avoid an error.  */
5668 #ifdef __cplusplus
5669 extern "C"
5670 {
5671 #endif
5672 /* We use char because int might match the return type of a gcc2
5673    builtin and then its argument prototype would still apply.  */
5674 char $ac_func ();
5675 /* The GNU C library defines this for functions which it implements
5676     to always fail with ENOSYS.  Some functions are actually named
5677     something starting with __ and the normal name is an alias.  */
5678 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5679 choke me
5680 #else
5681 char (*f) () = $ac_func;
5682 #endif
5683 #ifdef __cplusplus
5684 }
5685 #endif
5686
5687 int
5688 main ()
5689 {
5690 return f != $ac_func;
5691   ;
5692   return 0;
5693 }
5694 _ACEOF
5695 rm -f conftest.$ac_objext conftest$ac_exeext
5696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5697   (eval $ac_link) 2>conftest.er1
5698   ac_status=$?
5699   grep -v '^ *+' conftest.er1 >conftest.err
5700   rm -f conftest.er1
5701   cat conftest.err >&5
5702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703   (exit $ac_status); } &&
5704          { ac_try='test -z "$ac_c_werror_flag"
5705                          || test ! -s conftest.err'
5706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5707   (eval $ac_try) 2>&5
5708   ac_status=$?
5709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710   (exit $ac_status); }; } &&
5711          { ac_try='test -s conftest$ac_exeext'
5712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713   (eval $ac_try) 2>&5
5714   ac_status=$?
5715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716   (exit $ac_status); }; }; then
5717   eval "$as_ac_var=yes"
5718 else
5719   echo "$as_me: failed program was:" >&5
5720 sed 's/^/| /' conftest.$ac_ext >&5
5721
5722 eval "$as_ac_var=no"
5723 fi
5724 rm -f conftest.err conftest.$ac_objext \
5725       conftest$ac_exeext conftest.$ac_ext
5726 fi
5727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5728 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5729 if test `eval echo '${'$as_ac_var'}'` = yes; then
5730   cat >>confdefs.h <<_ACEOF
5731 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5732 _ACEOF
5733
5734 fi
5735 done
5736
5737 echo "$as_me:$LINENO: checking for working mmap" >&5
5738 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5739 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5740   echo $ECHO_N "(cached) $ECHO_C" >&6
5741 else
5742   if test "$cross_compiling" = yes; then
5743   ac_cv_func_mmap_fixed_mapped=no
5744 else
5745   cat >conftest.$ac_ext <<_ACEOF
5746 /* confdefs.h.  */
5747 _ACEOF
5748 cat confdefs.h >>conftest.$ac_ext
5749 cat >>conftest.$ac_ext <<_ACEOF
5750 /* end confdefs.h.  */
5751 $ac_includes_default
5752 /* malloc might have been renamed as rpl_malloc. */
5753 #undef malloc
5754
5755 /* Thanks to Mike Haertel and Jim Avera for this test.
5756    Here is a matrix of mmap possibilities:
5757         mmap private not fixed
5758         mmap private fixed at somewhere currently unmapped
5759         mmap private fixed at somewhere already mapped
5760         mmap shared not fixed
5761         mmap shared fixed at somewhere currently unmapped
5762         mmap shared fixed at somewhere already mapped
5763    For private mappings, we should verify that changes cannot be read()
5764    back from the file, nor mmap's back from the file at a different
5765    address.  (There have been systems where private was not correctly
5766    implemented like the infamous i386 svr4.0, and systems where the
5767    VM page cache was not coherent with the file system buffer cache
5768    like early versions of FreeBSD and possibly contemporary NetBSD.)
5769    For shared mappings, we should conversely verify that changes get
5770    propagated back to all the places they're supposed to be.
5771
5772    Grep wants private fixed already mapped.
5773    The main things grep needs to know about mmap are:
5774    * does it exist and is it safe to write into the mmap'd area
5775    * how to use it (BSD variants)  */
5776
5777 #include <fcntl.h>
5778 #include <sys/mman.h>
5779
5780 #if !STDC_HEADERS && !HAVE_STDLIB_H
5781 char *malloc ();
5782 #endif
5783
5784 /* This mess was copied from the GNU getpagesize.h.  */
5785 #if !HAVE_GETPAGESIZE
5786 /* Assume that all systems that can run configure have sys/param.h.  */
5787 # if !HAVE_SYS_PARAM_H
5788 #  define HAVE_SYS_PARAM_H 1
5789 # endif
5790
5791 # ifdef _SC_PAGESIZE
5792 #  define getpagesize() sysconf(_SC_PAGESIZE)
5793 # else /* no _SC_PAGESIZE */
5794 #  if HAVE_SYS_PARAM_H
5795 #   include <sys/param.h>
5796 #   ifdef EXEC_PAGESIZE
5797 #    define getpagesize() EXEC_PAGESIZE
5798 #   else /* no EXEC_PAGESIZE */
5799 #    ifdef NBPG
5800 #     define getpagesize() NBPG * CLSIZE
5801 #     ifndef CLSIZE
5802 #      define CLSIZE 1
5803 #     endif /* no CLSIZE */
5804 #    else /* no NBPG */
5805 #     ifdef NBPC
5806 #      define getpagesize() NBPC
5807 #     else /* no NBPC */
5808 #      ifdef PAGESIZE
5809 #       define getpagesize() PAGESIZE
5810 #      endif /* PAGESIZE */
5811 #     endif /* no NBPC */
5812 #    endif /* no NBPG */
5813 #   endif /* no EXEC_PAGESIZE */
5814 #  else /* no HAVE_SYS_PARAM_H */
5815 #   define getpagesize() 8192   /* punt totally */
5816 #  endif /* no HAVE_SYS_PARAM_H */
5817 # endif /* no _SC_PAGESIZE */
5818
5819 #endif /* no HAVE_GETPAGESIZE */
5820
5821 int
5822 main ()
5823 {
5824   char *data, *data2, *data3;
5825   int i, pagesize;
5826   int fd;
5827
5828   pagesize = getpagesize ();
5829
5830   /* First, make a file with some known garbage in it. */
5831   data = (char *) malloc (pagesize);
5832   if (!data)
5833     exit (1);
5834   for (i = 0; i < pagesize; ++i)
5835     *(data + i) = rand ();
5836   umask (0);
5837   fd = creat ("conftest.mmap", 0600);
5838   if (fd < 0)
5839     exit (1);
5840   if (write (fd, data, pagesize) != pagesize)
5841     exit (1);
5842   close (fd);
5843
5844   /* Next, try to mmap the file at a fixed address which already has
5845      something else allocated at it.  If we can, also make sure that
5846      we see the same garbage.  */
5847   fd = open ("conftest.mmap", O_RDWR);
5848   if (fd < 0)
5849     exit (1);
5850   data2 = (char *) malloc (2 * pagesize);
5851   if (!data2)
5852     exit (1);
5853   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
5854   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5855                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
5856     exit (1);
5857   for (i = 0; i < pagesize; ++i)
5858     if (*(data + i) != *(data2 + i))
5859       exit (1);
5860
5861   /* Finally, make sure that changes to the mapped area do not
5862      percolate back to the file as seen by read().  (This is a bug on
5863      some variants of i386 svr4.0.)  */
5864   for (i = 0; i < pagesize; ++i)
5865     *(data2 + i) = *(data2 + i) + 1;
5866   data3 = (char *) malloc (pagesize);
5867   if (!data3)
5868     exit (1);
5869   if (read (fd, data3, pagesize) != pagesize)
5870     exit (1);
5871   for (i = 0; i < pagesize; ++i)
5872     if (*(data + i) != *(data3 + i))
5873       exit (1);
5874   close (fd);
5875   exit (0);
5876 }
5877 _ACEOF
5878 rm -f conftest$ac_exeext
5879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5880   (eval $ac_link) 2>&5
5881   ac_status=$?
5882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5885   (eval $ac_try) 2>&5
5886   ac_status=$?
5887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888   (exit $ac_status); }; }; then
5889   ac_cv_func_mmap_fixed_mapped=yes
5890 else
5891   echo "$as_me: program exited with status $ac_status" >&5
5892 echo "$as_me: failed program was:" >&5
5893 sed 's/^/| /' conftest.$ac_ext >&5
5894
5895 ( exit $ac_status )
5896 ac_cv_func_mmap_fixed_mapped=no
5897 fi
5898 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5899 fi
5900 fi
5901 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5902 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5903 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5904
5905 cat >>confdefs.h <<\_ACEOF
5906 #define HAVE_MMAP 1
5907 _ACEOF
5908
5909 fi
5910 rm -f conftest.mmap
5911
5912 echo "$as_me:$LINENO: checking for off_t" >&5
5913 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5914 if test "${ac_cv_type_off_t+set}" = set; then
5915   echo $ECHO_N "(cached) $ECHO_C" >&6
5916 else
5917   cat >conftest.$ac_ext <<_ACEOF
5918 /* confdefs.h.  */
5919 _ACEOF
5920 cat confdefs.h >>conftest.$ac_ext
5921 cat >>conftest.$ac_ext <<_ACEOF
5922 /* end confdefs.h.  */
5923 $ac_includes_default
5924 int
5925 main ()
5926 {
5927 if ((off_t *) 0)
5928   return 0;
5929 if (sizeof (off_t))
5930   return 0;
5931   ;
5932   return 0;
5933 }
5934 _ACEOF
5935 rm -f conftest.$ac_objext
5936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5937   (eval $ac_compile) 2>conftest.er1
5938   ac_status=$?
5939   grep -v '^ *+' conftest.er1 >conftest.err
5940   rm -f conftest.er1
5941   cat conftest.err >&5
5942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943   (exit $ac_status); } &&
5944          { ac_try='test -z "$ac_c_werror_flag"
5945                          || test ! -s conftest.err'
5946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947   (eval $ac_try) 2>&5
5948   ac_status=$?
5949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950   (exit $ac_status); }; } &&
5951          { ac_try='test -s conftest.$ac_objext'
5952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5953   (eval $ac_try) 2>&5
5954   ac_status=$?
5955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956   (exit $ac_status); }; }; then
5957   ac_cv_type_off_t=yes
5958 else
5959   echo "$as_me: failed program was:" >&5
5960 sed 's/^/| /' conftest.$ac_ext >&5
5961
5962 ac_cv_type_off_t=no
5963 fi
5964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5965 fi
5966 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5967 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5968 if test $ac_cv_type_off_t = yes; then
5969   :
5970 else
5971
5972 cat >>confdefs.h <<_ACEOF
5973 #define off_t long
5974 _ACEOF
5975
5976 fi
5977
5978
5979 # check header files
5980 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5981 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5982 if test "${ac_cv_header_stdc+set}" = set; then
5983   echo $ECHO_N "(cached) $ECHO_C" >&6
5984 else
5985   cat >conftest.$ac_ext <<_ACEOF
5986 /* confdefs.h.  */
5987 _ACEOF
5988 cat confdefs.h >>conftest.$ac_ext
5989 cat >>conftest.$ac_ext <<_ACEOF
5990 /* end confdefs.h.  */
5991 #include <stdlib.h>
5992 #include <stdarg.h>
5993 #include <string.h>
5994 #include <float.h>
5995
5996 int
5997 main ()
5998 {
5999
6000   ;
6001   return 0;
6002 }
6003 _ACEOF
6004 rm -f conftest.$ac_objext
6005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6006   (eval $ac_compile) 2>conftest.er1
6007   ac_status=$?
6008   grep -v '^ *+' conftest.er1 >conftest.err
6009   rm -f conftest.er1
6010   cat conftest.err >&5
6011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012   (exit $ac_status); } &&
6013          { ac_try='test -z "$ac_c_werror_flag"
6014                          || test ! -s conftest.err'
6015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6016   (eval $ac_try) 2>&5
6017   ac_status=$?
6018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019   (exit $ac_status); }; } &&
6020          { ac_try='test -s conftest.$ac_objext'
6021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6022   (eval $ac_try) 2>&5
6023   ac_status=$?
6024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025   (exit $ac_status); }; }; then
6026   ac_cv_header_stdc=yes
6027 else
6028   echo "$as_me: failed program was:" >&5
6029 sed 's/^/| /' conftest.$ac_ext >&5
6030
6031 ac_cv_header_stdc=no
6032 fi
6033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6034
6035 if test $ac_cv_header_stdc = yes; then
6036   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6037   cat >conftest.$ac_ext <<_ACEOF
6038 /* confdefs.h.  */
6039 _ACEOF
6040 cat confdefs.h >>conftest.$ac_ext
6041 cat >>conftest.$ac_ext <<_ACEOF
6042 /* end confdefs.h.  */
6043 #include <string.h>
6044
6045 _ACEOF
6046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6047   $EGREP "memchr" >/dev/null 2>&1; then
6048   :
6049 else
6050   ac_cv_header_stdc=no
6051 fi
6052 rm -f conftest*
6053
6054 fi
6055
6056 if test $ac_cv_header_stdc = yes; then
6057   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6058   cat >conftest.$ac_ext <<_ACEOF
6059 /* confdefs.h.  */
6060 _ACEOF
6061 cat confdefs.h >>conftest.$ac_ext
6062 cat >>conftest.$ac_ext <<_ACEOF
6063 /* end confdefs.h.  */
6064 #include <stdlib.h>
6065
6066 _ACEOF
6067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6068   $EGREP "free" >/dev/null 2>&1; then
6069   :
6070 else
6071   ac_cv_header_stdc=no
6072 fi
6073 rm -f conftest*
6074
6075 fi
6076
6077 if test $ac_cv_header_stdc = yes; then
6078   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6079   if test "$cross_compiling" = yes; then
6080   :
6081 else
6082   cat >conftest.$ac_ext <<_ACEOF
6083 /* confdefs.h.  */
6084 _ACEOF
6085 cat confdefs.h >>conftest.$ac_ext
6086 cat >>conftest.$ac_ext <<_ACEOF
6087 /* end confdefs.h.  */
6088 #include <ctype.h>
6089 #if ((' ' & 0x0FF) == 0x020)
6090 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6091 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6092 #else
6093 # define ISLOWER(c) \
6094                    (('a' <= (c) && (c) <= 'i') \
6095                      || ('j' <= (c) && (c) <= 'r') \
6096                      || ('s' <= (c) && (c) <= 'z'))
6097 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6098 #endif
6099
6100 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6101 int
6102 main ()
6103 {
6104   int i;
6105   for (i = 0; i < 256; i++)
6106     if (XOR (islower (i), ISLOWER (i))
6107         || toupper (i) != TOUPPER (i))
6108       exit(2);
6109   exit (0);
6110 }
6111 _ACEOF
6112 rm -f conftest$ac_exeext
6113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6114   (eval $ac_link) 2>&5
6115   ac_status=$?
6116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6119   (eval $ac_try) 2>&5
6120   ac_status=$?
6121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122   (exit $ac_status); }; }; then
6123   :
6124 else
6125   echo "$as_me: program exited with status $ac_status" >&5
6126 echo "$as_me: failed program was:" >&5
6127 sed 's/^/| /' conftest.$ac_ext >&5
6128
6129 ( exit $ac_status )
6130 ac_cv_header_stdc=no
6131 fi
6132 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6133 fi
6134 fi
6135 fi
6136 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6137 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6138 if test $ac_cv_header_stdc = yes; then
6139
6140 cat >>confdefs.h <<\_ACEOF
6141 #define STDC_HEADERS 1
6142 _ACEOF
6143
6144 fi
6145
6146
6147
6148
6149
6150
6151
6152
6153 for ac_header in stdlib.h stdio.h string.h stddef.h math.h unistd.h signal.h
6154 do
6155 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6157   echo "$as_me:$LINENO: checking for $ac_header" >&5
6158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6160   echo $ECHO_N "(cached) $ECHO_C" >&6
6161 fi
6162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6163 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6164 else
6165   # Is the header compilable?
6166 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6167 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6168 cat >conftest.$ac_ext <<_ACEOF
6169 /* confdefs.h.  */
6170 _ACEOF
6171 cat confdefs.h >>conftest.$ac_ext
6172 cat >>conftest.$ac_ext <<_ACEOF
6173 /* end confdefs.h.  */
6174 $ac_includes_default
6175 #include <$ac_header>
6176 _ACEOF
6177 rm -f conftest.$ac_objext
6178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6179   (eval $ac_compile) 2>conftest.er1
6180   ac_status=$?
6181   grep -v '^ *+' conftest.er1 >conftest.err
6182   rm -f conftest.er1
6183   cat conftest.err >&5
6184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185   (exit $ac_status); } &&
6186          { ac_try='test -z "$ac_c_werror_flag"
6187                          || test ! -s conftest.err'
6188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6189   (eval $ac_try) 2>&5
6190   ac_status=$?
6191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192   (exit $ac_status); }; } &&
6193          { ac_try='test -s conftest.$ac_objext'
6194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6195   (eval $ac_try) 2>&5
6196   ac_status=$?
6197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198   (exit $ac_status); }; }; then
6199   ac_header_compiler=yes
6200 else
6201   echo "$as_me: failed program was:" >&5
6202 sed 's/^/| /' conftest.$ac_ext >&5
6203
6204 ac_header_compiler=no
6205 fi
6206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6207 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6208 echo "${ECHO_T}$ac_header_compiler" >&6
6209
6210 # Is the header present?
6211 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6212 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6213 cat >conftest.$ac_ext <<_ACEOF
6214 /* confdefs.h.  */
6215 _ACEOF
6216 cat confdefs.h >>conftest.$ac_ext
6217 cat >>conftest.$ac_ext <<_ACEOF
6218 /* end confdefs.h.  */
6219 #include <$ac_header>
6220 _ACEOF
6221 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6222   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6223   ac_status=$?
6224   grep -v '^ *+' conftest.er1 >conftest.err
6225   rm -f conftest.er1
6226   cat conftest.err >&5
6227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228   (exit $ac_status); } >/dev/null; then
6229   if test -s conftest.err; then
6230     ac_cpp_err=$ac_c_preproc_warn_flag
6231     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6232   else
6233     ac_cpp_err=
6234   fi
6235 else
6236   ac_cpp_err=yes
6237 fi
6238 if test -z "$ac_cpp_err"; then
6239   ac_header_preproc=yes
6240 else
6241   echo "$as_me: failed program was:" >&5
6242 sed 's/^/| /' conftest.$ac_ext >&5
6243
6244   ac_header_preproc=no
6245 fi
6246 rm -f conftest.err conftest.$ac_ext
6247 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6248 echo "${ECHO_T}$ac_header_preproc" >&6
6249
6250 # So?  What about this header?
6251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6252   yes:no: )
6253     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6254 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6255     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6256 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6257     ac_header_preproc=yes
6258     ;;
6259   no:yes:* )
6260     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6261 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6262     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6263 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6264     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6265 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6266     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6267 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6268     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6269 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6270     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6271 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6272     (
6273       cat <<\_ASBOX
6274 ## ------------------------------------------------------ ##
6275 ## Report this to the GNU Fortran Runtime Library lists.  ##
6276 ## ------------------------------------------------------ ##
6277 _ASBOX
6278     ) |
6279       sed "s/^/$as_me: WARNING:     /" >&2
6280     ;;
6281 esac
6282 echo "$as_me:$LINENO: checking for $ac_header" >&5
6283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6284 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6285   echo $ECHO_N "(cached) $ECHO_C" >&6
6286 else
6287   eval "$as_ac_Header=\$ac_header_preproc"
6288 fi
6289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6290 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6291
6292 fi
6293 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6294   cat >>confdefs.h <<_ACEOF
6295 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6296 _ACEOF
6297
6298 fi
6299
6300 done
6301
6302
6303
6304
6305
6306
6307 for ac_header in time.h sys/params.h sys/time.h sys/times.h sys/resource.h
6308 do
6309 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6311   echo "$as_me:$LINENO: checking for $ac_header" >&5
6312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6314   echo $ECHO_N "(cached) $ECHO_C" >&6
6315 fi
6316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6318 else
6319   # Is the header compilable?
6320 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6321 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6322 cat >conftest.$ac_ext <<_ACEOF
6323 /* confdefs.h.  */
6324 _ACEOF
6325 cat confdefs.h >>conftest.$ac_ext
6326 cat >>conftest.$ac_ext <<_ACEOF
6327 /* end confdefs.h.  */
6328 $ac_includes_default
6329 #include <$ac_header>
6330 _ACEOF
6331 rm -f conftest.$ac_objext
6332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6333   (eval $ac_compile) 2>conftest.er1
6334   ac_status=$?
6335   grep -v '^ *+' conftest.er1 >conftest.err
6336   rm -f conftest.er1
6337   cat conftest.err >&5
6338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339   (exit $ac_status); } &&
6340          { ac_try='test -z "$ac_c_werror_flag"
6341                          || test ! -s conftest.err'
6342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6343   (eval $ac_try) 2>&5
6344   ac_status=$?
6345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346   (exit $ac_status); }; } &&
6347          { ac_try='test -s conftest.$ac_objext'
6348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6349   (eval $ac_try) 2>&5
6350   ac_status=$?
6351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352   (exit $ac_status); }; }; then
6353   ac_header_compiler=yes
6354 else
6355   echo "$as_me: failed program was:" >&5
6356 sed 's/^/| /' conftest.$ac_ext >&5
6357
6358 ac_header_compiler=no
6359 fi
6360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6361 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6362 echo "${ECHO_T}$ac_header_compiler" >&6
6363
6364 # Is the header present?
6365 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6366 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6367 cat >conftest.$ac_ext <<_ACEOF
6368 /* confdefs.h.  */
6369 _ACEOF
6370 cat confdefs.h >>conftest.$ac_ext
6371 cat >>conftest.$ac_ext <<_ACEOF
6372 /* end confdefs.h.  */
6373 #include <$ac_header>
6374 _ACEOF
6375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6376   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6377   ac_status=$?
6378   grep -v '^ *+' conftest.er1 >conftest.err
6379   rm -f conftest.er1
6380   cat conftest.err >&5
6381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382   (exit $ac_status); } >/dev/null; then
6383   if test -s conftest.err; then
6384     ac_cpp_err=$ac_c_preproc_warn_flag
6385     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6386   else
6387     ac_cpp_err=
6388   fi
6389 else
6390   ac_cpp_err=yes
6391 fi
6392 if test -z "$ac_cpp_err"; then
6393   ac_header_preproc=yes
6394 else
6395   echo "$as_me: failed program was:" >&5
6396 sed 's/^/| /' conftest.$ac_ext >&5
6397
6398   ac_header_preproc=no
6399 fi
6400 rm -f conftest.err conftest.$ac_ext
6401 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6402 echo "${ECHO_T}$ac_header_preproc" >&6
6403
6404 # So?  What about this header?
6405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6406   yes:no: )
6407     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6408 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6409     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6410 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6411     ac_header_preproc=yes
6412     ;;
6413   no:yes:* )
6414     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6415 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6416     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6417 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6418     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6419 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6420     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6421 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6422     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6423 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6424     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6425 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6426     (
6427       cat <<\_ASBOX
6428 ## ------------------------------------------------------ ##
6429 ## Report this to the GNU Fortran Runtime Library lists.  ##
6430 ## ------------------------------------------------------ ##
6431 _ASBOX
6432     ) |
6433       sed "s/^/$as_me: WARNING:     /" >&2
6434     ;;
6435 esac
6436 echo "$as_me:$LINENO: checking for $ac_header" >&5
6437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6439   echo $ECHO_N "(cached) $ECHO_C" >&6
6440 else
6441   eval "$as_ac_Header=\$ac_header_preproc"
6442 fi
6443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6445
6446 fi
6447 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6448   cat >>confdefs.h <<_ACEOF
6449 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6450 _ACEOF
6451
6452 fi
6453
6454 done
6455
6456
6457
6458
6459
6460 for ac_header in sys/mman.h sys/types.h sys/stat.h ieeefp.h
6461 do
6462 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6464   echo "$as_me:$LINENO: checking for $ac_header" >&5
6465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6467   echo $ECHO_N "(cached) $ECHO_C" >&6
6468 fi
6469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6470 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6471 else
6472   # Is the header compilable?
6473 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6474 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6475 cat >conftest.$ac_ext <<_ACEOF
6476 /* confdefs.h.  */
6477 _ACEOF
6478 cat confdefs.h >>conftest.$ac_ext
6479 cat >>conftest.$ac_ext <<_ACEOF
6480 /* end confdefs.h.  */
6481 $ac_includes_default
6482 #include <$ac_header>
6483 _ACEOF
6484 rm -f conftest.$ac_objext
6485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6486   (eval $ac_compile) 2>conftest.er1
6487   ac_status=$?
6488   grep -v '^ *+' conftest.er1 >conftest.err
6489   rm -f conftest.er1
6490   cat conftest.err >&5
6491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492   (exit $ac_status); } &&
6493          { ac_try='test -z "$ac_c_werror_flag"
6494                          || test ! -s conftest.err'
6495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6496   (eval $ac_try) 2>&5
6497   ac_status=$?
6498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499   (exit $ac_status); }; } &&
6500          { ac_try='test -s conftest.$ac_objext'
6501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6502   (eval $ac_try) 2>&5
6503   ac_status=$?
6504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505   (exit $ac_status); }; }; then
6506   ac_header_compiler=yes
6507 else
6508   echo "$as_me: failed program was:" >&5
6509 sed 's/^/| /' conftest.$ac_ext >&5
6510
6511 ac_header_compiler=no
6512 fi
6513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6514 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6515 echo "${ECHO_T}$ac_header_compiler" >&6
6516
6517 # Is the header present?
6518 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6519 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6520 cat >conftest.$ac_ext <<_ACEOF
6521 /* confdefs.h.  */
6522 _ACEOF
6523 cat confdefs.h >>conftest.$ac_ext
6524 cat >>conftest.$ac_ext <<_ACEOF
6525 /* end confdefs.h.  */
6526 #include <$ac_header>
6527 _ACEOF
6528 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6529   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6530   ac_status=$?
6531   grep -v '^ *+' conftest.er1 >conftest.err
6532   rm -f conftest.er1
6533   cat conftest.err >&5
6534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535   (exit $ac_status); } >/dev/null; then
6536   if test -s conftest.err; then
6537     ac_cpp_err=$ac_c_preproc_warn_flag
6538     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6539   else
6540     ac_cpp_err=
6541   fi
6542 else
6543   ac_cpp_err=yes
6544 fi
6545 if test -z "$ac_cpp_err"; then
6546   ac_header_preproc=yes
6547 else
6548   echo "$as_me: failed program was:" >&5
6549 sed 's/^/| /' conftest.$ac_ext >&5
6550
6551   ac_header_preproc=no
6552 fi
6553 rm -f conftest.err conftest.$ac_ext
6554 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6555 echo "${ECHO_T}$ac_header_preproc" >&6
6556
6557 # So?  What about this header?
6558 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6559   yes:no: )
6560     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6561 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6562     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6563 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6564     ac_header_preproc=yes
6565     ;;
6566   no:yes:* )
6567     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6568 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6569     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6570 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6571     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6572 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6573     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6574 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6575     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6576 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6577     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6578 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6579     (
6580       cat <<\_ASBOX
6581 ## ------------------------------------------------------ ##
6582 ## Report this to the GNU Fortran Runtime Library lists.  ##
6583 ## ------------------------------------------------------ ##
6584 _ASBOX
6585     ) |
6586       sed "s/^/$as_me: WARNING:     /" >&2
6587     ;;
6588 esac
6589 echo "$as_me:$LINENO: checking for $ac_header" >&5
6590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6592   echo $ECHO_N "(cached) $ECHO_C" >&6
6593 else
6594   eval "$as_ac_Header=\$ac_header_preproc"
6595 fi
6596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6597 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6598
6599 fi
6600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6601   cat >>confdefs.h <<_ACEOF
6602 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6603 _ACEOF
6604
6605 fi
6606
6607 done
6608
6609 if test "${ac_cv_header_complex_h+set}" = set; then
6610   echo "$as_me:$LINENO: checking for complex.h" >&5
6611 echo $ECHO_N "checking for complex.h... $ECHO_C" >&6
6612 if test "${ac_cv_header_complex_h+set}" = set; then
6613   echo $ECHO_N "(cached) $ECHO_C" >&6
6614 fi
6615 echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5
6616 echo "${ECHO_T}$ac_cv_header_complex_h" >&6
6617 else
6618   # Is the header compilable?
6619 echo "$as_me:$LINENO: checking complex.h usability" >&5
6620 echo $ECHO_N "checking complex.h usability... $ECHO_C" >&6
6621 cat >conftest.$ac_ext <<_ACEOF
6622 /* confdefs.h.  */
6623 _ACEOF
6624 cat confdefs.h >>conftest.$ac_ext
6625 cat >>conftest.$ac_ext <<_ACEOF
6626 /* end confdefs.h.  */
6627 $ac_includes_default
6628 #include <complex.h>
6629 _ACEOF
6630 rm -f conftest.$ac_objext
6631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6632   (eval $ac_compile) 2>conftest.er1
6633   ac_status=$?
6634   grep -v '^ *+' conftest.er1 >conftest.err
6635   rm -f conftest.er1
6636   cat conftest.err >&5
6637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638   (exit $ac_status); } &&
6639          { ac_try='test -z "$ac_c_werror_flag"
6640                          || test ! -s conftest.err'
6641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6642   (eval $ac_try) 2>&5
6643   ac_status=$?
6644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645   (exit $ac_status); }; } &&
6646          { ac_try='test -s conftest.$ac_objext'
6647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6648   (eval $ac_try) 2>&5
6649   ac_status=$?
6650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651   (exit $ac_status); }; }; then
6652   ac_header_compiler=yes
6653 else
6654   echo "$as_me: failed program was:" >&5
6655 sed 's/^/| /' conftest.$ac_ext >&5
6656
6657 ac_header_compiler=no
6658 fi
6659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6660 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6661 echo "${ECHO_T}$ac_header_compiler" >&6
6662
6663 # Is the header present?
6664 echo "$as_me:$LINENO: checking complex.h presence" >&5
6665 echo $ECHO_N "checking complex.h presence... $ECHO_C" >&6
6666 cat >conftest.$ac_ext <<_ACEOF
6667 /* confdefs.h.  */
6668 _ACEOF
6669 cat confdefs.h >>conftest.$ac_ext
6670 cat >>conftest.$ac_ext <<_ACEOF
6671 /* end confdefs.h.  */
6672 #include <complex.h>
6673 _ACEOF
6674 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6675   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6676   ac_status=$?
6677   grep -v '^ *+' conftest.er1 >conftest.err
6678   rm -f conftest.er1
6679   cat conftest.err >&5
6680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681   (exit $ac_status); } >/dev/null; then
6682   if test -s conftest.err; then
6683     ac_cpp_err=$ac_c_preproc_warn_flag
6684     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6685   else
6686     ac_cpp_err=
6687   fi
6688 else
6689   ac_cpp_err=yes
6690 fi
6691 if test -z "$ac_cpp_err"; then
6692   ac_header_preproc=yes
6693 else
6694   echo "$as_me: failed program was:" >&5
6695 sed 's/^/| /' conftest.$ac_ext >&5
6696
6697   ac_header_preproc=no
6698 fi
6699 rm -f conftest.err conftest.$ac_ext
6700 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6701 echo "${ECHO_T}$ac_header_preproc" >&6
6702
6703 # So?  What about this header?
6704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6705   yes:no: )
6706     { echo "$as_me:$LINENO: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&5
6707 echo "$as_me: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6708     { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the compiler's result" >&5
6709 echo "$as_me: WARNING: complex.h: proceeding with the compiler's result" >&2;}
6710     ac_header_preproc=yes
6711     ;;
6712   no:yes:* )
6713     { echo "$as_me:$LINENO: WARNING: complex.h: present but cannot be compiled" >&5
6714 echo "$as_me: WARNING: complex.h: present but cannot be compiled" >&2;}
6715     { echo "$as_me:$LINENO: WARNING: complex.h:     check for missing prerequisite headers?" >&5
6716 echo "$as_me: WARNING: complex.h:     check for missing prerequisite headers?" >&2;}
6717     { echo "$as_me:$LINENO: WARNING: complex.h: see the Autoconf documentation" >&5
6718 echo "$as_me: WARNING: complex.h: see the Autoconf documentation" >&2;}
6719     { echo "$as_me:$LINENO: WARNING: complex.h:     section \"Present But Cannot Be Compiled\"" >&5
6720 echo "$as_me: WARNING: complex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6721     { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the preprocessor's result" >&5
6722 echo "$as_me: WARNING: complex.h: proceeding with the preprocessor's result" >&2;}
6723     { echo "$as_me:$LINENO: WARNING: complex.h: in the future, the compiler will take precedence" >&5
6724 echo "$as_me: WARNING: complex.h: in the future, the compiler will take precedence" >&2;}
6725     (
6726       cat <<\_ASBOX
6727 ## ------------------------------------------------------ ##
6728 ## Report this to the GNU Fortran Runtime Library lists.  ##
6729 ## ------------------------------------------------------ ##
6730 _ASBOX
6731     ) |
6732       sed "s/^/$as_me: WARNING:     /" >&2
6733     ;;
6734 esac
6735 echo "$as_me:$LINENO: checking for complex.h" >&5
6736 echo $ECHO_N "checking for complex.h... $ECHO_C" >&6
6737 if test "${ac_cv_header_complex_h+set}" = set; then
6738   echo $ECHO_N "(cached) $ECHO_C" >&6
6739 else
6740   ac_cv_header_complex_h=$ac_header_preproc
6741 fi
6742 echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5
6743 echo "${ECHO_T}$ac_cv_header_complex_h" >&6
6744
6745 fi
6746 if test $ac_cv_header_complex_h = yes; then
6747
6748 cat >>confdefs.h <<\_ACEOF
6749 #define HAVE_COMPLEX_H 1
6750 _ACEOF
6751
6752 fi
6753
6754
6755
6756 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6757 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
6758 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6759   echo $ECHO_N "(cached) $ECHO_C" >&6
6760 else
6761   cat >conftest.$ac_ext <<_ACEOF
6762 /* confdefs.h.  */
6763 _ACEOF
6764 cat confdefs.h >>conftest.$ac_ext
6765 cat >>conftest.$ac_ext <<_ACEOF
6766 /* end confdefs.h.  */
6767 $ac_includes_default
6768 int
6769 main ()
6770 {
6771 static struct stat ac_aggr;
6772 if (ac_aggr.st_blksize)
6773 return 0;
6774   ;
6775   return 0;
6776 }
6777 _ACEOF
6778 rm -f conftest.$ac_objext
6779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6780   (eval $ac_compile) 2>conftest.er1
6781   ac_status=$?
6782   grep -v '^ *+' conftest.er1 >conftest.err
6783   rm -f conftest.er1
6784   cat conftest.err >&5
6785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786   (exit $ac_status); } &&
6787          { ac_try='test -z "$ac_c_werror_flag"
6788                          || test ! -s conftest.err'
6789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6790   (eval $ac_try) 2>&5
6791   ac_status=$?
6792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793   (exit $ac_status); }; } &&
6794          { ac_try='test -s conftest.$ac_objext'
6795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6796   (eval $ac_try) 2>&5
6797   ac_status=$?
6798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799   (exit $ac_status); }; }; then
6800   ac_cv_member_struct_stat_st_blksize=yes
6801 else
6802   echo "$as_me: failed program was:" >&5
6803 sed 's/^/| /' conftest.$ac_ext >&5
6804
6805 cat >conftest.$ac_ext <<_ACEOF
6806 /* confdefs.h.  */
6807 _ACEOF
6808 cat confdefs.h >>conftest.$ac_ext
6809 cat >>conftest.$ac_ext <<_ACEOF
6810 /* end confdefs.h.  */
6811 $ac_includes_default
6812 int
6813 main ()
6814 {
6815 static struct stat ac_aggr;
6816 if (sizeof ac_aggr.st_blksize)
6817 return 0;
6818   ;
6819   return 0;
6820 }
6821 _ACEOF
6822 rm -f conftest.$ac_objext
6823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6824   (eval $ac_compile) 2>conftest.er1
6825   ac_status=$?
6826   grep -v '^ *+' conftest.er1 >conftest.err
6827   rm -f conftest.er1
6828   cat conftest.err >&5
6829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830   (exit $ac_status); } &&
6831          { ac_try='test -z "$ac_c_werror_flag"
6832                          || test ! -s conftest.err'
6833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6834   (eval $ac_try) 2>&5
6835   ac_status=$?
6836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837   (exit $ac_status); }; } &&
6838          { ac_try='test -s conftest.$ac_objext'
6839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6840   (eval $ac_try) 2>&5
6841   ac_status=$?
6842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843   (exit $ac_status); }; }; then
6844   ac_cv_member_struct_stat_st_blksize=yes
6845 else
6846   echo "$as_me: failed program was:" >&5
6847 sed 's/^/| /' conftest.$ac_ext >&5
6848
6849 ac_cv_member_struct_stat_st_blksize=no
6850 fi
6851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6852 fi
6853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6854 fi
6855 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
6856 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
6857 if test $ac_cv_member_struct_stat_st_blksize = yes; then
6858
6859 cat >>confdefs.h <<_ACEOF
6860 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6861 _ACEOF
6862
6863
6864 fi
6865
6866 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6867 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
6868 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6869   echo $ECHO_N "(cached) $ECHO_C" >&6
6870 else
6871   cat >conftest.$ac_ext <<_ACEOF
6872 /* confdefs.h.  */
6873 _ACEOF
6874 cat confdefs.h >>conftest.$ac_ext
6875 cat >>conftest.$ac_ext <<_ACEOF
6876 /* end confdefs.h.  */
6877 $ac_includes_default
6878 int
6879 main ()
6880 {
6881 static struct stat ac_aggr;
6882 if (ac_aggr.st_blocks)
6883 return 0;
6884   ;
6885   return 0;
6886 }
6887 _ACEOF
6888 rm -f conftest.$ac_objext
6889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6890   (eval $ac_compile) 2>conftest.er1
6891   ac_status=$?
6892   grep -v '^ *+' conftest.er1 >conftest.err
6893   rm -f conftest.er1
6894   cat conftest.err >&5
6895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896   (exit $ac_status); } &&
6897          { ac_try='test -z "$ac_c_werror_flag"
6898                          || test ! -s conftest.err'
6899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6900   (eval $ac_try) 2>&5
6901   ac_status=$?
6902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903   (exit $ac_status); }; } &&
6904          { ac_try='test -s conftest.$ac_objext'
6905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6906   (eval $ac_try) 2>&5
6907   ac_status=$?
6908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909   (exit $ac_status); }; }; then
6910   ac_cv_member_struct_stat_st_blocks=yes
6911 else
6912   echo "$as_me: failed program was:" >&5
6913 sed 's/^/| /' conftest.$ac_ext >&5
6914
6915 cat >conftest.$ac_ext <<_ACEOF
6916 /* confdefs.h.  */
6917 _ACEOF
6918 cat confdefs.h >>conftest.$ac_ext
6919 cat >>conftest.$ac_ext <<_ACEOF
6920 /* end confdefs.h.  */
6921 $ac_includes_default
6922 int
6923 main ()
6924 {
6925 static struct stat ac_aggr;
6926 if (sizeof ac_aggr.st_blocks)
6927 return 0;
6928   ;
6929   return 0;
6930 }
6931 _ACEOF
6932 rm -f conftest.$ac_objext
6933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6934   (eval $ac_compile) 2>conftest.er1
6935   ac_status=$?
6936   grep -v '^ *+' conftest.er1 >conftest.err
6937   rm -f conftest.er1
6938   cat conftest.err >&5
6939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940   (exit $ac_status); } &&
6941          { ac_try='test -z "$ac_c_werror_flag"
6942                          || test ! -s conftest.err'
6943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6944   (eval $ac_try) 2>&5
6945   ac_status=$?
6946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947   (exit $ac_status); }; } &&
6948          { ac_try='test -s conftest.$ac_objext'
6949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6950   (eval $ac_try) 2>&5
6951   ac_status=$?
6952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953   (exit $ac_status); }; }; then
6954   ac_cv_member_struct_stat_st_blocks=yes
6955 else
6956   echo "$as_me: failed program was:" >&5
6957 sed 's/^/| /' conftest.$ac_ext >&5
6958
6959 ac_cv_member_struct_stat_st_blocks=no
6960 fi
6961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6962 fi
6963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6964 fi
6965 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
6966 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
6967 if test $ac_cv_member_struct_stat_st_blocks = yes; then
6968
6969 cat >>confdefs.h <<_ACEOF
6970 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6971 _ACEOF
6972
6973
6974 fi
6975
6976 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6977 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
6978 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6979   echo $ECHO_N "(cached) $ECHO_C" >&6
6980 else
6981   cat >conftest.$ac_ext <<_ACEOF
6982 /* confdefs.h.  */
6983 _ACEOF
6984 cat confdefs.h >>conftest.$ac_ext
6985 cat >>conftest.$ac_ext <<_ACEOF
6986 /* end confdefs.h.  */
6987 $ac_includes_default
6988 int
6989 main ()
6990 {
6991 static struct stat ac_aggr;
6992 if (ac_aggr.st_rdev)
6993 return 0;
6994   ;
6995   return 0;
6996 }
6997 _ACEOF
6998 rm -f conftest.$ac_objext
6999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7000   (eval $ac_compile) 2>conftest.er1
7001   ac_status=$?
7002   grep -v '^ *+' conftest.er1 >conftest.err
7003   rm -f conftest.er1
7004   cat conftest.err >&5
7005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006   (exit $ac_status); } &&
7007          { ac_try='test -z "$ac_c_werror_flag"
7008                          || test ! -s conftest.err'
7009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7010   (eval $ac_try) 2>&5
7011   ac_status=$?
7012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013   (exit $ac_status); }; } &&
7014          { ac_try='test -s conftest.$ac_objext'
7015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7016   (eval $ac_try) 2>&5
7017   ac_status=$?
7018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019   (exit $ac_status); }; }; then
7020   ac_cv_member_struct_stat_st_rdev=yes
7021 else
7022   echo "$as_me: failed program was:" >&5
7023 sed 's/^/| /' conftest.$ac_ext >&5
7024
7025 cat >conftest.$ac_ext <<_ACEOF
7026 /* confdefs.h.  */
7027 _ACEOF
7028 cat confdefs.h >>conftest.$ac_ext
7029 cat >>conftest.$ac_ext <<_ACEOF
7030 /* end confdefs.h.  */
7031 $ac_includes_default
7032 int
7033 main ()
7034 {
7035 static struct stat ac_aggr;
7036 if (sizeof ac_aggr.st_rdev)
7037 return 0;
7038   ;
7039   return 0;
7040 }
7041 _ACEOF
7042 rm -f conftest.$ac_objext
7043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7044   (eval $ac_compile) 2>conftest.er1
7045   ac_status=$?
7046   grep -v '^ *+' conftest.er1 >conftest.err
7047   rm -f conftest.er1
7048   cat conftest.err >&5
7049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050   (exit $ac_status); } &&
7051          { ac_try='test -z "$ac_c_werror_flag"
7052                          || test ! -s conftest.err'
7053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7054   (eval $ac_try) 2>&5
7055   ac_status=$?
7056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057   (exit $ac_status); }; } &&
7058          { ac_try='test -s conftest.$ac_objext'
7059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7060   (eval $ac_try) 2>&5
7061   ac_status=$?
7062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063   (exit $ac_status); }; }; then
7064   ac_cv_member_struct_stat_st_rdev=yes
7065 else
7066   echo "$as_me: failed program was:" >&5
7067 sed 's/^/| /' conftest.$ac_ext >&5
7068
7069 ac_cv_member_struct_stat_st_rdev=no
7070 fi
7071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7072 fi
7073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7074 fi
7075 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
7076 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
7077 if test $ac_cv_member_struct_stat_st_rdev = yes; then
7078
7079 cat >>confdefs.h <<_ACEOF
7080 #define HAVE_STRUCT_STAT_ST_RDEV 1
7081 _ACEOF
7082
7083
7084 fi
7085
7086
7087 # Check for complex math functions
7088 echo "$as_me:$LINENO: checking for csin in -lm" >&5
7089 echo $ECHO_N "checking for csin in -lm... $ECHO_C" >&6
7090 if test "${ac_cv_lib_m_csin+set}" = set; then
7091   echo $ECHO_N "(cached) $ECHO_C" >&6
7092 else
7093   ac_check_lib_save_LIBS=$LIBS
7094 LIBS="-lm  $LIBS"
7095 cat >conftest.$ac_ext <<_ACEOF
7096 /* confdefs.h.  */
7097 _ACEOF
7098 cat confdefs.h >>conftest.$ac_ext
7099 cat >>conftest.$ac_ext <<_ACEOF
7100 /* end confdefs.h.  */
7101
7102 /* Override any gcc2 internal prototype to avoid an error.  */
7103 #ifdef __cplusplus
7104 extern "C"
7105 #endif
7106 /* We use char because int might match the return type of a gcc2
7107    builtin and then its argument prototype would still apply.  */
7108 char csin ();
7109 int
7110 main ()
7111 {
7112 csin ();
7113   ;
7114   return 0;
7115 }
7116 _ACEOF
7117 rm -f conftest.$ac_objext conftest$ac_exeext
7118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7119   (eval $ac_link) 2>conftest.er1
7120   ac_status=$?
7121   grep -v '^ *+' conftest.er1 >conftest.err
7122   rm -f conftest.er1
7123   cat conftest.err >&5
7124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125   (exit $ac_status); } &&
7126          { ac_try='test -z "$ac_c_werror_flag"
7127                          || test ! -s conftest.err'
7128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7129   (eval $ac_try) 2>&5
7130   ac_status=$?
7131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132   (exit $ac_status); }; } &&
7133          { ac_try='test -s conftest$ac_exeext'
7134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7135   (eval $ac_try) 2>&5
7136   ac_status=$?
7137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138   (exit $ac_status); }; }; then
7139   ac_cv_lib_m_csin=yes
7140 else
7141   echo "$as_me: failed program was:" >&5
7142 sed 's/^/| /' conftest.$ac_ext >&5
7143
7144 ac_cv_lib_m_csin=no
7145 fi
7146 rm -f conftest.err conftest.$ac_objext \
7147       conftest$ac_exeext conftest.$ac_ext
7148 LIBS=$ac_check_lib_save_LIBS
7149 fi
7150 echo "$as_me:$LINENO: result: $ac_cv_lib_m_csin" >&5
7151 echo "${ECHO_T}$ac_cv_lib_m_csin" >&6
7152 if test $ac_cv_lib_m_csin = yes; then
7153   need_math="no"
7154 else
7155   need_math="yes"
7156 fi
7157
7158
7159 # Check for library functions.
7160
7161
7162
7163
7164
7165
7166
7167 for ac_func in getrusage times mkstemp strtof snprintf ftruncate chsize
7168 do
7169 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7170 echo "$as_me:$LINENO: checking for $ac_func" >&5
7171 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7172 if eval "test \"\${$as_ac_var+set}\" = set"; then
7173   echo $ECHO_N "(cached) $ECHO_C" >&6
7174 else
7175   cat >conftest.$ac_ext <<_ACEOF
7176 /* confdefs.h.  */
7177 _ACEOF
7178 cat confdefs.h >>conftest.$ac_ext
7179 cat >>conftest.$ac_ext <<_ACEOF
7180 /* end confdefs.h.  */
7181 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7182    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7183 #define $ac_func innocuous_$ac_func
7184
7185 /* System header to define __stub macros and hopefully few prototypes,
7186     which can conflict with char $ac_func (); below.
7187     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7188     <limits.h> exists even on freestanding compilers.  */
7189
7190 #ifdef __STDC__
7191 # include <limits.h>
7192 #else
7193 # include <assert.h>
7194 #endif
7195
7196 #undef $ac_func
7197
7198 /* Override any gcc2 internal prototype to avoid an error.  */
7199 #ifdef __cplusplus
7200 extern "C"
7201 {
7202 #endif
7203 /* We use char because int might match the return type of a gcc2
7204    builtin and then its argument prototype would still apply.  */
7205 char $ac_func ();
7206 /* The GNU C library defines this for functions which it implements
7207     to always fail with ENOSYS.  Some functions are actually named
7208     something starting with __ and the normal name is an alias.  */
7209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7210 choke me
7211 #else
7212 char (*f) () = $ac_func;
7213 #endif
7214 #ifdef __cplusplus
7215 }
7216 #endif
7217
7218 int
7219 main ()
7220 {
7221 return f != $ac_func;
7222   ;
7223   return 0;
7224 }
7225 _ACEOF
7226 rm -f conftest.$ac_objext conftest$ac_exeext
7227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7228   (eval $ac_link) 2>conftest.er1
7229   ac_status=$?
7230   grep -v '^ *+' conftest.er1 >conftest.err
7231   rm -f conftest.er1
7232   cat conftest.err >&5
7233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234   (exit $ac_status); } &&
7235          { ac_try='test -z "$ac_c_werror_flag"
7236                          || test ! -s conftest.err'
7237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7238   (eval $ac_try) 2>&5
7239   ac_status=$?
7240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241   (exit $ac_status); }; } &&
7242          { ac_try='test -s conftest$ac_exeext'
7243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7244   (eval $ac_try) 2>&5
7245   ac_status=$?
7246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247   (exit $ac_status); }; }; then
7248   eval "$as_ac_var=yes"
7249 else
7250   echo "$as_me: failed program was:" >&5
7251 sed 's/^/| /' conftest.$ac_ext >&5
7252
7253 eval "$as_ac_var=no"
7254 fi
7255 rm -f conftest.err conftest.$ac_objext \
7256       conftest$ac_exeext conftest.$ac_ext
7257 fi
7258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7259 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7260 if test `eval echo '${'$as_ac_var'}'` = yes; then
7261   cat >>confdefs.h <<_ACEOF
7262 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7263 _ACEOF
7264
7265 fi
7266 done
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276 for ac_func in chdir strerror getlogin gethostname kill link symlink perror
7277 do
7278 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7279 echo "$as_me:$LINENO: checking for $ac_func" >&5
7280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7281 if eval "test \"\${$as_ac_var+set}\" = set"; then
7282   echo $ECHO_N "(cached) $ECHO_C" >&6
7283 else
7284   cat >conftest.$ac_ext <<_ACEOF
7285 /* confdefs.h.  */
7286 _ACEOF
7287 cat confdefs.h >>conftest.$ac_ext
7288 cat >>conftest.$ac_ext <<_ACEOF
7289 /* end confdefs.h.  */
7290 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7291    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7292 #define $ac_func innocuous_$ac_func
7293
7294 /* System header to define __stub macros and hopefully few prototypes,
7295     which can conflict with char $ac_func (); below.
7296     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7297     <limits.h> exists even on freestanding compilers.  */
7298
7299 #ifdef __STDC__
7300 # include <limits.h>
7301 #else
7302 # include <assert.h>
7303 #endif
7304
7305 #undef $ac_func
7306
7307 /* Override any gcc2 internal prototype to avoid an error.  */
7308 #ifdef __cplusplus
7309 extern "C"
7310 {
7311 #endif
7312 /* We use char because int might match the return type of a gcc2
7313    builtin and then its argument prototype would still apply.  */
7314 char $ac_func ();
7315 /* The GNU C library defines this for functions which it implements
7316     to always fail with ENOSYS.  Some functions are actually named
7317     something starting with __ and the normal name is an alias.  */
7318 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7319 choke me
7320 #else
7321 char (*f) () = $ac_func;
7322 #endif
7323 #ifdef __cplusplus
7324 }
7325 #endif
7326
7327 int
7328 main ()
7329 {
7330 return f != $ac_func;
7331   ;
7332   return 0;
7333 }
7334 _ACEOF
7335 rm -f conftest.$ac_objext conftest$ac_exeext
7336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7337   (eval $ac_link) 2>conftest.er1
7338   ac_status=$?
7339   grep -v '^ *+' conftest.er1 >conftest.err
7340   rm -f conftest.er1
7341   cat conftest.err >&5
7342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343   (exit $ac_status); } &&
7344          { ac_try='test -z "$ac_c_werror_flag"
7345                          || test ! -s conftest.err'
7346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7347   (eval $ac_try) 2>&5
7348   ac_status=$?
7349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350   (exit $ac_status); }; } &&
7351          { ac_try='test -s conftest$ac_exeext'
7352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7353   (eval $ac_try) 2>&5
7354   ac_status=$?
7355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356   (exit $ac_status); }; }; then
7357   eval "$as_ac_var=yes"
7358 else
7359   echo "$as_me: failed program was:" >&5
7360 sed 's/^/| /' conftest.$ac_ext >&5
7361
7362 eval "$as_ac_var=no"
7363 fi
7364 rm -f conftest.err conftest.$ac_objext \
7365       conftest$ac_exeext conftest.$ac_ext
7366 fi
7367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7368 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7369 if test `eval echo '${'$as_ac_var'}'` = yes; then
7370   cat >>confdefs.h <<_ACEOF
7371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7372 _ACEOF
7373
7374 fi
7375 done
7376
7377
7378
7379 for ac_func in sleep time
7380 do
7381 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7382 echo "$as_me:$LINENO: checking for $ac_func" >&5
7383 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7384 if eval "test \"\${$as_ac_var+set}\" = set"; then
7385   echo $ECHO_N "(cached) $ECHO_C" >&6
7386 else
7387   cat >conftest.$ac_ext <<_ACEOF
7388 /* confdefs.h.  */
7389 _ACEOF
7390 cat confdefs.h >>conftest.$ac_ext
7391 cat >>conftest.$ac_ext <<_ACEOF
7392 /* end confdefs.h.  */
7393 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7394    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7395 #define $ac_func innocuous_$ac_func
7396
7397 /* System header to define __stub macros and hopefully few prototypes,
7398     which can conflict with char $ac_func (); below.
7399     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7400     <limits.h> exists even on freestanding compilers.  */
7401
7402 #ifdef __STDC__
7403 # include <limits.h>
7404 #else
7405 # include <assert.h>
7406 #endif
7407
7408 #undef $ac_func
7409
7410 /* Override any gcc2 internal prototype to avoid an error.  */
7411 #ifdef __cplusplus
7412 extern "C"
7413 {
7414 #endif
7415 /* We use char because int might match the return type of a gcc2
7416    builtin and then its argument prototype would still apply.  */
7417 char $ac_func ();
7418 /* The GNU C library defines this for functions which it implements
7419     to always fail with ENOSYS.  Some functions are actually named
7420     something starting with __ and the normal name is an alias.  */
7421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7422 choke me
7423 #else
7424 char (*f) () = $ac_func;
7425 #endif
7426 #ifdef __cplusplus
7427 }
7428 #endif
7429
7430 int
7431 main ()
7432 {
7433 return f != $ac_func;
7434   ;
7435   return 0;
7436 }
7437 _ACEOF
7438 rm -f conftest.$ac_objext conftest$ac_exeext
7439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7440   (eval $ac_link) 2>conftest.er1
7441   ac_status=$?
7442   grep -v '^ *+' conftest.er1 >conftest.err
7443   rm -f conftest.er1
7444   cat conftest.err >&5
7445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446   (exit $ac_status); } &&
7447          { ac_try='test -z "$ac_c_werror_flag"
7448                          || test ! -s conftest.err'
7449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7450   (eval $ac_try) 2>&5
7451   ac_status=$?
7452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453   (exit $ac_status); }; } &&
7454          { ac_try='test -s conftest$ac_exeext'
7455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7456   (eval $ac_try) 2>&5
7457   ac_status=$?
7458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459   (exit $ac_status); }; }; then
7460   eval "$as_ac_var=yes"
7461 else
7462   echo "$as_me: failed program was:" >&5
7463 sed 's/^/| /' conftest.$ac_ext >&5
7464
7465 eval "$as_ac_var=no"
7466 fi
7467 rm -f conftest.err conftest.$ac_objext \
7468       conftest$ac_exeext conftest.$ac_ext
7469 fi
7470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7471 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7472 if test `eval echo '${'$as_ac_var'}'` = yes; then
7473   cat >>confdefs.h <<_ACEOF
7474 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7475 _ACEOF
7476
7477 fi
7478 done
7479
7480
7481 # Check libc for getgid, getpid, getuid
7482 echo "$as_me:$LINENO: checking for getgid in -lc" >&5
7483 echo $ECHO_N "checking for getgid in -lc... $ECHO_C" >&6
7484 if test "${ac_cv_lib_c_getgid+set}" = set; then
7485   echo $ECHO_N "(cached) $ECHO_C" >&6
7486 else
7487   ac_check_lib_save_LIBS=$LIBS
7488 LIBS="-lc  $LIBS"
7489 cat >conftest.$ac_ext <<_ACEOF
7490 /* confdefs.h.  */
7491 _ACEOF
7492 cat confdefs.h >>conftest.$ac_ext
7493 cat >>conftest.$ac_ext <<_ACEOF
7494 /* end confdefs.h.  */
7495
7496 /* Override any gcc2 internal prototype to avoid an error.  */
7497 #ifdef __cplusplus
7498 extern "C"
7499 #endif
7500 /* We use char because int might match the return type of a gcc2
7501    builtin and then its argument prototype would still apply.  */
7502 char getgid ();
7503 int
7504 main ()
7505 {
7506 getgid ();
7507   ;
7508   return 0;
7509 }
7510 _ACEOF
7511 rm -f conftest.$ac_objext conftest$ac_exeext
7512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7513   (eval $ac_link) 2>conftest.er1
7514   ac_status=$?
7515   grep -v '^ *+' conftest.er1 >conftest.err
7516   rm -f conftest.er1
7517   cat conftest.err >&5
7518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519   (exit $ac_status); } &&
7520          { ac_try='test -z "$ac_c_werror_flag"
7521                          || test ! -s conftest.err'
7522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7523   (eval $ac_try) 2>&5
7524   ac_status=$?
7525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526   (exit $ac_status); }; } &&
7527          { ac_try='test -s conftest$ac_exeext'
7528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7529   (eval $ac_try) 2>&5
7530   ac_status=$?
7531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532   (exit $ac_status); }; }; then
7533   ac_cv_lib_c_getgid=yes
7534 else
7535   echo "$as_me: failed program was:" >&5
7536 sed 's/^/| /' conftest.$ac_ext >&5
7537
7538 ac_cv_lib_c_getgid=no
7539 fi
7540 rm -f conftest.err conftest.$ac_objext \
7541       conftest$ac_exeext conftest.$ac_ext
7542 LIBS=$ac_check_lib_save_LIBS
7543 fi
7544 echo "$as_me:$LINENO: result: $ac_cv_lib_c_getgid" >&5
7545 echo "${ECHO_T}$ac_cv_lib_c_getgid" >&6
7546 if test $ac_cv_lib_c_getgid = yes; then
7547
7548 cat >>confdefs.h <<\_ACEOF
7549 #define HAVE_GETGID 1
7550 _ACEOF
7551
7552 fi
7553
7554 echo "$as_me:$LINENO: checking for getpid in -lc" >&5
7555 echo $ECHO_N "checking for getpid in -lc... $ECHO_C" >&6
7556 if test "${ac_cv_lib_c_getpid+set}" = set; then
7557   echo $ECHO_N "(cached) $ECHO_C" >&6
7558 else
7559   ac_check_lib_save_LIBS=$LIBS
7560 LIBS="-lc  $LIBS"
7561 cat >conftest.$ac_ext <<_ACEOF
7562 /* confdefs.h.  */
7563 _ACEOF
7564 cat confdefs.h >>conftest.$ac_ext
7565 cat >>conftest.$ac_ext <<_ACEOF
7566 /* end confdefs.h.  */
7567
7568 /* Override any gcc2 internal prototype to avoid an error.  */
7569 #ifdef __cplusplus
7570 extern "C"
7571 #endif
7572 /* We use char because int might match the return type of a gcc2
7573    builtin and then its argument prototype would still apply.  */
7574 char getpid ();
7575 int
7576 main ()
7577 {
7578 getpid ();
7579   ;
7580   return 0;
7581 }
7582 _ACEOF
7583 rm -f conftest.$ac_objext conftest$ac_exeext
7584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7585   (eval $ac_link) 2>conftest.er1
7586   ac_status=$?
7587   grep -v '^ *+' conftest.er1 >conftest.err
7588   rm -f conftest.er1
7589   cat conftest.err >&5
7590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591   (exit $ac_status); } &&
7592          { ac_try='test -z "$ac_c_werror_flag"
7593                          || test ! -s conftest.err'
7594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7595   (eval $ac_try) 2>&5
7596   ac_status=$?
7597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598   (exit $ac_status); }; } &&
7599          { ac_try='test -s conftest$ac_exeext'
7600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7601   (eval $ac_try) 2>&5
7602   ac_status=$?
7603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604   (exit $ac_status); }; }; then
7605   ac_cv_lib_c_getpid=yes
7606 else
7607   echo "$as_me: failed program was:" >&5
7608 sed 's/^/| /' conftest.$ac_ext >&5
7609
7610 ac_cv_lib_c_getpid=no
7611 fi
7612 rm -f conftest.err conftest.$ac_objext \
7613       conftest$ac_exeext conftest.$ac_ext
7614 LIBS=$ac_check_lib_save_LIBS
7615 fi
7616 echo "$as_me:$LINENO: result: $ac_cv_lib_c_getpid" >&5
7617 echo "${ECHO_T}$ac_cv_lib_c_getpid" >&6
7618 if test $ac_cv_lib_c_getpid = yes; then
7619
7620 cat >>confdefs.h <<\_ACEOF
7621 #define HAVE_GETPID 1
7622 _ACEOF
7623
7624 fi
7625
7626 echo "$as_me:$LINENO: checking for getuid in -lc" >&5
7627 echo $ECHO_N "checking for getuid in -lc... $ECHO_C" >&6
7628 if test "${ac_cv_lib_c_getuid+set}" = set; then
7629   echo $ECHO_N "(cached) $ECHO_C" >&6
7630 else
7631   ac_check_lib_save_LIBS=$LIBS
7632 LIBS="-lc  $LIBS"
7633 cat >conftest.$ac_ext <<_ACEOF
7634 /* confdefs.h.  */
7635 _ACEOF
7636 cat confdefs.h >>conftest.$ac_ext
7637 cat >>conftest.$ac_ext <<_ACEOF
7638 /* end confdefs.h.  */
7639
7640 /* Override any gcc2 internal prototype to avoid an error.  */
7641 #ifdef __cplusplus
7642 extern "C"
7643 #endif
7644 /* We use char because int might match the return type of a gcc2
7645    builtin and then its argument prototype would still apply.  */
7646 char getuid ();
7647 int
7648 main ()
7649 {
7650 getuid ();
7651   ;
7652   return 0;
7653 }
7654 _ACEOF
7655 rm -f conftest.$ac_objext conftest$ac_exeext
7656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7657   (eval $ac_link) 2>conftest.er1
7658   ac_status=$?
7659   grep -v '^ *+' conftest.er1 >conftest.err
7660   rm -f conftest.er1
7661   cat conftest.err >&5
7662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663   (exit $ac_status); } &&
7664          { ac_try='test -z "$ac_c_werror_flag"
7665                          || test ! -s conftest.err'
7666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7667   (eval $ac_try) 2>&5
7668   ac_status=$?
7669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670   (exit $ac_status); }; } &&
7671          { ac_try='test -s conftest$ac_exeext'
7672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7673   (eval $ac_try) 2>&5
7674   ac_status=$?
7675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676   (exit $ac_status); }; }; then
7677   ac_cv_lib_c_getuid=yes
7678 else
7679   echo "$as_me: failed program was:" >&5
7680 sed 's/^/| /' conftest.$ac_ext >&5
7681
7682 ac_cv_lib_c_getuid=no
7683 fi
7684 rm -f conftest.err conftest.$ac_objext \
7685       conftest$ac_exeext conftest.$ac_ext
7686 LIBS=$ac_check_lib_save_LIBS
7687 fi
7688 echo "$as_me:$LINENO: result: $ac_cv_lib_c_getuid" >&5
7689 echo "${ECHO_T}$ac_cv_lib_c_getuid" >&6
7690 if test $ac_cv_lib_c_getuid = yes; then
7691
7692 cat >>confdefs.h <<\_ACEOF
7693 #define HAVE_GETUID 1
7694 _ACEOF
7695
7696 fi
7697
7698
7699 # Check for C99 (and other IEEE) math functions
7700 # ??? This list seems awful long. Is there a better way to test for these?
7701 echo "$as_me:$LINENO: checking for acosf in -lm" >&5
7702 echo $ECHO_N "checking for acosf in -lm... $ECHO_C" >&6
7703 if test "${ac_cv_lib_m_acosf+set}" = set; then
7704   echo $ECHO_N "(cached) $ECHO_C" >&6
7705 else
7706   ac_check_lib_save_LIBS=$LIBS
7707 LIBS="-lm  $LIBS"
7708 cat >conftest.$ac_ext <<_ACEOF
7709 /* confdefs.h.  */
7710 _ACEOF
7711 cat confdefs.h >>conftest.$ac_ext
7712 cat >>conftest.$ac_ext <<_ACEOF
7713 /* end confdefs.h.  */
7714
7715 /* Override any gcc2 internal prototype to avoid an error.  */
7716 #ifdef __cplusplus
7717 extern "C"
7718 #endif
7719 /* We use char because int might match the return type of a gcc2
7720    builtin and then its argument prototype would still apply.  */
7721 char acosf ();
7722 int
7723 main ()
7724 {
7725 acosf ();
7726   ;
7727   return 0;
7728 }
7729 _ACEOF
7730 rm -f conftest.$ac_objext conftest$ac_exeext
7731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7732   (eval $ac_link) 2>conftest.er1
7733   ac_status=$?
7734   grep -v '^ *+' conftest.er1 >conftest.err
7735   rm -f conftest.er1
7736   cat conftest.err >&5
7737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738   (exit $ac_status); } &&
7739          { ac_try='test -z "$ac_c_werror_flag"
7740                          || test ! -s conftest.err'
7741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7742   (eval $ac_try) 2>&5
7743   ac_status=$?
7744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745   (exit $ac_status); }; } &&
7746          { ac_try='test -s conftest$ac_exeext'
7747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7748   (eval $ac_try) 2>&5
7749   ac_status=$?
7750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751   (exit $ac_status); }; }; then
7752   ac_cv_lib_m_acosf=yes
7753 else
7754   echo "$as_me: failed program was:" >&5
7755 sed 's/^/| /' conftest.$ac_ext >&5
7756
7757 ac_cv_lib_m_acosf=no
7758 fi
7759 rm -f conftest.err conftest.$ac_objext \
7760       conftest$ac_exeext conftest.$ac_ext
7761 LIBS=$ac_check_lib_save_LIBS
7762 fi
7763 echo "$as_me:$LINENO: result: $ac_cv_lib_m_acosf" >&5
7764 echo "${ECHO_T}$ac_cv_lib_m_acosf" >&6
7765 if test $ac_cv_lib_m_acosf = yes; then
7766
7767 cat >>confdefs.h <<\_ACEOF
7768 #define HAVE_ACOSF 1
7769 _ACEOF
7770
7771 fi
7772
7773 echo "$as_me:$LINENO: checking for asinf in -lm" >&5
7774 echo $ECHO_N "checking for asinf in -lm... $ECHO_C" >&6
7775 if test "${ac_cv_lib_m_asinf+set}" = set; then
7776   echo $ECHO_N "(cached) $ECHO_C" >&6
7777 else
7778   ac_check_lib_save_LIBS=$LIBS
7779 LIBS="-lm  $LIBS"
7780 cat >conftest.$ac_ext <<_ACEOF
7781 /* confdefs.h.  */
7782 _ACEOF
7783 cat confdefs.h >>conftest.$ac_ext
7784 cat >>conftest.$ac_ext <<_ACEOF
7785 /* end confdefs.h.  */
7786
7787 /* Override any gcc2 internal prototype to avoid an error.  */
7788 #ifdef __cplusplus
7789 extern "C"
7790 #endif
7791 /* We use char because int might match the return type of a gcc2
7792    builtin and then its argument prototype would still apply.  */
7793 char asinf ();
7794 int
7795 main ()
7796 {
7797 asinf ();
7798   ;
7799   return 0;
7800 }
7801 _ACEOF
7802 rm -f conftest.$ac_objext conftest$ac_exeext
7803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7804   (eval $ac_link) 2>conftest.er1
7805   ac_status=$?
7806   grep -v '^ *+' conftest.er1 >conftest.err
7807   rm -f conftest.er1
7808   cat conftest.err >&5
7809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810   (exit $ac_status); } &&
7811          { ac_try='test -z "$ac_c_werror_flag"
7812                          || test ! -s conftest.err'
7813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7814   (eval $ac_try) 2>&5
7815   ac_status=$?
7816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817   (exit $ac_status); }; } &&
7818          { ac_try='test -s conftest$ac_exeext'
7819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7820   (eval $ac_try) 2>&5
7821   ac_status=$?
7822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823   (exit $ac_status); }; }; then
7824   ac_cv_lib_m_asinf=yes
7825 else
7826   echo "$as_me: failed program was:" >&5
7827 sed 's/^/| /' conftest.$ac_ext >&5
7828
7829 ac_cv_lib_m_asinf=no
7830 fi
7831 rm -f conftest.err conftest.$ac_objext \
7832       conftest$ac_exeext conftest.$ac_ext
7833 LIBS=$ac_check_lib_save_LIBS
7834 fi
7835 echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinf" >&5
7836 echo "${ECHO_T}$ac_cv_lib_m_asinf" >&6
7837 if test $ac_cv_lib_m_asinf = yes; then
7838
7839 cat >>confdefs.h <<\_ACEOF
7840 #define HAVE_ASINF 1
7841 _ACEOF
7842
7843 fi
7844
7845 echo "$as_me:$LINENO: checking for atan2f in -lm" >&5
7846 echo $ECHO_N "checking for atan2f in -lm... $ECHO_C" >&6
7847 if test "${ac_cv_lib_m_atan2f+set}" = set; then
7848   echo $ECHO_N "(cached) $ECHO_C" >&6
7849 else
7850   ac_check_lib_save_LIBS=$LIBS
7851 LIBS="-lm  $LIBS"
7852 cat >conftest.$ac_ext <<_ACEOF
7853 /* confdefs.h.  */
7854 _ACEOF
7855 cat confdefs.h >>conftest.$ac_ext
7856 cat >>conftest.$ac_ext <<_ACEOF
7857 /* end confdefs.h.  */
7858
7859 /* Override any gcc2 internal prototype to avoid an error.  */
7860 #ifdef __cplusplus
7861 extern "C"
7862 #endif
7863 /* We use char because int might match the return type of a gcc2
7864    builtin and then its argument prototype would still apply.  */
7865 char atan2f ();
7866 int
7867 main ()
7868 {
7869 atan2f ();
7870   ;
7871   return 0;
7872 }
7873 _ACEOF
7874 rm -f conftest.$ac_objext conftest$ac_exeext
7875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7876   (eval $ac_link) 2>conftest.er1
7877   ac_status=$?
7878   grep -v '^ *+' conftest.er1 >conftest.err
7879   rm -f conftest.er1
7880   cat conftest.err >&5
7881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882   (exit $ac_status); } &&
7883          { ac_try='test -z "$ac_c_werror_flag"
7884                          || test ! -s conftest.err'
7885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7886   (eval $ac_try) 2>&5
7887   ac_status=$?
7888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889   (exit $ac_status); }; } &&
7890          { ac_try='test -s conftest$ac_exeext'
7891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7892   (eval $ac_try) 2>&5
7893   ac_status=$?
7894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895   (exit $ac_status); }; }; then
7896   ac_cv_lib_m_atan2f=yes
7897 else
7898   echo "$as_me: failed program was:" >&5
7899 sed 's/^/| /' conftest.$ac_ext >&5
7900
7901 ac_cv_lib_m_atan2f=no
7902 fi
7903 rm -f conftest.err conftest.$ac_objext \
7904       conftest$ac_exeext conftest.$ac_ext
7905 LIBS=$ac_check_lib_save_LIBS
7906 fi
7907 echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan2f" >&5
7908 echo "${ECHO_T}$ac_cv_lib_m_atan2f" >&6
7909 if test $ac_cv_lib_m_atan2f = yes; then
7910
7911 cat >>confdefs.h <<\_ACEOF
7912 #define HAVE_ATAN2F 1
7913 _ACEOF
7914
7915 fi
7916
7917 echo "$as_me:$LINENO: checking for atanf in -lm" >&5
7918 echo $ECHO_N "checking for atanf in -lm... $ECHO_C" >&6
7919 if test "${ac_cv_lib_m_atanf+set}" = set; then
7920   echo $ECHO_N "(cached) $ECHO_C" >&6
7921 else
7922   ac_check_lib_save_LIBS=$LIBS
7923 LIBS="-lm  $LIBS"
7924 cat >conftest.$ac_ext <<_ACEOF
7925 /* confdefs.h.  */
7926 _ACEOF
7927 cat confdefs.h >>conftest.$ac_ext
7928 cat >>conftest.$ac_ext <<_ACEOF
7929 /* end confdefs.h.  */
7930
7931 /* Override any gcc2 internal prototype to avoid an error.  */
7932 #ifdef __cplusplus
7933 extern "C"
7934 #endif
7935 /* We use char because int might match the return type of a gcc2
7936    builtin and then its argument prototype would still apply.  */
7937 char atanf ();
7938 int
7939 main ()
7940 {
7941 atanf ();
7942   ;
7943   return 0;
7944 }
7945 _ACEOF
7946 rm -f conftest.$ac_objext conftest$ac_exeext
7947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7948   (eval $ac_link) 2>conftest.er1
7949   ac_status=$?
7950   grep -v '^ *+' conftest.er1 >conftest.err
7951   rm -f conftest.er1
7952   cat conftest.err >&5
7953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954   (exit $ac_status); } &&
7955          { ac_try='test -z "$ac_c_werror_flag"
7956                          || test ! -s conftest.err'
7957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7958   (eval $ac_try) 2>&5
7959   ac_status=$?
7960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961   (exit $ac_status); }; } &&
7962          { ac_try='test -s conftest$ac_exeext'
7963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7964   (eval $ac_try) 2>&5
7965   ac_status=$?
7966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967   (exit $ac_status); }; }; then
7968   ac_cv_lib_m_atanf=yes
7969 else
7970   echo "$as_me: failed program was:" >&5
7971 sed 's/^/| /' conftest.$ac_ext >&5
7972
7973 ac_cv_lib_m_atanf=no
7974 fi
7975 rm -f conftest.err conftest.$ac_objext \
7976       conftest$ac_exeext conftest.$ac_ext
7977 LIBS=$ac_check_lib_save_LIBS
7978 fi
7979 echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanf" >&5
7980 echo "${ECHO_T}$ac_cv_lib_m_atanf" >&6
7981 if test $ac_cv_lib_m_atanf = yes; then
7982
7983 cat >>confdefs.h <<\_ACEOF
7984 #define HAVE_ATANF 1
7985 _ACEOF
7986
7987 fi
7988
7989 echo "$as_me:$LINENO: checking for ceilf in -lm" >&5
7990 echo $ECHO_N "checking for ceilf in -lm... $ECHO_C" >&6
7991 if test "${ac_cv_lib_m_ceilf+set}" = set; then
7992   echo $ECHO_N "(cached) $ECHO_C" >&6
7993 else
7994   ac_check_lib_save_LIBS=$LIBS
7995 LIBS="-lm  $LIBS"
7996 cat >conftest.$ac_ext <<_ACEOF
7997 /* confdefs.h.  */
7998 _ACEOF
7999 cat confdefs.h >>conftest.$ac_ext
8000 cat >>conftest.$ac_ext <<_ACEOF
8001 /* end confdefs.h.  */
8002
8003 /* Override any gcc2 internal prototype to avoid an error.  */
8004 #ifdef __cplusplus
8005 extern "C"
8006 #endif
8007 /* We use char because int might match the return type of a gcc2
8008    builtin and then its argument prototype would still apply.  */
8009 char ceilf ();
8010 int
8011 main ()
8012 {
8013 ceilf ();
8014   ;
8015   return 0;
8016 }
8017 _ACEOF
8018 rm -f conftest.$ac_objext conftest$ac_exeext
8019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8020   (eval $ac_link) 2>conftest.er1
8021   ac_status=$?
8022   grep -v '^ *+' conftest.er1 >conftest.err
8023   rm -f conftest.er1
8024   cat conftest.err >&5
8025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026   (exit $ac_status); } &&
8027          { ac_try='test -z "$ac_c_werror_flag"
8028                          || test ! -s conftest.err'
8029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8030   (eval $ac_try) 2>&5
8031   ac_status=$?
8032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033   (exit $ac_status); }; } &&
8034          { ac_try='test -s conftest$ac_exeext'
8035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8036   (eval $ac_try) 2>&5
8037   ac_status=$?
8038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039   (exit $ac_status); }; }; then
8040   ac_cv_lib_m_ceilf=yes
8041 else
8042   echo "$as_me: failed program was:" >&5
8043 sed 's/^/| /' conftest.$ac_ext >&5
8044
8045 ac_cv_lib_m_ceilf=no
8046 fi
8047 rm -f conftest.err conftest.$ac_objext \
8048       conftest$ac_exeext conftest.$ac_ext
8049 LIBS=$ac_check_lib_save_LIBS
8050 fi
8051 echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceilf" >&5
8052 echo "${ECHO_T}$ac_cv_lib_m_ceilf" >&6
8053 if test $ac_cv_lib_m_ceilf = yes; then
8054
8055 cat >>confdefs.h <<\_ACEOF
8056 #define HAVE_CEILF 1
8057 _ACEOF
8058
8059 fi
8060
8061 echo "$as_me:$LINENO: checking for copysignf in -lm" >&5
8062 echo $ECHO_N "checking for copysignf in -lm... $ECHO_C" >&6
8063 if test "${ac_cv_lib_m_copysignf+set}" = set; then
8064   echo $ECHO_N "(cached) $ECHO_C" >&6
8065 else
8066   ac_check_lib_save_LIBS=$LIBS
8067 LIBS="-lm  $LIBS"
8068 cat >conftest.$ac_ext <<_ACEOF
8069 /* confdefs.h.  */
8070 _ACEOF
8071 cat confdefs.h >>conftest.$ac_ext
8072 cat >>conftest.$ac_ext <<_ACEOF
8073 /* end confdefs.h.  */
8074
8075 /* Override any gcc2 internal prototype to avoid an error.  */
8076 #ifdef __cplusplus
8077 extern "C"
8078 #endif
8079 /* We use char because int might match the return type of a gcc2
8080    builtin and then its argument prototype would still apply.  */
8081 char copysignf ();
8082 int
8083 main ()
8084 {
8085 copysignf ();
8086   ;
8087   return 0;
8088 }
8089 _ACEOF
8090 rm -f conftest.$ac_objext conftest$ac_exeext
8091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8092   (eval $ac_link) 2>conftest.er1
8093   ac_status=$?
8094   grep -v '^ *+' conftest.er1 >conftest.err
8095   rm -f conftest.er1
8096   cat conftest.err >&5
8097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098   (exit $ac_status); } &&
8099          { ac_try='test -z "$ac_c_werror_flag"
8100                          || test ! -s conftest.err'
8101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8102   (eval $ac_try) 2>&5
8103   ac_status=$?
8104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105   (exit $ac_status); }; } &&
8106          { ac_try='test -s conftest$ac_exeext'
8107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8108   (eval $ac_try) 2>&5
8109   ac_status=$?
8110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111   (exit $ac_status); }; }; then
8112   ac_cv_lib_m_copysignf=yes
8113 else
8114   echo "$as_me: failed program was:" >&5
8115 sed 's/^/| /' conftest.$ac_ext >&5
8116
8117 ac_cv_lib_m_copysignf=no
8118 fi
8119 rm -f conftest.err conftest.$ac_objext \
8120       conftest$ac_exeext conftest.$ac_ext
8121 LIBS=$ac_check_lib_save_LIBS
8122 fi
8123 echo "$as_me:$LINENO: result: $ac_cv_lib_m_copysignf" >&5
8124 echo "${ECHO_T}$ac_cv_lib_m_copysignf" >&6
8125 if test $ac_cv_lib_m_copysignf = yes; then
8126
8127 cat >>confdefs.h <<\_ACEOF
8128 #define HAVE_COPYSIGNF 1
8129 _ACEOF
8130
8131 fi
8132
8133 echo "$as_me:$LINENO: checking for cosf in -lm" >&5
8134 echo $ECHO_N "checking for cosf in -lm... $ECHO_C" >&6
8135 if test "${ac_cv_lib_m_cosf+set}" = set; then
8136   echo $ECHO_N "(cached) $ECHO_C" >&6
8137 else
8138   ac_check_lib_save_LIBS=$LIBS
8139 LIBS="-lm  $LIBS"
8140 cat >conftest.$ac_ext <<_ACEOF
8141 /* confdefs.h.  */
8142 _ACEOF
8143 cat confdefs.h >>conftest.$ac_ext
8144 cat >>conftest.$ac_ext <<_ACEOF
8145 /* end confdefs.h.  */
8146
8147 /* Override any gcc2 internal prototype to avoid an error.  */
8148 #ifdef __cplusplus
8149 extern "C"
8150 #endif
8151 /* We use char because int might match the return type of a gcc2
8152    builtin and then its argument prototype would still apply.  */
8153 char cosf ();
8154 int
8155 main ()
8156 {
8157 cosf ();
8158   ;
8159   return 0;
8160 }
8161 _ACEOF
8162 rm -f conftest.$ac_objext conftest$ac_exeext
8163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8164   (eval $ac_link) 2>conftest.er1
8165   ac_status=$?
8166   grep -v '^ *+' conftest.er1 >conftest.err
8167   rm -f conftest.er1
8168   cat conftest.err >&5
8169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170   (exit $ac_status); } &&
8171          { ac_try='test -z "$ac_c_werror_flag"
8172                          || test ! -s conftest.err'
8173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8174   (eval $ac_try) 2>&5
8175   ac_status=$?
8176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177   (exit $ac_status); }; } &&
8178          { ac_try='test -s conftest$ac_exeext'
8179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8180   (eval $ac_try) 2>&5
8181   ac_status=$?
8182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183   (exit $ac_status); }; }; then
8184   ac_cv_lib_m_cosf=yes
8185 else
8186   echo "$as_me: failed program was:" >&5
8187 sed 's/^/| /' conftest.$ac_ext >&5
8188
8189 ac_cv_lib_m_cosf=no
8190 fi
8191 rm -f conftest.err conftest.$ac_objext \
8192       conftest$ac_exeext conftest.$ac_ext
8193 LIBS=$ac_check_lib_save_LIBS
8194 fi
8195 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cosf" >&5
8196 echo "${ECHO_T}$ac_cv_lib_m_cosf" >&6
8197 if test $ac_cv_lib_m_cosf = yes; then
8198
8199 cat >>confdefs.h <<\_ACEOF
8200 #define HAVE_COSF 1
8201 _ACEOF
8202
8203 fi
8204
8205 echo "$as_me:$LINENO: checking for coshf in -lm" >&5
8206 echo $ECHO_N "checking for coshf in -lm... $ECHO_C" >&6
8207 if test "${ac_cv_lib_m_coshf+set}" = set; then
8208   echo $ECHO_N "(cached) $ECHO_C" >&6
8209 else
8210   ac_check_lib_save_LIBS=$LIBS
8211 LIBS="-lm  $LIBS"
8212 cat >conftest.$ac_ext <<_ACEOF
8213 /* confdefs.h.  */
8214 _ACEOF
8215 cat confdefs.h >>conftest.$ac_ext
8216 cat >>conftest.$ac_ext <<_ACEOF
8217 /* end confdefs.h.  */
8218
8219 /* Override any gcc2 internal prototype to avoid an error.  */
8220 #ifdef __cplusplus
8221 extern "C"
8222 #endif
8223 /* We use char because int might match the return type of a gcc2
8224    builtin and then its argument prototype would still apply.  */
8225 char coshf ();
8226 int
8227 main ()
8228 {
8229 coshf ();
8230   ;
8231   return 0;
8232 }
8233 _ACEOF
8234 rm -f conftest.$ac_objext conftest$ac_exeext
8235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8236   (eval $ac_link) 2>conftest.er1
8237   ac_status=$?
8238   grep -v '^ *+' conftest.er1 >conftest.err
8239   rm -f conftest.er1
8240   cat conftest.err >&5
8241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242   (exit $ac_status); } &&
8243          { ac_try='test -z "$ac_c_werror_flag"
8244                          || test ! -s conftest.err'
8245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8246   (eval $ac_try) 2>&5
8247   ac_status=$?
8248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249   (exit $ac_status); }; } &&
8250          { ac_try='test -s conftest$ac_exeext'
8251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8252   (eval $ac_try) 2>&5
8253   ac_status=$?
8254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255   (exit $ac_status); }; }; then
8256   ac_cv_lib_m_coshf=yes
8257 else
8258   echo "$as_me: failed program was:" >&5
8259 sed 's/^/| /' conftest.$ac_ext >&5
8260
8261 ac_cv_lib_m_coshf=no
8262 fi
8263 rm -f conftest.err conftest.$ac_objext \
8264       conftest$ac_exeext conftest.$ac_ext
8265 LIBS=$ac_check_lib_save_LIBS
8266 fi
8267 echo "$as_me:$LINENO: result: $ac_cv_lib_m_coshf" >&5
8268 echo "${ECHO_T}$ac_cv_lib_m_coshf" >&6
8269 if test $ac_cv_lib_m_coshf = yes; then
8270
8271 cat >>confdefs.h <<\_ACEOF
8272 #define HAVE_COSHF 1
8273 _ACEOF
8274
8275 fi
8276
8277 echo "$as_me:$LINENO: checking for expf in -lm" >&5
8278 echo $ECHO_N "checking for expf in -lm... $ECHO_C" >&6
8279 if test "${ac_cv_lib_m_expf+set}" = set; then
8280   echo $ECHO_N "(cached) $ECHO_C" >&6
8281 else
8282   ac_check_lib_save_LIBS=$LIBS
8283 LIBS="-lm  $LIBS"
8284 cat >conftest.$ac_ext <<_ACEOF
8285 /* confdefs.h.  */
8286 _ACEOF
8287 cat confdefs.h >>conftest.$ac_ext
8288 cat >>conftest.$ac_ext <<_ACEOF
8289 /* end confdefs.h.  */
8290
8291 /* Override any gcc2 internal prototype to avoid an error.  */
8292 #ifdef __cplusplus
8293 extern "C"
8294 #endif
8295 /* We use char because int might match the return type of a gcc2
8296    builtin and then its argument prototype would still apply.  */
8297 char expf ();
8298 int
8299 main ()
8300 {
8301 expf ();
8302   ;
8303   return 0;
8304 }
8305 _ACEOF
8306 rm -f conftest.$ac_objext conftest$ac_exeext
8307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8308   (eval $ac_link) 2>conftest.er1
8309   ac_status=$?
8310   grep -v '^ *+' conftest.er1 >conftest.err
8311   rm -f conftest.er1
8312   cat conftest.err >&5
8313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314   (exit $ac_status); } &&
8315          { ac_try='test -z "$ac_c_werror_flag"
8316                          || test ! -s conftest.err'
8317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8318   (eval $ac_try) 2>&5
8319   ac_status=$?
8320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321   (exit $ac_status); }; } &&
8322          { ac_try='test -s conftest$ac_exeext'
8323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8324   (eval $ac_try) 2>&5
8325   ac_status=$?
8326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327   (exit $ac_status); }; }; then
8328   ac_cv_lib_m_expf=yes
8329 else
8330   echo "$as_me: failed program was:" >&5
8331 sed 's/^/| /' conftest.$ac_ext >&5
8332
8333 ac_cv_lib_m_expf=no
8334 fi
8335 rm -f conftest.err conftest.$ac_objext \
8336       conftest$ac_exeext conftest.$ac_ext
8337 LIBS=$ac_check_lib_save_LIBS
8338 fi
8339 echo "$as_me:$LINENO: result: $ac_cv_lib_m_expf" >&5
8340 echo "${ECHO_T}$ac_cv_lib_m_expf" >&6
8341 if test $ac_cv_lib_m_expf = yes; then
8342
8343 cat >>confdefs.h <<\_ACEOF
8344 #define HAVE_EXPF 1
8345 _ACEOF
8346
8347 fi
8348
8349 echo "$as_me:$LINENO: checking for fabsf in -lm" >&5
8350 echo $ECHO_N "checking for fabsf in -lm... $ECHO_C" >&6
8351 if test "${ac_cv_lib_m_fabsf+set}" = set; then
8352   echo $ECHO_N "(cached) $ECHO_C" >&6
8353 else
8354   ac_check_lib_save_LIBS=$LIBS
8355 LIBS="-lm  $LIBS"
8356 cat >conftest.$ac_ext <<_ACEOF
8357 /* confdefs.h.  */
8358 _ACEOF
8359 cat confdefs.h >>conftest.$ac_ext
8360 cat >>conftest.$ac_ext <<_ACEOF
8361 /* end confdefs.h.  */
8362
8363 /* Override any gcc2 internal prototype to avoid an error.  */
8364 #ifdef __cplusplus
8365 extern "C"
8366 #endif
8367 /* We use char because int might match the return type of a gcc2
8368    builtin and then its argument prototype would still apply.  */
8369 char fabsf ();
8370 int
8371 main ()
8372 {
8373 fabsf ();
8374   ;
8375   return 0;
8376 }
8377 _ACEOF
8378 rm -f conftest.$ac_objext conftest$ac_exeext
8379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8380   (eval $ac_link) 2>conftest.er1
8381   ac_status=$?
8382   grep -v '^ *+' conftest.er1 >conftest.err
8383   rm -f conftest.er1
8384   cat conftest.err >&5
8385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386   (exit $ac_status); } &&
8387          { ac_try='test -z "$ac_c_werror_flag"
8388                          || test ! -s conftest.err'
8389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8390   (eval $ac_try) 2>&5
8391   ac_status=$?
8392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393   (exit $ac_status); }; } &&
8394          { ac_try='test -s conftest$ac_exeext'
8395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8396   (eval $ac_try) 2>&5
8397   ac_status=$?
8398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399   (exit $ac_status); }; }; then
8400   ac_cv_lib_m_fabsf=yes
8401 else
8402   echo "$as_me: failed program was:" >&5
8403 sed 's/^/| /' conftest.$ac_ext >&5
8404
8405 ac_cv_lib_m_fabsf=no
8406 fi
8407 rm -f conftest.err conftest.$ac_objext \
8408       conftest$ac_exeext conftest.$ac_ext
8409 LIBS=$ac_check_lib_save_LIBS
8410 fi
8411 echo "$as_me:$LINENO: result: $ac_cv_lib_m_fabsf" >&5
8412 echo "${ECHO_T}$ac_cv_lib_m_fabsf" >&6
8413 if test $ac_cv_lib_m_fabsf = yes; then
8414
8415 cat >>confdefs.h <<\_ACEOF
8416 #define HAVE_FABSF 1
8417 _ACEOF
8418
8419 fi
8420
8421 echo "$as_me:$LINENO: checking for floorf in -lm" >&5
8422 echo $ECHO_N "checking for floorf in -lm... $ECHO_C" >&6
8423 if test "${ac_cv_lib_m_floorf+set}" = set; then
8424   echo $ECHO_N "(cached) $ECHO_C" >&6
8425 else
8426   ac_check_lib_save_LIBS=$LIBS
8427 LIBS="-lm  $LIBS"
8428 cat >conftest.$ac_ext <<_ACEOF
8429 /* confdefs.h.  */
8430 _ACEOF
8431 cat confdefs.h >>conftest.$ac_ext
8432 cat >>conftest.$ac_ext <<_ACEOF
8433 /* end confdefs.h.  */
8434
8435 /* Override any gcc2 internal prototype to avoid an error.  */
8436 #ifdef __cplusplus
8437 extern "C"
8438 #endif
8439 /* We use char because int might match the return type of a gcc2
8440    builtin and then its argument prototype would still apply.  */
8441 char floorf ();
8442 int
8443 main ()
8444 {
8445 floorf ();
8446   ;
8447   return 0;
8448 }
8449 _ACEOF
8450 rm -f conftest.$ac_objext conftest$ac_exeext
8451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8452   (eval $ac_link) 2>conftest.er1
8453   ac_status=$?
8454   grep -v '^ *+' conftest.er1 >conftest.err
8455   rm -f conftest.er1
8456   cat conftest.err >&5
8457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458   (exit $ac_status); } &&
8459          { ac_try='test -z "$ac_c_werror_flag"
8460                          || test ! -s conftest.err'
8461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8462   (eval $ac_try) 2>&5
8463   ac_status=$?
8464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465   (exit $ac_status); }; } &&
8466          { ac_try='test -s conftest$ac_exeext'
8467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8468   (eval $ac_try) 2>&5
8469   ac_status=$?
8470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471   (exit $ac_status); }; }; then
8472   ac_cv_lib_m_floorf=yes
8473 else
8474   echo "$as_me: failed program was:" >&5
8475 sed 's/^/| /' conftest.$ac_ext >&5
8476
8477 ac_cv_lib_m_floorf=no
8478 fi
8479 rm -f conftest.err conftest.$ac_objext \
8480       conftest$ac_exeext conftest.$ac_ext
8481 LIBS=$ac_check_lib_save_LIBS
8482 fi
8483 echo "$as_me:$LINENO: result: $ac_cv_lib_m_floorf" >&5
8484 echo "${ECHO_T}$ac_cv_lib_m_floorf" >&6
8485 if test $ac_cv_lib_m_floorf = yes; then
8486
8487 cat >>confdefs.h <<\_ACEOF
8488 #define HAVE_FLOORF 1
8489 _ACEOF
8490
8491 fi
8492
8493 echo "$as_me:$LINENO: checking for frexpf in -lm" >&5
8494 echo $ECHO_N "checking for frexpf in -lm... $ECHO_C" >&6
8495 if test "${ac_cv_lib_m_frexpf+set}" = set; then
8496   echo $ECHO_N "(cached) $ECHO_C" >&6
8497 else
8498   ac_check_lib_save_LIBS=$LIBS
8499 LIBS="-lm  $LIBS"
8500 cat >conftest.$ac_ext <<_ACEOF
8501 /* confdefs.h.  */
8502 _ACEOF
8503 cat confdefs.h >>conftest.$ac_ext
8504 cat >>conftest.$ac_ext <<_ACEOF
8505 /* end confdefs.h.  */
8506
8507 /* Override any gcc2 internal prototype to avoid an error.  */
8508 #ifdef __cplusplus
8509 extern "C"
8510 #endif
8511 /* We use char because int might match the return type of a gcc2
8512    builtin and then its argument prototype would still apply.  */
8513 char frexpf ();
8514 int
8515 main ()
8516 {
8517 frexpf ();
8518   ;
8519   return 0;
8520 }
8521 _ACEOF
8522 rm -f conftest.$ac_objext conftest$ac_exeext
8523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8524   (eval $ac_link) 2>conftest.er1
8525   ac_status=$?
8526   grep -v '^ *+' conftest.er1 >conftest.err
8527   rm -f conftest.er1
8528   cat conftest.err >&5
8529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530   (exit $ac_status); } &&
8531          { ac_try='test -z "$ac_c_werror_flag"
8532                          || test ! -s conftest.err'
8533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8534   (eval $ac_try) 2>&5
8535   ac_status=$?
8536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537   (exit $ac_status); }; } &&
8538          { ac_try='test -s conftest$ac_exeext'
8539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8540   (eval $ac_try) 2>&5
8541   ac_status=$?
8542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543   (exit $ac_status); }; }; then
8544   ac_cv_lib_m_frexpf=yes
8545 else
8546   echo "$as_me: failed program was:" >&5
8547 sed 's/^/| /' conftest.$ac_ext >&5
8548
8549 ac_cv_lib_m_frexpf=no
8550 fi
8551 rm -f conftest.err conftest.$ac_objext \
8552       conftest$ac_exeext conftest.$ac_ext
8553 LIBS=$ac_check_lib_save_LIBS
8554 fi
8555 echo "$as_me:$LINENO: result: $ac_cv_lib_m_frexpf" >&5
8556 echo "${ECHO_T}$ac_cv_lib_m_frexpf" >&6
8557 if test $ac_cv_lib_m_frexpf = yes; then
8558
8559 cat >>confdefs.h <<\_ACEOF
8560 #define HAVE_FREXPF 1
8561 _ACEOF
8562
8563 fi
8564
8565 echo "$as_me:$LINENO: checking for hypotf in -lm" >&5
8566 echo $ECHO_N "checking for hypotf in -lm... $ECHO_C" >&6
8567 if test "${ac_cv_lib_m_hypotf+set}" = set; then
8568   echo $ECHO_N "(cached) $ECHO_C" >&6
8569 else
8570   ac_check_lib_save_LIBS=$LIBS
8571 LIBS="-lm  $LIBS"
8572 cat >conftest.$ac_ext <<_ACEOF
8573 /* confdefs.h.  */
8574 _ACEOF
8575 cat confdefs.h >>conftest.$ac_ext
8576 cat >>conftest.$ac_ext <<_ACEOF
8577 /* end confdefs.h.  */
8578
8579 /* Override any gcc2 internal prototype to avoid an error.  */
8580 #ifdef __cplusplus
8581 extern "C"
8582 #endif
8583 /* We use char because int might match the return type of a gcc2
8584    builtin and then its argument prototype would still apply.  */
8585 char hypotf ();
8586 int
8587 main ()
8588 {
8589 hypotf ();
8590   ;
8591   return 0;
8592 }
8593 _ACEOF
8594 rm -f conftest.$ac_objext conftest$ac_exeext
8595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8596   (eval $ac_link) 2>conftest.er1
8597   ac_status=$?
8598   grep -v '^ *+' conftest.er1 >conftest.err
8599   rm -f conftest.er1
8600   cat conftest.err >&5
8601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602   (exit $ac_status); } &&
8603          { ac_try='test -z "$ac_c_werror_flag"
8604                          || test ! -s conftest.err'
8605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8606   (eval $ac_try) 2>&5
8607   ac_status=$?
8608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609   (exit $ac_status); }; } &&
8610          { ac_try='test -s conftest$ac_exeext'
8611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8612   (eval $ac_try) 2>&5
8613   ac_status=$?
8614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615   (exit $ac_status); }; }; then
8616   ac_cv_lib_m_hypotf=yes
8617 else
8618   echo "$as_me: failed program was:" >&5
8619 sed 's/^/| /' conftest.$ac_ext >&5
8620
8621 ac_cv_lib_m_hypotf=no
8622 fi
8623 rm -f conftest.err conftest.$ac_objext \
8624       conftest$ac_exeext conftest.$ac_ext
8625 LIBS=$ac_check_lib_save_LIBS
8626 fi
8627 echo "$as_me:$LINENO: result: $ac_cv_lib_m_hypotf" >&5
8628 echo "${ECHO_T}$ac_cv_lib_m_hypotf" >&6
8629 if test $ac_cv_lib_m_hypotf = yes; then
8630
8631 cat >>confdefs.h <<\_ACEOF
8632 #define HAVE_HYPOTF 1
8633 _ACEOF
8634
8635 fi
8636
8637 echo "$as_me:$LINENO: checking for logf in -lm" >&5
8638 echo $ECHO_N "checking for logf in -lm... $ECHO_C" >&6
8639 if test "${ac_cv_lib_m_logf+set}" = set; then
8640   echo $ECHO_N "(cached) $ECHO_C" >&6
8641 else
8642   ac_check_lib_save_LIBS=$LIBS
8643 LIBS="-lm  $LIBS"
8644 cat >conftest.$ac_ext <<_ACEOF
8645 /* confdefs.h.  */
8646 _ACEOF
8647 cat confdefs.h >>conftest.$ac_ext
8648 cat >>conftest.$ac_ext <<_ACEOF
8649 /* end confdefs.h.  */
8650
8651 /* Override any gcc2 internal prototype to avoid an error.  */
8652 #ifdef __cplusplus
8653 extern "C"
8654 #endif
8655 /* We use char because int might match the return type of a gcc2
8656    builtin and then its argument prototype would still apply.  */
8657 char logf ();
8658 int
8659 main ()
8660 {
8661 logf ();
8662   ;
8663   return 0;
8664 }
8665 _ACEOF
8666 rm -f conftest.$ac_objext conftest$ac_exeext
8667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8668   (eval $ac_link) 2>conftest.er1
8669   ac_status=$?
8670   grep -v '^ *+' conftest.er1 >conftest.err
8671   rm -f conftest.er1
8672   cat conftest.err >&5
8673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674   (exit $ac_status); } &&
8675          { ac_try='test -z "$ac_c_werror_flag"
8676                          || test ! -s conftest.err'
8677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8678   (eval $ac_try) 2>&5
8679   ac_status=$?
8680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681   (exit $ac_status); }; } &&
8682          { ac_try='test -s conftest$ac_exeext'
8683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8684   (eval $ac_try) 2>&5
8685   ac_status=$?
8686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687   (exit $ac_status); }; }; then
8688   ac_cv_lib_m_logf=yes
8689 else
8690   echo "$as_me: failed program was:" >&5
8691 sed 's/^/| /' conftest.$ac_ext >&5
8692
8693 ac_cv_lib_m_logf=no
8694 fi
8695 rm -f conftest.err conftest.$ac_objext \
8696       conftest$ac_exeext conftest.$ac_ext
8697 LIBS=$ac_check_lib_save_LIBS
8698 fi
8699 echo "$as_me:$LINENO: result: $ac_cv_lib_m_logf" >&5
8700 echo "${ECHO_T}$ac_cv_lib_m_logf" >&6
8701 if test $ac_cv_lib_m_logf = yes; then
8702
8703 cat >>confdefs.h <<\_ACEOF
8704 #define HAVE_LOGF 1
8705 _ACEOF
8706
8707 fi
8708
8709 echo "$as_me:$LINENO: checking for log10f in -lm" >&5
8710 echo $ECHO_N "checking for log10f in -lm... $ECHO_C" >&6
8711 if test "${ac_cv_lib_m_log10f+set}" = set; then
8712   echo $ECHO_N "(cached) $ECHO_C" >&6
8713 else
8714   ac_check_lib_save_LIBS=$LIBS
8715 LIBS="-lm  $LIBS"
8716 cat >conftest.$ac_ext <<_ACEOF
8717 /* confdefs.h.  */
8718 _ACEOF
8719 cat confdefs.h >>conftest.$ac_ext
8720 cat >>conftest.$ac_ext <<_ACEOF
8721 /* end confdefs.h.  */
8722
8723 /* Override any gcc2 internal prototype to avoid an error.  */
8724 #ifdef __cplusplus
8725 extern "C"
8726 #endif
8727 /* We use char because int might match the return type of a gcc2
8728    builtin and then its argument prototype would still apply.  */
8729 char log10f ();
8730 int
8731 main ()
8732 {
8733 log10f ();
8734   ;
8735   return 0;
8736 }
8737 _ACEOF
8738 rm -f conftest.$ac_objext conftest$ac_exeext
8739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8740   (eval $ac_link) 2>conftest.er1
8741   ac_status=$?
8742   grep -v '^ *+' conftest.er1 >conftest.err
8743   rm -f conftest.er1
8744   cat conftest.err >&5
8745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746   (exit $ac_status); } &&
8747          { ac_try='test -z "$ac_c_werror_flag"
8748                          || test ! -s conftest.err'
8749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8750   (eval $ac_try) 2>&5
8751   ac_status=$?
8752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753   (exit $ac_status); }; } &&
8754          { ac_try='test -s conftest$ac_exeext'
8755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8756   (eval $ac_try) 2>&5
8757   ac_status=$?
8758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759   (exit $ac_status); }; }; then
8760   ac_cv_lib_m_log10f=yes
8761 else
8762   echo "$as_me: failed program was:" >&5
8763 sed 's/^/| /' conftest.$ac_ext >&5
8764
8765 ac_cv_lib_m_log10f=no
8766 fi
8767 rm -f conftest.err conftest.$ac_objext \
8768       conftest$ac_exeext conftest.$ac_ext
8769 LIBS=$ac_check_lib_save_LIBS
8770 fi
8771 echo "$as_me:$LINENO: result: $ac_cv_lib_m_log10f" >&5
8772 echo "${ECHO_T}$ac_cv_lib_m_log10f" >&6
8773 if test $ac_cv_lib_m_log10f = yes; then
8774
8775 cat >>confdefs.h <<\_ACEOF
8776 #define HAVE_LOG10F 1
8777 _ACEOF
8778
8779 fi
8780
8781 echo "$as_me:$LINENO: checking for nextafter in -lm" >&5
8782 echo $ECHO_N "checking for nextafter in -lm... $ECHO_C" >&6
8783 if test "${ac_cv_lib_m_nextafter+set}" = set; then
8784   echo $ECHO_N "(cached) $ECHO_C" >&6
8785 else
8786   ac_check_lib_save_LIBS=$LIBS
8787 LIBS="-lm  $LIBS"
8788 cat >conftest.$ac_ext <<_ACEOF
8789 /* confdefs.h.  */
8790 _ACEOF
8791 cat confdefs.h >>conftest.$ac_ext
8792 cat >>conftest.$ac_ext <<_ACEOF
8793 /* end confdefs.h.  */
8794
8795 /* Override any gcc2 internal prototype to avoid an error.  */
8796 #ifdef __cplusplus
8797 extern "C"
8798 #endif
8799 /* We use char because int might match the return type of a gcc2
8800    builtin and then its argument prototype would still apply.  */
8801 char nextafter ();
8802 int
8803 main ()
8804 {
8805 nextafter ();
8806   ;
8807   return 0;
8808 }
8809 _ACEOF
8810 rm -f conftest.$ac_objext conftest$ac_exeext
8811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8812   (eval $ac_link) 2>conftest.er1
8813   ac_status=$?
8814   grep -v '^ *+' conftest.er1 >conftest.err
8815   rm -f conftest.er1
8816   cat conftest.err >&5
8817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818   (exit $ac_status); } &&
8819          { ac_try='test -z "$ac_c_werror_flag"
8820                          || test ! -s conftest.err'
8821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8822   (eval $ac_try) 2>&5
8823   ac_status=$?
8824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825   (exit $ac_status); }; } &&
8826          { ac_try='test -s conftest$ac_exeext'
8827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8828   (eval $ac_try) 2>&5
8829   ac_status=$?
8830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831   (exit $ac_status); }; }; then
8832   ac_cv_lib_m_nextafter=yes
8833 else
8834   echo "$as_me: failed program was:" >&5
8835 sed 's/^/| /' conftest.$ac_ext >&5
8836
8837 ac_cv_lib_m_nextafter=no
8838 fi
8839 rm -f conftest.err conftest.$ac_objext \
8840       conftest$ac_exeext conftest.$ac_ext
8841 LIBS=$ac_check_lib_save_LIBS
8842 fi
8843 echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafter" >&5
8844 echo "${ECHO_T}$ac_cv_lib_m_nextafter" >&6
8845 if test $ac_cv_lib_m_nextafter = yes; then
8846
8847 cat >>confdefs.h <<\_ACEOF
8848 #define HAVE_NEXTAFTER 1
8849 _ACEOF
8850
8851 fi
8852
8853 echo "$as_me:$LINENO: checking for nextafterf in -lm" >&5
8854 echo $ECHO_N "checking for nextafterf in -lm... $ECHO_C" >&6
8855 if test "${ac_cv_lib_m_nextafterf+set}" = set; then
8856   echo $ECHO_N "(cached) $ECHO_C" >&6
8857 else
8858   ac_check_lib_save_LIBS=$LIBS
8859 LIBS="-lm  $LIBS"
8860 cat >conftest.$ac_ext <<_ACEOF
8861 /* confdefs.h.  */
8862 _ACEOF
8863 cat confdefs.h >>conftest.$ac_ext
8864 cat >>conftest.$ac_ext <<_ACEOF
8865 /* end confdefs.h.  */
8866
8867 /* Override any gcc2 internal prototype to avoid an error.  */
8868 #ifdef __cplusplus
8869 extern "C"
8870 #endif
8871 /* We use char because int might match the return type of a gcc2
8872    builtin and then its argument prototype would still apply.  */
8873 char nextafterf ();
8874 int
8875 main ()
8876 {
8877 nextafterf ();
8878   ;
8879   return 0;
8880 }
8881 _ACEOF
8882 rm -f conftest.$ac_objext conftest$ac_exeext
8883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8884   (eval $ac_link) 2>conftest.er1
8885   ac_status=$?
8886   grep -v '^ *+' conftest.er1 >conftest.err
8887   rm -f conftest.er1
8888   cat conftest.err >&5
8889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890   (exit $ac_status); } &&
8891          { ac_try='test -z "$ac_c_werror_flag"
8892                          || test ! -s conftest.err'
8893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8894   (eval $ac_try) 2>&5
8895   ac_status=$?
8896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897   (exit $ac_status); }; } &&
8898          { ac_try='test -s conftest$ac_exeext'
8899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8900   (eval $ac_try) 2>&5
8901   ac_status=$?
8902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903   (exit $ac_status); }; }; then
8904   ac_cv_lib_m_nextafterf=yes
8905 else
8906   echo "$as_me: failed program was:" >&5
8907 sed 's/^/| /' conftest.$ac_ext >&5
8908
8909 ac_cv_lib_m_nextafterf=no
8910 fi
8911 rm -f conftest.err conftest.$ac_objext \
8912       conftest$ac_exeext conftest.$ac_ext
8913 LIBS=$ac_check_lib_save_LIBS
8914 fi
8915 echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafterf" >&5
8916 echo "${ECHO_T}$ac_cv_lib_m_nextafterf" >&6
8917 if test $ac_cv_lib_m_nextafterf = yes; then
8918
8919 cat >>confdefs.h <<\_ACEOF
8920 #define HAVE_NEXTAFTERF 1
8921 _ACEOF
8922
8923 fi
8924
8925 echo "$as_me:$LINENO: checking for powf in -lm" >&5
8926 echo $ECHO_N "checking for powf in -lm... $ECHO_C" >&6
8927 if test "${ac_cv_lib_m_powf+set}" = set; then
8928   echo $ECHO_N "(cached) $ECHO_C" >&6
8929 else
8930   ac_check_lib_save_LIBS=$LIBS
8931 LIBS="-lm  $LIBS"
8932 cat >conftest.$ac_ext <<_ACEOF
8933 /* confdefs.h.  */
8934 _ACEOF
8935 cat confdefs.h >>conftest.$ac_ext
8936 cat >>conftest.$ac_ext <<_ACEOF
8937 /* end confdefs.h.  */
8938
8939 /* Override any gcc2 internal prototype to avoid an error.  */
8940 #ifdef __cplusplus
8941 extern "C"
8942 #endif
8943 /* We use char because int might match the return type of a gcc2
8944    builtin and then its argument prototype would still apply.  */
8945 char powf ();
8946 int
8947 main ()
8948 {
8949 powf ();
8950   ;
8951   return 0;
8952 }
8953 _ACEOF
8954 rm -f conftest.$ac_objext conftest$ac_exeext
8955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8956   (eval $ac_link) 2>conftest.er1
8957   ac_status=$?
8958   grep -v '^ *+' conftest.er1 >conftest.err
8959   rm -f conftest.er1
8960   cat conftest.err >&5
8961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962   (exit $ac_status); } &&
8963          { ac_try='test -z "$ac_c_werror_flag"
8964                          || test ! -s conftest.err'
8965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8966   (eval $ac_try) 2>&5
8967   ac_status=$?
8968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969   (exit $ac_status); }; } &&
8970          { ac_try='test -s conftest$ac_exeext'
8971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8972   (eval $ac_try) 2>&5
8973   ac_status=$?
8974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975   (exit $ac_status); }; }; then
8976   ac_cv_lib_m_powf=yes
8977 else
8978   echo "$as_me: failed program was:" >&5
8979 sed 's/^/| /' conftest.$ac_ext >&5
8980
8981 ac_cv_lib_m_powf=no
8982 fi
8983 rm -f conftest.err conftest.$ac_objext \
8984       conftest$ac_exeext conftest.$ac_ext
8985 LIBS=$ac_check_lib_save_LIBS
8986 fi
8987 echo "$as_me:$LINENO: result: $ac_cv_lib_m_powf" >&5
8988 echo "${ECHO_T}$ac_cv_lib_m_powf" >&6
8989 if test $ac_cv_lib_m_powf = yes; then
8990
8991 cat >>confdefs.h <<\_ACEOF
8992 #define HAVE_POWF 1
8993 _ACEOF
8994
8995 fi
8996
8997 echo "$as_me:$LINENO: checking for round in -lm" >&5
8998 echo $ECHO_N "checking for round in -lm... $ECHO_C" >&6
8999 if test "${ac_cv_lib_m_round+set}" = set; then
9000   echo $ECHO_N "(cached) $ECHO_C" >&6
9001 else
9002   ac_check_lib_save_LIBS=$LIBS
9003 LIBS="-lm  $LIBS"
9004 cat >conftest.$ac_ext <<_ACEOF
9005 /* confdefs.h.  */
9006 _ACEOF
9007 cat confdefs.h >>conftest.$ac_ext
9008 cat >>conftest.$ac_ext <<_ACEOF
9009 /* end confdefs.h.  */
9010
9011 /* Override any gcc2 internal prototype to avoid an error.  */
9012 #ifdef __cplusplus
9013 extern "C"
9014 #endif
9015 /* We use char because int might match the return type of a gcc2
9016    builtin and then its argument prototype would still apply.  */
9017 char round ();
9018 int
9019 main ()
9020 {
9021 round ();
9022   ;
9023   return 0;
9024 }
9025 _ACEOF
9026 rm -f conftest.$ac_objext conftest$ac_exeext
9027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9028   (eval $ac_link) 2>conftest.er1
9029   ac_status=$?
9030   grep -v '^ *+' conftest.er1 >conftest.err
9031   rm -f conftest.er1
9032   cat conftest.err >&5
9033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034   (exit $ac_status); } &&
9035          { ac_try='test -z "$ac_c_werror_flag"
9036                          || test ! -s conftest.err'
9037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9038   (eval $ac_try) 2>&5
9039   ac_status=$?
9040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041   (exit $ac_status); }; } &&
9042          { ac_try='test -s conftest$ac_exeext'
9043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9044   (eval $ac_try) 2>&5
9045   ac_status=$?
9046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047   (exit $ac_status); }; }; then
9048   ac_cv_lib_m_round=yes
9049 else
9050   echo "$as_me: failed program was:" >&5
9051 sed 's/^/| /' conftest.$ac_ext >&5
9052
9053 ac_cv_lib_m_round=no
9054 fi
9055 rm -f conftest.err conftest.$ac_objext \
9056       conftest$ac_exeext conftest.$ac_ext
9057 LIBS=$ac_check_lib_save_LIBS
9058 fi
9059 echo "$as_me:$LINENO: result: $ac_cv_lib_m_round" >&5
9060 echo "${ECHO_T}$ac_cv_lib_m_round" >&6
9061 if test $ac_cv_lib_m_round = yes; then
9062
9063 cat >>confdefs.h <<\_ACEOF
9064 #define HAVE_ROUND 1
9065 _ACEOF
9066
9067 fi
9068
9069 echo "$as_me:$LINENO: checking for roundf in -lm" >&5
9070 echo $ECHO_N "checking for roundf in -lm... $ECHO_C" >&6
9071 if test "${ac_cv_lib_m_roundf+set}" = set; then
9072   echo $ECHO_N "(cached) $ECHO_C" >&6
9073 else
9074   ac_check_lib_save_LIBS=$LIBS
9075 LIBS="-lm  $LIBS"
9076 cat >conftest.$ac_ext <<_ACEOF
9077 /* confdefs.h.  */
9078 _ACEOF
9079 cat confdefs.h >>conftest.$ac_ext
9080 cat >>conftest.$ac_ext <<_ACEOF
9081 /* end confdefs.h.  */
9082
9083 /* Override any gcc2 internal prototype to avoid an error.  */
9084 #ifdef __cplusplus
9085 extern "C"
9086 #endif
9087 /* We use char because int might match the return type of a gcc2
9088    builtin and then its argument prototype would still apply.  */
9089 char roundf ();
9090 int
9091 main ()
9092 {
9093 roundf ();
9094   ;
9095   return 0;
9096 }
9097 _ACEOF
9098 rm -f conftest.$ac_objext conftest$ac_exeext
9099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9100   (eval $ac_link) 2>conftest.er1
9101   ac_status=$?
9102   grep -v '^ *+' conftest.er1 >conftest.err
9103   rm -f conftest.er1
9104   cat conftest.err >&5
9105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106   (exit $ac_status); } &&
9107          { ac_try='test -z "$ac_c_werror_flag"
9108                          || test ! -s conftest.err'
9109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9110   (eval $ac_try) 2>&5
9111   ac_status=$?
9112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113   (exit $ac_status); }; } &&
9114          { ac_try='test -s conftest$ac_exeext'
9115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9116   (eval $ac_try) 2>&5
9117   ac_status=$?
9118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119   (exit $ac_status); }; }; then
9120   ac_cv_lib_m_roundf=yes
9121 else
9122   echo "$as_me: failed program was:" >&5
9123 sed 's/^/| /' conftest.$ac_ext >&5
9124
9125 ac_cv_lib_m_roundf=no
9126 fi
9127 rm -f conftest.err conftest.$ac_objext \
9128       conftest$ac_exeext conftest.$ac_ext
9129 LIBS=$ac_check_lib_save_LIBS
9130 fi
9131 echo "$as_me:$LINENO: result: $ac_cv_lib_m_roundf" >&5
9132 echo "${ECHO_T}$ac_cv_lib_m_roundf" >&6
9133 if test $ac_cv_lib_m_roundf = yes; then
9134
9135 cat >>confdefs.h <<\_ACEOF
9136 #define HAVE_ROUNDF 1
9137 _ACEOF
9138
9139 fi
9140
9141 echo "$as_me:$LINENO: checking for scalbnf in -lm" >&5
9142 echo $ECHO_N "checking for scalbnf in -lm... $ECHO_C" >&6
9143 if test "${ac_cv_lib_m_scalbnf+set}" = set; then
9144   echo $ECHO_N "(cached) $ECHO_C" >&6
9145 else
9146   ac_check_lib_save_LIBS=$LIBS
9147 LIBS="-lm  $LIBS"
9148 cat >conftest.$ac_ext <<_ACEOF
9149 /* confdefs.h.  */
9150 _ACEOF
9151 cat confdefs.h >>conftest.$ac_ext
9152 cat >>conftest.$ac_ext <<_ACEOF
9153 /* end confdefs.h.  */
9154
9155 /* Override any gcc2 internal prototype to avoid an error.  */
9156 #ifdef __cplusplus
9157 extern "C"
9158 #endif
9159 /* We use char because int might match the return type of a gcc2
9160    builtin and then its argument prototype would still apply.  */
9161 char scalbnf ();
9162 int
9163 main ()
9164 {
9165 scalbnf ();
9166   ;
9167   return 0;
9168 }
9169 _ACEOF
9170 rm -f conftest.$ac_objext conftest$ac_exeext
9171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9172   (eval $ac_link) 2>conftest.er1
9173   ac_status=$?
9174   grep -v '^ *+' conftest.er1 >conftest.err
9175   rm -f conftest.er1
9176   cat conftest.err >&5
9177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178   (exit $ac_status); } &&
9179          { ac_try='test -z "$ac_c_werror_flag"
9180                          || test ! -s conftest.err'
9181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9182   (eval $ac_try) 2>&5
9183   ac_status=$?
9184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185   (exit $ac_status); }; } &&
9186          { ac_try='test -s conftest$ac_exeext'
9187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9188   (eval $ac_try) 2>&5
9189   ac_status=$?
9190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191   (exit $ac_status); }; }; then
9192   ac_cv_lib_m_scalbnf=yes
9193 else
9194   echo "$as_me: failed program was:" >&5
9195 sed 's/^/| /' conftest.$ac_ext >&5
9196
9197 ac_cv_lib_m_scalbnf=no
9198 fi
9199 rm -f conftest.err conftest.$ac_objext \
9200       conftest$ac_exeext conftest.$ac_ext
9201 LIBS=$ac_check_lib_save_LIBS
9202 fi
9203 echo "$as_me:$LINENO: result: $ac_cv_lib_m_scalbnf" >&5
9204 echo "${ECHO_T}$ac_cv_lib_m_scalbnf" >&6
9205 if test $ac_cv_lib_m_scalbnf = yes; then
9206
9207 cat >>confdefs.h <<\_ACEOF
9208 #define HAVE_SCALBNF 1
9209 _ACEOF
9210
9211 fi
9212
9213 echo "$as_me:$LINENO: checking for sinf in -lm" >&5
9214 echo $ECHO_N "checking for sinf in -lm... $ECHO_C" >&6
9215 if test "${ac_cv_lib_m_sinf+set}" = set; then
9216   echo $ECHO_N "(cached) $ECHO_C" >&6
9217 else
9218   ac_check_lib_save_LIBS=$LIBS
9219 LIBS="-lm  $LIBS"
9220 cat >conftest.$ac_ext <<_ACEOF
9221 /* confdefs.h.  */
9222 _ACEOF
9223 cat confdefs.h >>conftest.$ac_ext
9224 cat >>conftest.$ac_ext <<_ACEOF
9225 /* end confdefs.h.  */
9226
9227 /* Override any gcc2 internal prototype to avoid an error.  */
9228 #ifdef __cplusplus
9229 extern "C"
9230 #endif
9231 /* We use char because int might match the return type of a gcc2
9232    builtin and then its argument prototype would still apply.  */
9233 char sinf ();
9234 int
9235 main ()
9236 {
9237 sinf ();
9238   ;
9239   return 0;
9240 }
9241 _ACEOF
9242 rm -f conftest.$ac_objext conftest$ac_exeext
9243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9244   (eval $ac_link) 2>conftest.er1
9245   ac_status=$?
9246   grep -v '^ *+' conftest.er1 >conftest.err
9247   rm -f conftest.er1
9248   cat conftest.err >&5
9249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250   (exit $ac_status); } &&
9251          { ac_try='test -z "$ac_c_werror_flag"
9252                          || test ! -s conftest.err'
9253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9254   (eval $ac_try) 2>&5
9255   ac_status=$?
9256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257   (exit $ac_status); }; } &&
9258          { ac_try='test -s conftest$ac_exeext'
9259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9260   (eval $ac_try) 2>&5
9261   ac_status=$?
9262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263   (exit $ac_status); }; }; then
9264   ac_cv_lib_m_sinf=yes
9265 else
9266   echo "$as_me: failed program was:" >&5
9267 sed 's/^/| /' conftest.$ac_ext >&5
9268
9269 ac_cv_lib_m_sinf=no
9270 fi
9271 rm -f conftest.err conftest.$ac_objext \
9272       conftest$ac_exeext conftest.$ac_ext
9273 LIBS=$ac_check_lib_save_LIBS
9274 fi
9275 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinf" >&5
9276 echo "${ECHO_T}$ac_cv_lib_m_sinf" >&6
9277 if test $ac_cv_lib_m_sinf = yes; then
9278
9279 cat >>confdefs.h <<\_ACEOF
9280 #define HAVE_SINF 1
9281 _ACEOF
9282
9283 fi
9284
9285 echo "$as_me:$LINENO: checking for sinhf in -lm" >&5
9286 echo $ECHO_N "checking for sinhf in -lm... $ECHO_C" >&6
9287 if test "${ac_cv_lib_m_sinhf+set}" = set; then
9288   echo $ECHO_N "(cached) $ECHO_C" >&6
9289 else
9290   ac_check_lib_save_LIBS=$LIBS
9291 LIBS="-lm  $LIBS"
9292 cat >conftest.$ac_ext <<_ACEOF
9293 /* confdefs.h.  */
9294 _ACEOF
9295 cat confdefs.h >>conftest.$ac_ext
9296 cat >>conftest.$ac_ext <<_ACEOF
9297 /* end confdefs.h.  */
9298
9299 /* Override any gcc2 internal prototype to avoid an error.  */
9300 #ifdef __cplusplus
9301 extern "C"
9302 #endif
9303 /* We use char because int might match the return type of a gcc2
9304    builtin and then its argument prototype would still apply.  */
9305 char sinhf ();
9306 int
9307 main ()
9308 {
9309 sinhf ();
9310   ;
9311   return 0;
9312 }
9313 _ACEOF
9314 rm -f conftest.$ac_objext conftest$ac_exeext
9315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9316   (eval $ac_link) 2>conftest.er1
9317   ac_status=$?
9318   grep -v '^ *+' conftest.er1 >conftest.err
9319   rm -f conftest.er1
9320   cat conftest.err >&5
9321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322   (exit $ac_status); } &&
9323          { ac_try='test -z "$ac_c_werror_flag"
9324                          || test ! -s conftest.err'
9325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9326   (eval $ac_try) 2>&5
9327   ac_status=$?
9328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329   (exit $ac_status); }; } &&
9330          { ac_try='test -s conftest$ac_exeext'
9331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9332   (eval $ac_try) 2>&5
9333   ac_status=$?
9334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335   (exit $ac_status); }; }; then
9336   ac_cv_lib_m_sinhf=yes
9337 else
9338   echo "$as_me: failed program was:" >&5
9339 sed 's/^/| /' conftest.$ac_ext >&5
9340
9341 ac_cv_lib_m_sinhf=no
9342 fi
9343 rm -f conftest.err conftest.$ac_objext \
9344       conftest$ac_exeext conftest.$ac_ext
9345 LIBS=$ac_check_lib_save_LIBS
9346 fi
9347 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinhf" >&5
9348 echo "${ECHO_T}$ac_cv_lib_m_sinhf" >&6
9349 if test $ac_cv_lib_m_sinhf = yes; then
9350
9351 cat >>confdefs.h <<\_ACEOF
9352 #define HAVE_SINHF 1
9353 _ACEOF
9354
9355 fi
9356
9357 echo "$as_me:$LINENO: checking for sqrtf in -lm" >&5
9358 echo $ECHO_N "checking for sqrtf in -lm... $ECHO_C" >&6
9359 if test "${ac_cv_lib_m_sqrtf+set}" = set; then
9360   echo $ECHO_N "(cached) $ECHO_C" >&6
9361 else
9362   ac_check_lib_save_LIBS=$LIBS
9363 LIBS="-lm  $LIBS"
9364 cat >conftest.$ac_ext <<_ACEOF
9365 /* confdefs.h.  */
9366 _ACEOF
9367 cat confdefs.h >>conftest.$ac_ext
9368 cat >>conftest.$ac_ext <<_ACEOF
9369 /* end confdefs.h.  */
9370
9371 /* Override any gcc2 internal prototype to avoid an error.  */
9372 #ifdef __cplusplus
9373 extern "C"
9374 #endif
9375 /* We use char because int might match the return type of a gcc2
9376    builtin and then its argument prototype would still apply.  */
9377 char sqrtf ();
9378 int
9379 main ()
9380 {
9381 sqrtf ();
9382   ;
9383   return 0;
9384 }
9385 _ACEOF
9386 rm -f conftest.$ac_objext conftest$ac_exeext
9387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9388   (eval $ac_link) 2>conftest.er1
9389   ac_status=$?
9390   grep -v '^ *+' conftest.er1 >conftest.err
9391   rm -f conftest.er1
9392   cat conftest.err >&5
9393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394   (exit $ac_status); } &&
9395          { ac_try='test -z "$ac_c_werror_flag"
9396                          || test ! -s conftest.err'
9397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9398   (eval $ac_try) 2>&5
9399   ac_status=$?
9400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401   (exit $ac_status); }; } &&
9402          { ac_try='test -s conftest$ac_exeext'
9403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9404   (eval $ac_try) 2>&5
9405   ac_status=$?
9406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407   (exit $ac_status); }; }; then
9408   ac_cv_lib_m_sqrtf=yes
9409 else
9410   echo "$as_me: failed program was:" >&5
9411 sed 's/^/| /' conftest.$ac_ext >&5
9412
9413 ac_cv_lib_m_sqrtf=no
9414 fi
9415 rm -f conftest.err conftest.$ac_objext \
9416       conftest$ac_exeext conftest.$ac_ext
9417 LIBS=$ac_check_lib_save_LIBS
9418 fi
9419 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrtf" >&5
9420 echo "${ECHO_T}$ac_cv_lib_m_sqrtf" >&6
9421 if test $ac_cv_lib_m_sqrtf = yes; then
9422
9423 cat >>confdefs.h <<\_ACEOF
9424 #define HAVE_SQRTF 1
9425 _ACEOF
9426
9427 fi
9428
9429 echo "$as_me:$LINENO: checking for tanf in -lm" >&5
9430 echo $ECHO_N "checking for tanf in -lm... $ECHO_C" >&6
9431 if test "${ac_cv_lib_m_tanf+set}" = set; then
9432   echo $ECHO_N "(cached) $ECHO_C" >&6
9433 else
9434   ac_check_lib_save_LIBS=$LIBS
9435 LIBS="-lm  $LIBS"
9436 cat >conftest.$ac_ext <<_ACEOF
9437 /* confdefs.h.  */
9438 _ACEOF
9439 cat confdefs.h >>conftest.$ac_ext
9440 cat >>conftest.$ac_ext <<_ACEOF
9441 /* end confdefs.h.  */
9442
9443 /* Override any gcc2 internal prototype to avoid an error.  */
9444 #ifdef __cplusplus
9445 extern "C"
9446 #endif
9447 /* We use char because int might match the return type of a gcc2
9448    builtin and then its argument prototype would still apply.  */
9449 char tanf ();
9450 int
9451 main ()
9452 {
9453 tanf ();
9454   ;
9455   return 0;
9456 }
9457 _ACEOF
9458 rm -f conftest.$ac_objext conftest$ac_exeext
9459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9460   (eval $ac_link) 2>conftest.er1
9461   ac_status=$?
9462   grep -v '^ *+' conftest.er1 >conftest.err
9463   rm -f conftest.er1
9464   cat conftest.err >&5
9465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466   (exit $ac_status); } &&
9467          { ac_try='test -z "$ac_c_werror_flag"
9468                          || test ! -s conftest.err'
9469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9470   (eval $ac_try) 2>&5
9471   ac_status=$?
9472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473   (exit $ac_status); }; } &&
9474          { ac_try='test -s conftest$ac_exeext'
9475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9476   (eval $ac_try) 2>&5
9477   ac_status=$?
9478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479   (exit $ac_status); }; }; then
9480   ac_cv_lib_m_tanf=yes
9481 else
9482   echo "$as_me: failed program was:" >&5
9483 sed 's/^/| /' conftest.$ac_ext >&5
9484
9485 ac_cv_lib_m_tanf=no
9486 fi
9487 rm -f conftest.err conftest.$ac_objext \
9488       conftest$ac_exeext conftest.$ac_ext
9489 LIBS=$ac_check_lib_save_LIBS
9490 fi
9491 echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanf" >&5
9492 echo "${ECHO_T}$ac_cv_lib_m_tanf" >&6
9493 if test $ac_cv_lib_m_tanf = yes; then
9494
9495 cat >>confdefs.h <<\_ACEOF
9496 #define HAVE_TANF 1
9497 _ACEOF
9498
9499 fi
9500
9501 echo "$as_me:$LINENO: checking for tanhf in -lm" >&5
9502 echo $ECHO_N "checking for tanhf in -lm... $ECHO_C" >&6
9503 if test "${ac_cv_lib_m_tanhf+set}" = set; then
9504   echo $ECHO_N "(cached) $ECHO_C" >&6
9505 else
9506   ac_check_lib_save_LIBS=$LIBS
9507 LIBS="-lm  $LIBS"
9508 cat >conftest.$ac_ext <<_ACEOF
9509 /* confdefs.h.  */
9510 _ACEOF
9511 cat confdefs.h >>conftest.$ac_ext
9512 cat >>conftest.$ac_ext <<_ACEOF
9513 /* end confdefs.h.  */
9514
9515 /* Override any gcc2 internal prototype to avoid an error.  */
9516 #ifdef __cplusplus
9517 extern "C"
9518 #endif
9519 /* We use char because int might match the return type of a gcc2
9520    builtin and then its argument prototype would still apply.  */
9521 char tanhf ();
9522 int
9523 main ()
9524 {
9525 tanhf ();
9526   ;
9527   return 0;
9528 }
9529 _ACEOF
9530 rm -f conftest.$ac_objext conftest$ac_exeext
9531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9532   (eval $ac_link) 2>conftest.er1
9533   ac_status=$?
9534   grep -v '^ *+' conftest.er1 >conftest.err
9535   rm -f conftest.er1
9536   cat conftest.err >&5
9537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538   (exit $ac_status); } &&
9539          { ac_try='test -z "$ac_c_werror_flag"
9540                          || test ! -s conftest.err'
9541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9542   (eval $ac_try) 2>&5
9543   ac_status=$?
9544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545   (exit $ac_status); }; } &&
9546          { ac_try='test -s conftest$ac_exeext'
9547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9548   (eval $ac_try) 2>&5
9549   ac_status=$?
9550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551   (exit $ac_status); }; }; then
9552   ac_cv_lib_m_tanhf=yes
9553 else
9554   echo "$as_me: failed program was:" >&5
9555 sed 's/^/| /' conftest.$ac_ext >&5
9556
9557 ac_cv_lib_m_tanhf=no
9558 fi
9559 rm -f conftest.err conftest.$ac_objext \
9560       conftest$ac_exeext conftest.$ac_ext
9561 LIBS=$ac_check_lib_save_LIBS
9562 fi
9563 echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanhf" >&5
9564 echo "${ECHO_T}$ac_cv_lib_m_tanhf" >&6
9565 if test $ac_cv_lib_m_tanhf = yes; then
9566
9567 cat >>confdefs.h <<\_ACEOF
9568 #define HAVE_TANHF 1
9569 _ACEOF
9570
9571 fi
9572
9573 echo "$as_me:$LINENO: checking for trunc in -lm" >&5
9574 echo $ECHO_N "checking for trunc in -lm... $ECHO_C" >&6
9575 if test "${ac_cv_lib_m_trunc+set}" = set; then
9576   echo $ECHO_N "(cached) $ECHO_C" >&6
9577 else
9578   ac_check_lib_save_LIBS=$LIBS
9579 LIBS="-lm  $LIBS"
9580 cat >conftest.$ac_ext <<_ACEOF
9581 /* confdefs.h.  */
9582 _ACEOF
9583 cat confdefs.h >>conftest.$ac_ext
9584 cat >>conftest.$ac_ext <<_ACEOF
9585 /* end confdefs.h.  */
9586
9587 /* Override any gcc2 internal prototype to avoid an error.  */
9588 #ifdef __cplusplus
9589 extern "C"
9590 #endif
9591 /* We use char because int might match the return type of a gcc2
9592    builtin and then its argument prototype would still apply.  */
9593 char trunc ();
9594 int
9595 main ()
9596 {
9597 trunc ();
9598   ;
9599   return 0;
9600 }
9601 _ACEOF
9602 rm -f conftest.$ac_objext conftest$ac_exeext
9603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9604   (eval $ac_link) 2>conftest.er1
9605   ac_status=$?
9606   grep -v '^ *+' conftest.er1 >conftest.err
9607   rm -f conftest.er1
9608   cat conftest.err >&5
9609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610   (exit $ac_status); } &&
9611          { ac_try='test -z "$ac_c_werror_flag"
9612                          || test ! -s conftest.err'
9613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9614   (eval $ac_try) 2>&5
9615   ac_status=$?
9616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617   (exit $ac_status); }; } &&
9618          { ac_try='test -s conftest$ac_exeext'
9619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9620   (eval $ac_try) 2>&5
9621   ac_status=$?
9622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623   (exit $ac_status); }; }; then
9624   ac_cv_lib_m_trunc=yes
9625 else
9626   echo "$as_me: failed program was:" >&5
9627 sed 's/^/| /' conftest.$ac_ext >&5
9628
9629 ac_cv_lib_m_trunc=no
9630 fi
9631 rm -f conftest.err conftest.$ac_objext \
9632       conftest$ac_exeext conftest.$ac_ext
9633 LIBS=$ac_check_lib_save_LIBS
9634 fi
9635 echo "$as_me:$LINENO: result: $ac_cv_lib_m_trunc" >&5
9636 echo "${ECHO_T}$ac_cv_lib_m_trunc" >&6
9637 if test $ac_cv_lib_m_trunc = yes; then
9638
9639 cat >>confdefs.h <<\_ACEOF
9640 #define HAVE_TRUNC 1
9641 _ACEOF
9642
9643 fi
9644
9645 echo "$as_me:$LINENO: checking for truncf in -lm" >&5
9646 echo $ECHO_N "checking for truncf in -lm... $ECHO_C" >&6
9647 if test "${ac_cv_lib_m_truncf+set}" = set; then
9648   echo $ECHO_N "(cached) $ECHO_C" >&6
9649 else
9650   ac_check_lib_save_LIBS=$LIBS
9651 LIBS="-lm  $LIBS"
9652 cat >conftest.$ac_ext <<_ACEOF
9653 /* confdefs.h.  */
9654 _ACEOF
9655 cat confdefs.h >>conftest.$ac_ext
9656 cat >>conftest.$ac_ext <<_ACEOF
9657 /* end confdefs.h.  */
9658
9659 /* Override any gcc2 internal prototype to avoid an error.  */
9660 #ifdef __cplusplus
9661 extern "C"
9662 #endif
9663 /* We use char because int might match the return type of a gcc2
9664    builtin and then its argument prototype would still apply.  */
9665 char truncf ();
9666 int
9667 main ()
9668 {
9669 truncf ();
9670   ;
9671   return 0;
9672 }
9673 _ACEOF
9674 rm -f conftest.$ac_objext conftest$ac_exeext
9675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9676   (eval $ac_link) 2>conftest.er1
9677   ac_status=$?
9678   grep -v '^ *+' conftest.er1 >conftest.err
9679   rm -f conftest.er1
9680   cat conftest.err >&5
9681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682   (exit $ac_status); } &&
9683          { ac_try='test -z "$ac_c_werror_flag"
9684                          || test ! -s conftest.err'
9685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9686   (eval $ac_try) 2>&5
9687   ac_status=$?
9688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689   (exit $ac_status); }; } &&
9690          { ac_try='test -s conftest$ac_exeext'
9691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9692   (eval $ac_try) 2>&5
9693   ac_status=$?
9694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695   (exit $ac_status); }; }; then
9696   ac_cv_lib_m_truncf=yes
9697 else
9698   echo "$as_me: failed program was:" >&5
9699 sed 's/^/| /' conftest.$ac_ext >&5
9700
9701 ac_cv_lib_m_truncf=no
9702 fi
9703 rm -f conftest.err conftest.$ac_objext \
9704       conftest$ac_exeext conftest.$ac_ext
9705 LIBS=$ac_check_lib_save_LIBS
9706 fi
9707 echo "$as_me:$LINENO: result: $ac_cv_lib_m_truncf" >&5
9708 echo "${ECHO_T}$ac_cv_lib_m_truncf" >&6
9709 if test $ac_cv_lib_m_truncf = yes; then
9710
9711 cat >>confdefs.h <<\_ACEOF
9712 #define HAVE_TRUNCF 1
9713 _ACEOF
9714
9715 fi
9716
9717 echo "$as_me:$LINENO: checking for erf in -lm" >&5
9718 echo $ECHO_N "checking for erf in -lm... $ECHO_C" >&6
9719 if test "${ac_cv_lib_m_erf+set}" = set; then
9720   echo $ECHO_N "(cached) $ECHO_C" >&6
9721 else
9722   ac_check_lib_save_LIBS=$LIBS
9723 LIBS="-lm  $LIBS"
9724 cat >conftest.$ac_ext <<_ACEOF
9725 /* confdefs.h.  */
9726 _ACEOF
9727 cat confdefs.h >>conftest.$ac_ext
9728 cat >>conftest.$ac_ext <<_ACEOF
9729 /* end confdefs.h.  */
9730
9731 /* Override any gcc2 internal prototype to avoid an error.  */
9732 #ifdef __cplusplus
9733 extern "C"
9734 #endif
9735 /* We use char because int might match the return type of a gcc2
9736    builtin and then its argument prototype would still apply.  */
9737 char erf ();
9738 int
9739 main ()
9740 {
9741 erf ();
9742   ;
9743   return 0;
9744 }
9745 _ACEOF
9746 rm -f conftest.$ac_objext conftest$ac_exeext
9747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9748   (eval $ac_link) 2>conftest.er1
9749   ac_status=$?
9750   grep -v '^ *+' conftest.er1 >conftest.err
9751   rm -f conftest.er1
9752   cat conftest.err >&5
9753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754   (exit $ac_status); } &&
9755          { ac_try='test -z "$ac_c_werror_flag"
9756                          || test ! -s conftest.err'
9757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9758   (eval $ac_try) 2>&5
9759   ac_status=$?
9760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761   (exit $ac_status); }; } &&
9762          { ac_try='test -s conftest$ac_exeext'
9763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9764   (eval $ac_try) 2>&5
9765   ac_status=$?
9766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767   (exit $ac_status); }; }; then
9768   ac_cv_lib_m_erf=yes
9769 else
9770   echo "$as_me: failed program was:" >&5
9771 sed 's/^/| /' conftest.$ac_ext >&5
9772
9773 ac_cv_lib_m_erf=no
9774 fi
9775 rm -f conftest.err conftest.$ac_objext \
9776       conftest$ac_exeext conftest.$ac_ext
9777 LIBS=$ac_check_lib_save_LIBS
9778 fi
9779 echo "$as_me:$LINENO: result: $ac_cv_lib_m_erf" >&5
9780 echo "${ECHO_T}$ac_cv_lib_m_erf" >&6
9781 if test $ac_cv_lib_m_erf = yes; then
9782
9783 cat >>confdefs.h <<\_ACEOF
9784 #define HAVE_ERF 1
9785 _ACEOF
9786
9787 fi
9788
9789 echo "$as_me:$LINENO: checking for erfc in -lm" >&5
9790 echo $ECHO_N "checking for erfc in -lm... $ECHO_C" >&6
9791 if test "${ac_cv_lib_m_erfc+set}" = set; then
9792   echo $ECHO_N "(cached) $ECHO_C" >&6
9793 else
9794   ac_check_lib_save_LIBS=$LIBS
9795 LIBS="-lm  $LIBS"
9796 cat >conftest.$ac_ext <<_ACEOF
9797 /* confdefs.h.  */
9798 _ACEOF
9799 cat confdefs.h >>conftest.$ac_ext
9800 cat >>conftest.$ac_ext <<_ACEOF
9801 /* end confdefs.h.  */
9802
9803 /* Override any gcc2 internal prototype to avoid an error.  */
9804 #ifdef __cplusplus
9805 extern "C"
9806 #endif
9807 /* We use char because int might match the return type of a gcc2
9808    builtin and then its argument prototype would still apply.  */
9809 char erfc ();
9810 int
9811 main ()
9812 {
9813 erfc ();
9814   ;
9815   return 0;
9816 }
9817 _ACEOF
9818 rm -f conftest.$ac_objext conftest$ac_exeext
9819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9820   (eval $ac_link) 2>conftest.er1
9821   ac_status=$?
9822   grep -v '^ *+' conftest.er1 >conftest.err
9823   rm -f conftest.er1
9824   cat conftest.err >&5
9825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826   (exit $ac_status); } &&
9827          { ac_try='test -z "$ac_c_werror_flag"
9828                          || test ! -s conftest.err'
9829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9830   (eval $ac_try) 2>&5
9831   ac_status=$?
9832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833   (exit $ac_status); }; } &&
9834          { ac_try='test -s conftest$ac_exeext'
9835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9836   (eval $ac_try) 2>&5
9837   ac_status=$?
9838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839   (exit $ac_status); }; }; then
9840   ac_cv_lib_m_erfc=yes
9841 else
9842   echo "$as_me: failed program was:" >&5
9843 sed 's/^/| /' conftest.$ac_ext >&5
9844
9845 ac_cv_lib_m_erfc=no
9846 fi
9847 rm -f conftest.err conftest.$ac_objext \
9848       conftest$ac_exeext conftest.$ac_ext
9849 LIBS=$ac_check_lib_save_LIBS
9850 fi
9851 echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfc" >&5
9852 echo "${ECHO_T}$ac_cv_lib_m_erfc" >&6
9853 if test $ac_cv_lib_m_erfc = yes; then
9854
9855 cat >>confdefs.h <<\_ACEOF
9856 #define HAVE_ERFC 1
9857 _ACEOF
9858
9859 fi
9860
9861 echo "$as_me:$LINENO: checking for erfcf in -lm" >&5
9862 echo $ECHO_N "checking for erfcf in -lm... $ECHO_C" >&6
9863 if test "${ac_cv_lib_m_erfcf+set}" = set; then
9864   echo $ECHO_N "(cached) $ECHO_C" >&6
9865 else
9866   ac_check_lib_save_LIBS=$LIBS
9867 LIBS="-lm  $LIBS"
9868 cat >conftest.$ac_ext <<_ACEOF
9869 /* confdefs.h.  */
9870 _ACEOF
9871 cat confdefs.h >>conftest.$ac_ext
9872 cat >>conftest.$ac_ext <<_ACEOF
9873 /* end confdefs.h.  */
9874
9875 /* Override any gcc2 internal prototype to avoid an error.  */
9876 #ifdef __cplusplus
9877 extern "C"
9878 #endif
9879 /* We use char because int might match the return type of a gcc2
9880    builtin and then its argument prototype would still apply.  */
9881 char erfcf ();
9882 int
9883 main ()
9884 {
9885 erfcf ();
9886   ;
9887   return 0;
9888 }
9889 _ACEOF
9890 rm -f conftest.$ac_objext conftest$ac_exeext
9891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9892   (eval $ac_link) 2>conftest.er1
9893   ac_status=$?
9894   grep -v '^ *+' conftest.er1 >conftest.err
9895   rm -f conftest.er1
9896   cat conftest.err >&5
9897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898   (exit $ac_status); } &&
9899          { ac_try='test -z "$ac_c_werror_flag"
9900                          || test ! -s conftest.err'
9901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9902   (eval $ac_try) 2>&5
9903   ac_status=$?
9904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905   (exit $ac_status); }; } &&
9906          { ac_try='test -s conftest$ac_exeext'
9907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9908   (eval $ac_try) 2>&5
9909   ac_status=$?
9910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911   (exit $ac_status); }; }; then
9912   ac_cv_lib_m_erfcf=yes
9913 else
9914   echo "$as_me: failed program was:" >&5
9915 sed 's/^/| /' conftest.$ac_ext >&5
9916
9917 ac_cv_lib_m_erfcf=no
9918 fi
9919 rm -f conftest.err conftest.$ac_objext \
9920       conftest$ac_exeext conftest.$ac_ext
9921 LIBS=$ac_check_lib_save_LIBS
9922 fi
9923 echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfcf" >&5
9924 echo "${ECHO_T}$ac_cv_lib_m_erfcf" >&6
9925 if test $ac_cv_lib_m_erfcf = yes; then
9926
9927 cat >>confdefs.h <<\_ACEOF
9928 #define HAVE_ERFCF 1
9929 _ACEOF
9930
9931 fi
9932
9933 echo "$as_me:$LINENO: checking for erff in -lm" >&5
9934 echo $ECHO_N "checking for erff in -lm... $ECHO_C" >&6
9935 if test "${ac_cv_lib_m_erff+set}" = set; then
9936   echo $ECHO_N "(cached) $ECHO_C" >&6
9937 else
9938   ac_check_lib_save_LIBS=$LIBS
9939 LIBS="-lm  $LIBS"
9940 cat >conftest.$ac_ext <<_ACEOF
9941 /* confdefs.h.  */
9942 _ACEOF
9943 cat confdefs.h >>conftest.$ac_ext
9944 cat >>conftest.$ac_ext <<_ACEOF
9945 /* end confdefs.h.  */
9946
9947 /* Override any gcc2 internal prototype to avoid an error.  */
9948 #ifdef __cplusplus
9949 extern "C"
9950 #endif
9951 /* We use char because int might match the return type of a gcc2
9952    builtin and then its argument prototype would still apply.  */
9953 char erff ();
9954 int
9955 main ()
9956 {
9957 erff ();
9958   ;
9959   return 0;
9960 }
9961 _ACEOF
9962 rm -f conftest.$ac_objext conftest$ac_exeext
9963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9964   (eval $ac_link) 2>conftest.er1
9965   ac_status=$?
9966   grep -v '^ *+' conftest.er1 >conftest.err
9967   rm -f conftest.er1
9968   cat conftest.err >&5
9969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970   (exit $ac_status); } &&
9971          { ac_try='test -z "$ac_c_werror_flag"
9972                          || test ! -s conftest.err'
9973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974   (eval $ac_try) 2>&5
9975   ac_status=$?
9976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977   (exit $ac_status); }; } &&
9978          { ac_try='test -s conftest$ac_exeext'
9979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9980   (eval $ac_try) 2>&5
9981   ac_status=$?
9982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983   (exit $ac_status); }; }; then
9984   ac_cv_lib_m_erff=yes
9985 else
9986   echo "$as_me: failed program was:" >&5
9987 sed 's/^/| /' conftest.$ac_ext >&5
9988
9989 ac_cv_lib_m_erff=no
9990 fi
9991 rm -f conftest.err conftest.$ac_objext \
9992       conftest$ac_exeext conftest.$ac_ext
9993 LIBS=$ac_check_lib_save_LIBS
9994 fi
9995 echo "$as_me:$LINENO: result: $ac_cv_lib_m_erff" >&5
9996 echo "${ECHO_T}$ac_cv_lib_m_erff" >&6
9997 if test $ac_cv_lib_m_erff = yes; then
9998
9999 cat >>confdefs.h <<\_ACEOF
10000 #define HAVE_ERFF 1
10001 _ACEOF
10002
10003 fi
10004
10005 echo "$as_me:$LINENO: checking for j0 in -lm" >&5
10006 echo $ECHO_N "checking for j0 in -lm... $ECHO_C" >&6
10007 if test "${ac_cv_lib_m_j0+set}" = set; then
10008   echo $ECHO_N "(cached) $ECHO_C" >&6
10009 else
10010   ac_check_lib_save_LIBS=$LIBS
10011 LIBS="-lm  $LIBS"
10012 cat >conftest.$ac_ext <<_ACEOF
10013 /* confdefs.h.  */
10014 _ACEOF
10015 cat confdefs.h >>conftest.$ac_ext
10016 cat >>conftest.$ac_ext <<_ACEOF
10017 /* end confdefs.h.  */
10018
10019 /* Override any gcc2 internal prototype to avoid an error.  */
10020 #ifdef __cplusplus
10021 extern "C"
10022 #endif
10023 /* We use char because int might match the return type of a gcc2
10024    builtin and then its argument prototype would still apply.  */
10025 char j0 ();
10026 int
10027 main ()
10028 {
10029 j0 ();
10030   ;
10031   return 0;
10032 }
10033 _ACEOF
10034 rm -f conftest.$ac_objext conftest$ac_exeext
10035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10036   (eval $ac_link) 2>conftest.er1
10037   ac_status=$?
10038   grep -v '^ *+' conftest.er1 >conftest.err
10039   rm -f conftest.er1
10040   cat conftest.err >&5
10041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042   (exit $ac_status); } &&
10043          { ac_try='test -z "$ac_c_werror_flag"
10044                          || test ! -s conftest.err'
10045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10046   (eval $ac_try) 2>&5
10047   ac_status=$?
10048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049   (exit $ac_status); }; } &&
10050          { ac_try='test -s conftest$ac_exeext'
10051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10052   (eval $ac_try) 2>&5
10053   ac_status=$?
10054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055   (exit $ac_status); }; }; then
10056   ac_cv_lib_m_j0=yes
10057 else
10058   echo "$as_me: failed program was:" >&5
10059 sed 's/^/| /' conftest.$ac_ext >&5
10060
10061 ac_cv_lib_m_j0=no
10062 fi
10063 rm -f conftest.err conftest.$ac_objext \
10064       conftest$ac_exeext conftest.$ac_ext
10065 LIBS=$ac_check_lib_save_LIBS
10066 fi
10067 echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0" >&5
10068 echo "${ECHO_T}$ac_cv_lib_m_j0" >&6
10069 if test $ac_cv_lib_m_j0 = yes; then
10070
10071 cat >>confdefs.h <<\_ACEOF
10072 #define HAVE_J0 1
10073 _ACEOF
10074
10075 fi
10076
10077 echo "$as_me:$LINENO: checking for j0f in -lm" >&5
10078 echo $ECHO_N "checking for j0f in -lm... $ECHO_C" >&6
10079 if test "${ac_cv_lib_m_j0f+set}" = set; then
10080   echo $ECHO_N "(cached) $ECHO_C" >&6
10081 else
10082   ac_check_lib_save_LIBS=$LIBS
10083 LIBS="-lm  $LIBS"
10084 cat >conftest.$ac_ext <<_ACEOF
10085 /* confdefs.h.  */
10086 _ACEOF
10087 cat confdefs.h >>conftest.$ac_ext
10088 cat >>conftest.$ac_ext <<_ACEOF
10089 /* end confdefs.h.  */
10090
10091 /* Override any gcc2 internal prototype to avoid an error.  */
10092 #ifdef __cplusplus
10093 extern "C"
10094 #endif
10095 /* We use char because int might match the return type of a gcc2
10096    builtin and then its argument prototype would still apply.  */
10097 char j0f ();
10098 int
10099 main ()
10100 {
10101 j0f ();
10102   ;
10103   return 0;
10104 }
10105 _ACEOF
10106 rm -f conftest.$ac_objext conftest$ac_exeext
10107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10108   (eval $ac_link) 2>conftest.er1
10109   ac_status=$?
10110   grep -v '^ *+' conftest.er1 >conftest.err
10111   rm -f conftest.er1
10112   cat conftest.err >&5
10113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114   (exit $ac_status); } &&
10115          { ac_try='test -z "$ac_c_werror_flag"
10116                          || test ! -s conftest.err'
10117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10118   (eval $ac_try) 2>&5
10119   ac_status=$?
10120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121   (exit $ac_status); }; } &&
10122          { ac_try='test -s conftest$ac_exeext'
10123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10124   (eval $ac_try) 2>&5
10125   ac_status=$?
10126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127   (exit $ac_status); }; }; then
10128   ac_cv_lib_m_j0f=yes
10129 else
10130   echo "$as_me: failed program was:" >&5
10131 sed 's/^/| /' conftest.$ac_ext >&5
10132
10133 ac_cv_lib_m_j0f=no
10134 fi
10135 rm -f conftest.err conftest.$ac_objext \
10136       conftest$ac_exeext conftest.$ac_ext
10137 LIBS=$ac_check_lib_save_LIBS
10138 fi
10139 echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0f" >&5
10140 echo "${ECHO_T}$ac_cv_lib_m_j0f" >&6
10141 if test $ac_cv_lib_m_j0f = yes; then
10142
10143 cat >>confdefs.h <<\_ACEOF
10144 #define HAVE_J0F 1
10145 _ACEOF
10146
10147 fi
10148
10149 echo "$as_me:$LINENO: checking for j1 in -lm" >&5
10150 echo $ECHO_N "checking for j1 in -lm... $ECHO_C" >&6
10151 if test "${ac_cv_lib_m_j1+set}" = set; then
10152   echo $ECHO_N "(cached) $ECHO_C" >&6
10153 else
10154   ac_check_lib_save_LIBS=$LIBS
10155 LIBS="-lm  $LIBS"
10156 cat >conftest.$ac_ext <<_ACEOF
10157 /* confdefs.h.  */
10158 _ACEOF
10159 cat confdefs.h >>conftest.$ac_ext
10160 cat >>conftest.$ac_ext <<_ACEOF
10161 /* end confdefs.h.  */
10162
10163 /* Override any gcc2 internal prototype to avoid an error.  */
10164 #ifdef __cplusplus
10165 extern "C"
10166 #endif
10167 /* We use char because int might match the return type of a gcc2
10168    builtin and then its argument prototype would still apply.  */
10169 char j1 ();
10170 int
10171 main ()
10172 {
10173 j1 ();
10174   ;
10175   return 0;
10176 }
10177 _ACEOF
10178 rm -f conftest.$ac_objext conftest$ac_exeext
10179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10180   (eval $ac_link) 2>conftest.er1
10181   ac_status=$?
10182   grep -v '^ *+' conftest.er1 >conftest.err
10183   rm -f conftest.er1
10184   cat conftest.err >&5
10185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186   (exit $ac_status); } &&
10187          { ac_try='test -z "$ac_c_werror_flag"
10188                          || test ! -s conftest.err'
10189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10190   (eval $ac_try) 2>&5
10191   ac_status=$?
10192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193   (exit $ac_status); }; } &&
10194          { ac_try='test -s conftest$ac_exeext'
10195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10196   (eval $ac_try) 2>&5
10197   ac_status=$?
10198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199   (exit $ac_status); }; }; then
10200   ac_cv_lib_m_j1=yes
10201 else
10202   echo "$as_me: failed program was:" >&5
10203 sed 's/^/| /' conftest.$ac_ext >&5
10204
10205 ac_cv_lib_m_j1=no
10206 fi
10207 rm -f conftest.err conftest.$ac_objext \
10208       conftest$ac_exeext conftest.$ac_ext
10209 LIBS=$ac_check_lib_save_LIBS
10210 fi
10211 echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1" >&5
10212 echo "${ECHO_T}$ac_cv_lib_m_j1" >&6
10213 if test $ac_cv_lib_m_j1 = yes; then
10214
10215 cat >>confdefs.h <<\_ACEOF
10216 #define HAVE_J1 1
10217 _ACEOF
10218
10219 fi
10220
10221 echo "$as_me:$LINENO: checking for j1f in -lm" >&5
10222 echo $ECHO_N "checking for j1f in -lm... $ECHO_C" >&6
10223 if test "${ac_cv_lib_m_j1f+set}" = set; then
10224   echo $ECHO_N "(cached) $ECHO_C" >&6
10225 else
10226   ac_check_lib_save_LIBS=$LIBS
10227 LIBS="-lm  $LIBS"
10228 cat >conftest.$ac_ext <<_ACEOF
10229 /* confdefs.h.  */
10230 _ACEOF
10231 cat confdefs.h >>conftest.$ac_ext
10232 cat >>conftest.$ac_ext <<_ACEOF
10233 /* end confdefs.h.  */
10234
10235 /* Override any gcc2 internal prototype to avoid an error.  */
10236 #ifdef __cplusplus
10237 extern "C"
10238 #endif
10239 /* We use char because int might match the return type of a gcc2
10240    builtin and then its argument prototype would still apply.  */
10241 char j1f ();
10242 int
10243 main ()
10244 {
10245 j1f ();
10246   ;
10247   return 0;
10248 }
10249 _ACEOF
10250 rm -f conftest.$ac_objext conftest$ac_exeext
10251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10252   (eval $ac_link) 2>conftest.er1
10253   ac_status=$?
10254   grep -v '^ *+' conftest.er1 >conftest.err
10255   rm -f conftest.er1
10256   cat conftest.err >&5
10257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258   (exit $ac_status); } &&
10259          { ac_try='test -z "$ac_c_werror_flag"
10260                          || test ! -s conftest.err'
10261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10262   (eval $ac_try) 2>&5
10263   ac_status=$?
10264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265   (exit $ac_status); }; } &&
10266          { ac_try='test -s conftest$ac_exeext'
10267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10268   (eval $ac_try) 2>&5
10269   ac_status=$?
10270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271   (exit $ac_status); }; }; then
10272   ac_cv_lib_m_j1f=yes
10273 else
10274   echo "$as_me: failed program was:" >&5
10275 sed 's/^/| /' conftest.$ac_ext >&5
10276
10277 ac_cv_lib_m_j1f=no
10278 fi
10279 rm -f conftest.err conftest.$ac_objext \
10280       conftest$ac_exeext conftest.$ac_ext
10281 LIBS=$ac_check_lib_save_LIBS
10282 fi
10283 echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1f" >&5
10284 echo "${ECHO_T}$ac_cv_lib_m_j1f" >&6
10285 if test $ac_cv_lib_m_j1f = yes; then
10286
10287 cat >>confdefs.h <<\_ACEOF
10288 #define HAVE_J1F 1
10289 _ACEOF
10290
10291 fi
10292
10293 echo "$as_me:$LINENO: checking for jn in -lm" >&5
10294 echo $ECHO_N "checking for jn in -lm... $ECHO_C" >&6
10295 if test "${ac_cv_lib_m_jn+set}" = set; then
10296   echo $ECHO_N "(cached) $ECHO_C" >&6
10297 else
10298   ac_check_lib_save_LIBS=$LIBS
10299 LIBS="-lm  $LIBS"
10300 cat >conftest.$ac_ext <<_ACEOF
10301 /* confdefs.h.  */
10302 _ACEOF
10303 cat confdefs.h >>conftest.$ac_ext
10304 cat >>conftest.$ac_ext <<_ACEOF
10305 /* end confdefs.h.  */
10306
10307 /* Override any gcc2 internal prototype to avoid an error.  */
10308 #ifdef __cplusplus
10309 extern "C"
10310 #endif
10311 /* We use char because int might match the return type of a gcc2
10312    builtin and then its argument prototype would still apply.  */
10313 char jn ();
10314 int
10315 main ()
10316 {
10317 jn ();
10318   ;
10319   return 0;
10320 }
10321 _ACEOF
10322 rm -f conftest.$ac_objext conftest$ac_exeext
10323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10324   (eval $ac_link) 2>conftest.er1
10325   ac_status=$?
10326   grep -v '^ *+' conftest.er1 >conftest.err
10327   rm -f conftest.er1
10328   cat conftest.err >&5
10329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330   (exit $ac_status); } &&
10331          { ac_try='test -z "$ac_c_werror_flag"
10332                          || test ! -s conftest.err'
10333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10334   (eval $ac_try) 2>&5
10335   ac_status=$?
10336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337   (exit $ac_status); }; } &&
10338          { ac_try='test -s conftest$ac_exeext'
10339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10340   (eval $ac_try) 2>&5
10341   ac_status=$?
10342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343   (exit $ac_status); }; }; then
10344   ac_cv_lib_m_jn=yes
10345 else
10346   echo "$as_me: failed program was:" >&5
10347 sed 's/^/| /' conftest.$ac_ext >&5
10348
10349 ac_cv_lib_m_jn=no
10350 fi
10351 rm -f conftest.err conftest.$ac_objext \
10352       conftest$ac_exeext conftest.$ac_ext
10353 LIBS=$ac_check_lib_save_LIBS
10354 fi
10355 echo "$as_me:$LINENO: result: $ac_cv_lib_m_jn" >&5
10356 echo "${ECHO_T}$ac_cv_lib_m_jn" >&6
10357 if test $ac_cv_lib_m_jn = yes; then
10358
10359 cat >>confdefs.h <<\_ACEOF
10360 #define HAVE_JN 1
10361 _ACEOF
10362
10363 fi
10364
10365 echo "$as_me:$LINENO: checking for jnf in -lm" >&5
10366 echo $ECHO_N "checking for jnf in -lm... $ECHO_C" >&6
10367 if test "${ac_cv_lib_m_jnf+set}" = set; then
10368   echo $ECHO_N "(cached) $ECHO_C" >&6
10369 else
10370   ac_check_lib_save_LIBS=$LIBS
10371 LIBS="-lm  $LIBS"
10372 cat >conftest.$ac_ext <<_ACEOF
10373 /* confdefs.h.  */
10374 _ACEOF
10375 cat confdefs.h >>conftest.$ac_ext
10376 cat >>conftest.$ac_ext <<_ACEOF
10377 /* end confdefs.h.  */
10378
10379 /* Override any gcc2 internal prototype to avoid an error.  */
10380 #ifdef __cplusplus
10381 extern "C"
10382 #endif
10383 /* We use char because int might match the return type of a gcc2
10384    builtin and then its argument prototype would still apply.  */
10385 char jnf ();
10386 int
10387 main ()
10388 {
10389 jnf ();
10390   ;
10391   return 0;
10392 }
10393 _ACEOF
10394 rm -f conftest.$ac_objext conftest$ac_exeext
10395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10396   (eval $ac_link) 2>conftest.er1
10397   ac_status=$?
10398   grep -v '^ *+' conftest.er1 >conftest.err
10399   rm -f conftest.er1
10400   cat conftest.err >&5
10401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402   (exit $ac_status); } &&
10403          { ac_try='test -z "$ac_c_werror_flag"
10404                          || test ! -s conftest.err'
10405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10406   (eval $ac_try) 2>&5
10407   ac_status=$?
10408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409   (exit $ac_status); }; } &&
10410          { ac_try='test -s conftest$ac_exeext'
10411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10412   (eval $ac_try) 2>&5
10413   ac_status=$?
10414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415   (exit $ac_status); }; }; then
10416   ac_cv_lib_m_jnf=yes
10417 else
10418   echo "$as_me: failed program was:" >&5
10419 sed 's/^/| /' conftest.$ac_ext >&5
10420
10421 ac_cv_lib_m_jnf=no
10422 fi
10423 rm -f conftest.err conftest.$ac_objext \
10424       conftest$ac_exeext conftest.$ac_ext
10425 LIBS=$ac_check_lib_save_LIBS
10426 fi
10427 echo "$as_me:$LINENO: result: $ac_cv_lib_m_jnf" >&5
10428 echo "${ECHO_T}$ac_cv_lib_m_jnf" >&6
10429 if test $ac_cv_lib_m_jnf = yes; then
10430
10431 cat >>confdefs.h <<\_ACEOF
10432 #define HAVE_JNF 1
10433 _ACEOF
10434
10435 fi
10436
10437 echo "$as_me:$LINENO: checking for y0 in -lm" >&5
10438 echo $ECHO_N "checking for y0 in -lm... $ECHO_C" >&6
10439 if test "${ac_cv_lib_m_y0+set}" = set; then
10440   echo $ECHO_N "(cached) $ECHO_C" >&6
10441 else
10442   ac_check_lib_save_LIBS=$LIBS
10443 LIBS="-lm  $LIBS"
10444 cat >conftest.$ac_ext <<_ACEOF
10445 /* confdefs.h.  */
10446 _ACEOF
10447 cat confdefs.h >>conftest.$ac_ext
10448 cat >>conftest.$ac_ext <<_ACEOF
10449 /* end confdefs.h.  */
10450
10451 /* Override any gcc2 internal prototype to avoid an error.  */
10452 #ifdef __cplusplus
10453 extern "C"
10454 #endif
10455 /* We use char because int might match the return type of a gcc2
10456    builtin and then its argument prototype would still apply.  */
10457 char y0 ();
10458 int
10459 main ()
10460 {
10461 y0 ();
10462   ;
10463   return 0;
10464 }
10465 _ACEOF
10466 rm -f conftest.$ac_objext conftest$ac_exeext
10467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10468   (eval $ac_link) 2>conftest.er1
10469   ac_status=$?
10470   grep -v '^ *+' conftest.er1 >conftest.err
10471   rm -f conftest.er1
10472   cat conftest.err >&5
10473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474   (exit $ac_status); } &&
10475          { ac_try='test -z "$ac_c_werror_flag"
10476                          || test ! -s conftest.err'
10477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10478   (eval $ac_try) 2>&5
10479   ac_status=$?
10480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481   (exit $ac_status); }; } &&
10482          { ac_try='test -s conftest$ac_exeext'
10483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10484   (eval $ac_try) 2>&5
10485   ac_status=$?
10486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487   (exit $ac_status); }; }; then
10488   ac_cv_lib_m_y0=yes
10489 else
10490   echo "$as_me: failed program was:" >&5
10491 sed 's/^/| /' conftest.$ac_ext >&5
10492
10493 ac_cv_lib_m_y0=no
10494 fi
10495 rm -f conftest.err conftest.$ac_objext \
10496       conftest$ac_exeext conftest.$ac_ext
10497 LIBS=$ac_check_lib_save_LIBS
10498 fi
10499 echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0" >&5
10500 echo "${ECHO_T}$ac_cv_lib_m_y0" >&6
10501 if test $ac_cv_lib_m_y0 = yes; then
10502
10503 cat >>confdefs.h <<\_ACEOF
10504 #define HAVE_Y0 1
10505 _ACEOF
10506
10507 fi
10508
10509 echo "$as_me:$LINENO: checking for y0f in -lm" >&5
10510 echo $ECHO_N "checking for y0f in -lm... $ECHO_C" >&6
10511 if test "${ac_cv_lib_m_y0f+set}" = set; then
10512   echo $ECHO_N "(cached) $ECHO_C" >&6
10513 else
10514   ac_check_lib_save_LIBS=$LIBS
10515 LIBS="-lm  $LIBS"
10516 cat >conftest.$ac_ext <<_ACEOF
10517 /* confdefs.h.  */
10518 _ACEOF
10519 cat confdefs.h >>conftest.$ac_ext
10520 cat >>conftest.$ac_ext <<_ACEOF
10521 /* end confdefs.h.  */
10522
10523 /* Override any gcc2 internal prototype to avoid an error.  */
10524 #ifdef __cplusplus
10525 extern "C"
10526 #endif
10527 /* We use char because int might match the return type of a gcc2
10528    builtin and then its argument prototype would still apply.  */
10529 char y0f ();
10530 int
10531 main ()
10532 {
10533 y0f ();
10534   ;
10535   return 0;
10536 }
10537 _ACEOF
10538 rm -f conftest.$ac_objext conftest$ac_exeext
10539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10540   (eval $ac_link) 2>conftest.er1
10541   ac_status=$?
10542   grep -v '^ *+' conftest.er1 >conftest.err
10543   rm -f conftest.er1
10544   cat conftest.err >&5
10545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546   (exit $ac_status); } &&
10547          { ac_try='test -z "$ac_c_werror_flag"
10548                          || test ! -s conftest.err'
10549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10550   (eval $ac_try) 2>&5
10551   ac_status=$?
10552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553   (exit $ac_status); }; } &&
10554          { ac_try='test -s conftest$ac_exeext'
10555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10556   (eval $ac_try) 2>&5
10557   ac_status=$?
10558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559   (exit $ac_status); }; }; then
10560   ac_cv_lib_m_y0f=yes
10561 else
10562   echo "$as_me: failed program was:" >&5
10563 sed 's/^/| /' conftest.$ac_ext >&5
10564
10565 ac_cv_lib_m_y0f=no
10566 fi
10567 rm -f conftest.err conftest.$ac_objext \
10568       conftest$ac_exeext conftest.$ac_ext
10569 LIBS=$ac_check_lib_save_LIBS
10570 fi
10571 echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0f" >&5
10572 echo "${ECHO_T}$ac_cv_lib_m_y0f" >&6
10573 if test $ac_cv_lib_m_y0f = yes; then
10574
10575 cat >>confdefs.h <<\_ACEOF
10576 #define HAVE_Y0F 1
10577 _ACEOF
10578
10579 fi
10580
10581 echo "$as_me:$LINENO: checking for y1 in -lm" >&5
10582 echo $ECHO_N "checking for y1 in -lm... $ECHO_C" >&6
10583 if test "${ac_cv_lib_m_y1+set}" = set; then
10584   echo $ECHO_N "(cached) $ECHO_C" >&6
10585 else
10586   ac_check_lib_save_LIBS=$LIBS
10587 LIBS="-lm  $LIBS"
10588 cat >conftest.$ac_ext <<_ACEOF
10589 /* confdefs.h.  */
10590 _ACEOF
10591 cat confdefs.h >>conftest.$ac_ext
10592 cat >>conftest.$ac_ext <<_ACEOF
10593 /* end confdefs.h.  */
10594
10595 /* Override any gcc2 internal prototype to avoid an error.  */
10596 #ifdef __cplusplus
10597 extern "C"
10598 #endif
10599 /* We use char because int might match the return type of a gcc2
10600    builtin and then its argument prototype would still apply.  */
10601 char y1 ();
10602 int
10603 main ()
10604 {
10605 y1 ();
10606   ;
10607   return 0;
10608 }
10609 _ACEOF
10610 rm -f conftest.$ac_objext conftest$ac_exeext
10611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10612   (eval $ac_link) 2>conftest.er1
10613   ac_status=$?
10614   grep -v '^ *+' conftest.er1 >conftest.err
10615   rm -f conftest.er1
10616   cat conftest.err >&5
10617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618   (exit $ac_status); } &&
10619          { ac_try='test -z "$ac_c_werror_flag"
10620                          || test ! -s conftest.err'
10621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10622   (eval $ac_try) 2>&5
10623   ac_status=$?
10624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625   (exit $ac_status); }; } &&
10626          { ac_try='test -s conftest$ac_exeext'
10627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10628   (eval $ac_try) 2>&5
10629   ac_status=$?
10630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631   (exit $ac_status); }; }; then
10632   ac_cv_lib_m_y1=yes
10633 else
10634   echo "$as_me: failed program was:" >&5
10635 sed 's/^/| /' conftest.$ac_ext >&5
10636
10637 ac_cv_lib_m_y1=no
10638 fi
10639 rm -f conftest.err conftest.$ac_objext \
10640       conftest$ac_exeext conftest.$ac_ext
10641 LIBS=$ac_check_lib_save_LIBS
10642 fi
10643 echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1" >&5
10644 echo "${ECHO_T}$ac_cv_lib_m_y1" >&6
10645 if test $ac_cv_lib_m_y1 = yes; then
10646
10647 cat >>confdefs.h <<\_ACEOF
10648 #define HAVE_Y1 1
10649 _ACEOF
10650
10651 fi
10652
10653 echo "$as_me:$LINENO: checking for y1f in -lm" >&5
10654 echo $ECHO_N "checking for y1f in -lm... $ECHO_C" >&6
10655 if test "${ac_cv_lib_m_y1f+set}" = set; then
10656   echo $ECHO_N "(cached) $ECHO_C" >&6
10657 else
10658   ac_check_lib_save_LIBS=$LIBS
10659 LIBS="-lm  $LIBS"
10660 cat >conftest.$ac_ext <<_ACEOF
10661 /* confdefs.h.  */
10662 _ACEOF
10663 cat confdefs.h >>conftest.$ac_ext
10664 cat >>conftest.$ac_ext <<_ACEOF
10665 /* end confdefs.h.  */
10666
10667 /* Override any gcc2 internal prototype to avoid an error.  */
10668 #ifdef __cplusplus
10669 extern "C"
10670 #endif
10671 /* We use char because int might match the return type of a gcc2
10672    builtin and then its argument prototype would still apply.  */
10673 char y1f ();
10674 int
10675 main ()
10676 {
10677 y1f ();
10678   ;
10679   return 0;
10680 }
10681 _ACEOF
10682 rm -f conftest.$ac_objext conftest$ac_exeext
10683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10684   (eval $ac_link) 2>conftest.er1
10685   ac_status=$?
10686   grep -v '^ *+' conftest.er1 >conftest.err
10687   rm -f conftest.er1
10688   cat conftest.err >&5
10689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690   (exit $ac_status); } &&
10691          { ac_try='test -z "$ac_c_werror_flag"
10692                          || test ! -s conftest.err'
10693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10694   (eval $ac_try) 2>&5
10695   ac_status=$?
10696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697   (exit $ac_status); }; } &&
10698          { ac_try='test -s conftest$ac_exeext'
10699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10700   (eval $ac_try) 2>&5
10701   ac_status=$?
10702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703   (exit $ac_status); }; }; then
10704   ac_cv_lib_m_y1f=yes
10705 else
10706   echo "$as_me: failed program was:" >&5
10707 sed 's/^/| /' conftest.$ac_ext >&5
10708
10709 ac_cv_lib_m_y1f=no
10710 fi
10711 rm -f conftest.err conftest.$ac_objext \
10712       conftest$ac_exeext conftest.$ac_ext
10713 LIBS=$ac_check_lib_save_LIBS
10714 fi
10715 echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1f" >&5
10716 echo "${ECHO_T}$ac_cv_lib_m_y1f" >&6
10717 if test $ac_cv_lib_m_y1f = yes; then
10718
10719 cat >>confdefs.h <<\_ACEOF
10720 #define HAVE_Y1F 1
10721 _ACEOF
10722
10723 fi
10724
10725 echo "$as_me:$LINENO: checking for yn in -lm" >&5
10726 echo $ECHO_N "checking for yn in -lm... $ECHO_C" >&6
10727 if test "${ac_cv_lib_m_yn+set}" = set; then
10728   echo $ECHO_N "(cached) $ECHO_C" >&6
10729 else
10730   ac_check_lib_save_LIBS=$LIBS
10731 LIBS="-lm  $LIBS"
10732 cat >conftest.$ac_ext <<_ACEOF
10733 /* confdefs.h.  */
10734 _ACEOF
10735 cat confdefs.h >>conftest.$ac_ext
10736 cat >>conftest.$ac_ext <<_ACEOF
10737 /* end confdefs.h.  */
10738
10739 /* Override any gcc2 internal prototype to avoid an error.  */
10740 #ifdef __cplusplus
10741 extern "C"
10742 #endif
10743 /* We use char because int might match the return type of a gcc2
10744    builtin and then its argument prototype would still apply.  */
10745 char yn ();
10746 int
10747 main ()
10748 {
10749 yn ();
10750   ;
10751   return 0;
10752 }
10753 _ACEOF
10754 rm -f conftest.$ac_objext conftest$ac_exeext
10755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10756   (eval $ac_link) 2>conftest.er1
10757   ac_status=$?
10758   grep -v '^ *+' conftest.er1 >conftest.err
10759   rm -f conftest.er1
10760   cat conftest.err >&5
10761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762   (exit $ac_status); } &&
10763          { ac_try='test -z "$ac_c_werror_flag"
10764                          || test ! -s conftest.err'
10765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10766   (eval $ac_try) 2>&5
10767   ac_status=$?
10768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769   (exit $ac_status); }; } &&
10770          { ac_try='test -s conftest$ac_exeext'
10771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10772   (eval $ac_try) 2>&5
10773   ac_status=$?
10774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775   (exit $ac_status); }; }; then
10776   ac_cv_lib_m_yn=yes
10777 else
10778   echo "$as_me: failed program was:" >&5
10779 sed 's/^/| /' conftest.$ac_ext >&5
10780
10781 ac_cv_lib_m_yn=no
10782 fi
10783 rm -f conftest.err conftest.$ac_objext \
10784       conftest$ac_exeext conftest.$ac_ext
10785 LIBS=$ac_check_lib_save_LIBS
10786 fi
10787 echo "$as_me:$LINENO: result: $ac_cv_lib_m_yn" >&5
10788 echo "${ECHO_T}$ac_cv_lib_m_yn" >&6
10789 if test $ac_cv_lib_m_yn = yes; then
10790
10791 cat >>confdefs.h <<\_ACEOF
10792 #define HAVE_YN 1
10793 _ACEOF
10794
10795 fi
10796
10797 echo "$as_me:$LINENO: checking for ynf in -lm" >&5
10798 echo $ECHO_N "checking for ynf in -lm... $ECHO_C" >&6
10799 if test "${ac_cv_lib_m_ynf+set}" = set; then
10800   echo $ECHO_N "(cached) $ECHO_C" >&6
10801 else
10802   ac_check_lib_save_LIBS=$LIBS
10803 LIBS="-lm  $LIBS"
10804 cat >conftest.$ac_ext <<_ACEOF
10805 /* confdefs.h.  */
10806 _ACEOF
10807 cat confdefs.h >>conftest.$ac_ext
10808 cat >>conftest.$ac_ext <<_ACEOF
10809 /* end confdefs.h.  */
10810
10811 /* Override any gcc2 internal prototype to avoid an error.  */
10812 #ifdef __cplusplus
10813 extern "C"
10814 #endif
10815 /* We use char because int might match the return type of a gcc2
10816    builtin and then its argument prototype would still apply.  */
10817 char ynf ();
10818 int
10819 main ()
10820 {
10821 ynf ();
10822   ;
10823   return 0;
10824 }
10825 _ACEOF
10826 rm -f conftest.$ac_objext conftest$ac_exeext
10827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10828   (eval $ac_link) 2>conftest.er1
10829   ac_status=$?
10830   grep -v '^ *+' conftest.er1 >conftest.err
10831   rm -f conftest.er1
10832   cat conftest.err >&5
10833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834   (exit $ac_status); } &&
10835          { ac_try='test -z "$ac_c_werror_flag"
10836                          || test ! -s conftest.err'
10837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10838   (eval $ac_try) 2>&5
10839   ac_status=$?
10840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841   (exit $ac_status); }; } &&
10842          { ac_try='test -s conftest$ac_exeext'
10843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10844   (eval $ac_try) 2>&5
10845   ac_status=$?
10846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847   (exit $ac_status); }; }; then
10848   ac_cv_lib_m_ynf=yes
10849 else
10850   echo "$as_me: failed program was:" >&5
10851 sed 's/^/| /' conftest.$ac_ext >&5
10852
10853 ac_cv_lib_m_ynf=no
10854 fi
10855 rm -f conftest.err conftest.$ac_objext \
10856       conftest$ac_exeext conftest.$ac_ext
10857 LIBS=$ac_check_lib_save_LIBS
10858 fi
10859 echo "$as_me:$LINENO: result: $ac_cv_lib_m_ynf" >&5
10860 echo "${ECHO_T}$ac_cv_lib_m_ynf" >&6
10861 if test $ac_cv_lib_m_ynf = yes; then
10862
10863 cat >>confdefs.h <<\_ACEOF
10864 #define HAVE_YNF 1
10865 _ACEOF
10866
10867 fi
10868
10869
10870 # Fallback in case isfinite is not available.
10871 echo "$as_me:$LINENO: checking for finite in -lm" >&5
10872 echo $ECHO_N "checking for finite in -lm... $ECHO_C" >&6
10873 if test "${ac_cv_lib_m_finite+set}" = set; then
10874   echo $ECHO_N "(cached) $ECHO_C" >&6
10875 else
10876   ac_check_lib_save_LIBS=$LIBS
10877 LIBS="-lm  $LIBS"
10878 cat >conftest.$ac_ext <<_ACEOF
10879 /* confdefs.h.  */
10880 _ACEOF
10881 cat confdefs.h >>conftest.$ac_ext
10882 cat >>conftest.$ac_ext <<_ACEOF
10883 /* end confdefs.h.  */
10884
10885 /* Override any gcc2 internal prototype to avoid an error.  */
10886 #ifdef __cplusplus
10887 extern "C"
10888 #endif
10889 /* We use char because int might match the return type of a gcc2
10890    builtin and then its argument prototype would still apply.  */
10891 char finite ();
10892 int
10893 main ()
10894 {
10895 finite ();
10896   ;
10897   return 0;
10898 }
10899 _ACEOF
10900 rm -f conftest.$ac_objext conftest$ac_exeext
10901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10902   (eval $ac_link) 2>conftest.er1
10903   ac_status=$?
10904   grep -v '^ *+' conftest.er1 >conftest.err
10905   rm -f conftest.er1
10906   cat conftest.err >&5
10907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908   (exit $ac_status); } &&
10909          { ac_try='test -z "$ac_c_werror_flag"
10910                          || test ! -s conftest.err'
10911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10912   (eval $ac_try) 2>&5
10913   ac_status=$?
10914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915   (exit $ac_status); }; } &&
10916          { ac_try='test -s conftest$ac_exeext'
10917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10918   (eval $ac_try) 2>&5
10919   ac_status=$?
10920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921   (exit $ac_status); }; }; then
10922   ac_cv_lib_m_finite=yes
10923 else
10924   echo "$as_me: failed program was:" >&5
10925 sed 's/^/| /' conftest.$ac_ext >&5
10926
10927 ac_cv_lib_m_finite=no
10928 fi
10929 rm -f conftest.err conftest.$ac_objext \
10930       conftest$ac_exeext conftest.$ac_ext
10931 LIBS=$ac_check_lib_save_LIBS
10932 fi
10933 echo "$as_me:$LINENO: result: $ac_cv_lib_m_finite" >&5
10934 echo "${ECHO_T}$ac_cv_lib_m_finite" >&6
10935 if test $ac_cv_lib_m_finite = yes; then
10936
10937 cat >>confdefs.h <<\_ACEOF
10938 #define HAVE_FINITE 1
10939 _ACEOF
10940
10941 fi
10942
10943
10944 # Let the user override this
10945 # Check whether --enable-cmath or --disable-cmath was given.
10946 if test "${enable_cmath+set}" = set; then
10947   enableval="$enable_cmath"
10948   need_math=$enableval
10949 fi;
10950 if test "$need_math" = "yes"; then
10951         { echo "$as_me:$LINENO: Including complex math functions in libgfor" >&5
10952 echo "$as_me: Including complex math functions in libgfor" >&6;};
10953   extra_math_obj='$(gfor_cmath_obj)'
10954 fi
10955
10956 MATH_OBJ="$extra_math_obj"
10957
10958
10959 # The standard autoconf HAVE_STRUCT_TIMEZONE doesn't actually check
10960 # for struct timezone, as you might think.  We also need to check how
10961 # to call gettimeofday if we have it.
10962 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10963 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10964 if test "${ac_cv_header_time+set}" = set; then
10965   echo $ECHO_N "(cached) $ECHO_C" >&6
10966 else
10967   cat >conftest.$ac_ext <<_ACEOF
10968 /* confdefs.h.  */
10969 _ACEOF
10970 cat confdefs.h >>conftest.$ac_ext
10971 cat >>conftest.$ac_ext <<_ACEOF
10972 /* end confdefs.h.  */
10973 #include <sys/types.h>
10974 #include <sys/time.h>
10975 #include <time.h>
10976
10977 int
10978 main ()
10979 {
10980 if ((struct tm *) 0)
10981 return 0;
10982   ;
10983   return 0;
10984 }
10985 _ACEOF
10986 rm -f conftest.$ac_objext
10987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10988   (eval $ac_compile) 2>conftest.er1
10989   ac_status=$?
10990   grep -v '^ *+' conftest.er1 >conftest.err
10991   rm -f conftest.er1
10992   cat conftest.err >&5
10993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994   (exit $ac_status); } &&
10995          { ac_try='test -z "$ac_c_werror_flag"
10996                          || test ! -s conftest.err'
10997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10998   (eval $ac_try) 2>&5
10999   ac_status=$?
11000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001   (exit $ac_status); }; } &&
11002          { ac_try='test -s conftest.$ac_objext'
11003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11004   (eval $ac_try) 2>&5
11005   ac_status=$?
11006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007   (exit $ac_status); }; }; then
11008   ac_cv_header_time=yes
11009 else
11010   echo "$as_me: failed program was:" >&5
11011 sed 's/^/| /' conftest.$ac_ext >&5
11012
11013 ac_cv_header_time=no
11014 fi
11015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11016 fi
11017 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11018 echo "${ECHO_T}$ac_cv_header_time" >&6
11019 if test $ac_cv_header_time = yes; then
11020
11021 cat >>confdefs.h <<\_ACEOF
11022 #define TIME_WITH_SYS_TIME 1
11023 _ACEOF
11024
11025 fi
11026
11027
11028
11029 for ac_func in gettimeofday
11030 do
11031 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11032 echo "$as_me:$LINENO: checking for $ac_func" >&5
11033 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11034 if eval "test \"\${$as_ac_var+set}\" = set"; then
11035   echo $ECHO_N "(cached) $ECHO_C" >&6
11036 else
11037   cat >conftest.$ac_ext <<_ACEOF
11038 /* confdefs.h.  */
11039 _ACEOF
11040 cat confdefs.h >>conftest.$ac_ext
11041 cat >>conftest.$ac_ext <<_ACEOF
11042 /* end confdefs.h.  */
11043 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11044    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11045 #define $ac_func innocuous_$ac_func
11046
11047 /* System header to define __stub macros and hopefully few prototypes,
11048     which can conflict with char $ac_func (); below.
11049     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11050     <limits.h> exists even on freestanding compilers.  */
11051
11052 #ifdef __STDC__
11053 # include <limits.h>
11054 #else
11055 # include <assert.h>
11056 #endif
11057
11058 #undef $ac_func
11059
11060 /* Override any gcc2 internal prototype to avoid an error.  */
11061 #ifdef __cplusplus
11062 extern "C"
11063 {
11064 #endif
11065 /* We use char because int might match the return type of a gcc2
11066    builtin and then its argument prototype would still apply.  */
11067 char $ac_func ();
11068 /* The GNU C library defines this for functions which it implements
11069     to always fail with ENOSYS.  Some functions are actually named
11070     something starting with __ and the normal name is an alias.  */
11071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11072 choke me
11073 #else
11074 char (*f) () = $ac_func;
11075 #endif
11076 #ifdef __cplusplus
11077 }
11078 #endif
11079
11080 int
11081 main ()
11082 {
11083 return f != $ac_func;
11084   ;
11085   return 0;
11086 }
11087 _ACEOF
11088 rm -f conftest.$ac_objext conftest$ac_exeext
11089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11090   (eval $ac_link) 2>conftest.er1
11091   ac_status=$?
11092   grep -v '^ *+' conftest.er1 >conftest.err
11093   rm -f conftest.er1
11094   cat conftest.err >&5
11095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096   (exit $ac_status); } &&
11097          { ac_try='test -z "$ac_c_werror_flag"
11098                          || test ! -s conftest.err'
11099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11100   (eval $ac_try) 2>&5
11101   ac_status=$?
11102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103   (exit $ac_status); }; } &&
11104          { ac_try='test -s conftest$ac_exeext'
11105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11106   (eval $ac_try) 2>&5
11107   ac_status=$?
11108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109   (exit $ac_status); }; }; then
11110   eval "$as_ac_var=yes"
11111 else
11112   echo "$as_me: failed program was:" >&5
11113 sed 's/^/| /' conftest.$ac_ext >&5
11114
11115 eval "$as_ac_var=no"
11116 fi
11117 rm -f conftest.err conftest.$ac_objext \
11118       conftest$ac_exeext conftest.$ac_ext
11119 fi
11120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11121 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11122 if test `eval echo '${'$as_ac_var'}'` = yes; then
11123   cat >>confdefs.h <<_ACEOF
11124 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11125 _ACEOF
11126
11127 fi
11128 done
11129
11130   if test "$ac_cv_func_gettimeofday" = yes; then
11131     echo "$as_me:$LINENO: checking for struct timezone" >&5
11132 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
11133 if test "${gfor_cv_struct_timezone+set}" = set; then
11134   echo $ECHO_N "(cached) $ECHO_C" >&6
11135 else
11136   cat >conftest.$ac_ext <<_ACEOF
11137 /* confdefs.h.  */
11138 _ACEOF
11139 cat confdefs.h >>conftest.$ac_ext
11140 cat >>conftest.$ac_ext <<_ACEOF
11141 /* end confdefs.h.  */
11142 #include <sys/time.h>
11143 int
11144 main ()
11145 {
11146 struct timezone tz;
11147   ;
11148   return 0;
11149 }
11150 _ACEOF
11151 rm -f conftest.$ac_objext
11152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11153   (eval $ac_compile) 2>conftest.er1
11154   ac_status=$?
11155   grep -v '^ *+' conftest.er1 >conftest.err
11156   rm -f conftest.er1
11157   cat conftest.err >&5
11158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159   (exit $ac_status); } &&
11160          { ac_try='test -z "$ac_c_werror_flag"
11161                          || test ! -s conftest.err'
11162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11163   (eval $ac_try) 2>&5
11164   ac_status=$?
11165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166   (exit $ac_status); }; } &&
11167          { ac_try='test -s conftest.$ac_objext'
11168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11169   (eval $ac_try) 2>&5
11170   ac_status=$?
11171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172   (exit $ac_status); }; }; then
11173   gfor_cv_struct_timezone=yes
11174 else
11175   echo "$as_me: failed program was:" >&5
11176 sed 's/^/| /' conftest.$ac_ext >&5
11177
11178 gfor_cv_struct_timezone=no
11179 fi
11180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11181 fi
11182 echo "$as_me:$LINENO: result: $gfor_cv_struct_timezone" >&5
11183 echo "${ECHO_T}$gfor_cv_struct_timezone" >&6
11184     if test $gfor_cv_struct_timezone = yes; then
11185                   if test "$cross_compiling" = yes; then
11186   gfor_have_struct_timezone=yes
11187 else
11188   cat >conftest.$ac_ext <<_ACEOF
11189 /* confdefs.h.  */
11190 _ACEOF
11191 cat confdefs.h >>conftest.$ac_ext
11192 cat >>conftest.$ac_ext <<_ACEOF
11193 /* end confdefs.h.  */
11194
11195 #ifdef TIME_WITH_SYS_TIME
11196 #include <sys/time.h>
11197 #include <time.h>
11198 #else
11199 #ifdef HAVE_SYS_TIME_H
11200 #include <sys/time.h>
11201 #else
11202 #include <time.h>
11203 #endif
11204 #endif
11205 main ()
11206 {
11207   struct timeval time;
11208   struct timezone dummy;
11209   if (gettimeofday (&time, &dummy))
11210     exit (1);
11211   else
11212     exit (0);
11213 }
11214 _ACEOF
11215 rm -f conftest$ac_exeext
11216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11217   (eval $ac_link) 2>&5
11218   ac_status=$?
11219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11222   (eval $ac_try) 2>&5
11223   ac_status=$?
11224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225   (exit $ac_status); }; }; then
11226   gfor_have_struct_timezone=yes
11227 else
11228   echo "$as_me: program exited with status $ac_status" >&5
11229 echo "$as_me: failed program was:" >&5
11230 sed 's/^/| /' conftest.$ac_ext >&5
11231
11232 ( exit $ac_status )
11233 gfor_have_struct_timezone=no
11234 fi
11235 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11236 fi
11237       if test $gfor_have_struct_timezone = yes; then
11238
11239 cat >>confdefs.h <<\_ACEOF
11240 #define HAVE_TIMEZONE 1
11241 _ACEOF
11242
11243       fi
11244     fi
11245
11246     echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
11247 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
11248 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
11249   echo $ECHO_N "(cached) $ECHO_C" >&6
11250 else
11251   cat >conftest.$ac_ext <<_ACEOF
11252 /* confdefs.h.  */
11253 _ACEOF
11254 cat confdefs.h >>conftest.$ac_ext
11255 cat >>conftest.$ac_ext <<_ACEOF
11256 /* end confdefs.h.  */
11257
11258 #ifdef TIME_WITH_SYS_TIME
11259 #include <sys/time.h>
11260 #include <time.h>
11261 #else
11262 #ifdef HAVE_SYS_TIME_H
11263 #include <sys/time.h>
11264 #else
11265 #include <time.h>
11266 #endif
11267 #endif
11268
11269 int
11270 main ()
11271 {
11272
11273       struct timeval time;
11274 #ifdef HAVE_TIMEZONE
11275       struct timezone dummy;
11276 #define DUMMY &dummy
11277 #else
11278 #define DUMMY NULL
11279 #endif
11280       gettimeofday (&time, DUMMY);
11281   ;
11282   return 0;
11283 }
11284 _ACEOF
11285 rm -f conftest.$ac_objext conftest$ac_exeext
11286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11287   (eval $ac_link) 2>conftest.er1
11288   ac_status=$?
11289   grep -v '^ *+' conftest.er1 >conftest.err
11290   rm -f conftest.er1
11291   cat conftest.err >&5
11292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293   (exit $ac_status); } &&
11294          { ac_try='test -z "$ac_c_werror_flag"
11295                          || test ! -s conftest.err'
11296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11297   (eval $ac_try) 2>&5
11298   ac_status=$?
11299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300   (exit $ac_status); }; } &&
11301          { ac_try='test -s conftest$ac_exeext'
11302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11303   (eval $ac_try) 2>&5
11304   ac_status=$?
11305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306   (exit $ac_status); }; }; then
11307   emacs_cv_gettimeofday_two_arguments=yes
11308 else
11309   echo "$as_me: failed program was:" >&5
11310 sed 's/^/| /' conftest.$ac_ext >&5
11311
11312 emacs_cv_gettimeofday_two_arguments=no
11313 fi
11314 rm -f conftest.err conftest.$ac_objext \
11315       conftest$ac_exeext conftest.$ac_ext
11316 fi
11317 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
11318 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
11319     if test $emacs_cv_gettimeofday_two_arguments = no; then
11320
11321 cat >>confdefs.h <<\_ACEOF
11322 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11323 _ACEOF
11324
11325     fi
11326   fi
11327
11328 # Attempt to assert that the target is of common type in case we don't
11329 # have C99 integer types at all.
11330
11331   echo "$as_me:$LINENO: checking whether the target is ILP32" >&5
11332 echo $ECHO_N "checking whether the target is ILP32... $ECHO_C" >&6
11333 if test "${target_ilp32+set}" = set; then
11334   echo $ECHO_N "(cached) $ECHO_C" >&6
11335 else
11336
11337   save_CFLAGS="$CFLAGS"
11338   CFLAGS="-O2"
11339   cat >conftest.$ac_ext <<_ACEOF
11340 /* confdefs.h.  */
11341 _ACEOF
11342 cat confdefs.h >>conftest.$ac_ext
11343 cat >>conftest.$ac_ext <<_ACEOF
11344 /* end confdefs.h.  */
11345
11346 int
11347 main ()
11348 {
11349
11350 if (sizeof(int) == 4 && sizeof(long) == 4 && sizeof(void *) == 4)
11351   ;
11352 else
11353   undefined_function ();
11354
11355   ;
11356   return 0;
11357 }
11358 _ACEOF
11359 rm -f conftest.$ac_objext conftest$ac_exeext
11360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11361   (eval $ac_link) 2>conftest.er1
11362   ac_status=$?
11363   grep -v '^ *+' conftest.er1 >conftest.err
11364   rm -f conftest.er1
11365   cat conftest.err >&5
11366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367   (exit $ac_status); } &&
11368          { ac_try='test -z "$ac_c_werror_flag"
11369                          || test ! -s conftest.err'
11370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11371   (eval $ac_try) 2>&5
11372   ac_status=$?
11373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374   (exit $ac_status); }; } &&
11375          { ac_try='test -s conftest$ac_exeext'
11376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11377   (eval $ac_try) 2>&5
11378   ac_status=$?
11379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380   (exit $ac_status); }; }; then
11381   target_ilp32=yes
11382 else
11383   echo "$as_me: failed program was:" >&5
11384 sed 's/^/| /' conftest.$ac_ext >&5
11385
11386 target_ilp32=no
11387 fi
11388 rm -f conftest.err conftest.$ac_objext \
11389       conftest$ac_exeext conftest.$ac_ext
11390   CFLAGS="$save_CFLAGS"
11391 fi
11392 echo "$as_me:$LINENO: result: $target_ilp32" >&5
11393 echo "${ECHO_T}$target_ilp32" >&6
11394   if test $target_ilp32 = yes; then
11395
11396 cat >>confdefs.h <<\_ACEOF
11397 #define TARGET_ILP32 1
11398 _ACEOF
11399
11400   fi
11401
11402
11403 # Check out attribute support.
11404
11405   echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5
11406 echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6
11407 if test "${have_attribute_visibility+set}" = set; then
11408   echo $ECHO_N "(cached) $ECHO_C" >&6
11409 else
11410
11411   save_CFLAGS="$CFLAGS"
11412   CFLAGS="$CFLAGS -Werror"
11413   cat >conftest.$ac_ext <<_ACEOF
11414 /* confdefs.h.  */
11415 _ACEOF
11416 cat confdefs.h >>conftest.$ac_ext
11417 cat >>conftest.$ac_ext <<_ACEOF
11418 /* end confdefs.h.  */
11419 void __attribute__((visibility("hidden"))) foo(void) { }
11420 int
11421 main ()
11422 {
11423
11424   ;
11425   return 0;
11426 }
11427 _ACEOF
11428 rm -f conftest.$ac_objext
11429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11430   (eval $ac_compile) 2>conftest.er1
11431   ac_status=$?
11432   grep -v '^ *+' conftest.er1 >conftest.err
11433   rm -f conftest.er1
11434   cat conftest.err >&5
11435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436   (exit $ac_status); } &&
11437          { ac_try='test -z "$ac_c_werror_flag"
11438                          || test ! -s conftest.err'
11439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11440   (eval $ac_try) 2>&5
11441   ac_status=$?
11442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443   (exit $ac_status); }; } &&
11444          { ac_try='test -s conftest.$ac_objext'
11445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11446   (eval $ac_try) 2>&5
11447   ac_status=$?
11448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449   (exit $ac_status); }; }; then
11450   have_attribute_visibility=yes
11451 else
11452   echo "$as_me: failed program was:" >&5
11453 sed 's/^/| /' conftest.$ac_ext >&5
11454
11455 have_attribute_visibility=no
11456 fi
11457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11458   CFLAGS="$save_CFLAGS"
11459 fi
11460 echo "$as_me:$LINENO: result: $have_attribute_visibility" >&5
11461 echo "${ECHO_T}$have_attribute_visibility" >&6
11462   if test $have_attribute_visibility = yes; then
11463
11464 cat >>confdefs.h <<\_ACEOF
11465 #define HAVE_ATTRIBUTE_VISIBILITY 1
11466 _ACEOF
11467
11468   fi
11469
11470   echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5
11471 echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6
11472 if test "${have_attribute_dllexport+set}" = set; then
11473   echo $ECHO_N "(cached) $ECHO_C" >&6
11474 else
11475
11476   save_CFLAGS="$CFLAGS"
11477   CFLAGS="$CFLAGS -Werror"
11478   cat >conftest.$ac_ext <<_ACEOF
11479 /* confdefs.h.  */
11480 _ACEOF
11481 cat confdefs.h >>conftest.$ac_ext
11482 cat >>conftest.$ac_ext <<_ACEOF
11483 /* end confdefs.h.  */
11484 void __attribute__((dllexport)) foo(void) { }
11485 int
11486 main ()
11487 {
11488
11489   ;
11490   return 0;
11491 }
11492 _ACEOF
11493 rm -f conftest.$ac_objext
11494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11495   (eval $ac_compile) 2>conftest.er1
11496   ac_status=$?
11497   grep -v '^ *+' conftest.er1 >conftest.err
11498   rm -f conftest.er1
11499   cat conftest.err >&5
11500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501   (exit $ac_status); } &&
11502          { ac_try='test -z "$ac_c_werror_flag"
11503                          || test ! -s conftest.err'
11504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11505   (eval $ac_try) 2>&5
11506   ac_status=$?
11507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508   (exit $ac_status); }; } &&
11509          { ac_try='test -s conftest.$ac_objext'
11510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11511   (eval $ac_try) 2>&5
11512   ac_status=$?
11513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514   (exit $ac_status); }; }; then
11515   have_attribute_dllexport=yes
11516 else
11517   echo "$as_me: failed program was:" >&5
11518 sed 's/^/| /' conftest.$ac_ext >&5
11519
11520 have_attribute_dllexport=no
11521 fi
11522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11523   CFLAGS="$save_CFLAGS"
11524 fi
11525 echo "$as_me:$LINENO: result: $have_attribute_dllexport" >&5
11526 echo "${ECHO_T}$have_attribute_dllexport" >&6
11527   if test $have_attribute_dllexport = yes; then
11528
11529 cat >>confdefs.h <<\_ACEOF
11530 #define HAVE_ATTRIBUTE_DLLEXPORT 1
11531 _ACEOF
11532
11533   fi
11534
11535   echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5
11536 echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6
11537 if test "${have_attribute_alias+set}" = set; then
11538   echo $ECHO_N "(cached) $ECHO_C" >&6
11539 else
11540
11541   cat >conftest.$ac_ext <<_ACEOF
11542 /* confdefs.h.  */
11543 _ACEOF
11544 cat confdefs.h >>conftest.$ac_ext
11545 cat >>conftest.$ac_ext <<_ACEOF
11546 /* end confdefs.h.  */
11547
11548 #define ULP     STR1(__USER_LABEL_PREFIX__)
11549 #define STR1(x) STR2(x)
11550 #define STR2(x) #x
11551 void foo(void) { }
11552 extern void bar(void) __attribute__((alias(ULP "foo")));
11553 int
11554 main ()
11555 {
11556 bar();
11557   ;
11558   return 0;
11559 }
11560 _ACEOF
11561 rm -f conftest.$ac_objext conftest$ac_exeext
11562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11563   (eval $ac_link) 2>conftest.er1
11564   ac_status=$?
11565   grep -v '^ *+' conftest.er1 >conftest.err
11566   rm -f conftest.er1
11567   cat conftest.err >&5
11568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569   (exit $ac_status); } &&
11570          { ac_try='test -z "$ac_c_werror_flag"
11571                          || test ! -s conftest.err'
11572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11573   (eval $ac_try) 2>&5
11574   ac_status=$?
11575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576   (exit $ac_status); }; } &&
11577          { ac_try='test -s conftest$ac_exeext'
11578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11579   (eval $ac_try) 2>&5
11580   ac_status=$?
11581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582   (exit $ac_status); }; }; then
11583   have_attribute_alias=yes
11584 else
11585   echo "$as_me: failed program was:" >&5
11586 sed 's/^/| /' conftest.$ac_ext >&5
11587
11588 have_attribute_alias=no
11589 fi
11590 rm -f conftest.err conftest.$ac_objext \
11591       conftest$ac_exeext conftest.$ac_ext
11592 fi
11593 echo "$as_me:$LINENO: result: $have_attribute_alias" >&5
11594 echo "${ECHO_T}$have_attribute_alias" >&6
11595   if test $have_attribute_alias = yes; then
11596
11597 cat >>confdefs.h <<\_ACEOF
11598 #define HAVE_ATTRIBUTE_ALIAS 1
11599 _ACEOF
11600
11601   fi
11602
11603 cat >confcache <<\_ACEOF
11604 # This file is a shell script that caches the results of configure
11605 # tests run on this system so they can be shared between configure
11606 # scripts and configure runs, see configure's option --config-cache.
11607 # It is not useful on other systems.  If it contains results you don't
11608 # want to keep, you may remove or edit it.
11609 #
11610 # config.status only pays attention to the cache file if you give it
11611 # the --recheck option to rerun configure.
11612 #
11613 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11614 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11615 # following values.
11616
11617 _ACEOF
11618
11619 # The following way of writing the cache mishandles newlines in values,
11620 # but we know of no workaround that is simple, portable, and efficient.
11621 # So, don't put newlines in cache variables' values.
11622 # Ultrix sh set writes to stderr and can't be redirected directly,
11623 # and sets the high bit in the cache file unless we assign to the vars.
11624 {
11625   (set) 2>&1 |
11626     case `(ac_space=' '; set | grep ac_space) 2>&1` in
11627     *ac_space=\ *)
11628       # `set' does not quote correctly, so add quotes (double-quote
11629       # substitution turns \\\\ into \\, and sed turns \\ into \).
11630       sed -n \
11631         "s/'/'\\\\''/g;
11632           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11633       ;;
11634     *)
11635       # `set' quotes correctly as required by POSIX, so do not add quotes.
11636       sed -n \
11637         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11638       ;;
11639     esac;
11640 } |
11641   sed '
11642      t clear
11643      : clear
11644      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11645      t end
11646      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11647      : end' >>confcache
11648 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11649   if test -w $cache_file; then
11650     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11651     cat confcache >$cache_file
11652   else
11653     echo "not updating unwritable cache $cache_file"
11654   fi
11655 fi
11656 rm -f confcache
11657
11658 if test ${multilib} = yes; then
11659   multilib_arg="--enable-multilib"
11660 else
11661   multilib_arg=
11662 fi
11663
11664 # Write our Makefile.
11665           ac_config_files="$ac_config_files Makefile"
11666
11667 cat >confcache <<\_ACEOF
11668 # This file is a shell script that caches the results of configure
11669 # tests run on this system so they can be shared between configure
11670 # scripts and configure runs, see configure's option --config-cache.
11671 # It is not useful on other systems.  If it contains results you don't
11672 # want to keep, you may remove or edit it.
11673 #
11674 # config.status only pays attention to the cache file if you give it
11675 # the --recheck option to rerun configure.
11676 #
11677 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11678 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11679 # following values.
11680
11681 _ACEOF
11682
11683 # The following way of writing the cache mishandles newlines in values,
11684 # but we know of no workaround that is simple, portable, and efficient.
11685 # So, don't put newlines in cache variables' values.
11686 # Ultrix sh set writes to stderr and can't be redirected directly,
11687 # and sets the high bit in the cache file unless we assign to the vars.
11688 {
11689   (set) 2>&1 |
11690     case `(ac_space=' '; set | grep ac_space) 2>&1` in
11691     *ac_space=\ *)
11692       # `set' does not quote correctly, so add quotes (double-quote
11693       # substitution turns \\\\ into \\, and sed turns \\ into \).
11694       sed -n \
11695         "s/'/'\\\\''/g;
11696           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11697       ;;
11698     *)
11699       # `set' quotes correctly as required by POSIX, so do not add quotes.
11700       sed -n \
11701         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11702       ;;
11703     esac;
11704 } |
11705   sed '
11706      t clear
11707      : clear
11708      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11709      t end
11710      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11711      : end' >>confcache
11712 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11713   if test -w $cache_file; then
11714     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11715     cat confcache >$cache_file
11716   else
11717     echo "not updating unwritable cache $cache_file"
11718   fi
11719 fi
11720 rm -f confcache
11721
11722 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11723 # Let make expand exec_prefix.
11724 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11725
11726 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11727 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11728 # trailing colons and then remove the whole line if VPATH becomes empty
11729 # (actually we leave an empty line to preserve line numbers).
11730 if test "x$srcdir" = x.; then
11731   ac_vpsub='/^[  ]*VPATH[        ]*=/{
11732 s/:*\$(srcdir):*/:/;
11733 s/:*\${srcdir}:*/:/;
11734 s/:*@srcdir@:*/:/;
11735 s/^\([^=]*=[     ]*\):*/\1/;
11736 s/:*$//;
11737 s/^[^=]*=[       ]*$//;
11738 }'
11739 fi
11740
11741 DEFS=-DHAVE_CONFIG_H
11742
11743 ac_libobjs=
11744 ac_ltlibobjs=
11745 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11746   # 1. Remove the extension, and $U if already installed.
11747   ac_i=`echo "$ac_i" |
11748          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11749   # 2. Add them.
11750   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11751   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11752 done
11753 LIBOBJS=$ac_libobjs
11754
11755 LTLIBOBJS=$ac_ltlibobjs
11756
11757
11758 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11759   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11760 Usually this means the macro was only invoked conditionally." >&5
11761 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11762 Usually this means the macro was only invoked conditionally." >&2;}
11763    { (exit 1); exit 1; }; }
11764 fi
11765
11766 : ${CONFIG_STATUS=./config.status}
11767 ac_clean_files_save=$ac_clean_files
11768 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11769 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11770 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11771 cat >$CONFIG_STATUS <<_ACEOF
11772 #! $SHELL
11773 # Generated by $as_me.
11774 # Run this file to recreate the current configuration.
11775 # Compiler output produced by configure, useful for debugging
11776 # configure, is in config.log if it exists.
11777
11778 debug=false
11779 ac_cs_recheck=false
11780 ac_cs_silent=false
11781 SHELL=\${CONFIG_SHELL-$SHELL}
11782 _ACEOF
11783
11784 cat >>$CONFIG_STATUS <<\_ACEOF
11785 ## --------------------- ##
11786 ## M4sh Initialization.  ##
11787 ## --------------------- ##
11788
11789 # Be Bourne compatible
11790 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11791   emulate sh
11792   NULLCMD=:
11793   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11794   # is contrary to our usage.  Disable this feature.
11795   alias -g '${1+"$@"}'='"$@"'
11796 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11797   set -o posix
11798 fi
11799 DUALCASE=1; export DUALCASE # for MKS sh
11800
11801 # Support unset when possible.
11802 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11803   as_unset=unset
11804 else
11805   as_unset=false
11806 fi
11807
11808
11809 # Work around bugs in pre-3.0 UWIN ksh.
11810 $as_unset ENV MAIL MAILPATH
11811 PS1='$ '
11812 PS2='> '
11813 PS4='+ '
11814
11815 # NLS nuisances.
11816 for as_var in \
11817   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11818   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11819   LC_TELEPHONE LC_TIME
11820 do
11821   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11822     eval $as_var=C; export $as_var
11823   else
11824     $as_unset $as_var
11825   fi
11826 done
11827
11828 # Required to use basename.
11829 if expr a : '\(a\)' >/dev/null 2>&1; then
11830   as_expr=expr
11831 else
11832   as_expr=false
11833 fi
11834
11835 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11836   as_basename=basename
11837 else
11838   as_basename=false
11839 fi
11840
11841
11842 # Name of the executable.
11843 as_me=`$as_basename "$0" ||
11844 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11845          X"$0" : 'X\(//\)$' \| \
11846          X"$0" : 'X\(/\)$' \| \
11847          .     : '\(.\)' 2>/dev/null ||
11848 echo X/"$0" |
11849     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11850           /^X\/\(\/\/\)$/{ s//\1/; q; }
11851           /^X\/\(\/\).*/{ s//\1/; q; }
11852           s/.*/./; q'`
11853
11854
11855 # PATH needs CR, and LINENO needs CR and PATH.
11856 # Avoid depending upon Character Ranges.
11857 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11858 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11859 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11860 as_cr_digits='0123456789'
11861 as_cr_alnum=$as_cr_Letters$as_cr_digits
11862
11863 # The user is always right.
11864 if test "${PATH_SEPARATOR+set}" != set; then
11865   echo "#! /bin/sh" >conf$$.sh
11866   echo  "exit 0"   >>conf$$.sh
11867   chmod +x conf$$.sh
11868   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11869     PATH_SEPARATOR=';'
11870   else
11871     PATH_SEPARATOR=:
11872   fi
11873   rm -f conf$$.sh
11874 fi
11875
11876
11877   as_lineno_1=$LINENO
11878   as_lineno_2=$LINENO
11879   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11880   test "x$as_lineno_1" != "x$as_lineno_2" &&
11881   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11882   # Find who we are.  Look in the path if we contain no path at all
11883   # relative or not.
11884   case $0 in
11885     *[\\/]* ) as_myself=$0 ;;
11886     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11887 for as_dir in $PATH
11888 do
11889   IFS=$as_save_IFS
11890   test -z "$as_dir" && as_dir=.
11891   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11892 done
11893
11894        ;;
11895   esac
11896   # We did not find ourselves, most probably we were run as `sh COMMAND'
11897   # in which case we are not to be found in the path.
11898   if test "x$as_myself" = x; then
11899     as_myself=$0
11900   fi
11901   if test ! -f "$as_myself"; then
11902     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11903 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11904    { (exit 1); exit 1; }; }
11905   fi
11906   case $CONFIG_SHELL in
11907   '')
11908     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11909 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11910 do
11911   IFS=$as_save_IFS
11912   test -z "$as_dir" && as_dir=.
11913   for as_base in sh bash ksh sh5; do
11914          case $as_dir in
11915          /*)
11916            if ("$as_dir/$as_base" -c '
11917   as_lineno_1=$LINENO
11918   as_lineno_2=$LINENO
11919   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11920   test "x$as_lineno_1" != "x$as_lineno_2" &&
11921   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11922              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11923              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11924              CONFIG_SHELL=$as_dir/$as_base
11925              export CONFIG_SHELL
11926              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11927            fi;;
11928          esac
11929        done
11930 done
11931 ;;
11932   esac
11933
11934   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11935   # uniformly replaced by the line number.  The first 'sed' inserts a
11936   # line-number line before each line; the second 'sed' does the real
11937   # work.  The second script uses 'N' to pair each line-number line
11938   # with the numbered line, and appends trailing '-' during
11939   # substitution so that $LINENO is not a special case at line end.
11940   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11941   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11942   sed '=' <$as_myself |
11943     sed '
11944       N
11945       s,$,-,
11946       : loop
11947       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11948       t loop
11949       s,-$,,
11950       s,^['$as_cr_digits']*\n,,
11951     ' >$as_me.lineno &&
11952   chmod +x $as_me.lineno ||
11953     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11954 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11955    { (exit 1); exit 1; }; }
11956
11957   # Don't try to exec as it changes $[0], causing all sort of problems
11958   # (the dirname of $[0] is not the place where we might find the
11959   # original and so on.  Autoconf is especially sensible to this).
11960   . ./$as_me.lineno
11961   # Exit status is that of the last command.
11962   exit
11963 }
11964
11965
11966 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11967   *c*,-n*) ECHO_N= ECHO_C='
11968 ' ECHO_T='      ' ;;
11969   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11970   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11971 esac
11972
11973 if expr a : '\(a\)' >/dev/null 2>&1; then
11974   as_expr=expr
11975 else
11976   as_expr=false
11977 fi
11978
11979 rm -f conf$$ conf$$.exe conf$$.file
11980 echo >conf$$.file
11981 if ln -s conf$$.file conf$$ 2>/dev/null; then
11982   # We could just check for DJGPP; but this test a) works b) is more generic
11983   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11984   if test -f conf$$.exe; then
11985     # Don't use ln at all; we don't have any links
11986     as_ln_s='cp -p'
11987   else
11988     as_ln_s='ln -s'
11989   fi
11990 elif ln conf$$.file conf$$ 2>/dev/null; then
11991   as_ln_s=ln
11992 else
11993   as_ln_s='cp -p'
11994 fi
11995 rm -f conf$$ conf$$.exe conf$$.file
11996
11997 if mkdir -p . 2>/dev/null; then
11998   as_mkdir_p=:
11999 else
12000   test -d ./-p && rmdir ./-p
12001   as_mkdir_p=false
12002 fi
12003
12004 as_executable_p="test -f"
12005
12006 # Sed expression to map a string onto a valid CPP name.
12007 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12008
12009 # Sed expression to map a string onto a valid variable name.
12010 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12011
12012
12013 # IFS
12014 # We need space, tab and new line, in precisely that order.
12015 as_nl='
12016 '
12017 IFS="   $as_nl"
12018
12019 # CDPATH.
12020 $as_unset CDPATH
12021
12022 exec 6>&1
12023
12024 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12025 # report actual input values of CONFIG_FILES etc. instead of their
12026 # values after options handling.  Logging --version etc. is OK.
12027 exec 5>>config.log
12028 {
12029   echo
12030   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12031 ## Running $as_me. ##
12032 _ASBOX
12033 } >&5
12034 cat >&5 <<_CSEOF
12035
12036 This file was extended by GNU Fortran Runtime Library $as_me 0.2, which was
12037 generated by GNU Autoconf 2.59.  Invocation command line was
12038
12039   CONFIG_FILES    = $CONFIG_FILES
12040   CONFIG_HEADERS  = $CONFIG_HEADERS
12041   CONFIG_LINKS    = $CONFIG_LINKS
12042   CONFIG_COMMANDS = $CONFIG_COMMANDS
12043   $ $0 $@
12044
12045 _CSEOF
12046 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12047 echo >&5
12048 _ACEOF
12049
12050 # Files that config.status was made for.
12051 if test -n "$ac_config_files"; then
12052   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12053 fi
12054
12055 if test -n "$ac_config_headers"; then
12056   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12057 fi
12058
12059 if test -n "$ac_config_links"; then
12060   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12061 fi
12062
12063 if test -n "$ac_config_commands"; then
12064   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12065 fi
12066
12067 cat >>$CONFIG_STATUS <<\_ACEOF
12068
12069 ac_cs_usage="\
12070 \`$as_me' instantiates files from templates according to the
12071 current configuration.
12072
12073 Usage: $0 [OPTIONS] [FILE]...
12074
12075   -h, --help       print this help, then exit
12076   -V, --version    print version number, then exit
12077   -q, --quiet      do not print progress messages
12078   -d, --debug      don't remove temporary files
12079       --recheck    update $as_me by reconfiguring in the same conditions
12080   --file=FILE[:TEMPLATE]
12081                    instantiate the configuration file FILE
12082   --header=FILE[:TEMPLATE]
12083                    instantiate the configuration header FILE
12084
12085 Configuration files:
12086 $config_files
12087
12088 Configuration headers:
12089 $config_headers
12090
12091 Configuration commands:
12092 $config_commands
12093
12094 Report bugs to <bug-autoconf@gnu.org>."
12095 _ACEOF
12096
12097 cat >>$CONFIG_STATUS <<_ACEOF
12098 ac_cs_version="\\
12099 GNU Fortran Runtime Library config.status 0.2
12100 configured by $0, generated by GNU Autoconf 2.59,
12101   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12102
12103 Copyright (C) 2003 Free Software Foundation, Inc.
12104 This config.status script is free software; the Free Software Foundation
12105 gives unlimited permission to copy, distribute and modify it."
12106 srcdir=$srcdir
12107 INSTALL="$INSTALL"
12108 _ACEOF
12109
12110 cat >>$CONFIG_STATUS <<\_ACEOF
12111 # If no file are specified by the user, then we need to provide default
12112 # value.  By we need to know if files were specified by the user.
12113 ac_need_defaults=:
12114 while test $# != 0
12115 do
12116   case $1 in
12117   --*=*)
12118     ac_option=`expr "x$1" : 'x\([^=]*\)='`
12119     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12120     ac_shift=:
12121     ;;
12122   -*)
12123     ac_option=$1
12124     ac_optarg=$2
12125     ac_shift=shift
12126     ;;
12127   *) # This is not an option, so the user has probably given explicit
12128      # arguments.
12129      ac_option=$1
12130      ac_need_defaults=false;;
12131   esac
12132
12133   case $ac_option in
12134   # Handling of the options.
12135 _ACEOF
12136 cat >>$CONFIG_STATUS <<\_ACEOF
12137   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12138     ac_cs_recheck=: ;;
12139   --version | --vers* | -V )
12140     echo "$ac_cs_version"; exit 0 ;;
12141   --he | --h)
12142     # Conflict between --help and --header
12143     { { echo "$as_me:$LINENO: error: ambiguous option: $1
12144 Try \`$0 --help' for more information." >&5
12145 echo "$as_me: error: ambiguous option: $1
12146 Try \`$0 --help' for more information." >&2;}
12147    { (exit 1); exit 1; }; };;
12148   --help | --hel | -h )
12149     echo "$ac_cs_usage"; exit 0 ;;
12150   --debug | --d* | -d )
12151     debug=: ;;
12152   --file | --fil | --fi | --f )
12153     $ac_shift
12154     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12155     ac_need_defaults=false;;
12156   --header | --heade | --head | --hea )
12157     $ac_shift
12158     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12159     ac_need_defaults=false;;
12160   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12161   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12162     ac_cs_silent=: ;;
12163
12164   # This is an error.
12165   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12166 Try \`$0 --help' for more information." >&5
12167 echo "$as_me: error: unrecognized option: $1
12168 Try \`$0 --help' for more information." >&2;}
12169    { (exit 1); exit 1; }; } ;;
12170
12171   *) ac_config_targets="$ac_config_targets $1" ;;
12172
12173   esac
12174   shift
12175 done
12176
12177 ac_configure_extra_args=
12178
12179 if $ac_cs_silent; then
12180   exec 6>/dev/null
12181   ac_configure_extra_args="$ac_configure_extra_args --silent"
12182 fi
12183
12184 _ACEOF
12185 cat >>$CONFIG_STATUS <<_ACEOF
12186 if \$ac_cs_recheck; then
12187   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12188   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12189 fi
12190
12191 _ACEOF
12192
12193 cat >>$CONFIG_STATUS <<_ACEOF
12194 #
12195 # INIT-COMMANDS section.
12196 #
12197
12198
12199 srcdir="$srcdir"
12200 host="$host"
12201 target="$target"
12202 with_multisubdir="$with_multisubdir"
12203 with_multisrctop="$with_multisrctop"
12204 with_target_subdir="$with_target_subdir"
12205 ac_configure_args="${multilib_arg} ${ac_configure_args}"
12206 multi_basedir="$multi_basedir"
12207 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
12208 CC="$CC"
12209
12210 _ACEOF
12211
12212
12213
12214 cat >>$CONFIG_STATUS <<\_ACEOF
12215 for ac_config_target in $ac_config_targets
12216 do
12217   case "$ac_config_target" in
12218   # Handling of arguments.
12219   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12220   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12221   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12222   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12223 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12224    { (exit 1); exit 1; }; };;
12225   esac
12226 done
12227
12228 # If the user did not use the arguments to specify the items to instantiate,
12229 # then the envvar interface is used.  Set only those that are not.
12230 # We use the long form for the default assignment because of an extremely
12231 # bizarre bug on SunOS 4.1.3.
12232 if $ac_need_defaults; then
12233   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12234   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12235   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12236 fi
12237
12238 # Have a temporary directory for convenience.  Make it in the build tree
12239 # simply because there is no reason to put it here, and in addition,
12240 # creating and moving files from /tmp can sometimes cause problems.
12241 # Create a temporary directory, and hook for its removal unless debugging.
12242 $debug ||
12243 {
12244   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12245   trap '{ (exit 1); exit 1; }' 1 2 13 15
12246 }
12247
12248 # Create a (secure) tmp directory for tmp files.
12249
12250 {
12251   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12252   test -n "$tmp" && test -d "$tmp"
12253 }  ||
12254 {
12255   tmp=./confstat$$-$RANDOM
12256   (umask 077 && mkdir $tmp)
12257 } ||
12258 {
12259    echo "$me: cannot create a temporary directory in ." >&2
12260    { (exit 1); exit 1; }
12261 }
12262
12263 _ACEOF
12264
12265 cat >>$CONFIG_STATUS <<_ACEOF
12266
12267 #
12268 # CONFIG_FILES section.
12269 #
12270
12271 # No need to generate the scripts if there are no CONFIG_FILES.
12272 # This happens for instance when ./config.status config.h
12273 if test -n "\$CONFIG_FILES"; then
12274   # Protect against being on the right side of a sed subst in config.status.
12275   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12276    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12277 s,@SHELL@,$SHELL,;t t
12278 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12279 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12280 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12281 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12282 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12283 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12284 s,@exec_prefix@,$exec_prefix,;t t
12285 s,@prefix@,$prefix,;t t
12286 s,@program_transform_name@,$program_transform_name,;t t
12287 s,@bindir@,$bindir,;t t
12288 s,@sbindir@,$sbindir,;t t
12289 s,@libexecdir@,$libexecdir,;t t
12290 s,@datadir@,$datadir,;t t
12291 s,@sysconfdir@,$sysconfdir,;t t
12292 s,@sharedstatedir@,$sharedstatedir,;t t
12293 s,@localstatedir@,$localstatedir,;t t
12294 s,@libdir@,$libdir,;t t
12295 s,@includedir@,$includedir,;t t
12296 s,@oldincludedir@,$oldincludedir,;t t
12297 s,@infodir@,$infodir,;t t
12298 s,@mandir@,$mandir,;t t
12299 s,@build_alias@,$build_alias,;t t
12300 s,@host_alias@,$host_alias,;t t
12301 s,@target_alias@,$target_alias,;t t
12302 s,@DEFS@,$DEFS,;t t
12303 s,@ECHO_C@,$ECHO_C,;t t
12304 s,@ECHO_N@,$ECHO_N,;t t
12305 s,@ECHO_T@,$ECHO_T,;t t
12306 s,@LIBS@,$LIBS,;t t
12307 s,@build@,$build,;t t
12308 s,@build_cpu@,$build_cpu,;t t
12309 s,@build_vendor@,$build_vendor,;t t
12310 s,@build_os@,$build_os,;t t
12311 s,@host@,$host,;t t
12312 s,@host_cpu@,$host_cpu,;t t
12313 s,@host_vendor@,$host_vendor,;t t
12314 s,@host_os@,$host_os,;t t
12315 s,@target@,$target,;t t
12316 s,@target_cpu@,$target_cpu,;t t
12317 s,@target_vendor@,$target_vendor,;t t
12318 s,@target_os@,$target_os,;t t
12319 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12320 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12321 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12322 s,@CYGPATH_W@,$CYGPATH_W,;t t
12323 s,@PACKAGE@,$PACKAGE,;t t
12324 s,@VERSION@,$VERSION,;t t
12325 s,@ACLOCAL@,$ACLOCAL,;t t
12326 s,@AUTOCONF@,$AUTOCONF,;t t
12327 s,@AUTOMAKE@,$AUTOMAKE,;t t
12328 s,@AUTOHEADER@,$AUTOHEADER,;t t
12329 s,@MAKEINFO@,$MAKEINFO,;t t
12330 s,@install_sh@,$install_sh,;t t
12331 s,@STRIP@,$STRIP,;t t
12332 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12333 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12334 s,@mkdir_p@,$mkdir_p,;t t
12335 s,@AWK@,$AWK,;t t
12336 s,@SET_MAKE@,$SET_MAKE,;t t
12337 s,@am__leading_dot@,$am__leading_dot,;t t
12338 s,@AMTAR@,$AMTAR,;t t
12339 s,@am__tar@,$am__tar,;t t
12340 s,@am__untar@,$am__untar,;t t
12341 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12342 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12343 s,@MAINT@,$MAINT,;t t
12344 s,@multi_basedir@,$multi_basedir,;t t
12345 s,@toolexecdir@,$toolexecdir,;t t
12346 s,@toolexeclibdir@,$toolexeclibdir,;t t
12347 s,@CC@,$CC,;t t
12348 s,@ac_ct_CC@,$ac_ct_CC,;t t
12349 s,@EXEEXT@,$EXEEXT,;t t
12350 s,@OBJEXT@,$OBJEXT,;t t
12351 s,@AM_FCFLAGS@,$AM_FCFLAGS,;t t
12352 s,@AM_CFLAGS@,$AM_CFLAGS,;t t
12353 s,@AS@,$AS,;t t
12354 s,@ac_ct_AS@,$ac_ct_AS,;t t
12355 s,@AR@,$AR,;t t
12356 s,@ac_ct_AR@,$ac_ct_AR,;t t
12357 s,@RANLIB@,$RANLIB,;t t
12358 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12359 s,@LN_S@,$LN_S,;t t
12360 s,@LIBTOOL@,$LIBTOOL,;t t
12361 s,@enable_shared@,$enable_shared,;t t
12362 s,@enable_static@,$enable_static,;t t
12363 s,@FC@,$FC,;t t
12364 s,@FCFLAGS@,$FCFLAGS,;t t
12365 s,@LDFLAGS@,$LDFLAGS,;t t
12366 s,@ac_ct_FC@,$ac_ct_FC,;t t
12367 s,@extra_ldflags_libgfortran@,$extra_ldflags_libgfortran,;t t
12368 s,@CPP@,$CPP,;t t
12369 s,@CPPFLAGS@,$CPPFLAGS,;t t
12370 s,@EGREP@,$EGREP,;t t
12371 s,@MATH_OBJ@,$MATH_OBJ,;t t
12372 s,@LIBOBJS@,$LIBOBJS,;t t
12373 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12374 CEOF
12375
12376 _ACEOF
12377
12378   cat >>$CONFIG_STATUS <<\_ACEOF
12379   # Split the substitutions into bite-sized pieces for seds with
12380   # small command number limits, like on Digital OSF/1 and HP-UX.
12381   ac_max_sed_lines=48
12382   ac_sed_frag=1 # Number of current file.
12383   ac_beg=1 # First line for current file.
12384   ac_end=$ac_max_sed_lines # Line after last line for current file.
12385   ac_more_lines=:
12386   ac_sed_cmds=
12387   while $ac_more_lines; do
12388     if test $ac_beg -gt 1; then
12389       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12390     else
12391       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12392     fi
12393     if test ! -s $tmp/subs.frag; then
12394       ac_more_lines=false
12395     else
12396       # The purpose of the label and of the branching condition is to
12397       # speed up the sed processing (if there are no `@' at all, there
12398       # is no need to browse any of the substitutions).
12399       # These are the two extra sed commands mentioned above.
12400       (echo ':t
12401   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12402       if test -z "$ac_sed_cmds"; then
12403         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12404       else
12405         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12406       fi
12407       ac_sed_frag=`expr $ac_sed_frag + 1`
12408       ac_beg=$ac_end
12409       ac_end=`expr $ac_end + $ac_max_sed_lines`
12410     fi
12411   done
12412   if test -z "$ac_sed_cmds"; then
12413     ac_sed_cmds=cat
12414   fi
12415 fi # test -n "$CONFIG_FILES"
12416
12417 _ACEOF
12418 cat >>$CONFIG_STATUS <<\_ACEOF
12419 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12420   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12421   case $ac_file in
12422   - | *:- | *:-:* ) # input from stdin
12423         cat >$tmp/stdin
12424         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12425         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12426   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12427         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12428   * )   ac_file_in=$ac_file.in ;;
12429   esac
12430
12431   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12432   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12433 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12434          X"$ac_file" : 'X\(//\)[^/]' \| \
12435          X"$ac_file" : 'X\(//\)$' \| \
12436          X"$ac_file" : 'X\(/\)' \| \
12437          .     : '\(.\)' 2>/dev/null ||
12438 echo X"$ac_file" |
12439     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12440           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12441           /^X\(\/\/\)$/{ s//\1/; q; }
12442           /^X\(\/\).*/{ s//\1/; q; }
12443           s/.*/./; q'`
12444   { if $as_mkdir_p; then
12445     mkdir -p "$ac_dir"
12446   else
12447     as_dir="$ac_dir"
12448     as_dirs=
12449     while test ! -d "$as_dir"; do
12450       as_dirs="$as_dir $as_dirs"
12451       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12452 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12453          X"$as_dir" : 'X\(//\)[^/]' \| \
12454          X"$as_dir" : 'X\(//\)$' \| \
12455          X"$as_dir" : 'X\(/\)' \| \
12456          .     : '\(.\)' 2>/dev/null ||
12457 echo X"$as_dir" |
12458     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12459           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12460           /^X\(\/\/\)$/{ s//\1/; q; }
12461           /^X\(\/\).*/{ s//\1/; q; }
12462           s/.*/./; q'`
12463     done
12464     test ! -n "$as_dirs" || mkdir $as_dirs
12465   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12466 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12467    { (exit 1); exit 1; }; }; }
12468
12469   ac_builddir=.
12470
12471 if test "$ac_dir" != .; then
12472   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12473   # A "../" for each directory in $ac_dir_suffix.
12474   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12475 else
12476   ac_dir_suffix= ac_top_builddir=
12477 fi
12478
12479 case $srcdir in
12480   .)  # No --srcdir option.  We are building in place.
12481     ac_srcdir=.
12482     if test -z "$ac_top_builddir"; then
12483        ac_top_srcdir=.
12484     else
12485        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12486     fi ;;
12487   [\\/]* | ?:[\\/]* )  # Absolute path.
12488     ac_srcdir=$srcdir$ac_dir_suffix;
12489     ac_top_srcdir=$srcdir ;;
12490   *) # Relative path.
12491     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12492     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12493 esac
12494
12495 # Do not use `cd foo && pwd` to compute absolute paths, because
12496 # the directories may not exist.
12497 case `pwd` in
12498 .) ac_abs_builddir="$ac_dir";;
12499 *)
12500   case "$ac_dir" in
12501   .) ac_abs_builddir=`pwd`;;
12502   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12503   *) ac_abs_builddir=`pwd`/"$ac_dir";;
12504   esac;;
12505 esac
12506 case $ac_abs_builddir in
12507 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12508 *)
12509   case ${ac_top_builddir}. in
12510   .) ac_abs_top_builddir=$ac_abs_builddir;;
12511   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12512   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12513   esac;;
12514 esac
12515 case $ac_abs_builddir in
12516 .) ac_abs_srcdir=$ac_srcdir;;
12517 *)
12518   case $ac_srcdir in
12519   .) ac_abs_srcdir=$ac_abs_builddir;;
12520   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12521   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12522   esac;;
12523 esac
12524 case $ac_abs_builddir in
12525 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12526 *)
12527   case $ac_top_srcdir in
12528   .) ac_abs_top_srcdir=$ac_abs_builddir;;
12529   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12530   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12531   esac;;
12532 esac
12533
12534
12535   case $INSTALL in
12536   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12537   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12538   esac
12539
12540   if test x"$ac_file" != x-; then
12541     { echo "$as_me:$LINENO: creating $ac_file" >&5
12542 echo "$as_me: creating $ac_file" >&6;}
12543     rm -f "$ac_file"
12544   fi
12545   # Let's still pretend it is `configure' which instantiates (i.e., don't
12546   # use $as_me), people would be surprised to read:
12547   #    /* config.h.  Generated by config.status.  */
12548   if test x"$ac_file" = x-; then
12549     configure_input=
12550   else
12551     configure_input="$ac_file.  "
12552   fi
12553   configure_input=$configure_input"Generated from `echo $ac_file_in |
12554                                      sed 's,.*/,,'` by configure."
12555
12556   # First look for the input files in the build tree, otherwise in the
12557   # src tree.
12558   ac_file_inputs=`IFS=:
12559     for f in $ac_file_in; do
12560       case $f in
12561       -) echo $tmp/stdin ;;
12562       [\\/$]*)
12563          # Absolute (can't be DOS-style, as IFS=:)
12564          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12565 echo "$as_me: error: cannot find input file: $f" >&2;}
12566    { (exit 1); exit 1; }; }
12567          echo "$f";;
12568       *) # Relative
12569          if test -f "$f"; then
12570            # Build tree
12571            echo "$f"
12572          elif test -f "$srcdir/$f"; then
12573            # Source tree
12574            echo "$srcdir/$f"
12575          else
12576            # /dev/null tree
12577            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12578 echo "$as_me: error: cannot find input file: $f" >&2;}
12579    { (exit 1); exit 1; }; }
12580          fi;;
12581       esac
12582     done` || { (exit 1); exit 1; }
12583 _ACEOF
12584 cat >>$CONFIG_STATUS <<_ACEOF
12585   sed "$ac_vpsub
12586 $extrasub
12587 _ACEOF
12588 cat >>$CONFIG_STATUS <<\_ACEOF
12589 :t
12590 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12591 s,@configure_input@,$configure_input,;t t
12592 s,@srcdir@,$ac_srcdir,;t t
12593 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12594 s,@top_srcdir@,$ac_top_srcdir,;t t
12595 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12596 s,@builddir@,$ac_builddir,;t t
12597 s,@abs_builddir@,$ac_abs_builddir,;t t
12598 s,@top_builddir@,$ac_top_builddir,;t t
12599 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12600 s,@INSTALL@,$ac_INSTALL,;t t
12601 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12602   rm -f $tmp/stdin
12603   if test x"$ac_file" != x-; then
12604     mv $tmp/out $ac_file
12605   else
12606     cat $tmp/out
12607     rm -f $tmp/out
12608   fi
12609
12610 done
12611 _ACEOF
12612 cat >>$CONFIG_STATUS <<\_ACEOF
12613
12614 #
12615 # CONFIG_HEADER section.
12616 #
12617
12618 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12619 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12620 #
12621 # ac_d sets the value in "#define NAME VALUE" lines.
12622 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
12623 ac_dB='[         ].*$,\1#\2'
12624 ac_dC=' '
12625 ac_dD=',;t'
12626 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12627 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
12628 ac_uB='$,\1#\2define\3'
12629 ac_uC=' '
12630 ac_uD=',;t'
12631
12632 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12633   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12634   case $ac_file in
12635   - | *:- | *:-:* ) # input from stdin
12636         cat >$tmp/stdin
12637         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12638         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12639   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12640         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12641   * )   ac_file_in=$ac_file.in ;;
12642   esac
12643
12644   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12645 echo "$as_me: creating $ac_file" >&6;}
12646
12647   # First look for the input files in the build tree, otherwise in the
12648   # src tree.
12649   ac_file_inputs=`IFS=:
12650     for f in $ac_file_in; do
12651       case $f in
12652       -) echo $tmp/stdin ;;
12653       [\\/$]*)
12654          # Absolute (can't be DOS-style, as IFS=:)
12655          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12656 echo "$as_me: error: cannot find input file: $f" >&2;}
12657    { (exit 1); exit 1; }; }
12658          # Do quote $f, to prevent DOS paths from being IFS'd.
12659          echo "$f";;
12660       *) # Relative
12661          if test -f "$f"; then
12662            # Build tree
12663            echo "$f"
12664          elif test -f "$srcdir/$f"; then
12665            # Source tree
12666            echo "$srcdir/$f"
12667          else
12668            # /dev/null tree
12669            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12670 echo "$as_me: error: cannot find input file: $f" >&2;}
12671    { (exit 1); exit 1; }; }
12672          fi;;
12673       esac
12674     done` || { (exit 1); exit 1; }
12675   # Remove the trailing spaces.
12676   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
12677
12678 _ACEOF
12679
12680 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12681 # `conftest.undefs', that substitutes the proper values into
12682 # config.h.in to produce config.h.  The first handles `#define'
12683 # templates, and the second `#undef' templates.
12684 # And first: Protect against being on the right side of a sed subst in
12685 # config.status.  Protect against being in an unquoted here document
12686 # in config.status.
12687 rm -f conftest.defines conftest.undefs
12688 # Using a here document instead of a string reduces the quoting nightmare.
12689 # Putting comments in sed scripts is not portable.
12690 #
12691 # `end' is used to avoid that the second main sed command (meant for
12692 # 0-ary CPP macros) applies to n-ary macro definitions.
12693 # See the Autoconf documentation for `clear'.
12694 cat >confdef2sed.sed <<\_ACEOF
12695 s/[\\&,]/\\&/g
12696 s,[\\$`],\\&,g
12697 t clear
12698 : clear
12699 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12700 t end
12701 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12702 : end
12703 _ACEOF
12704 # If some macros were called several times there might be several times
12705 # the same #defines, which is useless.  Nevertheless, we may not want to
12706 # sort them, since we want the *last* AC-DEFINE to be honored.
12707 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12708 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12709 rm -f confdef2sed.sed
12710
12711 # This sed command replaces #undef with comments.  This is necessary, for
12712 # example, in the case of _POSIX_SOURCE, which is predefined and required
12713 # on some systems where configure will not decide to define it.
12714 cat >>conftest.undefs <<\_ACEOF
12715 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12716 _ACEOF
12717
12718 # Break up conftest.defines because some shells have a limit on the size
12719 # of here documents, and old seds have small limits too (100 cmds).
12720 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12721 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12722 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12723 echo '  :' >>$CONFIG_STATUS
12724 rm -f conftest.tail
12725 while grep . conftest.defines >/dev/null
12726 do
12727   # Write a limited-size here document to $tmp/defines.sed.
12728   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12729   # Speed up: don't consider the non `#define' lines.
12730   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
12731   # Work around the forget-to-reset-the-flag bug.
12732   echo 't clr' >>$CONFIG_STATUS
12733   echo ': clr' >>$CONFIG_STATUS
12734   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12735   echo 'CEOF
12736   sed -f $tmp/defines.sed $tmp/in >$tmp/out
12737   rm -f $tmp/in
12738   mv $tmp/out $tmp/in
12739 ' >>$CONFIG_STATUS
12740   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12741   rm -f conftest.defines
12742   mv conftest.tail conftest.defines
12743 done
12744 rm -f conftest.defines
12745 echo '  fi # grep' >>$CONFIG_STATUS
12746 echo >>$CONFIG_STATUS
12747
12748 # Break up conftest.undefs because some shells have a limit on the size
12749 # of here documents, and old seds have small limits too (100 cmds).
12750 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
12751 rm -f conftest.tail
12752 while grep . conftest.undefs >/dev/null
12753 do
12754   # Write a limited-size here document to $tmp/undefs.sed.
12755   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12756   # Speed up: don't consider the non `#undef'
12757   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
12758   # Work around the forget-to-reset-the-flag bug.
12759   echo 't clr' >>$CONFIG_STATUS
12760   echo ': clr' >>$CONFIG_STATUS
12761   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12762   echo 'CEOF
12763   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12764   rm -f $tmp/in
12765   mv $tmp/out $tmp/in
12766 ' >>$CONFIG_STATUS
12767   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12768   rm -f conftest.undefs
12769   mv conftest.tail conftest.undefs
12770 done
12771 rm -f conftest.undefs
12772
12773 cat >>$CONFIG_STATUS <<\_ACEOF
12774   # Let's still pretend it is `configure' which instantiates (i.e., don't
12775   # use $as_me), people would be surprised to read:
12776   #    /* config.h.  Generated by config.status.  */
12777   if test x"$ac_file" = x-; then
12778     echo "/* Generated by configure.  */" >$tmp/config.h
12779   else
12780     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
12781   fi
12782   cat $tmp/in >>$tmp/config.h
12783   rm -f $tmp/in
12784   if test x"$ac_file" != x-; then
12785     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12786       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12787 echo "$as_me: $ac_file is unchanged" >&6;}
12788     else
12789       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12790 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12791          X"$ac_file" : 'X\(//\)[^/]' \| \
12792          X"$ac_file" : 'X\(//\)$' \| \
12793          X"$ac_file" : 'X\(/\)' \| \
12794          .     : '\(.\)' 2>/dev/null ||
12795 echo X"$ac_file" |
12796     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12797           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12798           /^X\(\/\/\)$/{ s//\1/; q; }
12799           /^X\(\/\).*/{ s//\1/; q; }
12800           s/.*/./; q'`
12801       { if $as_mkdir_p; then
12802     mkdir -p "$ac_dir"
12803   else
12804     as_dir="$ac_dir"
12805     as_dirs=
12806     while test ! -d "$as_dir"; do
12807       as_dirs="$as_dir $as_dirs"
12808       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12809 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12810          X"$as_dir" : 'X\(//\)[^/]' \| \
12811          X"$as_dir" : 'X\(//\)$' \| \
12812          X"$as_dir" : 'X\(/\)' \| \
12813          .     : '\(.\)' 2>/dev/null ||
12814 echo X"$as_dir" |
12815     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12816           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12817           /^X\(\/\/\)$/{ s//\1/; q; }
12818           /^X\(\/\).*/{ s//\1/; q; }
12819           s/.*/./; q'`
12820     done
12821     test ! -n "$as_dirs" || mkdir $as_dirs
12822   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12823 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12824    { (exit 1); exit 1; }; }; }
12825
12826       rm -f $ac_file
12827       mv $tmp/config.h $ac_file
12828     fi
12829   else
12830     cat $tmp/config.h
12831     rm -f $tmp/config.h
12832   fi
12833 # Compute $ac_file's index in $config_headers.
12834 _am_stamp_count=1
12835 for _am_header in $config_headers :; do
12836   case $_am_header in
12837     $ac_file | $ac_file:* )
12838       break ;;
12839     * )
12840       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12841   esac
12842 done
12843 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12844 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12845          X$ac_file : 'X\(//\)[^/]' \| \
12846          X$ac_file : 'X\(//\)$' \| \
12847          X$ac_file : 'X\(/\)' \| \
12848          .     : '\(.\)' 2>/dev/null ||
12849 echo X$ac_file |
12850     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12851           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12852           /^X\(\/\/\)$/{ s//\1/; q; }
12853           /^X\(\/\).*/{ s//\1/; q; }
12854           s/.*/./; q'`/stamp-h$_am_stamp_count
12855 done
12856 _ACEOF
12857 cat >>$CONFIG_STATUS <<\_ACEOF
12858
12859 #
12860 # CONFIG_COMMANDS section.
12861 #
12862 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12863   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12864   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12865   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12866 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12867          X"$ac_dest" : 'X\(//\)[^/]' \| \
12868          X"$ac_dest" : 'X\(//\)$' \| \
12869          X"$ac_dest" : 'X\(/\)' \| \
12870          .     : '\(.\)' 2>/dev/null ||
12871 echo X"$ac_dest" |
12872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12873           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12874           /^X\(\/\/\)$/{ s//\1/; q; }
12875           /^X\(\/\).*/{ s//\1/; q; }
12876           s/.*/./; q'`
12877   { if $as_mkdir_p; then
12878     mkdir -p "$ac_dir"
12879   else
12880     as_dir="$ac_dir"
12881     as_dirs=
12882     while test ! -d "$as_dir"; do
12883       as_dirs="$as_dir $as_dirs"
12884       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12885 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12886          X"$as_dir" : 'X\(//\)[^/]' \| \
12887          X"$as_dir" : 'X\(//\)$' \| \
12888          X"$as_dir" : 'X\(/\)' \| \
12889          .     : '\(.\)' 2>/dev/null ||
12890 echo X"$as_dir" |
12891     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12892           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12893           /^X\(\/\/\)$/{ s//\1/; q; }
12894           /^X\(\/\).*/{ s//\1/; q; }
12895           s/.*/./; q'`
12896     done
12897     test ! -n "$as_dirs" || mkdir $as_dirs
12898   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12899 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12900    { (exit 1); exit 1; }; }; }
12901
12902   ac_builddir=.
12903
12904 if test "$ac_dir" != .; then
12905   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12906   # A "../" for each directory in $ac_dir_suffix.
12907   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12908 else
12909   ac_dir_suffix= ac_top_builddir=
12910 fi
12911
12912 case $srcdir in
12913   .)  # No --srcdir option.  We are building in place.
12914     ac_srcdir=.
12915     if test -z "$ac_top_builddir"; then
12916        ac_top_srcdir=.
12917     else
12918        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12919     fi ;;
12920   [\\/]* | ?:[\\/]* )  # Absolute path.
12921     ac_srcdir=$srcdir$ac_dir_suffix;
12922     ac_top_srcdir=$srcdir ;;
12923   *) # Relative path.
12924     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12925     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12926 esac
12927
12928 # Do not use `cd foo && pwd` to compute absolute paths, because
12929 # the directories may not exist.
12930 case `pwd` in
12931 .) ac_abs_builddir="$ac_dir";;
12932 *)
12933   case "$ac_dir" in
12934   .) ac_abs_builddir=`pwd`;;
12935   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12936   *) ac_abs_builddir=`pwd`/"$ac_dir";;
12937   esac;;
12938 esac
12939 case $ac_abs_builddir in
12940 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12941 *)
12942   case ${ac_top_builddir}. in
12943   .) ac_abs_top_builddir=$ac_abs_builddir;;
12944   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12945   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12946   esac;;
12947 esac
12948 case $ac_abs_builddir in
12949 .) ac_abs_srcdir=$ac_srcdir;;
12950 *)
12951   case $ac_srcdir in
12952   .) ac_abs_srcdir=$ac_abs_builddir;;
12953   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12954   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12955   esac;;
12956 esac
12957 case $ac_abs_builddir in
12958 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12959 *)
12960   case $ac_top_srcdir in
12961   .) ac_abs_top_srcdir=$ac_abs_builddir;;
12962   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12963   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12964   esac;;
12965 esac
12966
12967
12968   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12969 echo "$as_me: executing $ac_dest commands" >&6;}
12970   case $ac_dest in
12971     default-1 )
12972 # Only add multilib support code if we just rebuilt the top-level
12973 # Makefile.
12974 case " $CONFIG_FILES " in
12975  *" Makefile "*)
12976    ac_file=Makefile . ${multi_basedir}/config-ml.in
12977    ;;
12978 esac ;;
12979   esac
12980 done
12981 _ACEOF
12982
12983 cat >>$CONFIG_STATUS <<\_ACEOF
12984
12985 { (exit 0); exit 0; }
12986 _ACEOF
12987 chmod +x $CONFIG_STATUS
12988 ac_clean_files=$ac_clean_files_save
12989
12990
12991 # configure is writing to config.log, and then calls config.status.
12992 # config.status does its own redirection, appending to config.log.
12993 # Unfortunately, on DOS this fails, as config.log is still kept open
12994 # by configure, so config.status won't be able to write to it; its
12995 # output is simply discarded.  So we exec the FD to /dev/null,
12996 # effectively closing config.log, so it can be properly (re)opened and
12997 # appended to by config.status.  When coming back to configure, we
12998 # need to make the FD available again.
12999 if test "$no_create" != yes; then
13000   ac_cs_success=:
13001   ac_config_status_args=
13002   test "$silent" = yes &&
13003     ac_config_status_args="$ac_config_status_args --quiet"
13004   exec 5>/dev/null
13005   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13006   exec 5>>config.log
13007   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13008   # would make configure fail if this is the last instruction.
13009   $ac_cs_success || { (exit 1); exit 1; }
13010 fi
13011