OSDN Git Service

2005-04-07 Andrew Pinski <pinskia@physics.uc.edu>
[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 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
2936
2937 # Add -Wall if we are using GCC.
2938 if test "x$GCC" = "xyes"; then
2939   CFLAGS="$CFLAGS -Wall"
2940 fi
2941
2942 # Find other programs we need.
2943 if test -n "$ac_tool_prefix"; then
2944   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2945 set dummy ${ac_tool_prefix}as; ac_word=$2
2946 echo "$as_me:$LINENO: checking for $ac_word" >&5
2947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2948 if test "${ac_cv_prog_AS+set}" = set; then
2949   echo $ECHO_N "(cached) $ECHO_C" >&6
2950 else
2951   if test -n "$AS"; then
2952   ac_cv_prog_AS="$AS" # Let the user override the test.
2953 else
2954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955 for as_dir in $PATH
2956 do
2957   IFS=$as_save_IFS
2958   test -z "$as_dir" && as_dir=.
2959   for ac_exec_ext in '' $ac_executable_extensions; do
2960   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2961     ac_cv_prog_AS="${ac_tool_prefix}as"
2962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2963     break 2
2964   fi
2965 done
2966 done
2967
2968 fi
2969 fi
2970 AS=$ac_cv_prog_AS
2971 if test -n "$AS"; then
2972   echo "$as_me:$LINENO: result: $AS" >&5
2973 echo "${ECHO_T}$AS" >&6
2974 else
2975   echo "$as_me:$LINENO: result: no" >&5
2976 echo "${ECHO_T}no" >&6
2977 fi
2978
2979 fi
2980 if test -z "$ac_cv_prog_AS"; then
2981   ac_ct_AS=$AS
2982   # Extract the first word of "as", so it can be a program name with args.
2983 set dummy as; ac_word=$2
2984 echo "$as_me:$LINENO: checking for $ac_word" >&5
2985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2986 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
2987   echo $ECHO_N "(cached) $ECHO_C" >&6
2988 else
2989   if test -n "$ac_ct_AS"; then
2990   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2991 else
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 for as_dir in $PATH
2994 do
2995   IFS=$as_save_IFS
2996   test -z "$as_dir" && as_dir=.
2997   for ac_exec_ext in '' $ac_executable_extensions; do
2998   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2999     ac_cv_prog_ac_ct_AS="as"
3000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3001     break 2
3002   fi
3003 done
3004 done
3005
3006 fi
3007 fi
3008 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3009 if test -n "$ac_ct_AS"; then
3010   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3011 echo "${ECHO_T}$ac_ct_AS" >&6
3012 else
3013   echo "$as_me:$LINENO: result: no" >&5
3014 echo "${ECHO_T}no" >&6
3015 fi
3016
3017   AS=$ac_ct_AS
3018 else
3019   AS="$ac_cv_prog_AS"
3020 fi
3021
3022 if test -n "$ac_tool_prefix"; then
3023   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3024 set dummy ${ac_tool_prefix}ar; ac_word=$2
3025 echo "$as_me:$LINENO: checking for $ac_word" >&5
3026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3027 if test "${ac_cv_prog_AR+set}" = set; then
3028   echo $ECHO_N "(cached) $ECHO_C" >&6
3029 else
3030   if test -n "$AR"; then
3031   ac_cv_prog_AR="$AR" # Let the user override the test.
3032 else
3033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034 for as_dir in $PATH
3035 do
3036   IFS=$as_save_IFS
3037   test -z "$as_dir" && as_dir=.
3038   for ac_exec_ext in '' $ac_executable_extensions; do
3039   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3040     ac_cv_prog_AR="${ac_tool_prefix}ar"
3041     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3042     break 2
3043   fi
3044 done
3045 done
3046
3047 fi
3048 fi
3049 AR=$ac_cv_prog_AR
3050 if test -n "$AR"; then
3051   echo "$as_me:$LINENO: result: $AR" >&5
3052 echo "${ECHO_T}$AR" >&6
3053 else
3054   echo "$as_me:$LINENO: result: no" >&5
3055 echo "${ECHO_T}no" >&6
3056 fi
3057
3058 fi
3059 if test -z "$ac_cv_prog_AR"; then
3060   ac_ct_AR=$AR
3061   # Extract the first word of "ar", so it can be a program name with args.
3062 set dummy ar; ac_word=$2
3063 echo "$as_me:$LINENO: checking for $ac_word" >&5
3064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3065 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3066   echo $ECHO_N "(cached) $ECHO_C" >&6
3067 else
3068   if test -n "$ac_ct_AR"; then
3069   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3070 else
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072 for as_dir in $PATH
3073 do
3074   IFS=$as_save_IFS
3075   test -z "$as_dir" && as_dir=.
3076   for ac_exec_ext in '' $ac_executable_extensions; do
3077   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078     ac_cv_prog_ac_ct_AR="ar"
3079     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3080     break 2
3081   fi
3082 done
3083 done
3084
3085 fi
3086 fi
3087 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3088 if test -n "$ac_ct_AR"; then
3089   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3090 echo "${ECHO_T}$ac_ct_AR" >&6
3091 else
3092   echo "$as_me:$LINENO: result: no" >&5
3093 echo "${ECHO_T}no" >&6
3094 fi
3095
3096   AR=$ac_ct_AR
3097 else
3098   AR="$ac_cv_prog_AR"
3099 fi
3100
3101 if test -n "$ac_tool_prefix"; then
3102   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3103 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3104 echo "$as_me:$LINENO: checking for $ac_word" >&5
3105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3106 if test "${ac_cv_prog_RANLIB+set}" = set; then
3107   echo $ECHO_N "(cached) $ECHO_C" >&6
3108 else
3109   if test -n "$RANLIB"; then
3110   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3111 else
3112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113 for as_dir in $PATH
3114 do
3115   IFS=$as_save_IFS
3116   test -z "$as_dir" && as_dir=.
3117   for ac_exec_ext in '' $ac_executable_extensions; do
3118   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3119     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3120     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3121     break 2
3122   fi
3123 done
3124 done
3125
3126 fi
3127 fi
3128 RANLIB=$ac_cv_prog_RANLIB
3129 if test -n "$RANLIB"; then
3130   echo "$as_me:$LINENO: result: $RANLIB" >&5
3131 echo "${ECHO_T}$RANLIB" >&6
3132 else
3133   echo "$as_me:$LINENO: result: no" >&5
3134 echo "${ECHO_T}no" >&6
3135 fi
3136
3137 fi
3138 if test -z "$ac_cv_prog_RANLIB"; then
3139   ac_ct_RANLIB=$RANLIB
3140   # Extract the first word of "ranlib", so it can be a program name with args.
3141 set dummy ranlib; ac_word=$2
3142 echo "$as_me:$LINENO: checking for $ac_word" >&5
3143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3144 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3145   echo $ECHO_N "(cached) $ECHO_C" >&6
3146 else
3147   if test -n "$ac_ct_RANLIB"; then
3148   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3149 else
3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 for as_dir in $PATH
3152 do
3153   IFS=$as_save_IFS
3154   test -z "$as_dir" && as_dir=.
3155   for ac_exec_ext in '' $ac_executable_extensions; do
3156   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3157     ac_cv_prog_ac_ct_RANLIB="ranlib"
3158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3159     break 2
3160   fi
3161 done
3162 done
3163
3164   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3165 fi
3166 fi
3167 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3168 if test -n "$ac_ct_RANLIB"; then
3169   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3170 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3171 else
3172   echo "$as_me:$LINENO: result: no" >&5
3173 echo "${ECHO_T}no" >&6
3174 fi
3175
3176   RANLIB=$ac_ct_RANLIB
3177 else
3178   RANLIB="$ac_cv_prog_RANLIB"
3179 fi
3180
3181 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3182 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3183 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3184 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3185   echo $ECHO_N "(cached) $ECHO_C" >&6
3186 else
3187   cat >conftest.make <<\_ACEOF
3188 all:
3189         @echo 'ac_maketemp="$(MAKE)"'
3190 _ACEOF
3191 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3192 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3193 if test -n "$ac_maketemp"; then
3194   eval ac_cv_prog_make_${ac_make}_set=yes
3195 else
3196   eval ac_cv_prog_make_${ac_make}_set=no
3197 fi
3198 rm -f conftest.make
3199 fi
3200 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3201   echo "$as_me:$LINENO: result: yes" >&5
3202 echo "${ECHO_T}yes" >&6
3203   SET_MAKE=
3204 else
3205   echo "$as_me:$LINENO: result: no" >&5
3206 echo "${ECHO_T}no" >&6
3207   SET_MAKE="MAKE=${MAKE-make}"
3208 fi
3209
3210 # Find a good install program.  We prefer a C program (faster),
3211 # so one script is as good as another.  But avoid the broken or
3212 # incompatible versions:
3213 # SysV /etc/install, /usr/sbin/install
3214 # SunOS /usr/etc/install
3215 # IRIX /sbin/install
3216 # AIX /bin/install
3217 # AmigaOS /C/install, which installs bootblocks on floppy discs
3218 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3219 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3220 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3221 # OS/2's system install, which has a completely different semantic
3222 # ./install, which can be erroneously created by make from ./install.sh.
3223 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3224 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3225 if test -z "$INSTALL"; then
3226 if test "${ac_cv_path_install+set}" = set; then
3227   echo $ECHO_N "(cached) $ECHO_C" >&6
3228 else
3229   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230 for as_dir in $PATH
3231 do
3232   IFS=$as_save_IFS
3233   test -z "$as_dir" && as_dir=.
3234   # Account for people who put trailing slashes in PATH elements.
3235 case $as_dir/ in
3236   ./ | .// | /cC/* | \
3237   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3238   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3239   /usr/ucb/* ) ;;
3240   *)
3241     # OSF1 and SCO ODT 3.0 have their own names for install.
3242     # Don't use installbsd from OSF since it installs stuff as root
3243     # by default.
3244     for ac_prog in ginstall scoinst install; do
3245       for ac_exec_ext in '' $ac_executable_extensions; do
3246         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3247           if test $ac_prog = install &&
3248             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3249             # AIX install.  It has an incompatible calling convention.
3250             :
3251           elif test $ac_prog = install &&
3252             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3253             # program-specific install script used by HP pwplus--don't use.
3254             :
3255           else
3256             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3257             break 3
3258           fi
3259         fi
3260       done
3261     done
3262     ;;
3263 esac
3264 done
3265
3266
3267 fi
3268   if test "${ac_cv_path_install+set}" = set; then
3269     INSTALL=$ac_cv_path_install
3270   else
3271     # As a last resort, use the slow shell script.  We don't cache a
3272     # path for INSTALL within a source directory, because that will
3273     # break other packages using the cache if that directory is
3274     # removed, or if the path is relative.
3275     INSTALL=$ac_install_sh
3276   fi
3277 fi
3278 echo "$as_me:$LINENO: result: $INSTALL" >&5
3279 echo "${ECHO_T}$INSTALL" >&6
3280
3281 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3282 # It thinks the first close brace ends the variable substitution.
3283 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3284
3285 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3286
3287 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3288
3289
3290 # Configure libtool
3291 #AC_MSG_NOTICE([====== Starting libtool configuration])
3292
3293 # Check whether --enable-shared or --disable-shared was given.
3294 if test "${enable_shared+set}" = set; then
3295   enableval="$enable_shared"
3296   p=${PACKAGE-default}
3297 case $enableval in
3298 yes) enable_shared=yes ;;
3299 no) enable_shared=no ;;
3300 *)
3301   enable_shared=no
3302   # Look at the argument we got.  We use all the common list separators.
3303   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3304   for pkg in $enableval; do
3305     if test "X$pkg" = "X$p"; then
3306       enable_shared=yes
3307     fi
3308   done
3309   IFS="$ac_save_ifs"
3310   ;;
3311 esac
3312 else
3313   enable_shared=yes
3314 fi;
3315 # Check whether --enable-static or --disable-static was given.
3316 if test "${enable_static+set}" = set; then
3317   enableval="$enable_static"
3318   p=${PACKAGE-default}
3319 case $enableval in
3320 yes) enable_static=yes ;;
3321 no) enable_static=no ;;
3322 *)
3323   enable_static=no
3324   # Look at the argument we got.  We use all the common list separators.
3325   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3326   for pkg in $enableval; do
3327     if test "X$pkg" = "X$p"; then
3328       enable_static=yes
3329     fi
3330   done
3331   IFS="$ac_save_ifs"
3332   ;;
3333 esac
3334 else
3335   enable_static=yes
3336 fi;
3337 # Check whether --enable-fast-install or --disable-fast-install was given.
3338 if test "${enable_fast_install+set}" = set; then
3339   enableval="$enable_fast_install"
3340   p=${PACKAGE-default}
3341 case $enableval in
3342 yes) enable_fast_install=yes ;;
3343 no) enable_fast_install=no ;;
3344 *)
3345   enable_fast_install=no
3346   # Look at the argument we got.  We use all the common list separators.
3347   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3348   for pkg in $enableval; do
3349     if test "X$pkg" = "X$p"; then
3350       enable_fast_install=yes
3351     fi
3352   done
3353   IFS="$ac_save_ifs"
3354   ;;
3355 esac
3356 else
3357   enable_fast_install=yes
3358 fi;
3359
3360 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3361 if test "${with_gnu_ld+set}" = set; then
3362   withval="$with_gnu_ld"
3363   test "$withval" = no || with_gnu_ld=yes
3364 else
3365   with_gnu_ld=no
3366 fi;
3367 ac_prog=ld
3368 if test "$GCC" = yes; then
3369   # Check if gcc -print-prog-name=ld gives a path.
3370   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3371 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3372   case $host in
3373   *-*-mingw*)
3374     # gcc leaves a trailing carriage return which upsets mingw
3375     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3376   *)
3377     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3378   esac
3379   case $ac_prog in
3380     # Accept absolute paths.
3381     [\\/]* | [A-Za-z]:[\\/]*)
3382       re_direlt='/[^/][^/]*/\.\./'
3383       # Canonicalize the path of ld
3384       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3385       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3386         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3387       done
3388       test -z "$LD" && LD="$ac_prog"
3389       ;;
3390   "")
3391     # If it fails, then pretend we aren't using GCC.
3392     ac_prog=ld
3393     ;;
3394   *)
3395     # If it is relative, then search for the first ld in PATH.
3396     with_gnu_ld=unknown
3397     ;;
3398   esac
3399 elif test "$with_gnu_ld" = yes; then
3400   echo "$as_me:$LINENO: checking for GNU ld" >&5
3401 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3402 else
3403   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3404 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3405 fi
3406 if test "${lt_cv_path_LD+set}" = set; then
3407   echo $ECHO_N "(cached) $ECHO_C" >&6
3408 else
3409   if test -z "$LD"; then
3410   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3411   for ac_dir in $PATH; do
3412     test -z "$ac_dir" && ac_dir=.
3413     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3414       lt_cv_path_LD="$ac_dir/$ac_prog"
3415       # Check to see if the program is GNU ld.  I'd rather use --version,
3416       # but apparently some GNU ld's only accept -v.
3417       # Break only if it was the GNU/non-GNU ld that we prefer.
3418       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3419         test "$with_gnu_ld" != no && break
3420       else
3421         test "$with_gnu_ld" != yes && break
3422       fi
3423     fi
3424   done
3425   IFS="$ac_save_ifs"
3426 else
3427   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3428 fi
3429 fi
3430
3431 LD="$lt_cv_path_LD"
3432 if test -n "$LD"; then
3433   echo "$as_me:$LINENO: result: $LD" >&5
3434 echo "${ECHO_T}$LD" >&6
3435 else
3436   echo "$as_me:$LINENO: result: no" >&5
3437 echo "${ECHO_T}no" >&6
3438 fi
3439 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3440 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3441    { (exit 1); exit 1; }; }
3442 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3443 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3444 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3445   echo $ECHO_N "(cached) $ECHO_C" >&6
3446 else
3447   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3448 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3449   lt_cv_prog_gnu_ld=yes
3450 else
3451   lt_cv_prog_gnu_ld=no
3452 fi
3453 fi
3454 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3455 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3456 with_gnu_ld=$lt_cv_prog_gnu_ld
3457
3458
3459 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3460 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3461 if test "${lt_cv_ld_reload_flag+set}" = set; then
3462   echo $ECHO_N "(cached) $ECHO_C" >&6
3463 else
3464   lt_cv_ld_reload_flag='-r'
3465 fi
3466 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3467 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3468 reload_flag=$lt_cv_ld_reload_flag
3469 test -n "$reload_flag" && reload_flag=" $reload_flag"
3470
3471 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3472 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3473 if test "${lt_cv_path_NM+set}" = set; then
3474   echo $ECHO_N "(cached) $ECHO_C" >&6
3475 else
3476   if test -n "$NM"; then
3477   # Let the user override the test.
3478   lt_cv_path_NM="$NM"
3479 else
3480   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3481   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3482     test -z "$ac_dir" && ac_dir=.
3483     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3484     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3485       # Check to see if the nm accepts a BSD-compat flag.
3486       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3487       #   nm: unknown option "B" ignored
3488       # Tru64's nm complains that /dev/null is an invalid object file
3489       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3490         lt_cv_path_NM="$tmp_nm -B"
3491         break
3492       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3493         lt_cv_path_NM="$tmp_nm -p"
3494         break
3495       else
3496         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3497         continue # so that we can try to find one that supports BSD flags
3498       fi
3499     fi
3500   done
3501   IFS="$ac_save_ifs"
3502   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3503 fi
3504 fi
3505
3506 NM="$lt_cv_path_NM"
3507 echo "$as_me:$LINENO: result: $NM" >&5
3508 echo "${ECHO_T}$NM" >&6
3509
3510 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3511 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3512 LN_S=$as_ln_s
3513 if test "$LN_S" = "ln -s"; then
3514   echo "$as_me:$LINENO: result: yes" >&5
3515 echo "${ECHO_T}yes" >&6
3516 else
3517   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3518 echo "${ECHO_T}no, using $LN_S" >&6
3519 fi
3520
3521 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3522 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3523 if test "${lt_cv_deplibs_check_method+set}" = set; then
3524   echo $ECHO_N "(cached) $ECHO_C" >&6
3525 else
3526   lt_cv_file_magic_cmd='$MAGIC_CMD'
3527 lt_cv_file_magic_test_file=
3528 lt_cv_deplibs_check_method='unknown'
3529 # Need to set the preceding variable on all platforms that support
3530 # interlibrary dependencies.
3531 # 'none' -- dependencies not supported.
3532 # `unknown' -- same as none, but documents that we really don't know.
3533 # 'pass_all' -- all dependencies passed with no checks.
3534 # 'test_compile' -- check by making test program.
3535 # 'file_magic [regex]' -- check by looking for files in library path
3536 # which responds to the $file_magic_cmd with a given egrep regex.
3537 # If you have `file' or equivalent on your system and you're not sure
3538 # whether `pass_all' will *always* work, you probably want this one.
3539
3540 case $host_os in
3541 aix*)
3542   lt_cv_deplibs_check_method=pass_all
3543   ;;
3544
3545 beos*)
3546   lt_cv_deplibs_check_method=pass_all
3547   ;;
3548
3549 bsdi4*)
3550   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3551   lt_cv_file_magic_cmd='/usr/bin/file -L'
3552   lt_cv_file_magic_test_file=/shlib/libc.so
3553   ;;
3554
3555 cygwin* | mingw* |pw32*)
3556   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3557   lt_cv_file_magic_cmd='$OBJDUMP -f'
3558   ;;
3559
3560 darwin* | rhapsody*)
3561   # this will be overwritten by pass_all, but leave it in just in case
3562   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3563   lt_cv_file_magic_cmd='/usr/bin/file -L'
3564   case "$host_os" in
3565   rhapsody* | darwin1.012)
3566     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3567     ;;
3568   *) # Darwin 1.3 on
3569     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3570     ;;
3571   esac
3572   lt_cv_deplibs_check_method=pass_all
3573   ;;
3574
3575 freebsd* | kfreebsd*-gnu)
3576   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3577     case $host_cpu in
3578     i*86 )
3579       # Not sure whether the presence of OpenBSD here was a mistake.
3580       # Let's accept both of them until this is cleared up.
3581       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3582       lt_cv_file_magic_cmd=/usr/bin/file
3583       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3584       ;;
3585     esac
3586   else
3587     lt_cv_deplibs_check_method=pass_all
3588   fi
3589   ;;
3590
3591 gnu*)
3592   lt_cv_deplibs_check_method=pass_all
3593   ;;
3594
3595 hpux10.20*|hpux11*)
3596   case $host_cpu in
3597   hppa*)
3598     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3599     lt_cv_file_magic_cmd=/usr/bin/file
3600     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3601     ;;
3602   ia64*)
3603     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3604     lt_cv_file_magic_cmd=/usr/bin/file
3605     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3606     ;;
3607   esac
3608   ;;
3609
3610 irix5* | irix6*)
3611   case $host_os in
3612   irix5*)
3613     # this will be overridden with pass_all, but let us keep it just in case
3614     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3615     ;;
3616   *)
3617     case $LD in
3618     *-32|*"-32 ") libmagic=32-bit;;
3619     *-n32|*"-n32 ") libmagic=N32;;
3620     *-64|*"-64 ") libmagic=64-bit;;
3621     *) libmagic=never-match;;
3622     esac
3623     # this will be overridden with pass_all, but let us keep it just in case
3624     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3625     ;;
3626   esac
3627   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3628   lt_cv_deplibs_check_method=pass_all
3629   ;;
3630
3631 # This must be Linux ELF.
3632 linux-gnu*)
3633   lt_cv_deplibs_check_method=pass_all
3634   ;;
3635
3636 netbsd* | knetbsd*-gnu)
3637   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3638     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3639   else
3640     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3641   fi
3642   ;;
3643
3644 newsos6)
3645   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3646   lt_cv_file_magic_cmd=/usr/bin/file
3647   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3648   ;;
3649
3650 osf3* | osf4* | osf5*)
3651   # this will be overridden with pass_all, but let us keep it just in case
3652   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3653   lt_cv_file_magic_test_file=/shlib/libc.so
3654   lt_cv_deplibs_check_method=pass_all
3655   ;;
3656
3657 sco3.2v5*)
3658   lt_cv_deplibs_check_method=pass_all
3659   ;;
3660
3661 solaris*)
3662   lt_cv_deplibs_check_method=pass_all
3663   lt_cv_file_magic_test_file=/lib/libc.so
3664   ;;
3665
3666 sysv5uw[78]* | sysv4*uw2*)
3667   lt_cv_deplibs_check_method=pass_all
3668   ;;
3669
3670 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3671   case $host_vendor in
3672   ncr)
3673     lt_cv_deplibs_check_method=pass_all
3674     ;;
3675   motorola)
3676     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]'
3677     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3678     ;;
3679   esac
3680   ;;
3681 esac
3682
3683 fi
3684 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3685 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3686 file_magic_cmd=$lt_cv_file_magic_cmd
3687 deplibs_check_method=$lt_cv_deplibs_check_method
3688
3689
3690
3691
3692
3693 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3694
3695 # Only perform the check for file, if the check method requires it
3696 case $deplibs_check_method in
3697 file_magic*)
3698   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3699     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3700 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3701 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3702   echo $ECHO_N "(cached) $ECHO_C" >&6
3703 else
3704   case $MAGIC_CMD in
3705   /*)
3706   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3707   ;;
3708   ?:/*)
3709   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3710   ;;
3711   *)
3712   ac_save_MAGIC_CMD="$MAGIC_CMD"
3713   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3714   ac_dummy="/usr/bin:$PATH"
3715   for ac_dir in $ac_dummy; do
3716     test -z "$ac_dir" && ac_dir=.
3717     if test -f $ac_dir/${ac_tool_prefix}file; then
3718       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3719       if test -n "$file_magic_test_file"; then
3720         case $deplibs_check_method in
3721         "file_magic "*)
3722           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3723           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3724           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3725             egrep "$file_magic_regex" > /dev/null; then
3726             :
3727           else
3728             cat <<EOF 1>&2
3729
3730 *** Warning: the command libtool uses to detect shared libraries,
3731 *** $file_magic_cmd, produces output that libtool cannot recognize.
3732 *** The result is that libtool may fail to recognize shared libraries
3733 *** as such.  This will affect the creation of libtool libraries that
3734 *** depend on shared libraries, but programs linked with such libtool
3735 *** libraries will work regardless of this problem.  Nevertheless, you
3736 *** may want to report the problem to your system manager and/or to
3737 *** bug-libtool@gnu.org
3738
3739 EOF
3740           fi ;;
3741         esac
3742       fi
3743       break
3744     fi
3745   done
3746   IFS="$ac_save_ifs"
3747   MAGIC_CMD="$ac_save_MAGIC_CMD"
3748   ;;
3749 esac
3750 fi
3751
3752 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3753 if test -n "$MAGIC_CMD"; then
3754   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3755 echo "${ECHO_T}$MAGIC_CMD" >&6
3756 else
3757   echo "$as_me:$LINENO: result: no" >&5
3758 echo "${ECHO_T}no" >&6
3759 fi
3760
3761 if test -z "$lt_cv_path_MAGIC_CMD"; then
3762   if test -n "$ac_tool_prefix"; then
3763     echo "$as_me:$LINENO: checking for file" >&5
3764 echo $ECHO_N "checking for 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/file; then
3782       lt_cv_path_MAGIC_CMD="$ac_dir/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   else
3826     MAGIC_CMD=:
3827   fi
3828 fi
3829
3830   fi
3831   ;;
3832 esac
3833
3834 if test -n "$ac_tool_prefix"; then
3835   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3836 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3837 echo "$as_me:$LINENO: checking for $ac_word" >&5
3838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3839 if test "${ac_cv_prog_RANLIB+set}" = set; then
3840   echo $ECHO_N "(cached) $ECHO_C" >&6
3841 else
3842   if test -n "$RANLIB"; then
3843   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3844 else
3845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846 for as_dir in $PATH
3847 do
3848   IFS=$as_save_IFS
3849   test -z "$as_dir" && as_dir=.
3850   for ac_exec_ext in '' $ac_executable_extensions; do
3851   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3852     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3853     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3854     break 2
3855   fi
3856 done
3857 done
3858
3859 fi
3860 fi
3861 RANLIB=$ac_cv_prog_RANLIB
3862 if test -n "$RANLIB"; then
3863   echo "$as_me:$LINENO: result: $RANLIB" >&5
3864 echo "${ECHO_T}$RANLIB" >&6
3865 else
3866   echo "$as_me:$LINENO: result: no" >&5
3867 echo "${ECHO_T}no" >&6
3868 fi
3869
3870 fi
3871 if test -z "$ac_cv_prog_RANLIB"; then
3872   ac_ct_RANLIB=$RANLIB
3873   # Extract the first word of "ranlib", so it can be a program name with args.
3874 set dummy ranlib; ac_word=$2
3875 echo "$as_me:$LINENO: checking for $ac_word" >&5
3876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3877 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3878   echo $ECHO_N "(cached) $ECHO_C" >&6
3879 else
3880   if test -n "$ac_ct_RANLIB"; then
3881   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3882 else
3883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3884 for as_dir in $PATH
3885 do
3886   IFS=$as_save_IFS
3887   test -z "$as_dir" && as_dir=.
3888   for ac_exec_ext in '' $ac_executable_extensions; do
3889   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3890     ac_cv_prog_ac_ct_RANLIB="ranlib"
3891     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3892     break 2
3893   fi
3894 done
3895 done
3896
3897   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3898 fi
3899 fi
3900 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3901 if test -n "$ac_ct_RANLIB"; then
3902   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3903 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3904 else
3905   echo "$as_me:$LINENO: result: no" >&5
3906 echo "${ECHO_T}no" >&6
3907 fi
3908
3909   RANLIB=$ac_ct_RANLIB
3910 else
3911   RANLIB="$ac_cv_prog_RANLIB"
3912 fi
3913
3914 if test -n "$ac_tool_prefix"; then
3915   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3916 set dummy ${ac_tool_prefix}strip; ac_word=$2
3917 echo "$as_me:$LINENO: checking for $ac_word" >&5
3918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3919 if test "${ac_cv_prog_STRIP+set}" = set; then
3920   echo $ECHO_N "(cached) $ECHO_C" >&6
3921 else
3922   if test -n "$STRIP"; then
3923   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3924 else
3925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926 for as_dir in $PATH
3927 do
3928   IFS=$as_save_IFS
3929   test -z "$as_dir" && as_dir=.
3930   for ac_exec_ext in '' $ac_executable_extensions; do
3931   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3932     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3933     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3934     break 2
3935   fi
3936 done
3937 done
3938
3939 fi
3940 fi
3941 STRIP=$ac_cv_prog_STRIP
3942 if test -n "$STRIP"; then
3943   echo "$as_me:$LINENO: result: $STRIP" >&5
3944 echo "${ECHO_T}$STRIP" >&6
3945 else
3946   echo "$as_me:$LINENO: result: no" >&5
3947 echo "${ECHO_T}no" >&6
3948 fi
3949
3950 fi
3951 if test -z "$ac_cv_prog_STRIP"; then
3952   ac_ct_STRIP=$STRIP
3953   # Extract the first word of "strip", so it can be a program name with args.
3954 set dummy strip; ac_word=$2
3955 echo "$as_me:$LINENO: checking for $ac_word" >&5
3956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3957 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3958   echo $ECHO_N "(cached) $ECHO_C" >&6
3959 else
3960   if test -n "$ac_ct_STRIP"; then
3961   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3962 else
3963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964 for as_dir in $PATH
3965 do
3966   IFS=$as_save_IFS
3967   test -z "$as_dir" && as_dir=.
3968   for ac_exec_ext in '' $ac_executable_extensions; do
3969   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3970     ac_cv_prog_ac_ct_STRIP="strip"
3971     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3972     break 2
3973   fi
3974 done
3975 done
3976
3977   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3978 fi
3979 fi
3980 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3981 if test -n "$ac_ct_STRIP"; then
3982   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3983 echo "${ECHO_T}$ac_ct_STRIP" >&6
3984 else
3985   echo "$as_me:$LINENO: result: no" >&5
3986 echo "${ECHO_T}no" >&6
3987 fi
3988
3989   STRIP=$ac_ct_STRIP
3990 else
3991   STRIP="$ac_cv_prog_STRIP"
3992 fi
3993
3994
3995 # Check for any special flags to pass to ltconfig.
3996 libtool_flags="--cache-file=$cache_file"
3997 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3998 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3999 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4000 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4001 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4002
4003
4004 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4005 if test "${enable_libtool_lock+set}" = set; then
4006   enableval="$enable_libtool_lock"
4007
4008 fi;
4009 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4010 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4011
4012
4013 # Check whether --with-pic or --without-pic was given.
4014 if test "${with_pic+set}" = set; then
4015   withval="$with_pic"
4016   pic_mode="$withval"
4017 else
4018   pic_mode=default
4019 fi;
4020 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4021 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4022
4023 # Some flags need to be propagated to the compiler or linker for good
4024 # libtool support.
4025 case $host in
4026 *-*-irix6*)
4027   # Find out which ABI we are using.
4028   echo '#line 4028 "configure"' > conftest.$ac_ext
4029   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4030   (eval $ac_compile) 2>&5
4031   ac_status=$?
4032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033   (exit $ac_status); }; then
4034    if test "$lt_cv_prog_gnu_ld" = yes; then
4035     case `/usr/bin/file conftest.$ac_objext` in
4036     *32-bit*)
4037       LD="${LD-ld} -melf32bsmip"
4038       ;;
4039     *N32*)
4040       LD="${LD-ld} -melf32bmipn32"
4041       ;;
4042     *64-bit*)
4043       LD="${LD-ld} -melf64bmip"
4044       ;;
4045     esac
4046    else
4047     case `/usr/bin/file conftest.$ac_objext` in
4048     *32-bit*)
4049       LD="${LD-ld} -32"
4050       ;;
4051     *N32*)
4052       LD="${LD-ld} -n32"
4053       ;;
4054     *64-bit*)
4055       LD="${LD-ld} -64"
4056       ;;
4057     esac
4058    fi
4059   fi
4060   rm -rf conftest*
4061   ;;
4062
4063 ia64-*-hpux*)
4064   # Find out which ABI we are using.
4065   echo 'int i;' > conftest.$ac_ext
4066   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4067   (eval $ac_compile) 2>&5
4068   ac_status=$?
4069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070   (exit $ac_status); }; then
4071     case "`/usr/bin/file conftest.o`" in
4072     *ELF-32*)
4073       HPUX_IA64_MODE="32"
4074       ;;
4075     *ELF-64*)
4076       HPUX_IA64_MODE="64"
4077       ;;
4078     esac
4079   fi
4080   rm -rf conftest*
4081   ;;
4082
4083 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4084   # Find out which ABI we are using.
4085   echo 'int i;' > conftest.$ac_ext
4086   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4087   (eval $ac_compile) 2>&5
4088   ac_status=$?
4089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090   (exit $ac_status); }; then
4091     case "`/usr/bin/file conftest.o`" in
4092     *32-bit*)
4093       case $host in
4094         x86_64-*linux*)
4095           LD="${LD-ld} -m elf_i386"
4096           ;;
4097         ppc64-*linux*|powerpc64-*linux*)
4098           LD="${LD-ld} -m elf32ppclinux"
4099           ;;
4100         s390x-*linux*)
4101           LD="${LD-ld} -m elf_s390"
4102           ;;
4103         sparc64-*linux*)
4104           LD="${LD-ld} -m elf32_sparc"
4105           ;;
4106       esac
4107       ;;
4108     *64-bit*)
4109       case $host in
4110         x86_64-*linux*)
4111           LD="${LD-ld} -m elf_x86_64"
4112           ;;
4113         ppc*-*linux*|powerpc*-*linux*)
4114           LD="${LD-ld} -m elf64ppc"
4115           ;;
4116         s390*-*linux*)
4117           LD="${LD-ld} -m elf64_s390"
4118           ;;
4119         sparc*-*linux*)
4120           LD="${LD-ld} -m elf64_sparc"
4121           ;;
4122       esac
4123       ;;
4124     esac
4125   fi
4126   rm -rf conftest*
4127   ;;
4128
4129 *-*-sco3.2v5*)
4130   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4131   SAVE_CFLAGS="$CFLAGS"
4132   CFLAGS="$CFLAGS -belf"
4133   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4134 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4135 if test "${lt_cv_cc_needs_belf+set}" = set; then
4136   echo $ECHO_N "(cached) $ECHO_C" >&6
4137 else
4138
4139
4140      ac_ext=c
4141 ac_cpp='$CPP $CPPFLAGS'
4142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4145
4146      cat >conftest.$ac_ext <<_ACEOF
4147 /* confdefs.h.  */
4148 _ACEOF
4149 cat confdefs.h >>conftest.$ac_ext
4150 cat >>conftest.$ac_ext <<_ACEOF
4151 /* end confdefs.h.  */
4152
4153 int
4154 main ()
4155 {
4156
4157   ;
4158   return 0;
4159 }
4160 _ACEOF
4161 rm -f conftest.$ac_objext conftest$ac_exeext
4162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4163   (eval $ac_link) 2>conftest.er1
4164   ac_status=$?
4165   grep -v '^ *+' conftest.er1 >conftest.err
4166   rm -f conftest.er1
4167   cat conftest.err >&5
4168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169   (exit $ac_status); } &&
4170          { ac_try='test -z "$ac_c_werror_flag"
4171                          || test ! -s conftest.err'
4172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4173   (eval $ac_try) 2>&5
4174   ac_status=$?
4175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176   (exit $ac_status); }; } &&
4177          { ac_try='test -s conftest$ac_exeext'
4178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4179   (eval $ac_try) 2>&5
4180   ac_status=$?
4181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182   (exit $ac_status); }; }; then
4183   lt_cv_cc_needs_belf=yes
4184 else
4185   echo "$as_me: failed program was:" >&5
4186 sed 's/^/| /' conftest.$ac_ext >&5
4187
4188 lt_cv_cc_needs_belf=no
4189 fi
4190 rm -f conftest.err conftest.$ac_objext \
4191       conftest$ac_exeext conftest.$ac_ext
4192      ac_ext=c
4193 ac_cpp='$CPP $CPPFLAGS'
4194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4197
4198 fi
4199 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4200 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4201   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4202     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4203     CFLAGS="$SAVE_CFLAGS"
4204   fi
4205   ;;
4206
4207
4208 esac
4209
4210
4211 # Save cache, so that ltconfig can load it
4212 cat >confcache <<\_ACEOF
4213 # This file is a shell script that caches the results of configure
4214 # tests run on this system so they can be shared between configure
4215 # scripts and configure runs, see configure's option --config-cache.
4216 # It is not useful on other systems.  If it contains results you don't
4217 # want to keep, you may remove or edit it.
4218 #
4219 # config.status only pays attention to the cache file if you give it
4220 # the --recheck option to rerun configure.
4221 #
4222 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4223 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4224 # following values.
4225
4226 _ACEOF
4227
4228 # The following way of writing the cache mishandles newlines in values,
4229 # but we know of no workaround that is simple, portable, and efficient.
4230 # So, don't put newlines in cache variables' values.
4231 # Ultrix sh set writes to stderr and can't be redirected directly,
4232 # and sets the high bit in the cache file unless we assign to the vars.
4233 {
4234   (set) 2>&1 |
4235     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4236     *ac_space=\ *)
4237       # `set' does not quote correctly, so add quotes (double-quote
4238       # substitution turns \\\\ into \\, and sed turns \\ into \).
4239       sed -n \
4240         "s/'/'\\\\''/g;
4241           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4242       ;;
4243     *)
4244       # `set' quotes correctly as required by POSIX, so do not add quotes.
4245       sed -n \
4246         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4247       ;;
4248     esac;
4249 } |
4250   sed '
4251      t clear
4252      : clear
4253      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4254      t end
4255      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4256      : end' >>confcache
4257 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4258   if test -w $cache_file; then
4259     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4260     cat confcache >$cache_file
4261   else
4262     echo "not updating unwritable cache $cache_file"
4263   fi
4264 fi
4265 rm -f confcache
4266
4267 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
4268 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4269 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4270 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4271 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4272 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4273 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4274 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4275 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4276 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4277 echo "$as_me: error: libtool configure failed" >&2;}
4278    { (exit 1); exit 1; }; }
4279
4280 # Reload cache, that may have been modified by ltconfig
4281 if test -r "$cache_file"; then
4282   # Some versions of bash will fail to source /dev/null (special
4283   # files actually), so we avoid doing that.
4284   if test -f "$cache_file"; then
4285     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4286 echo "$as_me: loading cache $cache_file" >&6;}
4287     case $cache_file in
4288       [\\/]* | ?:[\\/]* ) . $cache_file;;
4289       *)                      . ./$cache_file;;
4290     esac
4291   fi
4292 else
4293   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4294 echo "$as_me: creating cache $cache_file" >&6;}
4295   >$cache_file
4296 fi
4297
4298
4299 # This can be used to rebuild libtool when needed
4300 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4301
4302 # Always use our own libtool.
4303 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4304
4305 # Redirect the config.log output again, so that the ltconfig log is not
4306 # clobbered by the next message.
4307 exec 5>>./config.log
4308
4309
4310
4311
4312
4313
4314
4315
4316 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
4317
4318 # We need gfortran to compile parts of the library
4319 # We can't use AC_PROG_FC because it expects a fully working gfortran.
4320 #AC_PROG_FC(gfortran)
4321 FC="$GFORTRAN"
4322 ac_ext=${FC_SRCEXT-f}
4323 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
4324 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
4325 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4326 if test -n "$ac_tool_prefix"; then
4327   for ac_prog in gfortran
4328   do
4329     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4330 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4331 echo "$as_me:$LINENO: checking for $ac_word" >&5
4332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4333 if test "${ac_cv_prog_FC+set}" = set; then
4334   echo $ECHO_N "(cached) $ECHO_C" >&6
4335 else
4336   if test -n "$FC"; then
4337   ac_cv_prog_FC="$FC" # Let the user override the test.
4338 else
4339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340 for as_dir in $PATH
4341 do
4342   IFS=$as_save_IFS
4343   test -z "$as_dir" && as_dir=.
4344   for ac_exec_ext in '' $ac_executable_extensions; do
4345   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4346     ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4347     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4348     break 2
4349   fi
4350 done
4351 done
4352
4353 fi
4354 fi
4355 FC=$ac_cv_prog_FC
4356 if test -n "$FC"; then
4357   echo "$as_me:$LINENO: result: $FC" >&5
4358 echo "${ECHO_T}$FC" >&6
4359 else
4360   echo "$as_me:$LINENO: result: no" >&5
4361 echo "${ECHO_T}no" >&6
4362 fi
4363
4364     test -n "$FC" && break
4365   done
4366 fi
4367 if test -z "$FC"; then
4368   ac_ct_FC=$FC
4369   for ac_prog in gfortran
4370 do
4371   # Extract the first word of "$ac_prog", so it can be a program name with args.
4372 set dummy $ac_prog; ac_word=$2
4373 echo "$as_me:$LINENO: checking for $ac_word" >&5
4374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4375 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
4376   echo $ECHO_N "(cached) $ECHO_C" >&6
4377 else
4378   if test -n "$ac_ct_FC"; then
4379   ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4380 else
4381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4382 for as_dir in $PATH
4383 do
4384   IFS=$as_save_IFS
4385   test -z "$as_dir" && as_dir=.
4386   for ac_exec_ext in '' $ac_executable_extensions; do
4387   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4388     ac_cv_prog_ac_ct_FC="$ac_prog"
4389     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4390     break 2
4391   fi
4392 done
4393 done
4394
4395 fi
4396 fi
4397 ac_ct_FC=$ac_cv_prog_ac_ct_FC
4398 if test -n "$ac_ct_FC"; then
4399   echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
4400 echo "${ECHO_T}$ac_ct_FC" >&6
4401 else
4402   echo "$as_me:$LINENO: result: no" >&5
4403 echo "${ECHO_T}no" >&6
4404 fi
4405
4406   test -n "$ac_ct_FC" && break
4407 done
4408
4409   FC=$ac_ct_FC
4410 fi
4411
4412
4413 # Provide some information about the compiler.
4414 echo "$as_me:4414:" \
4415      "checking for Fortran compiler version" >&5
4416 ac_compiler=`set X $ac_compile; echo $2`
4417 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4418   (eval $ac_compiler --version </dev/null >&5) 2>&5
4419   ac_status=$?
4420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421   (exit $ac_status); }
4422 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4423   (eval $ac_compiler -v </dev/null >&5) 2>&5
4424   ac_status=$?
4425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426   (exit $ac_status); }
4427 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4428   (eval $ac_compiler -V </dev/null >&5) 2>&5
4429   ac_status=$?
4430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431   (exit $ac_status); }
4432 rm -f a.out
4433
4434 # If we don't use `.F' as extension, the preprocessor is not run on the
4435 # input file.  (Note that this only needs to work for GNU compilers.)
4436 ac_save_ext=$ac_ext
4437 ac_ext=F
4438 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
4439 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
4440 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
4441   echo $ECHO_N "(cached) $ECHO_C" >&6
4442 else
4443   cat >conftest.$ac_ext <<_ACEOF
4444       program main
4445 #ifndef __GNUC__
4446        choke me
4447 #endif
4448
4449       end
4450 _ACEOF
4451 rm -f conftest.$ac_objext
4452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4453   (eval $ac_compile) 2>conftest.er1
4454   ac_status=$?
4455   grep -v '^ *+' conftest.er1 >conftest.err
4456   rm -f conftest.er1
4457   cat conftest.err >&5
4458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459   (exit $ac_status); } &&
4460          { ac_try='test -z "$ac_fc_werror_flag"
4461                          || test ! -s conftest.err'
4462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4463   (eval $ac_try) 2>&5
4464   ac_status=$?
4465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466   (exit $ac_status); }; } &&
4467          { ac_try='test -s conftest.$ac_objext'
4468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4469   (eval $ac_try) 2>&5
4470   ac_status=$?
4471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472   (exit $ac_status); }; }; then
4473   ac_compiler_gnu=yes
4474 else
4475   echo "$as_me: failed program was:" >&5
4476 sed 's/^/| /' conftest.$ac_ext >&5
4477
4478 ac_compiler_gnu=no
4479 fi
4480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4481 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4482
4483 fi
4484 echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
4485 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
4486 ac_ext=$ac_save_ext
4487 ac_test_FFLAGS=${FCFLAGS+set}
4488 ac_save_FFLAGS=$FCFLAGS
4489 FCFLAGS=
4490 echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
4491 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
4492 if test "${ac_cv_prog_fc_g+set}" = set; then
4493   echo $ECHO_N "(cached) $ECHO_C" >&6
4494 else
4495   FCFLAGS=-g
4496 cat >conftest.$ac_ext <<_ACEOF
4497       program main
4498
4499       end
4500 _ACEOF
4501 rm -f conftest.$ac_objext
4502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4503   (eval $ac_compile) 2>conftest.er1
4504   ac_status=$?
4505   grep -v '^ *+' conftest.er1 >conftest.err
4506   rm -f conftest.er1
4507   cat conftest.err >&5
4508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509   (exit $ac_status); } &&
4510          { ac_try='test -z "$ac_fc_werror_flag"
4511                          || test ! -s conftest.err'
4512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4513   (eval $ac_try) 2>&5
4514   ac_status=$?
4515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516   (exit $ac_status); }; } &&
4517          { ac_try='test -s conftest.$ac_objext'
4518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4519   (eval $ac_try) 2>&5
4520   ac_status=$?
4521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522   (exit $ac_status); }; }; then
4523   ac_cv_prog_fc_g=yes
4524 else
4525   echo "$as_me: failed program was:" >&5
4526 sed 's/^/| /' conftest.$ac_ext >&5
4527
4528 ac_cv_prog_fc_g=no
4529 fi
4530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4531
4532 fi
4533 echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
4534 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
4535 if test "$ac_test_FFLAGS" = set; then
4536   FCFLAGS=$ac_save_FFLAGS
4537 elif test $ac_cv_prog_fc_g = yes; then
4538   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4539     FCFLAGS="-g -O2"
4540   else
4541     FCFLAGS="-g"
4542   fi
4543 else
4544   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4545     FCFLAGS="-O2"
4546   else
4547     FCFLAGS=
4548   fi
4549 fi
4550
4551 ac_ext=c
4552 ac_cpp='$CPP $CPPFLAGS'
4553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4556
4557 FCFLAGS="$FCFLAGS -Wall -fno-repack-arrays -fno-underscoring"
4558
4559 # extra LD Flags which are required for targets
4560 case "${host}" in
4561   *-darwin*)
4562     # Darwin needs -single_module when linking libgfortran
4563     extra_ldflags_libgfortran=-Wl,-single_module
4564     ;;
4565 esac
4566
4567
4568 # Check whether --enable-largefile or --disable-largefile was given.
4569 if test "${enable_largefile+set}" = set; then
4570   enableval="$enable_largefile"
4571
4572 fi;
4573 if test "$enable_largefile" != no; then
4574
4575   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4576 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4577 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4578   echo $ECHO_N "(cached) $ECHO_C" >&6
4579 else
4580   ac_cv_sys_largefile_CC=no
4581      if test "$GCC" != yes; then
4582        ac_save_CC=$CC
4583        while :; do
4584          # IRIX 6.2 and later do not support large files by default,
4585          # so use the C compiler's -n32 option if that helps.
4586          cat >conftest.$ac_ext <<_ACEOF
4587 /* confdefs.h.  */
4588 _ACEOF
4589 cat confdefs.h >>conftest.$ac_ext
4590 cat >>conftest.$ac_ext <<_ACEOF
4591 /* end confdefs.h.  */
4592 #include <sys/types.h>
4593  /* Check that off_t can represent 2**63 - 1 correctly.
4594     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4595     since some C++ compilers masquerading as C compilers
4596     incorrectly reject 9223372036854775807.  */
4597 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4598   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4599                        && LARGE_OFF_T % 2147483647 == 1)
4600                       ? 1 : -1];
4601 int
4602 main ()
4603 {
4604
4605   ;
4606   return 0;
4607 }
4608 _ACEOF
4609          rm -f conftest.$ac_objext
4610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4611   (eval $ac_compile) 2>conftest.er1
4612   ac_status=$?
4613   grep -v '^ *+' conftest.er1 >conftest.err
4614   rm -f conftest.er1
4615   cat conftest.err >&5
4616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617   (exit $ac_status); } &&
4618          { ac_try='test -z "$ac_c_werror_flag"
4619                          || test ! -s conftest.err'
4620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4621   (eval $ac_try) 2>&5
4622   ac_status=$?
4623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624   (exit $ac_status); }; } &&
4625          { ac_try='test -s conftest.$ac_objext'
4626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4627   (eval $ac_try) 2>&5
4628   ac_status=$?
4629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630   (exit $ac_status); }; }; then
4631   break
4632 else
4633   echo "$as_me: failed program was:" >&5
4634 sed 's/^/| /' conftest.$ac_ext >&5
4635
4636 fi
4637 rm -f conftest.err conftest.$ac_objext
4638          CC="$CC -n32"
4639          rm -f conftest.$ac_objext
4640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4641   (eval $ac_compile) 2>conftest.er1
4642   ac_status=$?
4643   grep -v '^ *+' conftest.er1 >conftest.err
4644   rm -f conftest.er1
4645   cat conftest.err >&5
4646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647   (exit $ac_status); } &&
4648          { ac_try='test -z "$ac_c_werror_flag"
4649                          || test ! -s conftest.err'
4650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4651   (eval $ac_try) 2>&5
4652   ac_status=$?
4653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654   (exit $ac_status); }; } &&
4655          { ac_try='test -s conftest.$ac_objext'
4656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4657   (eval $ac_try) 2>&5
4658   ac_status=$?
4659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660   (exit $ac_status); }; }; then
4661   ac_cv_sys_largefile_CC=' -n32'; break
4662 else
4663   echo "$as_me: failed program was:" >&5
4664 sed 's/^/| /' conftest.$ac_ext >&5
4665
4666 fi
4667 rm -f conftest.err conftest.$ac_objext
4668          break
4669        done
4670        CC=$ac_save_CC
4671        rm -f conftest.$ac_ext
4672     fi
4673 fi
4674 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4675 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4676   if test "$ac_cv_sys_largefile_CC" != no; then
4677     CC=$CC$ac_cv_sys_largefile_CC
4678   fi
4679
4680   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4681 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4682 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4683   echo $ECHO_N "(cached) $ECHO_C" >&6
4684 else
4685   while :; do
4686   ac_cv_sys_file_offset_bits=no
4687   cat >conftest.$ac_ext <<_ACEOF
4688 /* confdefs.h.  */
4689 _ACEOF
4690 cat confdefs.h >>conftest.$ac_ext
4691 cat >>conftest.$ac_ext <<_ACEOF
4692 /* end confdefs.h.  */
4693 #include <sys/types.h>
4694  /* Check that off_t can represent 2**63 - 1 correctly.
4695     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4696     since some C++ compilers masquerading as C compilers
4697     incorrectly reject 9223372036854775807.  */
4698 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4699   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4700                        && LARGE_OFF_T % 2147483647 == 1)
4701                       ? 1 : -1];
4702 int
4703 main ()
4704 {
4705
4706   ;
4707   return 0;
4708 }
4709 _ACEOF
4710 rm -f conftest.$ac_objext
4711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4712   (eval $ac_compile) 2>conftest.er1
4713   ac_status=$?
4714   grep -v '^ *+' conftest.er1 >conftest.err
4715   rm -f conftest.er1
4716   cat conftest.err >&5
4717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718   (exit $ac_status); } &&
4719          { ac_try='test -z "$ac_c_werror_flag"
4720                          || test ! -s conftest.err'
4721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4722   (eval $ac_try) 2>&5
4723   ac_status=$?
4724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725   (exit $ac_status); }; } &&
4726          { ac_try='test -s conftest.$ac_objext'
4727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4728   (eval $ac_try) 2>&5
4729   ac_status=$?
4730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731   (exit $ac_status); }; }; then
4732   break
4733 else
4734   echo "$as_me: failed program was:" >&5
4735 sed 's/^/| /' conftest.$ac_ext >&5
4736
4737 fi
4738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4739   cat >conftest.$ac_ext <<_ACEOF
4740 /* confdefs.h.  */
4741 _ACEOF
4742 cat confdefs.h >>conftest.$ac_ext
4743 cat >>conftest.$ac_ext <<_ACEOF
4744 /* end confdefs.h.  */
4745 #define _FILE_OFFSET_BITS 64
4746 #include <sys/types.h>
4747  /* Check that off_t can represent 2**63 - 1 correctly.
4748     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4749     since some C++ compilers masquerading as C compilers
4750     incorrectly reject 9223372036854775807.  */
4751 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4752   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4753                        && LARGE_OFF_T % 2147483647 == 1)
4754                       ? 1 : -1];
4755 int
4756 main ()
4757 {
4758
4759   ;
4760   return 0;
4761 }
4762 _ACEOF
4763 rm -f conftest.$ac_objext
4764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4765   (eval $ac_compile) 2>conftest.er1
4766   ac_status=$?
4767   grep -v '^ *+' conftest.er1 >conftest.err
4768   rm -f conftest.er1
4769   cat conftest.err >&5
4770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771   (exit $ac_status); } &&
4772          { ac_try='test -z "$ac_c_werror_flag"
4773                          || test ! -s conftest.err'
4774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4775   (eval $ac_try) 2>&5
4776   ac_status=$?
4777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778   (exit $ac_status); }; } &&
4779          { ac_try='test -s conftest.$ac_objext'
4780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4781   (eval $ac_try) 2>&5
4782   ac_status=$?
4783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784   (exit $ac_status); }; }; then
4785   ac_cv_sys_file_offset_bits=64; break
4786 else
4787   echo "$as_me: failed program was:" >&5
4788 sed 's/^/| /' conftest.$ac_ext >&5
4789
4790 fi
4791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4792   break
4793 done
4794 fi
4795 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4796 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4797 if test "$ac_cv_sys_file_offset_bits" != no; then
4798
4799 cat >>confdefs.h <<_ACEOF
4800 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4801 _ACEOF
4802
4803 fi
4804 rm -f conftest*
4805   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4806 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4807 if test "${ac_cv_sys_large_files+set}" = set; then
4808   echo $ECHO_N "(cached) $ECHO_C" >&6
4809 else
4810   while :; do
4811   ac_cv_sys_large_files=no
4812   cat >conftest.$ac_ext <<_ACEOF
4813 /* confdefs.h.  */
4814 _ACEOF
4815 cat confdefs.h >>conftest.$ac_ext
4816 cat >>conftest.$ac_ext <<_ACEOF
4817 /* end confdefs.h.  */
4818 #include <sys/types.h>
4819  /* Check that off_t can represent 2**63 - 1 correctly.
4820     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4821     since some C++ compilers masquerading as C compilers
4822     incorrectly reject 9223372036854775807.  */
4823 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4824   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4825                        && LARGE_OFF_T % 2147483647 == 1)
4826                       ? 1 : -1];
4827 int
4828 main ()
4829 {
4830
4831   ;
4832   return 0;
4833 }
4834 _ACEOF
4835 rm -f conftest.$ac_objext
4836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4837   (eval $ac_compile) 2>conftest.er1
4838   ac_status=$?
4839   grep -v '^ *+' conftest.er1 >conftest.err
4840   rm -f conftest.er1
4841   cat conftest.err >&5
4842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843   (exit $ac_status); } &&
4844          { ac_try='test -z "$ac_c_werror_flag"
4845                          || test ! -s conftest.err'
4846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4847   (eval $ac_try) 2>&5
4848   ac_status=$?
4849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850   (exit $ac_status); }; } &&
4851          { ac_try='test -s conftest.$ac_objext'
4852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4853   (eval $ac_try) 2>&5
4854   ac_status=$?
4855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856   (exit $ac_status); }; }; then
4857   break
4858 else
4859   echo "$as_me: failed program was:" >&5
4860 sed 's/^/| /' conftest.$ac_ext >&5
4861
4862 fi
4863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4864   cat >conftest.$ac_ext <<_ACEOF
4865 /* confdefs.h.  */
4866 _ACEOF
4867 cat confdefs.h >>conftest.$ac_ext
4868 cat >>conftest.$ac_ext <<_ACEOF
4869 /* end confdefs.h.  */
4870 #define _LARGE_FILES 1
4871 #include <sys/types.h>
4872  /* Check that off_t can represent 2**63 - 1 correctly.
4873     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4874     since some C++ compilers masquerading as C compilers
4875     incorrectly reject 9223372036854775807.  */
4876 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4877   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4878                        && LARGE_OFF_T % 2147483647 == 1)
4879                       ? 1 : -1];
4880 int
4881 main ()
4882 {
4883
4884   ;
4885   return 0;
4886 }
4887 _ACEOF
4888 rm -f conftest.$ac_objext
4889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4890   (eval $ac_compile) 2>conftest.er1
4891   ac_status=$?
4892   grep -v '^ *+' conftest.er1 >conftest.err
4893   rm -f conftest.er1
4894   cat conftest.err >&5
4895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896   (exit $ac_status); } &&
4897          { ac_try='test -z "$ac_c_werror_flag"
4898                          || test ! -s conftest.err'
4899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4900   (eval $ac_try) 2>&5
4901   ac_status=$?
4902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903   (exit $ac_status); }; } &&
4904          { ac_try='test -s conftest.$ac_objext'
4905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4906   (eval $ac_try) 2>&5
4907   ac_status=$?
4908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909   (exit $ac_status); }; }; then
4910   ac_cv_sys_large_files=1; break
4911 else
4912   echo "$as_me: failed program was:" >&5
4913 sed 's/^/| /' conftest.$ac_ext >&5
4914
4915 fi
4916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4917   break
4918 done
4919 fi
4920 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4921 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4922 if test "$ac_cv_sys_large_files" != no; then
4923
4924 cat >>confdefs.h <<_ACEOF
4925 #define _LARGE_FILES $ac_cv_sys_large_files
4926 _ACEOF
4927
4928 fi
4929 rm -f conftest*
4930 fi
4931
4932 ac_ext=c
4933 ac_cpp='$CPP $CPPFLAGS'
4934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4937 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4938 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4939 # On Suns, sometimes $CPP names a directory.
4940 if test -n "$CPP" && test -d "$CPP"; then
4941   CPP=
4942 fi
4943 if test -z "$CPP"; then
4944   if test "${ac_cv_prog_CPP+set}" = set; then
4945   echo $ECHO_N "(cached) $ECHO_C" >&6
4946 else
4947       # Double quotes because CPP needs to be expanded
4948     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4949     do
4950       ac_preproc_ok=false
4951 for ac_c_preproc_warn_flag in '' yes
4952 do
4953   # Use a header file that comes with gcc, so configuring glibc
4954   # with a fresh cross-compiler works.
4955   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4956   # <limits.h> exists even on freestanding compilers.
4957   # On the NeXT, cc -E runs the code through the compiler's parser,
4958   # not just through cpp. "Syntax error" is here to catch this case.
4959   cat >conftest.$ac_ext <<_ACEOF
4960 /* confdefs.h.  */
4961 _ACEOF
4962 cat confdefs.h >>conftest.$ac_ext
4963 cat >>conftest.$ac_ext <<_ACEOF
4964 /* end confdefs.h.  */
4965 #ifdef __STDC__
4966 # include <limits.h>
4967 #else
4968 # include <assert.h>
4969 #endif
4970                      Syntax error
4971 _ACEOF
4972 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4973   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4974   ac_status=$?
4975   grep -v '^ *+' conftest.er1 >conftest.err
4976   rm -f conftest.er1
4977   cat conftest.err >&5
4978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979   (exit $ac_status); } >/dev/null; then
4980   if test -s conftest.err; then
4981     ac_cpp_err=$ac_c_preproc_warn_flag
4982     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4983   else
4984     ac_cpp_err=
4985   fi
4986 else
4987   ac_cpp_err=yes
4988 fi
4989 if test -z "$ac_cpp_err"; then
4990   :
4991 else
4992   echo "$as_me: failed program was:" >&5
4993 sed 's/^/| /' conftest.$ac_ext >&5
4994
4995   # Broken: fails on valid input.
4996 continue
4997 fi
4998 rm -f conftest.err conftest.$ac_ext
4999
5000   # OK, works on sane cases.  Now check whether non-existent headers
5001   # can be detected and how.
5002   cat >conftest.$ac_ext <<_ACEOF
5003 /* confdefs.h.  */
5004 _ACEOF
5005 cat confdefs.h >>conftest.$ac_ext
5006 cat >>conftest.$ac_ext <<_ACEOF
5007 /* end confdefs.h.  */
5008 #include <ac_nonexistent.h>
5009 _ACEOF
5010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5011   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5012   ac_status=$?
5013   grep -v '^ *+' conftest.er1 >conftest.err
5014   rm -f conftest.er1
5015   cat conftest.err >&5
5016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017   (exit $ac_status); } >/dev/null; then
5018   if test -s conftest.err; then
5019     ac_cpp_err=$ac_c_preproc_warn_flag
5020     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5021   else
5022     ac_cpp_err=
5023   fi
5024 else
5025   ac_cpp_err=yes
5026 fi
5027 if test -z "$ac_cpp_err"; then
5028   # Broken: success on invalid input.
5029 continue
5030 else
5031   echo "$as_me: failed program was:" >&5
5032 sed 's/^/| /' conftest.$ac_ext >&5
5033
5034   # Passes both tests.
5035 ac_preproc_ok=:
5036 break
5037 fi
5038 rm -f conftest.err conftest.$ac_ext
5039
5040 done
5041 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5042 rm -f conftest.err conftest.$ac_ext
5043 if $ac_preproc_ok; then
5044   break
5045 fi
5046
5047     done
5048     ac_cv_prog_CPP=$CPP
5049
5050 fi
5051   CPP=$ac_cv_prog_CPP
5052 else
5053   ac_cv_prog_CPP=$CPP
5054 fi
5055 echo "$as_me:$LINENO: result: $CPP" >&5
5056 echo "${ECHO_T}$CPP" >&6
5057 ac_preproc_ok=false
5058 for ac_c_preproc_warn_flag in '' yes
5059 do
5060   # Use a header file that comes with gcc, so configuring glibc
5061   # with a fresh cross-compiler works.
5062   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5063   # <limits.h> exists even on freestanding compilers.
5064   # On the NeXT, cc -E runs the code through the compiler's parser,
5065   # not just through cpp. "Syntax error" is here to catch this case.
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 #ifdef __STDC__
5073 # include <limits.h>
5074 #else
5075 # include <assert.h>
5076 #endif
5077                      Syntax error
5078 _ACEOF
5079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5080   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5081   ac_status=$?
5082   grep -v '^ *+' conftest.er1 >conftest.err
5083   rm -f conftest.er1
5084   cat conftest.err >&5
5085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086   (exit $ac_status); } >/dev/null; then
5087   if test -s conftest.err; then
5088     ac_cpp_err=$ac_c_preproc_warn_flag
5089     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5090   else
5091     ac_cpp_err=
5092   fi
5093 else
5094   ac_cpp_err=yes
5095 fi
5096 if test -z "$ac_cpp_err"; then
5097   :
5098 else
5099   echo "$as_me: failed program was:" >&5
5100 sed 's/^/| /' conftest.$ac_ext >&5
5101
5102   # Broken: fails on valid input.
5103 continue
5104 fi
5105 rm -f conftest.err conftest.$ac_ext
5106
5107   # OK, works on sane cases.  Now check whether non-existent headers
5108   # can be detected and how.
5109   cat >conftest.$ac_ext <<_ACEOF
5110 /* confdefs.h.  */
5111 _ACEOF
5112 cat confdefs.h >>conftest.$ac_ext
5113 cat >>conftest.$ac_ext <<_ACEOF
5114 /* end confdefs.h.  */
5115 #include <ac_nonexistent.h>
5116 _ACEOF
5117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5118   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5119   ac_status=$?
5120   grep -v '^ *+' conftest.er1 >conftest.err
5121   rm -f conftest.er1
5122   cat conftest.err >&5
5123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124   (exit $ac_status); } >/dev/null; then
5125   if test -s conftest.err; then
5126     ac_cpp_err=$ac_c_preproc_warn_flag
5127     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5128   else
5129     ac_cpp_err=
5130   fi
5131 else
5132   ac_cpp_err=yes
5133 fi
5134 if test -z "$ac_cpp_err"; then
5135   # Broken: success on invalid input.
5136 continue
5137 else
5138   echo "$as_me: failed program was:" >&5
5139 sed 's/^/| /' conftest.$ac_ext >&5
5140
5141   # Passes both tests.
5142 ac_preproc_ok=:
5143 break
5144 fi
5145 rm -f conftest.err conftest.$ac_ext
5146
5147 done
5148 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5149 rm -f conftest.err conftest.$ac_ext
5150 if $ac_preproc_ok; then
5151   :
5152 else
5153   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5154 See \`config.log' for more details." >&5
5155 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5156 See \`config.log' for more details." >&2;}
5157    { (exit 1); exit 1; }; }
5158 fi
5159
5160 ac_ext=c
5161 ac_cpp='$CPP $CPPFLAGS'
5162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5165
5166
5167 echo "$as_me:$LINENO: checking for egrep" >&5
5168 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5169 if test "${ac_cv_prog_egrep+set}" = set; then
5170   echo $ECHO_N "(cached) $ECHO_C" >&6
5171 else
5172   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5173     then ac_cv_prog_egrep='grep -E'
5174     else ac_cv_prog_egrep='egrep'
5175     fi
5176 fi
5177 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5178 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5179  EGREP=$ac_cv_prog_egrep
5180
5181
5182 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5183 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5184 if test "${ac_cv_header_stdc+set}" = set; then
5185   echo $ECHO_N "(cached) $ECHO_C" >&6
5186 else
5187   cat >conftest.$ac_ext <<_ACEOF
5188 /* confdefs.h.  */
5189 _ACEOF
5190 cat confdefs.h >>conftest.$ac_ext
5191 cat >>conftest.$ac_ext <<_ACEOF
5192 /* end confdefs.h.  */
5193 #include <stdlib.h>
5194 #include <stdarg.h>
5195 #include <string.h>
5196 #include <float.h>
5197
5198 int
5199 main ()
5200 {
5201
5202   ;
5203   return 0;
5204 }
5205 _ACEOF
5206 rm -f conftest.$ac_objext
5207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5208   (eval $ac_compile) 2>conftest.er1
5209   ac_status=$?
5210   grep -v '^ *+' conftest.er1 >conftest.err
5211   rm -f conftest.er1
5212   cat conftest.err >&5
5213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214   (exit $ac_status); } &&
5215          { ac_try='test -z "$ac_c_werror_flag"
5216                          || test ! -s conftest.err'
5217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5218   (eval $ac_try) 2>&5
5219   ac_status=$?
5220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221   (exit $ac_status); }; } &&
5222          { ac_try='test -s conftest.$ac_objext'
5223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5224   (eval $ac_try) 2>&5
5225   ac_status=$?
5226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227   (exit $ac_status); }; }; then
5228   ac_cv_header_stdc=yes
5229 else
5230   echo "$as_me: failed program was:" >&5
5231 sed 's/^/| /' conftest.$ac_ext >&5
5232
5233 ac_cv_header_stdc=no
5234 fi
5235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5236
5237 if test $ac_cv_header_stdc = yes; then
5238   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5239   cat >conftest.$ac_ext <<_ACEOF
5240 /* confdefs.h.  */
5241 _ACEOF
5242 cat confdefs.h >>conftest.$ac_ext
5243 cat >>conftest.$ac_ext <<_ACEOF
5244 /* end confdefs.h.  */
5245 #include <string.h>
5246
5247 _ACEOF
5248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5249   $EGREP "memchr" >/dev/null 2>&1; then
5250   :
5251 else
5252   ac_cv_header_stdc=no
5253 fi
5254 rm -f conftest*
5255
5256 fi
5257
5258 if test $ac_cv_header_stdc = yes; then
5259   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5260   cat >conftest.$ac_ext <<_ACEOF
5261 /* confdefs.h.  */
5262 _ACEOF
5263 cat confdefs.h >>conftest.$ac_ext
5264 cat >>conftest.$ac_ext <<_ACEOF
5265 /* end confdefs.h.  */
5266 #include <stdlib.h>
5267
5268 _ACEOF
5269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5270   $EGREP "free" >/dev/null 2>&1; then
5271   :
5272 else
5273   ac_cv_header_stdc=no
5274 fi
5275 rm -f conftest*
5276
5277 fi
5278
5279 if test $ac_cv_header_stdc = yes; then
5280   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5281   if test "$cross_compiling" = yes; then
5282   :
5283 else
5284   cat >conftest.$ac_ext <<_ACEOF
5285 /* confdefs.h.  */
5286 _ACEOF
5287 cat confdefs.h >>conftest.$ac_ext
5288 cat >>conftest.$ac_ext <<_ACEOF
5289 /* end confdefs.h.  */
5290 #include <ctype.h>
5291 #if ((' ' & 0x0FF) == 0x020)
5292 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5293 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5294 #else
5295 # define ISLOWER(c) \
5296                    (('a' <= (c) && (c) <= 'i') \
5297                      || ('j' <= (c) && (c) <= 'r') \
5298                      || ('s' <= (c) && (c) <= 'z'))
5299 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5300 #endif
5301
5302 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5303 int
5304 main ()
5305 {
5306   int i;
5307   for (i = 0; i < 256; i++)
5308     if (XOR (islower (i), ISLOWER (i))
5309         || toupper (i) != TOUPPER (i))
5310       exit(2);
5311   exit (0);
5312 }
5313 _ACEOF
5314 rm -f conftest$ac_exeext
5315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5316   (eval $ac_link) 2>&5
5317   ac_status=$?
5318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5321   (eval $ac_try) 2>&5
5322   ac_status=$?
5323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324   (exit $ac_status); }; }; then
5325   :
5326 else
5327   echo "$as_me: program exited with status $ac_status" >&5
5328 echo "$as_me: failed program was:" >&5
5329 sed 's/^/| /' conftest.$ac_ext >&5
5330
5331 ( exit $ac_status )
5332 ac_cv_header_stdc=no
5333 fi
5334 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5335 fi
5336 fi
5337 fi
5338 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5339 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5340 if test $ac_cv_header_stdc = yes; then
5341
5342 cat >>confdefs.h <<\_ACEOF
5343 #define STDC_HEADERS 1
5344 _ACEOF
5345
5346 fi
5347
5348 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5359                   inttypes.h stdint.h unistd.h
5360 do
5361 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5362 echo "$as_me:$LINENO: checking for $ac_header" >&5
5363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5365   echo $ECHO_N "(cached) $ECHO_C" >&6
5366 else
5367   cat >conftest.$ac_ext <<_ACEOF
5368 /* confdefs.h.  */
5369 _ACEOF
5370 cat confdefs.h >>conftest.$ac_ext
5371 cat >>conftest.$ac_ext <<_ACEOF
5372 /* end confdefs.h.  */
5373 $ac_includes_default
5374
5375 #include <$ac_header>
5376 _ACEOF
5377 rm -f conftest.$ac_objext
5378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5379   (eval $ac_compile) 2>conftest.er1
5380   ac_status=$?
5381   grep -v '^ *+' conftest.er1 >conftest.err
5382   rm -f conftest.er1
5383   cat conftest.err >&5
5384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385   (exit $ac_status); } &&
5386          { ac_try='test -z "$ac_c_werror_flag"
5387                          || test ! -s conftest.err'
5388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5389   (eval $ac_try) 2>&5
5390   ac_status=$?
5391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392   (exit $ac_status); }; } &&
5393          { ac_try='test -s conftest.$ac_objext'
5394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5395   (eval $ac_try) 2>&5
5396   ac_status=$?
5397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398   (exit $ac_status); }; }; then
5399   eval "$as_ac_Header=yes"
5400 else
5401   echo "$as_me: failed program was:" >&5
5402 sed 's/^/| /' conftest.$ac_ext >&5
5403
5404 eval "$as_ac_Header=no"
5405 fi
5406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5407 fi
5408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5409 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5411   cat >>confdefs.h <<_ACEOF
5412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5413 _ACEOF
5414
5415 fi
5416
5417 done
5418
5419
5420
5421
5422 for ac_header in stdlib.h unistd.h
5423 do
5424 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
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 fi
5431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5432 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5433 else
5434   # Is the header compilable?
5435 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5436 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5437 cat >conftest.$ac_ext <<_ACEOF
5438 /* confdefs.h.  */
5439 _ACEOF
5440 cat confdefs.h >>conftest.$ac_ext
5441 cat >>conftest.$ac_ext <<_ACEOF
5442 /* end confdefs.h.  */
5443 $ac_includes_default
5444 #include <$ac_header>
5445 _ACEOF
5446 rm -f conftest.$ac_objext
5447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5448   (eval $ac_compile) 2>conftest.er1
5449   ac_status=$?
5450   grep -v '^ *+' conftest.er1 >conftest.err
5451   rm -f conftest.er1
5452   cat conftest.err >&5
5453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454   (exit $ac_status); } &&
5455          { ac_try='test -z "$ac_c_werror_flag"
5456                          || test ! -s conftest.err'
5457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5458   (eval $ac_try) 2>&5
5459   ac_status=$?
5460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461   (exit $ac_status); }; } &&
5462          { ac_try='test -s conftest.$ac_objext'
5463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5464   (eval $ac_try) 2>&5
5465   ac_status=$?
5466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467   (exit $ac_status); }; }; then
5468   ac_header_compiler=yes
5469 else
5470   echo "$as_me: failed program was:" >&5
5471 sed 's/^/| /' conftest.$ac_ext >&5
5472
5473 ac_header_compiler=no
5474 fi
5475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5476 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5477 echo "${ECHO_T}$ac_header_compiler" >&6
5478
5479 # Is the header present?
5480 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5481 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5482 cat >conftest.$ac_ext <<_ACEOF
5483 /* confdefs.h.  */
5484 _ACEOF
5485 cat confdefs.h >>conftest.$ac_ext
5486 cat >>conftest.$ac_ext <<_ACEOF
5487 /* end confdefs.h.  */
5488 #include <$ac_header>
5489 _ACEOF
5490 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5491   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5492   ac_status=$?
5493   grep -v '^ *+' conftest.er1 >conftest.err
5494   rm -f conftest.er1
5495   cat conftest.err >&5
5496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497   (exit $ac_status); } >/dev/null; then
5498   if test -s conftest.err; then
5499     ac_cpp_err=$ac_c_preproc_warn_flag
5500     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5501   else
5502     ac_cpp_err=
5503   fi
5504 else
5505   ac_cpp_err=yes
5506 fi
5507 if test -z "$ac_cpp_err"; then
5508   ac_header_preproc=yes
5509 else
5510   echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.$ac_ext >&5
5512
5513   ac_header_preproc=no
5514 fi
5515 rm -f conftest.err conftest.$ac_ext
5516 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5517 echo "${ECHO_T}$ac_header_preproc" >&6
5518
5519 # So?  What about this header?
5520 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5521   yes:no: )
5522     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5523 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5524     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5525 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5526     ac_header_preproc=yes
5527     ;;
5528   no:yes:* )
5529     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5530 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5531     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5532 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5533     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5534 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5535     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5536 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5537     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5538 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5539     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5540 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5541     (
5542       cat <<\_ASBOX
5543 ## ------------------------------------------------------ ##
5544 ## Report this to the GNU Fortran Runtime Library lists.  ##
5545 ## ------------------------------------------------------ ##
5546 _ASBOX
5547     ) |
5548       sed "s/^/$as_me: WARNING:     /" >&2
5549     ;;
5550 esac
5551 echo "$as_me:$LINENO: checking for $ac_header" >&5
5552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5553 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5554   echo $ECHO_N "(cached) $ECHO_C" >&6
5555 else
5556   eval "$as_ac_Header=\$ac_header_preproc"
5557 fi
5558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5559 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5560
5561 fi
5562 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5563   cat >>confdefs.h <<_ACEOF
5564 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5565 _ACEOF
5566
5567 fi
5568
5569 done
5570
5571
5572 for ac_func in getpagesize
5573 do
5574 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5575 echo "$as_me:$LINENO: checking for $ac_func" >&5
5576 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5577 if eval "test \"\${$as_ac_var+set}\" = set"; then
5578   echo $ECHO_N "(cached) $ECHO_C" >&6
5579 else
5580   cat >conftest.$ac_ext <<_ACEOF
5581 /* confdefs.h.  */
5582 _ACEOF
5583 cat confdefs.h >>conftest.$ac_ext
5584 cat >>conftest.$ac_ext <<_ACEOF
5585 /* end confdefs.h.  */
5586 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5587    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5588 #define $ac_func innocuous_$ac_func
5589
5590 /* System header to define __stub macros and hopefully few prototypes,
5591     which can conflict with char $ac_func (); below.
5592     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5593     <limits.h> exists even on freestanding compilers.  */
5594
5595 #ifdef __STDC__
5596 # include <limits.h>
5597 #else
5598 # include <assert.h>
5599 #endif
5600
5601 #undef $ac_func
5602
5603 /* Override any gcc2 internal prototype to avoid an error.  */
5604 #ifdef __cplusplus
5605 extern "C"
5606 {
5607 #endif
5608 /* We use char because int might match the return type of a gcc2
5609    builtin and then its argument prototype would still apply.  */
5610 char $ac_func ();
5611 /* The GNU C library defines this for functions which it implements
5612     to always fail with ENOSYS.  Some functions are actually named
5613     something starting with __ and the normal name is an alias.  */
5614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5615 choke me
5616 #else
5617 char (*f) () = $ac_func;
5618 #endif
5619 #ifdef __cplusplus
5620 }
5621 #endif
5622
5623 int
5624 main ()
5625 {
5626 return f != $ac_func;
5627   ;
5628   return 0;
5629 }
5630 _ACEOF
5631 rm -f conftest.$ac_objext conftest$ac_exeext
5632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5633   (eval $ac_link) 2>conftest.er1
5634   ac_status=$?
5635   grep -v '^ *+' conftest.er1 >conftest.err
5636   rm -f conftest.er1
5637   cat conftest.err >&5
5638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639   (exit $ac_status); } &&
5640          { ac_try='test -z "$ac_c_werror_flag"
5641                          || test ! -s conftest.err'
5642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5643   (eval $ac_try) 2>&5
5644   ac_status=$?
5645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646   (exit $ac_status); }; } &&
5647          { ac_try='test -s conftest$ac_exeext'
5648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5649   (eval $ac_try) 2>&5
5650   ac_status=$?
5651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652   (exit $ac_status); }; }; then
5653   eval "$as_ac_var=yes"
5654 else
5655   echo "$as_me: failed program was:" >&5
5656 sed 's/^/| /' conftest.$ac_ext >&5
5657
5658 eval "$as_ac_var=no"
5659 fi
5660 rm -f conftest.err conftest.$ac_objext \
5661       conftest$ac_exeext conftest.$ac_ext
5662 fi
5663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5664 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5665 if test `eval echo '${'$as_ac_var'}'` = yes; then
5666   cat >>confdefs.h <<_ACEOF
5667 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5668 _ACEOF
5669
5670 fi
5671 done
5672
5673 echo "$as_me:$LINENO: checking for working mmap" >&5
5674 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5675 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5676   echo $ECHO_N "(cached) $ECHO_C" >&6
5677 else
5678   if test "$cross_compiling" = yes; then
5679   ac_cv_func_mmap_fixed_mapped=no
5680 else
5681   cat >conftest.$ac_ext <<_ACEOF
5682 /* confdefs.h.  */
5683 _ACEOF
5684 cat confdefs.h >>conftest.$ac_ext
5685 cat >>conftest.$ac_ext <<_ACEOF
5686 /* end confdefs.h.  */
5687 $ac_includes_default
5688 /* malloc might have been renamed as rpl_malloc. */
5689 #undef malloc
5690
5691 /* Thanks to Mike Haertel and Jim Avera for this test.
5692    Here is a matrix of mmap possibilities:
5693         mmap private not fixed
5694         mmap private fixed at somewhere currently unmapped
5695         mmap private fixed at somewhere already mapped
5696         mmap shared not fixed
5697         mmap shared fixed at somewhere currently unmapped
5698         mmap shared fixed at somewhere already mapped
5699    For private mappings, we should verify that changes cannot be read()
5700    back from the file, nor mmap's back from the file at a different
5701    address.  (There have been systems where private was not correctly
5702    implemented like the infamous i386 svr4.0, and systems where the
5703    VM page cache was not coherent with the file system buffer cache
5704    like early versions of FreeBSD and possibly contemporary NetBSD.)
5705    For shared mappings, we should conversely verify that changes get
5706    propagated back to all the places they're supposed to be.
5707
5708    Grep wants private fixed already mapped.
5709    The main things grep needs to know about mmap are:
5710    * does it exist and is it safe to write into the mmap'd area
5711    * how to use it (BSD variants)  */
5712
5713 #include <fcntl.h>
5714 #include <sys/mman.h>
5715
5716 #if !STDC_HEADERS && !HAVE_STDLIB_H
5717 char *malloc ();
5718 #endif
5719
5720 /* This mess was copied from the GNU getpagesize.h.  */
5721 #if !HAVE_GETPAGESIZE
5722 /* Assume that all systems that can run configure have sys/param.h.  */
5723 # if !HAVE_SYS_PARAM_H
5724 #  define HAVE_SYS_PARAM_H 1
5725 # endif
5726
5727 # ifdef _SC_PAGESIZE
5728 #  define getpagesize() sysconf(_SC_PAGESIZE)
5729 # else /* no _SC_PAGESIZE */
5730 #  if HAVE_SYS_PARAM_H
5731 #   include <sys/param.h>
5732 #   ifdef EXEC_PAGESIZE
5733 #    define getpagesize() EXEC_PAGESIZE
5734 #   else /* no EXEC_PAGESIZE */
5735 #    ifdef NBPG
5736 #     define getpagesize() NBPG * CLSIZE
5737 #     ifndef CLSIZE
5738 #      define CLSIZE 1
5739 #     endif /* no CLSIZE */
5740 #    else /* no NBPG */
5741 #     ifdef NBPC
5742 #      define getpagesize() NBPC
5743 #     else /* no NBPC */
5744 #      ifdef PAGESIZE
5745 #       define getpagesize() PAGESIZE
5746 #      endif /* PAGESIZE */
5747 #     endif /* no NBPC */
5748 #    endif /* no NBPG */
5749 #   endif /* no EXEC_PAGESIZE */
5750 #  else /* no HAVE_SYS_PARAM_H */
5751 #   define getpagesize() 8192   /* punt totally */
5752 #  endif /* no HAVE_SYS_PARAM_H */
5753 # endif /* no _SC_PAGESIZE */
5754
5755 #endif /* no HAVE_GETPAGESIZE */
5756
5757 int
5758 main ()
5759 {
5760   char *data, *data2, *data3;
5761   int i, pagesize;
5762   int fd;
5763
5764   pagesize = getpagesize ();
5765
5766   /* First, make a file with some known garbage in it. */
5767   data = (char *) malloc (pagesize);
5768   if (!data)
5769     exit (1);
5770   for (i = 0; i < pagesize; ++i)
5771     *(data + i) = rand ();
5772   umask (0);
5773   fd = creat ("conftest.mmap", 0600);
5774   if (fd < 0)
5775     exit (1);
5776   if (write (fd, data, pagesize) != pagesize)
5777     exit (1);
5778   close (fd);
5779
5780   /* Next, try to mmap the file at a fixed address which already has
5781      something else allocated at it.  If we can, also make sure that
5782      we see the same garbage.  */
5783   fd = open ("conftest.mmap", O_RDWR);
5784   if (fd < 0)
5785     exit (1);
5786   data2 = (char *) malloc (2 * pagesize);
5787   if (!data2)
5788     exit (1);
5789   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
5790   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5791                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
5792     exit (1);
5793   for (i = 0; i < pagesize; ++i)
5794     if (*(data + i) != *(data2 + i))
5795       exit (1);
5796
5797   /* Finally, make sure that changes to the mapped area do not
5798      percolate back to the file as seen by read().  (This is a bug on
5799      some variants of i386 svr4.0.)  */
5800   for (i = 0; i < pagesize; ++i)
5801     *(data2 + i) = *(data2 + i) + 1;
5802   data3 = (char *) malloc (pagesize);
5803   if (!data3)
5804     exit (1);
5805   if (read (fd, data3, pagesize) != pagesize)
5806     exit (1);
5807   for (i = 0; i < pagesize; ++i)
5808     if (*(data + i) != *(data3 + i))
5809       exit (1);
5810   close (fd);
5811   exit (0);
5812 }
5813 _ACEOF
5814 rm -f conftest$ac_exeext
5815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5816   (eval $ac_link) 2>&5
5817   ac_status=$?
5818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5821   (eval $ac_try) 2>&5
5822   ac_status=$?
5823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824   (exit $ac_status); }; }; then
5825   ac_cv_func_mmap_fixed_mapped=yes
5826 else
5827   echo "$as_me: program exited with status $ac_status" >&5
5828 echo "$as_me: failed program was:" >&5
5829 sed 's/^/| /' conftest.$ac_ext >&5
5830
5831 ( exit $ac_status )
5832 ac_cv_func_mmap_fixed_mapped=no
5833 fi
5834 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5835 fi
5836 fi
5837 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5838 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5839 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5840
5841 cat >>confdefs.h <<\_ACEOF
5842 #define HAVE_MMAP 1
5843 _ACEOF
5844
5845 fi
5846 rm -f conftest.mmap
5847
5848 echo "$as_me:$LINENO: checking for off_t" >&5
5849 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5850 if test "${ac_cv_type_off_t+set}" = set; then
5851   echo $ECHO_N "(cached) $ECHO_C" >&6
5852 else
5853   cat >conftest.$ac_ext <<_ACEOF
5854 /* confdefs.h.  */
5855 _ACEOF
5856 cat confdefs.h >>conftest.$ac_ext
5857 cat >>conftest.$ac_ext <<_ACEOF
5858 /* end confdefs.h.  */
5859 $ac_includes_default
5860 int
5861 main ()
5862 {
5863 if ((off_t *) 0)
5864   return 0;
5865 if (sizeof (off_t))
5866   return 0;
5867   ;
5868   return 0;
5869 }
5870 _ACEOF
5871 rm -f conftest.$ac_objext
5872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5873   (eval $ac_compile) 2>conftest.er1
5874   ac_status=$?
5875   grep -v '^ *+' conftest.er1 >conftest.err
5876   rm -f conftest.er1
5877   cat conftest.err >&5
5878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879   (exit $ac_status); } &&
5880          { ac_try='test -z "$ac_c_werror_flag"
5881                          || test ! -s conftest.err'
5882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5883   (eval $ac_try) 2>&5
5884   ac_status=$?
5885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886   (exit $ac_status); }; } &&
5887          { ac_try='test -s conftest.$ac_objext'
5888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5889   (eval $ac_try) 2>&5
5890   ac_status=$?
5891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892   (exit $ac_status); }; }; then
5893   ac_cv_type_off_t=yes
5894 else
5895   echo "$as_me: failed program was:" >&5
5896 sed 's/^/| /' conftest.$ac_ext >&5
5897
5898 ac_cv_type_off_t=no
5899 fi
5900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5901 fi
5902 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5903 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5904 if test $ac_cv_type_off_t = yes; then
5905   :
5906 else
5907
5908 cat >>confdefs.h <<_ACEOF
5909 #define off_t long
5910 _ACEOF
5911
5912 fi
5913
5914
5915 # check header files
5916 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5917 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5918 if test "${ac_cv_header_stdc+set}" = set; then
5919   echo $ECHO_N "(cached) $ECHO_C" >&6
5920 else
5921   cat >conftest.$ac_ext <<_ACEOF
5922 /* confdefs.h.  */
5923 _ACEOF
5924 cat confdefs.h >>conftest.$ac_ext
5925 cat >>conftest.$ac_ext <<_ACEOF
5926 /* end confdefs.h.  */
5927 #include <stdlib.h>
5928 #include <stdarg.h>
5929 #include <string.h>
5930 #include <float.h>
5931
5932 int
5933 main ()
5934 {
5935
5936   ;
5937   return 0;
5938 }
5939 _ACEOF
5940 rm -f conftest.$ac_objext
5941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5942   (eval $ac_compile) 2>conftest.er1
5943   ac_status=$?
5944   grep -v '^ *+' conftest.er1 >conftest.err
5945   rm -f conftest.er1
5946   cat conftest.err >&5
5947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948   (exit $ac_status); } &&
5949          { ac_try='test -z "$ac_c_werror_flag"
5950                          || test ! -s conftest.err'
5951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5952   (eval $ac_try) 2>&5
5953   ac_status=$?
5954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955   (exit $ac_status); }; } &&
5956          { ac_try='test -s conftest.$ac_objext'
5957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5958   (eval $ac_try) 2>&5
5959   ac_status=$?
5960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961   (exit $ac_status); }; }; then
5962   ac_cv_header_stdc=yes
5963 else
5964   echo "$as_me: failed program was:" >&5
5965 sed 's/^/| /' conftest.$ac_ext >&5
5966
5967 ac_cv_header_stdc=no
5968 fi
5969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5970
5971 if test $ac_cv_header_stdc = yes; then
5972   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5973   cat >conftest.$ac_ext <<_ACEOF
5974 /* confdefs.h.  */
5975 _ACEOF
5976 cat confdefs.h >>conftest.$ac_ext
5977 cat >>conftest.$ac_ext <<_ACEOF
5978 /* end confdefs.h.  */
5979 #include <string.h>
5980
5981 _ACEOF
5982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5983   $EGREP "memchr" >/dev/null 2>&1; then
5984   :
5985 else
5986   ac_cv_header_stdc=no
5987 fi
5988 rm -f conftest*
5989
5990 fi
5991
5992 if test $ac_cv_header_stdc = yes; then
5993   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5994   cat >conftest.$ac_ext <<_ACEOF
5995 /* confdefs.h.  */
5996 _ACEOF
5997 cat confdefs.h >>conftest.$ac_ext
5998 cat >>conftest.$ac_ext <<_ACEOF
5999 /* end confdefs.h.  */
6000 #include <stdlib.h>
6001
6002 _ACEOF
6003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6004   $EGREP "free" >/dev/null 2>&1; then
6005   :
6006 else
6007   ac_cv_header_stdc=no
6008 fi
6009 rm -f conftest*
6010
6011 fi
6012
6013 if test $ac_cv_header_stdc = yes; then
6014   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6015   if test "$cross_compiling" = yes; then
6016   :
6017 else
6018   cat >conftest.$ac_ext <<_ACEOF
6019 /* confdefs.h.  */
6020 _ACEOF
6021 cat confdefs.h >>conftest.$ac_ext
6022 cat >>conftest.$ac_ext <<_ACEOF
6023 /* end confdefs.h.  */
6024 #include <ctype.h>
6025 #if ((' ' & 0x0FF) == 0x020)
6026 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6027 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6028 #else
6029 # define ISLOWER(c) \
6030                    (('a' <= (c) && (c) <= 'i') \
6031                      || ('j' <= (c) && (c) <= 'r') \
6032                      || ('s' <= (c) && (c) <= 'z'))
6033 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6034 #endif
6035
6036 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6037 int
6038 main ()
6039 {
6040   int i;
6041   for (i = 0; i < 256; i++)
6042     if (XOR (islower (i), ISLOWER (i))
6043         || toupper (i) != TOUPPER (i))
6044       exit(2);
6045   exit (0);
6046 }
6047 _ACEOF
6048 rm -f conftest$ac_exeext
6049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6050   (eval $ac_link) 2>&5
6051   ac_status=$?
6052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6055   (eval $ac_try) 2>&5
6056   ac_status=$?
6057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058   (exit $ac_status); }; }; then
6059   :
6060 else
6061   echo "$as_me: program exited with status $ac_status" >&5
6062 echo "$as_me: failed program was:" >&5
6063 sed 's/^/| /' conftest.$ac_ext >&5
6064
6065 ( exit $ac_status )
6066 ac_cv_header_stdc=no
6067 fi
6068 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6069 fi
6070 fi
6071 fi
6072 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6073 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6074 if test $ac_cv_header_stdc = yes; then
6075
6076 cat >>confdefs.h <<\_ACEOF
6077 #define STDC_HEADERS 1
6078 _ACEOF
6079
6080 fi
6081
6082
6083
6084
6085
6086
6087
6088
6089 for ac_header in stdlib.h stdio.h string.h stddef.h math.h unistd.h signal.h
6090 do
6091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6093   echo "$as_me:$LINENO: checking for $ac_header" >&5
6094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6096   echo $ECHO_N "(cached) $ECHO_C" >&6
6097 fi
6098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6099 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6100 else
6101   # Is the header compilable?
6102 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6103 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6104 cat >conftest.$ac_ext <<_ACEOF
6105 /* confdefs.h.  */
6106 _ACEOF
6107 cat confdefs.h >>conftest.$ac_ext
6108 cat >>conftest.$ac_ext <<_ACEOF
6109 /* end confdefs.h.  */
6110 $ac_includes_default
6111 #include <$ac_header>
6112 _ACEOF
6113 rm -f conftest.$ac_objext
6114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6115   (eval $ac_compile) 2>conftest.er1
6116   ac_status=$?
6117   grep -v '^ *+' conftest.er1 >conftest.err
6118   rm -f conftest.er1
6119   cat conftest.err >&5
6120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121   (exit $ac_status); } &&
6122          { ac_try='test -z "$ac_c_werror_flag"
6123                          || test ! -s conftest.err'
6124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6125   (eval $ac_try) 2>&5
6126   ac_status=$?
6127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128   (exit $ac_status); }; } &&
6129          { ac_try='test -s conftest.$ac_objext'
6130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6131   (eval $ac_try) 2>&5
6132   ac_status=$?
6133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134   (exit $ac_status); }; }; then
6135   ac_header_compiler=yes
6136 else
6137   echo "$as_me: failed program was:" >&5
6138 sed 's/^/| /' conftest.$ac_ext >&5
6139
6140 ac_header_compiler=no
6141 fi
6142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6143 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6144 echo "${ECHO_T}$ac_header_compiler" >&6
6145
6146 # Is the header present?
6147 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6148 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6149 cat >conftest.$ac_ext <<_ACEOF
6150 /* confdefs.h.  */
6151 _ACEOF
6152 cat confdefs.h >>conftest.$ac_ext
6153 cat >>conftest.$ac_ext <<_ACEOF
6154 /* end confdefs.h.  */
6155 #include <$ac_header>
6156 _ACEOF
6157 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6158   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6159   ac_status=$?
6160   grep -v '^ *+' conftest.er1 >conftest.err
6161   rm -f conftest.er1
6162   cat conftest.err >&5
6163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164   (exit $ac_status); } >/dev/null; then
6165   if test -s conftest.err; then
6166     ac_cpp_err=$ac_c_preproc_warn_flag
6167     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6168   else
6169     ac_cpp_err=
6170   fi
6171 else
6172   ac_cpp_err=yes
6173 fi
6174 if test -z "$ac_cpp_err"; then
6175   ac_header_preproc=yes
6176 else
6177   echo "$as_me: failed program was:" >&5
6178 sed 's/^/| /' conftest.$ac_ext >&5
6179
6180   ac_header_preproc=no
6181 fi
6182 rm -f conftest.err conftest.$ac_ext
6183 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6184 echo "${ECHO_T}$ac_header_preproc" >&6
6185
6186 # So?  What about this header?
6187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6188   yes:no: )
6189     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6190 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6191     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6192 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6193     ac_header_preproc=yes
6194     ;;
6195   no:yes:* )
6196     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6197 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6198     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6199 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6200     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6201 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6202     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6203 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6204     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6205 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6206     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6207 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6208     (
6209       cat <<\_ASBOX
6210 ## ------------------------------------------------------ ##
6211 ## Report this to the GNU Fortran Runtime Library lists.  ##
6212 ## ------------------------------------------------------ ##
6213 _ASBOX
6214     ) |
6215       sed "s/^/$as_me: WARNING:     /" >&2
6216     ;;
6217 esac
6218 echo "$as_me:$LINENO: checking for $ac_header" >&5
6219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6221   echo $ECHO_N "(cached) $ECHO_C" >&6
6222 else
6223   eval "$as_ac_Header=\$ac_header_preproc"
6224 fi
6225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6226 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6227
6228 fi
6229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6230   cat >>confdefs.h <<_ACEOF
6231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6232 _ACEOF
6233
6234 fi
6235
6236 done
6237
6238
6239
6240
6241
6242
6243 for ac_header in time.h sys/params.h sys/time.h sys/times.h sys/resource.h
6244 do
6245 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6247   echo "$as_me:$LINENO: checking for $ac_header" >&5
6248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6250   echo $ECHO_N "(cached) $ECHO_C" >&6
6251 fi
6252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6253 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6254 else
6255   # Is the header compilable?
6256 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6257 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6258 cat >conftest.$ac_ext <<_ACEOF
6259 /* confdefs.h.  */
6260 _ACEOF
6261 cat confdefs.h >>conftest.$ac_ext
6262 cat >>conftest.$ac_ext <<_ACEOF
6263 /* end confdefs.h.  */
6264 $ac_includes_default
6265 #include <$ac_header>
6266 _ACEOF
6267 rm -f conftest.$ac_objext
6268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6269   (eval $ac_compile) 2>conftest.er1
6270   ac_status=$?
6271   grep -v '^ *+' conftest.er1 >conftest.err
6272   rm -f conftest.er1
6273   cat conftest.err >&5
6274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275   (exit $ac_status); } &&
6276          { ac_try='test -z "$ac_c_werror_flag"
6277                          || test ! -s conftest.err'
6278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6279   (eval $ac_try) 2>&5
6280   ac_status=$?
6281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282   (exit $ac_status); }; } &&
6283          { ac_try='test -s conftest.$ac_objext'
6284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6285   (eval $ac_try) 2>&5
6286   ac_status=$?
6287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288   (exit $ac_status); }; }; then
6289   ac_header_compiler=yes
6290 else
6291   echo "$as_me: failed program was:" >&5
6292 sed 's/^/| /' conftest.$ac_ext >&5
6293
6294 ac_header_compiler=no
6295 fi
6296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6297 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6298 echo "${ECHO_T}$ac_header_compiler" >&6
6299
6300 # Is the header present?
6301 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6302 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6303 cat >conftest.$ac_ext <<_ACEOF
6304 /* confdefs.h.  */
6305 _ACEOF
6306 cat confdefs.h >>conftest.$ac_ext
6307 cat >>conftest.$ac_ext <<_ACEOF
6308 /* end confdefs.h.  */
6309 #include <$ac_header>
6310 _ACEOF
6311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6312   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6313   ac_status=$?
6314   grep -v '^ *+' conftest.er1 >conftest.err
6315   rm -f conftest.er1
6316   cat conftest.err >&5
6317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318   (exit $ac_status); } >/dev/null; then
6319   if test -s conftest.err; then
6320     ac_cpp_err=$ac_c_preproc_warn_flag
6321     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6322   else
6323     ac_cpp_err=
6324   fi
6325 else
6326   ac_cpp_err=yes
6327 fi
6328 if test -z "$ac_cpp_err"; then
6329   ac_header_preproc=yes
6330 else
6331   echo "$as_me: failed program was:" >&5
6332 sed 's/^/| /' conftest.$ac_ext >&5
6333
6334   ac_header_preproc=no
6335 fi
6336 rm -f conftest.err conftest.$ac_ext
6337 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6338 echo "${ECHO_T}$ac_header_preproc" >&6
6339
6340 # So?  What about this header?
6341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6342   yes:no: )
6343     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6344 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6345     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6346 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6347     ac_header_preproc=yes
6348     ;;
6349   no:yes:* )
6350     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6351 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6352     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6353 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6354     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6355 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6356     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6357 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6358     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6359 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6360     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6361 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6362     (
6363       cat <<\_ASBOX
6364 ## ------------------------------------------------------ ##
6365 ## Report this to the GNU Fortran Runtime Library lists.  ##
6366 ## ------------------------------------------------------ ##
6367 _ASBOX
6368     ) |
6369       sed "s/^/$as_me: WARNING:     /" >&2
6370     ;;
6371 esac
6372 echo "$as_me:$LINENO: checking for $ac_header" >&5
6373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6375   echo $ECHO_N "(cached) $ECHO_C" >&6
6376 else
6377   eval "$as_ac_Header=\$ac_header_preproc"
6378 fi
6379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6381
6382 fi
6383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6384   cat >>confdefs.h <<_ACEOF
6385 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6386 _ACEOF
6387
6388 fi
6389
6390 done
6391
6392
6393
6394
6395
6396 for ac_header in sys/mman.h sys/types.h sys/stat.h ieeefp.h
6397 do
6398 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6400   echo "$as_me:$LINENO: checking for $ac_header" >&5
6401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6403   echo $ECHO_N "(cached) $ECHO_C" >&6
6404 fi
6405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6406 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6407 else
6408   # Is the header compilable?
6409 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6410 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6411 cat >conftest.$ac_ext <<_ACEOF
6412 /* confdefs.h.  */
6413 _ACEOF
6414 cat confdefs.h >>conftest.$ac_ext
6415 cat >>conftest.$ac_ext <<_ACEOF
6416 /* end confdefs.h.  */
6417 $ac_includes_default
6418 #include <$ac_header>
6419 _ACEOF
6420 rm -f conftest.$ac_objext
6421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6422   (eval $ac_compile) 2>conftest.er1
6423   ac_status=$?
6424   grep -v '^ *+' conftest.er1 >conftest.err
6425   rm -f conftest.er1
6426   cat conftest.err >&5
6427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428   (exit $ac_status); } &&
6429          { ac_try='test -z "$ac_c_werror_flag"
6430                          || test ! -s conftest.err'
6431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6432   (eval $ac_try) 2>&5
6433   ac_status=$?
6434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435   (exit $ac_status); }; } &&
6436          { ac_try='test -s conftest.$ac_objext'
6437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6438   (eval $ac_try) 2>&5
6439   ac_status=$?
6440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441   (exit $ac_status); }; }; then
6442   ac_header_compiler=yes
6443 else
6444   echo "$as_me: failed program was:" >&5
6445 sed 's/^/| /' conftest.$ac_ext >&5
6446
6447 ac_header_compiler=no
6448 fi
6449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6450 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6451 echo "${ECHO_T}$ac_header_compiler" >&6
6452
6453 # Is the header present?
6454 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6455 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6456 cat >conftest.$ac_ext <<_ACEOF
6457 /* confdefs.h.  */
6458 _ACEOF
6459 cat confdefs.h >>conftest.$ac_ext
6460 cat >>conftest.$ac_ext <<_ACEOF
6461 /* end confdefs.h.  */
6462 #include <$ac_header>
6463 _ACEOF
6464 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6465   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6466   ac_status=$?
6467   grep -v '^ *+' conftest.er1 >conftest.err
6468   rm -f conftest.er1
6469   cat conftest.err >&5
6470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471   (exit $ac_status); } >/dev/null; then
6472   if test -s conftest.err; then
6473     ac_cpp_err=$ac_c_preproc_warn_flag
6474     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6475   else
6476     ac_cpp_err=
6477   fi
6478 else
6479   ac_cpp_err=yes
6480 fi
6481 if test -z "$ac_cpp_err"; then
6482   ac_header_preproc=yes
6483 else
6484   echo "$as_me: failed program was:" >&5
6485 sed 's/^/| /' conftest.$ac_ext >&5
6486
6487   ac_header_preproc=no
6488 fi
6489 rm -f conftest.err conftest.$ac_ext
6490 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6491 echo "${ECHO_T}$ac_header_preproc" >&6
6492
6493 # So?  What about this header?
6494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6495   yes:no: )
6496     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6497 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6498     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6499 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6500     ac_header_preproc=yes
6501     ;;
6502   no:yes:* )
6503     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6504 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6505     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6506 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6507     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6508 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6509     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6510 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6511     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6512 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6513     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6514 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6515     (
6516       cat <<\_ASBOX
6517 ## ------------------------------------------------------ ##
6518 ## Report this to the GNU Fortran Runtime Library lists.  ##
6519 ## ------------------------------------------------------ ##
6520 _ASBOX
6521     ) |
6522       sed "s/^/$as_me: WARNING:     /" >&2
6523     ;;
6524 esac
6525 echo "$as_me:$LINENO: checking for $ac_header" >&5
6526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6527 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6528   echo $ECHO_N "(cached) $ECHO_C" >&6
6529 else
6530   eval "$as_ac_Header=\$ac_header_preproc"
6531 fi
6532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6533 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6534
6535 fi
6536 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6537   cat >>confdefs.h <<_ACEOF
6538 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6539 _ACEOF
6540
6541 fi
6542
6543 done
6544
6545 if test "${ac_cv_header_complex_h+set}" = set; then
6546   echo "$as_me:$LINENO: checking for complex.h" >&5
6547 echo $ECHO_N "checking for complex.h... $ECHO_C" >&6
6548 if test "${ac_cv_header_complex_h+set}" = set; then
6549   echo $ECHO_N "(cached) $ECHO_C" >&6
6550 fi
6551 echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5
6552 echo "${ECHO_T}$ac_cv_header_complex_h" >&6
6553 else
6554   # Is the header compilable?
6555 echo "$as_me:$LINENO: checking complex.h usability" >&5
6556 echo $ECHO_N "checking complex.h usability... $ECHO_C" >&6
6557 cat >conftest.$ac_ext <<_ACEOF
6558 /* confdefs.h.  */
6559 _ACEOF
6560 cat confdefs.h >>conftest.$ac_ext
6561 cat >>conftest.$ac_ext <<_ACEOF
6562 /* end confdefs.h.  */
6563 $ac_includes_default
6564 #include <complex.h>
6565 _ACEOF
6566 rm -f conftest.$ac_objext
6567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6568   (eval $ac_compile) 2>conftest.er1
6569   ac_status=$?
6570   grep -v '^ *+' conftest.er1 >conftest.err
6571   rm -f conftest.er1
6572   cat conftest.err >&5
6573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574   (exit $ac_status); } &&
6575          { ac_try='test -z "$ac_c_werror_flag"
6576                          || test ! -s conftest.err'
6577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6578   (eval $ac_try) 2>&5
6579   ac_status=$?
6580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581   (exit $ac_status); }; } &&
6582          { ac_try='test -s conftest.$ac_objext'
6583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584   (eval $ac_try) 2>&5
6585   ac_status=$?
6586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587   (exit $ac_status); }; }; then
6588   ac_header_compiler=yes
6589 else
6590   echo "$as_me: failed program was:" >&5
6591 sed 's/^/| /' conftest.$ac_ext >&5
6592
6593 ac_header_compiler=no
6594 fi
6595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6596 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6597 echo "${ECHO_T}$ac_header_compiler" >&6
6598
6599 # Is the header present?
6600 echo "$as_me:$LINENO: checking complex.h presence" >&5
6601 echo $ECHO_N "checking complex.h presence... $ECHO_C" >&6
6602 cat >conftest.$ac_ext <<_ACEOF
6603 /* confdefs.h.  */
6604 _ACEOF
6605 cat confdefs.h >>conftest.$ac_ext
6606 cat >>conftest.$ac_ext <<_ACEOF
6607 /* end confdefs.h.  */
6608 #include <complex.h>
6609 _ACEOF
6610 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6611   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6612   ac_status=$?
6613   grep -v '^ *+' conftest.er1 >conftest.err
6614   rm -f conftest.er1
6615   cat conftest.err >&5
6616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617   (exit $ac_status); } >/dev/null; then
6618   if test -s conftest.err; then
6619     ac_cpp_err=$ac_c_preproc_warn_flag
6620     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6621   else
6622     ac_cpp_err=
6623   fi
6624 else
6625   ac_cpp_err=yes
6626 fi
6627 if test -z "$ac_cpp_err"; then
6628   ac_header_preproc=yes
6629 else
6630   echo "$as_me: failed program was:" >&5
6631 sed 's/^/| /' conftest.$ac_ext >&5
6632
6633   ac_header_preproc=no
6634 fi
6635 rm -f conftest.err conftest.$ac_ext
6636 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6637 echo "${ECHO_T}$ac_header_preproc" >&6
6638
6639 # So?  What about this header?
6640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6641   yes:no: )
6642     { echo "$as_me:$LINENO: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&5
6643 echo "$as_me: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6644     { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the compiler's result" >&5
6645 echo "$as_me: WARNING: complex.h: proceeding with the compiler's result" >&2;}
6646     ac_header_preproc=yes
6647     ;;
6648   no:yes:* )
6649     { echo "$as_me:$LINENO: WARNING: complex.h: present but cannot be compiled" >&5
6650 echo "$as_me: WARNING: complex.h: present but cannot be compiled" >&2;}
6651     { echo "$as_me:$LINENO: WARNING: complex.h:     check for missing prerequisite headers?" >&5
6652 echo "$as_me: WARNING: complex.h:     check for missing prerequisite headers?" >&2;}
6653     { echo "$as_me:$LINENO: WARNING: complex.h: see the Autoconf documentation" >&5
6654 echo "$as_me: WARNING: complex.h: see the Autoconf documentation" >&2;}
6655     { echo "$as_me:$LINENO: WARNING: complex.h:     section \"Present But Cannot Be Compiled\"" >&5
6656 echo "$as_me: WARNING: complex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6657     { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the preprocessor's result" >&5
6658 echo "$as_me: WARNING: complex.h: proceeding with the preprocessor's result" >&2;}
6659     { echo "$as_me:$LINENO: WARNING: complex.h: in the future, the compiler will take precedence" >&5
6660 echo "$as_me: WARNING: complex.h: in the future, the compiler will take precedence" >&2;}
6661     (
6662       cat <<\_ASBOX
6663 ## ------------------------------------------------------ ##
6664 ## Report this to the GNU Fortran Runtime Library lists.  ##
6665 ## ------------------------------------------------------ ##
6666 _ASBOX
6667     ) |
6668       sed "s/^/$as_me: WARNING:     /" >&2
6669     ;;
6670 esac
6671 echo "$as_me:$LINENO: checking for complex.h" >&5
6672 echo $ECHO_N "checking for complex.h... $ECHO_C" >&6
6673 if test "${ac_cv_header_complex_h+set}" = set; then
6674   echo $ECHO_N "(cached) $ECHO_C" >&6
6675 else
6676   ac_cv_header_complex_h=$ac_header_preproc
6677 fi
6678 echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5
6679 echo "${ECHO_T}$ac_cv_header_complex_h" >&6
6680
6681 fi
6682 if test $ac_cv_header_complex_h = yes; then
6683
6684 cat >>confdefs.h <<\_ACEOF
6685 #define HAVE_COMPLEX_H 1
6686 _ACEOF
6687
6688 fi
6689
6690
6691
6692 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6693 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
6694 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6695   echo $ECHO_N "(cached) $ECHO_C" >&6
6696 else
6697   cat >conftest.$ac_ext <<_ACEOF
6698 /* confdefs.h.  */
6699 _ACEOF
6700 cat confdefs.h >>conftest.$ac_ext
6701 cat >>conftest.$ac_ext <<_ACEOF
6702 /* end confdefs.h.  */
6703 $ac_includes_default
6704 int
6705 main ()
6706 {
6707 static struct stat ac_aggr;
6708 if (ac_aggr.st_blksize)
6709 return 0;
6710   ;
6711   return 0;
6712 }
6713 _ACEOF
6714 rm -f conftest.$ac_objext
6715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6716   (eval $ac_compile) 2>conftest.er1
6717   ac_status=$?
6718   grep -v '^ *+' conftest.er1 >conftest.err
6719   rm -f conftest.er1
6720   cat conftest.err >&5
6721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722   (exit $ac_status); } &&
6723          { ac_try='test -z "$ac_c_werror_flag"
6724                          || test ! -s conftest.err'
6725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6726   (eval $ac_try) 2>&5
6727   ac_status=$?
6728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729   (exit $ac_status); }; } &&
6730          { ac_try='test -s conftest.$ac_objext'
6731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6732   (eval $ac_try) 2>&5
6733   ac_status=$?
6734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735   (exit $ac_status); }; }; then
6736   ac_cv_member_struct_stat_st_blksize=yes
6737 else
6738   echo "$as_me: failed program was:" >&5
6739 sed 's/^/| /' conftest.$ac_ext >&5
6740
6741 cat >conftest.$ac_ext <<_ACEOF
6742 /* confdefs.h.  */
6743 _ACEOF
6744 cat confdefs.h >>conftest.$ac_ext
6745 cat >>conftest.$ac_ext <<_ACEOF
6746 /* end confdefs.h.  */
6747 $ac_includes_default
6748 int
6749 main ()
6750 {
6751 static struct stat ac_aggr;
6752 if (sizeof ac_aggr.st_blksize)
6753 return 0;
6754   ;
6755   return 0;
6756 }
6757 _ACEOF
6758 rm -f conftest.$ac_objext
6759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6760   (eval $ac_compile) 2>conftest.er1
6761   ac_status=$?
6762   grep -v '^ *+' conftest.er1 >conftest.err
6763   rm -f conftest.er1
6764   cat conftest.err >&5
6765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766   (exit $ac_status); } &&
6767          { ac_try='test -z "$ac_c_werror_flag"
6768                          || test ! -s conftest.err'
6769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6770   (eval $ac_try) 2>&5
6771   ac_status=$?
6772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773   (exit $ac_status); }; } &&
6774          { ac_try='test -s conftest.$ac_objext'
6775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6776   (eval $ac_try) 2>&5
6777   ac_status=$?
6778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779   (exit $ac_status); }; }; then
6780   ac_cv_member_struct_stat_st_blksize=yes
6781 else
6782   echo "$as_me: failed program was:" >&5
6783 sed 's/^/| /' conftest.$ac_ext >&5
6784
6785 ac_cv_member_struct_stat_st_blksize=no
6786 fi
6787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6788 fi
6789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6790 fi
6791 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
6792 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
6793 if test $ac_cv_member_struct_stat_st_blksize = yes; then
6794
6795 cat >>confdefs.h <<_ACEOF
6796 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6797 _ACEOF
6798
6799
6800 fi
6801
6802 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6803 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
6804 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6805   echo $ECHO_N "(cached) $ECHO_C" >&6
6806 else
6807   cat >conftest.$ac_ext <<_ACEOF
6808 /* confdefs.h.  */
6809 _ACEOF
6810 cat confdefs.h >>conftest.$ac_ext
6811 cat >>conftest.$ac_ext <<_ACEOF
6812 /* end confdefs.h.  */
6813 $ac_includes_default
6814 int
6815 main ()
6816 {
6817 static struct stat ac_aggr;
6818 if (ac_aggr.st_blocks)
6819 return 0;
6820   ;
6821   return 0;
6822 }
6823 _ACEOF
6824 rm -f conftest.$ac_objext
6825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6826   (eval $ac_compile) 2>conftest.er1
6827   ac_status=$?
6828   grep -v '^ *+' conftest.er1 >conftest.err
6829   rm -f conftest.er1
6830   cat conftest.err >&5
6831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832   (exit $ac_status); } &&
6833          { ac_try='test -z "$ac_c_werror_flag"
6834                          || test ! -s conftest.err'
6835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6836   (eval $ac_try) 2>&5
6837   ac_status=$?
6838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839   (exit $ac_status); }; } &&
6840          { ac_try='test -s conftest.$ac_objext'
6841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6842   (eval $ac_try) 2>&5
6843   ac_status=$?
6844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845   (exit $ac_status); }; }; then
6846   ac_cv_member_struct_stat_st_blocks=yes
6847 else
6848   echo "$as_me: failed program was:" >&5
6849 sed 's/^/| /' conftest.$ac_ext >&5
6850
6851 cat >conftest.$ac_ext <<_ACEOF
6852 /* confdefs.h.  */
6853 _ACEOF
6854 cat confdefs.h >>conftest.$ac_ext
6855 cat >>conftest.$ac_ext <<_ACEOF
6856 /* end confdefs.h.  */
6857 $ac_includes_default
6858 int
6859 main ()
6860 {
6861 static struct stat ac_aggr;
6862 if (sizeof ac_aggr.st_blocks)
6863 return 0;
6864   ;
6865   return 0;
6866 }
6867 _ACEOF
6868 rm -f conftest.$ac_objext
6869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6870   (eval $ac_compile) 2>conftest.er1
6871   ac_status=$?
6872   grep -v '^ *+' conftest.er1 >conftest.err
6873   rm -f conftest.er1
6874   cat conftest.err >&5
6875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876   (exit $ac_status); } &&
6877          { ac_try='test -z "$ac_c_werror_flag"
6878                          || test ! -s conftest.err'
6879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6880   (eval $ac_try) 2>&5
6881   ac_status=$?
6882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883   (exit $ac_status); }; } &&
6884          { ac_try='test -s conftest.$ac_objext'
6885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6886   (eval $ac_try) 2>&5
6887   ac_status=$?
6888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889   (exit $ac_status); }; }; then
6890   ac_cv_member_struct_stat_st_blocks=yes
6891 else
6892   echo "$as_me: failed program was:" >&5
6893 sed 's/^/| /' conftest.$ac_ext >&5
6894
6895 ac_cv_member_struct_stat_st_blocks=no
6896 fi
6897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6898 fi
6899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6900 fi
6901 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
6902 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
6903 if test $ac_cv_member_struct_stat_st_blocks = yes; then
6904
6905 cat >>confdefs.h <<_ACEOF
6906 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6907 _ACEOF
6908
6909
6910 fi
6911
6912 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6913 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
6914 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6915   echo $ECHO_N "(cached) $ECHO_C" >&6
6916 else
6917   cat >conftest.$ac_ext <<_ACEOF
6918 /* confdefs.h.  */
6919 _ACEOF
6920 cat confdefs.h >>conftest.$ac_ext
6921 cat >>conftest.$ac_ext <<_ACEOF
6922 /* end confdefs.h.  */
6923 $ac_includes_default
6924 int
6925 main ()
6926 {
6927 static struct stat ac_aggr;
6928 if (ac_aggr.st_rdev)
6929 return 0;
6930   ;
6931   return 0;
6932 }
6933 _ACEOF
6934 rm -f conftest.$ac_objext
6935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6936   (eval $ac_compile) 2>conftest.er1
6937   ac_status=$?
6938   grep -v '^ *+' conftest.er1 >conftest.err
6939   rm -f conftest.er1
6940   cat conftest.err >&5
6941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942   (exit $ac_status); } &&
6943          { ac_try='test -z "$ac_c_werror_flag"
6944                          || test ! -s conftest.err'
6945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6946   (eval $ac_try) 2>&5
6947   ac_status=$?
6948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949   (exit $ac_status); }; } &&
6950          { ac_try='test -s conftest.$ac_objext'
6951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6952   (eval $ac_try) 2>&5
6953   ac_status=$?
6954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955   (exit $ac_status); }; }; then
6956   ac_cv_member_struct_stat_st_rdev=yes
6957 else
6958   echo "$as_me: failed program was:" >&5
6959 sed 's/^/| /' conftest.$ac_ext >&5
6960
6961 cat >conftest.$ac_ext <<_ACEOF
6962 /* confdefs.h.  */
6963 _ACEOF
6964 cat confdefs.h >>conftest.$ac_ext
6965 cat >>conftest.$ac_ext <<_ACEOF
6966 /* end confdefs.h.  */
6967 $ac_includes_default
6968 int
6969 main ()
6970 {
6971 static struct stat ac_aggr;
6972 if (sizeof ac_aggr.st_rdev)
6973 return 0;
6974   ;
6975   return 0;
6976 }
6977 _ACEOF
6978 rm -f conftest.$ac_objext
6979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6980   (eval $ac_compile) 2>conftest.er1
6981   ac_status=$?
6982   grep -v '^ *+' conftest.er1 >conftest.err
6983   rm -f conftest.er1
6984   cat conftest.err >&5
6985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986   (exit $ac_status); } &&
6987          { ac_try='test -z "$ac_c_werror_flag"
6988                          || test ! -s conftest.err'
6989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6990   (eval $ac_try) 2>&5
6991   ac_status=$?
6992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993   (exit $ac_status); }; } &&
6994          { ac_try='test -s conftest.$ac_objext'
6995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6996   (eval $ac_try) 2>&5
6997   ac_status=$?
6998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999   (exit $ac_status); }; }; then
7000   ac_cv_member_struct_stat_st_rdev=yes
7001 else
7002   echo "$as_me: failed program was:" >&5
7003 sed 's/^/| /' conftest.$ac_ext >&5
7004
7005 ac_cv_member_struct_stat_st_rdev=no
7006 fi
7007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7008 fi
7009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7010 fi
7011 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
7012 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
7013 if test $ac_cv_member_struct_stat_st_rdev = yes; then
7014
7015 cat >>confdefs.h <<_ACEOF
7016 #define HAVE_STRUCT_STAT_ST_RDEV 1
7017 _ACEOF
7018
7019
7020 fi
7021
7022
7023 # Check for complex math functions
7024 echo "$as_me:$LINENO: checking for csin in -lm" >&5
7025 echo $ECHO_N "checking for csin in -lm... $ECHO_C" >&6
7026 if test "${ac_cv_lib_m_csin+set}" = set; then
7027   echo $ECHO_N "(cached) $ECHO_C" >&6
7028 else
7029   ac_check_lib_save_LIBS=$LIBS
7030 LIBS="-lm  $LIBS"
7031 cat >conftest.$ac_ext <<_ACEOF
7032 /* confdefs.h.  */
7033 _ACEOF
7034 cat confdefs.h >>conftest.$ac_ext
7035 cat >>conftest.$ac_ext <<_ACEOF
7036 /* end confdefs.h.  */
7037
7038 /* Override any gcc2 internal prototype to avoid an error.  */
7039 #ifdef __cplusplus
7040 extern "C"
7041 #endif
7042 /* We use char because int might match the return type of a gcc2
7043    builtin and then its argument prototype would still apply.  */
7044 char csin ();
7045 int
7046 main ()
7047 {
7048 csin ();
7049   ;
7050   return 0;
7051 }
7052 _ACEOF
7053 rm -f conftest.$ac_objext conftest$ac_exeext
7054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7055   (eval $ac_link) 2>conftest.er1
7056   ac_status=$?
7057   grep -v '^ *+' conftest.er1 >conftest.err
7058   rm -f conftest.er1
7059   cat conftest.err >&5
7060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061   (exit $ac_status); } &&
7062          { ac_try='test -z "$ac_c_werror_flag"
7063                          || test ! -s conftest.err'
7064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7065   (eval $ac_try) 2>&5
7066   ac_status=$?
7067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068   (exit $ac_status); }; } &&
7069          { ac_try='test -s conftest$ac_exeext'
7070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7071   (eval $ac_try) 2>&5
7072   ac_status=$?
7073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074   (exit $ac_status); }; }; then
7075   ac_cv_lib_m_csin=yes
7076 else
7077   echo "$as_me: failed program was:" >&5
7078 sed 's/^/| /' conftest.$ac_ext >&5
7079
7080 ac_cv_lib_m_csin=no
7081 fi
7082 rm -f conftest.err conftest.$ac_objext \
7083       conftest$ac_exeext conftest.$ac_ext
7084 LIBS=$ac_check_lib_save_LIBS
7085 fi
7086 echo "$as_me:$LINENO: result: $ac_cv_lib_m_csin" >&5
7087 echo "${ECHO_T}$ac_cv_lib_m_csin" >&6
7088 if test $ac_cv_lib_m_csin = yes; then
7089   need_math="no"
7090 else
7091   need_math="yes"
7092 fi
7093
7094
7095 # Check for library functions.
7096
7097
7098
7099
7100
7101 for ac_func in getrusage times mkstemp strtof snprintf
7102 do
7103 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7104 echo "$as_me:$LINENO: checking for $ac_func" >&5
7105 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7106 if eval "test \"\${$as_ac_var+set}\" = set"; then
7107   echo $ECHO_N "(cached) $ECHO_C" >&6
7108 else
7109   cat >conftest.$ac_ext <<_ACEOF
7110 /* confdefs.h.  */
7111 _ACEOF
7112 cat confdefs.h >>conftest.$ac_ext
7113 cat >>conftest.$ac_ext <<_ACEOF
7114 /* end confdefs.h.  */
7115 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7116    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7117 #define $ac_func innocuous_$ac_func
7118
7119 /* System header to define __stub macros and hopefully few prototypes,
7120     which can conflict with char $ac_func (); below.
7121     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7122     <limits.h> exists even on freestanding compilers.  */
7123
7124 #ifdef __STDC__
7125 # include <limits.h>
7126 #else
7127 # include <assert.h>
7128 #endif
7129
7130 #undef $ac_func
7131
7132 /* Override any gcc2 internal prototype to avoid an error.  */
7133 #ifdef __cplusplus
7134 extern "C"
7135 {
7136 #endif
7137 /* We use char because int might match the return type of a gcc2
7138    builtin and then its argument prototype would still apply.  */
7139 char $ac_func ();
7140 /* The GNU C library defines this for functions which it implements
7141     to always fail with ENOSYS.  Some functions are actually named
7142     something starting with __ and the normal name is an alias.  */
7143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7144 choke me
7145 #else
7146 char (*f) () = $ac_func;
7147 #endif
7148 #ifdef __cplusplus
7149 }
7150 #endif
7151
7152 int
7153 main ()
7154 {
7155 return f != $ac_func;
7156   ;
7157   return 0;
7158 }
7159 _ACEOF
7160 rm -f conftest.$ac_objext conftest$ac_exeext
7161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7162   (eval $ac_link) 2>conftest.er1
7163   ac_status=$?
7164   grep -v '^ *+' conftest.er1 >conftest.err
7165   rm -f conftest.er1
7166   cat conftest.err >&5
7167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168   (exit $ac_status); } &&
7169          { ac_try='test -z "$ac_c_werror_flag"
7170                          || test ! -s conftest.err'
7171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7172   (eval $ac_try) 2>&5
7173   ac_status=$?
7174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175   (exit $ac_status); }; } &&
7176          { ac_try='test -s conftest$ac_exeext'
7177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7178   (eval $ac_try) 2>&5
7179   ac_status=$?
7180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181   (exit $ac_status); }; }; then
7182   eval "$as_ac_var=yes"
7183 else
7184   echo "$as_me: failed program was:" >&5
7185 sed 's/^/| /' conftest.$ac_ext >&5
7186
7187 eval "$as_ac_var=no"
7188 fi
7189 rm -f conftest.err conftest.$ac_objext \
7190       conftest$ac_exeext conftest.$ac_ext
7191 fi
7192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7193 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7194 if test `eval echo '${'$as_ac_var'}'` = yes; then
7195   cat >>confdefs.h <<_ACEOF
7196 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7197 _ACEOF
7198
7199 fi
7200 done
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210 for ac_func in chdir strerror getlogin gethostname kill link symlink perror
7211 do
7212 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7213 echo "$as_me:$LINENO: checking for $ac_func" >&5
7214 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7215 if eval "test \"\${$as_ac_var+set}\" = set"; then
7216   echo $ECHO_N "(cached) $ECHO_C" >&6
7217 else
7218   cat >conftest.$ac_ext <<_ACEOF
7219 /* confdefs.h.  */
7220 _ACEOF
7221 cat confdefs.h >>conftest.$ac_ext
7222 cat >>conftest.$ac_ext <<_ACEOF
7223 /* end confdefs.h.  */
7224 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7225    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7226 #define $ac_func innocuous_$ac_func
7227
7228 /* System header to define __stub macros and hopefully few prototypes,
7229     which can conflict with char $ac_func (); below.
7230     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7231     <limits.h> exists even on freestanding compilers.  */
7232
7233 #ifdef __STDC__
7234 # include <limits.h>
7235 #else
7236 # include <assert.h>
7237 #endif
7238
7239 #undef $ac_func
7240
7241 /* Override any gcc2 internal prototype to avoid an error.  */
7242 #ifdef __cplusplus
7243 extern "C"
7244 {
7245 #endif
7246 /* We use char because int might match the return type of a gcc2
7247    builtin and then its argument prototype would still apply.  */
7248 char $ac_func ();
7249 /* The GNU C library defines this for functions which it implements
7250     to always fail with ENOSYS.  Some functions are actually named
7251     something starting with __ and the normal name is an alias.  */
7252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7253 choke me
7254 #else
7255 char (*f) () = $ac_func;
7256 #endif
7257 #ifdef __cplusplus
7258 }
7259 #endif
7260
7261 int
7262 main ()
7263 {
7264 return f != $ac_func;
7265   ;
7266   return 0;
7267 }
7268 _ACEOF
7269 rm -f conftest.$ac_objext conftest$ac_exeext
7270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7271   (eval $ac_link) 2>conftest.er1
7272   ac_status=$?
7273   grep -v '^ *+' conftest.er1 >conftest.err
7274   rm -f conftest.er1
7275   cat conftest.err >&5
7276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277   (exit $ac_status); } &&
7278          { ac_try='test -z "$ac_c_werror_flag"
7279                          || test ! -s conftest.err'
7280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7281   (eval $ac_try) 2>&5
7282   ac_status=$?
7283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284   (exit $ac_status); }; } &&
7285          { ac_try='test -s conftest$ac_exeext'
7286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7287   (eval $ac_try) 2>&5
7288   ac_status=$?
7289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290   (exit $ac_status); }; }; then
7291   eval "$as_ac_var=yes"
7292 else
7293   echo "$as_me: failed program was:" >&5
7294 sed 's/^/| /' conftest.$ac_ext >&5
7295
7296 eval "$as_ac_var=no"
7297 fi
7298 rm -f conftest.err conftest.$ac_objext \
7299       conftest$ac_exeext conftest.$ac_ext
7300 fi
7301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7302 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7303 if test `eval echo '${'$as_ac_var'}'` = yes; then
7304   cat >>confdefs.h <<_ACEOF
7305 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7306 _ACEOF
7307
7308 fi
7309 done
7310
7311
7312
7313 for ac_func in sleep time
7314 do
7315 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7316 echo "$as_me:$LINENO: checking for $ac_func" >&5
7317 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7318 if eval "test \"\${$as_ac_var+set}\" = set"; then
7319   echo $ECHO_N "(cached) $ECHO_C" >&6
7320 else
7321   cat >conftest.$ac_ext <<_ACEOF
7322 /* confdefs.h.  */
7323 _ACEOF
7324 cat confdefs.h >>conftest.$ac_ext
7325 cat >>conftest.$ac_ext <<_ACEOF
7326 /* end confdefs.h.  */
7327 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7328    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7329 #define $ac_func innocuous_$ac_func
7330
7331 /* System header to define __stub macros and hopefully few prototypes,
7332     which can conflict with char $ac_func (); below.
7333     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7334     <limits.h> exists even on freestanding compilers.  */
7335
7336 #ifdef __STDC__
7337 # include <limits.h>
7338 #else
7339 # include <assert.h>
7340 #endif
7341
7342 #undef $ac_func
7343
7344 /* Override any gcc2 internal prototype to avoid an error.  */
7345 #ifdef __cplusplus
7346 extern "C"
7347 {
7348 #endif
7349 /* We use char because int might match the return type of a gcc2
7350    builtin and then its argument prototype would still apply.  */
7351 char $ac_func ();
7352 /* The GNU C library defines this for functions which it implements
7353     to always fail with ENOSYS.  Some functions are actually named
7354     something starting with __ and the normal name is an alias.  */
7355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7356 choke me
7357 #else
7358 char (*f) () = $ac_func;
7359 #endif
7360 #ifdef __cplusplus
7361 }
7362 #endif
7363
7364 int
7365 main ()
7366 {
7367 return f != $ac_func;
7368   ;
7369   return 0;
7370 }
7371 _ACEOF
7372 rm -f conftest.$ac_objext conftest$ac_exeext
7373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7374   (eval $ac_link) 2>conftest.er1
7375   ac_status=$?
7376   grep -v '^ *+' conftest.er1 >conftest.err
7377   rm -f conftest.er1
7378   cat conftest.err >&5
7379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380   (exit $ac_status); } &&
7381          { ac_try='test -z "$ac_c_werror_flag"
7382                          || test ! -s conftest.err'
7383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7384   (eval $ac_try) 2>&5
7385   ac_status=$?
7386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387   (exit $ac_status); }; } &&
7388          { ac_try='test -s conftest$ac_exeext'
7389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7390   (eval $ac_try) 2>&5
7391   ac_status=$?
7392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393   (exit $ac_status); }; }; then
7394   eval "$as_ac_var=yes"
7395 else
7396   echo "$as_me: failed program was:" >&5
7397 sed 's/^/| /' conftest.$ac_ext >&5
7398
7399 eval "$as_ac_var=no"
7400 fi
7401 rm -f conftest.err conftest.$ac_objext \
7402       conftest$ac_exeext conftest.$ac_ext
7403 fi
7404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7405 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7406 if test `eval echo '${'$as_ac_var'}'` = yes; then
7407   cat >>confdefs.h <<_ACEOF
7408 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7409 _ACEOF
7410
7411 fi
7412 done
7413
7414
7415 # Check libc for getgid, getpid, getuid
7416 echo "$as_me:$LINENO: checking for getgid in -lc" >&5
7417 echo $ECHO_N "checking for getgid in -lc... $ECHO_C" >&6
7418 if test "${ac_cv_lib_c_getgid+set}" = set; then
7419   echo $ECHO_N "(cached) $ECHO_C" >&6
7420 else
7421   ac_check_lib_save_LIBS=$LIBS
7422 LIBS="-lc  $LIBS"
7423 cat >conftest.$ac_ext <<_ACEOF
7424 /* confdefs.h.  */
7425 _ACEOF
7426 cat confdefs.h >>conftest.$ac_ext
7427 cat >>conftest.$ac_ext <<_ACEOF
7428 /* end confdefs.h.  */
7429
7430 /* Override any gcc2 internal prototype to avoid an error.  */
7431 #ifdef __cplusplus
7432 extern "C"
7433 #endif
7434 /* We use char because int might match the return type of a gcc2
7435    builtin and then its argument prototype would still apply.  */
7436 char getgid ();
7437 int
7438 main ()
7439 {
7440 getgid ();
7441   ;
7442   return 0;
7443 }
7444 _ACEOF
7445 rm -f conftest.$ac_objext conftest$ac_exeext
7446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7447   (eval $ac_link) 2>conftest.er1
7448   ac_status=$?
7449   grep -v '^ *+' conftest.er1 >conftest.err
7450   rm -f conftest.er1
7451   cat conftest.err >&5
7452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453   (exit $ac_status); } &&
7454          { ac_try='test -z "$ac_c_werror_flag"
7455                          || test ! -s conftest.err'
7456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7457   (eval $ac_try) 2>&5
7458   ac_status=$?
7459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460   (exit $ac_status); }; } &&
7461          { ac_try='test -s conftest$ac_exeext'
7462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7463   (eval $ac_try) 2>&5
7464   ac_status=$?
7465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466   (exit $ac_status); }; }; then
7467   ac_cv_lib_c_getgid=yes
7468 else
7469   echo "$as_me: failed program was:" >&5
7470 sed 's/^/| /' conftest.$ac_ext >&5
7471
7472 ac_cv_lib_c_getgid=no
7473 fi
7474 rm -f conftest.err conftest.$ac_objext \
7475       conftest$ac_exeext conftest.$ac_ext
7476 LIBS=$ac_check_lib_save_LIBS
7477 fi
7478 echo "$as_me:$LINENO: result: $ac_cv_lib_c_getgid" >&5
7479 echo "${ECHO_T}$ac_cv_lib_c_getgid" >&6
7480 if test $ac_cv_lib_c_getgid = yes; then
7481
7482 cat >>confdefs.h <<\_ACEOF
7483 #define HAVE_GETGID 1
7484 _ACEOF
7485
7486 fi
7487
7488 echo "$as_me:$LINENO: checking for getpid in -lc" >&5
7489 echo $ECHO_N "checking for getpid in -lc... $ECHO_C" >&6
7490 if test "${ac_cv_lib_c_getpid+set}" = set; then
7491   echo $ECHO_N "(cached) $ECHO_C" >&6
7492 else
7493   ac_check_lib_save_LIBS=$LIBS
7494 LIBS="-lc  $LIBS"
7495 cat >conftest.$ac_ext <<_ACEOF
7496 /* confdefs.h.  */
7497 _ACEOF
7498 cat confdefs.h >>conftest.$ac_ext
7499 cat >>conftest.$ac_ext <<_ACEOF
7500 /* end confdefs.h.  */
7501
7502 /* Override any gcc2 internal prototype to avoid an error.  */
7503 #ifdef __cplusplus
7504 extern "C"
7505 #endif
7506 /* We use char because int might match the return type of a gcc2
7507    builtin and then its argument prototype would still apply.  */
7508 char getpid ();
7509 int
7510 main ()
7511 {
7512 getpid ();
7513   ;
7514   return 0;
7515 }
7516 _ACEOF
7517 rm -f conftest.$ac_objext conftest$ac_exeext
7518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7519   (eval $ac_link) 2>conftest.er1
7520   ac_status=$?
7521   grep -v '^ *+' conftest.er1 >conftest.err
7522   rm -f conftest.er1
7523   cat conftest.err >&5
7524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525   (exit $ac_status); } &&
7526          { ac_try='test -z "$ac_c_werror_flag"
7527                          || test ! -s conftest.err'
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); }; } &&
7533          { ac_try='test -s conftest$ac_exeext'
7534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7535   (eval $ac_try) 2>&5
7536   ac_status=$?
7537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538   (exit $ac_status); }; }; then
7539   ac_cv_lib_c_getpid=yes
7540 else
7541   echo "$as_me: failed program was:" >&5
7542 sed 's/^/| /' conftest.$ac_ext >&5
7543
7544 ac_cv_lib_c_getpid=no
7545 fi
7546 rm -f conftest.err conftest.$ac_objext \
7547       conftest$ac_exeext conftest.$ac_ext
7548 LIBS=$ac_check_lib_save_LIBS
7549 fi
7550 echo "$as_me:$LINENO: result: $ac_cv_lib_c_getpid" >&5
7551 echo "${ECHO_T}$ac_cv_lib_c_getpid" >&6
7552 if test $ac_cv_lib_c_getpid = yes; then
7553
7554 cat >>confdefs.h <<\_ACEOF
7555 #define HAVE_GETPID 1
7556 _ACEOF
7557
7558 fi
7559
7560 echo "$as_me:$LINENO: checking for getuid in -lc" >&5
7561 echo $ECHO_N "checking for getuid in -lc... $ECHO_C" >&6
7562 if test "${ac_cv_lib_c_getuid+set}" = set; then
7563   echo $ECHO_N "(cached) $ECHO_C" >&6
7564 else
7565   ac_check_lib_save_LIBS=$LIBS
7566 LIBS="-lc  $LIBS"
7567 cat >conftest.$ac_ext <<_ACEOF
7568 /* confdefs.h.  */
7569 _ACEOF
7570 cat confdefs.h >>conftest.$ac_ext
7571 cat >>conftest.$ac_ext <<_ACEOF
7572 /* end confdefs.h.  */
7573
7574 /* Override any gcc2 internal prototype to avoid an error.  */
7575 #ifdef __cplusplus
7576 extern "C"
7577 #endif
7578 /* We use char because int might match the return type of a gcc2
7579    builtin and then its argument prototype would still apply.  */
7580 char getuid ();
7581 int
7582 main ()
7583 {
7584 getuid ();
7585   ;
7586   return 0;
7587 }
7588 _ACEOF
7589 rm -f conftest.$ac_objext conftest$ac_exeext
7590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7591   (eval $ac_link) 2>conftest.er1
7592   ac_status=$?
7593   grep -v '^ *+' conftest.er1 >conftest.err
7594   rm -f conftest.er1
7595   cat conftest.err >&5
7596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597   (exit $ac_status); } &&
7598          { ac_try='test -z "$ac_c_werror_flag"
7599                          || test ! -s conftest.err'
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); }; } &&
7605          { ac_try='test -s conftest$ac_exeext'
7606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7607   (eval $ac_try) 2>&5
7608   ac_status=$?
7609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610   (exit $ac_status); }; }; then
7611   ac_cv_lib_c_getuid=yes
7612 else
7613   echo "$as_me: failed program was:" >&5
7614 sed 's/^/| /' conftest.$ac_ext >&5
7615
7616 ac_cv_lib_c_getuid=no
7617 fi
7618 rm -f conftest.err conftest.$ac_objext \
7619       conftest$ac_exeext conftest.$ac_ext
7620 LIBS=$ac_check_lib_save_LIBS
7621 fi
7622 echo "$as_me:$LINENO: result: $ac_cv_lib_c_getuid" >&5
7623 echo "${ECHO_T}$ac_cv_lib_c_getuid" >&6
7624 if test $ac_cv_lib_c_getuid = yes; then
7625
7626 cat >>confdefs.h <<\_ACEOF
7627 #define HAVE_GETUID 1
7628 _ACEOF
7629
7630 fi
7631
7632
7633 # Check for C99 (and other IEEE) math functions
7634 # ??? This list seems awful long. Is there a better way to test for these?
7635 echo "$as_me:$LINENO: checking for acosf in -lm" >&5
7636 echo $ECHO_N "checking for acosf in -lm... $ECHO_C" >&6
7637 if test "${ac_cv_lib_m_acosf+set}" = set; then
7638   echo $ECHO_N "(cached) $ECHO_C" >&6
7639 else
7640   ac_check_lib_save_LIBS=$LIBS
7641 LIBS="-lm  $LIBS"
7642 cat >conftest.$ac_ext <<_ACEOF
7643 /* confdefs.h.  */
7644 _ACEOF
7645 cat confdefs.h >>conftest.$ac_ext
7646 cat >>conftest.$ac_ext <<_ACEOF
7647 /* end confdefs.h.  */
7648
7649 /* Override any gcc2 internal prototype to avoid an error.  */
7650 #ifdef __cplusplus
7651 extern "C"
7652 #endif
7653 /* We use char because int might match the return type of a gcc2
7654    builtin and then its argument prototype would still apply.  */
7655 char acosf ();
7656 int
7657 main ()
7658 {
7659 acosf ();
7660   ;
7661   return 0;
7662 }
7663 _ACEOF
7664 rm -f conftest.$ac_objext conftest$ac_exeext
7665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7666   (eval $ac_link) 2>conftest.er1
7667   ac_status=$?
7668   grep -v '^ *+' conftest.er1 >conftest.err
7669   rm -f conftest.er1
7670   cat conftest.err >&5
7671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672   (exit $ac_status); } &&
7673          { ac_try='test -z "$ac_c_werror_flag"
7674                          || test ! -s conftest.err'
7675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7676   (eval $ac_try) 2>&5
7677   ac_status=$?
7678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679   (exit $ac_status); }; } &&
7680          { ac_try='test -s conftest$ac_exeext'
7681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7682   (eval $ac_try) 2>&5
7683   ac_status=$?
7684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685   (exit $ac_status); }; }; then
7686   ac_cv_lib_m_acosf=yes
7687 else
7688   echo "$as_me: failed program was:" >&5
7689 sed 's/^/| /' conftest.$ac_ext >&5
7690
7691 ac_cv_lib_m_acosf=no
7692 fi
7693 rm -f conftest.err conftest.$ac_objext \
7694       conftest$ac_exeext conftest.$ac_ext
7695 LIBS=$ac_check_lib_save_LIBS
7696 fi
7697 echo "$as_me:$LINENO: result: $ac_cv_lib_m_acosf" >&5
7698 echo "${ECHO_T}$ac_cv_lib_m_acosf" >&6
7699 if test $ac_cv_lib_m_acosf = yes; then
7700
7701 cat >>confdefs.h <<\_ACEOF
7702 #define HAVE_ACOSF 1
7703 _ACEOF
7704
7705 fi
7706
7707 echo "$as_me:$LINENO: checking for asinf in -lm" >&5
7708 echo $ECHO_N "checking for asinf in -lm... $ECHO_C" >&6
7709 if test "${ac_cv_lib_m_asinf+set}" = set; then
7710   echo $ECHO_N "(cached) $ECHO_C" >&6
7711 else
7712   ac_check_lib_save_LIBS=$LIBS
7713 LIBS="-lm  $LIBS"
7714 cat >conftest.$ac_ext <<_ACEOF
7715 /* confdefs.h.  */
7716 _ACEOF
7717 cat confdefs.h >>conftest.$ac_ext
7718 cat >>conftest.$ac_ext <<_ACEOF
7719 /* end confdefs.h.  */
7720
7721 /* Override any gcc2 internal prototype to avoid an error.  */
7722 #ifdef __cplusplus
7723 extern "C"
7724 #endif
7725 /* We use char because int might match the return type of a gcc2
7726    builtin and then its argument prototype would still apply.  */
7727 char asinf ();
7728 int
7729 main ()
7730 {
7731 asinf ();
7732   ;
7733   return 0;
7734 }
7735 _ACEOF
7736 rm -f conftest.$ac_objext conftest$ac_exeext
7737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7738   (eval $ac_link) 2>conftest.er1
7739   ac_status=$?
7740   grep -v '^ *+' conftest.er1 >conftest.err
7741   rm -f conftest.er1
7742   cat conftest.err >&5
7743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744   (exit $ac_status); } &&
7745          { ac_try='test -z "$ac_c_werror_flag"
7746                          || test ! -s conftest.err'
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); }; } &&
7752          { ac_try='test -s conftest$ac_exeext'
7753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7754   (eval $ac_try) 2>&5
7755   ac_status=$?
7756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757   (exit $ac_status); }; }; then
7758   ac_cv_lib_m_asinf=yes
7759 else
7760   echo "$as_me: failed program was:" >&5
7761 sed 's/^/| /' conftest.$ac_ext >&5
7762
7763 ac_cv_lib_m_asinf=no
7764 fi
7765 rm -f conftest.err conftest.$ac_objext \
7766       conftest$ac_exeext conftest.$ac_ext
7767 LIBS=$ac_check_lib_save_LIBS
7768 fi
7769 echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinf" >&5
7770 echo "${ECHO_T}$ac_cv_lib_m_asinf" >&6
7771 if test $ac_cv_lib_m_asinf = yes; then
7772
7773 cat >>confdefs.h <<\_ACEOF
7774 #define HAVE_ASINF 1
7775 _ACEOF
7776
7777 fi
7778
7779 echo "$as_me:$LINENO: checking for atan2f in -lm" >&5
7780 echo $ECHO_N "checking for atan2f in -lm... $ECHO_C" >&6
7781 if test "${ac_cv_lib_m_atan2f+set}" = set; then
7782   echo $ECHO_N "(cached) $ECHO_C" >&6
7783 else
7784   ac_check_lib_save_LIBS=$LIBS
7785 LIBS="-lm  $LIBS"
7786 cat >conftest.$ac_ext <<_ACEOF
7787 /* confdefs.h.  */
7788 _ACEOF
7789 cat confdefs.h >>conftest.$ac_ext
7790 cat >>conftest.$ac_ext <<_ACEOF
7791 /* end confdefs.h.  */
7792
7793 /* Override any gcc2 internal prototype to avoid an error.  */
7794 #ifdef __cplusplus
7795 extern "C"
7796 #endif
7797 /* We use char because int might match the return type of a gcc2
7798    builtin and then its argument prototype would still apply.  */
7799 char atan2f ();
7800 int
7801 main ()
7802 {
7803 atan2f ();
7804   ;
7805   return 0;
7806 }
7807 _ACEOF
7808 rm -f conftest.$ac_objext conftest$ac_exeext
7809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7810   (eval $ac_link) 2>conftest.er1
7811   ac_status=$?
7812   grep -v '^ *+' conftest.er1 >conftest.err
7813   rm -f conftest.er1
7814   cat conftest.err >&5
7815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816   (exit $ac_status); } &&
7817          { ac_try='test -z "$ac_c_werror_flag"
7818                          || test ! -s conftest.err'
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); }; } &&
7824          { ac_try='test -s conftest$ac_exeext'
7825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7826   (eval $ac_try) 2>&5
7827   ac_status=$?
7828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829   (exit $ac_status); }; }; then
7830   ac_cv_lib_m_atan2f=yes
7831 else
7832   echo "$as_me: failed program was:" >&5
7833 sed 's/^/| /' conftest.$ac_ext >&5
7834
7835 ac_cv_lib_m_atan2f=no
7836 fi
7837 rm -f conftest.err conftest.$ac_objext \
7838       conftest$ac_exeext conftest.$ac_ext
7839 LIBS=$ac_check_lib_save_LIBS
7840 fi
7841 echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan2f" >&5
7842 echo "${ECHO_T}$ac_cv_lib_m_atan2f" >&6
7843 if test $ac_cv_lib_m_atan2f = yes; then
7844
7845 cat >>confdefs.h <<\_ACEOF
7846 #define HAVE_ATAN2F 1
7847 _ACEOF
7848
7849 fi
7850
7851 echo "$as_me:$LINENO: checking for atanf in -lm" >&5
7852 echo $ECHO_N "checking for atanf in -lm... $ECHO_C" >&6
7853 if test "${ac_cv_lib_m_atanf+set}" = set; then
7854   echo $ECHO_N "(cached) $ECHO_C" >&6
7855 else
7856   ac_check_lib_save_LIBS=$LIBS
7857 LIBS="-lm  $LIBS"
7858 cat >conftest.$ac_ext <<_ACEOF
7859 /* confdefs.h.  */
7860 _ACEOF
7861 cat confdefs.h >>conftest.$ac_ext
7862 cat >>conftest.$ac_ext <<_ACEOF
7863 /* end confdefs.h.  */
7864
7865 /* Override any gcc2 internal prototype to avoid an error.  */
7866 #ifdef __cplusplus
7867 extern "C"
7868 #endif
7869 /* We use char because int might match the return type of a gcc2
7870    builtin and then its argument prototype would still apply.  */
7871 char atanf ();
7872 int
7873 main ()
7874 {
7875 atanf ();
7876   ;
7877   return 0;
7878 }
7879 _ACEOF
7880 rm -f conftest.$ac_objext conftest$ac_exeext
7881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7882   (eval $ac_link) 2>conftest.er1
7883   ac_status=$?
7884   grep -v '^ *+' conftest.er1 >conftest.err
7885   rm -f conftest.er1
7886   cat conftest.err >&5
7887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888   (exit $ac_status); } &&
7889          { ac_try='test -z "$ac_c_werror_flag"
7890                          || test ! -s conftest.err'
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); }; } &&
7896          { ac_try='test -s conftest$ac_exeext'
7897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7898   (eval $ac_try) 2>&5
7899   ac_status=$?
7900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901   (exit $ac_status); }; }; then
7902   ac_cv_lib_m_atanf=yes
7903 else
7904   echo "$as_me: failed program was:" >&5
7905 sed 's/^/| /' conftest.$ac_ext >&5
7906
7907 ac_cv_lib_m_atanf=no
7908 fi
7909 rm -f conftest.err conftest.$ac_objext \
7910       conftest$ac_exeext conftest.$ac_ext
7911 LIBS=$ac_check_lib_save_LIBS
7912 fi
7913 echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanf" >&5
7914 echo "${ECHO_T}$ac_cv_lib_m_atanf" >&6
7915 if test $ac_cv_lib_m_atanf = yes; then
7916
7917 cat >>confdefs.h <<\_ACEOF
7918 #define HAVE_ATANF 1
7919 _ACEOF
7920
7921 fi
7922
7923 echo "$as_me:$LINENO: checking for ceilf in -lm" >&5
7924 echo $ECHO_N "checking for ceilf in -lm... $ECHO_C" >&6
7925 if test "${ac_cv_lib_m_ceilf+set}" = set; then
7926   echo $ECHO_N "(cached) $ECHO_C" >&6
7927 else
7928   ac_check_lib_save_LIBS=$LIBS
7929 LIBS="-lm  $LIBS"
7930 cat >conftest.$ac_ext <<_ACEOF
7931 /* confdefs.h.  */
7932 _ACEOF
7933 cat confdefs.h >>conftest.$ac_ext
7934 cat >>conftest.$ac_ext <<_ACEOF
7935 /* end confdefs.h.  */
7936
7937 /* Override any gcc2 internal prototype to avoid an error.  */
7938 #ifdef __cplusplus
7939 extern "C"
7940 #endif
7941 /* We use char because int might match the return type of a gcc2
7942    builtin and then its argument prototype would still apply.  */
7943 char ceilf ();
7944 int
7945 main ()
7946 {
7947 ceilf ();
7948   ;
7949   return 0;
7950 }
7951 _ACEOF
7952 rm -f conftest.$ac_objext conftest$ac_exeext
7953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7954   (eval $ac_link) 2>conftest.er1
7955   ac_status=$?
7956   grep -v '^ *+' conftest.er1 >conftest.err
7957   rm -f conftest.er1
7958   cat conftest.err >&5
7959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960   (exit $ac_status); } &&
7961          { ac_try='test -z "$ac_c_werror_flag"
7962                          || test ! -s conftest.err'
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); }; } &&
7968          { ac_try='test -s conftest$ac_exeext'
7969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7970   (eval $ac_try) 2>&5
7971   ac_status=$?
7972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973   (exit $ac_status); }; }; then
7974   ac_cv_lib_m_ceilf=yes
7975 else
7976   echo "$as_me: failed program was:" >&5
7977 sed 's/^/| /' conftest.$ac_ext >&5
7978
7979 ac_cv_lib_m_ceilf=no
7980 fi
7981 rm -f conftest.err conftest.$ac_objext \
7982       conftest$ac_exeext conftest.$ac_ext
7983 LIBS=$ac_check_lib_save_LIBS
7984 fi
7985 echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceilf" >&5
7986 echo "${ECHO_T}$ac_cv_lib_m_ceilf" >&6
7987 if test $ac_cv_lib_m_ceilf = yes; then
7988
7989 cat >>confdefs.h <<\_ACEOF
7990 #define HAVE_CEILF 1
7991 _ACEOF
7992
7993 fi
7994
7995 echo "$as_me:$LINENO: checking for copysignf in -lm" >&5
7996 echo $ECHO_N "checking for copysignf in -lm... $ECHO_C" >&6
7997 if test "${ac_cv_lib_m_copysignf+set}" = set; then
7998   echo $ECHO_N "(cached) $ECHO_C" >&6
7999 else
8000   ac_check_lib_save_LIBS=$LIBS
8001 LIBS="-lm  $LIBS"
8002 cat >conftest.$ac_ext <<_ACEOF
8003 /* confdefs.h.  */
8004 _ACEOF
8005 cat confdefs.h >>conftest.$ac_ext
8006 cat >>conftest.$ac_ext <<_ACEOF
8007 /* end confdefs.h.  */
8008
8009 /* Override any gcc2 internal prototype to avoid an error.  */
8010 #ifdef __cplusplus
8011 extern "C"
8012 #endif
8013 /* We use char because int might match the return type of a gcc2
8014    builtin and then its argument prototype would still apply.  */
8015 char copysignf ();
8016 int
8017 main ()
8018 {
8019 copysignf ();
8020   ;
8021   return 0;
8022 }
8023 _ACEOF
8024 rm -f conftest.$ac_objext conftest$ac_exeext
8025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8026   (eval $ac_link) 2>conftest.er1
8027   ac_status=$?
8028   grep -v '^ *+' conftest.er1 >conftest.err
8029   rm -f conftest.er1
8030   cat conftest.err >&5
8031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032   (exit $ac_status); } &&
8033          { ac_try='test -z "$ac_c_werror_flag"
8034                          || test ! -s conftest.err'
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); }; } &&
8040          { ac_try='test -s conftest$ac_exeext'
8041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8042   (eval $ac_try) 2>&5
8043   ac_status=$?
8044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045   (exit $ac_status); }; }; then
8046   ac_cv_lib_m_copysignf=yes
8047 else
8048   echo "$as_me: failed program was:" >&5
8049 sed 's/^/| /' conftest.$ac_ext >&5
8050
8051 ac_cv_lib_m_copysignf=no
8052 fi
8053 rm -f conftest.err conftest.$ac_objext \
8054       conftest$ac_exeext conftest.$ac_ext
8055 LIBS=$ac_check_lib_save_LIBS
8056 fi
8057 echo "$as_me:$LINENO: result: $ac_cv_lib_m_copysignf" >&5
8058 echo "${ECHO_T}$ac_cv_lib_m_copysignf" >&6
8059 if test $ac_cv_lib_m_copysignf = yes; then
8060
8061 cat >>confdefs.h <<\_ACEOF
8062 #define HAVE_COPYSIGNF 1
8063 _ACEOF
8064
8065 fi
8066
8067 echo "$as_me:$LINENO: checking for cosf in -lm" >&5
8068 echo $ECHO_N "checking for cosf in -lm... $ECHO_C" >&6
8069 if test "${ac_cv_lib_m_cosf+set}" = set; then
8070   echo $ECHO_N "(cached) $ECHO_C" >&6
8071 else
8072   ac_check_lib_save_LIBS=$LIBS
8073 LIBS="-lm  $LIBS"
8074 cat >conftest.$ac_ext <<_ACEOF
8075 /* confdefs.h.  */
8076 _ACEOF
8077 cat confdefs.h >>conftest.$ac_ext
8078 cat >>conftest.$ac_ext <<_ACEOF
8079 /* end confdefs.h.  */
8080
8081 /* Override any gcc2 internal prototype to avoid an error.  */
8082 #ifdef __cplusplus
8083 extern "C"
8084 #endif
8085 /* We use char because int might match the return type of a gcc2
8086    builtin and then its argument prototype would still apply.  */
8087 char cosf ();
8088 int
8089 main ()
8090 {
8091 cosf ();
8092   ;
8093   return 0;
8094 }
8095 _ACEOF
8096 rm -f conftest.$ac_objext conftest$ac_exeext
8097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8098   (eval $ac_link) 2>conftest.er1
8099   ac_status=$?
8100   grep -v '^ *+' conftest.er1 >conftest.err
8101   rm -f conftest.er1
8102   cat conftest.err >&5
8103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104   (exit $ac_status); } &&
8105          { ac_try='test -z "$ac_c_werror_flag"
8106                          || test ! -s conftest.err'
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); }; } &&
8112          { ac_try='test -s conftest$ac_exeext'
8113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8114   (eval $ac_try) 2>&5
8115   ac_status=$?
8116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117   (exit $ac_status); }; }; then
8118   ac_cv_lib_m_cosf=yes
8119 else
8120   echo "$as_me: failed program was:" >&5
8121 sed 's/^/| /' conftest.$ac_ext >&5
8122
8123 ac_cv_lib_m_cosf=no
8124 fi
8125 rm -f conftest.err conftest.$ac_objext \
8126       conftest$ac_exeext conftest.$ac_ext
8127 LIBS=$ac_check_lib_save_LIBS
8128 fi
8129 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cosf" >&5
8130 echo "${ECHO_T}$ac_cv_lib_m_cosf" >&6
8131 if test $ac_cv_lib_m_cosf = yes; then
8132
8133 cat >>confdefs.h <<\_ACEOF
8134 #define HAVE_COSF 1
8135 _ACEOF
8136
8137 fi
8138
8139 echo "$as_me:$LINENO: checking for coshf in -lm" >&5
8140 echo $ECHO_N "checking for coshf in -lm... $ECHO_C" >&6
8141 if test "${ac_cv_lib_m_coshf+set}" = set; then
8142   echo $ECHO_N "(cached) $ECHO_C" >&6
8143 else
8144   ac_check_lib_save_LIBS=$LIBS
8145 LIBS="-lm  $LIBS"
8146 cat >conftest.$ac_ext <<_ACEOF
8147 /* confdefs.h.  */
8148 _ACEOF
8149 cat confdefs.h >>conftest.$ac_ext
8150 cat >>conftest.$ac_ext <<_ACEOF
8151 /* end confdefs.h.  */
8152
8153 /* Override any gcc2 internal prototype to avoid an error.  */
8154 #ifdef __cplusplus
8155 extern "C"
8156 #endif
8157 /* We use char because int might match the return type of a gcc2
8158    builtin and then its argument prototype would still apply.  */
8159 char coshf ();
8160 int
8161 main ()
8162 {
8163 coshf ();
8164   ;
8165   return 0;
8166 }
8167 _ACEOF
8168 rm -f conftest.$ac_objext conftest$ac_exeext
8169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8170   (eval $ac_link) 2>conftest.er1
8171   ac_status=$?
8172   grep -v '^ *+' conftest.er1 >conftest.err
8173   rm -f conftest.er1
8174   cat conftest.err >&5
8175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176   (exit $ac_status); } &&
8177          { ac_try='test -z "$ac_c_werror_flag"
8178                          || test ! -s conftest.err'
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); }; } &&
8184          { ac_try='test -s conftest$ac_exeext'
8185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8186   (eval $ac_try) 2>&5
8187   ac_status=$?
8188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189   (exit $ac_status); }; }; then
8190   ac_cv_lib_m_coshf=yes
8191 else
8192   echo "$as_me: failed program was:" >&5
8193 sed 's/^/| /' conftest.$ac_ext >&5
8194
8195 ac_cv_lib_m_coshf=no
8196 fi
8197 rm -f conftest.err conftest.$ac_objext \
8198       conftest$ac_exeext conftest.$ac_ext
8199 LIBS=$ac_check_lib_save_LIBS
8200 fi
8201 echo "$as_me:$LINENO: result: $ac_cv_lib_m_coshf" >&5
8202 echo "${ECHO_T}$ac_cv_lib_m_coshf" >&6
8203 if test $ac_cv_lib_m_coshf = yes; then
8204
8205 cat >>confdefs.h <<\_ACEOF
8206 #define HAVE_COSHF 1
8207 _ACEOF
8208
8209 fi
8210
8211 echo "$as_me:$LINENO: checking for expf in -lm" >&5
8212 echo $ECHO_N "checking for expf in -lm... $ECHO_C" >&6
8213 if test "${ac_cv_lib_m_expf+set}" = set; then
8214   echo $ECHO_N "(cached) $ECHO_C" >&6
8215 else
8216   ac_check_lib_save_LIBS=$LIBS
8217 LIBS="-lm  $LIBS"
8218 cat >conftest.$ac_ext <<_ACEOF
8219 /* confdefs.h.  */
8220 _ACEOF
8221 cat confdefs.h >>conftest.$ac_ext
8222 cat >>conftest.$ac_ext <<_ACEOF
8223 /* end confdefs.h.  */
8224
8225 /* Override any gcc2 internal prototype to avoid an error.  */
8226 #ifdef __cplusplus
8227 extern "C"
8228 #endif
8229 /* We use char because int might match the return type of a gcc2
8230    builtin and then its argument prototype would still apply.  */
8231 char expf ();
8232 int
8233 main ()
8234 {
8235 expf ();
8236   ;
8237   return 0;
8238 }
8239 _ACEOF
8240 rm -f conftest.$ac_objext conftest$ac_exeext
8241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8242   (eval $ac_link) 2>conftest.er1
8243   ac_status=$?
8244   grep -v '^ *+' conftest.er1 >conftest.err
8245   rm -f conftest.er1
8246   cat conftest.err >&5
8247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248   (exit $ac_status); } &&
8249          { ac_try='test -z "$ac_c_werror_flag"
8250                          || test ! -s conftest.err'
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); }; } &&
8256          { ac_try='test -s conftest$ac_exeext'
8257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8258   (eval $ac_try) 2>&5
8259   ac_status=$?
8260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261   (exit $ac_status); }; }; then
8262   ac_cv_lib_m_expf=yes
8263 else
8264   echo "$as_me: failed program was:" >&5
8265 sed 's/^/| /' conftest.$ac_ext >&5
8266
8267 ac_cv_lib_m_expf=no
8268 fi
8269 rm -f conftest.err conftest.$ac_objext \
8270       conftest$ac_exeext conftest.$ac_ext
8271 LIBS=$ac_check_lib_save_LIBS
8272 fi
8273 echo "$as_me:$LINENO: result: $ac_cv_lib_m_expf" >&5
8274 echo "${ECHO_T}$ac_cv_lib_m_expf" >&6
8275 if test $ac_cv_lib_m_expf = yes; then
8276
8277 cat >>confdefs.h <<\_ACEOF
8278 #define HAVE_EXPF 1
8279 _ACEOF
8280
8281 fi
8282
8283 echo "$as_me:$LINENO: checking for fabsf in -lm" >&5
8284 echo $ECHO_N "checking for fabsf in -lm... $ECHO_C" >&6
8285 if test "${ac_cv_lib_m_fabsf+set}" = set; then
8286   echo $ECHO_N "(cached) $ECHO_C" >&6
8287 else
8288   ac_check_lib_save_LIBS=$LIBS
8289 LIBS="-lm  $LIBS"
8290 cat >conftest.$ac_ext <<_ACEOF
8291 /* confdefs.h.  */
8292 _ACEOF
8293 cat confdefs.h >>conftest.$ac_ext
8294 cat >>conftest.$ac_ext <<_ACEOF
8295 /* end confdefs.h.  */
8296
8297 /* Override any gcc2 internal prototype to avoid an error.  */
8298 #ifdef __cplusplus
8299 extern "C"
8300 #endif
8301 /* We use char because int might match the return type of a gcc2
8302    builtin and then its argument prototype would still apply.  */
8303 char fabsf ();
8304 int
8305 main ()
8306 {
8307 fabsf ();
8308   ;
8309   return 0;
8310 }
8311 _ACEOF
8312 rm -f conftest.$ac_objext conftest$ac_exeext
8313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8314   (eval $ac_link) 2>conftest.er1
8315   ac_status=$?
8316   grep -v '^ *+' conftest.er1 >conftest.err
8317   rm -f conftest.er1
8318   cat conftest.err >&5
8319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320   (exit $ac_status); } &&
8321          { ac_try='test -z "$ac_c_werror_flag"
8322                          || test ! -s conftest.err'
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); }; } &&
8328          { ac_try='test -s conftest$ac_exeext'
8329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8330   (eval $ac_try) 2>&5
8331   ac_status=$?
8332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333   (exit $ac_status); }; }; then
8334   ac_cv_lib_m_fabsf=yes
8335 else
8336   echo "$as_me: failed program was:" >&5
8337 sed 's/^/| /' conftest.$ac_ext >&5
8338
8339 ac_cv_lib_m_fabsf=no
8340 fi
8341 rm -f conftest.err conftest.$ac_objext \
8342       conftest$ac_exeext conftest.$ac_ext
8343 LIBS=$ac_check_lib_save_LIBS
8344 fi
8345 echo "$as_me:$LINENO: result: $ac_cv_lib_m_fabsf" >&5
8346 echo "${ECHO_T}$ac_cv_lib_m_fabsf" >&6
8347 if test $ac_cv_lib_m_fabsf = yes; then
8348
8349 cat >>confdefs.h <<\_ACEOF
8350 #define HAVE_FABSF 1
8351 _ACEOF
8352
8353 fi
8354
8355 echo "$as_me:$LINENO: checking for floorf in -lm" >&5
8356 echo $ECHO_N "checking for floorf in -lm... $ECHO_C" >&6
8357 if test "${ac_cv_lib_m_floorf+set}" = set; then
8358   echo $ECHO_N "(cached) $ECHO_C" >&6
8359 else
8360   ac_check_lib_save_LIBS=$LIBS
8361 LIBS="-lm  $LIBS"
8362 cat >conftest.$ac_ext <<_ACEOF
8363 /* confdefs.h.  */
8364 _ACEOF
8365 cat confdefs.h >>conftest.$ac_ext
8366 cat >>conftest.$ac_ext <<_ACEOF
8367 /* end confdefs.h.  */
8368
8369 /* Override any gcc2 internal prototype to avoid an error.  */
8370 #ifdef __cplusplus
8371 extern "C"
8372 #endif
8373 /* We use char because int might match the return type of a gcc2
8374    builtin and then its argument prototype would still apply.  */
8375 char floorf ();
8376 int
8377 main ()
8378 {
8379 floorf ();
8380   ;
8381   return 0;
8382 }
8383 _ACEOF
8384 rm -f conftest.$ac_objext conftest$ac_exeext
8385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8386   (eval $ac_link) 2>conftest.er1
8387   ac_status=$?
8388   grep -v '^ *+' conftest.er1 >conftest.err
8389   rm -f conftest.er1
8390   cat conftest.err >&5
8391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392   (exit $ac_status); } &&
8393          { ac_try='test -z "$ac_c_werror_flag"
8394                          || test ! -s conftest.err'
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); }; } &&
8400          { ac_try='test -s conftest$ac_exeext'
8401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8402   (eval $ac_try) 2>&5
8403   ac_status=$?
8404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405   (exit $ac_status); }; }; then
8406   ac_cv_lib_m_floorf=yes
8407 else
8408   echo "$as_me: failed program was:" >&5
8409 sed 's/^/| /' conftest.$ac_ext >&5
8410
8411 ac_cv_lib_m_floorf=no
8412 fi
8413 rm -f conftest.err conftest.$ac_objext \
8414       conftest$ac_exeext conftest.$ac_ext
8415 LIBS=$ac_check_lib_save_LIBS
8416 fi
8417 echo "$as_me:$LINENO: result: $ac_cv_lib_m_floorf" >&5
8418 echo "${ECHO_T}$ac_cv_lib_m_floorf" >&6
8419 if test $ac_cv_lib_m_floorf = yes; then
8420
8421 cat >>confdefs.h <<\_ACEOF
8422 #define HAVE_FLOORF 1
8423 _ACEOF
8424
8425 fi
8426
8427 echo "$as_me:$LINENO: checking for frexpf in -lm" >&5
8428 echo $ECHO_N "checking for frexpf in -lm... $ECHO_C" >&6
8429 if test "${ac_cv_lib_m_frexpf+set}" = set; then
8430   echo $ECHO_N "(cached) $ECHO_C" >&6
8431 else
8432   ac_check_lib_save_LIBS=$LIBS
8433 LIBS="-lm  $LIBS"
8434 cat >conftest.$ac_ext <<_ACEOF
8435 /* confdefs.h.  */
8436 _ACEOF
8437 cat confdefs.h >>conftest.$ac_ext
8438 cat >>conftest.$ac_ext <<_ACEOF
8439 /* end confdefs.h.  */
8440
8441 /* Override any gcc2 internal prototype to avoid an error.  */
8442 #ifdef __cplusplus
8443 extern "C"
8444 #endif
8445 /* We use char because int might match the return type of a gcc2
8446    builtin and then its argument prototype would still apply.  */
8447 char frexpf ();
8448 int
8449 main ()
8450 {
8451 frexpf ();
8452   ;
8453   return 0;
8454 }
8455 _ACEOF
8456 rm -f conftest.$ac_objext conftest$ac_exeext
8457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8458   (eval $ac_link) 2>conftest.er1
8459   ac_status=$?
8460   grep -v '^ *+' conftest.er1 >conftest.err
8461   rm -f conftest.er1
8462   cat conftest.err >&5
8463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464   (exit $ac_status); } &&
8465          { ac_try='test -z "$ac_c_werror_flag"
8466                          || test ! -s conftest.err'
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); }; } &&
8472          { ac_try='test -s conftest$ac_exeext'
8473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8474   (eval $ac_try) 2>&5
8475   ac_status=$?
8476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477   (exit $ac_status); }; }; then
8478   ac_cv_lib_m_frexpf=yes
8479 else
8480   echo "$as_me: failed program was:" >&5
8481 sed 's/^/| /' conftest.$ac_ext >&5
8482
8483 ac_cv_lib_m_frexpf=no
8484 fi
8485 rm -f conftest.err conftest.$ac_objext \
8486       conftest$ac_exeext conftest.$ac_ext
8487 LIBS=$ac_check_lib_save_LIBS
8488 fi
8489 echo "$as_me:$LINENO: result: $ac_cv_lib_m_frexpf" >&5
8490 echo "${ECHO_T}$ac_cv_lib_m_frexpf" >&6
8491 if test $ac_cv_lib_m_frexpf = yes; then
8492
8493 cat >>confdefs.h <<\_ACEOF
8494 #define HAVE_FREXPF 1
8495 _ACEOF
8496
8497 fi
8498
8499 echo "$as_me:$LINENO: checking for hypotf in -lm" >&5
8500 echo $ECHO_N "checking for hypotf in -lm... $ECHO_C" >&6
8501 if test "${ac_cv_lib_m_hypotf+set}" = set; then
8502   echo $ECHO_N "(cached) $ECHO_C" >&6
8503 else
8504   ac_check_lib_save_LIBS=$LIBS
8505 LIBS="-lm  $LIBS"
8506 cat >conftest.$ac_ext <<_ACEOF
8507 /* confdefs.h.  */
8508 _ACEOF
8509 cat confdefs.h >>conftest.$ac_ext
8510 cat >>conftest.$ac_ext <<_ACEOF
8511 /* end confdefs.h.  */
8512
8513 /* Override any gcc2 internal prototype to avoid an error.  */
8514 #ifdef __cplusplus
8515 extern "C"
8516 #endif
8517 /* We use char because int might match the return type of a gcc2
8518    builtin and then its argument prototype would still apply.  */
8519 char hypotf ();
8520 int
8521 main ()
8522 {
8523 hypotf ();
8524   ;
8525   return 0;
8526 }
8527 _ACEOF
8528 rm -f conftest.$ac_objext conftest$ac_exeext
8529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8530   (eval $ac_link) 2>conftest.er1
8531   ac_status=$?
8532   grep -v '^ *+' conftest.er1 >conftest.err
8533   rm -f conftest.er1
8534   cat conftest.err >&5
8535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536   (exit $ac_status); } &&
8537          { ac_try='test -z "$ac_c_werror_flag"
8538                          || test ! -s conftest.err'
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); }; } &&
8544          { ac_try='test -s conftest$ac_exeext'
8545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8546   (eval $ac_try) 2>&5
8547   ac_status=$?
8548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549   (exit $ac_status); }; }; then
8550   ac_cv_lib_m_hypotf=yes
8551 else
8552   echo "$as_me: failed program was:" >&5
8553 sed 's/^/| /' conftest.$ac_ext >&5
8554
8555 ac_cv_lib_m_hypotf=no
8556 fi
8557 rm -f conftest.err conftest.$ac_objext \
8558       conftest$ac_exeext conftest.$ac_ext
8559 LIBS=$ac_check_lib_save_LIBS
8560 fi
8561 echo "$as_me:$LINENO: result: $ac_cv_lib_m_hypotf" >&5
8562 echo "${ECHO_T}$ac_cv_lib_m_hypotf" >&6
8563 if test $ac_cv_lib_m_hypotf = yes; then
8564
8565 cat >>confdefs.h <<\_ACEOF
8566 #define HAVE_HYPOTF 1
8567 _ACEOF
8568
8569 fi
8570
8571 echo "$as_me:$LINENO: checking for logf in -lm" >&5
8572 echo $ECHO_N "checking for logf in -lm... $ECHO_C" >&6
8573 if test "${ac_cv_lib_m_logf+set}" = set; then
8574   echo $ECHO_N "(cached) $ECHO_C" >&6
8575 else
8576   ac_check_lib_save_LIBS=$LIBS
8577 LIBS="-lm  $LIBS"
8578 cat >conftest.$ac_ext <<_ACEOF
8579 /* confdefs.h.  */
8580 _ACEOF
8581 cat confdefs.h >>conftest.$ac_ext
8582 cat >>conftest.$ac_ext <<_ACEOF
8583 /* end confdefs.h.  */
8584
8585 /* Override any gcc2 internal prototype to avoid an error.  */
8586 #ifdef __cplusplus
8587 extern "C"
8588 #endif
8589 /* We use char because int might match the return type of a gcc2
8590    builtin and then its argument prototype would still apply.  */
8591 char logf ();
8592 int
8593 main ()
8594 {
8595 logf ();
8596   ;
8597   return 0;
8598 }
8599 _ACEOF
8600 rm -f conftest.$ac_objext conftest$ac_exeext
8601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8602   (eval $ac_link) 2>conftest.er1
8603   ac_status=$?
8604   grep -v '^ *+' conftest.er1 >conftest.err
8605   rm -f conftest.er1
8606   cat conftest.err >&5
8607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608   (exit $ac_status); } &&
8609          { ac_try='test -z "$ac_c_werror_flag"
8610                          || test ! -s conftest.err'
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); }; } &&
8616          { ac_try='test -s conftest$ac_exeext'
8617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8618   (eval $ac_try) 2>&5
8619   ac_status=$?
8620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621   (exit $ac_status); }; }; then
8622   ac_cv_lib_m_logf=yes
8623 else
8624   echo "$as_me: failed program was:" >&5
8625 sed 's/^/| /' conftest.$ac_ext >&5
8626
8627 ac_cv_lib_m_logf=no
8628 fi
8629 rm -f conftest.err conftest.$ac_objext \
8630       conftest$ac_exeext conftest.$ac_ext
8631 LIBS=$ac_check_lib_save_LIBS
8632 fi
8633 echo "$as_me:$LINENO: result: $ac_cv_lib_m_logf" >&5
8634 echo "${ECHO_T}$ac_cv_lib_m_logf" >&6
8635 if test $ac_cv_lib_m_logf = yes; then
8636
8637 cat >>confdefs.h <<\_ACEOF
8638 #define HAVE_LOGF 1
8639 _ACEOF
8640
8641 fi
8642
8643 echo "$as_me:$LINENO: checking for log10f in -lm" >&5
8644 echo $ECHO_N "checking for log10f in -lm... $ECHO_C" >&6
8645 if test "${ac_cv_lib_m_log10f+set}" = set; then
8646   echo $ECHO_N "(cached) $ECHO_C" >&6
8647 else
8648   ac_check_lib_save_LIBS=$LIBS
8649 LIBS="-lm  $LIBS"
8650 cat >conftest.$ac_ext <<_ACEOF
8651 /* confdefs.h.  */
8652 _ACEOF
8653 cat confdefs.h >>conftest.$ac_ext
8654 cat >>conftest.$ac_ext <<_ACEOF
8655 /* end confdefs.h.  */
8656
8657 /* Override any gcc2 internal prototype to avoid an error.  */
8658 #ifdef __cplusplus
8659 extern "C"
8660 #endif
8661 /* We use char because int might match the return type of a gcc2
8662    builtin and then its argument prototype would still apply.  */
8663 char log10f ();
8664 int
8665 main ()
8666 {
8667 log10f ();
8668   ;
8669   return 0;
8670 }
8671 _ACEOF
8672 rm -f conftest.$ac_objext conftest$ac_exeext
8673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8674   (eval $ac_link) 2>conftest.er1
8675   ac_status=$?
8676   grep -v '^ *+' conftest.er1 >conftest.err
8677   rm -f conftest.er1
8678   cat conftest.err >&5
8679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680   (exit $ac_status); } &&
8681          { ac_try='test -z "$ac_c_werror_flag"
8682                          || test ! -s conftest.err'
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); }; } &&
8688          { ac_try='test -s conftest$ac_exeext'
8689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8690   (eval $ac_try) 2>&5
8691   ac_status=$?
8692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693   (exit $ac_status); }; }; then
8694   ac_cv_lib_m_log10f=yes
8695 else
8696   echo "$as_me: failed program was:" >&5
8697 sed 's/^/| /' conftest.$ac_ext >&5
8698
8699 ac_cv_lib_m_log10f=no
8700 fi
8701 rm -f conftest.err conftest.$ac_objext \
8702       conftest$ac_exeext conftest.$ac_ext
8703 LIBS=$ac_check_lib_save_LIBS
8704 fi
8705 echo "$as_me:$LINENO: result: $ac_cv_lib_m_log10f" >&5
8706 echo "${ECHO_T}$ac_cv_lib_m_log10f" >&6
8707 if test $ac_cv_lib_m_log10f = yes; then
8708
8709 cat >>confdefs.h <<\_ACEOF
8710 #define HAVE_LOG10F 1
8711 _ACEOF
8712
8713 fi
8714
8715 echo "$as_me:$LINENO: checking for nextafter in -lm" >&5
8716 echo $ECHO_N "checking for nextafter in -lm... $ECHO_C" >&6
8717 if test "${ac_cv_lib_m_nextafter+set}" = set; then
8718   echo $ECHO_N "(cached) $ECHO_C" >&6
8719 else
8720   ac_check_lib_save_LIBS=$LIBS
8721 LIBS="-lm  $LIBS"
8722 cat >conftest.$ac_ext <<_ACEOF
8723 /* confdefs.h.  */
8724 _ACEOF
8725 cat confdefs.h >>conftest.$ac_ext
8726 cat >>conftest.$ac_ext <<_ACEOF
8727 /* end confdefs.h.  */
8728
8729 /* Override any gcc2 internal prototype to avoid an error.  */
8730 #ifdef __cplusplus
8731 extern "C"
8732 #endif
8733 /* We use char because int might match the return type of a gcc2
8734    builtin and then its argument prototype would still apply.  */
8735 char nextafter ();
8736 int
8737 main ()
8738 {
8739 nextafter ();
8740   ;
8741   return 0;
8742 }
8743 _ACEOF
8744 rm -f conftest.$ac_objext conftest$ac_exeext
8745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8746   (eval $ac_link) 2>conftest.er1
8747   ac_status=$?
8748   grep -v '^ *+' conftest.er1 >conftest.err
8749   rm -f conftest.er1
8750   cat conftest.err >&5
8751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752   (exit $ac_status); } &&
8753          { ac_try='test -z "$ac_c_werror_flag"
8754                          || test ! -s conftest.err'
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); }; } &&
8760          { ac_try='test -s conftest$ac_exeext'
8761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8762   (eval $ac_try) 2>&5
8763   ac_status=$?
8764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765   (exit $ac_status); }; }; then
8766   ac_cv_lib_m_nextafter=yes
8767 else
8768   echo "$as_me: failed program was:" >&5
8769 sed 's/^/| /' conftest.$ac_ext >&5
8770
8771 ac_cv_lib_m_nextafter=no
8772 fi
8773 rm -f conftest.err conftest.$ac_objext \
8774       conftest$ac_exeext conftest.$ac_ext
8775 LIBS=$ac_check_lib_save_LIBS
8776 fi
8777 echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafter" >&5
8778 echo "${ECHO_T}$ac_cv_lib_m_nextafter" >&6
8779 if test $ac_cv_lib_m_nextafter = yes; then
8780
8781 cat >>confdefs.h <<\_ACEOF
8782 #define HAVE_NEXTAFTER 1
8783 _ACEOF
8784
8785 fi
8786
8787 echo "$as_me:$LINENO: checking for nextafterf in -lm" >&5
8788 echo $ECHO_N "checking for nextafterf in -lm... $ECHO_C" >&6
8789 if test "${ac_cv_lib_m_nextafterf+set}" = set; then
8790   echo $ECHO_N "(cached) $ECHO_C" >&6
8791 else
8792   ac_check_lib_save_LIBS=$LIBS
8793 LIBS="-lm  $LIBS"
8794 cat >conftest.$ac_ext <<_ACEOF
8795 /* confdefs.h.  */
8796 _ACEOF
8797 cat confdefs.h >>conftest.$ac_ext
8798 cat >>conftest.$ac_ext <<_ACEOF
8799 /* end confdefs.h.  */
8800
8801 /* Override any gcc2 internal prototype to avoid an error.  */
8802 #ifdef __cplusplus
8803 extern "C"
8804 #endif
8805 /* We use char because int might match the return type of a gcc2
8806    builtin and then its argument prototype would still apply.  */
8807 char nextafterf ();
8808 int
8809 main ()
8810 {
8811 nextafterf ();
8812   ;
8813   return 0;
8814 }
8815 _ACEOF
8816 rm -f conftest.$ac_objext conftest$ac_exeext
8817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8818   (eval $ac_link) 2>conftest.er1
8819   ac_status=$?
8820   grep -v '^ *+' conftest.er1 >conftest.err
8821   rm -f conftest.er1
8822   cat conftest.err >&5
8823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824   (exit $ac_status); } &&
8825          { ac_try='test -z "$ac_c_werror_flag"
8826                          || test ! -s conftest.err'
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); }; } &&
8832          { ac_try='test -s conftest$ac_exeext'
8833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8834   (eval $ac_try) 2>&5
8835   ac_status=$?
8836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837   (exit $ac_status); }; }; then
8838   ac_cv_lib_m_nextafterf=yes
8839 else
8840   echo "$as_me: failed program was:" >&5
8841 sed 's/^/| /' conftest.$ac_ext >&5
8842
8843 ac_cv_lib_m_nextafterf=no
8844 fi
8845 rm -f conftest.err conftest.$ac_objext \
8846       conftest$ac_exeext conftest.$ac_ext
8847 LIBS=$ac_check_lib_save_LIBS
8848 fi
8849 echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafterf" >&5
8850 echo "${ECHO_T}$ac_cv_lib_m_nextafterf" >&6
8851 if test $ac_cv_lib_m_nextafterf = yes; then
8852
8853 cat >>confdefs.h <<\_ACEOF
8854 #define HAVE_NEXTAFTERF 1
8855 _ACEOF
8856
8857 fi
8858
8859 echo "$as_me:$LINENO: checking for powf in -lm" >&5
8860 echo $ECHO_N "checking for powf in -lm... $ECHO_C" >&6
8861 if test "${ac_cv_lib_m_powf+set}" = set; then
8862   echo $ECHO_N "(cached) $ECHO_C" >&6
8863 else
8864   ac_check_lib_save_LIBS=$LIBS
8865 LIBS="-lm  $LIBS"
8866 cat >conftest.$ac_ext <<_ACEOF
8867 /* confdefs.h.  */
8868 _ACEOF
8869 cat confdefs.h >>conftest.$ac_ext
8870 cat >>conftest.$ac_ext <<_ACEOF
8871 /* end confdefs.h.  */
8872
8873 /* Override any gcc2 internal prototype to avoid an error.  */
8874 #ifdef __cplusplus
8875 extern "C"
8876 #endif
8877 /* We use char because int might match the return type of a gcc2
8878    builtin and then its argument prototype would still apply.  */
8879 char powf ();
8880 int
8881 main ()
8882 {
8883 powf ();
8884   ;
8885   return 0;
8886 }
8887 _ACEOF
8888 rm -f conftest.$ac_objext conftest$ac_exeext
8889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8890   (eval $ac_link) 2>conftest.er1
8891   ac_status=$?
8892   grep -v '^ *+' conftest.er1 >conftest.err
8893   rm -f conftest.er1
8894   cat conftest.err >&5
8895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896   (exit $ac_status); } &&
8897          { ac_try='test -z "$ac_c_werror_flag"
8898                          || test ! -s conftest.err'
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); }; } &&
8904          { ac_try='test -s conftest$ac_exeext'
8905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8906   (eval $ac_try) 2>&5
8907   ac_status=$?
8908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909   (exit $ac_status); }; }; then
8910   ac_cv_lib_m_powf=yes
8911 else
8912   echo "$as_me: failed program was:" >&5
8913 sed 's/^/| /' conftest.$ac_ext >&5
8914
8915 ac_cv_lib_m_powf=no
8916 fi
8917 rm -f conftest.err conftest.$ac_objext \
8918       conftest$ac_exeext conftest.$ac_ext
8919 LIBS=$ac_check_lib_save_LIBS
8920 fi
8921 echo "$as_me:$LINENO: result: $ac_cv_lib_m_powf" >&5
8922 echo "${ECHO_T}$ac_cv_lib_m_powf" >&6
8923 if test $ac_cv_lib_m_powf = yes; then
8924
8925 cat >>confdefs.h <<\_ACEOF
8926 #define HAVE_POWF 1
8927 _ACEOF
8928
8929 fi
8930
8931 echo "$as_me:$LINENO: checking for round in -lm" >&5
8932 echo $ECHO_N "checking for round in -lm... $ECHO_C" >&6
8933 if test "${ac_cv_lib_m_round+set}" = set; then
8934   echo $ECHO_N "(cached) $ECHO_C" >&6
8935 else
8936   ac_check_lib_save_LIBS=$LIBS
8937 LIBS="-lm  $LIBS"
8938 cat >conftest.$ac_ext <<_ACEOF
8939 /* confdefs.h.  */
8940 _ACEOF
8941 cat confdefs.h >>conftest.$ac_ext
8942 cat >>conftest.$ac_ext <<_ACEOF
8943 /* end confdefs.h.  */
8944
8945 /* Override any gcc2 internal prototype to avoid an error.  */
8946 #ifdef __cplusplus
8947 extern "C"
8948 #endif
8949 /* We use char because int might match the return type of a gcc2
8950    builtin and then its argument prototype would still apply.  */
8951 char round ();
8952 int
8953 main ()
8954 {
8955 round ();
8956   ;
8957   return 0;
8958 }
8959 _ACEOF
8960 rm -f conftest.$ac_objext conftest$ac_exeext
8961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8962   (eval $ac_link) 2>conftest.er1
8963   ac_status=$?
8964   grep -v '^ *+' conftest.er1 >conftest.err
8965   rm -f conftest.er1
8966   cat conftest.err >&5
8967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968   (exit $ac_status); } &&
8969          { ac_try='test -z "$ac_c_werror_flag"
8970                          || test ! -s conftest.err'
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); }; } &&
8976          { ac_try='test -s conftest$ac_exeext'
8977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8978   (eval $ac_try) 2>&5
8979   ac_status=$?
8980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981   (exit $ac_status); }; }; then
8982   ac_cv_lib_m_round=yes
8983 else
8984   echo "$as_me: failed program was:" >&5
8985 sed 's/^/| /' conftest.$ac_ext >&5
8986
8987 ac_cv_lib_m_round=no
8988 fi
8989 rm -f conftest.err conftest.$ac_objext \
8990       conftest$ac_exeext conftest.$ac_ext
8991 LIBS=$ac_check_lib_save_LIBS
8992 fi
8993 echo "$as_me:$LINENO: result: $ac_cv_lib_m_round" >&5
8994 echo "${ECHO_T}$ac_cv_lib_m_round" >&6
8995 if test $ac_cv_lib_m_round = yes; then
8996
8997 cat >>confdefs.h <<\_ACEOF
8998 #define HAVE_ROUND 1
8999 _ACEOF
9000
9001 fi
9002
9003 echo "$as_me:$LINENO: checking for roundf in -lm" >&5
9004 echo $ECHO_N "checking for roundf in -lm... $ECHO_C" >&6
9005 if test "${ac_cv_lib_m_roundf+set}" = set; then
9006   echo $ECHO_N "(cached) $ECHO_C" >&6
9007 else
9008   ac_check_lib_save_LIBS=$LIBS
9009 LIBS="-lm  $LIBS"
9010 cat >conftest.$ac_ext <<_ACEOF
9011 /* confdefs.h.  */
9012 _ACEOF
9013 cat confdefs.h >>conftest.$ac_ext
9014 cat >>conftest.$ac_ext <<_ACEOF
9015 /* end confdefs.h.  */
9016
9017 /* Override any gcc2 internal prototype to avoid an error.  */
9018 #ifdef __cplusplus
9019 extern "C"
9020 #endif
9021 /* We use char because int might match the return type of a gcc2
9022    builtin and then its argument prototype would still apply.  */
9023 char roundf ();
9024 int
9025 main ()
9026 {
9027 roundf ();
9028   ;
9029   return 0;
9030 }
9031 _ACEOF
9032 rm -f conftest.$ac_objext conftest$ac_exeext
9033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9034   (eval $ac_link) 2>conftest.er1
9035   ac_status=$?
9036   grep -v '^ *+' conftest.er1 >conftest.err
9037   rm -f conftest.er1
9038   cat conftest.err >&5
9039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040   (exit $ac_status); } &&
9041          { ac_try='test -z "$ac_c_werror_flag"
9042                          || test ! -s conftest.err'
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); }; } &&
9048          { ac_try='test -s conftest$ac_exeext'
9049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9050   (eval $ac_try) 2>&5
9051   ac_status=$?
9052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053   (exit $ac_status); }; }; then
9054   ac_cv_lib_m_roundf=yes
9055 else
9056   echo "$as_me: failed program was:" >&5
9057 sed 's/^/| /' conftest.$ac_ext >&5
9058
9059 ac_cv_lib_m_roundf=no
9060 fi
9061 rm -f conftest.err conftest.$ac_objext \
9062       conftest$ac_exeext conftest.$ac_ext
9063 LIBS=$ac_check_lib_save_LIBS
9064 fi
9065 echo "$as_me:$LINENO: result: $ac_cv_lib_m_roundf" >&5
9066 echo "${ECHO_T}$ac_cv_lib_m_roundf" >&6
9067 if test $ac_cv_lib_m_roundf = yes; then
9068
9069 cat >>confdefs.h <<\_ACEOF
9070 #define HAVE_ROUNDF 1
9071 _ACEOF
9072
9073 fi
9074
9075 echo "$as_me:$LINENO: checking for scalbnf in -lm" >&5
9076 echo $ECHO_N "checking for scalbnf in -lm... $ECHO_C" >&6
9077 if test "${ac_cv_lib_m_scalbnf+set}" = set; then
9078   echo $ECHO_N "(cached) $ECHO_C" >&6
9079 else
9080   ac_check_lib_save_LIBS=$LIBS
9081 LIBS="-lm  $LIBS"
9082 cat >conftest.$ac_ext <<_ACEOF
9083 /* confdefs.h.  */
9084 _ACEOF
9085 cat confdefs.h >>conftest.$ac_ext
9086 cat >>conftest.$ac_ext <<_ACEOF
9087 /* end confdefs.h.  */
9088
9089 /* Override any gcc2 internal prototype to avoid an error.  */
9090 #ifdef __cplusplus
9091 extern "C"
9092 #endif
9093 /* We use char because int might match the return type of a gcc2
9094    builtin and then its argument prototype would still apply.  */
9095 char scalbnf ();
9096 int
9097 main ()
9098 {
9099 scalbnf ();
9100   ;
9101   return 0;
9102 }
9103 _ACEOF
9104 rm -f conftest.$ac_objext conftest$ac_exeext
9105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9106   (eval $ac_link) 2>conftest.er1
9107   ac_status=$?
9108   grep -v '^ *+' conftest.er1 >conftest.err
9109   rm -f conftest.er1
9110   cat conftest.err >&5
9111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112   (exit $ac_status); } &&
9113          { ac_try='test -z "$ac_c_werror_flag"
9114                          || test ! -s conftest.err'
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); }; } &&
9120          { ac_try='test -s conftest$ac_exeext'
9121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9122   (eval $ac_try) 2>&5
9123   ac_status=$?
9124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125   (exit $ac_status); }; }; then
9126   ac_cv_lib_m_scalbnf=yes
9127 else
9128   echo "$as_me: failed program was:" >&5
9129 sed 's/^/| /' conftest.$ac_ext >&5
9130
9131 ac_cv_lib_m_scalbnf=no
9132 fi
9133 rm -f conftest.err conftest.$ac_objext \
9134       conftest$ac_exeext conftest.$ac_ext
9135 LIBS=$ac_check_lib_save_LIBS
9136 fi
9137 echo "$as_me:$LINENO: result: $ac_cv_lib_m_scalbnf" >&5
9138 echo "${ECHO_T}$ac_cv_lib_m_scalbnf" >&6
9139 if test $ac_cv_lib_m_scalbnf = yes; then
9140
9141 cat >>confdefs.h <<\_ACEOF
9142 #define HAVE_SCALBNF 1
9143 _ACEOF
9144
9145 fi
9146
9147 echo "$as_me:$LINENO: checking for sinf in -lm" >&5
9148 echo $ECHO_N "checking for sinf in -lm... $ECHO_C" >&6
9149 if test "${ac_cv_lib_m_sinf+set}" = set; then
9150   echo $ECHO_N "(cached) $ECHO_C" >&6
9151 else
9152   ac_check_lib_save_LIBS=$LIBS
9153 LIBS="-lm  $LIBS"
9154 cat >conftest.$ac_ext <<_ACEOF
9155 /* confdefs.h.  */
9156 _ACEOF
9157 cat confdefs.h >>conftest.$ac_ext
9158 cat >>conftest.$ac_ext <<_ACEOF
9159 /* end confdefs.h.  */
9160
9161 /* Override any gcc2 internal prototype to avoid an error.  */
9162 #ifdef __cplusplus
9163 extern "C"
9164 #endif
9165 /* We use char because int might match the return type of a gcc2
9166    builtin and then its argument prototype would still apply.  */
9167 char sinf ();
9168 int
9169 main ()
9170 {
9171 sinf ();
9172   ;
9173   return 0;
9174 }
9175 _ACEOF
9176 rm -f conftest.$ac_objext conftest$ac_exeext
9177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9178   (eval $ac_link) 2>conftest.er1
9179   ac_status=$?
9180   grep -v '^ *+' conftest.er1 >conftest.err
9181   rm -f conftest.er1
9182   cat conftest.err >&5
9183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184   (exit $ac_status); } &&
9185          { ac_try='test -z "$ac_c_werror_flag"
9186                          || test ! -s conftest.err'
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); }; } &&
9192          { ac_try='test -s conftest$ac_exeext'
9193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9194   (eval $ac_try) 2>&5
9195   ac_status=$?
9196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197   (exit $ac_status); }; }; then
9198   ac_cv_lib_m_sinf=yes
9199 else
9200   echo "$as_me: failed program was:" >&5
9201 sed 's/^/| /' conftest.$ac_ext >&5
9202
9203 ac_cv_lib_m_sinf=no
9204 fi
9205 rm -f conftest.err conftest.$ac_objext \
9206       conftest$ac_exeext conftest.$ac_ext
9207 LIBS=$ac_check_lib_save_LIBS
9208 fi
9209 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinf" >&5
9210 echo "${ECHO_T}$ac_cv_lib_m_sinf" >&6
9211 if test $ac_cv_lib_m_sinf = yes; then
9212
9213 cat >>confdefs.h <<\_ACEOF
9214 #define HAVE_SINF 1
9215 _ACEOF
9216
9217 fi
9218
9219 echo "$as_me:$LINENO: checking for sinhf in -lm" >&5
9220 echo $ECHO_N "checking for sinhf in -lm... $ECHO_C" >&6
9221 if test "${ac_cv_lib_m_sinhf+set}" = set; then
9222   echo $ECHO_N "(cached) $ECHO_C" >&6
9223 else
9224   ac_check_lib_save_LIBS=$LIBS
9225 LIBS="-lm  $LIBS"
9226 cat >conftest.$ac_ext <<_ACEOF
9227 /* confdefs.h.  */
9228 _ACEOF
9229 cat confdefs.h >>conftest.$ac_ext
9230 cat >>conftest.$ac_ext <<_ACEOF
9231 /* end confdefs.h.  */
9232
9233 /* Override any gcc2 internal prototype to avoid an error.  */
9234 #ifdef __cplusplus
9235 extern "C"
9236 #endif
9237 /* We use char because int might match the return type of a gcc2
9238    builtin and then its argument prototype would still apply.  */
9239 char sinhf ();
9240 int
9241 main ()
9242 {
9243 sinhf ();
9244   ;
9245   return 0;
9246 }
9247 _ACEOF
9248 rm -f conftest.$ac_objext conftest$ac_exeext
9249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9250   (eval $ac_link) 2>conftest.er1
9251   ac_status=$?
9252   grep -v '^ *+' conftest.er1 >conftest.err
9253   rm -f conftest.er1
9254   cat conftest.err >&5
9255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256   (exit $ac_status); } &&
9257          { ac_try='test -z "$ac_c_werror_flag"
9258                          || test ! -s conftest.err'
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); }; } &&
9264          { ac_try='test -s conftest$ac_exeext'
9265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9266   (eval $ac_try) 2>&5
9267   ac_status=$?
9268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269   (exit $ac_status); }; }; then
9270   ac_cv_lib_m_sinhf=yes
9271 else
9272   echo "$as_me: failed program was:" >&5
9273 sed 's/^/| /' conftest.$ac_ext >&5
9274
9275 ac_cv_lib_m_sinhf=no
9276 fi
9277 rm -f conftest.err conftest.$ac_objext \
9278       conftest$ac_exeext conftest.$ac_ext
9279 LIBS=$ac_check_lib_save_LIBS
9280 fi
9281 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinhf" >&5
9282 echo "${ECHO_T}$ac_cv_lib_m_sinhf" >&6
9283 if test $ac_cv_lib_m_sinhf = yes; then
9284
9285 cat >>confdefs.h <<\_ACEOF
9286 #define HAVE_SINHF 1
9287 _ACEOF
9288
9289 fi
9290
9291 echo "$as_me:$LINENO: checking for sqrtf in -lm" >&5
9292 echo $ECHO_N "checking for sqrtf in -lm... $ECHO_C" >&6
9293 if test "${ac_cv_lib_m_sqrtf+set}" = set; then
9294   echo $ECHO_N "(cached) $ECHO_C" >&6
9295 else
9296   ac_check_lib_save_LIBS=$LIBS
9297 LIBS="-lm  $LIBS"
9298 cat >conftest.$ac_ext <<_ACEOF
9299 /* confdefs.h.  */
9300 _ACEOF
9301 cat confdefs.h >>conftest.$ac_ext
9302 cat >>conftest.$ac_ext <<_ACEOF
9303 /* end confdefs.h.  */
9304
9305 /* Override any gcc2 internal prototype to avoid an error.  */
9306 #ifdef __cplusplus
9307 extern "C"
9308 #endif
9309 /* We use char because int might match the return type of a gcc2
9310    builtin and then its argument prototype would still apply.  */
9311 char sqrtf ();
9312 int
9313 main ()
9314 {
9315 sqrtf ();
9316   ;
9317   return 0;
9318 }
9319 _ACEOF
9320 rm -f conftest.$ac_objext conftest$ac_exeext
9321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9322   (eval $ac_link) 2>conftest.er1
9323   ac_status=$?
9324   grep -v '^ *+' conftest.er1 >conftest.err
9325   rm -f conftest.er1
9326   cat conftest.err >&5
9327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328   (exit $ac_status); } &&
9329          { ac_try='test -z "$ac_c_werror_flag"
9330                          || test ! -s conftest.err'
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); }; } &&
9336          { ac_try='test -s conftest$ac_exeext'
9337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9338   (eval $ac_try) 2>&5
9339   ac_status=$?
9340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341   (exit $ac_status); }; }; then
9342   ac_cv_lib_m_sqrtf=yes
9343 else
9344   echo "$as_me: failed program was:" >&5
9345 sed 's/^/| /' conftest.$ac_ext >&5
9346
9347 ac_cv_lib_m_sqrtf=no
9348 fi
9349 rm -f conftest.err conftest.$ac_objext \
9350       conftest$ac_exeext conftest.$ac_ext
9351 LIBS=$ac_check_lib_save_LIBS
9352 fi
9353 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrtf" >&5
9354 echo "${ECHO_T}$ac_cv_lib_m_sqrtf" >&6
9355 if test $ac_cv_lib_m_sqrtf = yes; then
9356
9357 cat >>confdefs.h <<\_ACEOF
9358 #define HAVE_SQRTF 1
9359 _ACEOF
9360
9361 fi
9362
9363 echo "$as_me:$LINENO: checking for tanf in -lm" >&5
9364 echo $ECHO_N "checking for tanf in -lm... $ECHO_C" >&6
9365 if test "${ac_cv_lib_m_tanf+set}" = set; then
9366   echo $ECHO_N "(cached) $ECHO_C" >&6
9367 else
9368   ac_check_lib_save_LIBS=$LIBS
9369 LIBS="-lm  $LIBS"
9370 cat >conftest.$ac_ext <<_ACEOF
9371 /* confdefs.h.  */
9372 _ACEOF
9373 cat confdefs.h >>conftest.$ac_ext
9374 cat >>conftest.$ac_ext <<_ACEOF
9375 /* end confdefs.h.  */
9376
9377 /* Override any gcc2 internal prototype to avoid an error.  */
9378 #ifdef __cplusplus
9379 extern "C"
9380 #endif
9381 /* We use char because int might match the return type of a gcc2
9382    builtin and then its argument prototype would still apply.  */
9383 char tanf ();
9384 int
9385 main ()
9386 {
9387 tanf ();
9388   ;
9389   return 0;
9390 }
9391 _ACEOF
9392 rm -f conftest.$ac_objext conftest$ac_exeext
9393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9394   (eval $ac_link) 2>conftest.er1
9395   ac_status=$?
9396   grep -v '^ *+' conftest.er1 >conftest.err
9397   rm -f conftest.er1
9398   cat conftest.err >&5
9399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400   (exit $ac_status); } &&
9401          { ac_try='test -z "$ac_c_werror_flag"
9402                          || test ! -s conftest.err'
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); }; } &&
9408          { ac_try='test -s conftest$ac_exeext'
9409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9410   (eval $ac_try) 2>&5
9411   ac_status=$?
9412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413   (exit $ac_status); }; }; then
9414   ac_cv_lib_m_tanf=yes
9415 else
9416   echo "$as_me: failed program was:" >&5
9417 sed 's/^/| /' conftest.$ac_ext >&5
9418
9419 ac_cv_lib_m_tanf=no
9420 fi
9421 rm -f conftest.err conftest.$ac_objext \
9422       conftest$ac_exeext conftest.$ac_ext
9423 LIBS=$ac_check_lib_save_LIBS
9424 fi
9425 echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanf" >&5
9426 echo "${ECHO_T}$ac_cv_lib_m_tanf" >&6
9427 if test $ac_cv_lib_m_tanf = yes; then
9428
9429 cat >>confdefs.h <<\_ACEOF
9430 #define HAVE_TANF 1
9431 _ACEOF
9432
9433 fi
9434
9435 echo "$as_me:$LINENO: checking for tanhf in -lm" >&5
9436 echo $ECHO_N "checking for tanhf in -lm... $ECHO_C" >&6
9437 if test "${ac_cv_lib_m_tanhf+set}" = set; then
9438   echo $ECHO_N "(cached) $ECHO_C" >&6
9439 else
9440   ac_check_lib_save_LIBS=$LIBS
9441 LIBS="-lm  $LIBS"
9442 cat >conftest.$ac_ext <<_ACEOF
9443 /* confdefs.h.  */
9444 _ACEOF
9445 cat confdefs.h >>conftest.$ac_ext
9446 cat >>conftest.$ac_ext <<_ACEOF
9447 /* end confdefs.h.  */
9448
9449 /* Override any gcc2 internal prototype to avoid an error.  */
9450 #ifdef __cplusplus
9451 extern "C"
9452 #endif
9453 /* We use char because int might match the return type of a gcc2
9454    builtin and then its argument prototype would still apply.  */
9455 char tanhf ();
9456 int
9457 main ()
9458 {
9459 tanhf ();
9460   ;
9461   return 0;
9462 }
9463 _ACEOF
9464 rm -f conftest.$ac_objext conftest$ac_exeext
9465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9466   (eval $ac_link) 2>conftest.er1
9467   ac_status=$?
9468   grep -v '^ *+' conftest.er1 >conftest.err
9469   rm -f conftest.er1
9470   cat conftest.err >&5
9471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472   (exit $ac_status); } &&
9473          { ac_try='test -z "$ac_c_werror_flag"
9474                          || test ! -s conftest.err'
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); }; } &&
9480          { ac_try='test -s conftest$ac_exeext'
9481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9482   (eval $ac_try) 2>&5
9483   ac_status=$?
9484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485   (exit $ac_status); }; }; then
9486   ac_cv_lib_m_tanhf=yes
9487 else
9488   echo "$as_me: failed program was:" >&5
9489 sed 's/^/| /' conftest.$ac_ext >&5
9490
9491 ac_cv_lib_m_tanhf=no
9492 fi
9493 rm -f conftest.err conftest.$ac_objext \
9494       conftest$ac_exeext conftest.$ac_ext
9495 LIBS=$ac_check_lib_save_LIBS
9496 fi
9497 echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanhf" >&5
9498 echo "${ECHO_T}$ac_cv_lib_m_tanhf" >&6
9499 if test $ac_cv_lib_m_tanhf = yes; then
9500
9501 cat >>confdefs.h <<\_ACEOF
9502 #define HAVE_TANHF 1
9503 _ACEOF
9504
9505 fi
9506
9507 echo "$as_me:$LINENO: checking for erf in -lm" >&5
9508 echo $ECHO_N "checking for erf in -lm... $ECHO_C" >&6
9509 if test "${ac_cv_lib_m_erf+set}" = set; then
9510   echo $ECHO_N "(cached) $ECHO_C" >&6
9511 else
9512   ac_check_lib_save_LIBS=$LIBS
9513 LIBS="-lm  $LIBS"
9514 cat >conftest.$ac_ext <<_ACEOF
9515 /* confdefs.h.  */
9516 _ACEOF
9517 cat confdefs.h >>conftest.$ac_ext
9518 cat >>conftest.$ac_ext <<_ACEOF
9519 /* end confdefs.h.  */
9520
9521 /* Override any gcc2 internal prototype to avoid an error.  */
9522 #ifdef __cplusplus
9523 extern "C"
9524 #endif
9525 /* We use char because int might match the return type of a gcc2
9526    builtin and then its argument prototype would still apply.  */
9527 char erf ();
9528 int
9529 main ()
9530 {
9531 erf ();
9532   ;
9533   return 0;
9534 }
9535 _ACEOF
9536 rm -f conftest.$ac_objext conftest$ac_exeext
9537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9538   (eval $ac_link) 2>conftest.er1
9539   ac_status=$?
9540   grep -v '^ *+' conftest.er1 >conftest.err
9541   rm -f conftest.er1
9542   cat conftest.err >&5
9543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544   (exit $ac_status); } &&
9545          { ac_try='test -z "$ac_c_werror_flag"
9546                          || test ! -s conftest.err'
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); }; } &&
9552          { ac_try='test -s conftest$ac_exeext'
9553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9554   (eval $ac_try) 2>&5
9555   ac_status=$?
9556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557   (exit $ac_status); }; }; then
9558   ac_cv_lib_m_erf=yes
9559 else
9560   echo "$as_me: failed program was:" >&5
9561 sed 's/^/| /' conftest.$ac_ext >&5
9562
9563 ac_cv_lib_m_erf=no
9564 fi
9565 rm -f conftest.err conftest.$ac_objext \
9566       conftest$ac_exeext conftest.$ac_ext
9567 LIBS=$ac_check_lib_save_LIBS
9568 fi
9569 echo "$as_me:$LINENO: result: $ac_cv_lib_m_erf" >&5
9570 echo "${ECHO_T}$ac_cv_lib_m_erf" >&6
9571 if test $ac_cv_lib_m_erf = yes; then
9572
9573 cat >>confdefs.h <<\_ACEOF
9574 #define HAVE_ERF 1
9575 _ACEOF
9576
9577 fi
9578
9579 echo "$as_me:$LINENO: checking for erfc in -lm" >&5
9580 echo $ECHO_N "checking for erfc in -lm... $ECHO_C" >&6
9581 if test "${ac_cv_lib_m_erfc+set}" = set; then
9582   echo $ECHO_N "(cached) $ECHO_C" >&6
9583 else
9584   ac_check_lib_save_LIBS=$LIBS
9585 LIBS="-lm  $LIBS"
9586 cat >conftest.$ac_ext <<_ACEOF
9587 /* confdefs.h.  */
9588 _ACEOF
9589 cat confdefs.h >>conftest.$ac_ext
9590 cat >>conftest.$ac_ext <<_ACEOF
9591 /* end confdefs.h.  */
9592
9593 /* Override any gcc2 internal prototype to avoid an error.  */
9594 #ifdef __cplusplus
9595 extern "C"
9596 #endif
9597 /* We use char because int might match the return type of a gcc2
9598    builtin and then its argument prototype would still apply.  */
9599 char erfc ();
9600 int
9601 main ()
9602 {
9603 erfc ();
9604   ;
9605   return 0;
9606 }
9607 _ACEOF
9608 rm -f conftest.$ac_objext conftest$ac_exeext
9609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9610   (eval $ac_link) 2>conftest.er1
9611   ac_status=$?
9612   grep -v '^ *+' conftest.er1 >conftest.err
9613   rm -f conftest.er1
9614   cat conftest.err >&5
9615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616   (exit $ac_status); } &&
9617          { ac_try='test -z "$ac_c_werror_flag"
9618                          || test ! -s conftest.err'
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); }; } &&
9624          { ac_try='test -s conftest$ac_exeext'
9625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9626   (eval $ac_try) 2>&5
9627   ac_status=$?
9628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629   (exit $ac_status); }; }; then
9630   ac_cv_lib_m_erfc=yes
9631 else
9632   echo "$as_me: failed program was:" >&5
9633 sed 's/^/| /' conftest.$ac_ext >&5
9634
9635 ac_cv_lib_m_erfc=no
9636 fi
9637 rm -f conftest.err conftest.$ac_objext \
9638       conftest$ac_exeext conftest.$ac_ext
9639 LIBS=$ac_check_lib_save_LIBS
9640 fi
9641 echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfc" >&5
9642 echo "${ECHO_T}$ac_cv_lib_m_erfc" >&6
9643 if test $ac_cv_lib_m_erfc = yes; then
9644
9645 cat >>confdefs.h <<\_ACEOF
9646 #define HAVE_ERFC 1
9647 _ACEOF
9648
9649 fi
9650
9651 echo "$as_me:$LINENO: checking for erfcf in -lm" >&5
9652 echo $ECHO_N "checking for erfcf in -lm... $ECHO_C" >&6
9653 if test "${ac_cv_lib_m_erfcf+set}" = set; then
9654   echo $ECHO_N "(cached) $ECHO_C" >&6
9655 else
9656   ac_check_lib_save_LIBS=$LIBS
9657 LIBS="-lm  $LIBS"
9658 cat >conftest.$ac_ext <<_ACEOF
9659 /* confdefs.h.  */
9660 _ACEOF
9661 cat confdefs.h >>conftest.$ac_ext
9662 cat >>conftest.$ac_ext <<_ACEOF
9663 /* end confdefs.h.  */
9664
9665 /* Override any gcc2 internal prototype to avoid an error.  */
9666 #ifdef __cplusplus
9667 extern "C"
9668 #endif
9669 /* We use char because int might match the return type of a gcc2
9670    builtin and then its argument prototype would still apply.  */
9671 char erfcf ();
9672 int
9673 main ()
9674 {
9675 erfcf ();
9676   ;
9677   return 0;
9678 }
9679 _ACEOF
9680 rm -f conftest.$ac_objext conftest$ac_exeext
9681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9682   (eval $ac_link) 2>conftest.er1
9683   ac_status=$?
9684   grep -v '^ *+' conftest.er1 >conftest.err
9685   rm -f conftest.er1
9686   cat conftest.err >&5
9687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688   (exit $ac_status); } &&
9689          { ac_try='test -z "$ac_c_werror_flag"
9690                          || test ! -s conftest.err'
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); }; } &&
9696          { ac_try='test -s conftest$ac_exeext'
9697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9698   (eval $ac_try) 2>&5
9699   ac_status=$?
9700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701   (exit $ac_status); }; }; then
9702   ac_cv_lib_m_erfcf=yes
9703 else
9704   echo "$as_me: failed program was:" >&5
9705 sed 's/^/| /' conftest.$ac_ext >&5
9706
9707 ac_cv_lib_m_erfcf=no
9708 fi
9709 rm -f conftest.err conftest.$ac_objext \
9710       conftest$ac_exeext conftest.$ac_ext
9711 LIBS=$ac_check_lib_save_LIBS
9712 fi
9713 echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfcf" >&5
9714 echo "${ECHO_T}$ac_cv_lib_m_erfcf" >&6
9715 if test $ac_cv_lib_m_erfcf = yes; then
9716
9717 cat >>confdefs.h <<\_ACEOF
9718 #define HAVE_ERFCF 1
9719 _ACEOF
9720
9721 fi
9722
9723 echo "$as_me:$LINENO: checking for erff in -lm" >&5
9724 echo $ECHO_N "checking for erff in -lm... $ECHO_C" >&6
9725 if test "${ac_cv_lib_m_erff+set}" = set; then
9726   echo $ECHO_N "(cached) $ECHO_C" >&6
9727 else
9728   ac_check_lib_save_LIBS=$LIBS
9729 LIBS="-lm  $LIBS"
9730 cat >conftest.$ac_ext <<_ACEOF
9731 /* confdefs.h.  */
9732 _ACEOF
9733 cat confdefs.h >>conftest.$ac_ext
9734 cat >>conftest.$ac_ext <<_ACEOF
9735 /* end confdefs.h.  */
9736
9737 /* Override any gcc2 internal prototype to avoid an error.  */
9738 #ifdef __cplusplus
9739 extern "C"
9740 #endif
9741 /* We use char because int might match the return type of a gcc2
9742    builtin and then its argument prototype would still apply.  */
9743 char erff ();
9744 int
9745 main ()
9746 {
9747 erff ();
9748   ;
9749   return 0;
9750 }
9751 _ACEOF
9752 rm -f conftest.$ac_objext conftest$ac_exeext
9753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9754   (eval $ac_link) 2>conftest.er1
9755   ac_status=$?
9756   grep -v '^ *+' conftest.er1 >conftest.err
9757   rm -f conftest.er1
9758   cat conftest.err >&5
9759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760   (exit $ac_status); } &&
9761          { ac_try='test -z "$ac_c_werror_flag"
9762                          || test ! -s conftest.err'
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); }; } &&
9768          { ac_try='test -s conftest$ac_exeext'
9769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9770   (eval $ac_try) 2>&5
9771   ac_status=$?
9772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773   (exit $ac_status); }; }; then
9774   ac_cv_lib_m_erff=yes
9775 else
9776   echo "$as_me: failed program was:" >&5
9777 sed 's/^/| /' conftest.$ac_ext >&5
9778
9779 ac_cv_lib_m_erff=no
9780 fi
9781 rm -f conftest.err conftest.$ac_objext \
9782       conftest$ac_exeext conftest.$ac_ext
9783 LIBS=$ac_check_lib_save_LIBS
9784 fi
9785 echo "$as_me:$LINENO: result: $ac_cv_lib_m_erff" >&5
9786 echo "${ECHO_T}$ac_cv_lib_m_erff" >&6
9787 if test $ac_cv_lib_m_erff = yes; then
9788
9789 cat >>confdefs.h <<\_ACEOF
9790 #define HAVE_ERFF 1
9791 _ACEOF
9792
9793 fi
9794
9795 echo "$as_me:$LINENO: checking for j0 in -lm" >&5
9796 echo $ECHO_N "checking for j0 in -lm... $ECHO_C" >&6
9797 if test "${ac_cv_lib_m_j0+set}" = set; then
9798   echo $ECHO_N "(cached) $ECHO_C" >&6
9799 else
9800   ac_check_lib_save_LIBS=$LIBS
9801 LIBS="-lm  $LIBS"
9802 cat >conftest.$ac_ext <<_ACEOF
9803 /* confdefs.h.  */
9804 _ACEOF
9805 cat confdefs.h >>conftest.$ac_ext
9806 cat >>conftest.$ac_ext <<_ACEOF
9807 /* end confdefs.h.  */
9808
9809 /* Override any gcc2 internal prototype to avoid an error.  */
9810 #ifdef __cplusplus
9811 extern "C"
9812 #endif
9813 /* We use char because int might match the return type of a gcc2
9814    builtin and then its argument prototype would still apply.  */
9815 char j0 ();
9816 int
9817 main ()
9818 {
9819 j0 ();
9820   ;
9821   return 0;
9822 }
9823 _ACEOF
9824 rm -f conftest.$ac_objext conftest$ac_exeext
9825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9826   (eval $ac_link) 2>conftest.er1
9827   ac_status=$?
9828   grep -v '^ *+' conftest.er1 >conftest.err
9829   rm -f conftest.er1
9830   cat conftest.err >&5
9831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832   (exit $ac_status); } &&
9833          { ac_try='test -z "$ac_c_werror_flag"
9834                          || test ! -s conftest.err'
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); }; } &&
9840          { ac_try='test -s conftest$ac_exeext'
9841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9842   (eval $ac_try) 2>&5
9843   ac_status=$?
9844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845   (exit $ac_status); }; }; then
9846   ac_cv_lib_m_j0=yes
9847 else
9848   echo "$as_me: failed program was:" >&5
9849 sed 's/^/| /' conftest.$ac_ext >&5
9850
9851 ac_cv_lib_m_j0=no
9852 fi
9853 rm -f conftest.err conftest.$ac_objext \
9854       conftest$ac_exeext conftest.$ac_ext
9855 LIBS=$ac_check_lib_save_LIBS
9856 fi
9857 echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0" >&5
9858 echo "${ECHO_T}$ac_cv_lib_m_j0" >&6
9859 if test $ac_cv_lib_m_j0 = yes; then
9860
9861 cat >>confdefs.h <<\_ACEOF
9862 #define HAVE_J0 1
9863 _ACEOF
9864
9865 fi
9866
9867 echo "$as_me:$LINENO: checking for j0f in -lm" >&5
9868 echo $ECHO_N "checking for j0f in -lm... $ECHO_C" >&6
9869 if test "${ac_cv_lib_m_j0f+set}" = set; then
9870   echo $ECHO_N "(cached) $ECHO_C" >&6
9871 else
9872   ac_check_lib_save_LIBS=$LIBS
9873 LIBS="-lm  $LIBS"
9874 cat >conftest.$ac_ext <<_ACEOF
9875 /* confdefs.h.  */
9876 _ACEOF
9877 cat confdefs.h >>conftest.$ac_ext
9878 cat >>conftest.$ac_ext <<_ACEOF
9879 /* end confdefs.h.  */
9880
9881 /* Override any gcc2 internal prototype to avoid an error.  */
9882 #ifdef __cplusplus
9883 extern "C"
9884 #endif
9885 /* We use char because int might match the return type of a gcc2
9886    builtin and then its argument prototype would still apply.  */
9887 char j0f ();
9888 int
9889 main ()
9890 {
9891 j0f ();
9892   ;
9893   return 0;
9894 }
9895 _ACEOF
9896 rm -f conftest.$ac_objext conftest$ac_exeext
9897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9898   (eval $ac_link) 2>conftest.er1
9899   ac_status=$?
9900   grep -v '^ *+' conftest.er1 >conftest.err
9901   rm -f conftest.er1
9902   cat conftest.err >&5
9903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904   (exit $ac_status); } &&
9905          { ac_try='test -z "$ac_c_werror_flag"
9906                          || test ! -s conftest.err'
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); }; } &&
9912          { ac_try='test -s conftest$ac_exeext'
9913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9914   (eval $ac_try) 2>&5
9915   ac_status=$?
9916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917   (exit $ac_status); }; }; then
9918   ac_cv_lib_m_j0f=yes
9919 else
9920   echo "$as_me: failed program was:" >&5
9921 sed 's/^/| /' conftest.$ac_ext >&5
9922
9923 ac_cv_lib_m_j0f=no
9924 fi
9925 rm -f conftest.err conftest.$ac_objext \
9926       conftest$ac_exeext conftest.$ac_ext
9927 LIBS=$ac_check_lib_save_LIBS
9928 fi
9929 echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0f" >&5
9930 echo "${ECHO_T}$ac_cv_lib_m_j0f" >&6
9931 if test $ac_cv_lib_m_j0f = yes; then
9932
9933 cat >>confdefs.h <<\_ACEOF
9934 #define HAVE_J0F 1
9935 _ACEOF
9936
9937 fi
9938
9939 echo "$as_me:$LINENO: checking for j1 in -lm" >&5
9940 echo $ECHO_N "checking for j1 in -lm... $ECHO_C" >&6
9941 if test "${ac_cv_lib_m_j1+set}" = set; then
9942   echo $ECHO_N "(cached) $ECHO_C" >&6
9943 else
9944   ac_check_lib_save_LIBS=$LIBS
9945 LIBS="-lm  $LIBS"
9946 cat >conftest.$ac_ext <<_ACEOF
9947 /* confdefs.h.  */
9948 _ACEOF
9949 cat confdefs.h >>conftest.$ac_ext
9950 cat >>conftest.$ac_ext <<_ACEOF
9951 /* end confdefs.h.  */
9952
9953 /* Override any gcc2 internal prototype to avoid an error.  */
9954 #ifdef __cplusplus
9955 extern "C"
9956 #endif
9957 /* We use char because int might match the return type of a gcc2
9958    builtin and then its argument prototype would still apply.  */
9959 char j1 ();
9960 int
9961 main ()
9962 {
9963 j1 ();
9964   ;
9965   return 0;
9966 }
9967 _ACEOF
9968 rm -f conftest.$ac_objext conftest$ac_exeext
9969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9970   (eval $ac_link) 2>conftest.er1
9971   ac_status=$?
9972   grep -v '^ *+' conftest.er1 >conftest.err
9973   rm -f conftest.er1
9974   cat conftest.err >&5
9975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976   (exit $ac_status); } &&
9977          { ac_try='test -z "$ac_c_werror_flag"
9978                          || test ! -s conftest.err'
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); }; } &&
9984          { ac_try='test -s conftest$ac_exeext'
9985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9986   (eval $ac_try) 2>&5
9987   ac_status=$?
9988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989   (exit $ac_status); }; }; then
9990   ac_cv_lib_m_j1=yes
9991 else
9992   echo "$as_me: failed program was:" >&5
9993 sed 's/^/| /' conftest.$ac_ext >&5
9994
9995 ac_cv_lib_m_j1=no
9996 fi
9997 rm -f conftest.err conftest.$ac_objext \
9998       conftest$ac_exeext conftest.$ac_ext
9999 LIBS=$ac_check_lib_save_LIBS
10000 fi
10001 echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1" >&5
10002 echo "${ECHO_T}$ac_cv_lib_m_j1" >&6
10003 if test $ac_cv_lib_m_j1 = yes; then
10004
10005 cat >>confdefs.h <<\_ACEOF
10006 #define HAVE_J1 1
10007 _ACEOF
10008
10009 fi
10010
10011 echo "$as_me:$LINENO: checking for j1f in -lm" >&5
10012 echo $ECHO_N "checking for j1f in -lm... $ECHO_C" >&6
10013 if test "${ac_cv_lib_m_j1f+set}" = set; then
10014   echo $ECHO_N "(cached) $ECHO_C" >&6
10015 else
10016   ac_check_lib_save_LIBS=$LIBS
10017 LIBS="-lm  $LIBS"
10018 cat >conftest.$ac_ext <<_ACEOF
10019 /* confdefs.h.  */
10020 _ACEOF
10021 cat confdefs.h >>conftest.$ac_ext
10022 cat >>conftest.$ac_ext <<_ACEOF
10023 /* end confdefs.h.  */
10024
10025 /* Override any gcc2 internal prototype to avoid an error.  */
10026 #ifdef __cplusplus
10027 extern "C"
10028 #endif
10029 /* We use char because int might match the return type of a gcc2
10030    builtin and then its argument prototype would still apply.  */
10031 char j1f ();
10032 int
10033 main ()
10034 {
10035 j1f ();
10036   ;
10037   return 0;
10038 }
10039 _ACEOF
10040 rm -f conftest.$ac_objext conftest$ac_exeext
10041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10042   (eval $ac_link) 2>conftest.er1
10043   ac_status=$?
10044   grep -v '^ *+' conftest.er1 >conftest.err
10045   rm -f conftest.er1
10046   cat conftest.err >&5
10047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048   (exit $ac_status); } &&
10049          { ac_try='test -z "$ac_c_werror_flag"
10050                          || test ! -s conftest.err'
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); }; } &&
10056          { ac_try='test -s conftest$ac_exeext'
10057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10058   (eval $ac_try) 2>&5
10059   ac_status=$?
10060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061   (exit $ac_status); }; }; then
10062   ac_cv_lib_m_j1f=yes
10063 else
10064   echo "$as_me: failed program was:" >&5
10065 sed 's/^/| /' conftest.$ac_ext >&5
10066
10067 ac_cv_lib_m_j1f=no
10068 fi
10069 rm -f conftest.err conftest.$ac_objext \
10070       conftest$ac_exeext conftest.$ac_ext
10071 LIBS=$ac_check_lib_save_LIBS
10072 fi
10073 echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1f" >&5
10074 echo "${ECHO_T}$ac_cv_lib_m_j1f" >&6
10075 if test $ac_cv_lib_m_j1f = yes; then
10076
10077 cat >>confdefs.h <<\_ACEOF
10078 #define HAVE_J1F 1
10079 _ACEOF
10080
10081 fi
10082
10083 echo "$as_me:$LINENO: checking for jn in -lm" >&5
10084 echo $ECHO_N "checking for jn in -lm... $ECHO_C" >&6
10085 if test "${ac_cv_lib_m_jn+set}" = set; then
10086   echo $ECHO_N "(cached) $ECHO_C" >&6
10087 else
10088   ac_check_lib_save_LIBS=$LIBS
10089 LIBS="-lm  $LIBS"
10090 cat >conftest.$ac_ext <<_ACEOF
10091 /* confdefs.h.  */
10092 _ACEOF
10093 cat confdefs.h >>conftest.$ac_ext
10094 cat >>conftest.$ac_ext <<_ACEOF
10095 /* end confdefs.h.  */
10096
10097 /* Override any gcc2 internal prototype to avoid an error.  */
10098 #ifdef __cplusplus
10099 extern "C"
10100 #endif
10101 /* We use char because int might match the return type of a gcc2
10102    builtin and then its argument prototype would still apply.  */
10103 char jn ();
10104 int
10105 main ()
10106 {
10107 jn ();
10108   ;
10109   return 0;
10110 }
10111 _ACEOF
10112 rm -f conftest.$ac_objext conftest$ac_exeext
10113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10114   (eval $ac_link) 2>conftest.er1
10115   ac_status=$?
10116   grep -v '^ *+' conftest.er1 >conftest.err
10117   rm -f conftest.er1
10118   cat conftest.err >&5
10119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120   (exit $ac_status); } &&
10121          { ac_try='test -z "$ac_c_werror_flag"
10122                          || test ! -s conftest.err'
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); }; } &&
10128          { ac_try='test -s conftest$ac_exeext'
10129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10130   (eval $ac_try) 2>&5
10131   ac_status=$?
10132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133   (exit $ac_status); }; }; then
10134   ac_cv_lib_m_jn=yes
10135 else
10136   echo "$as_me: failed program was:" >&5
10137 sed 's/^/| /' conftest.$ac_ext >&5
10138
10139 ac_cv_lib_m_jn=no
10140 fi
10141 rm -f conftest.err conftest.$ac_objext \
10142       conftest$ac_exeext conftest.$ac_ext
10143 LIBS=$ac_check_lib_save_LIBS
10144 fi
10145 echo "$as_me:$LINENO: result: $ac_cv_lib_m_jn" >&5
10146 echo "${ECHO_T}$ac_cv_lib_m_jn" >&6
10147 if test $ac_cv_lib_m_jn = yes; then
10148
10149 cat >>confdefs.h <<\_ACEOF
10150 #define HAVE_JN 1
10151 _ACEOF
10152
10153 fi
10154
10155 echo "$as_me:$LINENO: checking for jnf in -lm" >&5
10156 echo $ECHO_N "checking for jnf in -lm... $ECHO_C" >&6
10157 if test "${ac_cv_lib_m_jnf+set}" = set; then
10158   echo $ECHO_N "(cached) $ECHO_C" >&6
10159 else
10160   ac_check_lib_save_LIBS=$LIBS
10161 LIBS="-lm  $LIBS"
10162 cat >conftest.$ac_ext <<_ACEOF
10163 /* confdefs.h.  */
10164 _ACEOF
10165 cat confdefs.h >>conftest.$ac_ext
10166 cat >>conftest.$ac_ext <<_ACEOF
10167 /* end confdefs.h.  */
10168
10169 /* Override any gcc2 internal prototype to avoid an error.  */
10170 #ifdef __cplusplus
10171 extern "C"
10172 #endif
10173 /* We use char because int might match the return type of a gcc2
10174    builtin and then its argument prototype would still apply.  */
10175 char jnf ();
10176 int
10177 main ()
10178 {
10179 jnf ();
10180   ;
10181   return 0;
10182 }
10183 _ACEOF
10184 rm -f conftest.$ac_objext conftest$ac_exeext
10185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10186   (eval $ac_link) 2>conftest.er1
10187   ac_status=$?
10188   grep -v '^ *+' conftest.er1 >conftest.err
10189   rm -f conftest.er1
10190   cat conftest.err >&5
10191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192   (exit $ac_status); } &&
10193          { ac_try='test -z "$ac_c_werror_flag"
10194                          || test ! -s conftest.err'
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); }; } &&
10200          { ac_try='test -s conftest$ac_exeext'
10201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10202   (eval $ac_try) 2>&5
10203   ac_status=$?
10204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205   (exit $ac_status); }; }; then
10206   ac_cv_lib_m_jnf=yes
10207 else
10208   echo "$as_me: failed program was:" >&5
10209 sed 's/^/| /' conftest.$ac_ext >&5
10210
10211 ac_cv_lib_m_jnf=no
10212 fi
10213 rm -f conftest.err conftest.$ac_objext \
10214       conftest$ac_exeext conftest.$ac_ext
10215 LIBS=$ac_check_lib_save_LIBS
10216 fi
10217 echo "$as_me:$LINENO: result: $ac_cv_lib_m_jnf" >&5
10218 echo "${ECHO_T}$ac_cv_lib_m_jnf" >&6
10219 if test $ac_cv_lib_m_jnf = yes; then
10220
10221 cat >>confdefs.h <<\_ACEOF
10222 #define HAVE_JNF 1
10223 _ACEOF
10224
10225 fi
10226
10227 echo "$as_me:$LINENO: checking for y0 in -lm" >&5
10228 echo $ECHO_N "checking for y0 in -lm... $ECHO_C" >&6
10229 if test "${ac_cv_lib_m_y0+set}" = set; then
10230   echo $ECHO_N "(cached) $ECHO_C" >&6
10231 else
10232   ac_check_lib_save_LIBS=$LIBS
10233 LIBS="-lm  $LIBS"
10234 cat >conftest.$ac_ext <<_ACEOF
10235 /* confdefs.h.  */
10236 _ACEOF
10237 cat confdefs.h >>conftest.$ac_ext
10238 cat >>conftest.$ac_ext <<_ACEOF
10239 /* end confdefs.h.  */
10240
10241 /* Override any gcc2 internal prototype to avoid an error.  */
10242 #ifdef __cplusplus
10243 extern "C"
10244 #endif
10245 /* We use char because int might match the return type of a gcc2
10246    builtin and then its argument prototype would still apply.  */
10247 char y0 ();
10248 int
10249 main ()
10250 {
10251 y0 ();
10252   ;
10253   return 0;
10254 }
10255 _ACEOF
10256 rm -f conftest.$ac_objext conftest$ac_exeext
10257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10258   (eval $ac_link) 2>conftest.er1
10259   ac_status=$?
10260   grep -v '^ *+' conftest.er1 >conftest.err
10261   rm -f conftest.er1
10262   cat conftest.err >&5
10263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264   (exit $ac_status); } &&
10265          { ac_try='test -z "$ac_c_werror_flag"
10266                          || test ! -s conftest.err'
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); }; } &&
10272          { ac_try='test -s conftest$ac_exeext'
10273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10274   (eval $ac_try) 2>&5
10275   ac_status=$?
10276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277   (exit $ac_status); }; }; then
10278   ac_cv_lib_m_y0=yes
10279 else
10280   echo "$as_me: failed program was:" >&5
10281 sed 's/^/| /' conftest.$ac_ext >&5
10282
10283 ac_cv_lib_m_y0=no
10284 fi
10285 rm -f conftest.err conftest.$ac_objext \
10286       conftest$ac_exeext conftest.$ac_ext
10287 LIBS=$ac_check_lib_save_LIBS
10288 fi
10289 echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0" >&5
10290 echo "${ECHO_T}$ac_cv_lib_m_y0" >&6
10291 if test $ac_cv_lib_m_y0 = yes; then
10292
10293 cat >>confdefs.h <<\_ACEOF
10294 #define HAVE_Y0 1
10295 _ACEOF
10296
10297 fi
10298
10299 echo "$as_me:$LINENO: checking for y0f in -lm" >&5
10300 echo $ECHO_N "checking for y0f in -lm... $ECHO_C" >&6
10301 if test "${ac_cv_lib_m_y0f+set}" = set; then
10302   echo $ECHO_N "(cached) $ECHO_C" >&6
10303 else
10304   ac_check_lib_save_LIBS=$LIBS
10305 LIBS="-lm  $LIBS"
10306 cat >conftest.$ac_ext <<_ACEOF
10307 /* confdefs.h.  */
10308 _ACEOF
10309 cat confdefs.h >>conftest.$ac_ext
10310 cat >>conftest.$ac_ext <<_ACEOF
10311 /* end confdefs.h.  */
10312
10313 /* Override any gcc2 internal prototype to avoid an error.  */
10314 #ifdef __cplusplus
10315 extern "C"
10316 #endif
10317 /* We use char because int might match the return type of a gcc2
10318    builtin and then its argument prototype would still apply.  */
10319 char y0f ();
10320 int
10321 main ()
10322 {
10323 y0f ();
10324   ;
10325   return 0;
10326 }
10327 _ACEOF
10328 rm -f conftest.$ac_objext conftest$ac_exeext
10329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10330   (eval $ac_link) 2>conftest.er1
10331   ac_status=$?
10332   grep -v '^ *+' conftest.er1 >conftest.err
10333   rm -f conftest.er1
10334   cat conftest.err >&5
10335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336   (exit $ac_status); } &&
10337          { ac_try='test -z "$ac_c_werror_flag"
10338                          || test ! -s conftest.err'
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); }; } &&
10344          { ac_try='test -s conftest$ac_exeext'
10345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10346   (eval $ac_try) 2>&5
10347   ac_status=$?
10348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349   (exit $ac_status); }; }; then
10350   ac_cv_lib_m_y0f=yes
10351 else
10352   echo "$as_me: failed program was:" >&5
10353 sed 's/^/| /' conftest.$ac_ext >&5
10354
10355 ac_cv_lib_m_y0f=no
10356 fi
10357 rm -f conftest.err conftest.$ac_objext \
10358       conftest$ac_exeext conftest.$ac_ext
10359 LIBS=$ac_check_lib_save_LIBS
10360 fi
10361 echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0f" >&5
10362 echo "${ECHO_T}$ac_cv_lib_m_y0f" >&6
10363 if test $ac_cv_lib_m_y0f = yes; then
10364
10365 cat >>confdefs.h <<\_ACEOF
10366 #define HAVE_Y0F 1
10367 _ACEOF
10368
10369 fi
10370
10371 echo "$as_me:$LINENO: checking for y1 in -lm" >&5
10372 echo $ECHO_N "checking for y1 in -lm... $ECHO_C" >&6
10373 if test "${ac_cv_lib_m_y1+set}" = set; then
10374   echo $ECHO_N "(cached) $ECHO_C" >&6
10375 else
10376   ac_check_lib_save_LIBS=$LIBS
10377 LIBS="-lm  $LIBS"
10378 cat >conftest.$ac_ext <<_ACEOF
10379 /* confdefs.h.  */
10380 _ACEOF
10381 cat confdefs.h >>conftest.$ac_ext
10382 cat >>conftest.$ac_ext <<_ACEOF
10383 /* end confdefs.h.  */
10384
10385 /* Override any gcc2 internal prototype to avoid an error.  */
10386 #ifdef __cplusplus
10387 extern "C"
10388 #endif
10389 /* We use char because int might match the return type of a gcc2
10390    builtin and then its argument prototype would still apply.  */
10391 char y1 ();
10392 int
10393 main ()
10394 {
10395 y1 ();
10396   ;
10397   return 0;
10398 }
10399 _ACEOF
10400 rm -f conftest.$ac_objext conftest$ac_exeext
10401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10402   (eval $ac_link) 2>conftest.er1
10403   ac_status=$?
10404   grep -v '^ *+' conftest.er1 >conftest.err
10405   rm -f conftest.er1
10406   cat conftest.err >&5
10407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408   (exit $ac_status); } &&
10409          { ac_try='test -z "$ac_c_werror_flag"
10410                          || test ! -s conftest.err'
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); }; } &&
10416          { ac_try='test -s conftest$ac_exeext'
10417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10418   (eval $ac_try) 2>&5
10419   ac_status=$?
10420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421   (exit $ac_status); }; }; then
10422   ac_cv_lib_m_y1=yes
10423 else
10424   echo "$as_me: failed program was:" >&5
10425 sed 's/^/| /' conftest.$ac_ext >&5
10426
10427 ac_cv_lib_m_y1=no
10428 fi
10429 rm -f conftest.err conftest.$ac_objext \
10430       conftest$ac_exeext conftest.$ac_ext
10431 LIBS=$ac_check_lib_save_LIBS
10432 fi
10433 echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1" >&5
10434 echo "${ECHO_T}$ac_cv_lib_m_y1" >&6
10435 if test $ac_cv_lib_m_y1 = yes; then
10436
10437 cat >>confdefs.h <<\_ACEOF
10438 #define HAVE_Y1 1
10439 _ACEOF
10440
10441 fi
10442
10443 echo "$as_me:$LINENO: checking for y1f in -lm" >&5
10444 echo $ECHO_N "checking for y1f in -lm... $ECHO_C" >&6
10445 if test "${ac_cv_lib_m_y1f+set}" = set; then
10446   echo $ECHO_N "(cached) $ECHO_C" >&6
10447 else
10448   ac_check_lib_save_LIBS=$LIBS
10449 LIBS="-lm  $LIBS"
10450 cat >conftest.$ac_ext <<_ACEOF
10451 /* confdefs.h.  */
10452 _ACEOF
10453 cat confdefs.h >>conftest.$ac_ext
10454 cat >>conftest.$ac_ext <<_ACEOF
10455 /* end confdefs.h.  */
10456
10457 /* Override any gcc2 internal prototype to avoid an error.  */
10458 #ifdef __cplusplus
10459 extern "C"
10460 #endif
10461 /* We use char because int might match the return type of a gcc2
10462    builtin and then its argument prototype would still apply.  */
10463 char y1f ();
10464 int
10465 main ()
10466 {
10467 y1f ();
10468   ;
10469   return 0;
10470 }
10471 _ACEOF
10472 rm -f conftest.$ac_objext conftest$ac_exeext
10473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10474   (eval $ac_link) 2>conftest.er1
10475   ac_status=$?
10476   grep -v '^ *+' conftest.er1 >conftest.err
10477   rm -f conftest.er1
10478   cat conftest.err >&5
10479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480   (exit $ac_status); } &&
10481          { ac_try='test -z "$ac_c_werror_flag"
10482                          || test ! -s conftest.err'
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); }; } &&
10488          { ac_try='test -s conftest$ac_exeext'
10489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10490   (eval $ac_try) 2>&5
10491   ac_status=$?
10492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493   (exit $ac_status); }; }; then
10494   ac_cv_lib_m_y1f=yes
10495 else
10496   echo "$as_me: failed program was:" >&5
10497 sed 's/^/| /' conftest.$ac_ext >&5
10498
10499 ac_cv_lib_m_y1f=no
10500 fi
10501 rm -f conftest.err conftest.$ac_objext \
10502       conftest$ac_exeext conftest.$ac_ext
10503 LIBS=$ac_check_lib_save_LIBS
10504 fi
10505 echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1f" >&5
10506 echo "${ECHO_T}$ac_cv_lib_m_y1f" >&6
10507 if test $ac_cv_lib_m_y1f = yes; then
10508
10509 cat >>confdefs.h <<\_ACEOF
10510 #define HAVE_Y1F 1
10511 _ACEOF
10512
10513 fi
10514
10515 echo "$as_me:$LINENO: checking for yn in -lm" >&5
10516 echo $ECHO_N "checking for yn in -lm... $ECHO_C" >&6
10517 if test "${ac_cv_lib_m_yn+set}" = set; then
10518   echo $ECHO_N "(cached) $ECHO_C" >&6
10519 else
10520   ac_check_lib_save_LIBS=$LIBS
10521 LIBS="-lm  $LIBS"
10522 cat >conftest.$ac_ext <<_ACEOF
10523 /* confdefs.h.  */
10524 _ACEOF
10525 cat confdefs.h >>conftest.$ac_ext
10526 cat >>conftest.$ac_ext <<_ACEOF
10527 /* end confdefs.h.  */
10528
10529 /* Override any gcc2 internal prototype to avoid an error.  */
10530 #ifdef __cplusplus
10531 extern "C"
10532 #endif
10533 /* We use char because int might match the return type of a gcc2
10534    builtin and then its argument prototype would still apply.  */
10535 char yn ();
10536 int
10537 main ()
10538 {
10539 yn ();
10540   ;
10541   return 0;
10542 }
10543 _ACEOF
10544 rm -f conftest.$ac_objext conftest$ac_exeext
10545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10546   (eval $ac_link) 2>conftest.er1
10547   ac_status=$?
10548   grep -v '^ *+' conftest.er1 >conftest.err
10549   rm -f conftest.er1
10550   cat conftest.err >&5
10551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552   (exit $ac_status); } &&
10553          { ac_try='test -z "$ac_c_werror_flag"
10554                          || test ! -s conftest.err'
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); }; } &&
10560          { ac_try='test -s conftest$ac_exeext'
10561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10562   (eval $ac_try) 2>&5
10563   ac_status=$?
10564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565   (exit $ac_status); }; }; then
10566   ac_cv_lib_m_yn=yes
10567 else
10568   echo "$as_me: failed program was:" >&5
10569 sed 's/^/| /' conftest.$ac_ext >&5
10570
10571 ac_cv_lib_m_yn=no
10572 fi
10573 rm -f conftest.err conftest.$ac_objext \
10574       conftest$ac_exeext conftest.$ac_ext
10575 LIBS=$ac_check_lib_save_LIBS
10576 fi
10577 echo "$as_me:$LINENO: result: $ac_cv_lib_m_yn" >&5
10578 echo "${ECHO_T}$ac_cv_lib_m_yn" >&6
10579 if test $ac_cv_lib_m_yn = yes; then
10580
10581 cat >>confdefs.h <<\_ACEOF
10582 #define HAVE_YN 1
10583 _ACEOF
10584
10585 fi
10586
10587 echo "$as_me:$LINENO: checking for ynf in -lm" >&5
10588 echo $ECHO_N "checking for ynf in -lm... $ECHO_C" >&6
10589 if test "${ac_cv_lib_m_ynf+set}" = set; then
10590   echo $ECHO_N "(cached) $ECHO_C" >&6
10591 else
10592   ac_check_lib_save_LIBS=$LIBS
10593 LIBS="-lm  $LIBS"
10594 cat >conftest.$ac_ext <<_ACEOF
10595 /* confdefs.h.  */
10596 _ACEOF
10597 cat confdefs.h >>conftest.$ac_ext
10598 cat >>conftest.$ac_ext <<_ACEOF
10599 /* end confdefs.h.  */
10600
10601 /* Override any gcc2 internal prototype to avoid an error.  */
10602 #ifdef __cplusplus
10603 extern "C"
10604 #endif
10605 /* We use char because int might match the return type of a gcc2
10606    builtin and then its argument prototype would still apply.  */
10607 char ynf ();
10608 int
10609 main ()
10610 {
10611 ynf ();
10612   ;
10613   return 0;
10614 }
10615 _ACEOF
10616 rm -f conftest.$ac_objext conftest$ac_exeext
10617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10618   (eval $ac_link) 2>conftest.er1
10619   ac_status=$?
10620   grep -v '^ *+' conftest.er1 >conftest.err
10621   rm -f conftest.er1
10622   cat conftest.err >&5
10623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624   (exit $ac_status); } &&
10625          { ac_try='test -z "$ac_c_werror_flag"
10626                          || test ! -s conftest.err'
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); }; } &&
10632          { ac_try='test -s conftest$ac_exeext'
10633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10634   (eval $ac_try) 2>&5
10635   ac_status=$?
10636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637   (exit $ac_status); }; }; then
10638   ac_cv_lib_m_ynf=yes
10639 else
10640   echo "$as_me: failed program was:" >&5
10641 sed 's/^/| /' conftest.$ac_ext >&5
10642
10643 ac_cv_lib_m_ynf=no
10644 fi
10645 rm -f conftest.err conftest.$ac_objext \
10646       conftest$ac_exeext conftest.$ac_ext
10647 LIBS=$ac_check_lib_save_LIBS
10648 fi
10649 echo "$as_me:$LINENO: result: $ac_cv_lib_m_ynf" >&5
10650 echo "${ECHO_T}$ac_cv_lib_m_ynf" >&6
10651 if test $ac_cv_lib_m_ynf = yes; then
10652
10653 cat >>confdefs.h <<\_ACEOF
10654 #define HAVE_YNF 1
10655 _ACEOF
10656
10657 fi
10658
10659
10660 # Fallback in case isfinite is not available.
10661 echo "$as_me:$LINENO: checking for finite in -lm" >&5
10662 echo $ECHO_N "checking for finite in -lm... $ECHO_C" >&6
10663 if test "${ac_cv_lib_m_finite+set}" = set; then
10664   echo $ECHO_N "(cached) $ECHO_C" >&6
10665 else
10666   ac_check_lib_save_LIBS=$LIBS
10667 LIBS="-lm  $LIBS"
10668 cat >conftest.$ac_ext <<_ACEOF
10669 /* confdefs.h.  */
10670 _ACEOF
10671 cat confdefs.h >>conftest.$ac_ext
10672 cat >>conftest.$ac_ext <<_ACEOF
10673 /* end confdefs.h.  */
10674
10675 /* Override any gcc2 internal prototype to avoid an error.  */
10676 #ifdef __cplusplus
10677 extern "C"
10678 #endif
10679 /* We use char because int might match the return type of a gcc2
10680    builtin and then its argument prototype would still apply.  */
10681 char finite ();
10682 int
10683 main ()
10684 {
10685 finite ();
10686   ;
10687   return 0;
10688 }
10689 _ACEOF
10690 rm -f conftest.$ac_objext conftest$ac_exeext
10691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10692   (eval $ac_link) 2>conftest.er1
10693   ac_status=$?
10694   grep -v '^ *+' conftest.er1 >conftest.err
10695   rm -f conftest.er1
10696   cat conftest.err >&5
10697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698   (exit $ac_status); } &&
10699          { ac_try='test -z "$ac_c_werror_flag"
10700                          || test ! -s conftest.err'
10701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10702   (eval $ac_try) 2>&5
10703   ac_status=$?
10704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705   (exit $ac_status); }; } &&
10706          { ac_try='test -s conftest$ac_exeext'
10707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10708   (eval $ac_try) 2>&5
10709   ac_status=$?
10710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711   (exit $ac_status); }; }; then
10712   ac_cv_lib_m_finite=yes
10713 else
10714   echo "$as_me: failed program was:" >&5
10715 sed 's/^/| /' conftest.$ac_ext >&5
10716
10717 ac_cv_lib_m_finite=no
10718 fi
10719 rm -f conftest.err conftest.$ac_objext \
10720       conftest$ac_exeext conftest.$ac_ext
10721 LIBS=$ac_check_lib_save_LIBS
10722 fi
10723 echo "$as_me:$LINENO: result: $ac_cv_lib_m_finite" >&5
10724 echo "${ECHO_T}$ac_cv_lib_m_finite" >&6
10725 if test $ac_cv_lib_m_finite = yes; then
10726
10727 cat >>confdefs.h <<\_ACEOF
10728 #define HAVE_FINITE 1
10729 _ACEOF
10730
10731 fi
10732
10733
10734 # Let the user override this
10735 # Check whether --enable-cmath or --disable-cmath was given.
10736 if test "${enable_cmath+set}" = set; then
10737   enableval="$enable_cmath"
10738   need_math=$enableval
10739 fi;
10740 if test "$need_math" = "yes"; then
10741         { echo "$as_me:$LINENO: Including complex math functions in libgfor" >&5
10742 echo "$as_me: Including complex math functions in libgfor" >&6;};
10743   extra_math_obj='$(gfor_cmath_obj)'
10744 fi
10745
10746 MATH_OBJ="$extra_math_obj"
10747
10748
10749 # The standard autoconf HAVE_STRUCT_TIMEZONE doesn't actually check
10750 # for struct timezone, as you might think.  We also need to check how
10751 # to call gettimeofday if we have it.
10752 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10753 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10754 if test "${ac_cv_header_time+set}" = set; then
10755   echo $ECHO_N "(cached) $ECHO_C" >&6
10756 else
10757   cat >conftest.$ac_ext <<_ACEOF
10758 /* confdefs.h.  */
10759 _ACEOF
10760 cat confdefs.h >>conftest.$ac_ext
10761 cat >>conftest.$ac_ext <<_ACEOF
10762 /* end confdefs.h.  */
10763 #include <sys/types.h>
10764 #include <sys/time.h>
10765 #include <time.h>
10766
10767 int
10768 main ()
10769 {
10770 if ((struct tm *) 0)
10771 return 0;
10772   ;
10773   return 0;
10774 }
10775 _ACEOF
10776 rm -f conftest.$ac_objext
10777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10778   (eval $ac_compile) 2>conftest.er1
10779   ac_status=$?
10780   grep -v '^ *+' conftest.er1 >conftest.err
10781   rm -f conftest.er1
10782   cat conftest.err >&5
10783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784   (exit $ac_status); } &&
10785          { ac_try='test -z "$ac_c_werror_flag"
10786                          || test ! -s conftest.err'
10787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10788   (eval $ac_try) 2>&5
10789   ac_status=$?
10790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791   (exit $ac_status); }; } &&
10792          { ac_try='test -s conftest.$ac_objext'
10793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10794   (eval $ac_try) 2>&5
10795   ac_status=$?
10796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797   (exit $ac_status); }; }; then
10798   ac_cv_header_time=yes
10799 else
10800   echo "$as_me: failed program was:" >&5
10801 sed 's/^/| /' conftest.$ac_ext >&5
10802
10803 ac_cv_header_time=no
10804 fi
10805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10806 fi
10807 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10808 echo "${ECHO_T}$ac_cv_header_time" >&6
10809 if test $ac_cv_header_time = yes; then
10810
10811 cat >>confdefs.h <<\_ACEOF
10812 #define TIME_WITH_SYS_TIME 1
10813 _ACEOF
10814
10815 fi
10816
10817
10818
10819 for ac_func in gettimeofday
10820 do
10821 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10822 echo "$as_me:$LINENO: checking for $ac_func" >&5
10823 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10824 if eval "test \"\${$as_ac_var+set}\" = set"; then
10825   echo $ECHO_N "(cached) $ECHO_C" >&6
10826 else
10827   cat >conftest.$ac_ext <<_ACEOF
10828 /* confdefs.h.  */
10829 _ACEOF
10830 cat confdefs.h >>conftest.$ac_ext
10831 cat >>conftest.$ac_ext <<_ACEOF
10832 /* end confdefs.h.  */
10833 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10834    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10835 #define $ac_func innocuous_$ac_func
10836
10837 /* System header to define __stub macros and hopefully few prototypes,
10838     which can conflict with char $ac_func (); below.
10839     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10840     <limits.h> exists even on freestanding compilers.  */
10841
10842 #ifdef __STDC__
10843 # include <limits.h>
10844 #else
10845 # include <assert.h>
10846 #endif
10847
10848 #undef $ac_func
10849
10850 /* Override any gcc2 internal prototype to avoid an error.  */
10851 #ifdef __cplusplus
10852 extern "C"
10853 {
10854 #endif
10855 /* We use char because int might match the return type of a gcc2
10856    builtin and then its argument prototype would still apply.  */
10857 char $ac_func ();
10858 /* The GNU C library defines this for functions which it implements
10859     to always fail with ENOSYS.  Some functions are actually named
10860     something starting with __ and the normal name is an alias.  */
10861 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10862 choke me
10863 #else
10864 char (*f) () = $ac_func;
10865 #endif
10866 #ifdef __cplusplus
10867 }
10868 #endif
10869
10870 int
10871 main ()
10872 {
10873 return f != $ac_func;
10874   ;
10875   return 0;
10876 }
10877 _ACEOF
10878 rm -f conftest.$ac_objext conftest$ac_exeext
10879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10880   (eval $ac_link) 2>conftest.er1
10881   ac_status=$?
10882   grep -v '^ *+' conftest.er1 >conftest.err
10883   rm -f conftest.er1
10884   cat conftest.err >&5
10885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886   (exit $ac_status); } &&
10887          { ac_try='test -z "$ac_c_werror_flag"
10888                          || test ! -s conftest.err'
10889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10890   (eval $ac_try) 2>&5
10891   ac_status=$?
10892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893   (exit $ac_status); }; } &&
10894          { ac_try='test -s conftest$ac_exeext'
10895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10896   (eval $ac_try) 2>&5
10897   ac_status=$?
10898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899   (exit $ac_status); }; }; then
10900   eval "$as_ac_var=yes"
10901 else
10902   echo "$as_me: failed program was:" >&5
10903 sed 's/^/| /' conftest.$ac_ext >&5
10904
10905 eval "$as_ac_var=no"
10906 fi
10907 rm -f conftest.err conftest.$ac_objext \
10908       conftest$ac_exeext conftest.$ac_ext
10909 fi
10910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10911 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10912 if test `eval echo '${'$as_ac_var'}'` = yes; then
10913   cat >>confdefs.h <<_ACEOF
10914 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10915 _ACEOF
10916
10917 fi
10918 done
10919
10920   if test "$ac_cv_func_gettimeofday" = yes; then
10921     echo "$as_me:$LINENO: checking for struct timezone" >&5
10922 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
10923 if test "${gfor_cv_struct_timezone+set}" = set; then
10924   echo $ECHO_N "(cached) $ECHO_C" >&6
10925 else
10926   cat >conftest.$ac_ext <<_ACEOF
10927 /* confdefs.h.  */
10928 _ACEOF
10929 cat confdefs.h >>conftest.$ac_ext
10930 cat >>conftest.$ac_ext <<_ACEOF
10931 /* end confdefs.h.  */
10932 #include <sys/time.h>
10933 int
10934 main ()
10935 {
10936 struct timezone tz;
10937   ;
10938   return 0;
10939 }
10940 _ACEOF
10941 rm -f conftest.$ac_objext
10942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10943   (eval $ac_compile) 2>conftest.er1
10944   ac_status=$?
10945   grep -v '^ *+' conftest.er1 >conftest.err
10946   rm -f conftest.er1
10947   cat conftest.err >&5
10948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949   (exit $ac_status); } &&
10950          { ac_try='test -z "$ac_c_werror_flag"
10951                          || test ! -s conftest.err'
10952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10953   (eval $ac_try) 2>&5
10954   ac_status=$?
10955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956   (exit $ac_status); }; } &&
10957          { ac_try='test -s conftest.$ac_objext'
10958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10959   (eval $ac_try) 2>&5
10960   ac_status=$?
10961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962   (exit $ac_status); }; }; then
10963   gfor_cv_struct_timezone=yes
10964 else
10965   echo "$as_me: failed program was:" >&5
10966 sed 's/^/| /' conftest.$ac_ext >&5
10967
10968 gfor_cv_struct_timezone=no
10969 fi
10970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10971 fi
10972 echo "$as_me:$LINENO: result: $gfor_cv_struct_timezone" >&5
10973 echo "${ECHO_T}$gfor_cv_struct_timezone" >&6
10974     if test $gfor_cv_struct_timezone = yes; then
10975                   if test "$cross_compiling" = yes; then
10976   gfor_have_struct_timezone=yes
10977 else
10978   cat >conftest.$ac_ext <<_ACEOF
10979 /* confdefs.h.  */
10980 _ACEOF
10981 cat confdefs.h >>conftest.$ac_ext
10982 cat >>conftest.$ac_ext <<_ACEOF
10983 /* end confdefs.h.  */
10984
10985 #ifdef TIME_WITH_SYS_TIME
10986 #include <sys/time.h>
10987 #include <time.h>
10988 #else
10989 #ifdef HAVE_SYS_TIME_H
10990 #include <sys/time.h>
10991 #else
10992 #include <time.h>
10993 #endif
10994 #endif
10995 main ()
10996 {
10997   struct timeval time;
10998   struct timezone dummy;
10999   if (gettimeofday (&time, &dummy))
11000     exit (1);
11001   else
11002     exit (0);
11003 }
11004 _ACEOF
11005 rm -f conftest$ac_exeext
11006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11007   (eval $ac_link) 2>&5
11008   ac_status=$?
11009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11012   (eval $ac_try) 2>&5
11013   ac_status=$?
11014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015   (exit $ac_status); }; }; then
11016   gfor_have_struct_timezone=yes
11017 else
11018   echo "$as_me: program exited with status $ac_status" >&5
11019 echo "$as_me: failed program was:" >&5
11020 sed 's/^/| /' conftest.$ac_ext >&5
11021
11022 ( exit $ac_status )
11023 gfor_have_struct_timezone=no
11024 fi
11025 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11026 fi
11027       if test $gfor_have_struct_timezone = yes; then
11028
11029 cat >>confdefs.h <<\_ACEOF
11030 #define HAVE_TIMEZONE 1
11031 _ACEOF
11032
11033       fi
11034     fi
11035
11036     echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
11037 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
11038 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
11039   echo $ECHO_N "(cached) $ECHO_C" >&6
11040 else
11041   cat >conftest.$ac_ext <<_ACEOF
11042 /* confdefs.h.  */
11043 _ACEOF
11044 cat confdefs.h >>conftest.$ac_ext
11045 cat >>conftest.$ac_ext <<_ACEOF
11046 /* end confdefs.h.  */
11047
11048 #ifdef TIME_WITH_SYS_TIME
11049 #include <sys/time.h>
11050 #include <time.h>
11051 #else
11052 #ifdef HAVE_SYS_TIME_H
11053 #include <sys/time.h>
11054 #else
11055 #include <time.h>
11056 #endif
11057 #endif
11058
11059 int
11060 main ()
11061 {
11062
11063       struct timeval time;
11064 #ifdef HAVE_TIMEZONE
11065       struct timezone dummy;
11066 #define DUMMY &dummy
11067 #else
11068 #define DUMMY NULL
11069 #endif
11070       gettimeofday (&time, DUMMY);
11071   ;
11072   return 0;
11073 }
11074 _ACEOF
11075 rm -f conftest.$ac_objext conftest$ac_exeext
11076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11077   (eval $ac_link) 2>conftest.er1
11078   ac_status=$?
11079   grep -v '^ *+' conftest.er1 >conftest.err
11080   rm -f conftest.er1
11081   cat conftest.err >&5
11082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083   (exit $ac_status); } &&
11084          { ac_try='test -z "$ac_c_werror_flag"
11085                          || test ! -s conftest.err'
11086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11087   (eval $ac_try) 2>&5
11088   ac_status=$?
11089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090   (exit $ac_status); }; } &&
11091          { ac_try='test -s conftest$ac_exeext'
11092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11093   (eval $ac_try) 2>&5
11094   ac_status=$?
11095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096   (exit $ac_status); }; }; then
11097   emacs_cv_gettimeofday_two_arguments=yes
11098 else
11099   echo "$as_me: failed program was:" >&5
11100 sed 's/^/| /' conftest.$ac_ext >&5
11101
11102 emacs_cv_gettimeofday_two_arguments=no
11103 fi
11104 rm -f conftest.err conftest.$ac_objext \
11105       conftest$ac_exeext conftest.$ac_ext
11106 fi
11107 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
11108 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
11109     if test $emacs_cv_gettimeofday_two_arguments = no; then
11110
11111 cat >>confdefs.h <<\_ACEOF
11112 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11113 _ACEOF
11114
11115     fi
11116   fi
11117
11118 # Attempt to assert that the target is of common type in case we don't
11119 # have C99 integer types at all.
11120
11121   echo "$as_me:$LINENO: checking whether the target is ILP32" >&5
11122 echo $ECHO_N "checking whether the target is ILP32... $ECHO_C" >&6
11123 if test "${target_ilp32+set}" = set; then
11124   echo $ECHO_N "(cached) $ECHO_C" >&6
11125 else
11126
11127   save_CFLAGS="$CFLAGS"
11128   CFLAGS="-O2"
11129   cat >conftest.$ac_ext <<_ACEOF
11130 /* confdefs.h.  */
11131 _ACEOF
11132 cat confdefs.h >>conftest.$ac_ext
11133 cat >>conftest.$ac_ext <<_ACEOF
11134 /* end confdefs.h.  */
11135
11136 int
11137 main ()
11138 {
11139
11140 if (sizeof(int) == 4 && sizeof(long) == 4 && sizeof(void *) == 4)
11141   ;
11142 else
11143   undefined_function ();
11144
11145   ;
11146   return 0;
11147 }
11148 _ACEOF
11149 rm -f conftest.$ac_objext conftest$ac_exeext
11150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11151   (eval $ac_link) 2>conftest.er1
11152   ac_status=$?
11153   grep -v '^ *+' conftest.er1 >conftest.err
11154   rm -f conftest.er1
11155   cat conftest.err >&5
11156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157   (exit $ac_status); } &&
11158          { ac_try='test -z "$ac_c_werror_flag"
11159                          || test ! -s conftest.err'
11160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11161   (eval $ac_try) 2>&5
11162   ac_status=$?
11163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164   (exit $ac_status); }; } &&
11165          { ac_try='test -s conftest$ac_exeext'
11166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11167   (eval $ac_try) 2>&5
11168   ac_status=$?
11169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170   (exit $ac_status); }; }; then
11171   target_ilp32=yes
11172 else
11173   echo "$as_me: failed program was:" >&5
11174 sed 's/^/| /' conftest.$ac_ext >&5
11175
11176 target_ilp32=no
11177 fi
11178 rm -f conftest.err conftest.$ac_objext \
11179       conftest$ac_exeext conftest.$ac_ext
11180   CFLAGS="$save_CFLAGS"
11181 fi
11182 echo "$as_me:$LINENO: result: $target_ilp32" >&5
11183 echo "${ECHO_T}$target_ilp32" >&6
11184   if test $target_ilp32 = yes; then
11185
11186 cat >>confdefs.h <<\_ACEOF
11187 #define TARGET_ILP32 1
11188 _ACEOF
11189
11190   fi
11191
11192
11193 # Check out attribute support.
11194
11195   echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5
11196 echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6
11197 if test "${have_attribute_visibility+set}" = set; then
11198   echo $ECHO_N "(cached) $ECHO_C" >&6
11199 else
11200
11201   save_CFLAGS="$CFLAGS"
11202   CFLAGS="$CFLAGS -Werror"
11203   cat >conftest.$ac_ext <<_ACEOF
11204 /* confdefs.h.  */
11205 _ACEOF
11206 cat confdefs.h >>conftest.$ac_ext
11207 cat >>conftest.$ac_ext <<_ACEOF
11208 /* end confdefs.h.  */
11209 void __attribute__((visibility("hidden"))) foo(void) { }
11210 int
11211 main ()
11212 {
11213
11214   ;
11215   return 0;
11216 }
11217 _ACEOF
11218 rm -f conftest.$ac_objext
11219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11220   (eval $ac_compile) 2>conftest.er1
11221   ac_status=$?
11222   grep -v '^ *+' conftest.er1 >conftest.err
11223   rm -f conftest.er1
11224   cat conftest.err >&5
11225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226   (exit $ac_status); } &&
11227          { ac_try='test -z "$ac_c_werror_flag"
11228                          || test ! -s conftest.err'
11229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11230   (eval $ac_try) 2>&5
11231   ac_status=$?
11232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233   (exit $ac_status); }; } &&
11234          { ac_try='test -s conftest.$ac_objext'
11235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11236   (eval $ac_try) 2>&5
11237   ac_status=$?
11238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239   (exit $ac_status); }; }; then
11240   have_attribute_visibility=yes
11241 else
11242   echo "$as_me: failed program was:" >&5
11243 sed 's/^/| /' conftest.$ac_ext >&5
11244
11245 have_attribute_visibility=no
11246 fi
11247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11248   CFLAGS="$save_CFLAGS"
11249 fi
11250 echo "$as_me:$LINENO: result: $have_attribute_visibility" >&5
11251 echo "${ECHO_T}$have_attribute_visibility" >&6
11252   if test $have_attribute_visibility = yes; then
11253
11254 cat >>confdefs.h <<\_ACEOF
11255 #define HAVE_ATTRIBUTE_VISIBILITY 1
11256 _ACEOF
11257
11258   fi
11259
11260   echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5
11261 echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6
11262 if test "${have_attribute_dllexport+set}" = set; then
11263   echo $ECHO_N "(cached) $ECHO_C" >&6
11264 else
11265
11266   save_CFLAGS="$CFLAGS"
11267   CFLAGS="$CFLAGS -Werror"
11268   cat >conftest.$ac_ext <<_ACEOF
11269 /* confdefs.h.  */
11270 _ACEOF
11271 cat confdefs.h >>conftest.$ac_ext
11272 cat >>conftest.$ac_ext <<_ACEOF
11273 /* end confdefs.h.  */
11274 void __attribute__((dllexport)) foo(void) { }
11275 int
11276 main ()
11277 {
11278
11279   ;
11280   return 0;
11281 }
11282 _ACEOF
11283 rm -f conftest.$ac_objext
11284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11285   (eval $ac_compile) 2>conftest.er1
11286   ac_status=$?
11287   grep -v '^ *+' conftest.er1 >conftest.err
11288   rm -f conftest.er1
11289   cat conftest.err >&5
11290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291   (exit $ac_status); } &&
11292          { ac_try='test -z "$ac_c_werror_flag"
11293                          || test ! -s conftest.err'
11294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11295   (eval $ac_try) 2>&5
11296   ac_status=$?
11297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298   (exit $ac_status); }; } &&
11299          { ac_try='test -s conftest.$ac_objext'
11300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11301   (eval $ac_try) 2>&5
11302   ac_status=$?
11303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304   (exit $ac_status); }; }; then
11305   have_attribute_dllexport=yes
11306 else
11307   echo "$as_me: failed program was:" >&5
11308 sed 's/^/| /' conftest.$ac_ext >&5
11309
11310 have_attribute_dllexport=no
11311 fi
11312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11313   CFLAGS="$save_CFLAGS"
11314 fi
11315 echo "$as_me:$LINENO: result: $have_attribute_dllexport" >&5
11316 echo "${ECHO_T}$have_attribute_dllexport" >&6
11317   if test $have_attribute_dllexport = yes; then
11318
11319 cat >>confdefs.h <<\_ACEOF
11320 #define HAVE_ATTRIBUTE_DLLEXPORT 1
11321 _ACEOF
11322
11323   fi
11324
11325   echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5
11326 echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6
11327 if test "${have_attribute_alias+set}" = set; then
11328   echo $ECHO_N "(cached) $ECHO_C" >&6
11329 else
11330
11331   cat >conftest.$ac_ext <<_ACEOF
11332 /* confdefs.h.  */
11333 _ACEOF
11334 cat confdefs.h >>conftest.$ac_ext
11335 cat >>conftest.$ac_ext <<_ACEOF
11336 /* end confdefs.h.  */
11337
11338 #define ULP     STR1(__USER_LABEL_PREFIX__)
11339 #define STR1(x) STR2(x)
11340 #define STR2(x) #x
11341 void foo(void) { }
11342 extern void bar(void) __attribute__((alias(ULP "foo")));
11343 int
11344 main ()
11345 {
11346 bar();
11347   ;
11348   return 0;
11349 }
11350 _ACEOF
11351 rm -f conftest.$ac_objext conftest$ac_exeext
11352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11353   (eval $ac_link) 2>conftest.er1
11354   ac_status=$?
11355   grep -v '^ *+' conftest.er1 >conftest.err
11356   rm -f conftest.er1
11357   cat conftest.err >&5
11358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359   (exit $ac_status); } &&
11360          { ac_try='test -z "$ac_c_werror_flag"
11361                          || test ! -s conftest.err'
11362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11363   (eval $ac_try) 2>&5
11364   ac_status=$?
11365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366   (exit $ac_status); }; } &&
11367          { ac_try='test -s conftest$ac_exeext'
11368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11369   (eval $ac_try) 2>&5
11370   ac_status=$?
11371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372   (exit $ac_status); }; }; then
11373   have_attribute_alias=yes
11374 else
11375   echo "$as_me: failed program was:" >&5
11376 sed 's/^/| /' conftest.$ac_ext >&5
11377
11378 have_attribute_alias=no
11379 fi
11380 rm -f conftest.err conftest.$ac_objext \
11381       conftest$ac_exeext conftest.$ac_ext
11382 fi
11383 echo "$as_me:$LINENO: result: $have_attribute_alias" >&5
11384 echo "${ECHO_T}$have_attribute_alias" >&6
11385   if test $have_attribute_alias = yes; then
11386
11387 cat >>confdefs.h <<\_ACEOF
11388 #define HAVE_ATTRIBUTE_ALIAS 1
11389 _ACEOF
11390
11391   fi
11392
11393 cat >confcache <<\_ACEOF
11394 # This file is a shell script that caches the results of configure
11395 # tests run on this system so they can be shared between configure
11396 # scripts and configure runs, see configure's option --config-cache.
11397 # It is not useful on other systems.  If it contains results you don't
11398 # want to keep, you may remove or edit it.
11399 #
11400 # config.status only pays attention to the cache file if you give it
11401 # the --recheck option to rerun configure.
11402 #
11403 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11404 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11405 # following values.
11406
11407 _ACEOF
11408
11409 # The following way of writing the cache mishandles newlines in values,
11410 # but we know of no workaround that is simple, portable, and efficient.
11411 # So, don't put newlines in cache variables' values.
11412 # Ultrix sh set writes to stderr and can't be redirected directly,
11413 # and sets the high bit in the cache file unless we assign to the vars.
11414 {
11415   (set) 2>&1 |
11416     case `(ac_space=' '; set | grep ac_space) 2>&1` in
11417     *ac_space=\ *)
11418       # `set' does not quote correctly, so add quotes (double-quote
11419       # substitution turns \\\\ into \\, and sed turns \\ into \).
11420       sed -n \
11421         "s/'/'\\\\''/g;
11422           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11423       ;;
11424     *)
11425       # `set' quotes correctly as required by POSIX, so do not add quotes.
11426       sed -n \
11427         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11428       ;;
11429     esac;
11430 } |
11431   sed '
11432      t clear
11433      : clear
11434      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11435      t end
11436      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11437      : end' >>confcache
11438 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11439   if test -w $cache_file; then
11440     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11441     cat confcache >$cache_file
11442   else
11443     echo "not updating unwritable cache $cache_file"
11444   fi
11445 fi
11446 rm -f confcache
11447
11448 if test ${multilib} = yes; then
11449   multilib_arg="--enable-multilib"
11450 else
11451   multilib_arg=
11452 fi
11453
11454 # Write our Makefile.
11455           ac_config_files="$ac_config_files Makefile"
11456
11457 cat >confcache <<\_ACEOF
11458 # This file is a shell script that caches the results of configure
11459 # tests run on this system so they can be shared between configure
11460 # scripts and configure runs, see configure's option --config-cache.
11461 # It is not useful on other systems.  If it contains results you don't
11462 # want to keep, you may remove or edit it.
11463 #
11464 # config.status only pays attention to the cache file if you give it
11465 # the --recheck option to rerun configure.
11466 #
11467 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11468 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11469 # following values.
11470
11471 _ACEOF
11472
11473 # The following way of writing the cache mishandles newlines in values,
11474 # but we know of no workaround that is simple, portable, and efficient.
11475 # So, don't put newlines in cache variables' values.
11476 # Ultrix sh set writes to stderr and can't be redirected directly,
11477 # and sets the high bit in the cache file unless we assign to the vars.
11478 {
11479   (set) 2>&1 |
11480     case `(ac_space=' '; set | grep ac_space) 2>&1` in
11481     *ac_space=\ *)
11482       # `set' does not quote correctly, so add quotes (double-quote
11483       # substitution turns \\\\ into \\, and sed turns \\ into \).
11484       sed -n \
11485         "s/'/'\\\\''/g;
11486           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11487       ;;
11488     *)
11489       # `set' quotes correctly as required by POSIX, so do not add quotes.
11490       sed -n \
11491         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11492       ;;
11493     esac;
11494 } |
11495   sed '
11496      t clear
11497      : clear
11498      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11499      t end
11500      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11501      : end' >>confcache
11502 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11503   if test -w $cache_file; then
11504     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11505     cat confcache >$cache_file
11506   else
11507     echo "not updating unwritable cache $cache_file"
11508   fi
11509 fi
11510 rm -f confcache
11511
11512 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11513 # Let make expand exec_prefix.
11514 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11515
11516 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11517 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11518 # trailing colons and then remove the whole line if VPATH becomes empty
11519 # (actually we leave an empty line to preserve line numbers).
11520 if test "x$srcdir" = x.; then
11521   ac_vpsub='/^[  ]*VPATH[        ]*=/{
11522 s/:*\$(srcdir):*/:/;
11523 s/:*\${srcdir}:*/:/;
11524 s/:*@srcdir@:*/:/;
11525 s/^\([^=]*=[     ]*\):*/\1/;
11526 s/:*$//;
11527 s/^[^=]*=[       ]*$//;
11528 }'
11529 fi
11530
11531 DEFS=-DHAVE_CONFIG_H
11532
11533 ac_libobjs=
11534 ac_ltlibobjs=
11535 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11536   # 1. Remove the extension, and $U if already installed.
11537   ac_i=`echo "$ac_i" |
11538          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11539   # 2. Add them.
11540   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11541   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11542 done
11543 LIBOBJS=$ac_libobjs
11544
11545 LTLIBOBJS=$ac_ltlibobjs
11546
11547
11548 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11549   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11550 Usually this means the macro was only invoked conditionally." >&5
11551 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11552 Usually this means the macro was only invoked conditionally." >&2;}
11553    { (exit 1); exit 1; }; }
11554 fi
11555
11556 : ${CONFIG_STATUS=./config.status}
11557 ac_clean_files_save=$ac_clean_files
11558 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11559 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11560 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11561 cat >$CONFIG_STATUS <<_ACEOF
11562 #! $SHELL
11563 # Generated by $as_me.
11564 # Run this file to recreate the current configuration.
11565 # Compiler output produced by configure, useful for debugging
11566 # configure, is in config.log if it exists.
11567
11568 debug=false
11569 ac_cs_recheck=false
11570 ac_cs_silent=false
11571 SHELL=\${CONFIG_SHELL-$SHELL}
11572 _ACEOF
11573
11574 cat >>$CONFIG_STATUS <<\_ACEOF
11575 ## --------------------- ##
11576 ## M4sh Initialization.  ##
11577 ## --------------------- ##
11578
11579 # Be Bourne compatible
11580 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11581   emulate sh
11582   NULLCMD=:
11583   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11584   # is contrary to our usage.  Disable this feature.
11585   alias -g '${1+"$@"}'='"$@"'
11586 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11587   set -o posix
11588 fi
11589 DUALCASE=1; export DUALCASE # for MKS sh
11590
11591 # Support unset when possible.
11592 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11593   as_unset=unset
11594 else
11595   as_unset=false
11596 fi
11597
11598
11599 # Work around bugs in pre-3.0 UWIN ksh.
11600 $as_unset ENV MAIL MAILPATH
11601 PS1='$ '
11602 PS2='> '
11603 PS4='+ '
11604
11605 # NLS nuisances.
11606 for as_var in \
11607   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11608   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11609   LC_TELEPHONE LC_TIME
11610 do
11611   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11612     eval $as_var=C; export $as_var
11613   else
11614     $as_unset $as_var
11615   fi
11616 done
11617
11618 # Required to use basename.
11619 if expr a : '\(a\)' >/dev/null 2>&1; then
11620   as_expr=expr
11621 else
11622   as_expr=false
11623 fi
11624
11625 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11626   as_basename=basename
11627 else
11628   as_basename=false
11629 fi
11630
11631
11632 # Name of the executable.
11633 as_me=`$as_basename "$0" ||
11634 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11635          X"$0" : 'X\(//\)$' \| \
11636          X"$0" : 'X\(/\)$' \| \
11637          .     : '\(.\)' 2>/dev/null ||
11638 echo X/"$0" |
11639     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11640           /^X\/\(\/\/\)$/{ s//\1/; q; }
11641           /^X\/\(\/\).*/{ s//\1/; q; }
11642           s/.*/./; q'`
11643
11644
11645 # PATH needs CR, and LINENO needs CR and PATH.
11646 # Avoid depending upon Character Ranges.
11647 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11648 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11649 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11650 as_cr_digits='0123456789'
11651 as_cr_alnum=$as_cr_Letters$as_cr_digits
11652
11653 # The user is always right.
11654 if test "${PATH_SEPARATOR+set}" != set; then
11655   echo "#! /bin/sh" >conf$$.sh
11656   echo  "exit 0"   >>conf$$.sh
11657   chmod +x conf$$.sh
11658   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11659     PATH_SEPARATOR=';'
11660   else
11661     PATH_SEPARATOR=:
11662   fi
11663   rm -f conf$$.sh
11664 fi
11665
11666
11667   as_lineno_1=$LINENO
11668   as_lineno_2=$LINENO
11669   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11670   test "x$as_lineno_1" != "x$as_lineno_2" &&
11671   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11672   # Find who we are.  Look in the path if we contain no path at all
11673   # relative or not.
11674   case $0 in
11675     *[\\/]* ) as_myself=$0 ;;
11676     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11677 for as_dir in $PATH
11678 do
11679   IFS=$as_save_IFS
11680   test -z "$as_dir" && as_dir=.
11681   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11682 done
11683
11684        ;;
11685   esac
11686   # We did not find ourselves, most probably we were run as `sh COMMAND'
11687   # in which case we are not to be found in the path.
11688   if test "x$as_myself" = x; then
11689     as_myself=$0
11690   fi
11691   if test ! -f "$as_myself"; then
11692     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11693 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11694    { (exit 1); exit 1; }; }
11695   fi
11696   case $CONFIG_SHELL in
11697   '')
11698     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11699 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11700 do
11701   IFS=$as_save_IFS
11702   test -z "$as_dir" && as_dir=.
11703   for as_base in sh bash ksh sh5; do
11704          case $as_dir in
11705          /*)
11706            if ("$as_dir/$as_base" -c '
11707   as_lineno_1=$LINENO
11708   as_lineno_2=$LINENO
11709   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11710   test "x$as_lineno_1" != "x$as_lineno_2" &&
11711   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11712              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11713              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11714              CONFIG_SHELL=$as_dir/$as_base
11715              export CONFIG_SHELL
11716              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11717            fi;;
11718          esac
11719        done
11720 done
11721 ;;
11722   esac
11723
11724   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11725   # uniformly replaced by the line number.  The first 'sed' inserts a
11726   # line-number line before each line; the second 'sed' does the real
11727   # work.  The second script uses 'N' to pair each line-number line
11728   # with the numbered line, and appends trailing '-' during
11729   # substitution so that $LINENO is not a special case at line end.
11730   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11731   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11732   sed '=' <$as_myself |
11733     sed '
11734       N
11735       s,$,-,
11736       : loop
11737       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11738       t loop
11739       s,-$,,
11740       s,^['$as_cr_digits']*\n,,
11741     ' >$as_me.lineno &&
11742   chmod +x $as_me.lineno ||
11743     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11744 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11745    { (exit 1); exit 1; }; }
11746
11747   # Don't try to exec as it changes $[0], causing all sort of problems
11748   # (the dirname of $[0] is not the place where we might find the
11749   # original and so on.  Autoconf is especially sensible to this).
11750   . ./$as_me.lineno
11751   # Exit status is that of the last command.
11752   exit
11753 }
11754
11755
11756 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11757   *c*,-n*) ECHO_N= ECHO_C='
11758 ' ECHO_T='      ' ;;
11759   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11760   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11761 esac
11762
11763 if expr a : '\(a\)' >/dev/null 2>&1; then
11764   as_expr=expr
11765 else
11766   as_expr=false
11767 fi
11768
11769 rm -f conf$$ conf$$.exe conf$$.file
11770 echo >conf$$.file
11771 if ln -s conf$$.file conf$$ 2>/dev/null; then
11772   # We could just check for DJGPP; but this test a) works b) is more generic
11773   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11774   if test -f conf$$.exe; then
11775     # Don't use ln at all; we don't have any links
11776     as_ln_s='cp -p'
11777   else
11778     as_ln_s='ln -s'
11779   fi
11780 elif ln conf$$.file conf$$ 2>/dev/null; then
11781   as_ln_s=ln
11782 else
11783   as_ln_s='cp -p'
11784 fi
11785 rm -f conf$$ conf$$.exe conf$$.file
11786
11787 if mkdir -p . 2>/dev/null; then
11788   as_mkdir_p=:
11789 else
11790   test -d ./-p && rmdir ./-p
11791   as_mkdir_p=false
11792 fi
11793
11794 as_executable_p="test -f"
11795
11796 # Sed expression to map a string onto a valid CPP name.
11797 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11798
11799 # Sed expression to map a string onto a valid variable name.
11800 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11801
11802
11803 # IFS
11804 # We need space, tab and new line, in precisely that order.
11805 as_nl='
11806 '
11807 IFS="   $as_nl"
11808
11809 # CDPATH.
11810 $as_unset CDPATH
11811
11812 exec 6>&1
11813
11814 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11815 # report actual input values of CONFIG_FILES etc. instead of their
11816 # values after options handling.  Logging --version etc. is OK.
11817 exec 5>>config.log
11818 {
11819   echo
11820   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11821 ## Running $as_me. ##
11822 _ASBOX
11823 } >&5
11824 cat >&5 <<_CSEOF
11825
11826 This file was extended by GNU Fortran Runtime Library $as_me 0.2, which was
11827 generated by GNU Autoconf 2.59.  Invocation command line was
11828
11829   CONFIG_FILES    = $CONFIG_FILES
11830   CONFIG_HEADERS  = $CONFIG_HEADERS
11831   CONFIG_LINKS    = $CONFIG_LINKS
11832   CONFIG_COMMANDS = $CONFIG_COMMANDS
11833   $ $0 $@
11834
11835 _CSEOF
11836 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11837 echo >&5
11838 _ACEOF
11839
11840 # Files that config.status was made for.
11841 if test -n "$ac_config_files"; then
11842   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11843 fi
11844
11845 if test -n "$ac_config_headers"; then
11846   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11847 fi
11848
11849 if test -n "$ac_config_links"; then
11850   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11851 fi
11852
11853 if test -n "$ac_config_commands"; then
11854   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11855 fi
11856
11857 cat >>$CONFIG_STATUS <<\_ACEOF
11858
11859 ac_cs_usage="\
11860 \`$as_me' instantiates files from templates according to the
11861 current configuration.
11862
11863 Usage: $0 [OPTIONS] [FILE]...
11864
11865   -h, --help       print this help, then exit
11866   -V, --version    print version number, then exit
11867   -q, --quiet      do not print progress messages
11868   -d, --debug      don't remove temporary files
11869       --recheck    update $as_me by reconfiguring in the same conditions
11870   --file=FILE[:TEMPLATE]
11871                    instantiate the configuration file FILE
11872   --header=FILE[:TEMPLATE]
11873                    instantiate the configuration header FILE
11874
11875 Configuration files:
11876 $config_files
11877
11878 Configuration headers:
11879 $config_headers
11880
11881 Configuration commands:
11882 $config_commands
11883
11884 Report bugs to <bug-autoconf@gnu.org>."
11885 _ACEOF
11886
11887 cat >>$CONFIG_STATUS <<_ACEOF
11888 ac_cs_version="\\
11889 GNU Fortran Runtime Library config.status 0.2
11890 configured by $0, generated by GNU Autoconf 2.59,
11891   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11892
11893 Copyright (C) 2003 Free Software Foundation, Inc.
11894 This config.status script is free software; the Free Software Foundation
11895 gives unlimited permission to copy, distribute and modify it."
11896 srcdir=$srcdir
11897 INSTALL="$INSTALL"
11898 _ACEOF
11899
11900 cat >>$CONFIG_STATUS <<\_ACEOF
11901 # If no file are specified by the user, then we need to provide default
11902 # value.  By we need to know if files were specified by the user.
11903 ac_need_defaults=:
11904 while test $# != 0
11905 do
11906   case $1 in
11907   --*=*)
11908     ac_option=`expr "x$1" : 'x\([^=]*\)='`
11909     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11910     ac_shift=:
11911     ;;
11912   -*)
11913     ac_option=$1
11914     ac_optarg=$2
11915     ac_shift=shift
11916     ;;
11917   *) # This is not an option, so the user has probably given explicit
11918      # arguments.
11919      ac_option=$1
11920      ac_need_defaults=false;;
11921   esac
11922
11923   case $ac_option in
11924   # Handling of the options.
11925 _ACEOF
11926 cat >>$CONFIG_STATUS <<\_ACEOF
11927   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11928     ac_cs_recheck=: ;;
11929   --version | --vers* | -V )
11930     echo "$ac_cs_version"; exit 0 ;;
11931   --he | --h)
11932     # Conflict between --help and --header
11933     { { echo "$as_me:$LINENO: error: ambiguous option: $1
11934 Try \`$0 --help' for more information." >&5
11935 echo "$as_me: error: ambiguous option: $1
11936 Try \`$0 --help' for more information." >&2;}
11937    { (exit 1); exit 1; }; };;
11938   --help | --hel | -h )
11939     echo "$ac_cs_usage"; exit 0 ;;
11940   --debug | --d* | -d )
11941     debug=: ;;
11942   --file | --fil | --fi | --f )
11943     $ac_shift
11944     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11945     ac_need_defaults=false;;
11946   --header | --heade | --head | --hea )
11947     $ac_shift
11948     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11949     ac_need_defaults=false;;
11950   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11951   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11952     ac_cs_silent=: ;;
11953
11954   # This is an error.
11955   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11956 Try \`$0 --help' for more information." >&5
11957 echo "$as_me: error: unrecognized option: $1
11958 Try \`$0 --help' for more information." >&2;}
11959    { (exit 1); exit 1; }; } ;;
11960
11961   *) ac_config_targets="$ac_config_targets $1" ;;
11962
11963   esac
11964   shift
11965 done
11966
11967 ac_configure_extra_args=
11968
11969 if $ac_cs_silent; then
11970   exec 6>/dev/null
11971   ac_configure_extra_args="$ac_configure_extra_args --silent"
11972 fi
11973
11974 _ACEOF
11975 cat >>$CONFIG_STATUS <<_ACEOF
11976 if \$ac_cs_recheck; then
11977   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11978   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11979 fi
11980
11981 _ACEOF
11982
11983 cat >>$CONFIG_STATUS <<_ACEOF
11984 #
11985 # INIT-COMMANDS section.
11986 #
11987
11988
11989 srcdir="$srcdir"
11990 host="$host"
11991 target="$target"
11992 with_multisubdir="$with_multisubdir"
11993 with_multisrctop="$with_multisrctop"
11994 with_target_subdir="$with_target_subdir"
11995 ac_configure_args="${multilib_arg} ${ac_configure_args}"
11996 multi_basedir="$multi_basedir"
11997 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11998 CC="$CC"
11999
12000 _ACEOF
12001
12002
12003
12004 cat >>$CONFIG_STATUS <<\_ACEOF
12005 for ac_config_target in $ac_config_targets
12006 do
12007   case "$ac_config_target" in
12008   # Handling of arguments.
12009   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12010   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12011   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12012   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12013 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12014    { (exit 1); exit 1; }; };;
12015   esac
12016 done
12017
12018 # If the user did not use the arguments to specify the items to instantiate,
12019 # then the envvar interface is used.  Set only those that are not.
12020 # We use the long form for the default assignment because of an extremely
12021 # bizarre bug on SunOS 4.1.3.
12022 if $ac_need_defaults; then
12023   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12024   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12025   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12026 fi
12027
12028 # Have a temporary directory for convenience.  Make it in the build tree
12029 # simply because there is no reason to put it here, and in addition,
12030 # creating and moving files from /tmp can sometimes cause problems.
12031 # Create a temporary directory, and hook for its removal unless debugging.
12032 $debug ||
12033 {
12034   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12035   trap '{ (exit 1); exit 1; }' 1 2 13 15
12036 }
12037
12038 # Create a (secure) tmp directory for tmp files.
12039
12040 {
12041   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12042   test -n "$tmp" && test -d "$tmp"
12043 }  ||
12044 {
12045   tmp=./confstat$$-$RANDOM
12046   (umask 077 && mkdir $tmp)
12047 } ||
12048 {
12049    echo "$me: cannot create a temporary directory in ." >&2
12050    { (exit 1); exit 1; }
12051 }
12052
12053 _ACEOF
12054
12055 cat >>$CONFIG_STATUS <<_ACEOF
12056
12057 #
12058 # CONFIG_FILES section.
12059 #
12060
12061 # No need to generate the scripts if there are no CONFIG_FILES.
12062 # This happens for instance when ./config.status config.h
12063 if test -n "\$CONFIG_FILES"; then
12064   # Protect against being on the right side of a sed subst in config.status.
12065   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12066    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12067 s,@SHELL@,$SHELL,;t t
12068 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12069 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12070 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12071 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12072 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12073 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12074 s,@exec_prefix@,$exec_prefix,;t t
12075 s,@prefix@,$prefix,;t t
12076 s,@program_transform_name@,$program_transform_name,;t t
12077 s,@bindir@,$bindir,;t t
12078 s,@sbindir@,$sbindir,;t t
12079 s,@libexecdir@,$libexecdir,;t t
12080 s,@datadir@,$datadir,;t t
12081 s,@sysconfdir@,$sysconfdir,;t t
12082 s,@sharedstatedir@,$sharedstatedir,;t t
12083 s,@localstatedir@,$localstatedir,;t t
12084 s,@libdir@,$libdir,;t t
12085 s,@includedir@,$includedir,;t t
12086 s,@oldincludedir@,$oldincludedir,;t t
12087 s,@infodir@,$infodir,;t t
12088 s,@mandir@,$mandir,;t t
12089 s,@build_alias@,$build_alias,;t t
12090 s,@host_alias@,$host_alias,;t t
12091 s,@target_alias@,$target_alias,;t t
12092 s,@DEFS@,$DEFS,;t t
12093 s,@ECHO_C@,$ECHO_C,;t t
12094 s,@ECHO_N@,$ECHO_N,;t t
12095 s,@ECHO_T@,$ECHO_T,;t t
12096 s,@LIBS@,$LIBS,;t t
12097 s,@build@,$build,;t t
12098 s,@build_cpu@,$build_cpu,;t t
12099 s,@build_vendor@,$build_vendor,;t t
12100 s,@build_os@,$build_os,;t t
12101 s,@host@,$host,;t t
12102 s,@host_cpu@,$host_cpu,;t t
12103 s,@host_vendor@,$host_vendor,;t t
12104 s,@host_os@,$host_os,;t t
12105 s,@target@,$target,;t t
12106 s,@target_cpu@,$target_cpu,;t t
12107 s,@target_vendor@,$target_vendor,;t t
12108 s,@target_os@,$target_os,;t t
12109 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12110 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12111 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12112 s,@CYGPATH_W@,$CYGPATH_W,;t t
12113 s,@PACKAGE@,$PACKAGE,;t t
12114 s,@VERSION@,$VERSION,;t t
12115 s,@ACLOCAL@,$ACLOCAL,;t t
12116 s,@AUTOCONF@,$AUTOCONF,;t t
12117 s,@AUTOMAKE@,$AUTOMAKE,;t t
12118 s,@AUTOHEADER@,$AUTOHEADER,;t t
12119 s,@MAKEINFO@,$MAKEINFO,;t t
12120 s,@install_sh@,$install_sh,;t t
12121 s,@STRIP@,$STRIP,;t t
12122 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12123 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12124 s,@mkdir_p@,$mkdir_p,;t t
12125 s,@AWK@,$AWK,;t t
12126 s,@SET_MAKE@,$SET_MAKE,;t t
12127 s,@am__leading_dot@,$am__leading_dot,;t t
12128 s,@AMTAR@,$AMTAR,;t t
12129 s,@am__tar@,$am__tar,;t t
12130 s,@am__untar@,$am__untar,;t t
12131 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12132 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12133 s,@MAINT@,$MAINT,;t t
12134 s,@multi_basedir@,$multi_basedir,;t t
12135 s,@toolexecdir@,$toolexecdir,;t t
12136 s,@toolexeclibdir@,$toolexeclibdir,;t t
12137 s,@CC@,$CC,;t t
12138 s,@ac_ct_CC@,$ac_ct_CC,;t t
12139 s,@EXEEXT@,$EXEEXT,;t t
12140 s,@OBJEXT@,$OBJEXT,;t t
12141 s,@CFLAGS@,$CFLAGS,;t t
12142 s,@AS@,$AS,;t t
12143 s,@ac_ct_AS@,$ac_ct_AS,;t t
12144 s,@AR@,$AR,;t t
12145 s,@ac_ct_AR@,$ac_ct_AR,;t t
12146 s,@RANLIB@,$RANLIB,;t t
12147 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12148 s,@LN_S@,$LN_S,;t t
12149 s,@LIBTOOL@,$LIBTOOL,;t t
12150 s,@enable_shared@,$enable_shared,;t t
12151 s,@enable_static@,$enable_static,;t t
12152 s,@FC@,$FC,;t t
12153 s,@FCFLAGS@,$FCFLAGS,;t t
12154 s,@LDFLAGS@,$LDFLAGS,;t t
12155 s,@ac_ct_FC@,$ac_ct_FC,;t t
12156 s,@extra_ldflags_libgfortran@,$extra_ldflags_libgfortran,;t t
12157 s,@CPP@,$CPP,;t t
12158 s,@CPPFLAGS@,$CPPFLAGS,;t t
12159 s,@EGREP@,$EGREP,;t t
12160 s,@MATH_OBJ@,$MATH_OBJ,;t t
12161 s,@LIBOBJS@,$LIBOBJS,;t t
12162 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12163 CEOF
12164
12165 _ACEOF
12166
12167   cat >>$CONFIG_STATUS <<\_ACEOF
12168   # Split the substitutions into bite-sized pieces for seds with
12169   # small command number limits, like on Digital OSF/1 and HP-UX.
12170   ac_max_sed_lines=48
12171   ac_sed_frag=1 # Number of current file.
12172   ac_beg=1 # First line for current file.
12173   ac_end=$ac_max_sed_lines # Line after last line for current file.
12174   ac_more_lines=:
12175   ac_sed_cmds=
12176   while $ac_more_lines; do
12177     if test $ac_beg -gt 1; then
12178       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12179     else
12180       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12181     fi
12182     if test ! -s $tmp/subs.frag; then
12183       ac_more_lines=false
12184     else
12185       # The purpose of the label and of the branching condition is to
12186       # speed up the sed processing (if there are no `@' at all, there
12187       # is no need to browse any of the substitutions).
12188       # These are the two extra sed commands mentioned above.
12189       (echo ':t
12190   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12191       if test -z "$ac_sed_cmds"; then
12192         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12193       else
12194         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12195       fi
12196       ac_sed_frag=`expr $ac_sed_frag + 1`
12197       ac_beg=$ac_end
12198       ac_end=`expr $ac_end + $ac_max_sed_lines`
12199     fi
12200   done
12201   if test -z "$ac_sed_cmds"; then
12202     ac_sed_cmds=cat
12203   fi
12204 fi # test -n "$CONFIG_FILES"
12205
12206 _ACEOF
12207 cat >>$CONFIG_STATUS <<\_ACEOF
12208 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12209   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12210   case $ac_file in
12211   - | *:- | *:-:* ) # input from stdin
12212         cat >$tmp/stdin
12213         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12214         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12215   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12216         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12217   * )   ac_file_in=$ac_file.in ;;
12218   esac
12219
12220   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12221   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12222 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12223          X"$ac_file" : 'X\(//\)[^/]' \| \
12224          X"$ac_file" : 'X\(//\)$' \| \
12225          X"$ac_file" : 'X\(/\)' \| \
12226          .     : '\(.\)' 2>/dev/null ||
12227 echo X"$ac_file" |
12228     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12229           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12230           /^X\(\/\/\)$/{ s//\1/; q; }
12231           /^X\(\/\).*/{ s//\1/; q; }
12232           s/.*/./; q'`
12233   { if $as_mkdir_p; then
12234     mkdir -p "$ac_dir"
12235   else
12236     as_dir="$ac_dir"
12237     as_dirs=
12238     while test ! -d "$as_dir"; do
12239       as_dirs="$as_dir $as_dirs"
12240       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12241 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12242          X"$as_dir" : 'X\(//\)[^/]' \| \
12243          X"$as_dir" : 'X\(//\)$' \| \
12244          X"$as_dir" : 'X\(/\)' \| \
12245          .     : '\(.\)' 2>/dev/null ||
12246 echo X"$as_dir" |
12247     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12248           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12249           /^X\(\/\/\)$/{ s//\1/; q; }
12250           /^X\(\/\).*/{ s//\1/; q; }
12251           s/.*/./; q'`
12252     done
12253     test ! -n "$as_dirs" || mkdir $as_dirs
12254   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12255 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12256    { (exit 1); exit 1; }; }; }
12257
12258   ac_builddir=.
12259
12260 if test "$ac_dir" != .; then
12261   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12262   # A "../" for each directory in $ac_dir_suffix.
12263   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12264 else
12265   ac_dir_suffix= ac_top_builddir=
12266 fi
12267
12268 case $srcdir in
12269   .)  # No --srcdir option.  We are building in place.
12270     ac_srcdir=.
12271     if test -z "$ac_top_builddir"; then
12272        ac_top_srcdir=.
12273     else
12274        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12275     fi ;;
12276   [\\/]* | ?:[\\/]* )  # Absolute path.
12277     ac_srcdir=$srcdir$ac_dir_suffix;
12278     ac_top_srcdir=$srcdir ;;
12279   *) # Relative path.
12280     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12281     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12282 esac
12283
12284 # Do not use `cd foo && pwd` to compute absolute paths, because
12285 # the directories may not exist.
12286 case `pwd` in
12287 .) ac_abs_builddir="$ac_dir";;
12288 *)
12289   case "$ac_dir" in
12290   .) ac_abs_builddir=`pwd`;;
12291   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12292   *) ac_abs_builddir=`pwd`/"$ac_dir";;
12293   esac;;
12294 esac
12295 case $ac_abs_builddir in
12296 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12297 *)
12298   case ${ac_top_builddir}. in
12299   .) ac_abs_top_builddir=$ac_abs_builddir;;
12300   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12301   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12302   esac;;
12303 esac
12304 case $ac_abs_builddir in
12305 .) ac_abs_srcdir=$ac_srcdir;;
12306 *)
12307   case $ac_srcdir in
12308   .) ac_abs_srcdir=$ac_abs_builddir;;
12309   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12310   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12311   esac;;
12312 esac
12313 case $ac_abs_builddir in
12314 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12315 *)
12316   case $ac_top_srcdir in
12317   .) ac_abs_top_srcdir=$ac_abs_builddir;;
12318   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12319   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12320   esac;;
12321 esac
12322
12323
12324   case $INSTALL in
12325   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12326   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12327   esac
12328
12329   if test x"$ac_file" != x-; then
12330     { echo "$as_me:$LINENO: creating $ac_file" >&5
12331 echo "$as_me: creating $ac_file" >&6;}
12332     rm -f "$ac_file"
12333   fi
12334   # Let's still pretend it is `configure' which instantiates (i.e., don't
12335   # use $as_me), people would be surprised to read:
12336   #    /* config.h.  Generated by config.status.  */
12337   if test x"$ac_file" = x-; then
12338     configure_input=
12339   else
12340     configure_input="$ac_file.  "
12341   fi
12342   configure_input=$configure_input"Generated from `echo $ac_file_in |
12343                                      sed 's,.*/,,'` by configure."
12344
12345   # First look for the input files in the build tree, otherwise in the
12346   # src tree.
12347   ac_file_inputs=`IFS=:
12348     for f in $ac_file_in; do
12349       case $f in
12350       -) echo $tmp/stdin ;;
12351       [\\/$]*)
12352          # Absolute (can't be DOS-style, as IFS=:)
12353          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12354 echo "$as_me: error: cannot find input file: $f" >&2;}
12355    { (exit 1); exit 1; }; }
12356          echo "$f";;
12357       *) # Relative
12358          if test -f "$f"; then
12359            # Build tree
12360            echo "$f"
12361          elif test -f "$srcdir/$f"; then
12362            # Source tree
12363            echo "$srcdir/$f"
12364          else
12365            # /dev/null tree
12366            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12367 echo "$as_me: error: cannot find input file: $f" >&2;}
12368    { (exit 1); exit 1; }; }
12369          fi;;
12370       esac
12371     done` || { (exit 1); exit 1; }
12372 _ACEOF
12373 cat >>$CONFIG_STATUS <<_ACEOF
12374   sed "$ac_vpsub
12375 $extrasub
12376 _ACEOF
12377 cat >>$CONFIG_STATUS <<\_ACEOF
12378 :t
12379 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12380 s,@configure_input@,$configure_input,;t t
12381 s,@srcdir@,$ac_srcdir,;t t
12382 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12383 s,@top_srcdir@,$ac_top_srcdir,;t t
12384 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12385 s,@builddir@,$ac_builddir,;t t
12386 s,@abs_builddir@,$ac_abs_builddir,;t t
12387 s,@top_builddir@,$ac_top_builddir,;t t
12388 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12389 s,@INSTALL@,$ac_INSTALL,;t t
12390 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12391   rm -f $tmp/stdin
12392   if test x"$ac_file" != x-; then
12393     mv $tmp/out $ac_file
12394   else
12395     cat $tmp/out
12396     rm -f $tmp/out
12397   fi
12398
12399 done
12400 _ACEOF
12401 cat >>$CONFIG_STATUS <<\_ACEOF
12402
12403 #
12404 # CONFIG_HEADER section.
12405 #
12406
12407 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12408 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12409 #
12410 # ac_d sets the value in "#define NAME VALUE" lines.
12411 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
12412 ac_dB='[         ].*$,\1#\2'
12413 ac_dC=' '
12414 ac_dD=',;t'
12415 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12416 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
12417 ac_uB='$,\1#\2define\3'
12418 ac_uC=' '
12419 ac_uD=',;t'
12420
12421 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12422   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12423   case $ac_file in
12424   - | *:- | *:-:* ) # input from stdin
12425         cat >$tmp/stdin
12426         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12427         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12428   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12429         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12430   * )   ac_file_in=$ac_file.in ;;
12431   esac
12432
12433   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12434 echo "$as_me: creating $ac_file" >&6;}
12435
12436   # First look for the input files in the build tree, otherwise in the
12437   # src tree.
12438   ac_file_inputs=`IFS=:
12439     for f in $ac_file_in; do
12440       case $f in
12441       -) echo $tmp/stdin ;;
12442       [\\/$]*)
12443          # Absolute (can't be DOS-style, as IFS=:)
12444          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12445 echo "$as_me: error: cannot find input file: $f" >&2;}
12446    { (exit 1); exit 1; }; }
12447          # Do quote $f, to prevent DOS paths from being IFS'd.
12448          echo "$f";;
12449       *) # Relative
12450          if test -f "$f"; then
12451            # Build tree
12452            echo "$f"
12453          elif test -f "$srcdir/$f"; then
12454            # Source tree
12455            echo "$srcdir/$f"
12456          else
12457            # /dev/null tree
12458            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12459 echo "$as_me: error: cannot find input file: $f" >&2;}
12460    { (exit 1); exit 1; }; }
12461          fi;;
12462       esac
12463     done` || { (exit 1); exit 1; }
12464   # Remove the trailing spaces.
12465   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
12466
12467 _ACEOF
12468
12469 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12470 # `conftest.undefs', that substitutes the proper values into
12471 # config.h.in to produce config.h.  The first handles `#define'
12472 # templates, and the second `#undef' templates.
12473 # And first: Protect against being on the right side of a sed subst in
12474 # config.status.  Protect against being in an unquoted here document
12475 # in config.status.
12476 rm -f conftest.defines conftest.undefs
12477 # Using a here document instead of a string reduces the quoting nightmare.
12478 # Putting comments in sed scripts is not portable.
12479 #
12480 # `end' is used to avoid that the second main sed command (meant for
12481 # 0-ary CPP macros) applies to n-ary macro definitions.
12482 # See the Autoconf documentation for `clear'.
12483 cat >confdef2sed.sed <<\_ACEOF
12484 s/[\\&,]/\\&/g
12485 s,[\\$`],\\&,g
12486 t clear
12487 : clear
12488 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12489 t end
12490 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12491 : end
12492 _ACEOF
12493 # If some macros were called several times there might be several times
12494 # the same #defines, which is useless.  Nevertheless, we may not want to
12495 # sort them, since we want the *last* AC-DEFINE to be honored.
12496 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12497 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12498 rm -f confdef2sed.sed
12499
12500 # This sed command replaces #undef with comments.  This is necessary, for
12501 # example, in the case of _POSIX_SOURCE, which is predefined and required
12502 # on some systems where configure will not decide to define it.
12503 cat >>conftest.undefs <<\_ACEOF
12504 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12505 _ACEOF
12506
12507 # Break up conftest.defines because some shells have a limit on the size
12508 # of here documents, and old seds have small limits too (100 cmds).
12509 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12510 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12511 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12512 echo '  :' >>$CONFIG_STATUS
12513 rm -f conftest.tail
12514 while grep . conftest.defines >/dev/null
12515 do
12516   # Write a limited-size here document to $tmp/defines.sed.
12517   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12518   # Speed up: don't consider the non `#define' lines.
12519   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
12520   # Work around the forget-to-reset-the-flag bug.
12521   echo 't clr' >>$CONFIG_STATUS
12522   echo ': clr' >>$CONFIG_STATUS
12523   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12524   echo 'CEOF
12525   sed -f $tmp/defines.sed $tmp/in >$tmp/out
12526   rm -f $tmp/in
12527   mv $tmp/out $tmp/in
12528 ' >>$CONFIG_STATUS
12529   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12530   rm -f conftest.defines
12531   mv conftest.tail conftest.defines
12532 done
12533 rm -f conftest.defines
12534 echo '  fi # grep' >>$CONFIG_STATUS
12535 echo >>$CONFIG_STATUS
12536
12537 # Break up conftest.undefs because some shells have a limit on the size
12538 # of here documents, and old seds have small limits too (100 cmds).
12539 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
12540 rm -f conftest.tail
12541 while grep . conftest.undefs >/dev/null
12542 do
12543   # Write a limited-size here document to $tmp/undefs.sed.
12544   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12545   # Speed up: don't consider the non `#undef'
12546   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
12547   # Work around the forget-to-reset-the-flag bug.
12548   echo 't clr' >>$CONFIG_STATUS
12549   echo ': clr' >>$CONFIG_STATUS
12550   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12551   echo 'CEOF
12552   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12553   rm -f $tmp/in
12554   mv $tmp/out $tmp/in
12555 ' >>$CONFIG_STATUS
12556   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12557   rm -f conftest.undefs
12558   mv conftest.tail conftest.undefs
12559 done
12560 rm -f conftest.undefs
12561
12562 cat >>$CONFIG_STATUS <<\_ACEOF
12563   # Let's still pretend it is `configure' which instantiates (i.e., don't
12564   # use $as_me), people would be surprised to read:
12565   #    /* config.h.  Generated by config.status.  */
12566   if test x"$ac_file" = x-; then
12567     echo "/* Generated by configure.  */" >$tmp/config.h
12568   else
12569     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
12570   fi
12571   cat $tmp/in >>$tmp/config.h
12572   rm -f $tmp/in
12573   if test x"$ac_file" != x-; then
12574     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12575       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12576 echo "$as_me: $ac_file is unchanged" >&6;}
12577     else
12578       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12579 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12580          X"$ac_file" : 'X\(//\)[^/]' \| \
12581          X"$ac_file" : 'X\(//\)$' \| \
12582          X"$ac_file" : 'X\(/\)' \| \
12583          .     : '\(.\)' 2>/dev/null ||
12584 echo X"$ac_file" |
12585     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12586           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12587           /^X\(\/\/\)$/{ s//\1/; q; }
12588           /^X\(\/\).*/{ s//\1/; q; }
12589           s/.*/./; q'`
12590       { if $as_mkdir_p; then
12591     mkdir -p "$ac_dir"
12592   else
12593     as_dir="$ac_dir"
12594     as_dirs=
12595     while test ! -d "$as_dir"; do
12596       as_dirs="$as_dir $as_dirs"
12597       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12598 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12599          X"$as_dir" : 'X\(//\)[^/]' \| \
12600          X"$as_dir" : 'X\(//\)$' \| \
12601          X"$as_dir" : 'X\(/\)' \| \
12602          .     : '\(.\)' 2>/dev/null ||
12603 echo X"$as_dir" |
12604     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12605           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12606           /^X\(\/\/\)$/{ s//\1/; q; }
12607           /^X\(\/\).*/{ s//\1/; q; }
12608           s/.*/./; q'`
12609     done
12610     test ! -n "$as_dirs" || mkdir $as_dirs
12611   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12612 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12613    { (exit 1); exit 1; }; }; }
12614
12615       rm -f $ac_file
12616       mv $tmp/config.h $ac_file
12617     fi
12618   else
12619     cat $tmp/config.h
12620     rm -f $tmp/config.h
12621   fi
12622 # Compute $ac_file's index in $config_headers.
12623 _am_stamp_count=1
12624 for _am_header in $config_headers :; do
12625   case $_am_header in
12626     $ac_file | $ac_file:* )
12627       break ;;
12628     * )
12629       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12630   esac
12631 done
12632 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12633 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12634          X$ac_file : 'X\(//\)[^/]' \| \
12635          X$ac_file : 'X\(//\)$' \| \
12636          X$ac_file : 'X\(/\)' \| \
12637          .     : '\(.\)' 2>/dev/null ||
12638 echo X$ac_file |
12639     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12640           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12641           /^X\(\/\/\)$/{ s//\1/; q; }
12642           /^X\(\/\).*/{ s//\1/; q; }
12643           s/.*/./; q'`/stamp-h$_am_stamp_count
12644 done
12645 _ACEOF
12646 cat >>$CONFIG_STATUS <<\_ACEOF
12647
12648 #
12649 # CONFIG_COMMANDS section.
12650 #
12651 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12652   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12653   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12654   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12655 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12656          X"$ac_dest" : 'X\(//\)[^/]' \| \
12657          X"$ac_dest" : 'X\(//\)$' \| \
12658          X"$ac_dest" : 'X\(/\)' \| \
12659          .     : '\(.\)' 2>/dev/null ||
12660 echo X"$ac_dest" |
12661     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12662           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12663           /^X\(\/\/\)$/{ s//\1/; q; }
12664           /^X\(\/\).*/{ s//\1/; q; }
12665           s/.*/./; q'`
12666   { if $as_mkdir_p; then
12667     mkdir -p "$ac_dir"
12668   else
12669     as_dir="$ac_dir"
12670     as_dirs=
12671     while test ! -d "$as_dir"; do
12672       as_dirs="$as_dir $as_dirs"
12673       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12674 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12675          X"$as_dir" : 'X\(//\)[^/]' \| \
12676          X"$as_dir" : 'X\(//\)$' \| \
12677          X"$as_dir" : 'X\(/\)' \| \
12678          .     : '\(.\)' 2>/dev/null ||
12679 echo X"$as_dir" |
12680     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12681           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12682           /^X\(\/\/\)$/{ s//\1/; q; }
12683           /^X\(\/\).*/{ s//\1/; q; }
12684           s/.*/./; q'`
12685     done
12686     test ! -n "$as_dirs" || mkdir $as_dirs
12687   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12688 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12689    { (exit 1); exit 1; }; }; }
12690
12691   ac_builddir=.
12692
12693 if test "$ac_dir" != .; then
12694   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12695   # A "../" for each directory in $ac_dir_suffix.
12696   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12697 else
12698   ac_dir_suffix= ac_top_builddir=
12699 fi
12700
12701 case $srcdir in
12702   .)  # No --srcdir option.  We are building in place.
12703     ac_srcdir=.
12704     if test -z "$ac_top_builddir"; then
12705        ac_top_srcdir=.
12706     else
12707        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12708     fi ;;
12709   [\\/]* | ?:[\\/]* )  # Absolute path.
12710     ac_srcdir=$srcdir$ac_dir_suffix;
12711     ac_top_srcdir=$srcdir ;;
12712   *) # Relative path.
12713     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12714     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12715 esac
12716
12717 # Do not use `cd foo && pwd` to compute absolute paths, because
12718 # the directories may not exist.
12719 case `pwd` in
12720 .) ac_abs_builddir="$ac_dir";;
12721 *)
12722   case "$ac_dir" in
12723   .) ac_abs_builddir=`pwd`;;
12724   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12725   *) ac_abs_builddir=`pwd`/"$ac_dir";;
12726   esac;;
12727 esac
12728 case $ac_abs_builddir in
12729 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12730 *)
12731   case ${ac_top_builddir}. in
12732   .) ac_abs_top_builddir=$ac_abs_builddir;;
12733   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12734   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12735   esac;;
12736 esac
12737 case $ac_abs_builddir in
12738 .) ac_abs_srcdir=$ac_srcdir;;
12739 *)
12740   case $ac_srcdir in
12741   .) ac_abs_srcdir=$ac_abs_builddir;;
12742   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12743   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12744   esac;;
12745 esac
12746 case $ac_abs_builddir in
12747 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12748 *)
12749   case $ac_top_srcdir in
12750   .) ac_abs_top_srcdir=$ac_abs_builddir;;
12751   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12752   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12753   esac;;
12754 esac
12755
12756
12757   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12758 echo "$as_me: executing $ac_dest commands" >&6;}
12759   case $ac_dest in
12760     default-1 )
12761 # Only add multilib support code if we just rebuilt the top-level
12762 # Makefile.
12763 case " $CONFIG_FILES " in
12764  *" Makefile "*)
12765    ac_file=Makefile . ${multi_basedir}/config-ml.in
12766    ;;
12767 esac ;;
12768   esac
12769 done
12770 _ACEOF
12771
12772 cat >>$CONFIG_STATUS <<\_ACEOF
12773
12774 { (exit 0); exit 0; }
12775 _ACEOF
12776 chmod +x $CONFIG_STATUS
12777 ac_clean_files=$ac_clean_files_save
12778
12779
12780 # configure is writing to config.log, and then calls config.status.
12781 # config.status does its own redirection, appending to config.log.
12782 # Unfortunately, on DOS this fails, as config.log is still kept open
12783 # by configure, so config.status won't be able to write to it; its
12784 # output is simply discarded.  So we exec the FD to /dev/null,
12785 # effectively closing config.log, so it can be properly (re)opened and
12786 # appended to by config.status.  When coming back to configure, we
12787 # need to make the FD available again.
12788 if test "$no_create" != yes; then
12789   ac_cs_success=:
12790   ac_config_status_args=
12791   test "$silent" = yes &&
12792     ac_config_status_args="$ac_config_status_args --quiet"
12793   exec 5>/dev/null
12794   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12795   exec 5>>config.log
12796   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12797   # would make configure fail if this is the last instruction.
12798   $ac_cs_success || { (exit 1); exit 1; }
12799 fi
12800