OSDN Git Service

PR libfortran/16137
[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 AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT multi_basedir gcc_version 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 F77 FFLAGS LDFLAGS ac_ct_F77 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_F77_set=${F77+set}
753 ac_env_F77_value=$F77
754 ac_cv_env_F77_set=${F77+set}
755 ac_cv_env_F77_value=$F77
756 ac_env_FFLAGS_set=${FFLAGS+set}
757 ac_env_FFLAGS_value=$FFLAGS
758 ac_cv_env_FFLAGS_set=${FFLAGS+set}
759 ac_cv_env_FFLAGS_value=$FFLAGS
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   F77         Fortran 77 compiler command
879   FFLAGS      Fortran 77 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.8"
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   # Keeping the `.' argument allows $(mkdir_p) to be used without
1644   # argument.  Indeed, we sometimes output rules like
1645   #   $(mkdir_p) $(somedir)
1646   # where $(somedir) is conditionally defined.
1647   # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1648   # expensive solution, as it forces Make to start a sub-shell.)
1649   mkdir_p='mkdir -p -- .'
1650 else
1651   # On NextStep and OpenStep, the `mkdir' command does not
1652   # recognize any option.  It will interpret all options as
1653   # directories to create, and then abort because `.' already
1654   # exists.
1655   for d in ./-p ./--version;
1656   do
1657     test -d $d && rmdir $d
1658   done
1659   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1660   if test -f "$ac_aux_dir/mkinstalldirs"; then
1661     mkdir_p='$(mkinstalldirs)'
1662   else
1663     mkdir_p='$(install_sh) -d'
1664   fi
1665 fi
1666
1667 for ac_prog in gawk mawk nawk awk
1668 do
1669   # Extract the first word of "$ac_prog", so it can be a program name with args.
1670 set dummy $ac_prog; ac_word=$2
1671 echo "$as_me:$LINENO: checking for $ac_word" >&5
1672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1673 if test "${ac_cv_prog_AWK+set}" = set; then
1674   echo $ECHO_N "(cached) $ECHO_C" >&6
1675 else
1676   if test -n "$AWK"; then
1677   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1678 else
1679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1680 for as_dir in $PATH
1681 do
1682   IFS=$as_save_IFS
1683   test -z "$as_dir" && as_dir=.
1684   for ac_exec_ext in '' $ac_executable_extensions; do
1685   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1686     ac_cv_prog_AWK="$ac_prog"
1687     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1688     break 2
1689   fi
1690 done
1691 done
1692
1693 fi
1694 fi
1695 AWK=$ac_cv_prog_AWK
1696 if test -n "$AWK"; then
1697   echo "$as_me:$LINENO: result: $AWK" >&5
1698 echo "${ECHO_T}$AWK" >&6
1699 else
1700   echo "$as_me:$LINENO: result: no" >&5
1701 echo "${ECHO_T}no" >&6
1702 fi
1703
1704   test -n "$AWK" && break
1705 done
1706
1707 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1708 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1709 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1710 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1711   echo $ECHO_N "(cached) $ECHO_C" >&6
1712 else
1713   cat >conftest.make <<\_ACEOF
1714 all:
1715         @echo 'ac_maketemp="$(MAKE)"'
1716 _ACEOF
1717 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1718 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1719 if test -n "$ac_maketemp"; then
1720   eval ac_cv_prog_make_${ac_make}_set=yes
1721 else
1722   eval ac_cv_prog_make_${ac_make}_set=no
1723 fi
1724 rm -f conftest.make
1725 fi
1726 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1727   echo "$as_me:$LINENO: result: yes" >&5
1728 echo "${ECHO_T}yes" >&6
1729   SET_MAKE=
1730 else
1731   echo "$as_me:$LINENO: result: no" >&5
1732 echo "${ECHO_T}no" >&6
1733   SET_MAKE="MAKE=${MAKE-make}"
1734 fi
1735
1736 rm -rf .tst 2>/dev/null
1737 mkdir .tst 2>/dev/null
1738 if test -d .tst; then
1739   am__leading_dot=.
1740 else
1741   am__leading_dot=_
1742 fi
1743 rmdir .tst 2>/dev/null
1744
1745 # test to see if srcdir already configured
1746 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1747    test -f $srcdir/config.status; then
1748   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1749 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1750    { (exit 1); exit 1; }; }
1751 fi
1752
1753 # test whether we have cygpath
1754 if test -z "$CYGPATH_W"; then
1755   if (cygpath --version) >/dev/null 2>/dev/null; then
1756     CYGPATH_W='cygpath -w'
1757   else
1758     CYGPATH_W=echo
1759   fi
1760 fi
1761
1762
1763 # Define the identity of the package.
1764  PACKAGE='libgfortran'
1765  VERSION='0.2'
1766
1767
1768 # Some tools Automake needs.
1769
1770 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1771
1772
1773 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1774
1775
1776 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1777
1778
1779 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1780
1781
1782 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1783
1784
1785 AMTAR=${AMTAR-"${am_missing_run}tar"}
1786
1787 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1788
1789 # Installed binaries are usually stripped using `strip' when the user
1790 # run `make install-strip'.  However `strip' might not be the right
1791 # tool to use in cross-compilation environments, therefore Automake
1792 # will honor the `STRIP' environment variable to overrule this program.
1793 if test "$cross_compiling" != no; then
1794   if test -n "$ac_tool_prefix"; then
1795   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1796 set dummy ${ac_tool_prefix}strip; ac_word=$2
1797 echo "$as_me:$LINENO: checking for $ac_word" >&5
1798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1799 if test "${ac_cv_prog_STRIP+set}" = set; then
1800   echo $ECHO_N "(cached) $ECHO_C" >&6
1801 else
1802   if test -n "$STRIP"; then
1803   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1804 else
1805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1806 for as_dir in $PATH
1807 do
1808   IFS=$as_save_IFS
1809   test -z "$as_dir" && as_dir=.
1810   for ac_exec_ext in '' $ac_executable_extensions; do
1811   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1812     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1814     break 2
1815   fi
1816 done
1817 done
1818
1819 fi
1820 fi
1821 STRIP=$ac_cv_prog_STRIP
1822 if test -n "$STRIP"; then
1823   echo "$as_me:$LINENO: result: $STRIP" >&5
1824 echo "${ECHO_T}$STRIP" >&6
1825 else
1826   echo "$as_me:$LINENO: result: no" >&5
1827 echo "${ECHO_T}no" >&6
1828 fi
1829
1830 fi
1831 if test -z "$ac_cv_prog_STRIP"; then
1832   ac_ct_STRIP=$STRIP
1833   # Extract the first word of "strip", so it can be a program name with args.
1834 set dummy strip; ac_word=$2
1835 echo "$as_me:$LINENO: checking for $ac_word" >&5
1836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1837 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1838   echo $ECHO_N "(cached) $ECHO_C" >&6
1839 else
1840   if test -n "$ac_ct_STRIP"; then
1841   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1842 else
1843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1844 for as_dir in $PATH
1845 do
1846   IFS=$as_save_IFS
1847   test -z "$as_dir" && as_dir=.
1848   for ac_exec_ext in '' $ac_executable_extensions; do
1849   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1850     ac_cv_prog_ac_ct_STRIP="strip"
1851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1852     break 2
1853   fi
1854 done
1855 done
1856
1857   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1858 fi
1859 fi
1860 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1861 if test -n "$ac_ct_STRIP"; then
1862   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1863 echo "${ECHO_T}$ac_ct_STRIP" >&6
1864 else
1865   echo "$as_me:$LINENO: result: no" >&5
1866 echo "${ECHO_T}no" >&6
1867 fi
1868
1869   STRIP=$ac_ct_STRIP
1870 else
1871   STRIP="$ac_cv_prog_STRIP"
1872 fi
1873
1874 fi
1875 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1876
1877 # We need awk for the "check" target.  The system "awk" is bad on
1878 # some platforms.
1879
1880
1881
1882
1883 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1884 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1885     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1886 if test "${enable_maintainer_mode+set}" = set; then
1887   enableval="$enable_maintainer_mode"
1888   USE_MAINTAINER_MODE=$enableval
1889 else
1890   USE_MAINTAINER_MODE=no
1891 fi;
1892   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1893 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1894
1895
1896 if test $USE_MAINTAINER_MODE = yes; then
1897   MAINTAINER_MODE_TRUE=
1898   MAINTAINER_MODE_FALSE='#'
1899 else
1900   MAINTAINER_MODE_TRUE='#'
1901   MAINTAINER_MODE_FALSE=
1902 fi
1903
1904   MAINT=$MAINTAINER_MODE_TRUE
1905
1906
1907 # Default to --enable-multilib
1908 # Check whether --enable-multilib or --disable-multilib was given.
1909 if test "${enable_multilib+set}" = set; then
1910   enableval="$enable_multilib"
1911   case "$enableval" in
1912   yes) multilib=yes ;;
1913   no)  multilib=no ;;
1914   *)   { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1915 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1916    { (exit 1); exit 1; }; } ;;
1917  esac
1918 else
1919   multilib=yes
1920 fi;
1921
1922 # We may get other options which we leave undocumented:
1923 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1924 # See config-ml.in if you want the gory details.
1925
1926 if test "$srcdir" = "."; then
1927   if test "$with_target_subdir" != "."; then
1928     multi_basedir="$srcdir/$with_multisrctop../.."
1929   else
1930     multi_basedir="$srcdir/$with_multisrctop.."
1931   fi
1932 else
1933   multi_basedir="$srcdir/.."
1934 fi
1935
1936
1937           ac_config_commands="$ac_config_commands default-1"
1938
1939
1940 # Handy for debugging:
1941 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
1942
1943 # Are we being configured with some form of cross compiler?
1944 # NB: We don't actually need to know this just now, but when, say, a test
1945 #     suite is included, we'll have to know.
1946 if test "$build" != "$host"; then
1947   LIBGFOR_IS_NATIVE=false
1948   GCC_NO_EXECUTABLES
1949 else
1950   LIBGFOR_IS_NATIVE=true
1951 fi
1952
1953 # Process the option "--enable-version-specific-runtime-libs"
1954 gcc_version_trigger=${srcdir}/../gcc/version.c
1955 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
1956 gcc_version=`echo ${gcc_version_full} | sed -e 's/\(^ *\) .*/\1/'`
1957
1958
1959 # Calculate toolexeclibdir
1960 # Also toolexecdir, though it's only used in toolexeclibdir
1961 case ${version_specific_libs} in
1962   yes)
1963     # Need the gcc compiler version to know where to install libraries
1964     # and header files if --enable-version-specific-runtime-libs option
1965     # is selected.
1966     toolexecdir='$(libdir)/gcc/$(target_alias)'
1967     toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
1968     ;;
1969   no)
1970     if test -n "$with_cross_host" &&
1971        test x"$with_cross_host" != x"no"; then
1972       # Install a library built with a cross compiler in tooldir, not libdir.
1973       toolexecdir='$(exec_prefix)/$(target_alias)'
1974       toolexeclibdir='$(toolexecdir)/lib'
1975     else
1976       toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
1977       toolexeclibdir='$(libdir)'
1978     fi
1979     multi_os_directory=`$CC -print-multi-os-directory`
1980     case $multi_os_directory in
1981       .) ;; # Avoid trailing /.
1982       *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
1983     esac
1984     ;;
1985 esac
1986
1987
1988
1989 # Check the compiler.
1990 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
1991 # We must force CC to /not/ be precious variables; otherwise
1992 # the wrong, non-multilib-adjusted value will be used in multilibs.
1993 # As a side effect, we have to subst CFLAGS ourselves.
1994
1995
1996
1997 ac_ext=c
1998 ac_cpp='$CPP $CPPFLAGS'
1999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2002 if test -n "$ac_tool_prefix"; then
2003   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2004 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2005 echo "$as_me:$LINENO: checking for $ac_word" >&5
2006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2007 if test "${ac_cv_prog_CC+set}" = set; then
2008   echo $ECHO_N "(cached) $ECHO_C" >&6
2009 else
2010   if test -n "$CC"; then
2011   ac_cv_prog_CC="$CC" # Let the user override the test.
2012 else
2013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014 for as_dir in $PATH
2015 do
2016   IFS=$as_save_IFS
2017   test -z "$as_dir" && as_dir=.
2018   for ac_exec_ext in '' $ac_executable_extensions; do
2019   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2020     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2021     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2022     break 2
2023   fi
2024 done
2025 done
2026
2027 fi
2028 fi
2029 CC=$ac_cv_prog_CC
2030 if test -n "$CC"; then
2031   echo "$as_me:$LINENO: result: $CC" >&5
2032 echo "${ECHO_T}$CC" >&6
2033 else
2034   echo "$as_me:$LINENO: result: no" >&5
2035 echo "${ECHO_T}no" >&6
2036 fi
2037
2038 fi
2039 if test -z "$ac_cv_prog_CC"; then
2040   ac_ct_CC=$CC
2041   # Extract the first word of "gcc", so it can be a program name with args.
2042 set dummy gcc; ac_word=$2
2043 echo "$as_me:$LINENO: checking for $ac_word" >&5
2044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2045 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2046   echo $ECHO_N "(cached) $ECHO_C" >&6
2047 else
2048   if test -n "$ac_ct_CC"; then
2049   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2050 else
2051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052 for as_dir in $PATH
2053 do
2054   IFS=$as_save_IFS
2055   test -z "$as_dir" && as_dir=.
2056   for ac_exec_ext in '' $ac_executable_extensions; do
2057   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2058     ac_cv_prog_ac_ct_CC="gcc"
2059     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2060     break 2
2061   fi
2062 done
2063 done
2064
2065 fi
2066 fi
2067 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2068 if test -n "$ac_ct_CC"; then
2069   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2070 echo "${ECHO_T}$ac_ct_CC" >&6
2071 else
2072   echo "$as_me:$LINENO: result: no" >&5
2073 echo "${ECHO_T}no" >&6
2074 fi
2075
2076   CC=$ac_ct_CC
2077 else
2078   CC="$ac_cv_prog_CC"
2079 fi
2080
2081 if test -z "$CC"; then
2082   if test -n "$ac_tool_prefix"; then
2083   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2084 set dummy ${ac_tool_prefix}cc; ac_word=$2
2085 echo "$as_me:$LINENO: checking for $ac_word" >&5
2086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2087 if test "${ac_cv_prog_CC+set}" = set; then
2088   echo $ECHO_N "(cached) $ECHO_C" >&6
2089 else
2090   if test -n "$CC"; then
2091   ac_cv_prog_CC="$CC" # Let the user override the test.
2092 else
2093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2094 for as_dir in $PATH
2095 do
2096   IFS=$as_save_IFS
2097   test -z "$as_dir" && as_dir=.
2098   for ac_exec_ext in '' $ac_executable_extensions; do
2099   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2100     ac_cv_prog_CC="${ac_tool_prefix}cc"
2101     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2102     break 2
2103   fi
2104 done
2105 done
2106
2107 fi
2108 fi
2109 CC=$ac_cv_prog_CC
2110 if test -n "$CC"; then
2111   echo "$as_me:$LINENO: result: $CC" >&5
2112 echo "${ECHO_T}$CC" >&6
2113 else
2114   echo "$as_me:$LINENO: result: no" >&5
2115 echo "${ECHO_T}no" >&6
2116 fi
2117
2118 fi
2119 if test -z "$ac_cv_prog_CC"; then
2120   ac_ct_CC=$CC
2121   # Extract the first word of "cc", so it can be a program name with args.
2122 set dummy cc; ac_word=$2
2123 echo "$as_me:$LINENO: checking for $ac_word" >&5
2124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2125 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2126   echo $ECHO_N "(cached) $ECHO_C" >&6
2127 else
2128   if test -n "$ac_ct_CC"; then
2129   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2130 else
2131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2132 for as_dir in $PATH
2133 do
2134   IFS=$as_save_IFS
2135   test -z "$as_dir" && as_dir=.
2136   for ac_exec_ext in '' $ac_executable_extensions; do
2137   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2138     ac_cv_prog_ac_ct_CC="cc"
2139     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2140     break 2
2141   fi
2142 done
2143 done
2144
2145 fi
2146 fi
2147 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2148 if test -n "$ac_ct_CC"; then
2149   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2150 echo "${ECHO_T}$ac_ct_CC" >&6
2151 else
2152   echo "$as_me:$LINENO: result: no" >&5
2153 echo "${ECHO_T}no" >&6
2154 fi
2155
2156   CC=$ac_ct_CC
2157 else
2158   CC="$ac_cv_prog_CC"
2159 fi
2160
2161 fi
2162 if test -z "$CC"; then
2163   # Extract the first word of "cc", so it can be a program name with args.
2164 set dummy cc; ac_word=$2
2165 echo "$as_me:$LINENO: checking for $ac_word" >&5
2166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2167 if test "${ac_cv_prog_CC+set}" = set; then
2168   echo $ECHO_N "(cached) $ECHO_C" >&6
2169 else
2170   if test -n "$CC"; then
2171   ac_cv_prog_CC="$CC" # Let the user override the test.
2172 else
2173   ac_prog_rejected=no
2174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2175 for as_dir in $PATH
2176 do
2177   IFS=$as_save_IFS
2178   test -z "$as_dir" && as_dir=.
2179   for ac_exec_ext in '' $ac_executable_extensions; do
2180   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2181     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2182        ac_prog_rejected=yes
2183        continue
2184      fi
2185     ac_cv_prog_CC="cc"
2186     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2187     break 2
2188   fi
2189 done
2190 done
2191
2192 if test $ac_prog_rejected = yes; then
2193   # We found a bogon in the path, so make sure we never use it.
2194   set dummy $ac_cv_prog_CC
2195   shift
2196   if test $# != 0; then
2197     # We chose a different compiler from the bogus one.
2198     # However, it has the same basename, so the bogon will be chosen
2199     # first if we set CC to just the basename; use the full file name.
2200     shift
2201     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2202   fi
2203 fi
2204 fi
2205 fi
2206 CC=$ac_cv_prog_CC
2207 if test -n "$CC"; then
2208   echo "$as_me:$LINENO: result: $CC" >&5
2209 echo "${ECHO_T}$CC" >&6
2210 else
2211   echo "$as_me:$LINENO: result: no" >&5
2212 echo "${ECHO_T}no" >&6
2213 fi
2214
2215 fi
2216 if test -z "$CC"; then
2217   if test -n "$ac_tool_prefix"; then
2218   for ac_prog in cl
2219   do
2220     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2221 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2222 echo "$as_me:$LINENO: checking for $ac_word" >&5
2223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2224 if test "${ac_cv_prog_CC+set}" = set; then
2225   echo $ECHO_N "(cached) $ECHO_C" >&6
2226 else
2227   if test -n "$CC"; then
2228   ac_cv_prog_CC="$CC" # Let the user override the test.
2229 else
2230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2231 for as_dir in $PATH
2232 do
2233   IFS=$as_save_IFS
2234   test -z "$as_dir" && as_dir=.
2235   for ac_exec_ext in '' $ac_executable_extensions; do
2236   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2237     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2238     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2239     break 2
2240   fi
2241 done
2242 done
2243
2244 fi
2245 fi
2246 CC=$ac_cv_prog_CC
2247 if test -n "$CC"; then
2248   echo "$as_me:$LINENO: result: $CC" >&5
2249 echo "${ECHO_T}$CC" >&6
2250 else
2251   echo "$as_me:$LINENO: result: no" >&5
2252 echo "${ECHO_T}no" >&6
2253 fi
2254
2255     test -n "$CC" && break
2256   done
2257 fi
2258 if test -z "$CC"; then
2259   ac_ct_CC=$CC
2260   for ac_prog in cl
2261 do
2262   # Extract the first word of "$ac_prog", so it can be a program name with args.
2263 set dummy $ac_prog; ac_word=$2
2264 echo "$as_me:$LINENO: checking for $ac_word" >&5
2265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2266 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2267   echo $ECHO_N "(cached) $ECHO_C" >&6
2268 else
2269   if test -n "$ac_ct_CC"; then
2270   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2271 else
2272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2273 for as_dir in $PATH
2274 do
2275   IFS=$as_save_IFS
2276   test -z "$as_dir" && as_dir=.
2277   for ac_exec_ext in '' $ac_executable_extensions; do
2278   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2279     ac_cv_prog_ac_ct_CC="$ac_prog"
2280     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2281     break 2
2282   fi
2283 done
2284 done
2285
2286 fi
2287 fi
2288 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2289 if test -n "$ac_ct_CC"; then
2290   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2291 echo "${ECHO_T}$ac_ct_CC" >&6
2292 else
2293   echo "$as_me:$LINENO: result: no" >&5
2294 echo "${ECHO_T}no" >&6
2295 fi
2296
2297   test -n "$ac_ct_CC" && break
2298 done
2299
2300   CC=$ac_ct_CC
2301 fi
2302
2303 fi
2304
2305
2306 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2307 See \`config.log' for more details." >&5
2308 echo "$as_me: error: no acceptable C compiler found in \$PATH
2309 See \`config.log' for more details." >&2;}
2310    { (exit 1); exit 1; }; }
2311
2312 # Provide some information about the compiler.
2313 echo "$as_me:$LINENO:" \
2314      "checking for C compiler version" >&5
2315 ac_compiler=`set X $ac_compile; echo $2`
2316 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2317   (eval $ac_compiler --version </dev/null >&5) 2>&5
2318   ac_status=$?
2319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320   (exit $ac_status); }
2321 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2322   (eval $ac_compiler -v </dev/null >&5) 2>&5
2323   ac_status=$?
2324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325   (exit $ac_status); }
2326 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2327   (eval $ac_compiler -V </dev/null >&5) 2>&5
2328   ac_status=$?
2329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330   (exit $ac_status); }
2331
2332 cat >conftest.$ac_ext <<_ACEOF
2333 /* confdefs.h.  */
2334 _ACEOF
2335 cat confdefs.h >>conftest.$ac_ext
2336 cat >>conftest.$ac_ext <<_ACEOF
2337 /* end confdefs.h.  */
2338
2339 int
2340 main ()
2341 {
2342
2343   ;
2344   return 0;
2345 }
2346 _ACEOF
2347 ac_clean_files_save=$ac_clean_files
2348 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2349 # Try to create an executable without -o first, disregard a.out.
2350 # It will help us diagnose broken compilers, and finding out an intuition
2351 # of exeext.
2352 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2353 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2354 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2355 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2356   (eval $ac_link_default) 2>&5
2357   ac_status=$?
2358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359   (exit $ac_status); }; then
2360   # Find the output, starting from the most likely.  This scheme is
2361 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2362 # resort.
2363
2364 # Be careful to initialize this variable, since it used to be cached.
2365 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2366 ac_cv_exeext=
2367 # b.out is created by i960 compilers.
2368 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2369 do
2370   test -f "$ac_file" || continue
2371   case $ac_file in
2372     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2373         ;;
2374     conftest.$ac_ext )
2375         # This is the source file.
2376         ;;
2377     [ab].out )
2378         # We found the default executable, but exeext='' is most
2379         # certainly right.
2380         break;;
2381     *.* )
2382         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2383         # FIXME: I believe we export ac_cv_exeext for Libtool,
2384         # but it would be cool to find out if it's true.  Does anybody
2385         # maintain Libtool? --akim.
2386         export ac_cv_exeext
2387         break;;
2388     * )
2389         break;;
2390   esac
2391 done
2392 else
2393   echo "$as_me: failed program was:" >&5
2394 sed 's/^/| /' conftest.$ac_ext >&5
2395
2396 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2397 See \`config.log' for more details." >&5
2398 echo "$as_me: error: C compiler cannot create executables
2399 See \`config.log' for more details." >&2;}
2400    { (exit 77); exit 77; }; }
2401 fi
2402
2403 ac_exeext=$ac_cv_exeext
2404 echo "$as_me:$LINENO: result: $ac_file" >&5
2405 echo "${ECHO_T}$ac_file" >&6
2406
2407 # Check the compiler produces executables we can run.  If not, either
2408 # the compiler is broken, or we cross compile.
2409 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2410 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2411 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2412 # If not cross compiling, check that we can run a simple program.
2413 if test "$cross_compiling" != yes; then
2414   if { ac_try='./$ac_file'
2415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2416   (eval $ac_try) 2>&5
2417   ac_status=$?
2418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419   (exit $ac_status); }; }; then
2420     cross_compiling=no
2421   else
2422     if test "$cross_compiling" = maybe; then
2423         cross_compiling=yes
2424     else
2425         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2426 If you meant to cross compile, use \`--host'.
2427 See \`config.log' for more details." >&5
2428 echo "$as_me: error: cannot run C compiled programs.
2429 If you meant to cross compile, use \`--host'.
2430 See \`config.log' for more details." >&2;}
2431    { (exit 1); exit 1; }; }
2432     fi
2433   fi
2434 fi
2435 echo "$as_me:$LINENO: result: yes" >&5
2436 echo "${ECHO_T}yes" >&6
2437
2438 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2439 ac_clean_files=$ac_clean_files_save
2440 # Check the compiler produces executables we can run.  If not, either
2441 # the compiler is broken, or we cross compile.
2442 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2443 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2444 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2445 echo "${ECHO_T}$cross_compiling" >&6
2446
2447 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2448 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2450   (eval $ac_link) 2>&5
2451   ac_status=$?
2452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453   (exit $ac_status); }; then
2454   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2455 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2456 # work properly (i.e., refer to `conftest.exe'), while it won't with
2457 # `rm'.
2458 for ac_file in conftest.exe conftest conftest.*; do
2459   test -f "$ac_file" || continue
2460   case $ac_file in
2461     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2462     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2463           export ac_cv_exeext
2464           break;;
2465     * ) break;;
2466   esac
2467 done
2468 else
2469   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2470 See \`config.log' for more details." >&5
2471 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2472 See \`config.log' for more details." >&2;}
2473    { (exit 1); exit 1; }; }
2474 fi
2475
2476 rm -f conftest$ac_cv_exeext
2477 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2478 echo "${ECHO_T}$ac_cv_exeext" >&6
2479
2480 rm -f conftest.$ac_ext
2481 EXEEXT=$ac_cv_exeext
2482 ac_exeext=$EXEEXT
2483 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2484 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2485 if test "${ac_cv_objext+set}" = set; then
2486   echo $ECHO_N "(cached) $ECHO_C" >&6
2487 else
2488   cat >conftest.$ac_ext <<_ACEOF
2489 /* confdefs.h.  */
2490 _ACEOF
2491 cat confdefs.h >>conftest.$ac_ext
2492 cat >>conftest.$ac_ext <<_ACEOF
2493 /* end confdefs.h.  */
2494
2495 int
2496 main ()
2497 {
2498
2499   ;
2500   return 0;
2501 }
2502 _ACEOF
2503 rm -f conftest.o conftest.obj
2504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2505   (eval $ac_compile) 2>&5
2506   ac_status=$?
2507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508   (exit $ac_status); }; then
2509   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2510   case $ac_file in
2511     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2512     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2513        break;;
2514   esac
2515 done
2516 else
2517   echo "$as_me: failed program was:" >&5
2518 sed 's/^/| /' conftest.$ac_ext >&5
2519
2520 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2521 See \`config.log' for more details." >&5
2522 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2523 See \`config.log' for more details." >&2;}
2524    { (exit 1); exit 1; }; }
2525 fi
2526
2527 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2528 fi
2529 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2530 echo "${ECHO_T}$ac_cv_objext" >&6
2531 OBJEXT=$ac_cv_objext
2532 ac_objext=$OBJEXT
2533 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2534 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2535 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2536   echo $ECHO_N "(cached) $ECHO_C" >&6
2537 else
2538   cat >conftest.$ac_ext <<_ACEOF
2539 /* confdefs.h.  */
2540 _ACEOF
2541 cat confdefs.h >>conftest.$ac_ext
2542 cat >>conftest.$ac_ext <<_ACEOF
2543 /* end confdefs.h.  */
2544
2545 int
2546 main ()
2547 {
2548 #ifndef __GNUC__
2549        choke me
2550 #endif
2551
2552   ;
2553   return 0;
2554 }
2555 _ACEOF
2556 rm -f conftest.$ac_objext
2557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2558   (eval $ac_compile) 2>conftest.er1
2559   ac_status=$?
2560   grep -v '^ *+' conftest.er1 >conftest.err
2561   rm -f conftest.er1
2562   cat conftest.err >&5
2563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564   (exit $ac_status); } &&
2565          { ac_try='test -z "$ac_c_werror_flag"
2566                          || test ! -s conftest.err'
2567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568   (eval $ac_try) 2>&5
2569   ac_status=$?
2570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571   (exit $ac_status); }; } &&
2572          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2578   ac_compiler_gnu=yes
2579 else
2580   echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.$ac_ext >&5
2582
2583 ac_compiler_gnu=no
2584 fi
2585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2586 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2587
2588 fi
2589 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2590 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2591 GCC=`test $ac_compiler_gnu = yes && echo yes`
2592 ac_test_CFLAGS=${CFLAGS+set}
2593 ac_save_CFLAGS=$CFLAGS
2594 CFLAGS="-g"
2595 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2596 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2597 if test "${ac_cv_prog_cc_g+set}" = set; then
2598   echo $ECHO_N "(cached) $ECHO_C" >&6
2599 else
2600   cat >conftest.$ac_ext <<_ACEOF
2601 /* confdefs.h.  */
2602 _ACEOF
2603 cat confdefs.h >>conftest.$ac_ext
2604 cat >>conftest.$ac_ext <<_ACEOF
2605 /* end confdefs.h.  */
2606
2607 int
2608 main ()
2609 {
2610
2611   ;
2612   return 0;
2613 }
2614 _ACEOF
2615 rm -f conftest.$ac_objext
2616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2617   (eval $ac_compile) 2>conftest.er1
2618   ac_status=$?
2619   grep -v '^ *+' conftest.er1 >conftest.err
2620   rm -f conftest.er1
2621   cat conftest.err >&5
2622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623   (exit $ac_status); } &&
2624          { ac_try='test -z "$ac_c_werror_flag"
2625                          || test ! -s conftest.err'
2626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627   (eval $ac_try) 2>&5
2628   ac_status=$?
2629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630   (exit $ac_status); }; } &&
2631          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2637   ac_cv_prog_cc_g=yes
2638 else
2639   echo "$as_me: failed program was:" >&5
2640 sed 's/^/| /' conftest.$ac_ext >&5
2641
2642 ac_cv_prog_cc_g=no
2643 fi
2644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2645 fi
2646 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2647 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2648 if test "$ac_test_CFLAGS" = set; then
2649   CFLAGS=$ac_save_CFLAGS
2650 elif test $ac_cv_prog_cc_g = yes; then
2651   if test "$GCC" = yes; then
2652     CFLAGS="-g -O2"
2653   else
2654     CFLAGS="-g"
2655   fi
2656 else
2657   if test "$GCC" = yes; then
2658     CFLAGS="-O2"
2659   else
2660     CFLAGS=
2661   fi
2662 fi
2663 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2664 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2665 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2666   echo $ECHO_N "(cached) $ECHO_C" >&6
2667 else
2668   ac_cv_prog_cc_stdc=no
2669 ac_save_CC=$CC
2670 cat >conftest.$ac_ext <<_ACEOF
2671 /* confdefs.h.  */
2672 _ACEOF
2673 cat confdefs.h >>conftest.$ac_ext
2674 cat >>conftest.$ac_ext <<_ACEOF
2675 /* end confdefs.h.  */
2676 #include <stdarg.h>
2677 #include <stdio.h>
2678 #include <sys/types.h>
2679 #include <sys/stat.h>
2680 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2681 struct buf { int x; };
2682 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2683 static char *e (p, i)
2684      char **p;
2685      int i;
2686 {
2687   return p[i];
2688 }
2689 static char *f (char * (*g) (char **, int), char **p, ...)
2690 {
2691   char *s;
2692   va_list v;
2693   va_start (v,p);
2694   s = g (p, va_arg (v,int));
2695   va_end (v);
2696   return s;
2697 }
2698
2699 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2700    function prototypes and stuff, but not '\xHH' hex character constants.
2701    These don't provoke an error unfortunately, instead are silently treated
2702    as 'x'.  The following induces an error, until -std1 is added to get
2703    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2704    array size at least.  It's necessary to write '\x00'==0 to get something
2705    that's true only with -std1.  */
2706 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2707
2708 int test (int i, double x);
2709 struct s1 {int (*f) (int a);};
2710 struct s2 {int (*f) (double a);};
2711 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2712 int argc;
2713 char **argv;
2714 int
2715 main ()
2716 {
2717 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2718   ;
2719   return 0;
2720 }
2721 _ACEOF
2722 # Don't try gcc -ansi; that turns off useful extensions and
2723 # breaks some systems' header files.
2724 # AIX                   -qlanglvl=ansi
2725 # Ultrix and OSF/1      -std1
2726 # HP-UX 10.20 and later -Ae
2727 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2728 # SVR4                  -Xc -D__EXTENSIONS__
2729 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2730 do
2731   CC="$ac_save_CC $ac_arg"
2732   rm -f conftest.$ac_objext
2733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2734   (eval $ac_compile) 2>conftest.er1
2735   ac_status=$?
2736   grep -v '^ *+' conftest.er1 >conftest.err
2737   rm -f conftest.er1
2738   cat conftest.err >&5
2739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740   (exit $ac_status); } &&
2741          { ac_try='test -z "$ac_c_werror_flag"
2742                          || test ! -s conftest.err'
2743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2744   (eval $ac_try) 2>&5
2745   ac_status=$?
2746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747   (exit $ac_status); }; } &&
2748          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2754   ac_cv_prog_cc_stdc=$ac_arg
2755 break
2756 else
2757   echo "$as_me: failed program was:" >&5
2758 sed 's/^/| /' conftest.$ac_ext >&5
2759
2760 fi
2761 rm -f conftest.err conftest.$ac_objext
2762 done
2763 rm -f conftest.$ac_ext conftest.$ac_objext
2764 CC=$ac_save_CC
2765
2766 fi
2767
2768 case "x$ac_cv_prog_cc_stdc" in
2769   x|xno)
2770     echo "$as_me:$LINENO: result: none needed" >&5
2771 echo "${ECHO_T}none needed" >&6 ;;
2772   *)
2773     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2774 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2775     CC="$CC $ac_cv_prog_cc_stdc" ;;
2776 esac
2777
2778 # Some people use a C++ compiler to compile C.  Since we use `exit',
2779 # in C++ we need to declare it.  In case someone uses the same compiler
2780 # for both compiling C and C++ we need to have the C++ compiler decide
2781 # the declaration of exit, since it's the most demanding environment.
2782 cat >conftest.$ac_ext <<_ACEOF
2783 #ifndef __cplusplus
2784   choke me
2785 #endif
2786 _ACEOF
2787 rm -f conftest.$ac_objext
2788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2789   (eval $ac_compile) 2>conftest.er1
2790   ac_status=$?
2791   grep -v '^ *+' conftest.er1 >conftest.err
2792   rm -f conftest.er1
2793   cat conftest.err >&5
2794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795   (exit $ac_status); } &&
2796          { ac_try='test -z "$ac_c_werror_flag"
2797                          || test ! -s conftest.err'
2798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799   (eval $ac_try) 2>&5
2800   ac_status=$?
2801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802   (exit $ac_status); }; } &&
2803          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2809   for ac_declaration in \
2810    '' \
2811    'extern "C" void std::exit (int) throw (); using std::exit;' \
2812    'extern "C" void std::exit (int); using std::exit;' \
2813    'extern "C" void exit (int) throw ();' \
2814    'extern "C" void exit (int);' \
2815    'void exit (int);'
2816 do
2817   cat >conftest.$ac_ext <<_ACEOF
2818 /* confdefs.h.  */
2819 _ACEOF
2820 cat confdefs.h >>conftest.$ac_ext
2821 cat >>conftest.$ac_ext <<_ACEOF
2822 /* end confdefs.h.  */
2823 $ac_declaration
2824 #include <stdlib.h>
2825 int
2826 main ()
2827 {
2828 exit (42);
2829   ;
2830   return 0;
2831 }
2832 _ACEOF
2833 rm -f conftest.$ac_objext
2834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2835   (eval $ac_compile) 2>conftest.er1
2836   ac_status=$?
2837   grep -v '^ *+' conftest.er1 >conftest.err
2838   rm -f conftest.er1
2839   cat conftest.err >&5
2840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841   (exit $ac_status); } &&
2842          { ac_try='test -z "$ac_c_werror_flag"
2843                          || test ! -s conftest.err'
2844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845   (eval $ac_try) 2>&5
2846   ac_status=$?
2847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848   (exit $ac_status); }; } &&
2849          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2855   :
2856 else
2857   echo "$as_me: failed program was:" >&5
2858 sed 's/^/| /' conftest.$ac_ext >&5
2859
2860 continue
2861 fi
2862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2863   cat >conftest.$ac_ext <<_ACEOF
2864 /* confdefs.h.  */
2865 _ACEOF
2866 cat confdefs.h >>conftest.$ac_ext
2867 cat >>conftest.$ac_ext <<_ACEOF
2868 /* end confdefs.h.  */
2869 $ac_declaration
2870 int
2871 main ()
2872 {
2873 exit (42);
2874   ;
2875   return 0;
2876 }
2877 _ACEOF
2878 rm -f conftest.$ac_objext
2879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2880   (eval $ac_compile) 2>conftest.er1
2881   ac_status=$?
2882   grep -v '^ *+' conftest.er1 >conftest.err
2883   rm -f conftest.er1
2884   cat conftest.err >&5
2885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886   (exit $ac_status); } &&
2887          { ac_try='test -z "$ac_c_werror_flag"
2888                          || test ! -s conftest.err'
2889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890   (eval $ac_try) 2>&5
2891   ac_status=$?
2892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893   (exit $ac_status); }; } &&
2894          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2900   break
2901 else
2902   echo "$as_me: failed program was:" >&5
2903 sed 's/^/| /' conftest.$ac_ext >&5
2904
2905 fi
2906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2907 done
2908 rm -f conftest*
2909 if test -n "$ac_declaration"; then
2910   echo '#ifdef __cplusplus' >>confdefs.h
2911   echo $ac_declaration      >>confdefs.h
2912   echo '#endif'             >>confdefs.h
2913 fi
2914
2915 else
2916   echo "$as_me: failed program was:" >&5
2917 sed 's/^/| /' conftest.$ac_ext >&5
2918
2919 fi
2920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2921 ac_ext=c
2922 ac_cpp='$CPP $CPPFLAGS'
2923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2926
2927
2928
2929
2930
2931 # Add -Wall if we are using GCC.
2932 if test "x$GCC" = "xyes"; then
2933   CFLAGS="$CFLAGS -Wall"
2934 fi
2935
2936 # Find other programs we need.
2937 if test -n "$ac_tool_prefix"; then
2938   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2939 set dummy ${ac_tool_prefix}as; ac_word=$2
2940 echo "$as_me:$LINENO: checking for $ac_word" >&5
2941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2942 if test "${ac_cv_prog_AS+set}" = set; then
2943   echo $ECHO_N "(cached) $ECHO_C" >&6
2944 else
2945   if test -n "$AS"; then
2946   ac_cv_prog_AS="$AS" # Let the user override the test.
2947 else
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 for as_dir in $PATH
2950 do
2951   IFS=$as_save_IFS
2952   test -z "$as_dir" && as_dir=.
2953   for ac_exec_ext in '' $ac_executable_extensions; do
2954   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2955     ac_cv_prog_AS="${ac_tool_prefix}as"
2956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2957     break 2
2958   fi
2959 done
2960 done
2961
2962 fi
2963 fi
2964 AS=$ac_cv_prog_AS
2965 if test -n "$AS"; then
2966   echo "$as_me:$LINENO: result: $AS" >&5
2967 echo "${ECHO_T}$AS" >&6
2968 else
2969   echo "$as_me:$LINENO: result: no" >&5
2970 echo "${ECHO_T}no" >&6
2971 fi
2972
2973 fi
2974 if test -z "$ac_cv_prog_AS"; then
2975   ac_ct_AS=$AS
2976   # Extract the first word of "as", so it can be a program name with args.
2977 set dummy as; ac_word=$2
2978 echo "$as_me:$LINENO: checking for $ac_word" >&5
2979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2980 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
2981   echo $ECHO_N "(cached) $ECHO_C" >&6
2982 else
2983   if test -n "$ac_ct_AS"; then
2984   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2985 else
2986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987 for as_dir in $PATH
2988 do
2989   IFS=$as_save_IFS
2990   test -z "$as_dir" && as_dir=.
2991   for ac_exec_ext in '' $ac_executable_extensions; do
2992   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2993     ac_cv_prog_ac_ct_AS="as"
2994     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2995     break 2
2996   fi
2997 done
2998 done
2999
3000 fi
3001 fi
3002 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3003 if test -n "$ac_ct_AS"; then
3004   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3005 echo "${ECHO_T}$ac_ct_AS" >&6
3006 else
3007   echo "$as_me:$LINENO: result: no" >&5
3008 echo "${ECHO_T}no" >&6
3009 fi
3010
3011   AS=$ac_ct_AS
3012 else
3013   AS="$ac_cv_prog_AS"
3014 fi
3015
3016 if test -n "$ac_tool_prefix"; then
3017   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3018 set dummy ${ac_tool_prefix}ar; ac_word=$2
3019 echo "$as_me:$LINENO: checking for $ac_word" >&5
3020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3021 if test "${ac_cv_prog_AR+set}" = set; then
3022   echo $ECHO_N "(cached) $ECHO_C" >&6
3023 else
3024   if test -n "$AR"; then
3025   ac_cv_prog_AR="$AR" # Let the user override the test.
3026 else
3027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028 for as_dir in $PATH
3029 do
3030   IFS=$as_save_IFS
3031   test -z "$as_dir" && as_dir=.
3032   for ac_exec_ext in '' $ac_executable_extensions; do
3033   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3034     ac_cv_prog_AR="${ac_tool_prefix}ar"
3035     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3036     break 2
3037   fi
3038 done
3039 done
3040
3041 fi
3042 fi
3043 AR=$ac_cv_prog_AR
3044 if test -n "$AR"; then
3045   echo "$as_me:$LINENO: result: $AR" >&5
3046 echo "${ECHO_T}$AR" >&6
3047 else
3048   echo "$as_me:$LINENO: result: no" >&5
3049 echo "${ECHO_T}no" >&6
3050 fi
3051
3052 fi
3053 if test -z "$ac_cv_prog_AR"; then
3054   ac_ct_AR=$AR
3055   # Extract the first word of "ar", so it can be a program name with args.
3056 set dummy ar; ac_word=$2
3057 echo "$as_me:$LINENO: checking for $ac_word" >&5
3058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3059 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3060   echo $ECHO_N "(cached) $ECHO_C" >&6
3061 else
3062   if test -n "$ac_ct_AR"; then
3063   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3064 else
3065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3066 for as_dir in $PATH
3067 do
3068   IFS=$as_save_IFS
3069   test -z "$as_dir" && as_dir=.
3070   for ac_exec_ext in '' $ac_executable_extensions; do
3071   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3072     ac_cv_prog_ac_ct_AR="ar"
3073     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3074     break 2
3075   fi
3076 done
3077 done
3078
3079 fi
3080 fi
3081 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3082 if test -n "$ac_ct_AR"; then
3083   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3084 echo "${ECHO_T}$ac_ct_AR" >&6
3085 else
3086   echo "$as_me:$LINENO: result: no" >&5
3087 echo "${ECHO_T}no" >&6
3088 fi
3089
3090   AR=$ac_ct_AR
3091 else
3092   AR="$ac_cv_prog_AR"
3093 fi
3094
3095 if test -n "$ac_tool_prefix"; then
3096   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3097 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3098 echo "$as_me:$LINENO: checking for $ac_word" >&5
3099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3100 if test "${ac_cv_prog_RANLIB+set}" = set; then
3101   echo $ECHO_N "(cached) $ECHO_C" >&6
3102 else
3103   if test -n "$RANLIB"; then
3104   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3105 else
3106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107 for as_dir in $PATH
3108 do
3109   IFS=$as_save_IFS
3110   test -z "$as_dir" && as_dir=.
3111   for ac_exec_ext in '' $ac_executable_extensions; do
3112   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3113     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3114     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3115     break 2
3116   fi
3117 done
3118 done
3119
3120 fi
3121 fi
3122 RANLIB=$ac_cv_prog_RANLIB
3123 if test -n "$RANLIB"; then
3124   echo "$as_me:$LINENO: result: $RANLIB" >&5
3125 echo "${ECHO_T}$RANLIB" >&6
3126 else
3127   echo "$as_me:$LINENO: result: no" >&5
3128 echo "${ECHO_T}no" >&6
3129 fi
3130
3131 fi
3132 if test -z "$ac_cv_prog_RANLIB"; then
3133   ac_ct_RANLIB=$RANLIB
3134   # Extract the first word of "ranlib", so it can be a program name with args.
3135 set dummy ranlib; ac_word=$2
3136 echo "$as_me:$LINENO: checking for $ac_word" >&5
3137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3138 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3139   echo $ECHO_N "(cached) $ECHO_C" >&6
3140 else
3141   if test -n "$ac_ct_RANLIB"; then
3142   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3143 else
3144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145 for as_dir in $PATH
3146 do
3147   IFS=$as_save_IFS
3148   test -z "$as_dir" && as_dir=.
3149   for ac_exec_ext in '' $ac_executable_extensions; do
3150   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3151     ac_cv_prog_ac_ct_RANLIB="ranlib"
3152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3153     break 2
3154   fi
3155 done
3156 done
3157
3158   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3159 fi
3160 fi
3161 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3162 if test -n "$ac_ct_RANLIB"; then
3163   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3164 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3165 else
3166   echo "$as_me:$LINENO: result: no" >&5
3167 echo "${ECHO_T}no" >&6
3168 fi
3169
3170   RANLIB=$ac_ct_RANLIB
3171 else
3172   RANLIB="$ac_cv_prog_RANLIB"
3173 fi
3174
3175 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3176 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3177 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3178 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3179   echo $ECHO_N "(cached) $ECHO_C" >&6
3180 else
3181   cat >conftest.make <<\_ACEOF
3182 all:
3183         @echo 'ac_maketemp="$(MAKE)"'
3184 _ACEOF
3185 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3186 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3187 if test -n "$ac_maketemp"; then
3188   eval ac_cv_prog_make_${ac_make}_set=yes
3189 else
3190   eval ac_cv_prog_make_${ac_make}_set=no
3191 fi
3192 rm -f conftest.make
3193 fi
3194 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3195   echo "$as_me:$LINENO: result: yes" >&5
3196 echo "${ECHO_T}yes" >&6
3197   SET_MAKE=
3198 else
3199   echo "$as_me:$LINENO: result: no" >&5
3200 echo "${ECHO_T}no" >&6
3201   SET_MAKE="MAKE=${MAKE-make}"
3202 fi
3203
3204 # Find a good install program.  We prefer a C program (faster),
3205 # so one script is as good as another.  But avoid the broken or
3206 # incompatible versions:
3207 # SysV /etc/install, /usr/sbin/install
3208 # SunOS /usr/etc/install
3209 # IRIX /sbin/install
3210 # AIX /bin/install
3211 # AmigaOS /C/install, which installs bootblocks on floppy discs
3212 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3213 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3214 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3215 # OS/2's system install, which has a completely different semantic
3216 # ./install, which can be erroneously created by make from ./install.sh.
3217 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3218 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3219 if test -z "$INSTALL"; then
3220 if test "${ac_cv_path_install+set}" = set; then
3221   echo $ECHO_N "(cached) $ECHO_C" >&6
3222 else
3223   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224 for as_dir in $PATH
3225 do
3226   IFS=$as_save_IFS
3227   test -z "$as_dir" && as_dir=.
3228   # Account for people who put trailing slashes in PATH elements.
3229 case $as_dir/ in
3230   ./ | .// | /cC/* | \
3231   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3232   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3233   /usr/ucb/* ) ;;
3234   *)
3235     # OSF1 and SCO ODT 3.0 have their own names for install.
3236     # Don't use installbsd from OSF since it installs stuff as root
3237     # by default.
3238     for ac_prog in ginstall scoinst install; do
3239       for ac_exec_ext in '' $ac_executable_extensions; do
3240         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3241           if test $ac_prog = install &&
3242             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3243             # AIX install.  It has an incompatible calling convention.
3244             :
3245           elif test $ac_prog = install &&
3246             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3247             # program-specific install script used by HP pwplus--don't use.
3248             :
3249           else
3250             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3251             break 3
3252           fi
3253         fi
3254       done
3255     done
3256     ;;
3257 esac
3258 done
3259
3260
3261 fi
3262   if test "${ac_cv_path_install+set}" = set; then
3263     INSTALL=$ac_cv_path_install
3264   else
3265     # As a last resort, use the slow shell script.  We don't cache a
3266     # path for INSTALL within a source directory, because that will
3267     # break other packages using the cache if that directory is
3268     # removed, or if the path is relative.
3269     INSTALL=$ac_install_sh
3270   fi
3271 fi
3272 echo "$as_me:$LINENO: result: $INSTALL" >&5
3273 echo "${ECHO_T}$INSTALL" >&6
3274
3275 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3276 # It thinks the first close brace ends the variable substitution.
3277 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3278
3279 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3280
3281 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3282
3283
3284 # Configure libtool
3285 #AC_MSG_NOTICE([====== Starting libtool configuration])
3286
3287 # Check whether --enable-shared or --disable-shared was given.
3288 if test "${enable_shared+set}" = set; then
3289   enableval="$enable_shared"
3290   p=${PACKAGE-default}
3291 case $enableval in
3292 yes) enable_shared=yes ;;
3293 no) enable_shared=no ;;
3294 *)
3295   enable_shared=no
3296   # Look at the argument we got.  We use all the common list separators.
3297   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3298   for pkg in $enableval; do
3299     if test "X$pkg" = "X$p"; then
3300       enable_shared=yes
3301     fi
3302   done
3303   IFS="$ac_save_ifs"
3304   ;;
3305 esac
3306 else
3307   enable_shared=yes
3308 fi;
3309 # Check whether --enable-static or --disable-static was given.
3310 if test "${enable_static+set}" = set; then
3311   enableval="$enable_static"
3312   p=${PACKAGE-default}
3313 case $enableval in
3314 yes) enable_static=yes ;;
3315 no) enable_static=no ;;
3316 *)
3317   enable_static=no
3318   # Look at the argument we got.  We use all the common list separators.
3319   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3320   for pkg in $enableval; do
3321     if test "X$pkg" = "X$p"; then
3322       enable_static=yes
3323     fi
3324   done
3325   IFS="$ac_save_ifs"
3326   ;;
3327 esac
3328 else
3329   enable_static=yes
3330 fi;
3331 # Check whether --enable-fast-install or --disable-fast-install was given.
3332 if test "${enable_fast_install+set}" = set; then
3333   enableval="$enable_fast_install"
3334   p=${PACKAGE-default}
3335 case $enableval in
3336 yes) enable_fast_install=yes ;;
3337 no) enable_fast_install=no ;;
3338 *)
3339   enable_fast_install=no
3340   # Look at the argument we got.  We use all the common list separators.
3341   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3342   for pkg in $enableval; do
3343     if test "X$pkg" = "X$p"; then
3344       enable_fast_install=yes
3345     fi
3346   done
3347   IFS="$ac_save_ifs"
3348   ;;
3349 esac
3350 else
3351   enable_fast_install=yes
3352 fi;
3353
3354 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3355 if test "${with_gnu_ld+set}" = set; then
3356   withval="$with_gnu_ld"
3357   test "$withval" = no || with_gnu_ld=yes
3358 else
3359   with_gnu_ld=no
3360 fi;
3361 ac_prog=ld
3362 if test "$GCC" = yes; then
3363   # Check if gcc -print-prog-name=ld gives a path.
3364   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3365 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3366   case $host in
3367   *-*-mingw*)
3368     # gcc leaves a trailing carriage return which upsets mingw
3369     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3370   *)
3371     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3372   esac
3373   case $ac_prog in
3374     # Accept absolute paths.
3375     [\\/]* | [A-Za-z]:[\\/]*)
3376       re_direlt='/[^/][^/]*/\.\./'
3377       # Canonicalize the path of ld
3378       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3379       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3380         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3381       done
3382       test -z "$LD" && LD="$ac_prog"
3383       ;;
3384   "")
3385     # If it fails, then pretend we aren't using GCC.
3386     ac_prog=ld
3387     ;;
3388   *)
3389     # If it is relative, then search for the first ld in PATH.
3390     with_gnu_ld=unknown
3391     ;;
3392   esac
3393 elif test "$with_gnu_ld" = yes; then
3394   echo "$as_me:$LINENO: checking for GNU ld" >&5
3395 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3396 else
3397   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3398 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3399 fi
3400 if test "${lt_cv_path_LD+set}" = set; then
3401   echo $ECHO_N "(cached) $ECHO_C" >&6
3402 else
3403   if test -z "$LD"; then
3404   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3405   for ac_dir in $PATH; do
3406     test -z "$ac_dir" && ac_dir=.
3407     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3408       lt_cv_path_LD="$ac_dir/$ac_prog"
3409       # Check to see if the program is GNU ld.  I'd rather use --version,
3410       # but apparently some GNU ld's only accept -v.
3411       # Break only if it was the GNU/non-GNU ld that we prefer.
3412       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3413         test "$with_gnu_ld" != no && break
3414       else
3415         test "$with_gnu_ld" != yes && break
3416       fi
3417     fi
3418   done
3419   IFS="$ac_save_ifs"
3420 else
3421   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3422 fi
3423 fi
3424
3425 LD="$lt_cv_path_LD"
3426 if test -n "$LD"; then
3427   echo "$as_me:$LINENO: result: $LD" >&5
3428 echo "${ECHO_T}$LD" >&6
3429 else
3430   echo "$as_me:$LINENO: result: no" >&5
3431 echo "${ECHO_T}no" >&6
3432 fi
3433 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3434 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3435    { (exit 1); exit 1; }; }
3436 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3437 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3438 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3439   echo $ECHO_N "(cached) $ECHO_C" >&6
3440 else
3441   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3442 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3443   lt_cv_prog_gnu_ld=yes
3444 else
3445   lt_cv_prog_gnu_ld=no
3446 fi
3447 fi
3448 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3449 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3450 with_gnu_ld=$lt_cv_prog_gnu_ld
3451
3452
3453 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3454 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3455 if test "${lt_cv_ld_reload_flag+set}" = set; then
3456   echo $ECHO_N "(cached) $ECHO_C" >&6
3457 else
3458   lt_cv_ld_reload_flag='-r'
3459 fi
3460 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3461 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3462 reload_flag=$lt_cv_ld_reload_flag
3463 test -n "$reload_flag" && reload_flag=" $reload_flag"
3464
3465 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3466 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3467 if test "${lt_cv_path_NM+set}" = set; then
3468   echo $ECHO_N "(cached) $ECHO_C" >&6
3469 else
3470   if test -n "$NM"; then
3471   # Let the user override the test.
3472   lt_cv_path_NM="$NM"
3473 else
3474   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3475   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3476     test -z "$ac_dir" && ac_dir=.
3477     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3478     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3479       # Check to see if the nm accepts a BSD-compat flag.
3480       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3481       #   nm: unknown option "B" ignored
3482       # Tru64's nm complains that /dev/null is an invalid object file
3483       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3484         lt_cv_path_NM="$tmp_nm -B"
3485         break
3486       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3487         lt_cv_path_NM="$tmp_nm -p"
3488         break
3489       else
3490         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3491         continue # so that we can try to find one that supports BSD flags
3492       fi
3493     fi
3494   done
3495   IFS="$ac_save_ifs"
3496   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3497 fi
3498 fi
3499
3500 NM="$lt_cv_path_NM"
3501 echo "$as_me:$LINENO: result: $NM" >&5
3502 echo "${ECHO_T}$NM" >&6
3503
3504 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3505 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3506 LN_S=$as_ln_s
3507 if test "$LN_S" = "ln -s"; then
3508   echo "$as_me:$LINENO: result: yes" >&5
3509 echo "${ECHO_T}yes" >&6
3510 else
3511   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3512 echo "${ECHO_T}no, using $LN_S" >&6
3513 fi
3514
3515 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3516 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3517 if test "${lt_cv_deplibs_check_method+set}" = set; then
3518   echo $ECHO_N "(cached) $ECHO_C" >&6
3519 else
3520   lt_cv_file_magic_cmd='$MAGIC_CMD'
3521 lt_cv_file_magic_test_file=
3522 lt_cv_deplibs_check_method='unknown'
3523 # Need to set the preceding variable on all platforms that support
3524 # interlibrary dependencies.
3525 # 'none' -- dependencies not supported.
3526 # `unknown' -- same as none, but documents that we really don't know.
3527 # 'pass_all' -- all dependencies passed with no checks.
3528 # 'test_compile' -- check by making test program.
3529 # 'file_magic [regex]' -- check by looking for files in library path
3530 # which responds to the $file_magic_cmd with a given egrep regex.
3531 # If you have `file' or equivalent on your system and you're not sure
3532 # whether `pass_all' will *always* work, you probably want this one.
3533
3534 case $host_os in
3535 aix*)
3536   lt_cv_deplibs_check_method=pass_all
3537   ;;
3538
3539 beos*)
3540   lt_cv_deplibs_check_method=pass_all
3541   ;;
3542
3543 bsdi4*)
3544   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3545   lt_cv_file_magic_cmd='/usr/bin/file -L'
3546   lt_cv_file_magic_test_file=/shlib/libc.so
3547   ;;
3548
3549 cygwin* | mingw* |pw32*)
3550   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3551   lt_cv_file_magic_cmd='$OBJDUMP -f'
3552   ;;
3553
3554 darwin* | rhapsody*)
3555   # this will be overwritten by pass_all, but leave it in just in case
3556   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3557   lt_cv_file_magic_cmd='/usr/bin/file -L'
3558   case "$host_os" in
3559   rhapsody* | darwin1.012)
3560     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3561     ;;
3562   *) # Darwin 1.3 on
3563     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3564     ;;
3565   esac
3566   lt_cv_deplibs_check_method=pass_all
3567   ;;
3568
3569 freebsd* | kfreebsd*-gnu)
3570   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3571     case $host_cpu in
3572     i*86 )
3573       # Not sure whether the presence of OpenBSD here was a mistake.
3574       # Let's accept both of them until this is cleared up.
3575       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3576       lt_cv_file_magic_cmd=/usr/bin/file
3577       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3578       ;;
3579     esac
3580   else
3581     lt_cv_deplibs_check_method=pass_all
3582   fi
3583   ;;
3584
3585 gnu*)
3586   lt_cv_deplibs_check_method=pass_all
3587   ;;
3588
3589 hpux10.20*|hpux11*)
3590   case $host_cpu in
3591   hppa*)
3592     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3593     lt_cv_file_magic_cmd=/usr/bin/file
3594     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3595     ;;
3596   ia64*)
3597     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3598     lt_cv_file_magic_cmd=/usr/bin/file
3599     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3600     ;;
3601   esac
3602   ;;
3603
3604 irix5* | irix6*)
3605   case $host_os in
3606   irix5*)
3607     # this will be overridden with pass_all, but let us keep it just in case
3608     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3609     ;;
3610   *)
3611     case $LD in
3612     *-32|*"-32 ") libmagic=32-bit;;
3613     *-n32|*"-n32 ") libmagic=N32;;
3614     *-64|*"-64 ") libmagic=64-bit;;
3615     *) libmagic=never-match;;
3616     esac
3617     # this will be overridden with pass_all, but let us keep it just in case
3618     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3619     ;;
3620   esac
3621   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3622   lt_cv_deplibs_check_method=pass_all
3623   ;;
3624
3625 # This must be Linux ELF.
3626 linux-gnu*)
3627   case $host_cpu in
3628   alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* )
3629     lt_cv_deplibs_check_method=pass_all ;;
3630   *)
3631     # glibc up to 2.1.1 does not perform some relocations on ARM
3632     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3633   esac
3634   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3635   ;;
3636
3637 netbsd* | knetbsd*-gnu)
3638   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3639     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3640   else
3641     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3642   fi
3643   ;;
3644
3645 newsos6)
3646   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3647   lt_cv_file_magic_cmd=/usr/bin/file
3648   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3649   ;;
3650
3651 osf3* | osf4* | osf5*)
3652   # this will be overridden with pass_all, but let us keep it just in case
3653   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3654   lt_cv_file_magic_test_file=/shlib/libc.so
3655   lt_cv_deplibs_check_method=pass_all
3656   ;;
3657
3658 sco3.2v5*)
3659   lt_cv_deplibs_check_method=pass_all
3660   ;;
3661
3662 solaris*)
3663   lt_cv_deplibs_check_method=pass_all
3664   lt_cv_file_magic_test_file=/lib/libc.so
3665   ;;
3666
3667 sysv5uw[78]* | sysv4*uw2*)
3668   lt_cv_deplibs_check_method=pass_all
3669   ;;
3670
3671 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3672   case $host_vendor in
3673   ncr)
3674     lt_cv_deplibs_check_method=pass_all
3675     ;;
3676   motorola)
3677     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]'
3678     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3679     ;;
3680   esac
3681   ;;
3682 esac
3683
3684 fi
3685 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3686 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3687 file_magic_cmd=$lt_cv_file_magic_cmd
3688 deplibs_check_method=$lt_cv_deplibs_check_method
3689
3690
3691
3692
3693
3694 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3695
3696 # Only perform the check for file, if the check method requires it
3697 case $deplibs_check_method in
3698 file_magic*)
3699   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3700     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3701 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3702 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3703   echo $ECHO_N "(cached) $ECHO_C" >&6
3704 else
3705   case $MAGIC_CMD in
3706   /*)
3707   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3708   ;;
3709   ?:/*)
3710   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3711   ;;
3712   *)
3713   ac_save_MAGIC_CMD="$MAGIC_CMD"
3714   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3715   ac_dummy="/usr/bin:$PATH"
3716   for ac_dir in $ac_dummy; do
3717     test -z "$ac_dir" && ac_dir=.
3718     if test -f $ac_dir/${ac_tool_prefix}file; then
3719       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3720       if test -n "$file_magic_test_file"; then
3721         case $deplibs_check_method in
3722         "file_magic "*)
3723           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3724           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3725           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3726             egrep "$file_magic_regex" > /dev/null; then
3727             :
3728           else
3729             cat <<EOF 1>&2
3730
3731 *** Warning: the command libtool uses to detect shared libraries,
3732 *** $file_magic_cmd, produces output that libtool cannot recognize.
3733 *** The result is that libtool may fail to recognize shared libraries
3734 *** as such.  This will affect the creation of libtool libraries that
3735 *** depend on shared libraries, but programs linked with such libtool
3736 *** libraries will work regardless of this problem.  Nevertheless, you
3737 *** may want to report the problem to your system manager and/or to
3738 *** bug-libtool@gnu.org
3739
3740 EOF
3741           fi ;;
3742         esac
3743       fi
3744       break
3745     fi
3746   done
3747   IFS="$ac_save_ifs"
3748   MAGIC_CMD="$ac_save_MAGIC_CMD"
3749   ;;
3750 esac
3751 fi
3752
3753 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3754 if test -n "$MAGIC_CMD"; then
3755   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3756 echo "${ECHO_T}$MAGIC_CMD" >&6
3757 else
3758   echo "$as_me:$LINENO: result: no" >&5
3759 echo "${ECHO_T}no" >&6
3760 fi
3761
3762 if test -z "$lt_cv_path_MAGIC_CMD"; then
3763   if test -n "$ac_tool_prefix"; then
3764     echo "$as_me:$LINENO: checking for file" >&5
3765 echo $ECHO_N "checking for file... $ECHO_C" >&6
3766 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3767   echo $ECHO_N "(cached) $ECHO_C" >&6
3768 else
3769   case $MAGIC_CMD in
3770   /*)
3771   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3772   ;;
3773   ?:/*)
3774   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3775   ;;
3776   *)
3777   ac_save_MAGIC_CMD="$MAGIC_CMD"
3778   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3779   ac_dummy="/usr/bin:$PATH"
3780   for ac_dir in $ac_dummy; do
3781     test -z "$ac_dir" && ac_dir=.
3782     if test -f $ac_dir/file; then
3783       lt_cv_path_MAGIC_CMD="$ac_dir/file"
3784       if test -n "$file_magic_test_file"; then
3785         case $deplibs_check_method in
3786         "file_magic "*)
3787           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3788           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3789           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3790             egrep "$file_magic_regex" > /dev/null; then
3791             :
3792           else
3793             cat <<EOF 1>&2
3794
3795 *** Warning: the command libtool uses to detect shared libraries,
3796 *** $file_magic_cmd, produces output that libtool cannot recognize.
3797 *** The result is that libtool may fail to recognize shared libraries
3798 *** as such.  This will affect the creation of libtool libraries that
3799 *** depend on shared libraries, but programs linked with such libtool
3800 *** libraries will work regardless of this problem.  Nevertheless, you
3801 *** may want to report the problem to your system manager and/or to
3802 *** bug-libtool@gnu.org
3803
3804 EOF
3805           fi ;;
3806         esac
3807       fi
3808       break
3809     fi
3810   done
3811   IFS="$ac_save_ifs"
3812   MAGIC_CMD="$ac_save_MAGIC_CMD"
3813   ;;
3814 esac
3815 fi
3816
3817 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3818 if test -n "$MAGIC_CMD"; then
3819   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3820 echo "${ECHO_T}$MAGIC_CMD" >&6
3821 else
3822   echo "$as_me:$LINENO: result: no" >&5
3823 echo "${ECHO_T}no" >&6
3824 fi
3825
3826   else
3827     MAGIC_CMD=:
3828   fi
3829 fi
3830
3831   fi
3832   ;;
3833 esac
3834
3835 if test -n "$ac_tool_prefix"; then
3836   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3837 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3838 echo "$as_me:$LINENO: checking for $ac_word" >&5
3839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3840 if test "${ac_cv_prog_RANLIB+set}" = set; then
3841   echo $ECHO_N "(cached) $ECHO_C" >&6
3842 else
3843   if test -n "$RANLIB"; then
3844   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3845 else
3846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3847 for as_dir in $PATH
3848 do
3849   IFS=$as_save_IFS
3850   test -z "$as_dir" && as_dir=.
3851   for ac_exec_ext in '' $ac_executable_extensions; do
3852   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3853     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3854     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3855     break 2
3856   fi
3857 done
3858 done
3859
3860 fi
3861 fi
3862 RANLIB=$ac_cv_prog_RANLIB
3863 if test -n "$RANLIB"; then
3864   echo "$as_me:$LINENO: result: $RANLIB" >&5
3865 echo "${ECHO_T}$RANLIB" >&6
3866 else
3867   echo "$as_me:$LINENO: result: no" >&5
3868 echo "${ECHO_T}no" >&6
3869 fi
3870
3871 fi
3872 if test -z "$ac_cv_prog_RANLIB"; then
3873   ac_ct_RANLIB=$RANLIB
3874   # Extract the first word of "ranlib", so it can be a program name with args.
3875 set dummy ranlib; ac_word=$2
3876 echo "$as_me:$LINENO: checking for $ac_word" >&5
3877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3878 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3879   echo $ECHO_N "(cached) $ECHO_C" >&6
3880 else
3881   if test -n "$ac_ct_RANLIB"; then
3882   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3883 else
3884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885 for as_dir in $PATH
3886 do
3887   IFS=$as_save_IFS
3888   test -z "$as_dir" && as_dir=.
3889   for ac_exec_ext in '' $ac_executable_extensions; do
3890   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3891     ac_cv_prog_ac_ct_RANLIB="ranlib"
3892     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3893     break 2
3894   fi
3895 done
3896 done
3897
3898   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3899 fi
3900 fi
3901 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3902 if test -n "$ac_ct_RANLIB"; then
3903   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3904 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3905 else
3906   echo "$as_me:$LINENO: result: no" >&5
3907 echo "${ECHO_T}no" >&6
3908 fi
3909
3910   RANLIB=$ac_ct_RANLIB
3911 else
3912   RANLIB="$ac_cv_prog_RANLIB"
3913 fi
3914
3915 if test -n "$ac_tool_prefix"; then
3916   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3917 set dummy ${ac_tool_prefix}strip; ac_word=$2
3918 echo "$as_me:$LINENO: checking for $ac_word" >&5
3919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3920 if test "${ac_cv_prog_STRIP+set}" = set; then
3921   echo $ECHO_N "(cached) $ECHO_C" >&6
3922 else
3923   if test -n "$STRIP"; then
3924   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3925 else
3926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3927 for as_dir in $PATH
3928 do
3929   IFS=$as_save_IFS
3930   test -z "$as_dir" && as_dir=.
3931   for ac_exec_ext in '' $ac_executable_extensions; do
3932   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3933     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3934     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3935     break 2
3936   fi
3937 done
3938 done
3939
3940 fi
3941 fi
3942 STRIP=$ac_cv_prog_STRIP
3943 if test -n "$STRIP"; then
3944   echo "$as_me:$LINENO: result: $STRIP" >&5
3945 echo "${ECHO_T}$STRIP" >&6
3946 else
3947   echo "$as_me:$LINENO: result: no" >&5
3948 echo "${ECHO_T}no" >&6
3949 fi
3950
3951 fi
3952 if test -z "$ac_cv_prog_STRIP"; then
3953   ac_ct_STRIP=$STRIP
3954   # Extract the first word of "strip", so it can be a program name with args.
3955 set dummy strip; ac_word=$2
3956 echo "$as_me:$LINENO: checking for $ac_word" >&5
3957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3958 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3959   echo $ECHO_N "(cached) $ECHO_C" >&6
3960 else
3961   if test -n "$ac_ct_STRIP"; then
3962   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3963 else
3964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965 for as_dir in $PATH
3966 do
3967   IFS=$as_save_IFS
3968   test -z "$as_dir" && as_dir=.
3969   for ac_exec_ext in '' $ac_executable_extensions; do
3970   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3971     ac_cv_prog_ac_ct_STRIP="strip"
3972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3973     break 2
3974   fi
3975 done
3976 done
3977
3978   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3979 fi
3980 fi
3981 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3982 if test -n "$ac_ct_STRIP"; then
3983   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3984 echo "${ECHO_T}$ac_ct_STRIP" >&6
3985 else
3986   echo "$as_me:$LINENO: result: no" >&5
3987 echo "${ECHO_T}no" >&6
3988 fi
3989
3990   STRIP=$ac_ct_STRIP
3991 else
3992   STRIP="$ac_cv_prog_STRIP"
3993 fi
3994
3995
3996 # Check for any special flags to pass to ltconfig.
3997 libtool_flags="--cache-file=$cache_file"
3998 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3999 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4000 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4001 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4002 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4003
4004
4005 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4006 if test "${enable_libtool_lock+set}" = set; then
4007   enableval="$enable_libtool_lock"
4008
4009 fi;
4010 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4011 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4012
4013
4014 # Check whether --with-pic or --without-pic was given.
4015 if test "${with_pic+set}" = set; then
4016   withval="$with_pic"
4017   pic_mode="$withval"
4018 else
4019   pic_mode=default
4020 fi;
4021 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4022 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4023
4024 # Some flags need to be propagated to the compiler or linker for good
4025 # libtool support.
4026 case $host in
4027 *-*-irix6*)
4028   # Find out which ABI we are using.
4029   echo '#line 4029 "configure"' > conftest.$ac_ext
4030   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4031   (eval $ac_compile) 2>&5
4032   ac_status=$?
4033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034   (exit $ac_status); }; then
4035    if test "$lt_cv_prog_gnu_ld" = yes; then
4036     case `/usr/bin/file conftest.$ac_objext` in
4037     *32-bit*)
4038       LD="${LD-ld} -melf32bsmip"
4039       ;;
4040     *N32*)
4041       LD="${LD-ld} -melf32bmipn32"
4042       ;;
4043     *64-bit*)
4044       LD="${LD-ld} -melf64bmip"
4045       ;;
4046     esac
4047    else
4048     case `/usr/bin/file conftest.$ac_objext` in
4049     *32-bit*)
4050       LD="${LD-ld} -32"
4051       ;;
4052     *N32*)
4053       LD="${LD-ld} -n32"
4054       ;;
4055     *64-bit*)
4056       LD="${LD-ld} -64"
4057       ;;
4058     esac
4059    fi
4060   fi
4061   rm -rf conftest*
4062   ;;
4063
4064 ia64-*-hpux*)
4065   # Find out which ABI we are using.
4066   echo 'int i;' > conftest.$ac_ext
4067   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4068   (eval $ac_compile) 2>&5
4069   ac_status=$?
4070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071   (exit $ac_status); }; then
4072     case "`/usr/bin/file conftest.o`" in
4073     *ELF-32*)
4074       HPUX_IA64_MODE="32"
4075       ;;
4076     *ELF-64*)
4077       HPUX_IA64_MODE="64"
4078       ;;
4079     esac
4080   fi
4081   rm -rf conftest*
4082   ;;
4083
4084 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4085   # Find out which ABI we are using.
4086   echo 'int i;' > conftest.$ac_ext
4087   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4088   (eval $ac_compile) 2>&5
4089   ac_status=$?
4090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091   (exit $ac_status); }; then
4092     case "`/usr/bin/file conftest.o`" in
4093     *32-bit*)
4094       case $host in
4095         x86_64-*linux*)
4096           LD="${LD-ld} -m elf_i386"
4097           ;;
4098         ppc64-*linux*|powerpc64-*linux*)
4099           LD="${LD-ld} -m elf32ppclinux"
4100           ;;
4101         s390x-*linux*)
4102           LD="${LD-ld} -m elf_s390"
4103           ;;
4104         sparc64-*linux*)
4105           LD="${LD-ld} -m elf32_sparc"
4106           ;;
4107       esac
4108       ;;
4109     *64-bit*)
4110       case $host in
4111         x86_64-*linux*)
4112           LD="${LD-ld} -m elf_x86_64"
4113           ;;
4114         ppc*-*linux*|powerpc*-*linux*)
4115           LD="${LD-ld} -m elf64ppc"
4116           ;;
4117         s390*-*linux*)
4118           LD="${LD-ld} -m elf64_s390"
4119           ;;
4120         sparc*-*linux*)
4121           LD="${LD-ld} -m elf64_sparc"
4122           ;;
4123       esac
4124       ;;
4125     esac
4126   fi
4127   rm -rf conftest*
4128   ;;
4129
4130 *-*-sco3.2v5*)
4131   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4132   SAVE_CFLAGS="$CFLAGS"
4133   CFLAGS="$CFLAGS -belf"
4134   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4135 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4136 if test "${lt_cv_cc_needs_belf+set}" = set; then
4137   echo $ECHO_N "(cached) $ECHO_C" >&6
4138 else
4139
4140
4141      ac_ext=c
4142 ac_cpp='$CPP $CPPFLAGS'
4143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4146
4147      cat >conftest.$ac_ext <<_ACEOF
4148 /* confdefs.h.  */
4149 _ACEOF
4150 cat confdefs.h >>conftest.$ac_ext
4151 cat >>conftest.$ac_ext <<_ACEOF
4152 /* end confdefs.h.  */
4153
4154 int
4155 main ()
4156 {
4157
4158   ;
4159   return 0;
4160 }
4161 _ACEOF
4162 rm -f conftest.$ac_objext conftest$ac_exeext
4163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4164   (eval $ac_link) 2>conftest.er1
4165   ac_status=$?
4166   grep -v '^ *+' conftest.er1 >conftest.err
4167   rm -f conftest.er1
4168   cat conftest.err >&5
4169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170   (exit $ac_status); } &&
4171          { ac_try='test -z "$ac_c_werror_flag"
4172                          || test ! -s conftest.err'
4173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4174   (eval $ac_try) 2>&5
4175   ac_status=$?
4176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177   (exit $ac_status); }; } &&
4178          { ac_try='test -s conftest$ac_exeext'
4179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4180   (eval $ac_try) 2>&5
4181   ac_status=$?
4182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183   (exit $ac_status); }; }; then
4184   lt_cv_cc_needs_belf=yes
4185 else
4186   echo "$as_me: failed program was:" >&5
4187 sed 's/^/| /' conftest.$ac_ext >&5
4188
4189 lt_cv_cc_needs_belf=no
4190 fi
4191 rm -f conftest.err conftest.$ac_objext \
4192       conftest$ac_exeext conftest.$ac_ext
4193      ac_ext=c
4194 ac_cpp='$CPP $CPPFLAGS'
4195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4198
4199 fi
4200 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4201 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4202   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4203     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4204     CFLAGS="$SAVE_CFLAGS"
4205   fi
4206   ;;
4207
4208
4209 esac
4210
4211
4212 # Save cache, so that ltconfig can load it
4213 cat >confcache <<\_ACEOF
4214 # This file is a shell script that caches the results of configure
4215 # tests run on this system so they can be shared between configure
4216 # scripts and configure runs, see configure's option --config-cache.
4217 # It is not useful on other systems.  If it contains results you don't
4218 # want to keep, you may remove or edit it.
4219 #
4220 # config.status only pays attention to the cache file if you give it
4221 # the --recheck option to rerun configure.
4222 #
4223 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4224 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4225 # following values.
4226
4227 _ACEOF
4228
4229 # The following way of writing the cache mishandles newlines in values,
4230 # but we know of no workaround that is simple, portable, and efficient.
4231 # So, don't put newlines in cache variables' values.
4232 # Ultrix sh set writes to stderr and can't be redirected directly,
4233 # and sets the high bit in the cache file unless we assign to the vars.
4234 {
4235   (set) 2>&1 |
4236     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4237     *ac_space=\ *)
4238       # `set' does not quote correctly, so add quotes (double-quote
4239       # substitution turns \\\\ into \\, and sed turns \\ into \).
4240       sed -n \
4241         "s/'/'\\\\''/g;
4242           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4243       ;;
4244     *)
4245       # `set' quotes correctly as required by POSIX, so do not add quotes.
4246       sed -n \
4247         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4248       ;;
4249     esac;
4250 } |
4251   sed '
4252      t clear
4253      : clear
4254      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4255      t end
4256      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4257      : end' >>confcache
4258 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4259   if test -w $cache_file; then
4260     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4261     cat confcache >$cache_file
4262   else
4263     echo "not updating unwritable cache $cache_file"
4264   fi
4265 fi
4266 rm -f confcache
4267
4268 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
4269 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4270 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4271 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4272 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4273 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4274 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4275 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4276 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4277 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4278 echo "$as_me: error: libtool configure failed" >&2;}
4279    { (exit 1); exit 1; }; }
4280
4281 # Reload cache, that may have been modified by ltconfig
4282 if test -r "$cache_file"; then
4283   # Some versions of bash will fail to source /dev/null (special
4284   # files actually), so we avoid doing that.
4285   if test -f "$cache_file"; then
4286     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4287 echo "$as_me: loading cache $cache_file" >&6;}
4288     case $cache_file in
4289       [\\/]* | ?:[\\/]* ) . $cache_file;;
4290       *)                      . ./$cache_file;;
4291     esac
4292   fi
4293 else
4294   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4295 echo "$as_me: creating cache $cache_file" >&6;}
4296   >$cache_file
4297 fi
4298
4299
4300 # This can be used to rebuild libtool when needed
4301 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4302
4303 # Always use our own libtool.
4304 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4305
4306 # Redirect the config.log output again, so that the ltconfig log is not
4307 # clobbered by the next message.
4308 exec 5>>./config.log
4309
4310
4311
4312
4313
4314
4315
4316
4317 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
4318
4319 # We need gfortran to compile parts of the library
4320 # We can't use AC_PROG_F77 because it expects a fully working gfortran.
4321 #AC_PROG_F77(gfortran)
4322 F77="$GFORTRAN"
4323 ac_ext=f
4324 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4325 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4326 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4327 if test -n "$ac_tool_prefix"; then
4328   for ac_prog in gfortran
4329   do
4330     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4331 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4332 echo "$as_me:$LINENO: checking for $ac_word" >&5
4333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4334 if test "${ac_cv_prog_F77+set}" = set; then
4335   echo $ECHO_N "(cached) $ECHO_C" >&6
4336 else
4337   if test -n "$F77"; then
4338   ac_cv_prog_F77="$F77" # Let the user override the test.
4339 else
4340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341 for as_dir in $PATH
4342 do
4343   IFS=$as_save_IFS
4344   test -z "$as_dir" && as_dir=.
4345   for ac_exec_ext in '' $ac_executable_extensions; do
4346   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4347     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4348     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4349     break 2
4350   fi
4351 done
4352 done
4353
4354 fi
4355 fi
4356 F77=$ac_cv_prog_F77
4357 if test -n "$F77"; then
4358   echo "$as_me:$LINENO: result: $F77" >&5
4359 echo "${ECHO_T}$F77" >&6
4360 else
4361   echo "$as_me:$LINENO: result: no" >&5
4362 echo "${ECHO_T}no" >&6
4363 fi
4364
4365     test -n "$F77" && break
4366   done
4367 fi
4368 if test -z "$F77"; then
4369   ac_ct_F77=$F77
4370   for ac_prog in gfortran
4371 do
4372   # Extract the first word of "$ac_prog", so it can be a program name with args.
4373 set dummy $ac_prog; ac_word=$2
4374 echo "$as_me:$LINENO: checking for $ac_word" >&5
4375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4376 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4377   echo $ECHO_N "(cached) $ECHO_C" >&6
4378 else
4379   if test -n "$ac_ct_F77"; then
4380   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4381 else
4382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4383 for as_dir in $PATH
4384 do
4385   IFS=$as_save_IFS
4386   test -z "$as_dir" && as_dir=.
4387   for ac_exec_ext in '' $ac_executable_extensions; do
4388   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4389     ac_cv_prog_ac_ct_F77="$ac_prog"
4390     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4391     break 2
4392   fi
4393 done
4394 done
4395
4396 fi
4397 fi
4398 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4399 if test -n "$ac_ct_F77"; then
4400   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4401 echo "${ECHO_T}$ac_ct_F77" >&6
4402 else
4403   echo "$as_me:$LINENO: result: no" >&5
4404 echo "${ECHO_T}no" >&6
4405 fi
4406
4407   test -n "$ac_ct_F77" && break
4408 done
4409
4410   F77=$ac_ct_F77
4411 fi
4412
4413
4414 # Provide some information about the compiler.
4415 echo "$as_me:4415:" \
4416      "checking for Fortran 77 compiler version" >&5
4417 ac_compiler=`set X $ac_compile; echo $2`
4418 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4419   (eval $ac_compiler --version </dev/null >&5) 2>&5
4420   ac_status=$?
4421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422   (exit $ac_status); }
4423 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4424   (eval $ac_compiler -v </dev/null >&5) 2>&5
4425   ac_status=$?
4426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427   (exit $ac_status); }
4428 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4429   (eval $ac_compiler -V </dev/null >&5) 2>&5
4430   ac_status=$?
4431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432   (exit $ac_status); }
4433 rm -f a.out
4434
4435 # If we don't use `.F' as extension, the preprocessor is not run on the
4436 # input file.  (Note that this only needs to work for GNU compilers.)
4437 ac_save_ext=$ac_ext
4438 ac_ext=F
4439 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4440 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4441 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4442   echo $ECHO_N "(cached) $ECHO_C" >&6
4443 else
4444   cat >conftest.$ac_ext <<_ACEOF
4445       program main
4446 #ifndef __GNUC__
4447        choke me
4448 #endif
4449
4450       end
4451 _ACEOF
4452 rm -f conftest.$ac_objext
4453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4454   (eval $ac_compile) 2>conftest.er1
4455   ac_status=$?
4456   grep -v '^ *+' conftest.er1 >conftest.err
4457   rm -f conftest.er1
4458   cat conftest.err >&5
4459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460   (exit $ac_status); } &&
4461          { ac_try='test -z "$ac_f77_werror_flag"
4462                          || test ! -s conftest.err'
4463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4464   (eval $ac_try) 2>&5
4465   ac_status=$?
4466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467   (exit $ac_status); }; } &&
4468          { ac_try='test -s conftest.$ac_objext'
4469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4470   (eval $ac_try) 2>&5
4471   ac_status=$?
4472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473   (exit $ac_status); }; }; then
4474   ac_compiler_gnu=yes
4475 else
4476   echo "$as_me: failed program was:" >&5
4477 sed 's/^/| /' conftest.$ac_ext >&5
4478
4479 ac_compiler_gnu=no
4480 fi
4481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4482 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4483
4484 fi
4485 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4486 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4487 ac_ext=$ac_save_ext
4488 ac_test_FFLAGS=${FFLAGS+set}
4489 ac_save_FFLAGS=$FFLAGS
4490 FFLAGS=
4491 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4492 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4493 if test "${ac_cv_prog_f77_g+set}" = set; then
4494   echo $ECHO_N "(cached) $ECHO_C" >&6
4495 else
4496   FFLAGS=-g
4497 cat >conftest.$ac_ext <<_ACEOF
4498       program main
4499
4500       end
4501 _ACEOF
4502 rm -f conftest.$ac_objext
4503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4504   (eval $ac_compile) 2>conftest.er1
4505   ac_status=$?
4506   grep -v '^ *+' conftest.er1 >conftest.err
4507   rm -f conftest.er1
4508   cat conftest.err >&5
4509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510   (exit $ac_status); } &&
4511          { ac_try='test -z "$ac_f77_werror_flag"
4512                          || test ! -s conftest.err'
4513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4514   (eval $ac_try) 2>&5
4515   ac_status=$?
4516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517   (exit $ac_status); }; } &&
4518          { ac_try='test -s conftest.$ac_objext'
4519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4520   (eval $ac_try) 2>&5
4521   ac_status=$?
4522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523   (exit $ac_status); }; }; then
4524   ac_cv_prog_f77_g=yes
4525 else
4526   echo "$as_me: failed program was:" >&5
4527 sed 's/^/| /' conftest.$ac_ext >&5
4528
4529 ac_cv_prog_f77_g=no
4530 fi
4531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4532
4533 fi
4534 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4535 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4536 if test "$ac_test_FFLAGS" = set; then
4537   FFLAGS=$ac_save_FFLAGS
4538 elif test $ac_cv_prog_f77_g = yes; then
4539   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4540     FFLAGS="-g -O2"
4541   else
4542     FFLAGS="-g"
4543   fi
4544 else
4545   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4546     FFLAGS="-O2"
4547   else
4548     FFLAGS=
4549   fi
4550 fi
4551
4552 G77=`test $ac_compiler_gnu = yes && echo yes`
4553 ac_ext=c
4554 ac_cpp='$CPP $CPPFLAGS'
4555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4558
4559 FFLAGS="$FFLAGS -Wall -fno-repack-arrays -fno-underscoring"
4560
4561 # Check whether --enable-largefile or --disable-largefile was given.
4562 if test "${enable_largefile+set}" = set; then
4563   enableval="$enable_largefile"
4564
4565 fi;
4566 if test "$enable_largefile" != no; then
4567
4568   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4569 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4570 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4571   echo $ECHO_N "(cached) $ECHO_C" >&6
4572 else
4573   ac_cv_sys_largefile_CC=no
4574      if test "$GCC" != yes; then
4575        ac_save_CC=$CC
4576        while :; do
4577          # IRIX 6.2 and later do not support large files by default,
4578          # so use the C compiler's -n32 option if that helps.
4579          cat >conftest.$ac_ext <<_ACEOF
4580 /* confdefs.h.  */
4581 _ACEOF
4582 cat confdefs.h >>conftest.$ac_ext
4583 cat >>conftest.$ac_ext <<_ACEOF
4584 /* end confdefs.h.  */
4585 #include <sys/types.h>
4586  /* Check that off_t can represent 2**63 - 1 correctly.
4587     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4588     since some C++ compilers masquerading as C compilers
4589     incorrectly reject 9223372036854775807.  */
4590 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4591   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4592                        && LARGE_OFF_T % 2147483647 == 1)
4593                       ? 1 : -1];
4594 int
4595 main ()
4596 {
4597
4598   ;
4599   return 0;
4600 }
4601 _ACEOF
4602          rm -f conftest.$ac_objext
4603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4604   (eval $ac_compile) 2>conftest.er1
4605   ac_status=$?
4606   grep -v '^ *+' conftest.er1 >conftest.err
4607   rm -f conftest.er1
4608   cat conftest.err >&5
4609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610   (exit $ac_status); } &&
4611          { ac_try='test -z "$ac_c_werror_flag"
4612                          || test ! -s conftest.err'
4613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4614   (eval $ac_try) 2>&5
4615   ac_status=$?
4616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617   (exit $ac_status); }; } &&
4618          { ac_try='test -s conftest.$ac_objext'
4619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4620   (eval $ac_try) 2>&5
4621   ac_status=$?
4622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623   (exit $ac_status); }; }; then
4624   break
4625 else
4626   echo "$as_me: failed program was:" >&5
4627 sed 's/^/| /' conftest.$ac_ext >&5
4628
4629 fi
4630 rm -f conftest.err conftest.$ac_objext
4631          CC="$CC -n32"
4632          rm -f conftest.$ac_objext
4633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4634   (eval $ac_compile) 2>conftest.er1
4635   ac_status=$?
4636   grep -v '^ *+' conftest.er1 >conftest.err
4637   rm -f conftest.er1
4638   cat conftest.err >&5
4639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640   (exit $ac_status); } &&
4641          { ac_try='test -z "$ac_c_werror_flag"
4642                          || test ! -s conftest.err'
4643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4644   (eval $ac_try) 2>&5
4645   ac_status=$?
4646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647   (exit $ac_status); }; } &&
4648          { ac_try='test -s conftest.$ac_objext'
4649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4650   (eval $ac_try) 2>&5
4651   ac_status=$?
4652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653   (exit $ac_status); }; }; then
4654   ac_cv_sys_largefile_CC=' -n32'; break
4655 else
4656   echo "$as_me: failed program was:" >&5
4657 sed 's/^/| /' conftest.$ac_ext >&5
4658
4659 fi
4660 rm -f conftest.err conftest.$ac_objext
4661          break
4662        done
4663        CC=$ac_save_CC
4664        rm -f conftest.$ac_ext
4665     fi
4666 fi
4667 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4668 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4669   if test "$ac_cv_sys_largefile_CC" != no; then
4670     CC=$CC$ac_cv_sys_largefile_CC
4671   fi
4672
4673   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4674 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4675 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4676   echo $ECHO_N "(cached) $ECHO_C" >&6
4677 else
4678   while :; do
4679   ac_cv_sys_file_offset_bits=no
4680   cat >conftest.$ac_ext <<_ACEOF
4681 /* confdefs.h.  */
4682 _ACEOF
4683 cat confdefs.h >>conftest.$ac_ext
4684 cat >>conftest.$ac_ext <<_ACEOF
4685 /* end confdefs.h.  */
4686 #include <sys/types.h>
4687  /* Check that off_t can represent 2**63 - 1 correctly.
4688     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4689     since some C++ compilers masquerading as C compilers
4690     incorrectly reject 9223372036854775807.  */
4691 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4692   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4693                        && LARGE_OFF_T % 2147483647 == 1)
4694                       ? 1 : -1];
4695 int
4696 main ()
4697 {
4698
4699   ;
4700   return 0;
4701 }
4702 _ACEOF
4703 rm -f conftest.$ac_objext
4704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4705   (eval $ac_compile) 2>conftest.er1
4706   ac_status=$?
4707   grep -v '^ *+' conftest.er1 >conftest.err
4708   rm -f conftest.er1
4709   cat conftest.err >&5
4710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711   (exit $ac_status); } &&
4712          { ac_try='test -z "$ac_c_werror_flag"
4713                          || test ! -s conftest.err'
4714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715   (eval $ac_try) 2>&5
4716   ac_status=$?
4717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718   (exit $ac_status); }; } &&
4719          { ac_try='test -s conftest.$ac_objext'
4720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721   (eval $ac_try) 2>&5
4722   ac_status=$?
4723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724   (exit $ac_status); }; }; then
4725   break
4726 else
4727   echo "$as_me: failed program was:" >&5
4728 sed 's/^/| /' conftest.$ac_ext >&5
4729
4730 fi
4731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4732   cat >conftest.$ac_ext <<_ACEOF
4733 /* confdefs.h.  */
4734 _ACEOF
4735 cat confdefs.h >>conftest.$ac_ext
4736 cat >>conftest.$ac_ext <<_ACEOF
4737 /* end confdefs.h.  */
4738 #define _FILE_OFFSET_BITS 64
4739 #include <sys/types.h>
4740  /* Check that off_t can represent 2**63 - 1 correctly.
4741     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4742     since some C++ compilers masquerading as C compilers
4743     incorrectly reject 9223372036854775807.  */
4744 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4745   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4746                        && LARGE_OFF_T % 2147483647 == 1)
4747                       ? 1 : -1];
4748 int
4749 main ()
4750 {
4751
4752   ;
4753   return 0;
4754 }
4755 _ACEOF
4756 rm -f conftest.$ac_objext
4757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4758   (eval $ac_compile) 2>conftest.er1
4759   ac_status=$?
4760   grep -v '^ *+' conftest.er1 >conftest.err
4761   rm -f conftest.er1
4762   cat conftest.err >&5
4763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764   (exit $ac_status); } &&
4765          { ac_try='test -z "$ac_c_werror_flag"
4766                          || test ! -s conftest.err'
4767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4768   (eval $ac_try) 2>&5
4769   ac_status=$?
4770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771   (exit $ac_status); }; } &&
4772          { ac_try='test -s conftest.$ac_objext'
4773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4774   (eval $ac_try) 2>&5
4775   ac_status=$?
4776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777   (exit $ac_status); }; }; then
4778   ac_cv_sys_file_offset_bits=64; break
4779 else
4780   echo "$as_me: failed program was:" >&5
4781 sed 's/^/| /' conftest.$ac_ext >&5
4782
4783 fi
4784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4785   break
4786 done
4787 fi
4788 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4789 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4790 if test "$ac_cv_sys_file_offset_bits" != no; then
4791
4792 cat >>confdefs.h <<_ACEOF
4793 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4794 _ACEOF
4795
4796 fi
4797 rm -f conftest*
4798   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4799 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4800 if test "${ac_cv_sys_large_files+set}" = set; then
4801   echo $ECHO_N "(cached) $ECHO_C" >&6
4802 else
4803   while :; do
4804   ac_cv_sys_large_files=no
4805   cat >conftest.$ac_ext <<_ACEOF
4806 /* confdefs.h.  */
4807 _ACEOF
4808 cat confdefs.h >>conftest.$ac_ext
4809 cat >>conftest.$ac_ext <<_ACEOF
4810 /* end confdefs.h.  */
4811 #include <sys/types.h>
4812  /* Check that off_t can represent 2**63 - 1 correctly.
4813     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4814     since some C++ compilers masquerading as C compilers
4815     incorrectly reject 9223372036854775807.  */
4816 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4817   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4818                        && LARGE_OFF_T % 2147483647 == 1)
4819                       ? 1 : -1];
4820 int
4821 main ()
4822 {
4823
4824   ;
4825   return 0;
4826 }
4827 _ACEOF
4828 rm -f conftest.$ac_objext
4829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4830   (eval $ac_compile) 2>conftest.er1
4831   ac_status=$?
4832   grep -v '^ *+' conftest.er1 >conftest.err
4833   rm -f conftest.er1
4834   cat conftest.err >&5
4835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836   (exit $ac_status); } &&
4837          { ac_try='test -z "$ac_c_werror_flag"
4838                          || test ! -s conftest.err'
4839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4840   (eval $ac_try) 2>&5
4841   ac_status=$?
4842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843   (exit $ac_status); }; } &&
4844          { ac_try='test -s conftest.$ac_objext'
4845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4846   (eval $ac_try) 2>&5
4847   ac_status=$?
4848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849   (exit $ac_status); }; }; then
4850   break
4851 else
4852   echo "$as_me: failed program was:" >&5
4853 sed 's/^/| /' conftest.$ac_ext >&5
4854
4855 fi
4856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4857   cat >conftest.$ac_ext <<_ACEOF
4858 /* confdefs.h.  */
4859 _ACEOF
4860 cat confdefs.h >>conftest.$ac_ext
4861 cat >>conftest.$ac_ext <<_ACEOF
4862 /* end confdefs.h.  */
4863 #define _LARGE_FILES 1
4864 #include <sys/types.h>
4865  /* Check that off_t can represent 2**63 - 1 correctly.
4866     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4867     since some C++ compilers masquerading as C compilers
4868     incorrectly reject 9223372036854775807.  */
4869 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4870   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4871                        && LARGE_OFF_T % 2147483647 == 1)
4872                       ? 1 : -1];
4873 int
4874 main ()
4875 {
4876
4877   ;
4878   return 0;
4879 }
4880 _ACEOF
4881 rm -f conftest.$ac_objext
4882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4883   (eval $ac_compile) 2>conftest.er1
4884   ac_status=$?
4885   grep -v '^ *+' conftest.er1 >conftest.err
4886   rm -f conftest.er1
4887   cat conftest.err >&5
4888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889   (exit $ac_status); } &&
4890          { ac_try='test -z "$ac_c_werror_flag"
4891                          || test ! -s conftest.err'
4892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893   (eval $ac_try) 2>&5
4894   ac_status=$?
4895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896   (exit $ac_status); }; } &&
4897          { ac_try='test -s conftest.$ac_objext'
4898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4899   (eval $ac_try) 2>&5
4900   ac_status=$?
4901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902   (exit $ac_status); }; }; then
4903   ac_cv_sys_large_files=1; break
4904 else
4905   echo "$as_me: failed program was:" >&5
4906 sed 's/^/| /' conftest.$ac_ext >&5
4907
4908 fi
4909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4910   break
4911 done
4912 fi
4913 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4914 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4915 if test "$ac_cv_sys_large_files" != no; then
4916
4917 cat >>confdefs.h <<_ACEOF
4918 #define _LARGE_FILES $ac_cv_sys_large_files
4919 _ACEOF
4920
4921 fi
4922 rm -f conftest*
4923 fi
4924
4925 ac_ext=c
4926 ac_cpp='$CPP $CPPFLAGS'
4927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4930 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4931 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4932 # On Suns, sometimes $CPP names a directory.
4933 if test -n "$CPP" && test -d "$CPP"; then
4934   CPP=
4935 fi
4936 if test -z "$CPP"; then
4937   if test "${ac_cv_prog_CPP+set}" = set; then
4938   echo $ECHO_N "(cached) $ECHO_C" >&6
4939 else
4940       # Double quotes because CPP needs to be expanded
4941     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4942     do
4943       ac_preproc_ok=false
4944 for ac_c_preproc_warn_flag in '' yes
4945 do
4946   # Use a header file that comes with gcc, so configuring glibc
4947   # with a fresh cross-compiler works.
4948   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4949   # <limits.h> exists even on freestanding compilers.
4950   # On the NeXT, cc -E runs the code through the compiler's parser,
4951   # not just through cpp. "Syntax error" is here to catch this case.
4952   cat >conftest.$ac_ext <<_ACEOF
4953 /* confdefs.h.  */
4954 _ACEOF
4955 cat confdefs.h >>conftest.$ac_ext
4956 cat >>conftest.$ac_ext <<_ACEOF
4957 /* end confdefs.h.  */
4958 #ifdef __STDC__
4959 # include <limits.h>
4960 #else
4961 # include <assert.h>
4962 #endif
4963                      Syntax error
4964 _ACEOF
4965 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4966   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4967   ac_status=$?
4968   grep -v '^ *+' conftest.er1 >conftest.err
4969   rm -f conftest.er1
4970   cat conftest.err >&5
4971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972   (exit $ac_status); } >/dev/null; then
4973   if test -s conftest.err; then
4974     ac_cpp_err=$ac_c_preproc_warn_flag
4975     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4976   else
4977     ac_cpp_err=
4978   fi
4979 else
4980   ac_cpp_err=yes
4981 fi
4982 if test -z "$ac_cpp_err"; then
4983   :
4984 else
4985   echo "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.$ac_ext >&5
4987
4988   # Broken: fails on valid input.
4989 continue
4990 fi
4991 rm -f conftest.err conftest.$ac_ext
4992
4993   # OK, works on sane cases.  Now check whether non-existent headers
4994   # can be detected and how.
4995   cat >conftest.$ac_ext <<_ACEOF
4996 /* confdefs.h.  */
4997 _ACEOF
4998 cat confdefs.h >>conftest.$ac_ext
4999 cat >>conftest.$ac_ext <<_ACEOF
5000 /* end confdefs.h.  */
5001 #include <ac_nonexistent.h>
5002 _ACEOF
5003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5004   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5005   ac_status=$?
5006   grep -v '^ *+' conftest.er1 >conftest.err
5007   rm -f conftest.er1
5008   cat conftest.err >&5
5009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010   (exit $ac_status); } >/dev/null; then
5011   if test -s conftest.err; then
5012     ac_cpp_err=$ac_c_preproc_warn_flag
5013     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5014   else
5015     ac_cpp_err=
5016   fi
5017 else
5018   ac_cpp_err=yes
5019 fi
5020 if test -z "$ac_cpp_err"; then
5021   # Broken: success on invalid input.
5022 continue
5023 else
5024   echo "$as_me: failed program was:" >&5
5025 sed 's/^/| /' conftest.$ac_ext >&5
5026
5027   # Passes both tests.
5028 ac_preproc_ok=:
5029 break
5030 fi
5031 rm -f conftest.err conftest.$ac_ext
5032
5033 done
5034 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5035 rm -f conftest.err conftest.$ac_ext
5036 if $ac_preproc_ok; then
5037   break
5038 fi
5039
5040     done
5041     ac_cv_prog_CPP=$CPP
5042
5043 fi
5044   CPP=$ac_cv_prog_CPP
5045 else
5046   ac_cv_prog_CPP=$CPP
5047 fi
5048 echo "$as_me:$LINENO: result: $CPP" >&5
5049 echo "${ECHO_T}$CPP" >&6
5050 ac_preproc_ok=false
5051 for ac_c_preproc_warn_flag in '' yes
5052 do
5053   # Use a header file that comes with gcc, so configuring glibc
5054   # with a fresh cross-compiler works.
5055   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5056   # <limits.h> exists even on freestanding compilers.
5057   # On the NeXT, cc -E runs the code through the compiler's parser,
5058   # not just through cpp. "Syntax error" is here to catch this case.
5059   cat >conftest.$ac_ext <<_ACEOF
5060 /* confdefs.h.  */
5061 _ACEOF
5062 cat confdefs.h >>conftest.$ac_ext
5063 cat >>conftest.$ac_ext <<_ACEOF
5064 /* end confdefs.h.  */
5065 #ifdef __STDC__
5066 # include <limits.h>
5067 #else
5068 # include <assert.h>
5069 #endif
5070                      Syntax error
5071 _ACEOF
5072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5073   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5074   ac_status=$?
5075   grep -v '^ *+' conftest.er1 >conftest.err
5076   rm -f conftest.er1
5077   cat conftest.err >&5
5078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079   (exit $ac_status); } >/dev/null; then
5080   if test -s conftest.err; then
5081     ac_cpp_err=$ac_c_preproc_warn_flag
5082     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5083   else
5084     ac_cpp_err=
5085   fi
5086 else
5087   ac_cpp_err=yes
5088 fi
5089 if test -z "$ac_cpp_err"; then
5090   :
5091 else
5092   echo "$as_me: failed program was:" >&5
5093 sed 's/^/| /' conftest.$ac_ext >&5
5094
5095   # Broken: fails on valid input.
5096 continue
5097 fi
5098 rm -f conftest.err conftest.$ac_ext
5099
5100   # OK, works on sane cases.  Now check whether non-existent headers
5101   # can be detected and how.
5102   cat >conftest.$ac_ext <<_ACEOF
5103 /* confdefs.h.  */
5104 _ACEOF
5105 cat confdefs.h >>conftest.$ac_ext
5106 cat >>conftest.$ac_ext <<_ACEOF
5107 /* end confdefs.h.  */
5108 #include <ac_nonexistent.h>
5109 _ACEOF
5110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5111   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5112   ac_status=$?
5113   grep -v '^ *+' conftest.er1 >conftest.err
5114   rm -f conftest.er1
5115   cat conftest.err >&5
5116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117   (exit $ac_status); } >/dev/null; then
5118   if test -s conftest.err; then
5119     ac_cpp_err=$ac_c_preproc_warn_flag
5120     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5121   else
5122     ac_cpp_err=
5123   fi
5124 else
5125   ac_cpp_err=yes
5126 fi
5127 if test -z "$ac_cpp_err"; then
5128   # Broken: success on invalid input.
5129 continue
5130 else
5131   echo "$as_me: failed program was:" >&5
5132 sed 's/^/| /' conftest.$ac_ext >&5
5133
5134   # Passes both tests.
5135 ac_preproc_ok=:
5136 break
5137 fi
5138 rm -f conftest.err conftest.$ac_ext
5139
5140 done
5141 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5142 rm -f conftest.err conftest.$ac_ext
5143 if $ac_preproc_ok; then
5144   :
5145 else
5146   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5147 See \`config.log' for more details." >&5
5148 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5149 See \`config.log' for more details." >&2;}
5150    { (exit 1); exit 1; }; }
5151 fi
5152
5153 ac_ext=c
5154 ac_cpp='$CPP $CPPFLAGS'
5155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5158
5159
5160 echo "$as_me:$LINENO: checking for egrep" >&5
5161 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5162 if test "${ac_cv_prog_egrep+set}" = set; then
5163   echo $ECHO_N "(cached) $ECHO_C" >&6
5164 else
5165   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5166     then ac_cv_prog_egrep='grep -E'
5167     else ac_cv_prog_egrep='egrep'
5168     fi
5169 fi
5170 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5171 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5172  EGREP=$ac_cv_prog_egrep
5173
5174
5175 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5176 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5177 if test "${ac_cv_header_stdc+set}" = set; then
5178   echo $ECHO_N "(cached) $ECHO_C" >&6
5179 else
5180   cat >conftest.$ac_ext <<_ACEOF
5181 /* confdefs.h.  */
5182 _ACEOF
5183 cat confdefs.h >>conftest.$ac_ext
5184 cat >>conftest.$ac_ext <<_ACEOF
5185 /* end confdefs.h.  */
5186 #include <stdlib.h>
5187 #include <stdarg.h>
5188 #include <string.h>
5189 #include <float.h>
5190
5191 int
5192 main ()
5193 {
5194
5195   ;
5196   return 0;
5197 }
5198 _ACEOF
5199 rm -f conftest.$ac_objext
5200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5201   (eval $ac_compile) 2>conftest.er1
5202   ac_status=$?
5203   grep -v '^ *+' conftest.er1 >conftest.err
5204   rm -f conftest.er1
5205   cat conftest.err >&5
5206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207   (exit $ac_status); } &&
5208          { ac_try='test -z "$ac_c_werror_flag"
5209                          || test ! -s conftest.err'
5210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5211   (eval $ac_try) 2>&5
5212   ac_status=$?
5213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214   (exit $ac_status); }; } &&
5215          { ac_try='test -s conftest.$ac_objext'
5216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5217   (eval $ac_try) 2>&5
5218   ac_status=$?
5219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220   (exit $ac_status); }; }; then
5221   ac_cv_header_stdc=yes
5222 else
5223   echo "$as_me: failed program was:" >&5
5224 sed 's/^/| /' conftest.$ac_ext >&5
5225
5226 ac_cv_header_stdc=no
5227 fi
5228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5229
5230 if test $ac_cv_header_stdc = yes; then
5231   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5232   cat >conftest.$ac_ext <<_ACEOF
5233 /* confdefs.h.  */
5234 _ACEOF
5235 cat confdefs.h >>conftest.$ac_ext
5236 cat >>conftest.$ac_ext <<_ACEOF
5237 /* end confdefs.h.  */
5238 #include <string.h>
5239
5240 _ACEOF
5241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5242   $EGREP "memchr" >/dev/null 2>&1; then
5243   :
5244 else
5245   ac_cv_header_stdc=no
5246 fi
5247 rm -f conftest*
5248
5249 fi
5250
5251 if test $ac_cv_header_stdc = yes; then
5252   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5253   cat >conftest.$ac_ext <<_ACEOF
5254 /* confdefs.h.  */
5255 _ACEOF
5256 cat confdefs.h >>conftest.$ac_ext
5257 cat >>conftest.$ac_ext <<_ACEOF
5258 /* end confdefs.h.  */
5259 #include <stdlib.h>
5260
5261 _ACEOF
5262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5263   $EGREP "free" >/dev/null 2>&1; then
5264   :
5265 else
5266   ac_cv_header_stdc=no
5267 fi
5268 rm -f conftest*
5269
5270 fi
5271
5272 if test $ac_cv_header_stdc = yes; then
5273   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5274   if test "$cross_compiling" = yes; then
5275   :
5276 else
5277   cat >conftest.$ac_ext <<_ACEOF
5278 /* confdefs.h.  */
5279 _ACEOF
5280 cat confdefs.h >>conftest.$ac_ext
5281 cat >>conftest.$ac_ext <<_ACEOF
5282 /* end confdefs.h.  */
5283 #include <ctype.h>
5284 #if ((' ' & 0x0FF) == 0x020)
5285 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5286 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5287 #else
5288 # define ISLOWER(c) \
5289                    (('a' <= (c) && (c) <= 'i') \
5290                      || ('j' <= (c) && (c) <= 'r') \
5291                      || ('s' <= (c) && (c) <= 'z'))
5292 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5293 #endif
5294
5295 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5296 int
5297 main ()
5298 {
5299   int i;
5300   for (i = 0; i < 256; i++)
5301     if (XOR (islower (i), ISLOWER (i))
5302         || toupper (i) != TOUPPER (i))
5303       exit(2);
5304   exit (0);
5305 }
5306 _ACEOF
5307 rm -f conftest$ac_exeext
5308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5309   (eval $ac_link) 2>&5
5310   ac_status=$?
5311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5314   (eval $ac_try) 2>&5
5315   ac_status=$?
5316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317   (exit $ac_status); }; }; then
5318   :
5319 else
5320   echo "$as_me: program exited with status $ac_status" >&5
5321 echo "$as_me: failed program was:" >&5
5322 sed 's/^/| /' conftest.$ac_ext >&5
5323
5324 ( exit $ac_status )
5325 ac_cv_header_stdc=no
5326 fi
5327 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5328 fi
5329 fi
5330 fi
5331 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5332 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5333 if test $ac_cv_header_stdc = yes; then
5334
5335 cat >>confdefs.h <<\_ACEOF
5336 #define STDC_HEADERS 1
5337 _ACEOF
5338
5339 fi
5340
5341 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5352                   inttypes.h stdint.h unistd.h
5353 do
5354 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5355 echo "$as_me:$LINENO: checking for $ac_header" >&5
5356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5358   echo $ECHO_N "(cached) $ECHO_C" >&6
5359 else
5360   cat >conftest.$ac_ext <<_ACEOF
5361 /* confdefs.h.  */
5362 _ACEOF
5363 cat confdefs.h >>conftest.$ac_ext
5364 cat >>conftest.$ac_ext <<_ACEOF
5365 /* end confdefs.h.  */
5366 $ac_includes_default
5367
5368 #include <$ac_header>
5369 _ACEOF
5370 rm -f conftest.$ac_objext
5371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5372   (eval $ac_compile) 2>conftest.er1
5373   ac_status=$?
5374   grep -v '^ *+' conftest.er1 >conftest.err
5375   rm -f conftest.er1
5376   cat conftest.err >&5
5377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378   (exit $ac_status); } &&
5379          { ac_try='test -z "$ac_c_werror_flag"
5380                          || test ! -s conftest.err'
5381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5382   (eval $ac_try) 2>&5
5383   ac_status=$?
5384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385   (exit $ac_status); }; } &&
5386          { ac_try='test -s conftest.$ac_objext'
5387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5388   (eval $ac_try) 2>&5
5389   ac_status=$?
5390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391   (exit $ac_status); }; }; then
5392   eval "$as_ac_Header=yes"
5393 else
5394   echo "$as_me: failed program was:" >&5
5395 sed 's/^/| /' conftest.$ac_ext >&5
5396
5397 eval "$as_ac_Header=no"
5398 fi
5399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5400 fi
5401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5403 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5404   cat >>confdefs.h <<_ACEOF
5405 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5406 _ACEOF
5407
5408 fi
5409
5410 done
5411
5412
5413
5414
5415 for ac_header in stdlib.h unistd.h
5416 do
5417 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5419   echo "$as_me:$LINENO: checking for $ac_header" >&5
5420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5422   echo $ECHO_N "(cached) $ECHO_C" >&6
5423 fi
5424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5426 else
5427   # Is the header compilable?
5428 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5429 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5430 cat >conftest.$ac_ext <<_ACEOF
5431 /* confdefs.h.  */
5432 _ACEOF
5433 cat confdefs.h >>conftest.$ac_ext
5434 cat >>conftest.$ac_ext <<_ACEOF
5435 /* end confdefs.h.  */
5436 $ac_includes_default
5437 #include <$ac_header>
5438 _ACEOF
5439 rm -f conftest.$ac_objext
5440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5441   (eval $ac_compile) 2>conftest.er1
5442   ac_status=$?
5443   grep -v '^ *+' conftest.er1 >conftest.err
5444   rm -f conftest.er1
5445   cat conftest.err >&5
5446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447   (exit $ac_status); } &&
5448          { ac_try='test -z "$ac_c_werror_flag"
5449                          || test ! -s conftest.err'
5450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5451   (eval $ac_try) 2>&5
5452   ac_status=$?
5453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454   (exit $ac_status); }; } &&
5455          { ac_try='test -s conftest.$ac_objext'
5456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5457   (eval $ac_try) 2>&5
5458   ac_status=$?
5459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460   (exit $ac_status); }; }; then
5461   ac_header_compiler=yes
5462 else
5463   echo "$as_me: failed program was:" >&5
5464 sed 's/^/| /' conftest.$ac_ext >&5
5465
5466 ac_header_compiler=no
5467 fi
5468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5469 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5470 echo "${ECHO_T}$ac_header_compiler" >&6
5471
5472 # Is the header present?
5473 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5474 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5475 cat >conftest.$ac_ext <<_ACEOF
5476 /* confdefs.h.  */
5477 _ACEOF
5478 cat confdefs.h >>conftest.$ac_ext
5479 cat >>conftest.$ac_ext <<_ACEOF
5480 /* end confdefs.h.  */
5481 #include <$ac_header>
5482 _ACEOF
5483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5484   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5485   ac_status=$?
5486   grep -v '^ *+' conftest.er1 >conftest.err
5487   rm -f conftest.er1
5488   cat conftest.err >&5
5489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490   (exit $ac_status); } >/dev/null; then
5491   if test -s conftest.err; then
5492     ac_cpp_err=$ac_c_preproc_warn_flag
5493     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5494   else
5495     ac_cpp_err=
5496   fi
5497 else
5498   ac_cpp_err=yes
5499 fi
5500 if test -z "$ac_cpp_err"; then
5501   ac_header_preproc=yes
5502 else
5503   echo "$as_me: failed program was:" >&5
5504 sed 's/^/| /' conftest.$ac_ext >&5
5505
5506   ac_header_preproc=no
5507 fi
5508 rm -f conftest.err conftest.$ac_ext
5509 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5510 echo "${ECHO_T}$ac_header_preproc" >&6
5511
5512 # So?  What about this header?
5513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5514   yes:no: )
5515     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5516 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5517     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5518 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5519     ac_header_preproc=yes
5520     ;;
5521   no:yes:* )
5522     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5523 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5524     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5525 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5526     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5527 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5528     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5529 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5530     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5532     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5533 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5534     (
5535       cat <<\_ASBOX
5536 ## ------------------------------------------------------ ##
5537 ## Report this to the GNU Fortran Runtime Library lists.  ##
5538 ## ------------------------------------------------------ ##
5539 _ASBOX
5540     ) |
5541       sed "s/^/$as_me: WARNING:     /" >&2
5542     ;;
5543 esac
5544 echo "$as_me:$LINENO: checking for $ac_header" >&5
5545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5547   echo $ECHO_N "(cached) $ECHO_C" >&6
5548 else
5549   eval "$as_ac_Header=\$ac_header_preproc"
5550 fi
5551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5553
5554 fi
5555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5556   cat >>confdefs.h <<_ACEOF
5557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5558 _ACEOF
5559
5560 fi
5561
5562 done
5563
5564
5565 for ac_func in getpagesize
5566 do
5567 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5568 echo "$as_me:$LINENO: checking for $ac_func" >&5
5569 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5570 if eval "test \"\${$as_ac_var+set}\" = set"; then
5571   echo $ECHO_N "(cached) $ECHO_C" >&6
5572 else
5573   cat >conftest.$ac_ext <<_ACEOF
5574 /* confdefs.h.  */
5575 _ACEOF
5576 cat confdefs.h >>conftest.$ac_ext
5577 cat >>conftest.$ac_ext <<_ACEOF
5578 /* end confdefs.h.  */
5579 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5580    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5581 #define $ac_func innocuous_$ac_func
5582
5583 /* System header to define __stub macros and hopefully few prototypes,
5584     which can conflict with char $ac_func (); below.
5585     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5586     <limits.h> exists even on freestanding compilers.  */
5587
5588 #ifdef __STDC__
5589 # include <limits.h>
5590 #else
5591 # include <assert.h>
5592 #endif
5593
5594 #undef $ac_func
5595
5596 /* Override any gcc2 internal prototype to avoid an error.  */
5597 #ifdef __cplusplus
5598 extern "C"
5599 {
5600 #endif
5601 /* We use char because int might match the return type of a gcc2
5602    builtin and then its argument prototype would still apply.  */
5603 char $ac_func ();
5604 /* The GNU C library defines this for functions which it implements
5605     to always fail with ENOSYS.  Some functions are actually named
5606     something starting with __ and the normal name is an alias.  */
5607 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5608 choke me
5609 #else
5610 char (*f) () = $ac_func;
5611 #endif
5612 #ifdef __cplusplus
5613 }
5614 #endif
5615
5616 int
5617 main ()
5618 {
5619 return f != $ac_func;
5620   ;
5621   return 0;
5622 }
5623 _ACEOF
5624 rm -f conftest.$ac_objext conftest$ac_exeext
5625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5626   (eval $ac_link) 2>conftest.er1
5627   ac_status=$?
5628   grep -v '^ *+' conftest.er1 >conftest.err
5629   rm -f conftest.er1
5630   cat conftest.err >&5
5631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632   (exit $ac_status); } &&
5633          { ac_try='test -z "$ac_c_werror_flag"
5634                          || test ! -s conftest.err'
5635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5636   (eval $ac_try) 2>&5
5637   ac_status=$?
5638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639   (exit $ac_status); }; } &&
5640          { ac_try='test -s conftest$ac_exeext'
5641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5642   (eval $ac_try) 2>&5
5643   ac_status=$?
5644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645   (exit $ac_status); }; }; then
5646   eval "$as_ac_var=yes"
5647 else
5648   echo "$as_me: failed program was:" >&5
5649 sed 's/^/| /' conftest.$ac_ext >&5
5650
5651 eval "$as_ac_var=no"
5652 fi
5653 rm -f conftest.err conftest.$ac_objext \
5654       conftest$ac_exeext conftest.$ac_ext
5655 fi
5656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5657 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5658 if test `eval echo '${'$as_ac_var'}'` = yes; then
5659   cat >>confdefs.h <<_ACEOF
5660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5661 _ACEOF
5662
5663 fi
5664 done
5665
5666 echo "$as_me:$LINENO: checking for working mmap" >&5
5667 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5668 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5669   echo $ECHO_N "(cached) $ECHO_C" >&6
5670 else
5671   if test "$cross_compiling" = yes; then
5672   ac_cv_func_mmap_fixed_mapped=no
5673 else
5674   cat >conftest.$ac_ext <<_ACEOF
5675 /* confdefs.h.  */
5676 _ACEOF
5677 cat confdefs.h >>conftest.$ac_ext
5678 cat >>conftest.$ac_ext <<_ACEOF
5679 /* end confdefs.h.  */
5680 $ac_includes_default
5681 /* malloc might have been renamed as rpl_malloc. */
5682 #undef malloc
5683
5684 /* Thanks to Mike Haertel and Jim Avera for this test.
5685    Here is a matrix of mmap possibilities:
5686         mmap private not fixed
5687         mmap private fixed at somewhere currently unmapped
5688         mmap private fixed at somewhere already mapped
5689         mmap shared not fixed
5690         mmap shared fixed at somewhere currently unmapped
5691         mmap shared fixed at somewhere already mapped
5692    For private mappings, we should verify that changes cannot be read()
5693    back from the file, nor mmap's back from the file at a different
5694    address.  (There have been systems where private was not correctly
5695    implemented like the infamous i386 svr4.0, and systems where the
5696    VM page cache was not coherent with the file system buffer cache
5697    like early versions of FreeBSD and possibly contemporary NetBSD.)
5698    For shared mappings, we should conversely verify that changes get
5699    propagated back to all the places they're supposed to be.
5700
5701    Grep wants private fixed already mapped.
5702    The main things grep needs to know about mmap are:
5703    * does it exist and is it safe to write into the mmap'd area
5704    * how to use it (BSD variants)  */
5705
5706 #include <fcntl.h>
5707 #include <sys/mman.h>
5708
5709 #if !STDC_HEADERS && !HAVE_STDLIB_H
5710 char *malloc ();
5711 #endif
5712
5713 /* This mess was copied from the GNU getpagesize.h.  */
5714 #if !HAVE_GETPAGESIZE
5715 /* Assume that all systems that can run configure have sys/param.h.  */
5716 # if !HAVE_SYS_PARAM_H
5717 #  define HAVE_SYS_PARAM_H 1
5718 # endif
5719
5720 # ifdef _SC_PAGESIZE
5721 #  define getpagesize() sysconf(_SC_PAGESIZE)
5722 # else /* no _SC_PAGESIZE */
5723 #  if HAVE_SYS_PARAM_H
5724 #   include <sys/param.h>
5725 #   ifdef EXEC_PAGESIZE
5726 #    define getpagesize() EXEC_PAGESIZE
5727 #   else /* no EXEC_PAGESIZE */
5728 #    ifdef NBPG
5729 #     define getpagesize() NBPG * CLSIZE
5730 #     ifndef CLSIZE
5731 #      define CLSIZE 1
5732 #     endif /* no CLSIZE */
5733 #    else /* no NBPG */
5734 #     ifdef NBPC
5735 #      define getpagesize() NBPC
5736 #     else /* no NBPC */
5737 #      ifdef PAGESIZE
5738 #       define getpagesize() PAGESIZE
5739 #      endif /* PAGESIZE */
5740 #     endif /* no NBPC */
5741 #    endif /* no NBPG */
5742 #   endif /* no EXEC_PAGESIZE */
5743 #  else /* no HAVE_SYS_PARAM_H */
5744 #   define getpagesize() 8192   /* punt totally */
5745 #  endif /* no HAVE_SYS_PARAM_H */
5746 # endif /* no _SC_PAGESIZE */
5747
5748 #endif /* no HAVE_GETPAGESIZE */
5749
5750 int
5751 main ()
5752 {
5753   char *data, *data2, *data3;
5754   int i, pagesize;
5755   int fd;
5756
5757   pagesize = getpagesize ();
5758
5759   /* First, make a file with some known garbage in it. */
5760   data = (char *) malloc (pagesize);
5761   if (!data)
5762     exit (1);
5763   for (i = 0; i < pagesize; ++i)
5764     *(data + i) = rand ();
5765   umask (0);
5766   fd = creat ("conftest.mmap", 0600);
5767   if (fd < 0)
5768     exit (1);
5769   if (write (fd, data, pagesize) != pagesize)
5770     exit (1);
5771   close (fd);
5772
5773   /* Next, try to mmap the file at a fixed address which already has
5774      something else allocated at it.  If we can, also make sure that
5775      we see the same garbage.  */
5776   fd = open ("conftest.mmap", O_RDWR);
5777   if (fd < 0)
5778     exit (1);
5779   data2 = (char *) malloc (2 * pagesize);
5780   if (!data2)
5781     exit (1);
5782   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
5783   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5784                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
5785     exit (1);
5786   for (i = 0; i < pagesize; ++i)
5787     if (*(data + i) != *(data2 + i))
5788       exit (1);
5789
5790   /* Finally, make sure that changes to the mapped area do not
5791      percolate back to the file as seen by read().  (This is a bug on
5792      some variants of i386 svr4.0.)  */
5793   for (i = 0; i < pagesize; ++i)
5794     *(data2 + i) = *(data2 + i) + 1;
5795   data3 = (char *) malloc (pagesize);
5796   if (!data3)
5797     exit (1);
5798   if (read (fd, data3, pagesize) != pagesize)
5799     exit (1);
5800   for (i = 0; i < pagesize; ++i)
5801     if (*(data + i) != *(data3 + i))
5802       exit (1);
5803   close (fd);
5804   exit (0);
5805 }
5806 _ACEOF
5807 rm -f conftest$ac_exeext
5808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5809   (eval $ac_link) 2>&5
5810   ac_status=$?
5811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5814   (eval $ac_try) 2>&5
5815   ac_status=$?
5816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817   (exit $ac_status); }; }; then
5818   ac_cv_func_mmap_fixed_mapped=yes
5819 else
5820   echo "$as_me: program exited with status $ac_status" >&5
5821 echo "$as_me: failed program was:" >&5
5822 sed 's/^/| /' conftest.$ac_ext >&5
5823
5824 ( exit $ac_status )
5825 ac_cv_func_mmap_fixed_mapped=no
5826 fi
5827 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5828 fi
5829 fi
5830 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5831 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5832 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5833
5834 cat >>confdefs.h <<\_ACEOF
5835 #define HAVE_MMAP 1
5836 _ACEOF
5837
5838 fi
5839 rm -f conftest.mmap
5840
5841 echo "$as_me:$LINENO: checking for off_t" >&5
5842 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5843 if test "${ac_cv_type_off_t+set}" = set; then
5844   echo $ECHO_N "(cached) $ECHO_C" >&6
5845 else
5846   cat >conftest.$ac_ext <<_ACEOF
5847 /* confdefs.h.  */
5848 _ACEOF
5849 cat confdefs.h >>conftest.$ac_ext
5850 cat >>conftest.$ac_ext <<_ACEOF
5851 /* end confdefs.h.  */
5852 $ac_includes_default
5853 int
5854 main ()
5855 {
5856 if ((off_t *) 0)
5857   return 0;
5858 if (sizeof (off_t))
5859   return 0;
5860   ;
5861   return 0;
5862 }
5863 _ACEOF
5864 rm -f conftest.$ac_objext
5865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5866   (eval $ac_compile) 2>conftest.er1
5867   ac_status=$?
5868   grep -v '^ *+' conftest.er1 >conftest.err
5869   rm -f conftest.er1
5870   cat conftest.err >&5
5871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872   (exit $ac_status); } &&
5873          { ac_try='test -z "$ac_c_werror_flag"
5874                          || test ! -s conftest.err'
5875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876   (eval $ac_try) 2>&5
5877   ac_status=$?
5878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879   (exit $ac_status); }; } &&
5880          { ac_try='test -s conftest.$ac_objext'
5881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5882   (eval $ac_try) 2>&5
5883   ac_status=$?
5884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885   (exit $ac_status); }; }; then
5886   ac_cv_type_off_t=yes
5887 else
5888   echo "$as_me: failed program was:" >&5
5889 sed 's/^/| /' conftest.$ac_ext >&5
5890
5891 ac_cv_type_off_t=no
5892 fi
5893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5894 fi
5895 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5896 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5897 if test $ac_cv_type_off_t = yes; then
5898   :
5899 else
5900
5901 cat >>confdefs.h <<_ACEOF
5902 #define off_t long
5903 _ACEOF
5904
5905 fi
5906
5907
5908 # check header files
5909 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5910 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5911 if test "${ac_cv_header_stdc+set}" = set; then
5912   echo $ECHO_N "(cached) $ECHO_C" >&6
5913 else
5914   cat >conftest.$ac_ext <<_ACEOF
5915 /* confdefs.h.  */
5916 _ACEOF
5917 cat confdefs.h >>conftest.$ac_ext
5918 cat >>conftest.$ac_ext <<_ACEOF
5919 /* end confdefs.h.  */
5920 #include <stdlib.h>
5921 #include <stdarg.h>
5922 #include <string.h>
5923 #include <float.h>
5924
5925 int
5926 main ()
5927 {
5928
5929   ;
5930   return 0;
5931 }
5932 _ACEOF
5933 rm -f conftest.$ac_objext
5934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5935   (eval $ac_compile) 2>conftest.er1
5936   ac_status=$?
5937   grep -v '^ *+' conftest.er1 >conftest.err
5938   rm -f conftest.er1
5939   cat conftest.err >&5
5940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941   (exit $ac_status); } &&
5942          { ac_try='test -z "$ac_c_werror_flag"
5943                          || test ! -s conftest.err'
5944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5945   (eval $ac_try) 2>&5
5946   ac_status=$?
5947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948   (exit $ac_status); }; } &&
5949          { ac_try='test -s conftest.$ac_objext'
5950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5951   (eval $ac_try) 2>&5
5952   ac_status=$?
5953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954   (exit $ac_status); }; }; then
5955   ac_cv_header_stdc=yes
5956 else
5957   echo "$as_me: failed program was:" >&5
5958 sed 's/^/| /' conftest.$ac_ext >&5
5959
5960 ac_cv_header_stdc=no
5961 fi
5962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5963
5964 if test $ac_cv_header_stdc = yes; then
5965   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5966   cat >conftest.$ac_ext <<_ACEOF
5967 /* confdefs.h.  */
5968 _ACEOF
5969 cat confdefs.h >>conftest.$ac_ext
5970 cat >>conftest.$ac_ext <<_ACEOF
5971 /* end confdefs.h.  */
5972 #include <string.h>
5973
5974 _ACEOF
5975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5976   $EGREP "memchr" >/dev/null 2>&1; then
5977   :
5978 else
5979   ac_cv_header_stdc=no
5980 fi
5981 rm -f conftest*
5982
5983 fi
5984
5985 if test $ac_cv_header_stdc = yes; then
5986   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5987   cat >conftest.$ac_ext <<_ACEOF
5988 /* confdefs.h.  */
5989 _ACEOF
5990 cat confdefs.h >>conftest.$ac_ext
5991 cat >>conftest.$ac_ext <<_ACEOF
5992 /* end confdefs.h.  */
5993 #include <stdlib.h>
5994
5995 _ACEOF
5996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5997   $EGREP "free" >/dev/null 2>&1; then
5998   :
5999 else
6000   ac_cv_header_stdc=no
6001 fi
6002 rm -f conftest*
6003
6004 fi
6005
6006 if test $ac_cv_header_stdc = yes; then
6007   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6008   if test "$cross_compiling" = yes; then
6009   :
6010 else
6011   cat >conftest.$ac_ext <<_ACEOF
6012 /* confdefs.h.  */
6013 _ACEOF
6014 cat confdefs.h >>conftest.$ac_ext
6015 cat >>conftest.$ac_ext <<_ACEOF
6016 /* end confdefs.h.  */
6017 #include <ctype.h>
6018 #if ((' ' & 0x0FF) == 0x020)
6019 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6020 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6021 #else
6022 # define ISLOWER(c) \
6023                    (('a' <= (c) && (c) <= 'i') \
6024                      || ('j' <= (c) && (c) <= 'r') \
6025                      || ('s' <= (c) && (c) <= 'z'))
6026 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6027 #endif
6028
6029 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6030 int
6031 main ()
6032 {
6033   int i;
6034   for (i = 0; i < 256; i++)
6035     if (XOR (islower (i), ISLOWER (i))
6036         || toupper (i) != TOUPPER (i))
6037       exit(2);
6038   exit (0);
6039 }
6040 _ACEOF
6041 rm -f conftest$ac_exeext
6042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6043   (eval $ac_link) 2>&5
6044   ac_status=$?
6045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6048   (eval $ac_try) 2>&5
6049   ac_status=$?
6050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051   (exit $ac_status); }; }; then
6052   :
6053 else
6054   echo "$as_me: program exited with status $ac_status" >&5
6055 echo "$as_me: failed program was:" >&5
6056 sed 's/^/| /' conftest.$ac_ext >&5
6057
6058 ( exit $ac_status )
6059 ac_cv_header_stdc=no
6060 fi
6061 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6062 fi
6063 fi
6064 fi
6065 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6066 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6067 if test $ac_cv_header_stdc = yes; then
6068
6069 cat >>confdefs.h <<\_ACEOF
6070 #define STDC_HEADERS 1
6071 _ACEOF
6072
6073 fi
6074
6075
6076
6077
6078
6079
6080
6081 for ac_header in stdlib.h stdio.h string.h stddef.h math.h unistd.h
6082 do
6083 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6085   echo "$as_me:$LINENO: checking for $ac_header" >&5
6086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6088   echo $ECHO_N "(cached) $ECHO_C" >&6
6089 fi
6090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6091 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6092 else
6093   # Is the header compilable?
6094 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6095 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6096 cat >conftest.$ac_ext <<_ACEOF
6097 /* confdefs.h.  */
6098 _ACEOF
6099 cat confdefs.h >>conftest.$ac_ext
6100 cat >>conftest.$ac_ext <<_ACEOF
6101 /* end confdefs.h.  */
6102 $ac_includes_default
6103 #include <$ac_header>
6104 _ACEOF
6105 rm -f conftest.$ac_objext
6106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6107   (eval $ac_compile) 2>conftest.er1
6108   ac_status=$?
6109   grep -v '^ *+' conftest.er1 >conftest.err
6110   rm -f conftest.er1
6111   cat conftest.err >&5
6112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113   (exit $ac_status); } &&
6114          { ac_try='test -z "$ac_c_werror_flag"
6115                          || test ! -s conftest.err'
6116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6117   (eval $ac_try) 2>&5
6118   ac_status=$?
6119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120   (exit $ac_status); }; } &&
6121          { ac_try='test -s conftest.$ac_objext'
6122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6123   (eval $ac_try) 2>&5
6124   ac_status=$?
6125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126   (exit $ac_status); }; }; then
6127   ac_header_compiler=yes
6128 else
6129   echo "$as_me: failed program was:" >&5
6130 sed 's/^/| /' conftest.$ac_ext >&5
6131
6132 ac_header_compiler=no
6133 fi
6134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6135 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6136 echo "${ECHO_T}$ac_header_compiler" >&6
6137
6138 # Is the header present?
6139 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6140 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6141 cat >conftest.$ac_ext <<_ACEOF
6142 /* confdefs.h.  */
6143 _ACEOF
6144 cat confdefs.h >>conftest.$ac_ext
6145 cat >>conftest.$ac_ext <<_ACEOF
6146 /* end confdefs.h.  */
6147 #include <$ac_header>
6148 _ACEOF
6149 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6150   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6151   ac_status=$?
6152   grep -v '^ *+' conftest.er1 >conftest.err
6153   rm -f conftest.er1
6154   cat conftest.err >&5
6155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156   (exit $ac_status); } >/dev/null; then
6157   if test -s conftest.err; then
6158     ac_cpp_err=$ac_c_preproc_warn_flag
6159     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6160   else
6161     ac_cpp_err=
6162   fi
6163 else
6164   ac_cpp_err=yes
6165 fi
6166 if test -z "$ac_cpp_err"; then
6167   ac_header_preproc=yes
6168 else
6169   echo "$as_me: failed program was:" >&5
6170 sed 's/^/| /' conftest.$ac_ext >&5
6171
6172   ac_header_preproc=no
6173 fi
6174 rm -f conftest.err conftest.$ac_ext
6175 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6176 echo "${ECHO_T}$ac_header_preproc" >&6
6177
6178 # So?  What about this header?
6179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6180   yes:no: )
6181     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6182 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6183     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6184 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6185     ac_header_preproc=yes
6186     ;;
6187   no:yes:* )
6188     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6189 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6190     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6191 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6192     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6193 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6194     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6195 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6196     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6197 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6198     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6199 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6200     (
6201       cat <<\_ASBOX
6202 ## ------------------------------------------------------ ##
6203 ## Report this to the GNU Fortran Runtime Library lists.  ##
6204 ## ------------------------------------------------------ ##
6205 _ASBOX
6206     ) |
6207       sed "s/^/$as_me: WARNING:     /" >&2
6208     ;;
6209 esac
6210 echo "$as_me:$LINENO: checking for $ac_header" >&5
6211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6213   echo $ECHO_N "(cached) $ECHO_C" >&6
6214 else
6215   eval "$as_ac_Header=\$ac_header_preproc"
6216 fi
6217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6219
6220 fi
6221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6222   cat >>confdefs.h <<_ACEOF
6223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6224 _ACEOF
6225
6226 fi
6227
6228 done
6229
6230
6231
6232
6233
6234
6235 for ac_header in time.h sys/params.h sys/time.h sys/times.h sys/resource.h
6236 do
6237 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6239   echo "$as_me:$LINENO: checking for $ac_header" >&5
6240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6241 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6242   echo $ECHO_N "(cached) $ECHO_C" >&6
6243 fi
6244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6245 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6246 else
6247   # Is the header compilable?
6248 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6249 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6250 cat >conftest.$ac_ext <<_ACEOF
6251 /* confdefs.h.  */
6252 _ACEOF
6253 cat confdefs.h >>conftest.$ac_ext
6254 cat >>conftest.$ac_ext <<_ACEOF
6255 /* end confdefs.h.  */
6256 $ac_includes_default
6257 #include <$ac_header>
6258 _ACEOF
6259 rm -f conftest.$ac_objext
6260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6261   (eval $ac_compile) 2>conftest.er1
6262   ac_status=$?
6263   grep -v '^ *+' conftest.er1 >conftest.err
6264   rm -f conftest.er1
6265   cat conftest.err >&5
6266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267   (exit $ac_status); } &&
6268          { ac_try='test -z "$ac_c_werror_flag"
6269                          || test ! -s conftest.err'
6270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6271   (eval $ac_try) 2>&5
6272   ac_status=$?
6273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274   (exit $ac_status); }; } &&
6275          { ac_try='test -s conftest.$ac_objext'
6276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6277   (eval $ac_try) 2>&5
6278   ac_status=$?
6279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280   (exit $ac_status); }; }; then
6281   ac_header_compiler=yes
6282 else
6283   echo "$as_me: failed program was:" >&5
6284 sed 's/^/| /' conftest.$ac_ext >&5
6285
6286 ac_header_compiler=no
6287 fi
6288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6289 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6290 echo "${ECHO_T}$ac_header_compiler" >&6
6291
6292 # Is the header present?
6293 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6294 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6295 cat >conftest.$ac_ext <<_ACEOF
6296 /* confdefs.h.  */
6297 _ACEOF
6298 cat confdefs.h >>conftest.$ac_ext
6299 cat >>conftest.$ac_ext <<_ACEOF
6300 /* end confdefs.h.  */
6301 #include <$ac_header>
6302 _ACEOF
6303 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6304   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6305   ac_status=$?
6306   grep -v '^ *+' conftest.er1 >conftest.err
6307   rm -f conftest.er1
6308   cat conftest.err >&5
6309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310   (exit $ac_status); } >/dev/null; then
6311   if test -s conftest.err; then
6312     ac_cpp_err=$ac_c_preproc_warn_flag
6313     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6314   else
6315     ac_cpp_err=
6316   fi
6317 else
6318   ac_cpp_err=yes
6319 fi
6320 if test -z "$ac_cpp_err"; then
6321   ac_header_preproc=yes
6322 else
6323   echo "$as_me: failed program was:" >&5
6324 sed 's/^/| /' conftest.$ac_ext >&5
6325
6326   ac_header_preproc=no
6327 fi
6328 rm -f conftest.err conftest.$ac_ext
6329 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6330 echo "${ECHO_T}$ac_header_preproc" >&6
6331
6332 # So?  What about this header?
6333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6334   yes:no: )
6335     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6336 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6337     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6338 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6339     ac_header_preproc=yes
6340     ;;
6341   no:yes:* )
6342     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6343 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6344     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6345 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6346     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6347 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6348     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6349 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6350     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6351 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6352     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6353 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6354     (
6355       cat <<\_ASBOX
6356 ## ------------------------------------------------------ ##
6357 ## Report this to the GNU Fortran Runtime Library lists.  ##
6358 ## ------------------------------------------------------ ##
6359 _ASBOX
6360     ) |
6361       sed "s/^/$as_me: WARNING:     /" >&2
6362     ;;
6363 esac
6364 echo "$as_me:$LINENO: checking for $ac_header" >&5
6365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6367   echo $ECHO_N "(cached) $ECHO_C" >&6
6368 else
6369   eval "$as_ac_Header=\$ac_header_preproc"
6370 fi
6371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6372 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6373
6374 fi
6375 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6376   cat >>confdefs.h <<_ACEOF
6377 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6378 _ACEOF
6379
6380 fi
6381
6382 done
6383
6384
6385 for ac_header in sys/mman.h
6386 do
6387 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6389   echo "$as_me:$LINENO: checking for $ac_header" >&5
6390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6392   echo $ECHO_N "(cached) $ECHO_C" >&6
6393 fi
6394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6396 else
6397   # Is the header compilable?
6398 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6399 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6400 cat >conftest.$ac_ext <<_ACEOF
6401 /* confdefs.h.  */
6402 _ACEOF
6403 cat confdefs.h >>conftest.$ac_ext
6404 cat >>conftest.$ac_ext <<_ACEOF
6405 /* end confdefs.h.  */
6406 $ac_includes_default
6407 #include <$ac_header>
6408 _ACEOF
6409 rm -f conftest.$ac_objext
6410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6411   (eval $ac_compile) 2>conftest.er1
6412   ac_status=$?
6413   grep -v '^ *+' conftest.er1 >conftest.err
6414   rm -f conftest.er1
6415   cat conftest.err >&5
6416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417   (exit $ac_status); } &&
6418          { ac_try='test -z "$ac_c_werror_flag"
6419                          || test ! -s conftest.err'
6420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6421   (eval $ac_try) 2>&5
6422   ac_status=$?
6423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424   (exit $ac_status); }; } &&
6425          { ac_try='test -s conftest.$ac_objext'
6426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6427   (eval $ac_try) 2>&5
6428   ac_status=$?
6429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430   (exit $ac_status); }; }; then
6431   ac_header_compiler=yes
6432 else
6433   echo "$as_me: failed program was:" >&5
6434 sed 's/^/| /' conftest.$ac_ext >&5
6435
6436 ac_header_compiler=no
6437 fi
6438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6439 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6440 echo "${ECHO_T}$ac_header_compiler" >&6
6441
6442 # Is the header present?
6443 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6444 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6445 cat >conftest.$ac_ext <<_ACEOF
6446 /* confdefs.h.  */
6447 _ACEOF
6448 cat confdefs.h >>conftest.$ac_ext
6449 cat >>conftest.$ac_ext <<_ACEOF
6450 /* end confdefs.h.  */
6451 #include <$ac_header>
6452 _ACEOF
6453 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6454   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6455   ac_status=$?
6456   grep -v '^ *+' conftest.er1 >conftest.err
6457   rm -f conftest.er1
6458   cat conftest.err >&5
6459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460   (exit $ac_status); } >/dev/null; then
6461   if test -s conftest.err; then
6462     ac_cpp_err=$ac_c_preproc_warn_flag
6463     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6464   else
6465     ac_cpp_err=
6466   fi
6467 else
6468   ac_cpp_err=yes
6469 fi
6470 if test -z "$ac_cpp_err"; then
6471   ac_header_preproc=yes
6472 else
6473   echo "$as_me: failed program was:" >&5
6474 sed 's/^/| /' conftest.$ac_ext >&5
6475
6476   ac_header_preproc=no
6477 fi
6478 rm -f conftest.err conftest.$ac_ext
6479 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6480 echo "${ECHO_T}$ac_header_preproc" >&6
6481
6482 # So?  What about this header?
6483 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6484   yes:no: )
6485     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6486 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6487     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6488 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6489     ac_header_preproc=yes
6490     ;;
6491   no:yes:* )
6492     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6493 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6494     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6495 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6496     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6497 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6498     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6499 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6500     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6501 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6502     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6503 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6504     (
6505       cat <<\_ASBOX
6506 ## ------------------------------------------------------ ##
6507 ## Report this to the GNU Fortran Runtime Library lists.  ##
6508 ## ------------------------------------------------------ ##
6509 _ASBOX
6510     ) |
6511       sed "s/^/$as_me: WARNING:     /" >&2
6512     ;;
6513 esac
6514 echo "$as_me:$LINENO: checking for $ac_header" >&5
6515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6516 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6517   echo $ECHO_N "(cached) $ECHO_C" >&6
6518 else
6519   eval "$as_ac_Header=\$ac_header_preproc"
6520 fi
6521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6522 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6523
6524 fi
6525 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6526   cat >>confdefs.h <<_ACEOF
6527 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6528 _ACEOF
6529
6530 fi
6531
6532 done
6533
6534 if test "${ac_cv_header_complex_h+set}" = set; then
6535   echo "$as_me:$LINENO: checking for complex.h" >&5
6536 echo $ECHO_N "checking for complex.h... $ECHO_C" >&6
6537 if test "${ac_cv_header_complex_h+set}" = set; then
6538   echo $ECHO_N "(cached) $ECHO_C" >&6
6539 fi
6540 echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5
6541 echo "${ECHO_T}$ac_cv_header_complex_h" >&6
6542 else
6543   # Is the header compilable?
6544 echo "$as_me:$LINENO: checking complex.h usability" >&5
6545 echo $ECHO_N "checking complex.h usability... $ECHO_C" >&6
6546 cat >conftest.$ac_ext <<_ACEOF
6547 /* confdefs.h.  */
6548 _ACEOF
6549 cat confdefs.h >>conftest.$ac_ext
6550 cat >>conftest.$ac_ext <<_ACEOF
6551 /* end confdefs.h.  */
6552 $ac_includes_default
6553 #include <complex.h>
6554 _ACEOF
6555 rm -f conftest.$ac_objext
6556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6557   (eval $ac_compile) 2>conftest.er1
6558   ac_status=$?
6559   grep -v '^ *+' conftest.er1 >conftest.err
6560   rm -f conftest.er1
6561   cat conftest.err >&5
6562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563   (exit $ac_status); } &&
6564          { ac_try='test -z "$ac_c_werror_flag"
6565                          || test ! -s conftest.err'
6566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6567   (eval $ac_try) 2>&5
6568   ac_status=$?
6569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570   (exit $ac_status); }; } &&
6571          { ac_try='test -s conftest.$ac_objext'
6572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6573   (eval $ac_try) 2>&5
6574   ac_status=$?
6575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576   (exit $ac_status); }; }; then
6577   ac_header_compiler=yes
6578 else
6579   echo "$as_me: failed program was:" >&5
6580 sed 's/^/| /' conftest.$ac_ext >&5
6581
6582 ac_header_compiler=no
6583 fi
6584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6585 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6586 echo "${ECHO_T}$ac_header_compiler" >&6
6587
6588 # Is the header present?
6589 echo "$as_me:$LINENO: checking complex.h presence" >&5
6590 echo $ECHO_N "checking complex.h presence... $ECHO_C" >&6
6591 cat >conftest.$ac_ext <<_ACEOF
6592 /* confdefs.h.  */
6593 _ACEOF
6594 cat confdefs.h >>conftest.$ac_ext
6595 cat >>conftest.$ac_ext <<_ACEOF
6596 /* end confdefs.h.  */
6597 #include <complex.h>
6598 _ACEOF
6599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6600   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6601   ac_status=$?
6602   grep -v '^ *+' conftest.er1 >conftest.err
6603   rm -f conftest.er1
6604   cat conftest.err >&5
6605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606   (exit $ac_status); } >/dev/null; then
6607   if test -s conftest.err; then
6608     ac_cpp_err=$ac_c_preproc_warn_flag
6609     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6610   else
6611     ac_cpp_err=
6612   fi
6613 else
6614   ac_cpp_err=yes
6615 fi
6616 if test -z "$ac_cpp_err"; then
6617   ac_header_preproc=yes
6618 else
6619   echo "$as_me: failed program was:" >&5
6620 sed 's/^/| /' conftest.$ac_ext >&5
6621
6622   ac_header_preproc=no
6623 fi
6624 rm -f conftest.err conftest.$ac_ext
6625 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6626 echo "${ECHO_T}$ac_header_preproc" >&6
6627
6628 # So?  What about this header?
6629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6630   yes:no: )
6631     { echo "$as_me:$LINENO: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&5
6632 echo "$as_me: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6633     { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the compiler's result" >&5
6634 echo "$as_me: WARNING: complex.h: proceeding with the compiler's result" >&2;}
6635     ac_header_preproc=yes
6636     ;;
6637   no:yes:* )
6638     { echo "$as_me:$LINENO: WARNING: complex.h: present but cannot be compiled" >&5
6639 echo "$as_me: WARNING: complex.h: present but cannot be compiled" >&2;}
6640     { echo "$as_me:$LINENO: WARNING: complex.h:     check for missing prerequisite headers?" >&5
6641 echo "$as_me: WARNING: complex.h:     check for missing prerequisite headers?" >&2;}
6642     { echo "$as_me:$LINENO: WARNING: complex.h: see the Autoconf documentation" >&5
6643 echo "$as_me: WARNING: complex.h: see the Autoconf documentation" >&2;}
6644     { echo "$as_me:$LINENO: WARNING: complex.h:     section \"Present But Cannot Be Compiled\"" >&5
6645 echo "$as_me: WARNING: complex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6646     { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the preprocessor's result" >&5
6647 echo "$as_me: WARNING: complex.h: proceeding with the preprocessor's result" >&2;}
6648     { echo "$as_me:$LINENO: WARNING: complex.h: in the future, the compiler will take precedence" >&5
6649 echo "$as_me: WARNING: complex.h: in the future, the compiler will take precedence" >&2;}
6650     (
6651       cat <<\_ASBOX
6652 ## ------------------------------------------------------ ##
6653 ## Report this to the GNU Fortran Runtime Library lists.  ##
6654 ## ------------------------------------------------------ ##
6655 _ASBOX
6656     ) |
6657       sed "s/^/$as_me: WARNING:     /" >&2
6658     ;;
6659 esac
6660 echo "$as_me:$LINENO: checking for complex.h" >&5
6661 echo $ECHO_N "checking for complex.h... $ECHO_C" >&6
6662 if test "${ac_cv_header_complex_h+set}" = set; then
6663   echo $ECHO_N "(cached) $ECHO_C" >&6
6664 else
6665   ac_cv_header_complex_h=$ac_header_preproc
6666 fi
6667 echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5
6668 echo "${ECHO_T}$ac_cv_header_complex_h" >&6
6669
6670 fi
6671 if test $ac_cv_header_complex_h = yes; then
6672
6673 cat >>confdefs.h <<\_ACEOF
6674 #define HAVE_COMPLEX_H 1
6675 _ACEOF
6676
6677 fi
6678
6679
6680
6681 # Check for complex math functions
6682 echo "$as_me:$LINENO: checking for csin in -lm" >&5
6683 echo $ECHO_N "checking for csin in -lm... $ECHO_C" >&6
6684 if test "${ac_cv_lib_m_csin+set}" = set; then
6685   echo $ECHO_N "(cached) $ECHO_C" >&6
6686 else
6687   ac_check_lib_save_LIBS=$LIBS
6688 LIBS="-lm  $LIBS"
6689 cat >conftest.$ac_ext <<_ACEOF
6690 /* confdefs.h.  */
6691 _ACEOF
6692 cat confdefs.h >>conftest.$ac_ext
6693 cat >>conftest.$ac_ext <<_ACEOF
6694 /* end confdefs.h.  */
6695
6696 /* Override any gcc2 internal prototype to avoid an error.  */
6697 #ifdef __cplusplus
6698 extern "C"
6699 #endif
6700 /* We use char because int might match the return type of a gcc2
6701    builtin and then its argument prototype would still apply.  */
6702 char csin ();
6703 int
6704 main ()
6705 {
6706 csin ();
6707   ;
6708   return 0;
6709 }
6710 _ACEOF
6711 rm -f conftest.$ac_objext conftest$ac_exeext
6712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6713   (eval $ac_link) 2>conftest.er1
6714   ac_status=$?
6715   grep -v '^ *+' conftest.er1 >conftest.err
6716   rm -f conftest.er1
6717   cat conftest.err >&5
6718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719   (exit $ac_status); } &&
6720          { ac_try='test -z "$ac_c_werror_flag"
6721                          || test ! -s conftest.err'
6722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6723   (eval $ac_try) 2>&5
6724   ac_status=$?
6725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726   (exit $ac_status); }; } &&
6727          { ac_try='test -s conftest$ac_exeext'
6728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6729   (eval $ac_try) 2>&5
6730   ac_status=$?
6731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732   (exit $ac_status); }; }; then
6733   ac_cv_lib_m_csin=yes
6734 else
6735   echo "$as_me: failed program was:" >&5
6736 sed 's/^/| /' conftest.$ac_ext >&5
6737
6738 ac_cv_lib_m_csin=no
6739 fi
6740 rm -f conftest.err conftest.$ac_objext \
6741       conftest$ac_exeext conftest.$ac_ext
6742 LIBS=$ac_check_lib_save_LIBS
6743 fi
6744 echo "$as_me:$LINENO: result: $ac_cv_lib_m_csin" >&5
6745 echo "${ECHO_T}$ac_cv_lib_m_csin" >&6
6746 if test $ac_cv_lib_m_csin = yes; then
6747   need_math="no"
6748 else
6749   need_math="yes"
6750 fi
6751
6752
6753 # Check for library functions.
6754
6755
6756 for ac_func in getrusage times
6757 do
6758 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6759 echo "$as_me:$LINENO: checking for $ac_func" >&5
6760 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6761 if eval "test \"\${$as_ac_var+set}\" = set"; then
6762   echo $ECHO_N "(cached) $ECHO_C" >&6
6763 else
6764   cat >conftest.$ac_ext <<_ACEOF
6765 /* confdefs.h.  */
6766 _ACEOF
6767 cat confdefs.h >>conftest.$ac_ext
6768 cat >>conftest.$ac_ext <<_ACEOF
6769 /* end confdefs.h.  */
6770 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6771    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6772 #define $ac_func innocuous_$ac_func
6773
6774 /* System header to define __stub macros and hopefully few prototypes,
6775     which can conflict with char $ac_func (); below.
6776     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6777     <limits.h> exists even on freestanding compilers.  */
6778
6779 #ifdef __STDC__
6780 # include <limits.h>
6781 #else
6782 # include <assert.h>
6783 #endif
6784
6785 #undef $ac_func
6786
6787 /* Override any gcc2 internal prototype to avoid an error.  */
6788 #ifdef __cplusplus
6789 extern "C"
6790 {
6791 #endif
6792 /* We use char because int might match the return type of a gcc2
6793    builtin and then its argument prototype would still apply.  */
6794 char $ac_func ();
6795 /* The GNU C library defines this for functions which it implements
6796     to always fail with ENOSYS.  Some functions are actually named
6797     something starting with __ and the normal name is an alias.  */
6798 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6799 choke me
6800 #else
6801 char (*f) () = $ac_func;
6802 #endif
6803 #ifdef __cplusplus
6804 }
6805 #endif
6806
6807 int
6808 main ()
6809 {
6810 return f != $ac_func;
6811   ;
6812   return 0;
6813 }
6814 _ACEOF
6815 rm -f conftest.$ac_objext conftest$ac_exeext
6816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6817   (eval $ac_link) 2>conftest.er1
6818   ac_status=$?
6819   grep -v '^ *+' conftest.er1 >conftest.err
6820   rm -f conftest.er1
6821   cat conftest.err >&5
6822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823   (exit $ac_status); } &&
6824          { ac_try='test -z "$ac_c_werror_flag"
6825                          || test ! -s conftest.err'
6826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6827   (eval $ac_try) 2>&5
6828   ac_status=$?
6829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830   (exit $ac_status); }; } &&
6831          { ac_try='test -s conftest$ac_exeext'
6832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6833   (eval $ac_try) 2>&5
6834   ac_status=$?
6835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836   (exit $ac_status); }; }; then
6837   eval "$as_ac_var=yes"
6838 else
6839   echo "$as_me: failed program was:" >&5
6840 sed 's/^/| /' conftest.$ac_ext >&5
6841
6842 eval "$as_ac_var=no"
6843 fi
6844 rm -f conftest.err conftest.$ac_objext \
6845       conftest$ac_exeext conftest.$ac_ext
6846 fi
6847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6848 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6849 if test `eval echo '${'$as_ac_var'}'` = yes; then
6850   cat >>confdefs.h <<_ACEOF
6851 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6852 _ACEOF
6853
6854 fi
6855 done
6856
6857
6858 # Check libc for getgid, getpid, getuid
6859 echo "$as_me:$LINENO: checking for getgid in -lc" >&5
6860 echo $ECHO_N "checking for getgid in -lc... $ECHO_C" >&6
6861 if test "${ac_cv_lib_c_getgid+set}" = set; then
6862   echo $ECHO_N "(cached) $ECHO_C" >&6
6863 else
6864   ac_check_lib_save_LIBS=$LIBS
6865 LIBS="-lc  $LIBS"
6866 cat >conftest.$ac_ext <<_ACEOF
6867 /* confdefs.h.  */
6868 _ACEOF
6869 cat confdefs.h >>conftest.$ac_ext
6870 cat >>conftest.$ac_ext <<_ACEOF
6871 /* end confdefs.h.  */
6872
6873 /* Override any gcc2 internal prototype to avoid an error.  */
6874 #ifdef __cplusplus
6875 extern "C"
6876 #endif
6877 /* We use char because int might match the return type of a gcc2
6878    builtin and then its argument prototype would still apply.  */
6879 char getgid ();
6880 int
6881 main ()
6882 {
6883 getgid ();
6884   ;
6885   return 0;
6886 }
6887 _ACEOF
6888 rm -f conftest.$ac_objext conftest$ac_exeext
6889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6890   (eval $ac_link) 2>conftest.er1
6891   ac_status=$?
6892   grep -v '^ *+' conftest.er1 >conftest.err
6893   rm -f conftest.er1
6894   cat conftest.err >&5
6895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896   (exit $ac_status); } &&
6897          { ac_try='test -z "$ac_c_werror_flag"
6898                          || test ! -s conftest.err'
6899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6900   (eval $ac_try) 2>&5
6901   ac_status=$?
6902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903   (exit $ac_status); }; } &&
6904          { ac_try='test -s conftest$ac_exeext'
6905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6906   (eval $ac_try) 2>&5
6907   ac_status=$?
6908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909   (exit $ac_status); }; }; then
6910   ac_cv_lib_c_getgid=yes
6911 else
6912   echo "$as_me: failed program was:" >&5
6913 sed 's/^/| /' conftest.$ac_ext >&5
6914
6915 ac_cv_lib_c_getgid=no
6916 fi
6917 rm -f conftest.err conftest.$ac_objext \
6918       conftest$ac_exeext conftest.$ac_ext
6919 LIBS=$ac_check_lib_save_LIBS
6920 fi
6921 echo "$as_me:$LINENO: result: $ac_cv_lib_c_getgid" >&5
6922 echo "${ECHO_T}$ac_cv_lib_c_getgid" >&6
6923 if test $ac_cv_lib_c_getgid = yes; then
6924
6925 cat >>confdefs.h <<\_ACEOF
6926 #define HAVE_GETGID 1
6927 _ACEOF
6928
6929 fi
6930
6931 echo "$as_me:$LINENO: checking for getpid in -lc" >&5
6932 echo $ECHO_N "checking for getpid in -lc... $ECHO_C" >&6
6933 if test "${ac_cv_lib_c_getpid+set}" = set; then
6934   echo $ECHO_N "(cached) $ECHO_C" >&6
6935 else
6936   ac_check_lib_save_LIBS=$LIBS
6937 LIBS="-lc  $LIBS"
6938 cat >conftest.$ac_ext <<_ACEOF
6939 /* confdefs.h.  */
6940 _ACEOF
6941 cat confdefs.h >>conftest.$ac_ext
6942 cat >>conftest.$ac_ext <<_ACEOF
6943 /* end confdefs.h.  */
6944
6945 /* Override any gcc2 internal prototype to avoid an error.  */
6946 #ifdef __cplusplus
6947 extern "C"
6948 #endif
6949 /* We use char because int might match the return type of a gcc2
6950    builtin and then its argument prototype would still apply.  */
6951 char getpid ();
6952 int
6953 main ()
6954 {
6955 getpid ();
6956   ;
6957   return 0;
6958 }
6959 _ACEOF
6960 rm -f conftest.$ac_objext conftest$ac_exeext
6961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6962   (eval $ac_link) 2>conftest.er1
6963   ac_status=$?
6964   grep -v '^ *+' conftest.er1 >conftest.err
6965   rm -f conftest.er1
6966   cat conftest.err >&5
6967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968   (exit $ac_status); } &&
6969          { ac_try='test -z "$ac_c_werror_flag"
6970                          || test ! -s conftest.err'
6971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6972   (eval $ac_try) 2>&5
6973   ac_status=$?
6974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975   (exit $ac_status); }; } &&
6976          { ac_try='test -s conftest$ac_exeext'
6977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6978   (eval $ac_try) 2>&5
6979   ac_status=$?
6980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981   (exit $ac_status); }; }; then
6982   ac_cv_lib_c_getpid=yes
6983 else
6984   echo "$as_me: failed program was:" >&5
6985 sed 's/^/| /' conftest.$ac_ext >&5
6986
6987 ac_cv_lib_c_getpid=no
6988 fi
6989 rm -f conftest.err conftest.$ac_objext \
6990       conftest$ac_exeext conftest.$ac_ext
6991 LIBS=$ac_check_lib_save_LIBS
6992 fi
6993 echo "$as_me:$LINENO: result: $ac_cv_lib_c_getpid" >&5
6994 echo "${ECHO_T}$ac_cv_lib_c_getpid" >&6
6995 if test $ac_cv_lib_c_getpid = yes; then
6996
6997 cat >>confdefs.h <<\_ACEOF
6998 #define HAVE_GETPID 1
6999 _ACEOF
7000
7001 fi
7002
7003 echo "$as_me:$LINENO: checking for getuid in -lc" >&5
7004 echo $ECHO_N "checking for getuid in -lc... $ECHO_C" >&6
7005 if test "${ac_cv_lib_c_getuid+set}" = set; then
7006   echo $ECHO_N "(cached) $ECHO_C" >&6
7007 else
7008   ac_check_lib_save_LIBS=$LIBS
7009 LIBS="-lc  $LIBS"
7010 cat >conftest.$ac_ext <<_ACEOF
7011 /* confdefs.h.  */
7012 _ACEOF
7013 cat confdefs.h >>conftest.$ac_ext
7014 cat >>conftest.$ac_ext <<_ACEOF
7015 /* end confdefs.h.  */
7016
7017 /* Override any gcc2 internal prototype to avoid an error.  */
7018 #ifdef __cplusplus
7019 extern "C"
7020 #endif
7021 /* We use char because int might match the return type of a gcc2
7022    builtin and then its argument prototype would still apply.  */
7023 char getuid ();
7024 int
7025 main ()
7026 {
7027 getuid ();
7028   ;
7029   return 0;
7030 }
7031 _ACEOF
7032 rm -f conftest.$ac_objext conftest$ac_exeext
7033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7034   (eval $ac_link) 2>conftest.er1
7035   ac_status=$?
7036   grep -v '^ *+' conftest.er1 >conftest.err
7037   rm -f conftest.er1
7038   cat conftest.err >&5
7039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040   (exit $ac_status); } &&
7041          { ac_try='test -z "$ac_c_werror_flag"
7042                          || test ! -s conftest.err'
7043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7044   (eval $ac_try) 2>&5
7045   ac_status=$?
7046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047   (exit $ac_status); }; } &&
7048          { ac_try='test -s conftest$ac_exeext'
7049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7050   (eval $ac_try) 2>&5
7051   ac_status=$?
7052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053   (exit $ac_status); }; }; then
7054   ac_cv_lib_c_getuid=yes
7055 else
7056   echo "$as_me: failed program was:" >&5
7057 sed 's/^/| /' conftest.$ac_ext >&5
7058
7059 ac_cv_lib_c_getuid=no
7060 fi
7061 rm -f conftest.err conftest.$ac_objext \
7062       conftest$ac_exeext conftest.$ac_ext
7063 LIBS=$ac_check_lib_save_LIBS
7064 fi
7065 echo "$as_me:$LINENO: result: $ac_cv_lib_c_getuid" >&5
7066 echo "${ECHO_T}$ac_cv_lib_c_getuid" >&6
7067 if test $ac_cv_lib_c_getuid = yes; then
7068
7069 cat >>confdefs.h <<\_ACEOF
7070 #define HAVE_GETUID 1
7071 _ACEOF
7072
7073 fi
7074
7075
7076 # Check for C99 (and other IEEE) math functions
7077 # ??? This list seems awful long. Is there a better way to test for these?
7078 echo "$as_me:$LINENO: checking for acosf in -lm" >&5
7079 echo $ECHO_N "checking for acosf in -lm... $ECHO_C" >&6
7080 if test "${ac_cv_lib_m_acosf+set}" = set; then
7081   echo $ECHO_N "(cached) $ECHO_C" >&6
7082 else
7083   ac_check_lib_save_LIBS=$LIBS
7084 LIBS="-lm  $LIBS"
7085 cat >conftest.$ac_ext <<_ACEOF
7086 /* confdefs.h.  */
7087 _ACEOF
7088 cat confdefs.h >>conftest.$ac_ext
7089 cat >>conftest.$ac_ext <<_ACEOF
7090 /* end confdefs.h.  */
7091
7092 /* Override any gcc2 internal prototype to avoid an error.  */
7093 #ifdef __cplusplus
7094 extern "C"
7095 #endif
7096 /* We use char because int might match the return type of a gcc2
7097    builtin and then its argument prototype would still apply.  */
7098 char acosf ();
7099 int
7100 main ()
7101 {
7102 acosf ();
7103   ;
7104   return 0;
7105 }
7106 _ACEOF
7107 rm -f conftest.$ac_objext conftest$ac_exeext
7108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7109   (eval $ac_link) 2>conftest.er1
7110   ac_status=$?
7111   grep -v '^ *+' conftest.er1 >conftest.err
7112   rm -f conftest.er1
7113   cat conftest.err >&5
7114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115   (exit $ac_status); } &&
7116          { ac_try='test -z "$ac_c_werror_flag"
7117                          || test ! -s conftest.err'
7118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7119   (eval $ac_try) 2>&5
7120   ac_status=$?
7121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122   (exit $ac_status); }; } &&
7123          { ac_try='test -s conftest$ac_exeext'
7124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7125   (eval $ac_try) 2>&5
7126   ac_status=$?
7127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128   (exit $ac_status); }; }; then
7129   ac_cv_lib_m_acosf=yes
7130 else
7131   echo "$as_me: failed program was:" >&5
7132 sed 's/^/| /' conftest.$ac_ext >&5
7133
7134 ac_cv_lib_m_acosf=no
7135 fi
7136 rm -f conftest.err conftest.$ac_objext \
7137       conftest$ac_exeext conftest.$ac_ext
7138 LIBS=$ac_check_lib_save_LIBS
7139 fi
7140 echo "$as_me:$LINENO: result: $ac_cv_lib_m_acosf" >&5
7141 echo "${ECHO_T}$ac_cv_lib_m_acosf" >&6
7142 if test $ac_cv_lib_m_acosf = yes; then
7143
7144 cat >>confdefs.h <<\_ACEOF
7145 #define HAVE_ACOSF 1
7146 _ACEOF
7147
7148 fi
7149
7150 echo "$as_me:$LINENO: checking for asinf in -lm" >&5
7151 echo $ECHO_N "checking for asinf in -lm... $ECHO_C" >&6
7152 if test "${ac_cv_lib_m_asinf+set}" = set; then
7153   echo $ECHO_N "(cached) $ECHO_C" >&6
7154 else
7155   ac_check_lib_save_LIBS=$LIBS
7156 LIBS="-lm  $LIBS"
7157 cat >conftest.$ac_ext <<_ACEOF
7158 /* confdefs.h.  */
7159 _ACEOF
7160 cat confdefs.h >>conftest.$ac_ext
7161 cat >>conftest.$ac_ext <<_ACEOF
7162 /* end confdefs.h.  */
7163
7164 /* Override any gcc2 internal prototype to avoid an error.  */
7165 #ifdef __cplusplus
7166 extern "C"
7167 #endif
7168 /* We use char because int might match the return type of a gcc2
7169    builtin and then its argument prototype would still apply.  */
7170 char asinf ();
7171 int
7172 main ()
7173 {
7174 asinf ();
7175   ;
7176   return 0;
7177 }
7178 _ACEOF
7179 rm -f conftest.$ac_objext conftest$ac_exeext
7180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7181   (eval $ac_link) 2>conftest.er1
7182   ac_status=$?
7183   grep -v '^ *+' conftest.er1 >conftest.err
7184   rm -f conftest.er1
7185   cat conftest.err >&5
7186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187   (exit $ac_status); } &&
7188          { ac_try='test -z "$ac_c_werror_flag"
7189                          || test ! -s conftest.err'
7190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7191   (eval $ac_try) 2>&5
7192   ac_status=$?
7193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194   (exit $ac_status); }; } &&
7195          { ac_try='test -s conftest$ac_exeext'
7196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7197   (eval $ac_try) 2>&5
7198   ac_status=$?
7199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200   (exit $ac_status); }; }; then
7201   ac_cv_lib_m_asinf=yes
7202 else
7203   echo "$as_me: failed program was:" >&5
7204 sed 's/^/| /' conftest.$ac_ext >&5
7205
7206 ac_cv_lib_m_asinf=no
7207 fi
7208 rm -f conftest.err conftest.$ac_objext \
7209       conftest$ac_exeext conftest.$ac_ext
7210 LIBS=$ac_check_lib_save_LIBS
7211 fi
7212 echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinf" >&5
7213 echo "${ECHO_T}$ac_cv_lib_m_asinf" >&6
7214 if test $ac_cv_lib_m_asinf = yes; then
7215
7216 cat >>confdefs.h <<\_ACEOF
7217 #define HAVE_ASINF 1
7218 _ACEOF
7219
7220 fi
7221
7222 echo "$as_me:$LINENO: checking for atan2f in -lm" >&5
7223 echo $ECHO_N "checking for atan2f in -lm... $ECHO_C" >&6
7224 if test "${ac_cv_lib_m_atan2f+set}" = set; then
7225   echo $ECHO_N "(cached) $ECHO_C" >&6
7226 else
7227   ac_check_lib_save_LIBS=$LIBS
7228 LIBS="-lm  $LIBS"
7229 cat >conftest.$ac_ext <<_ACEOF
7230 /* confdefs.h.  */
7231 _ACEOF
7232 cat confdefs.h >>conftest.$ac_ext
7233 cat >>conftest.$ac_ext <<_ACEOF
7234 /* end confdefs.h.  */
7235
7236 /* Override any gcc2 internal prototype to avoid an error.  */
7237 #ifdef __cplusplus
7238 extern "C"
7239 #endif
7240 /* We use char because int might match the return type of a gcc2
7241    builtin and then its argument prototype would still apply.  */
7242 char atan2f ();
7243 int
7244 main ()
7245 {
7246 atan2f ();
7247   ;
7248   return 0;
7249 }
7250 _ACEOF
7251 rm -f conftest.$ac_objext conftest$ac_exeext
7252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7253   (eval $ac_link) 2>conftest.er1
7254   ac_status=$?
7255   grep -v '^ *+' conftest.er1 >conftest.err
7256   rm -f conftest.er1
7257   cat conftest.err >&5
7258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259   (exit $ac_status); } &&
7260          { ac_try='test -z "$ac_c_werror_flag"
7261                          || test ! -s conftest.err'
7262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7263   (eval $ac_try) 2>&5
7264   ac_status=$?
7265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266   (exit $ac_status); }; } &&
7267          { ac_try='test -s conftest$ac_exeext'
7268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7269   (eval $ac_try) 2>&5
7270   ac_status=$?
7271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272   (exit $ac_status); }; }; then
7273   ac_cv_lib_m_atan2f=yes
7274 else
7275   echo "$as_me: failed program was:" >&5
7276 sed 's/^/| /' conftest.$ac_ext >&5
7277
7278 ac_cv_lib_m_atan2f=no
7279 fi
7280 rm -f conftest.err conftest.$ac_objext \
7281       conftest$ac_exeext conftest.$ac_ext
7282 LIBS=$ac_check_lib_save_LIBS
7283 fi
7284 echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan2f" >&5
7285 echo "${ECHO_T}$ac_cv_lib_m_atan2f" >&6
7286 if test $ac_cv_lib_m_atan2f = yes; then
7287
7288 cat >>confdefs.h <<\_ACEOF
7289 #define HAVE_ATAN2F 1
7290 _ACEOF
7291
7292 fi
7293
7294 echo "$as_me:$LINENO: checking for atanf in -lm" >&5
7295 echo $ECHO_N "checking for atanf in -lm... $ECHO_C" >&6
7296 if test "${ac_cv_lib_m_atanf+set}" = set; then
7297   echo $ECHO_N "(cached) $ECHO_C" >&6
7298 else
7299   ac_check_lib_save_LIBS=$LIBS
7300 LIBS="-lm  $LIBS"
7301 cat >conftest.$ac_ext <<_ACEOF
7302 /* confdefs.h.  */
7303 _ACEOF
7304 cat confdefs.h >>conftest.$ac_ext
7305 cat >>conftest.$ac_ext <<_ACEOF
7306 /* end confdefs.h.  */
7307
7308 /* Override any gcc2 internal prototype to avoid an error.  */
7309 #ifdef __cplusplus
7310 extern "C"
7311 #endif
7312 /* We use char because int might match the return type of a gcc2
7313    builtin and then its argument prototype would still apply.  */
7314 char atanf ();
7315 int
7316 main ()
7317 {
7318 atanf ();
7319   ;
7320   return 0;
7321 }
7322 _ACEOF
7323 rm -f conftest.$ac_objext conftest$ac_exeext
7324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7325   (eval $ac_link) 2>conftest.er1
7326   ac_status=$?
7327   grep -v '^ *+' conftest.er1 >conftest.err
7328   rm -f conftest.er1
7329   cat conftest.err >&5
7330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331   (exit $ac_status); } &&
7332          { ac_try='test -z "$ac_c_werror_flag"
7333                          || test ! -s conftest.err'
7334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7335   (eval $ac_try) 2>&5
7336   ac_status=$?
7337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338   (exit $ac_status); }; } &&
7339          { ac_try='test -s conftest$ac_exeext'
7340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7341   (eval $ac_try) 2>&5
7342   ac_status=$?
7343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344   (exit $ac_status); }; }; then
7345   ac_cv_lib_m_atanf=yes
7346 else
7347   echo "$as_me: failed program was:" >&5
7348 sed 's/^/| /' conftest.$ac_ext >&5
7349
7350 ac_cv_lib_m_atanf=no
7351 fi
7352 rm -f conftest.err conftest.$ac_objext \
7353       conftest$ac_exeext conftest.$ac_ext
7354 LIBS=$ac_check_lib_save_LIBS
7355 fi
7356 echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanf" >&5
7357 echo "${ECHO_T}$ac_cv_lib_m_atanf" >&6
7358 if test $ac_cv_lib_m_atanf = yes; then
7359
7360 cat >>confdefs.h <<\_ACEOF
7361 #define HAVE_ATANF 1
7362 _ACEOF
7363
7364 fi
7365
7366 echo "$as_me:$LINENO: checking for ceilf in -lm" >&5
7367 echo $ECHO_N "checking for ceilf in -lm... $ECHO_C" >&6
7368 if test "${ac_cv_lib_m_ceilf+set}" = set; then
7369   echo $ECHO_N "(cached) $ECHO_C" >&6
7370 else
7371   ac_check_lib_save_LIBS=$LIBS
7372 LIBS="-lm  $LIBS"
7373 cat >conftest.$ac_ext <<_ACEOF
7374 /* confdefs.h.  */
7375 _ACEOF
7376 cat confdefs.h >>conftest.$ac_ext
7377 cat >>conftest.$ac_ext <<_ACEOF
7378 /* end confdefs.h.  */
7379
7380 /* Override any gcc2 internal prototype to avoid an error.  */
7381 #ifdef __cplusplus
7382 extern "C"
7383 #endif
7384 /* We use char because int might match the return type of a gcc2
7385    builtin and then its argument prototype would still apply.  */
7386 char ceilf ();
7387 int
7388 main ()
7389 {
7390 ceilf ();
7391   ;
7392   return 0;
7393 }
7394 _ACEOF
7395 rm -f conftest.$ac_objext conftest$ac_exeext
7396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7397   (eval $ac_link) 2>conftest.er1
7398   ac_status=$?
7399   grep -v '^ *+' conftest.er1 >conftest.err
7400   rm -f conftest.er1
7401   cat conftest.err >&5
7402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403   (exit $ac_status); } &&
7404          { ac_try='test -z "$ac_c_werror_flag"
7405                          || test ! -s conftest.err'
7406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7407   (eval $ac_try) 2>&5
7408   ac_status=$?
7409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410   (exit $ac_status); }; } &&
7411          { ac_try='test -s conftest$ac_exeext'
7412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7413   (eval $ac_try) 2>&5
7414   ac_status=$?
7415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416   (exit $ac_status); }; }; then
7417   ac_cv_lib_m_ceilf=yes
7418 else
7419   echo "$as_me: failed program was:" >&5
7420 sed 's/^/| /' conftest.$ac_ext >&5
7421
7422 ac_cv_lib_m_ceilf=no
7423 fi
7424 rm -f conftest.err conftest.$ac_objext \
7425       conftest$ac_exeext conftest.$ac_ext
7426 LIBS=$ac_check_lib_save_LIBS
7427 fi
7428 echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceilf" >&5
7429 echo "${ECHO_T}$ac_cv_lib_m_ceilf" >&6
7430 if test $ac_cv_lib_m_ceilf = yes; then
7431
7432 cat >>confdefs.h <<\_ACEOF
7433 #define HAVE_CEILF 1
7434 _ACEOF
7435
7436 fi
7437
7438 echo "$as_me:$LINENO: checking for copysignf in -lm" >&5
7439 echo $ECHO_N "checking for copysignf in -lm... $ECHO_C" >&6
7440 if test "${ac_cv_lib_m_copysignf+set}" = set; then
7441   echo $ECHO_N "(cached) $ECHO_C" >&6
7442 else
7443   ac_check_lib_save_LIBS=$LIBS
7444 LIBS="-lm  $LIBS"
7445 cat >conftest.$ac_ext <<_ACEOF
7446 /* confdefs.h.  */
7447 _ACEOF
7448 cat confdefs.h >>conftest.$ac_ext
7449 cat >>conftest.$ac_ext <<_ACEOF
7450 /* end confdefs.h.  */
7451
7452 /* Override any gcc2 internal prototype to avoid an error.  */
7453 #ifdef __cplusplus
7454 extern "C"
7455 #endif
7456 /* We use char because int might match the return type of a gcc2
7457    builtin and then its argument prototype would still apply.  */
7458 char copysignf ();
7459 int
7460 main ()
7461 {
7462 copysignf ();
7463   ;
7464   return 0;
7465 }
7466 _ACEOF
7467 rm -f conftest.$ac_objext conftest$ac_exeext
7468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7469   (eval $ac_link) 2>conftest.er1
7470   ac_status=$?
7471   grep -v '^ *+' conftest.er1 >conftest.err
7472   rm -f conftest.er1
7473   cat conftest.err >&5
7474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475   (exit $ac_status); } &&
7476          { ac_try='test -z "$ac_c_werror_flag"
7477                          || test ! -s conftest.err'
7478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7479   (eval $ac_try) 2>&5
7480   ac_status=$?
7481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482   (exit $ac_status); }; } &&
7483          { ac_try='test -s conftest$ac_exeext'
7484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7485   (eval $ac_try) 2>&5
7486   ac_status=$?
7487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488   (exit $ac_status); }; }; then
7489   ac_cv_lib_m_copysignf=yes
7490 else
7491   echo "$as_me: failed program was:" >&5
7492 sed 's/^/| /' conftest.$ac_ext >&5
7493
7494 ac_cv_lib_m_copysignf=no
7495 fi
7496 rm -f conftest.err conftest.$ac_objext \
7497       conftest$ac_exeext conftest.$ac_ext
7498 LIBS=$ac_check_lib_save_LIBS
7499 fi
7500 echo "$as_me:$LINENO: result: $ac_cv_lib_m_copysignf" >&5
7501 echo "${ECHO_T}$ac_cv_lib_m_copysignf" >&6
7502 if test $ac_cv_lib_m_copysignf = yes; then
7503
7504 cat >>confdefs.h <<\_ACEOF
7505 #define HAVE_COPYSIGNF 1
7506 _ACEOF
7507
7508 fi
7509
7510 echo "$as_me:$LINENO: checking for cosf in -lm" >&5
7511 echo $ECHO_N "checking for cosf in -lm... $ECHO_C" >&6
7512 if test "${ac_cv_lib_m_cosf+set}" = set; then
7513   echo $ECHO_N "(cached) $ECHO_C" >&6
7514 else
7515   ac_check_lib_save_LIBS=$LIBS
7516 LIBS="-lm  $LIBS"
7517 cat >conftest.$ac_ext <<_ACEOF
7518 /* confdefs.h.  */
7519 _ACEOF
7520 cat confdefs.h >>conftest.$ac_ext
7521 cat >>conftest.$ac_ext <<_ACEOF
7522 /* end confdefs.h.  */
7523
7524 /* Override any gcc2 internal prototype to avoid an error.  */
7525 #ifdef __cplusplus
7526 extern "C"
7527 #endif
7528 /* We use char because int might match the return type of a gcc2
7529    builtin and then its argument prototype would still apply.  */
7530 char cosf ();
7531 int
7532 main ()
7533 {
7534 cosf ();
7535   ;
7536   return 0;
7537 }
7538 _ACEOF
7539 rm -f conftest.$ac_objext conftest$ac_exeext
7540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7541   (eval $ac_link) 2>conftest.er1
7542   ac_status=$?
7543   grep -v '^ *+' conftest.er1 >conftest.err
7544   rm -f conftest.er1
7545   cat conftest.err >&5
7546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547   (exit $ac_status); } &&
7548          { ac_try='test -z "$ac_c_werror_flag"
7549                          || test ! -s conftest.err'
7550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7551   (eval $ac_try) 2>&5
7552   ac_status=$?
7553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554   (exit $ac_status); }; } &&
7555          { ac_try='test -s conftest$ac_exeext'
7556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7557   (eval $ac_try) 2>&5
7558   ac_status=$?
7559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560   (exit $ac_status); }; }; then
7561   ac_cv_lib_m_cosf=yes
7562 else
7563   echo "$as_me: failed program was:" >&5
7564 sed 's/^/| /' conftest.$ac_ext >&5
7565
7566 ac_cv_lib_m_cosf=no
7567 fi
7568 rm -f conftest.err conftest.$ac_objext \
7569       conftest$ac_exeext conftest.$ac_ext
7570 LIBS=$ac_check_lib_save_LIBS
7571 fi
7572 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cosf" >&5
7573 echo "${ECHO_T}$ac_cv_lib_m_cosf" >&6
7574 if test $ac_cv_lib_m_cosf = yes; then
7575
7576 cat >>confdefs.h <<\_ACEOF
7577 #define HAVE_COSF 1
7578 _ACEOF
7579
7580 fi
7581
7582 echo "$as_me:$LINENO: checking for coshf in -lm" >&5
7583 echo $ECHO_N "checking for coshf in -lm... $ECHO_C" >&6
7584 if test "${ac_cv_lib_m_coshf+set}" = set; then
7585   echo $ECHO_N "(cached) $ECHO_C" >&6
7586 else
7587   ac_check_lib_save_LIBS=$LIBS
7588 LIBS="-lm  $LIBS"
7589 cat >conftest.$ac_ext <<_ACEOF
7590 /* confdefs.h.  */
7591 _ACEOF
7592 cat confdefs.h >>conftest.$ac_ext
7593 cat >>conftest.$ac_ext <<_ACEOF
7594 /* end confdefs.h.  */
7595
7596 /* Override any gcc2 internal prototype to avoid an error.  */
7597 #ifdef __cplusplus
7598 extern "C"
7599 #endif
7600 /* We use char because int might match the return type of a gcc2
7601    builtin and then its argument prototype would still apply.  */
7602 char coshf ();
7603 int
7604 main ()
7605 {
7606 coshf ();
7607   ;
7608   return 0;
7609 }
7610 _ACEOF
7611 rm -f conftest.$ac_objext conftest$ac_exeext
7612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7613   (eval $ac_link) 2>conftest.er1
7614   ac_status=$?
7615   grep -v '^ *+' conftest.er1 >conftest.err
7616   rm -f conftest.er1
7617   cat conftest.err >&5
7618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619   (exit $ac_status); } &&
7620          { ac_try='test -z "$ac_c_werror_flag"
7621                          || test ! -s conftest.err'
7622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7623   (eval $ac_try) 2>&5
7624   ac_status=$?
7625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626   (exit $ac_status); }; } &&
7627          { ac_try='test -s conftest$ac_exeext'
7628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7629   (eval $ac_try) 2>&5
7630   ac_status=$?
7631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632   (exit $ac_status); }; }; then
7633   ac_cv_lib_m_coshf=yes
7634 else
7635   echo "$as_me: failed program was:" >&5
7636 sed 's/^/| /' conftest.$ac_ext >&5
7637
7638 ac_cv_lib_m_coshf=no
7639 fi
7640 rm -f conftest.err conftest.$ac_objext \
7641       conftest$ac_exeext conftest.$ac_ext
7642 LIBS=$ac_check_lib_save_LIBS
7643 fi
7644 echo "$as_me:$LINENO: result: $ac_cv_lib_m_coshf" >&5
7645 echo "${ECHO_T}$ac_cv_lib_m_coshf" >&6
7646 if test $ac_cv_lib_m_coshf = yes; then
7647
7648 cat >>confdefs.h <<\_ACEOF
7649 #define HAVE_COSHF 1
7650 _ACEOF
7651
7652 fi
7653
7654 echo "$as_me:$LINENO: checking for expf in -lm" >&5
7655 echo $ECHO_N "checking for expf in -lm... $ECHO_C" >&6
7656 if test "${ac_cv_lib_m_expf+set}" = set; then
7657   echo $ECHO_N "(cached) $ECHO_C" >&6
7658 else
7659   ac_check_lib_save_LIBS=$LIBS
7660 LIBS="-lm  $LIBS"
7661 cat >conftest.$ac_ext <<_ACEOF
7662 /* confdefs.h.  */
7663 _ACEOF
7664 cat confdefs.h >>conftest.$ac_ext
7665 cat >>conftest.$ac_ext <<_ACEOF
7666 /* end confdefs.h.  */
7667
7668 /* Override any gcc2 internal prototype to avoid an error.  */
7669 #ifdef __cplusplus
7670 extern "C"
7671 #endif
7672 /* We use char because int might match the return type of a gcc2
7673    builtin and then its argument prototype would still apply.  */
7674 char expf ();
7675 int
7676 main ()
7677 {
7678 expf ();
7679   ;
7680   return 0;
7681 }
7682 _ACEOF
7683 rm -f conftest.$ac_objext conftest$ac_exeext
7684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7685   (eval $ac_link) 2>conftest.er1
7686   ac_status=$?
7687   grep -v '^ *+' conftest.er1 >conftest.err
7688   rm -f conftest.er1
7689   cat conftest.err >&5
7690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691   (exit $ac_status); } &&
7692          { ac_try='test -z "$ac_c_werror_flag"
7693                          || test ! -s conftest.err'
7694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7695   (eval $ac_try) 2>&5
7696   ac_status=$?
7697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698   (exit $ac_status); }; } &&
7699          { ac_try='test -s conftest$ac_exeext'
7700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7701   (eval $ac_try) 2>&5
7702   ac_status=$?
7703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704   (exit $ac_status); }; }; then
7705   ac_cv_lib_m_expf=yes
7706 else
7707   echo "$as_me: failed program was:" >&5
7708 sed 's/^/| /' conftest.$ac_ext >&5
7709
7710 ac_cv_lib_m_expf=no
7711 fi
7712 rm -f conftest.err conftest.$ac_objext \
7713       conftest$ac_exeext conftest.$ac_ext
7714 LIBS=$ac_check_lib_save_LIBS
7715 fi
7716 echo "$as_me:$LINENO: result: $ac_cv_lib_m_expf" >&5
7717 echo "${ECHO_T}$ac_cv_lib_m_expf" >&6
7718 if test $ac_cv_lib_m_expf = yes; then
7719
7720 cat >>confdefs.h <<\_ACEOF
7721 #define HAVE_EXPF 1
7722 _ACEOF
7723
7724 fi
7725
7726 echo "$as_me:$LINENO: checking for floorf in -lm" >&5
7727 echo $ECHO_N "checking for floorf in -lm... $ECHO_C" >&6
7728 if test "${ac_cv_lib_m_floorf+set}" = set; then
7729   echo $ECHO_N "(cached) $ECHO_C" >&6
7730 else
7731   ac_check_lib_save_LIBS=$LIBS
7732 LIBS="-lm  $LIBS"
7733 cat >conftest.$ac_ext <<_ACEOF
7734 /* confdefs.h.  */
7735 _ACEOF
7736 cat confdefs.h >>conftest.$ac_ext
7737 cat >>conftest.$ac_ext <<_ACEOF
7738 /* end confdefs.h.  */
7739
7740 /* Override any gcc2 internal prototype to avoid an error.  */
7741 #ifdef __cplusplus
7742 extern "C"
7743 #endif
7744 /* We use char because int might match the return type of a gcc2
7745    builtin and then its argument prototype would still apply.  */
7746 char floorf ();
7747 int
7748 main ()
7749 {
7750 floorf ();
7751   ;
7752   return 0;
7753 }
7754 _ACEOF
7755 rm -f conftest.$ac_objext conftest$ac_exeext
7756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7757   (eval $ac_link) 2>conftest.er1
7758   ac_status=$?
7759   grep -v '^ *+' conftest.er1 >conftest.err
7760   rm -f conftest.er1
7761   cat conftest.err >&5
7762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763   (exit $ac_status); } &&
7764          { ac_try='test -z "$ac_c_werror_flag"
7765                          || test ! -s conftest.err'
7766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7767   (eval $ac_try) 2>&5
7768   ac_status=$?
7769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770   (exit $ac_status); }; } &&
7771          { ac_try='test -s conftest$ac_exeext'
7772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7773   (eval $ac_try) 2>&5
7774   ac_status=$?
7775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776   (exit $ac_status); }; }; then
7777   ac_cv_lib_m_floorf=yes
7778 else
7779   echo "$as_me: failed program was:" >&5
7780 sed 's/^/| /' conftest.$ac_ext >&5
7781
7782 ac_cv_lib_m_floorf=no
7783 fi
7784 rm -f conftest.err conftest.$ac_objext \
7785       conftest$ac_exeext conftest.$ac_ext
7786 LIBS=$ac_check_lib_save_LIBS
7787 fi
7788 echo "$as_me:$LINENO: result: $ac_cv_lib_m_floorf" >&5
7789 echo "${ECHO_T}$ac_cv_lib_m_floorf" >&6
7790 if test $ac_cv_lib_m_floorf = yes; then
7791
7792 cat >>confdefs.h <<\_ACEOF
7793 #define HAVE_FLOORF 1
7794 _ACEOF
7795
7796 fi
7797
7798 echo "$as_me:$LINENO: checking for frexpf in -lm" >&5
7799 echo $ECHO_N "checking for frexpf in -lm... $ECHO_C" >&6
7800 if test "${ac_cv_lib_m_frexpf+set}" = set; then
7801   echo $ECHO_N "(cached) $ECHO_C" >&6
7802 else
7803   ac_check_lib_save_LIBS=$LIBS
7804 LIBS="-lm  $LIBS"
7805 cat >conftest.$ac_ext <<_ACEOF
7806 /* confdefs.h.  */
7807 _ACEOF
7808 cat confdefs.h >>conftest.$ac_ext
7809 cat >>conftest.$ac_ext <<_ACEOF
7810 /* end confdefs.h.  */
7811
7812 /* Override any gcc2 internal prototype to avoid an error.  */
7813 #ifdef __cplusplus
7814 extern "C"
7815 #endif
7816 /* We use char because int might match the return type of a gcc2
7817    builtin and then its argument prototype would still apply.  */
7818 char frexpf ();
7819 int
7820 main ()
7821 {
7822 frexpf ();
7823   ;
7824   return 0;
7825 }
7826 _ACEOF
7827 rm -f conftest.$ac_objext conftest$ac_exeext
7828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7829   (eval $ac_link) 2>conftest.er1
7830   ac_status=$?
7831   grep -v '^ *+' conftest.er1 >conftest.err
7832   rm -f conftest.er1
7833   cat conftest.err >&5
7834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835   (exit $ac_status); } &&
7836          { ac_try='test -z "$ac_c_werror_flag"
7837                          || test ! -s conftest.err'
7838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7839   (eval $ac_try) 2>&5
7840   ac_status=$?
7841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842   (exit $ac_status); }; } &&
7843          { ac_try='test -s conftest$ac_exeext'
7844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7845   (eval $ac_try) 2>&5
7846   ac_status=$?
7847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848   (exit $ac_status); }; }; then
7849   ac_cv_lib_m_frexpf=yes
7850 else
7851   echo "$as_me: failed program was:" >&5
7852 sed 's/^/| /' conftest.$ac_ext >&5
7853
7854 ac_cv_lib_m_frexpf=no
7855 fi
7856 rm -f conftest.err conftest.$ac_objext \
7857       conftest$ac_exeext conftest.$ac_ext
7858 LIBS=$ac_check_lib_save_LIBS
7859 fi
7860 echo "$as_me:$LINENO: result: $ac_cv_lib_m_frexpf" >&5
7861 echo "${ECHO_T}$ac_cv_lib_m_frexpf" >&6
7862 if test $ac_cv_lib_m_frexpf = yes; then
7863
7864 cat >>confdefs.h <<\_ACEOF
7865 #define HAVE_FREXPF 1
7866 _ACEOF
7867
7868 fi
7869
7870 echo "$as_me:$LINENO: checking for hypotf in -lm" >&5
7871 echo $ECHO_N "checking for hypotf in -lm... $ECHO_C" >&6
7872 if test "${ac_cv_lib_m_hypotf+set}" = set; then
7873   echo $ECHO_N "(cached) $ECHO_C" >&6
7874 else
7875   ac_check_lib_save_LIBS=$LIBS
7876 LIBS="-lm  $LIBS"
7877 cat >conftest.$ac_ext <<_ACEOF
7878 /* confdefs.h.  */
7879 _ACEOF
7880 cat confdefs.h >>conftest.$ac_ext
7881 cat >>conftest.$ac_ext <<_ACEOF
7882 /* end confdefs.h.  */
7883
7884 /* Override any gcc2 internal prototype to avoid an error.  */
7885 #ifdef __cplusplus
7886 extern "C"
7887 #endif
7888 /* We use char because int might match the return type of a gcc2
7889    builtin and then its argument prototype would still apply.  */
7890 char hypotf ();
7891 int
7892 main ()
7893 {
7894 hypotf ();
7895   ;
7896   return 0;
7897 }
7898 _ACEOF
7899 rm -f conftest.$ac_objext conftest$ac_exeext
7900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7901   (eval $ac_link) 2>conftest.er1
7902   ac_status=$?
7903   grep -v '^ *+' conftest.er1 >conftest.err
7904   rm -f conftest.er1
7905   cat conftest.err >&5
7906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907   (exit $ac_status); } &&
7908          { ac_try='test -z "$ac_c_werror_flag"
7909                          || test ! -s conftest.err'
7910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7911   (eval $ac_try) 2>&5
7912   ac_status=$?
7913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914   (exit $ac_status); }; } &&
7915          { ac_try='test -s conftest$ac_exeext'
7916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7917   (eval $ac_try) 2>&5
7918   ac_status=$?
7919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920   (exit $ac_status); }; }; then
7921   ac_cv_lib_m_hypotf=yes
7922 else
7923   echo "$as_me: failed program was:" >&5
7924 sed 's/^/| /' conftest.$ac_ext >&5
7925
7926 ac_cv_lib_m_hypotf=no
7927 fi
7928 rm -f conftest.err conftest.$ac_objext \
7929       conftest$ac_exeext conftest.$ac_ext
7930 LIBS=$ac_check_lib_save_LIBS
7931 fi
7932 echo "$as_me:$LINENO: result: $ac_cv_lib_m_hypotf" >&5
7933 echo "${ECHO_T}$ac_cv_lib_m_hypotf" >&6
7934 if test $ac_cv_lib_m_hypotf = yes; then
7935
7936 cat >>confdefs.h <<\_ACEOF
7937 #define HAVE_HYPOTF 1
7938 _ACEOF
7939
7940 fi
7941
7942 echo "$as_me:$LINENO: checking for logf in -lm" >&5
7943 echo $ECHO_N "checking for logf in -lm... $ECHO_C" >&6
7944 if test "${ac_cv_lib_m_logf+set}" = set; then
7945   echo $ECHO_N "(cached) $ECHO_C" >&6
7946 else
7947   ac_check_lib_save_LIBS=$LIBS
7948 LIBS="-lm  $LIBS"
7949 cat >conftest.$ac_ext <<_ACEOF
7950 /* confdefs.h.  */
7951 _ACEOF
7952 cat confdefs.h >>conftest.$ac_ext
7953 cat >>conftest.$ac_ext <<_ACEOF
7954 /* end confdefs.h.  */
7955
7956 /* Override any gcc2 internal prototype to avoid an error.  */
7957 #ifdef __cplusplus
7958 extern "C"
7959 #endif
7960 /* We use char because int might match the return type of a gcc2
7961    builtin and then its argument prototype would still apply.  */
7962 char logf ();
7963 int
7964 main ()
7965 {
7966 logf ();
7967   ;
7968   return 0;
7969 }
7970 _ACEOF
7971 rm -f conftest.$ac_objext conftest$ac_exeext
7972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7973   (eval $ac_link) 2>conftest.er1
7974   ac_status=$?
7975   grep -v '^ *+' conftest.er1 >conftest.err
7976   rm -f conftest.er1
7977   cat conftest.err >&5
7978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979   (exit $ac_status); } &&
7980          { ac_try='test -z "$ac_c_werror_flag"
7981                          || test ! -s conftest.err'
7982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7983   (eval $ac_try) 2>&5
7984   ac_status=$?
7985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986   (exit $ac_status); }; } &&
7987          { ac_try='test -s conftest$ac_exeext'
7988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7989   (eval $ac_try) 2>&5
7990   ac_status=$?
7991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992   (exit $ac_status); }; }; then
7993   ac_cv_lib_m_logf=yes
7994 else
7995   echo "$as_me: failed program was:" >&5
7996 sed 's/^/| /' conftest.$ac_ext >&5
7997
7998 ac_cv_lib_m_logf=no
7999 fi
8000 rm -f conftest.err conftest.$ac_objext \
8001       conftest$ac_exeext conftest.$ac_ext
8002 LIBS=$ac_check_lib_save_LIBS
8003 fi
8004 echo "$as_me:$LINENO: result: $ac_cv_lib_m_logf" >&5
8005 echo "${ECHO_T}$ac_cv_lib_m_logf" >&6
8006 if test $ac_cv_lib_m_logf = yes; then
8007
8008 cat >>confdefs.h <<\_ACEOF
8009 #define HAVE_LOGF 1
8010 _ACEOF
8011
8012 fi
8013
8014 echo "$as_me:$LINENO: checking for log10f in -lm" >&5
8015 echo $ECHO_N "checking for log10f in -lm... $ECHO_C" >&6
8016 if test "${ac_cv_lib_m_log10f+set}" = set; then
8017   echo $ECHO_N "(cached) $ECHO_C" >&6
8018 else
8019   ac_check_lib_save_LIBS=$LIBS
8020 LIBS="-lm  $LIBS"
8021 cat >conftest.$ac_ext <<_ACEOF
8022 /* confdefs.h.  */
8023 _ACEOF
8024 cat confdefs.h >>conftest.$ac_ext
8025 cat >>conftest.$ac_ext <<_ACEOF
8026 /* end confdefs.h.  */
8027
8028 /* Override any gcc2 internal prototype to avoid an error.  */
8029 #ifdef __cplusplus
8030 extern "C"
8031 #endif
8032 /* We use char because int might match the return type of a gcc2
8033    builtin and then its argument prototype would still apply.  */
8034 char log10f ();
8035 int
8036 main ()
8037 {
8038 log10f ();
8039   ;
8040   return 0;
8041 }
8042 _ACEOF
8043 rm -f conftest.$ac_objext conftest$ac_exeext
8044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8045   (eval $ac_link) 2>conftest.er1
8046   ac_status=$?
8047   grep -v '^ *+' conftest.er1 >conftest.err
8048   rm -f conftest.er1
8049   cat conftest.err >&5
8050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051   (exit $ac_status); } &&
8052          { ac_try='test -z "$ac_c_werror_flag"
8053                          || test ! -s conftest.err'
8054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8055   (eval $ac_try) 2>&5
8056   ac_status=$?
8057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058   (exit $ac_status); }; } &&
8059          { ac_try='test -s conftest$ac_exeext'
8060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8061   (eval $ac_try) 2>&5
8062   ac_status=$?
8063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064   (exit $ac_status); }; }; then
8065   ac_cv_lib_m_log10f=yes
8066 else
8067   echo "$as_me: failed program was:" >&5
8068 sed 's/^/| /' conftest.$ac_ext >&5
8069
8070 ac_cv_lib_m_log10f=no
8071 fi
8072 rm -f conftest.err conftest.$ac_objext \
8073       conftest$ac_exeext conftest.$ac_ext
8074 LIBS=$ac_check_lib_save_LIBS
8075 fi
8076 echo "$as_me:$LINENO: result: $ac_cv_lib_m_log10f" >&5
8077 echo "${ECHO_T}$ac_cv_lib_m_log10f" >&6
8078 if test $ac_cv_lib_m_log10f = yes; then
8079
8080 cat >>confdefs.h <<\_ACEOF
8081 #define HAVE_LOG10F 1
8082 _ACEOF
8083
8084 fi
8085
8086 echo "$as_me:$LINENO: checking for nextafter in -lm" >&5
8087 echo $ECHO_N "checking for nextafter in -lm... $ECHO_C" >&6
8088 if test "${ac_cv_lib_m_nextafter+set}" = set; then
8089   echo $ECHO_N "(cached) $ECHO_C" >&6
8090 else
8091   ac_check_lib_save_LIBS=$LIBS
8092 LIBS="-lm  $LIBS"
8093 cat >conftest.$ac_ext <<_ACEOF
8094 /* confdefs.h.  */
8095 _ACEOF
8096 cat confdefs.h >>conftest.$ac_ext
8097 cat >>conftest.$ac_ext <<_ACEOF
8098 /* end confdefs.h.  */
8099
8100 /* Override any gcc2 internal prototype to avoid an error.  */
8101 #ifdef __cplusplus
8102 extern "C"
8103 #endif
8104 /* We use char because int might match the return type of a gcc2
8105    builtin and then its argument prototype would still apply.  */
8106 char nextafter ();
8107 int
8108 main ()
8109 {
8110 nextafter ();
8111   ;
8112   return 0;
8113 }
8114 _ACEOF
8115 rm -f conftest.$ac_objext conftest$ac_exeext
8116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8117   (eval $ac_link) 2>conftest.er1
8118   ac_status=$?
8119   grep -v '^ *+' conftest.er1 >conftest.err
8120   rm -f conftest.er1
8121   cat conftest.err >&5
8122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123   (exit $ac_status); } &&
8124          { ac_try='test -z "$ac_c_werror_flag"
8125                          || test ! -s conftest.err'
8126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8127   (eval $ac_try) 2>&5
8128   ac_status=$?
8129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130   (exit $ac_status); }; } &&
8131          { ac_try='test -s conftest$ac_exeext'
8132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8133   (eval $ac_try) 2>&5
8134   ac_status=$?
8135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136   (exit $ac_status); }; }; then
8137   ac_cv_lib_m_nextafter=yes
8138 else
8139   echo "$as_me: failed program was:" >&5
8140 sed 's/^/| /' conftest.$ac_ext >&5
8141
8142 ac_cv_lib_m_nextafter=no
8143 fi
8144 rm -f conftest.err conftest.$ac_objext \
8145       conftest$ac_exeext conftest.$ac_ext
8146 LIBS=$ac_check_lib_save_LIBS
8147 fi
8148 echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafter" >&5
8149 echo "${ECHO_T}$ac_cv_lib_m_nextafter" >&6
8150 if test $ac_cv_lib_m_nextafter = yes; then
8151
8152 cat >>confdefs.h <<\_ACEOF
8153 #define HAVE_NEXTAFTER 1
8154 _ACEOF
8155
8156 fi
8157
8158 echo "$as_me:$LINENO: checking for nextafterf in -lm" >&5
8159 echo $ECHO_N "checking for nextafterf in -lm... $ECHO_C" >&6
8160 if test "${ac_cv_lib_m_nextafterf+set}" = set; then
8161   echo $ECHO_N "(cached) $ECHO_C" >&6
8162 else
8163   ac_check_lib_save_LIBS=$LIBS
8164 LIBS="-lm  $LIBS"
8165 cat >conftest.$ac_ext <<_ACEOF
8166 /* confdefs.h.  */
8167 _ACEOF
8168 cat confdefs.h >>conftest.$ac_ext
8169 cat >>conftest.$ac_ext <<_ACEOF
8170 /* end confdefs.h.  */
8171
8172 /* Override any gcc2 internal prototype to avoid an error.  */
8173 #ifdef __cplusplus
8174 extern "C"
8175 #endif
8176 /* We use char because int might match the return type of a gcc2
8177    builtin and then its argument prototype would still apply.  */
8178 char nextafterf ();
8179 int
8180 main ()
8181 {
8182 nextafterf ();
8183   ;
8184   return 0;
8185 }
8186 _ACEOF
8187 rm -f conftest.$ac_objext conftest$ac_exeext
8188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8189   (eval $ac_link) 2>conftest.er1
8190   ac_status=$?
8191   grep -v '^ *+' conftest.er1 >conftest.err
8192   rm -f conftest.er1
8193   cat conftest.err >&5
8194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195   (exit $ac_status); } &&
8196          { ac_try='test -z "$ac_c_werror_flag"
8197                          || test ! -s conftest.err'
8198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8199   (eval $ac_try) 2>&5
8200   ac_status=$?
8201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202   (exit $ac_status); }; } &&
8203          { ac_try='test -s conftest$ac_exeext'
8204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8205   (eval $ac_try) 2>&5
8206   ac_status=$?
8207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208   (exit $ac_status); }; }; then
8209   ac_cv_lib_m_nextafterf=yes
8210 else
8211   echo "$as_me: failed program was:" >&5
8212 sed 's/^/| /' conftest.$ac_ext >&5
8213
8214 ac_cv_lib_m_nextafterf=no
8215 fi
8216 rm -f conftest.err conftest.$ac_objext \
8217       conftest$ac_exeext conftest.$ac_ext
8218 LIBS=$ac_check_lib_save_LIBS
8219 fi
8220 echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafterf" >&5
8221 echo "${ECHO_T}$ac_cv_lib_m_nextafterf" >&6
8222 if test $ac_cv_lib_m_nextafterf = yes; then
8223
8224 cat >>confdefs.h <<\_ACEOF
8225 #define HAVE_NEXTAFTERF 1
8226 _ACEOF
8227
8228 fi
8229
8230 echo "$as_me:$LINENO: checking for powf in -lm" >&5
8231 echo $ECHO_N "checking for powf in -lm... $ECHO_C" >&6
8232 if test "${ac_cv_lib_m_powf+set}" = set; then
8233   echo $ECHO_N "(cached) $ECHO_C" >&6
8234 else
8235   ac_check_lib_save_LIBS=$LIBS
8236 LIBS="-lm  $LIBS"
8237 cat >conftest.$ac_ext <<_ACEOF
8238 /* confdefs.h.  */
8239 _ACEOF
8240 cat confdefs.h >>conftest.$ac_ext
8241 cat >>conftest.$ac_ext <<_ACEOF
8242 /* end confdefs.h.  */
8243
8244 /* Override any gcc2 internal prototype to avoid an error.  */
8245 #ifdef __cplusplus
8246 extern "C"
8247 #endif
8248 /* We use char because int might match the return type of a gcc2
8249    builtin and then its argument prototype would still apply.  */
8250 char powf ();
8251 int
8252 main ()
8253 {
8254 powf ();
8255   ;
8256   return 0;
8257 }
8258 _ACEOF
8259 rm -f conftest.$ac_objext conftest$ac_exeext
8260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8261   (eval $ac_link) 2>conftest.er1
8262   ac_status=$?
8263   grep -v '^ *+' conftest.er1 >conftest.err
8264   rm -f conftest.er1
8265   cat conftest.err >&5
8266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267   (exit $ac_status); } &&
8268          { ac_try='test -z "$ac_c_werror_flag"
8269                          || test ! -s conftest.err'
8270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8271   (eval $ac_try) 2>&5
8272   ac_status=$?
8273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274   (exit $ac_status); }; } &&
8275          { ac_try='test -s conftest$ac_exeext'
8276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8277   (eval $ac_try) 2>&5
8278   ac_status=$?
8279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280   (exit $ac_status); }; }; then
8281   ac_cv_lib_m_powf=yes
8282 else
8283   echo "$as_me: failed program was:" >&5
8284 sed 's/^/| /' conftest.$ac_ext >&5
8285
8286 ac_cv_lib_m_powf=no
8287 fi
8288 rm -f conftest.err conftest.$ac_objext \
8289       conftest$ac_exeext conftest.$ac_ext
8290 LIBS=$ac_check_lib_save_LIBS
8291 fi
8292 echo "$as_me:$LINENO: result: $ac_cv_lib_m_powf" >&5
8293 echo "${ECHO_T}$ac_cv_lib_m_powf" >&6
8294 if test $ac_cv_lib_m_powf = yes; then
8295
8296 cat >>confdefs.h <<\_ACEOF
8297 #define HAVE_POWF 1
8298 _ACEOF
8299
8300 fi
8301
8302 echo "$as_me:$LINENO: checking for round in -lm" >&5
8303 echo $ECHO_N "checking for round in -lm... $ECHO_C" >&6
8304 if test "${ac_cv_lib_m_round+set}" = set; then
8305   echo $ECHO_N "(cached) $ECHO_C" >&6
8306 else
8307   ac_check_lib_save_LIBS=$LIBS
8308 LIBS="-lm  $LIBS"
8309 cat >conftest.$ac_ext <<_ACEOF
8310 /* confdefs.h.  */
8311 _ACEOF
8312 cat confdefs.h >>conftest.$ac_ext
8313 cat >>conftest.$ac_ext <<_ACEOF
8314 /* end confdefs.h.  */
8315
8316 /* Override any gcc2 internal prototype to avoid an error.  */
8317 #ifdef __cplusplus
8318 extern "C"
8319 #endif
8320 /* We use char because int might match the return type of a gcc2
8321    builtin and then its argument prototype would still apply.  */
8322 char round ();
8323 int
8324 main ()
8325 {
8326 round ();
8327   ;
8328   return 0;
8329 }
8330 _ACEOF
8331 rm -f conftest.$ac_objext conftest$ac_exeext
8332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8333   (eval $ac_link) 2>conftest.er1
8334   ac_status=$?
8335   grep -v '^ *+' conftest.er1 >conftest.err
8336   rm -f conftest.er1
8337   cat conftest.err >&5
8338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339   (exit $ac_status); } &&
8340          { ac_try='test -z "$ac_c_werror_flag"
8341                          || test ! -s conftest.err'
8342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8343   (eval $ac_try) 2>&5
8344   ac_status=$?
8345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346   (exit $ac_status); }; } &&
8347          { ac_try='test -s conftest$ac_exeext'
8348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8349   (eval $ac_try) 2>&5
8350   ac_status=$?
8351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352   (exit $ac_status); }; }; then
8353   ac_cv_lib_m_round=yes
8354 else
8355   echo "$as_me: failed program was:" >&5
8356 sed 's/^/| /' conftest.$ac_ext >&5
8357
8358 ac_cv_lib_m_round=no
8359 fi
8360 rm -f conftest.err conftest.$ac_objext \
8361       conftest$ac_exeext conftest.$ac_ext
8362 LIBS=$ac_check_lib_save_LIBS
8363 fi
8364 echo "$as_me:$LINENO: result: $ac_cv_lib_m_round" >&5
8365 echo "${ECHO_T}$ac_cv_lib_m_round" >&6
8366 if test $ac_cv_lib_m_round = yes; then
8367
8368 cat >>confdefs.h <<\_ACEOF
8369 #define HAVE_ROUND 1
8370 _ACEOF
8371
8372 fi
8373
8374 echo "$as_me:$LINENO: checking for roundf in -lm" >&5
8375 echo $ECHO_N "checking for roundf in -lm... $ECHO_C" >&6
8376 if test "${ac_cv_lib_m_roundf+set}" = set; then
8377   echo $ECHO_N "(cached) $ECHO_C" >&6
8378 else
8379   ac_check_lib_save_LIBS=$LIBS
8380 LIBS="-lm  $LIBS"
8381 cat >conftest.$ac_ext <<_ACEOF
8382 /* confdefs.h.  */
8383 _ACEOF
8384 cat confdefs.h >>conftest.$ac_ext
8385 cat >>conftest.$ac_ext <<_ACEOF
8386 /* end confdefs.h.  */
8387
8388 /* Override any gcc2 internal prototype to avoid an error.  */
8389 #ifdef __cplusplus
8390 extern "C"
8391 #endif
8392 /* We use char because int might match the return type of a gcc2
8393    builtin and then its argument prototype would still apply.  */
8394 char roundf ();
8395 int
8396 main ()
8397 {
8398 roundf ();
8399   ;
8400   return 0;
8401 }
8402 _ACEOF
8403 rm -f conftest.$ac_objext conftest$ac_exeext
8404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8405   (eval $ac_link) 2>conftest.er1
8406   ac_status=$?
8407   grep -v '^ *+' conftest.er1 >conftest.err
8408   rm -f conftest.er1
8409   cat conftest.err >&5
8410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411   (exit $ac_status); } &&
8412          { ac_try='test -z "$ac_c_werror_flag"
8413                          || test ! -s conftest.err'
8414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8415   (eval $ac_try) 2>&5
8416   ac_status=$?
8417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418   (exit $ac_status); }; } &&
8419          { ac_try='test -s conftest$ac_exeext'
8420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8421   (eval $ac_try) 2>&5
8422   ac_status=$?
8423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424   (exit $ac_status); }; }; then
8425   ac_cv_lib_m_roundf=yes
8426 else
8427   echo "$as_me: failed program was:" >&5
8428 sed 's/^/| /' conftest.$ac_ext >&5
8429
8430 ac_cv_lib_m_roundf=no
8431 fi
8432 rm -f conftest.err conftest.$ac_objext \
8433       conftest$ac_exeext conftest.$ac_ext
8434 LIBS=$ac_check_lib_save_LIBS
8435 fi
8436 echo "$as_me:$LINENO: result: $ac_cv_lib_m_roundf" >&5
8437 echo "${ECHO_T}$ac_cv_lib_m_roundf" >&6
8438 if test $ac_cv_lib_m_roundf = yes; then
8439
8440 cat >>confdefs.h <<\_ACEOF
8441 #define HAVE_ROUNDF 1
8442 _ACEOF
8443
8444 fi
8445
8446 echo "$as_me:$LINENO: checking for scalbnf in -lm" >&5
8447 echo $ECHO_N "checking for scalbnf in -lm... $ECHO_C" >&6
8448 if test "${ac_cv_lib_m_scalbnf+set}" = set; then
8449   echo $ECHO_N "(cached) $ECHO_C" >&6
8450 else
8451   ac_check_lib_save_LIBS=$LIBS
8452 LIBS="-lm  $LIBS"
8453 cat >conftest.$ac_ext <<_ACEOF
8454 /* confdefs.h.  */
8455 _ACEOF
8456 cat confdefs.h >>conftest.$ac_ext
8457 cat >>conftest.$ac_ext <<_ACEOF
8458 /* end confdefs.h.  */
8459
8460 /* Override any gcc2 internal prototype to avoid an error.  */
8461 #ifdef __cplusplus
8462 extern "C"
8463 #endif
8464 /* We use char because int might match the return type of a gcc2
8465    builtin and then its argument prototype would still apply.  */
8466 char scalbnf ();
8467 int
8468 main ()
8469 {
8470 scalbnf ();
8471   ;
8472   return 0;
8473 }
8474 _ACEOF
8475 rm -f conftest.$ac_objext conftest$ac_exeext
8476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8477   (eval $ac_link) 2>conftest.er1
8478   ac_status=$?
8479   grep -v '^ *+' conftest.er1 >conftest.err
8480   rm -f conftest.er1
8481   cat conftest.err >&5
8482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483   (exit $ac_status); } &&
8484          { ac_try='test -z "$ac_c_werror_flag"
8485                          || test ! -s conftest.err'
8486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8487   (eval $ac_try) 2>&5
8488   ac_status=$?
8489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490   (exit $ac_status); }; } &&
8491          { ac_try='test -s conftest$ac_exeext'
8492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8493   (eval $ac_try) 2>&5
8494   ac_status=$?
8495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496   (exit $ac_status); }; }; then
8497   ac_cv_lib_m_scalbnf=yes
8498 else
8499   echo "$as_me: failed program was:" >&5
8500 sed 's/^/| /' conftest.$ac_ext >&5
8501
8502 ac_cv_lib_m_scalbnf=no
8503 fi
8504 rm -f conftest.err conftest.$ac_objext \
8505       conftest$ac_exeext conftest.$ac_ext
8506 LIBS=$ac_check_lib_save_LIBS
8507 fi
8508 echo "$as_me:$LINENO: result: $ac_cv_lib_m_scalbnf" >&5
8509 echo "${ECHO_T}$ac_cv_lib_m_scalbnf" >&6
8510 if test $ac_cv_lib_m_scalbnf = yes; then
8511
8512 cat >>confdefs.h <<\_ACEOF
8513 #define HAVE_SCALBNF 1
8514 _ACEOF
8515
8516 fi
8517
8518 echo "$as_me:$LINENO: checking for sinf in -lm" >&5
8519 echo $ECHO_N "checking for sinf in -lm... $ECHO_C" >&6
8520 if test "${ac_cv_lib_m_sinf+set}" = set; then
8521   echo $ECHO_N "(cached) $ECHO_C" >&6
8522 else
8523   ac_check_lib_save_LIBS=$LIBS
8524 LIBS="-lm  $LIBS"
8525 cat >conftest.$ac_ext <<_ACEOF
8526 /* confdefs.h.  */
8527 _ACEOF
8528 cat confdefs.h >>conftest.$ac_ext
8529 cat >>conftest.$ac_ext <<_ACEOF
8530 /* end confdefs.h.  */
8531
8532 /* Override any gcc2 internal prototype to avoid an error.  */
8533 #ifdef __cplusplus
8534 extern "C"
8535 #endif
8536 /* We use char because int might match the return type of a gcc2
8537    builtin and then its argument prototype would still apply.  */
8538 char sinf ();
8539 int
8540 main ()
8541 {
8542 sinf ();
8543   ;
8544   return 0;
8545 }
8546 _ACEOF
8547 rm -f conftest.$ac_objext conftest$ac_exeext
8548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8549   (eval $ac_link) 2>conftest.er1
8550   ac_status=$?
8551   grep -v '^ *+' conftest.er1 >conftest.err
8552   rm -f conftest.er1
8553   cat conftest.err >&5
8554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555   (exit $ac_status); } &&
8556          { ac_try='test -z "$ac_c_werror_flag"
8557                          || test ! -s conftest.err'
8558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8559   (eval $ac_try) 2>&5
8560   ac_status=$?
8561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562   (exit $ac_status); }; } &&
8563          { ac_try='test -s conftest$ac_exeext'
8564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8565   (eval $ac_try) 2>&5
8566   ac_status=$?
8567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568   (exit $ac_status); }; }; then
8569   ac_cv_lib_m_sinf=yes
8570 else
8571   echo "$as_me: failed program was:" >&5
8572 sed 's/^/| /' conftest.$ac_ext >&5
8573
8574 ac_cv_lib_m_sinf=no
8575 fi
8576 rm -f conftest.err conftest.$ac_objext \
8577       conftest$ac_exeext conftest.$ac_ext
8578 LIBS=$ac_check_lib_save_LIBS
8579 fi
8580 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinf" >&5
8581 echo "${ECHO_T}$ac_cv_lib_m_sinf" >&6
8582 if test $ac_cv_lib_m_sinf = yes; then
8583
8584 cat >>confdefs.h <<\_ACEOF
8585 #define HAVE_SINF 1
8586 _ACEOF
8587
8588 fi
8589
8590 echo "$as_me:$LINENO: checking for sinhf in -lm" >&5
8591 echo $ECHO_N "checking for sinhf in -lm... $ECHO_C" >&6
8592 if test "${ac_cv_lib_m_sinhf+set}" = set; then
8593   echo $ECHO_N "(cached) $ECHO_C" >&6
8594 else
8595   ac_check_lib_save_LIBS=$LIBS
8596 LIBS="-lm  $LIBS"
8597 cat >conftest.$ac_ext <<_ACEOF
8598 /* confdefs.h.  */
8599 _ACEOF
8600 cat confdefs.h >>conftest.$ac_ext
8601 cat >>conftest.$ac_ext <<_ACEOF
8602 /* end confdefs.h.  */
8603
8604 /* Override any gcc2 internal prototype to avoid an error.  */
8605 #ifdef __cplusplus
8606 extern "C"
8607 #endif
8608 /* We use char because int might match the return type of a gcc2
8609    builtin and then its argument prototype would still apply.  */
8610 char sinhf ();
8611 int
8612 main ()
8613 {
8614 sinhf ();
8615   ;
8616   return 0;
8617 }
8618 _ACEOF
8619 rm -f conftest.$ac_objext conftest$ac_exeext
8620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8621   (eval $ac_link) 2>conftest.er1
8622   ac_status=$?
8623   grep -v '^ *+' conftest.er1 >conftest.err
8624   rm -f conftest.er1
8625   cat conftest.err >&5
8626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627   (exit $ac_status); } &&
8628          { ac_try='test -z "$ac_c_werror_flag"
8629                          || test ! -s conftest.err'
8630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8631   (eval $ac_try) 2>&5
8632   ac_status=$?
8633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634   (exit $ac_status); }; } &&
8635          { ac_try='test -s conftest$ac_exeext'
8636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8637   (eval $ac_try) 2>&5
8638   ac_status=$?
8639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640   (exit $ac_status); }; }; then
8641   ac_cv_lib_m_sinhf=yes
8642 else
8643   echo "$as_me: failed program was:" >&5
8644 sed 's/^/| /' conftest.$ac_ext >&5
8645
8646 ac_cv_lib_m_sinhf=no
8647 fi
8648 rm -f conftest.err conftest.$ac_objext \
8649       conftest$ac_exeext conftest.$ac_ext
8650 LIBS=$ac_check_lib_save_LIBS
8651 fi
8652 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinhf" >&5
8653 echo "${ECHO_T}$ac_cv_lib_m_sinhf" >&6
8654 if test $ac_cv_lib_m_sinhf = yes; then
8655
8656 cat >>confdefs.h <<\_ACEOF
8657 #define HAVE_SINHF 1
8658 _ACEOF
8659
8660 fi
8661
8662 echo "$as_me:$LINENO: checking for sqrtf in -lm" >&5
8663 echo $ECHO_N "checking for sqrtf in -lm... $ECHO_C" >&6
8664 if test "${ac_cv_lib_m_sqrtf+set}" = set; then
8665   echo $ECHO_N "(cached) $ECHO_C" >&6
8666 else
8667   ac_check_lib_save_LIBS=$LIBS
8668 LIBS="-lm  $LIBS"
8669 cat >conftest.$ac_ext <<_ACEOF
8670 /* confdefs.h.  */
8671 _ACEOF
8672 cat confdefs.h >>conftest.$ac_ext
8673 cat >>conftest.$ac_ext <<_ACEOF
8674 /* end confdefs.h.  */
8675
8676 /* Override any gcc2 internal prototype to avoid an error.  */
8677 #ifdef __cplusplus
8678 extern "C"
8679 #endif
8680 /* We use char because int might match the return type of a gcc2
8681    builtin and then its argument prototype would still apply.  */
8682 char sqrtf ();
8683 int
8684 main ()
8685 {
8686 sqrtf ();
8687   ;
8688   return 0;
8689 }
8690 _ACEOF
8691 rm -f conftest.$ac_objext conftest$ac_exeext
8692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8693   (eval $ac_link) 2>conftest.er1
8694   ac_status=$?
8695   grep -v '^ *+' conftest.er1 >conftest.err
8696   rm -f conftest.er1
8697   cat conftest.err >&5
8698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699   (exit $ac_status); } &&
8700          { ac_try='test -z "$ac_c_werror_flag"
8701                          || test ! -s conftest.err'
8702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8703   (eval $ac_try) 2>&5
8704   ac_status=$?
8705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706   (exit $ac_status); }; } &&
8707          { ac_try='test -s conftest$ac_exeext'
8708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8709   (eval $ac_try) 2>&5
8710   ac_status=$?
8711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712   (exit $ac_status); }; }; then
8713   ac_cv_lib_m_sqrtf=yes
8714 else
8715   echo "$as_me: failed program was:" >&5
8716 sed 's/^/| /' conftest.$ac_ext >&5
8717
8718 ac_cv_lib_m_sqrtf=no
8719 fi
8720 rm -f conftest.err conftest.$ac_objext \
8721       conftest$ac_exeext conftest.$ac_ext
8722 LIBS=$ac_check_lib_save_LIBS
8723 fi
8724 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrtf" >&5
8725 echo "${ECHO_T}$ac_cv_lib_m_sqrtf" >&6
8726 if test $ac_cv_lib_m_sqrtf = yes; then
8727
8728 cat >>confdefs.h <<\_ACEOF
8729 #define HAVE_SQRTF 1
8730 _ACEOF
8731
8732 fi
8733
8734 echo "$as_me:$LINENO: checking for tanf in -lm" >&5
8735 echo $ECHO_N "checking for tanf in -lm... $ECHO_C" >&6
8736 if test "${ac_cv_lib_m_tanf+set}" = set; then
8737   echo $ECHO_N "(cached) $ECHO_C" >&6
8738 else
8739   ac_check_lib_save_LIBS=$LIBS
8740 LIBS="-lm  $LIBS"
8741 cat >conftest.$ac_ext <<_ACEOF
8742 /* confdefs.h.  */
8743 _ACEOF
8744 cat confdefs.h >>conftest.$ac_ext
8745 cat >>conftest.$ac_ext <<_ACEOF
8746 /* end confdefs.h.  */
8747
8748 /* Override any gcc2 internal prototype to avoid an error.  */
8749 #ifdef __cplusplus
8750 extern "C"
8751 #endif
8752 /* We use char because int might match the return type of a gcc2
8753    builtin and then its argument prototype would still apply.  */
8754 char tanf ();
8755 int
8756 main ()
8757 {
8758 tanf ();
8759   ;
8760   return 0;
8761 }
8762 _ACEOF
8763 rm -f conftest.$ac_objext conftest$ac_exeext
8764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8765   (eval $ac_link) 2>conftest.er1
8766   ac_status=$?
8767   grep -v '^ *+' conftest.er1 >conftest.err
8768   rm -f conftest.er1
8769   cat conftest.err >&5
8770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771   (exit $ac_status); } &&
8772          { ac_try='test -z "$ac_c_werror_flag"
8773                          || test ! -s conftest.err'
8774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8775   (eval $ac_try) 2>&5
8776   ac_status=$?
8777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778   (exit $ac_status); }; } &&
8779          { ac_try='test -s conftest$ac_exeext'
8780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8781   (eval $ac_try) 2>&5
8782   ac_status=$?
8783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784   (exit $ac_status); }; }; then
8785   ac_cv_lib_m_tanf=yes
8786 else
8787   echo "$as_me: failed program was:" >&5
8788 sed 's/^/| /' conftest.$ac_ext >&5
8789
8790 ac_cv_lib_m_tanf=no
8791 fi
8792 rm -f conftest.err conftest.$ac_objext \
8793       conftest$ac_exeext conftest.$ac_ext
8794 LIBS=$ac_check_lib_save_LIBS
8795 fi
8796 echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanf" >&5
8797 echo "${ECHO_T}$ac_cv_lib_m_tanf" >&6
8798 if test $ac_cv_lib_m_tanf = yes; then
8799
8800 cat >>confdefs.h <<\_ACEOF
8801 #define HAVE_TANF 1
8802 _ACEOF
8803
8804 fi
8805
8806 echo "$as_me:$LINENO: checking for tanhf in -lm" >&5
8807 echo $ECHO_N "checking for tanhf in -lm... $ECHO_C" >&6
8808 if test "${ac_cv_lib_m_tanhf+set}" = set; then
8809   echo $ECHO_N "(cached) $ECHO_C" >&6
8810 else
8811   ac_check_lib_save_LIBS=$LIBS
8812 LIBS="-lm  $LIBS"
8813 cat >conftest.$ac_ext <<_ACEOF
8814 /* confdefs.h.  */
8815 _ACEOF
8816 cat confdefs.h >>conftest.$ac_ext
8817 cat >>conftest.$ac_ext <<_ACEOF
8818 /* end confdefs.h.  */
8819
8820 /* Override any gcc2 internal prototype to avoid an error.  */
8821 #ifdef __cplusplus
8822 extern "C"
8823 #endif
8824 /* We use char because int might match the return type of a gcc2
8825    builtin and then its argument prototype would still apply.  */
8826 char tanhf ();
8827 int
8828 main ()
8829 {
8830 tanhf ();
8831   ;
8832   return 0;
8833 }
8834 _ACEOF
8835 rm -f conftest.$ac_objext conftest$ac_exeext
8836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8837   (eval $ac_link) 2>conftest.er1
8838   ac_status=$?
8839   grep -v '^ *+' conftest.er1 >conftest.err
8840   rm -f conftest.er1
8841   cat conftest.err >&5
8842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843   (exit $ac_status); } &&
8844          { ac_try='test -z "$ac_c_werror_flag"
8845                          || test ! -s conftest.err'
8846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8847   (eval $ac_try) 2>&5
8848   ac_status=$?
8849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850   (exit $ac_status); }; } &&
8851          { ac_try='test -s conftest$ac_exeext'
8852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8853   (eval $ac_try) 2>&5
8854   ac_status=$?
8855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856   (exit $ac_status); }; }; then
8857   ac_cv_lib_m_tanhf=yes
8858 else
8859   echo "$as_me: failed program was:" >&5
8860 sed 's/^/| /' conftest.$ac_ext >&5
8861
8862 ac_cv_lib_m_tanhf=no
8863 fi
8864 rm -f conftest.err conftest.$ac_objext \
8865       conftest$ac_exeext conftest.$ac_ext
8866 LIBS=$ac_check_lib_save_LIBS
8867 fi
8868 echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanhf" >&5
8869 echo "${ECHO_T}$ac_cv_lib_m_tanhf" >&6
8870 if test $ac_cv_lib_m_tanhf = yes; then
8871
8872 cat >>confdefs.h <<\_ACEOF
8873 #define HAVE_TANHF 1
8874 _ACEOF
8875
8876 fi
8877
8878 echo "$as_me:$LINENO: checking for erf in -lm" >&5
8879 echo $ECHO_N "checking for erf in -lm... $ECHO_C" >&6
8880 if test "${ac_cv_lib_m_erf+set}" = set; then
8881   echo $ECHO_N "(cached) $ECHO_C" >&6
8882 else
8883   ac_check_lib_save_LIBS=$LIBS
8884 LIBS="-lm  $LIBS"
8885 cat >conftest.$ac_ext <<_ACEOF
8886 /* confdefs.h.  */
8887 _ACEOF
8888 cat confdefs.h >>conftest.$ac_ext
8889 cat >>conftest.$ac_ext <<_ACEOF
8890 /* end confdefs.h.  */
8891
8892 /* Override any gcc2 internal prototype to avoid an error.  */
8893 #ifdef __cplusplus
8894 extern "C"
8895 #endif
8896 /* We use char because int might match the return type of a gcc2
8897    builtin and then its argument prototype would still apply.  */
8898 char erf ();
8899 int
8900 main ()
8901 {
8902 erf ();
8903   ;
8904   return 0;
8905 }
8906 _ACEOF
8907 rm -f conftest.$ac_objext conftest$ac_exeext
8908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8909   (eval $ac_link) 2>conftest.er1
8910   ac_status=$?
8911   grep -v '^ *+' conftest.er1 >conftest.err
8912   rm -f conftest.er1
8913   cat conftest.err >&5
8914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915   (exit $ac_status); } &&
8916          { ac_try='test -z "$ac_c_werror_flag"
8917                          || test ! -s conftest.err'
8918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8919   (eval $ac_try) 2>&5
8920   ac_status=$?
8921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922   (exit $ac_status); }; } &&
8923          { ac_try='test -s conftest$ac_exeext'
8924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8925   (eval $ac_try) 2>&5
8926   ac_status=$?
8927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928   (exit $ac_status); }; }; then
8929   ac_cv_lib_m_erf=yes
8930 else
8931   echo "$as_me: failed program was:" >&5
8932 sed 's/^/| /' conftest.$ac_ext >&5
8933
8934 ac_cv_lib_m_erf=no
8935 fi
8936 rm -f conftest.err conftest.$ac_objext \
8937       conftest$ac_exeext conftest.$ac_ext
8938 LIBS=$ac_check_lib_save_LIBS
8939 fi
8940 echo "$as_me:$LINENO: result: $ac_cv_lib_m_erf" >&5
8941 echo "${ECHO_T}$ac_cv_lib_m_erf" >&6
8942 if test $ac_cv_lib_m_erf = yes; then
8943
8944 cat >>confdefs.h <<\_ACEOF
8945 #define HAVE_ERF 1
8946 _ACEOF
8947
8948 fi
8949
8950 echo "$as_me:$LINENO: checking for erfc in -lm" >&5
8951 echo $ECHO_N "checking for erfc in -lm... $ECHO_C" >&6
8952 if test "${ac_cv_lib_m_erfc+set}" = set; then
8953   echo $ECHO_N "(cached) $ECHO_C" >&6
8954 else
8955   ac_check_lib_save_LIBS=$LIBS
8956 LIBS="-lm  $LIBS"
8957 cat >conftest.$ac_ext <<_ACEOF
8958 /* confdefs.h.  */
8959 _ACEOF
8960 cat confdefs.h >>conftest.$ac_ext
8961 cat >>conftest.$ac_ext <<_ACEOF
8962 /* end confdefs.h.  */
8963
8964 /* Override any gcc2 internal prototype to avoid an error.  */
8965 #ifdef __cplusplus
8966 extern "C"
8967 #endif
8968 /* We use char because int might match the return type of a gcc2
8969    builtin and then its argument prototype would still apply.  */
8970 char erfc ();
8971 int
8972 main ()
8973 {
8974 erfc ();
8975   ;
8976   return 0;
8977 }
8978 _ACEOF
8979 rm -f conftest.$ac_objext conftest$ac_exeext
8980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8981   (eval $ac_link) 2>conftest.er1
8982   ac_status=$?
8983   grep -v '^ *+' conftest.er1 >conftest.err
8984   rm -f conftest.er1
8985   cat conftest.err >&5
8986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987   (exit $ac_status); } &&
8988          { ac_try='test -z "$ac_c_werror_flag"
8989                          || test ! -s conftest.err'
8990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8991   (eval $ac_try) 2>&5
8992   ac_status=$?
8993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994   (exit $ac_status); }; } &&
8995          { ac_try='test -s conftest$ac_exeext'
8996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8997   (eval $ac_try) 2>&5
8998   ac_status=$?
8999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000   (exit $ac_status); }; }; then
9001   ac_cv_lib_m_erfc=yes
9002 else
9003   echo "$as_me: failed program was:" >&5
9004 sed 's/^/| /' conftest.$ac_ext >&5
9005
9006 ac_cv_lib_m_erfc=no
9007 fi
9008 rm -f conftest.err conftest.$ac_objext \
9009       conftest$ac_exeext conftest.$ac_ext
9010 LIBS=$ac_check_lib_save_LIBS
9011 fi
9012 echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfc" >&5
9013 echo "${ECHO_T}$ac_cv_lib_m_erfc" >&6
9014 if test $ac_cv_lib_m_erfc = yes; then
9015
9016 cat >>confdefs.h <<\_ACEOF
9017 #define HAVE_ERFC 1
9018 _ACEOF
9019
9020 fi
9021
9022 echo "$as_me:$LINENO: checking for erfcf in -lm" >&5
9023 echo $ECHO_N "checking for erfcf in -lm... $ECHO_C" >&6
9024 if test "${ac_cv_lib_m_erfcf+set}" = set; then
9025   echo $ECHO_N "(cached) $ECHO_C" >&6
9026 else
9027   ac_check_lib_save_LIBS=$LIBS
9028 LIBS="-lm  $LIBS"
9029 cat >conftest.$ac_ext <<_ACEOF
9030 /* confdefs.h.  */
9031 _ACEOF
9032 cat confdefs.h >>conftest.$ac_ext
9033 cat >>conftest.$ac_ext <<_ACEOF
9034 /* end confdefs.h.  */
9035
9036 /* Override any gcc2 internal prototype to avoid an error.  */
9037 #ifdef __cplusplus
9038 extern "C"
9039 #endif
9040 /* We use char because int might match the return type of a gcc2
9041    builtin and then its argument prototype would still apply.  */
9042 char erfcf ();
9043 int
9044 main ()
9045 {
9046 erfcf ();
9047   ;
9048   return 0;
9049 }
9050 _ACEOF
9051 rm -f conftest.$ac_objext conftest$ac_exeext
9052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9053   (eval $ac_link) 2>conftest.er1
9054   ac_status=$?
9055   grep -v '^ *+' conftest.er1 >conftest.err
9056   rm -f conftest.er1
9057   cat conftest.err >&5
9058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059   (exit $ac_status); } &&
9060          { ac_try='test -z "$ac_c_werror_flag"
9061                          || test ! -s conftest.err'
9062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9063   (eval $ac_try) 2>&5
9064   ac_status=$?
9065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066   (exit $ac_status); }; } &&
9067          { ac_try='test -s conftest$ac_exeext'
9068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9069   (eval $ac_try) 2>&5
9070   ac_status=$?
9071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072   (exit $ac_status); }; }; then
9073   ac_cv_lib_m_erfcf=yes
9074 else
9075   echo "$as_me: failed program was:" >&5
9076 sed 's/^/| /' conftest.$ac_ext >&5
9077
9078 ac_cv_lib_m_erfcf=no
9079 fi
9080 rm -f conftest.err conftest.$ac_objext \
9081       conftest$ac_exeext conftest.$ac_ext
9082 LIBS=$ac_check_lib_save_LIBS
9083 fi
9084 echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfcf" >&5
9085 echo "${ECHO_T}$ac_cv_lib_m_erfcf" >&6
9086 if test $ac_cv_lib_m_erfcf = yes; then
9087
9088 cat >>confdefs.h <<\_ACEOF
9089 #define HAVE_ERFCF 1
9090 _ACEOF
9091
9092 fi
9093
9094 echo "$as_me:$LINENO: checking for erff in -lm" >&5
9095 echo $ECHO_N "checking for erff in -lm... $ECHO_C" >&6
9096 if test "${ac_cv_lib_m_erff+set}" = set; then
9097   echo $ECHO_N "(cached) $ECHO_C" >&6
9098 else
9099   ac_check_lib_save_LIBS=$LIBS
9100 LIBS="-lm  $LIBS"
9101 cat >conftest.$ac_ext <<_ACEOF
9102 /* confdefs.h.  */
9103 _ACEOF
9104 cat confdefs.h >>conftest.$ac_ext
9105 cat >>conftest.$ac_ext <<_ACEOF
9106 /* end confdefs.h.  */
9107
9108 /* Override any gcc2 internal prototype to avoid an error.  */
9109 #ifdef __cplusplus
9110 extern "C"
9111 #endif
9112 /* We use char because int might match the return type of a gcc2
9113    builtin and then its argument prototype would still apply.  */
9114 char erff ();
9115 int
9116 main ()
9117 {
9118 erff ();
9119   ;
9120   return 0;
9121 }
9122 _ACEOF
9123 rm -f conftest.$ac_objext conftest$ac_exeext
9124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9125   (eval $ac_link) 2>conftest.er1
9126   ac_status=$?
9127   grep -v '^ *+' conftest.er1 >conftest.err
9128   rm -f conftest.er1
9129   cat conftest.err >&5
9130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131   (exit $ac_status); } &&
9132          { ac_try='test -z "$ac_c_werror_flag"
9133                          || test ! -s conftest.err'
9134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9135   (eval $ac_try) 2>&5
9136   ac_status=$?
9137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138   (exit $ac_status); }; } &&
9139          { ac_try='test -s conftest$ac_exeext'
9140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9141   (eval $ac_try) 2>&5
9142   ac_status=$?
9143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144   (exit $ac_status); }; }; then
9145   ac_cv_lib_m_erff=yes
9146 else
9147   echo "$as_me: failed program was:" >&5
9148 sed 's/^/| /' conftest.$ac_ext >&5
9149
9150 ac_cv_lib_m_erff=no
9151 fi
9152 rm -f conftest.err conftest.$ac_objext \
9153       conftest$ac_exeext conftest.$ac_ext
9154 LIBS=$ac_check_lib_save_LIBS
9155 fi
9156 echo "$as_me:$LINENO: result: $ac_cv_lib_m_erff" >&5
9157 echo "${ECHO_T}$ac_cv_lib_m_erff" >&6
9158 if test $ac_cv_lib_m_erff = yes; then
9159
9160 cat >>confdefs.h <<\_ACEOF
9161 #define HAVE_ERFF 1
9162 _ACEOF
9163
9164 fi
9165
9166 echo "$as_me:$LINENO: checking for j0 in -lm" >&5
9167 echo $ECHO_N "checking for j0 in -lm... $ECHO_C" >&6
9168 if test "${ac_cv_lib_m_j0+set}" = set; then
9169   echo $ECHO_N "(cached) $ECHO_C" >&6
9170 else
9171   ac_check_lib_save_LIBS=$LIBS
9172 LIBS="-lm  $LIBS"
9173 cat >conftest.$ac_ext <<_ACEOF
9174 /* confdefs.h.  */
9175 _ACEOF
9176 cat confdefs.h >>conftest.$ac_ext
9177 cat >>conftest.$ac_ext <<_ACEOF
9178 /* end confdefs.h.  */
9179
9180 /* Override any gcc2 internal prototype to avoid an error.  */
9181 #ifdef __cplusplus
9182 extern "C"
9183 #endif
9184 /* We use char because int might match the return type of a gcc2
9185    builtin and then its argument prototype would still apply.  */
9186 char j0 ();
9187 int
9188 main ()
9189 {
9190 j0 ();
9191   ;
9192   return 0;
9193 }
9194 _ACEOF
9195 rm -f conftest.$ac_objext conftest$ac_exeext
9196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9197   (eval $ac_link) 2>conftest.er1
9198   ac_status=$?
9199   grep -v '^ *+' conftest.er1 >conftest.err
9200   rm -f conftest.er1
9201   cat conftest.err >&5
9202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203   (exit $ac_status); } &&
9204          { ac_try='test -z "$ac_c_werror_flag"
9205                          || test ! -s conftest.err'
9206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9207   (eval $ac_try) 2>&5
9208   ac_status=$?
9209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210   (exit $ac_status); }; } &&
9211          { ac_try='test -s conftest$ac_exeext'
9212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9213   (eval $ac_try) 2>&5
9214   ac_status=$?
9215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216   (exit $ac_status); }; }; then
9217   ac_cv_lib_m_j0=yes
9218 else
9219   echo "$as_me: failed program was:" >&5
9220 sed 's/^/| /' conftest.$ac_ext >&5
9221
9222 ac_cv_lib_m_j0=no
9223 fi
9224 rm -f conftest.err conftest.$ac_objext \
9225       conftest$ac_exeext conftest.$ac_ext
9226 LIBS=$ac_check_lib_save_LIBS
9227 fi
9228 echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0" >&5
9229 echo "${ECHO_T}$ac_cv_lib_m_j0" >&6
9230 if test $ac_cv_lib_m_j0 = yes; then
9231
9232 cat >>confdefs.h <<\_ACEOF
9233 #define HAVE_J0 1
9234 _ACEOF
9235
9236 fi
9237
9238 echo "$as_me:$LINENO: checking for j0f in -lm" >&5
9239 echo $ECHO_N "checking for j0f in -lm... $ECHO_C" >&6
9240 if test "${ac_cv_lib_m_j0f+set}" = set; then
9241   echo $ECHO_N "(cached) $ECHO_C" >&6
9242 else
9243   ac_check_lib_save_LIBS=$LIBS
9244 LIBS="-lm  $LIBS"
9245 cat >conftest.$ac_ext <<_ACEOF
9246 /* confdefs.h.  */
9247 _ACEOF
9248 cat confdefs.h >>conftest.$ac_ext
9249 cat >>conftest.$ac_ext <<_ACEOF
9250 /* end confdefs.h.  */
9251
9252 /* Override any gcc2 internal prototype to avoid an error.  */
9253 #ifdef __cplusplus
9254 extern "C"
9255 #endif
9256 /* We use char because int might match the return type of a gcc2
9257    builtin and then its argument prototype would still apply.  */
9258 char j0f ();
9259 int
9260 main ()
9261 {
9262 j0f ();
9263   ;
9264   return 0;
9265 }
9266 _ACEOF
9267 rm -f conftest.$ac_objext conftest$ac_exeext
9268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9269   (eval $ac_link) 2>conftest.er1
9270   ac_status=$?
9271   grep -v '^ *+' conftest.er1 >conftest.err
9272   rm -f conftest.er1
9273   cat conftest.err >&5
9274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275   (exit $ac_status); } &&
9276          { ac_try='test -z "$ac_c_werror_flag"
9277                          || test ! -s conftest.err'
9278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9279   (eval $ac_try) 2>&5
9280   ac_status=$?
9281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282   (exit $ac_status); }; } &&
9283          { ac_try='test -s conftest$ac_exeext'
9284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9285   (eval $ac_try) 2>&5
9286   ac_status=$?
9287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288   (exit $ac_status); }; }; then
9289   ac_cv_lib_m_j0f=yes
9290 else
9291   echo "$as_me: failed program was:" >&5
9292 sed 's/^/| /' conftest.$ac_ext >&5
9293
9294 ac_cv_lib_m_j0f=no
9295 fi
9296 rm -f conftest.err conftest.$ac_objext \
9297       conftest$ac_exeext conftest.$ac_ext
9298 LIBS=$ac_check_lib_save_LIBS
9299 fi
9300 echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0f" >&5
9301 echo "${ECHO_T}$ac_cv_lib_m_j0f" >&6
9302 if test $ac_cv_lib_m_j0f = yes; then
9303
9304 cat >>confdefs.h <<\_ACEOF
9305 #define HAVE_J0F 1
9306 _ACEOF
9307
9308 fi
9309
9310 echo "$as_me:$LINENO: checking for j1 in -lm" >&5
9311 echo $ECHO_N "checking for j1 in -lm... $ECHO_C" >&6
9312 if test "${ac_cv_lib_m_j1+set}" = set; then
9313   echo $ECHO_N "(cached) $ECHO_C" >&6
9314 else
9315   ac_check_lib_save_LIBS=$LIBS
9316 LIBS="-lm  $LIBS"
9317 cat >conftest.$ac_ext <<_ACEOF
9318 /* confdefs.h.  */
9319 _ACEOF
9320 cat confdefs.h >>conftest.$ac_ext
9321 cat >>conftest.$ac_ext <<_ACEOF
9322 /* end confdefs.h.  */
9323
9324 /* Override any gcc2 internal prototype to avoid an error.  */
9325 #ifdef __cplusplus
9326 extern "C"
9327 #endif
9328 /* We use char because int might match the return type of a gcc2
9329    builtin and then its argument prototype would still apply.  */
9330 char j1 ();
9331 int
9332 main ()
9333 {
9334 j1 ();
9335   ;
9336   return 0;
9337 }
9338 _ACEOF
9339 rm -f conftest.$ac_objext conftest$ac_exeext
9340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9341   (eval $ac_link) 2>conftest.er1
9342   ac_status=$?
9343   grep -v '^ *+' conftest.er1 >conftest.err
9344   rm -f conftest.er1
9345   cat conftest.err >&5
9346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347   (exit $ac_status); } &&
9348          { ac_try='test -z "$ac_c_werror_flag"
9349                          || test ! -s conftest.err'
9350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9351   (eval $ac_try) 2>&5
9352   ac_status=$?
9353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354   (exit $ac_status); }; } &&
9355          { ac_try='test -s conftest$ac_exeext'
9356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9357   (eval $ac_try) 2>&5
9358   ac_status=$?
9359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360   (exit $ac_status); }; }; then
9361   ac_cv_lib_m_j1=yes
9362 else
9363   echo "$as_me: failed program was:" >&5
9364 sed 's/^/| /' conftest.$ac_ext >&5
9365
9366 ac_cv_lib_m_j1=no
9367 fi
9368 rm -f conftest.err conftest.$ac_objext \
9369       conftest$ac_exeext conftest.$ac_ext
9370 LIBS=$ac_check_lib_save_LIBS
9371 fi
9372 echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1" >&5
9373 echo "${ECHO_T}$ac_cv_lib_m_j1" >&6
9374 if test $ac_cv_lib_m_j1 = yes; then
9375
9376 cat >>confdefs.h <<\_ACEOF
9377 #define HAVE_J1 1
9378 _ACEOF
9379
9380 fi
9381
9382 echo "$as_me:$LINENO: checking for j1f in -lm" >&5
9383 echo $ECHO_N "checking for j1f in -lm... $ECHO_C" >&6
9384 if test "${ac_cv_lib_m_j1f+set}" = set; then
9385   echo $ECHO_N "(cached) $ECHO_C" >&6
9386 else
9387   ac_check_lib_save_LIBS=$LIBS
9388 LIBS="-lm  $LIBS"
9389 cat >conftest.$ac_ext <<_ACEOF
9390 /* confdefs.h.  */
9391 _ACEOF
9392 cat confdefs.h >>conftest.$ac_ext
9393 cat >>conftest.$ac_ext <<_ACEOF
9394 /* end confdefs.h.  */
9395
9396 /* Override any gcc2 internal prototype to avoid an error.  */
9397 #ifdef __cplusplus
9398 extern "C"
9399 #endif
9400 /* We use char because int might match the return type of a gcc2
9401    builtin and then its argument prototype would still apply.  */
9402 char j1f ();
9403 int
9404 main ()
9405 {
9406 j1f ();
9407   ;
9408   return 0;
9409 }
9410 _ACEOF
9411 rm -f conftest.$ac_objext conftest$ac_exeext
9412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9413   (eval $ac_link) 2>conftest.er1
9414   ac_status=$?
9415   grep -v '^ *+' conftest.er1 >conftest.err
9416   rm -f conftest.er1
9417   cat conftest.err >&5
9418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419   (exit $ac_status); } &&
9420          { ac_try='test -z "$ac_c_werror_flag"
9421                          || test ! -s conftest.err'
9422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9423   (eval $ac_try) 2>&5
9424   ac_status=$?
9425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426   (exit $ac_status); }; } &&
9427          { ac_try='test -s conftest$ac_exeext'
9428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9429   (eval $ac_try) 2>&5
9430   ac_status=$?
9431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432   (exit $ac_status); }; }; then
9433   ac_cv_lib_m_j1f=yes
9434 else
9435   echo "$as_me: failed program was:" >&5
9436 sed 's/^/| /' conftest.$ac_ext >&5
9437
9438 ac_cv_lib_m_j1f=no
9439 fi
9440 rm -f conftest.err conftest.$ac_objext \
9441       conftest$ac_exeext conftest.$ac_ext
9442 LIBS=$ac_check_lib_save_LIBS
9443 fi
9444 echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1f" >&5
9445 echo "${ECHO_T}$ac_cv_lib_m_j1f" >&6
9446 if test $ac_cv_lib_m_j1f = yes; then
9447
9448 cat >>confdefs.h <<\_ACEOF
9449 #define HAVE_J1F 1
9450 _ACEOF
9451
9452 fi
9453
9454 echo "$as_me:$LINENO: checking for jn in -lm" >&5
9455 echo $ECHO_N "checking for jn in -lm... $ECHO_C" >&6
9456 if test "${ac_cv_lib_m_jn+set}" = set; then
9457   echo $ECHO_N "(cached) $ECHO_C" >&6
9458 else
9459   ac_check_lib_save_LIBS=$LIBS
9460 LIBS="-lm  $LIBS"
9461 cat >conftest.$ac_ext <<_ACEOF
9462 /* confdefs.h.  */
9463 _ACEOF
9464 cat confdefs.h >>conftest.$ac_ext
9465 cat >>conftest.$ac_ext <<_ACEOF
9466 /* end confdefs.h.  */
9467
9468 /* Override any gcc2 internal prototype to avoid an error.  */
9469 #ifdef __cplusplus
9470 extern "C"
9471 #endif
9472 /* We use char because int might match the return type of a gcc2
9473    builtin and then its argument prototype would still apply.  */
9474 char jn ();
9475 int
9476 main ()
9477 {
9478 jn ();
9479   ;
9480   return 0;
9481 }
9482 _ACEOF
9483 rm -f conftest.$ac_objext conftest$ac_exeext
9484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9485   (eval $ac_link) 2>conftest.er1
9486   ac_status=$?
9487   grep -v '^ *+' conftest.er1 >conftest.err
9488   rm -f conftest.er1
9489   cat conftest.err >&5
9490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491   (exit $ac_status); } &&
9492          { ac_try='test -z "$ac_c_werror_flag"
9493                          || test ! -s conftest.err'
9494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9495   (eval $ac_try) 2>&5
9496   ac_status=$?
9497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498   (exit $ac_status); }; } &&
9499          { ac_try='test -s conftest$ac_exeext'
9500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9501   (eval $ac_try) 2>&5
9502   ac_status=$?
9503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504   (exit $ac_status); }; }; then
9505   ac_cv_lib_m_jn=yes
9506 else
9507   echo "$as_me: failed program was:" >&5
9508 sed 's/^/| /' conftest.$ac_ext >&5
9509
9510 ac_cv_lib_m_jn=no
9511 fi
9512 rm -f conftest.err conftest.$ac_objext \
9513       conftest$ac_exeext conftest.$ac_ext
9514 LIBS=$ac_check_lib_save_LIBS
9515 fi
9516 echo "$as_me:$LINENO: result: $ac_cv_lib_m_jn" >&5
9517 echo "${ECHO_T}$ac_cv_lib_m_jn" >&6
9518 if test $ac_cv_lib_m_jn = yes; then
9519
9520 cat >>confdefs.h <<\_ACEOF
9521 #define HAVE_JN 1
9522 _ACEOF
9523
9524 fi
9525
9526 echo "$as_me:$LINENO: checking for jnf in -lm" >&5
9527 echo $ECHO_N "checking for jnf in -lm... $ECHO_C" >&6
9528 if test "${ac_cv_lib_m_jnf+set}" = set; then
9529   echo $ECHO_N "(cached) $ECHO_C" >&6
9530 else
9531   ac_check_lib_save_LIBS=$LIBS
9532 LIBS="-lm  $LIBS"
9533 cat >conftest.$ac_ext <<_ACEOF
9534 /* confdefs.h.  */
9535 _ACEOF
9536 cat confdefs.h >>conftest.$ac_ext
9537 cat >>conftest.$ac_ext <<_ACEOF
9538 /* end confdefs.h.  */
9539
9540 /* Override any gcc2 internal prototype to avoid an error.  */
9541 #ifdef __cplusplus
9542 extern "C"
9543 #endif
9544 /* We use char because int might match the return type of a gcc2
9545    builtin and then its argument prototype would still apply.  */
9546 char jnf ();
9547 int
9548 main ()
9549 {
9550 jnf ();
9551   ;
9552   return 0;
9553 }
9554 _ACEOF
9555 rm -f conftest.$ac_objext conftest$ac_exeext
9556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9557   (eval $ac_link) 2>conftest.er1
9558   ac_status=$?
9559   grep -v '^ *+' conftest.er1 >conftest.err
9560   rm -f conftest.er1
9561   cat conftest.err >&5
9562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563   (exit $ac_status); } &&
9564          { ac_try='test -z "$ac_c_werror_flag"
9565                          || test ! -s conftest.err'
9566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9567   (eval $ac_try) 2>&5
9568   ac_status=$?
9569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570   (exit $ac_status); }; } &&
9571          { ac_try='test -s conftest$ac_exeext'
9572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9573   (eval $ac_try) 2>&5
9574   ac_status=$?
9575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576   (exit $ac_status); }; }; then
9577   ac_cv_lib_m_jnf=yes
9578 else
9579   echo "$as_me: failed program was:" >&5
9580 sed 's/^/| /' conftest.$ac_ext >&5
9581
9582 ac_cv_lib_m_jnf=no
9583 fi
9584 rm -f conftest.err conftest.$ac_objext \
9585       conftest$ac_exeext conftest.$ac_ext
9586 LIBS=$ac_check_lib_save_LIBS
9587 fi
9588 echo "$as_me:$LINENO: result: $ac_cv_lib_m_jnf" >&5
9589 echo "${ECHO_T}$ac_cv_lib_m_jnf" >&6
9590 if test $ac_cv_lib_m_jnf = yes; then
9591
9592 cat >>confdefs.h <<\_ACEOF
9593 #define HAVE_JNF 1
9594 _ACEOF
9595
9596 fi
9597
9598 echo "$as_me:$LINENO: checking for y0 in -lm" >&5
9599 echo $ECHO_N "checking for y0 in -lm... $ECHO_C" >&6
9600 if test "${ac_cv_lib_m_y0+set}" = set; then
9601   echo $ECHO_N "(cached) $ECHO_C" >&6
9602 else
9603   ac_check_lib_save_LIBS=$LIBS
9604 LIBS="-lm  $LIBS"
9605 cat >conftest.$ac_ext <<_ACEOF
9606 /* confdefs.h.  */
9607 _ACEOF
9608 cat confdefs.h >>conftest.$ac_ext
9609 cat >>conftest.$ac_ext <<_ACEOF
9610 /* end confdefs.h.  */
9611
9612 /* Override any gcc2 internal prototype to avoid an error.  */
9613 #ifdef __cplusplus
9614 extern "C"
9615 #endif
9616 /* We use char because int might match the return type of a gcc2
9617    builtin and then its argument prototype would still apply.  */
9618 char y0 ();
9619 int
9620 main ()
9621 {
9622 y0 ();
9623   ;
9624   return 0;
9625 }
9626 _ACEOF
9627 rm -f conftest.$ac_objext conftest$ac_exeext
9628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9629   (eval $ac_link) 2>conftest.er1
9630   ac_status=$?
9631   grep -v '^ *+' conftest.er1 >conftest.err
9632   rm -f conftest.er1
9633   cat conftest.err >&5
9634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635   (exit $ac_status); } &&
9636          { ac_try='test -z "$ac_c_werror_flag"
9637                          || test ! -s conftest.err'
9638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9639   (eval $ac_try) 2>&5
9640   ac_status=$?
9641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642   (exit $ac_status); }; } &&
9643          { ac_try='test -s conftest$ac_exeext'
9644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9645   (eval $ac_try) 2>&5
9646   ac_status=$?
9647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648   (exit $ac_status); }; }; then
9649   ac_cv_lib_m_y0=yes
9650 else
9651   echo "$as_me: failed program was:" >&5
9652 sed 's/^/| /' conftest.$ac_ext >&5
9653
9654 ac_cv_lib_m_y0=no
9655 fi
9656 rm -f conftest.err conftest.$ac_objext \
9657       conftest$ac_exeext conftest.$ac_ext
9658 LIBS=$ac_check_lib_save_LIBS
9659 fi
9660 echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0" >&5
9661 echo "${ECHO_T}$ac_cv_lib_m_y0" >&6
9662 if test $ac_cv_lib_m_y0 = yes; then
9663
9664 cat >>confdefs.h <<\_ACEOF
9665 #define HAVE_Y0 1
9666 _ACEOF
9667
9668 fi
9669
9670 echo "$as_me:$LINENO: checking for y0f in -lm" >&5
9671 echo $ECHO_N "checking for y0f in -lm... $ECHO_C" >&6
9672 if test "${ac_cv_lib_m_y0f+set}" = set; then
9673   echo $ECHO_N "(cached) $ECHO_C" >&6
9674 else
9675   ac_check_lib_save_LIBS=$LIBS
9676 LIBS="-lm  $LIBS"
9677 cat >conftest.$ac_ext <<_ACEOF
9678 /* confdefs.h.  */
9679 _ACEOF
9680 cat confdefs.h >>conftest.$ac_ext
9681 cat >>conftest.$ac_ext <<_ACEOF
9682 /* end confdefs.h.  */
9683
9684 /* Override any gcc2 internal prototype to avoid an error.  */
9685 #ifdef __cplusplus
9686 extern "C"
9687 #endif
9688 /* We use char because int might match the return type of a gcc2
9689    builtin and then its argument prototype would still apply.  */
9690 char y0f ();
9691 int
9692 main ()
9693 {
9694 y0f ();
9695   ;
9696   return 0;
9697 }
9698 _ACEOF
9699 rm -f conftest.$ac_objext conftest$ac_exeext
9700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9701   (eval $ac_link) 2>conftest.er1
9702   ac_status=$?
9703   grep -v '^ *+' conftest.er1 >conftest.err
9704   rm -f conftest.er1
9705   cat conftest.err >&5
9706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707   (exit $ac_status); } &&
9708          { ac_try='test -z "$ac_c_werror_flag"
9709                          || test ! -s conftest.err'
9710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9711   (eval $ac_try) 2>&5
9712   ac_status=$?
9713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714   (exit $ac_status); }; } &&
9715          { ac_try='test -s conftest$ac_exeext'
9716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9717   (eval $ac_try) 2>&5
9718   ac_status=$?
9719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720   (exit $ac_status); }; }; then
9721   ac_cv_lib_m_y0f=yes
9722 else
9723   echo "$as_me: failed program was:" >&5
9724 sed 's/^/| /' conftest.$ac_ext >&5
9725
9726 ac_cv_lib_m_y0f=no
9727 fi
9728 rm -f conftest.err conftest.$ac_objext \
9729       conftest$ac_exeext conftest.$ac_ext
9730 LIBS=$ac_check_lib_save_LIBS
9731 fi
9732 echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0f" >&5
9733 echo "${ECHO_T}$ac_cv_lib_m_y0f" >&6
9734 if test $ac_cv_lib_m_y0f = yes; then
9735
9736 cat >>confdefs.h <<\_ACEOF
9737 #define HAVE_Y0F 1
9738 _ACEOF
9739
9740 fi
9741
9742 echo "$as_me:$LINENO: checking for y1 in -lm" >&5
9743 echo $ECHO_N "checking for y1 in -lm... $ECHO_C" >&6
9744 if test "${ac_cv_lib_m_y1+set}" = set; then
9745   echo $ECHO_N "(cached) $ECHO_C" >&6
9746 else
9747   ac_check_lib_save_LIBS=$LIBS
9748 LIBS="-lm  $LIBS"
9749 cat >conftest.$ac_ext <<_ACEOF
9750 /* confdefs.h.  */
9751 _ACEOF
9752 cat confdefs.h >>conftest.$ac_ext
9753 cat >>conftest.$ac_ext <<_ACEOF
9754 /* end confdefs.h.  */
9755
9756 /* Override any gcc2 internal prototype to avoid an error.  */
9757 #ifdef __cplusplus
9758 extern "C"
9759 #endif
9760 /* We use char because int might match the return type of a gcc2
9761    builtin and then its argument prototype would still apply.  */
9762 char y1 ();
9763 int
9764 main ()
9765 {
9766 y1 ();
9767   ;
9768   return 0;
9769 }
9770 _ACEOF
9771 rm -f conftest.$ac_objext conftest$ac_exeext
9772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9773   (eval $ac_link) 2>conftest.er1
9774   ac_status=$?
9775   grep -v '^ *+' conftest.er1 >conftest.err
9776   rm -f conftest.er1
9777   cat conftest.err >&5
9778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779   (exit $ac_status); } &&
9780          { ac_try='test -z "$ac_c_werror_flag"
9781                          || test ! -s conftest.err'
9782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9783   (eval $ac_try) 2>&5
9784   ac_status=$?
9785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786   (exit $ac_status); }; } &&
9787          { ac_try='test -s conftest$ac_exeext'
9788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9789   (eval $ac_try) 2>&5
9790   ac_status=$?
9791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792   (exit $ac_status); }; }; then
9793   ac_cv_lib_m_y1=yes
9794 else
9795   echo "$as_me: failed program was:" >&5
9796 sed 's/^/| /' conftest.$ac_ext >&5
9797
9798 ac_cv_lib_m_y1=no
9799 fi
9800 rm -f conftest.err conftest.$ac_objext \
9801       conftest$ac_exeext conftest.$ac_ext
9802 LIBS=$ac_check_lib_save_LIBS
9803 fi
9804 echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1" >&5
9805 echo "${ECHO_T}$ac_cv_lib_m_y1" >&6
9806 if test $ac_cv_lib_m_y1 = yes; then
9807
9808 cat >>confdefs.h <<\_ACEOF
9809 #define HAVE_Y1 1
9810 _ACEOF
9811
9812 fi
9813
9814 echo "$as_me:$LINENO: checking for y1f in -lm" >&5
9815 echo $ECHO_N "checking for y1f in -lm... $ECHO_C" >&6
9816 if test "${ac_cv_lib_m_y1f+set}" = set; then
9817   echo $ECHO_N "(cached) $ECHO_C" >&6
9818 else
9819   ac_check_lib_save_LIBS=$LIBS
9820 LIBS="-lm  $LIBS"
9821 cat >conftest.$ac_ext <<_ACEOF
9822 /* confdefs.h.  */
9823 _ACEOF
9824 cat confdefs.h >>conftest.$ac_ext
9825 cat >>conftest.$ac_ext <<_ACEOF
9826 /* end confdefs.h.  */
9827
9828 /* Override any gcc2 internal prototype to avoid an error.  */
9829 #ifdef __cplusplus
9830 extern "C"
9831 #endif
9832 /* We use char because int might match the return type of a gcc2
9833    builtin and then its argument prototype would still apply.  */
9834 char y1f ();
9835 int
9836 main ()
9837 {
9838 y1f ();
9839   ;
9840   return 0;
9841 }
9842 _ACEOF
9843 rm -f conftest.$ac_objext conftest$ac_exeext
9844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9845   (eval $ac_link) 2>conftest.er1
9846   ac_status=$?
9847   grep -v '^ *+' conftest.er1 >conftest.err
9848   rm -f conftest.er1
9849   cat conftest.err >&5
9850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851   (exit $ac_status); } &&
9852          { ac_try='test -z "$ac_c_werror_flag"
9853                          || test ! -s conftest.err'
9854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9855   (eval $ac_try) 2>&5
9856   ac_status=$?
9857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858   (exit $ac_status); }; } &&
9859          { ac_try='test -s conftest$ac_exeext'
9860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9861   (eval $ac_try) 2>&5
9862   ac_status=$?
9863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864   (exit $ac_status); }; }; then
9865   ac_cv_lib_m_y1f=yes
9866 else
9867   echo "$as_me: failed program was:" >&5
9868 sed 's/^/| /' conftest.$ac_ext >&5
9869
9870 ac_cv_lib_m_y1f=no
9871 fi
9872 rm -f conftest.err conftest.$ac_objext \
9873       conftest$ac_exeext conftest.$ac_ext
9874 LIBS=$ac_check_lib_save_LIBS
9875 fi
9876 echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1f" >&5
9877 echo "${ECHO_T}$ac_cv_lib_m_y1f" >&6
9878 if test $ac_cv_lib_m_y1f = yes; then
9879
9880 cat >>confdefs.h <<\_ACEOF
9881 #define HAVE_Y1F 1
9882 _ACEOF
9883
9884 fi
9885
9886 echo "$as_me:$LINENO: checking for yn in -lm" >&5
9887 echo $ECHO_N "checking for yn in -lm... $ECHO_C" >&6
9888 if test "${ac_cv_lib_m_yn+set}" = set; then
9889   echo $ECHO_N "(cached) $ECHO_C" >&6
9890 else
9891   ac_check_lib_save_LIBS=$LIBS
9892 LIBS="-lm  $LIBS"
9893 cat >conftest.$ac_ext <<_ACEOF
9894 /* confdefs.h.  */
9895 _ACEOF
9896 cat confdefs.h >>conftest.$ac_ext
9897 cat >>conftest.$ac_ext <<_ACEOF
9898 /* end confdefs.h.  */
9899
9900 /* Override any gcc2 internal prototype to avoid an error.  */
9901 #ifdef __cplusplus
9902 extern "C"
9903 #endif
9904 /* We use char because int might match the return type of a gcc2
9905    builtin and then its argument prototype would still apply.  */
9906 char yn ();
9907 int
9908 main ()
9909 {
9910 yn ();
9911   ;
9912   return 0;
9913 }
9914 _ACEOF
9915 rm -f conftest.$ac_objext conftest$ac_exeext
9916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9917   (eval $ac_link) 2>conftest.er1
9918   ac_status=$?
9919   grep -v '^ *+' conftest.er1 >conftest.err
9920   rm -f conftest.er1
9921   cat conftest.err >&5
9922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923   (exit $ac_status); } &&
9924          { ac_try='test -z "$ac_c_werror_flag"
9925                          || test ! -s conftest.err'
9926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9927   (eval $ac_try) 2>&5
9928   ac_status=$?
9929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930   (exit $ac_status); }; } &&
9931          { ac_try='test -s conftest$ac_exeext'
9932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9933   (eval $ac_try) 2>&5
9934   ac_status=$?
9935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936   (exit $ac_status); }; }; then
9937   ac_cv_lib_m_yn=yes
9938 else
9939   echo "$as_me: failed program was:" >&5
9940 sed 's/^/| /' conftest.$ac_ext >&5
9941
9942 ac_cv_lib_m_yn=no
9943 fi
9944 rm -f conftest.err conftest.$ac_objext \
9945       conftest$ac_exeext conftest.$ac_ext
9946 LIBS=$ac_check_lib_save_LIBS
9947 fi
9948 echo "$as_me:$LINENO: result: $ac_cv_lib_m_yn" >&5
9949 echo "${ECHO_T}$ac_cv_lib_m_yn" >&6
9950 if test $ac_cv_lib_m_yn = yes; then
9951
9952 cat >>confdefs.h <<\_ACEOF
9953 #define HAVE_YN 1
9954 _ACEOF
9955
9956 fi
9957
9958 echo "$as_me:$LINENO: checking for ynf in -lm" >&5
9959 echo $ECHO_N "checking for ynf in -lm... $ECHO_C" >&6
9960 if test "${ac_cv_lib_m_ynf+set}" = set; then
9961   echo $ECHO_N "(cached) $ECHO_C" >&6
9962 else
9963   ac_check_lib_save_LIBS=$LIBS
9964 LIBS="-lm  $LIBS"
9965 cat >conftest.$ac_ext <<_ACEOF
9966 /* confdefs.h.  */
9967 _ACEOF
9968 cat confdefs.h >>conftest.$ac_ext
9969 cat >>conftest.$ac_ext <<_ACEOF
9970 /* end confdefs.h.  */
9971
9972 /* Override any gcc2 internal prototype to avoid an error.  */
9973 #ifdef __cplusplus
9974 extern "C"
9975 #endif
9976 /* We use char because int might match the return type of a gcc2
9977    builtin and then its argument prototype would still apply.  */
9978 char ynf ();
9979 int
9980 main ()
9981 {
9982 ynf ();
9983   ;
9984   return 0;
9985 }
9986 _ACEOF
9987 rm -f conftest.$ac_objext conftest$ac_exeext
9988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9989   (eval $ac_link) 2>conftest.er1
9990   ac_status=$?
9991   grep -v '^ *+' conftest.er1 >conftest.err
9992   rm -f conftest.er1
9993   cat conftest.err >&5
9994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995   (exit $ac_status); } &&
9996          { ac_try='test -z "$ac_c_werror_flag"
9997                          || test ! -s conftest.err'
9998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9999   (eval $ac_try) 2>&5
10000   ac_status=$?
10001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002   (exit $ac_status); }; } &&
10003          { ac_try='test -s conftest$ac_exeext'
10004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10005   (eval $ac_try) 2>&5
10006   ac_status=$?
10007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008   (exit $ac_status); }; }; then
10009   ac_cv_lib_m_ynf=yes
10010 else
10011   echo "$as_me: failed program was:" >&5
10012 sed 's/^/| /' conftest.$ac_ext >&5
10013
10014 ac_cv_lib_m_ynf=no
10015 fi
10016 rm -f conftest.err conftest.$ac_objext \
10017       conftest$ac_exeext conftest.$ac_ext
10018 LIBS=$ac_check_lib_save_LIBS
10019 fi
10020 echo "$as_me:$LINENO: result: $ac_cv_lib_m_ynf" >&5
10021 echo "${ECHO_T}$ac_cv_lib_m_ynf" >&6
10022 if test $ac_cv_lib_m_ynf = yes; then
10023
10024 cat >>confdefs.h <<\_ACEOF
10025 #define HAVE_YNF 1
10026 _ACEOF
10027
10028 fi
10029
10030
10031 # Let the user override this
10032 # Check whether --enable-cmath or --disable-cmath was given.
10033 if test "${enable_cmath+set}" = set; then
10034   enableval="$enable_cmath"
10035   need_math=$enableval
10036 fi;
10037 if test "$need_math" = "yes"; then
10038         { echo "$as_me:$LINENO: Including complex math functions in libgfor" >&5
10039 echo "$as_me: Including complex math functions in libgfor" >&6;};
10040   extra_math_obj='$(gfor_cmath_obj)'
10041 fi
10042
10043 MATH_OBJ="$extra_math_obj"
10044
10045
10046 # The standard autoconf HAVE_STRUCT_TIMEZONE doesn't actually check
10047 # for struct timezone, as you might think.  We also need to check how
10048 # to call gettimeofday if we have it.
10049 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10050 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10051 if test "${ac_cv_header_time+set}" = set; then
10052   echo $ECHO_N "(cached) $ECHO_C" >&6
10053 else
10054   cat >conftest.$ac_ext <<_ACEOF
10055 /* confdefs.h.  */
10056 _ACEOF
10057 cat confdefs.h >>conftest.$ac_ext
10058 cat >>conftest.$ac_ext <<_ACEOF
10059 /* end confdefs.h.  */
10060 #include <sys/types.h>
10061 #include <sys/time.h>
10062 #include <time.h>
10063
10064 int
10065 main ()
10066 {
10067 if ((struct tm *) 0)
10068 return 0;
10069   ;
10070   return 0;
10071 }
10072 _ACEOF
10073 rm -f conftest.$ac_objext
10074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10075   (eval $ac_compile) 2>conftest.er1
10076   ac_status=$?
10077   grep -v '^ *+' conftest.er1 >conftest.err
10078   rm -f conftest.er1
10079   cat conftest.err >&5
10080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081   (exit $ac_status); } &&
10082          { ac_try='test -z "$ac_c_werror_flag"
10083                          || test ! -s conftest.err'
10084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10085   (eval $ac_try) 2>&5
10086   ac_status=$?
10087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088   (exit $ac_status); }; } &&
10089          { ac_try='test -s conftest.$ac_objext'
10090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10091   (eval $ac_try) 2>&5
10092   ac_status=$?
10093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094   (exit $ac_status); }; }; then
10095   ac_cv_header_time=yes
10096 else
10097   echo "$as_me: failed program was:" >&5
10098 sed 's/^/| /' conftest.$ac_ext >&5
10099
10100 ac_cv_header_time=no
10101 fi
10102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10103 fi
10104 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10105 echo "${ECHO_T}$ac_cv_header_time" >&6
10106 if test $ac_cv_header_time = yes; then
10107
10108 cat >>confdefs.h <<\_ACEOF
10109 #define TIME_WITH_SYS_TIME 1
10110 _ACEOF
10111
10112 fi
10113
10114
10115
10116 for ac_func in gettimeofday
10117 do
10118 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10119 echo "$as_me:$LINENO: checking for $ac_func" >&5
10120 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10121 if eval "test \"\${$as_ac_var+set}\" = set"; then
10122   echo $ECHO_N "(cached) $ECHO_C" >&6
10123 else
10124   cat >conftest.$ac_ext <<_ACEOF
10125 /* confdefs.h.  */
10126 _ACEOF
10127 cat confdefs.h >>conftest.$ac_ext
10128 cat >>conftest.$ac_ext <<_ACEOF
10129 /* end confdefs.h.  */
10130 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10131    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10132 #define $ac_func innocuous_$ac_func
10133
10134 /* System header to define __stub macros and hopefully few prototypes,
10135     which can conflict with char $ac_func (); below.
10136     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10137     <limits.h> exists even on freestanding compilers.  */
10138
10139 #ifdef __STDC__
10140 # include <limits.h>
10141 #else
10142 # include <assert.h>
10143 #endif
10144
10145 #undef $ac_func
10146
10147 /* Override any gcc2 internal prototype to avoid an error.  */
10148 #ifdef __cplusplus
10149 extern "C"
10150 {
10151 #endif
10152 /* We use char because int might match the return type of a gcc2
10153    builtin and then its argument prototype would still apply.  */
10154 char $ac_func ();
10155 /* The GNU C library defines this for functions which it implements
10156     to always fail with ENOSYS.  Some functions are actually named
10157     something starting with __ and the normal name is an alias.  */
10158 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10159 choke me
10160 #else
10161 char (*f) () = $ac_func;
10162 #endif
10163 #ifdef __cplusplus
10164 }
10165 #endif
10166
10167 int
10168 main ()
10169 {
10170 return f != $ac_func;
10171   ;
10172   return 0;
10173 }
10174 _ACEOF
10175 rm -f conftest.$ac_objext conftest$ac_exeext
10176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10177   (eval $ac_link) 2>conftest.er1
10178   ac_status=$?
10179   grep -v '^ *+' conftest.er1 >conftest.err
10180   rm -f conftest.er1
10181   cat conftest.err >&5
10182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183   (exit $ac_status); } &&
10184          { ac_try='test -z "$ac_c_werror_flag"
10185                          || test ! -s conftest.err'
10186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10187   (eval $ac_try) 2>&5
10188   ac_status=$?
10189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190   (exit $ac_status); }; } &&
10191          { ac_try='test -s conftest$ac_exeext'
10192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10193   (eval $ac_try) 2>&5
10194   ac_status=$?
10195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196   (exit $ac_status); }; }; then
10197   eval "$as_ac_var=yes"
10198 else
10199   echo "$as_me: failed program was:" >&5
10200 sed 's/^/| /' conftest.$ac_ext >&5
10201
10202 eval "$as_ac_var=no"
10203 fi
10204 rm -f conftest.err conftest.$ac_objext \
10205       conftest$ac_exeext conftest.$ac_ext
10206 fi
10207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10208 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10209 if test `eval echo '${'$as_ac_var'}'` = yes; then
10210   cat >>confdefs.h <<_ACEOF
10211 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10212 _ACEOF
10213
10214 fi
10215 done
10216
10217   if test "$ac_cv_func_gettimeofday" = yes; then
10218     echo "$as_me:$LINENO: checking for struct timezone" >&5
10219 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
10220 if test "${gfor_cv_struct_timezone+set}" = set; then
10221   echo $ECHO_N "(cached) $ECHO_C" >&6
10222 else
10223   cat >conftest.$ac_ext <<_ACEOF
10224 /* confdefs.h.  */
10225 _ACEOF
10226 cat confdefs.h >>conftest.$ac_ext
10227 cat >>conftest.$ac_ext <<_ACEOF
10228 /* end confdefs.h.  */
10229 #include <sys/time.h>
10230 int
10231 main ()
10232 {
10233 struct timezone tz;
10234   ;
10235   return 0;
10236 }
10237 _ACEOF
10238 rm -f conftest.$ac_objext
10239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10240   (eval $ac_compile) 2>conftest.er1
10241   ac_status=$?
10242   grep -v '^ *+' conftest.er1 >conftest.err
10243   rm -f conftest.er1
10244   cat conftest.err >&5
10245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246   (exit $ac_status); } &&
10247          { ac_try='test -z "$ac_c_werror_flag"
10248                          || test ! -s conftest.err'
10249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10250   (eval $ac_try) 2>&5
10251   ac_status=$?
10252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253   (exit $ac_status); }; } &&
10254          { ac_try='test -s conftest.$ac_objext'
10255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10256   (eval $ac_try) 2>&5
10257   ac_status=$?
10258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259   (exit $ac_status); }; }; then
10260   gfor_cv_struct_timezone=yes
10261 else
10262   echo "$as_me: failed program was:" >&5
10263 sed 's/^/| /' conftest.$ac_ext >&5
10264
10265 gfor_cv_struct_timezone=no
10266 fi
10267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10268 fi
10269 echo "$as_me:$LINENO: result: $gfor_cv_struct_timezone" >&5
10270 echo "${ECHO_T}$gfor_cv_struct_timezone" >&6
10271     if test $gfor_cv_struct_timezone = yes; then
10272                   if test "$cross_compiling" = yes; then
10273   gfor_have_struct_timezone=yes
10274 else
10275   cat >conftest.$ac_ext <<_ACEOF
10276 /* confdefs.h.  */
10277 _ACEOF
10278 cat confdefs.h >>conftest.$ac_ext
10279 cat >>conftest.$ac_ext <<_ACEOF
10280 /* end confdefs.h.  */
10281
10282 #ifdef TIME_WITH_SYS_TIME
10283 #include <sys/time.h>
10284 #include <time.h>
10285 #else
10286 #ifdef HAVE_SYS_TIME_H
10287 #include <sys/time.h>
10288 #else
10289 #include <time.h>
10290 #endif
10291 #endif
10292 main ()
10293 {
10294   struct timeval time;
10295   struct timezone dummy;
10296   if (gettimeofday (&time, &dummy))
10297     exit (1);
10298   else
10299     exit (0);
10300 }
10301 _ACEOF
10302 rm -f conftest$ac_exeext
10303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10304   (eval $ac_link) 2>&5
10305   ac_status=$?
10306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10309   (eval $ac_try) 2>&5
10310   ac_status=$?
10311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312   (exit $ac_status); }; }; then
10313   gfor_have_struct_timezone=yes
10314 else
10315   echo "$as_me: program exited with status $ac_status" >&5
10316 echo "$as_me: failed program was:" >&5
10317 sed 's/^/| /' conftest.$ac_ext >&5
10318
10319 ( exit $ac_status )
10320 gfor_have_struct_timezone=no
10321 fi
10322 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10323 fi
10324       if test $gfor_have_struct_timezone = yes; then
10325
10326 cat >>confdefs.h <<\_ACEOF
10327 #define HAVE_TIMEZONE 1
10328 _ACEOF
10329
10330       fi
10331     fi
10332
10333     echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
10334 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
10335 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
10336   echo $ECHO_N "(cached) $ECHO_C" >&6
10337 else
10338   cat >conftest.$ac_ext <<_ACEOF
10339 /* confdefs.h.  */
10340 _ACEOF
10341 cat confdefs.h >>conftest.$ac_ext
10342 cat >>conftest.$ac_ext <<_ACEOF
10343 /* end confdefs.h.  */
10344
10345 #ifdef TIME_WITH_SYS_TIME
10346 #include <sys/time.h>
10347 #include <time.h>
10348 #else
10349 #ifdef HAVE_SYS_TIME_H
10350 #include <sys/time.h>
10351 #else
10352 #include <time.h>
10353 #endif
10354 #endif
10355
10356 int
10357 main ()
10358 {
10359
10360       struct timeval time;
10361 #ifdef HAVE_TIMEZONE
10362       struct timezone dummy;
10363 #define DUMMY &dummy
10364 #else
10365 #define DUMMY NULL
10366 #endif
10367       gettimeofday (&time, DUMMY);
10368   ;
10369   return 0;
10370 }
10371 _ACEOF
10372 rm -f conftest.$ac_objext conftest$ac_exeext
10373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10374   (eval $ac_link) 2>conftest.er1
10375   ac_status=$?
10376   grep -v '^ *+' conftest.er1 >conftest.err
10377   rm -f conftest.er1
10378   cat conftest.err >&5
10379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380   (exit $ac_status); } &&
10381          { ac_try='test -z "$ac_c_werror_flag"
10382                          || test ! -s conftest.err'
10383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10384   (eval $ac_try) 2>&5
10385   ac_status=$?
10386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387   (exit $ac_status); }; } &&
10388          { ac_try='test -s conftest$ac_exeext'
10389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10390   (eval $ac_try) 2>&5
10391   ac_status=$?
10392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393   (exit $ac_status); }; }; then
10394   emacs_cv_gettimeofday_two_arguments=yes
10395 else
10396   echo "$as_me: failed program was:" >&5
10397 sed 's/^/| /' conftest.$ac_ext >&5
10398
10399 emacs_cv_gettimeofday_two_arguments=no
10400 fi
10401 rm -f conftest.err conftest.$ac_objext \
10402       conftest$ac_exeext conftest.$ac_ext
10403 fi
10404 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
10405 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
10406     if test $emacs_cv_gettimeofday_two_arguments = no; then
10407
10408 cat >>confdefs.h <<\_ACEOF
10409 #define GETTIMEOFDAY_ONE_ARGUMENT 1
10410 _ACEOF
10411
10412     fi
10413   fi
10414
10415 cat >confcache <<\_ACEOF
10416 # This file is a shell script that caches the results of configure
10417 # tests run on this system so they can be shared between configure
10418 # scripts and configure runs, see configure's option --config-cache.
10419 # It is not useful on other systems.  If it contains results you don't
10420 # want to keep, you may remove or edit it.
10421 #
10422 # config.status only pays attention to the cache file if you give it
10423 # the --recheck option to rerun configure.
10424 #
10425 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10426 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10427 # following values.
10428
10429 _ACEOF
10430
10431 # The following way of writing the cache mishandles newlines in values,
10432 # but we know of no workaround that is simple, portable, and efficient.
10433 # So, don't put newlines in cache variables' values.
10434 # Ultrix sh set writes to stderr and can't be redirected directly,
10435 # and sets the high bit in the cache file unless we assign to the vars.
10436 {
10437   (set) 2>&1 |
10438     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10439     *ac_space=\ *)
10440       # `set' does not quote correctly, so add quotes (double-quote
10441       # substitution turns \\\\ into \\, and sed turns \\ into \).
10442       sed -n \
10443         "s/'/'\\\\''/g;
10444           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10445       ;;
10446     *)
10447       # `set' quotes correctly as required by POSIX, so do not add quotes.
10448       sed -n \
10449         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10450       ;;
10451     esac;
10452 } |
10453   sed '
10454      t clear
10455      : clear
10456      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10457      t end
10458      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10459      : end' >>confcache
10460 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10461   if test -w $cache_file; then
10462     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10463     cat confcache >$cache_file
10464   else
10465     echo "not updating unwritable cache $cache_file"
10466   fi
10467 fi
10468 rm -f confcache
10469
10470 if test ${multilib} = yes; then
10471   multilib_arg="--enable-multilib"
10472 else
10473   multilib_arg=
10474 fi
10475
10476 # Write our Makefile.
10477           ac_config_files="$ac_config_files Makefile"
10478
10479 cat >confcache <<\_ACEOF
10480 # This file is a shell script that caches the results of configure
10481 # tests run on this system so they can be shared between configure
10482 # scripts and configure runs, see configure's option --config-cache.
10483 # It is not useful on other systems.  If it contains results you don't
10484 # want to keep, you may remove or edit it.
10485 #
10486 # config.status only pays attention to the cache file if you give it
10487 # the --recheck option to rerun configure.
10488 #
10489 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10490 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10491 # following values.
10492
10493 _ACEOF
10494
10495 # The following way of writing the cache mishandles newlines in values,
10496 # but we know of no workaround that is simple, portable, and efficient.
10497 # So, don't put newlines in cache variables' values.
10498 # Ultrix sh set writes to stderr and can't be redirected directly,
10499 # and sets the high bit in the cache file unless we assign to the vars.
10500 {
10501   (set) 2>&1 |
10502     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10503     *ac_space=\ *)
10504       # `set' does not quote correctly, so add quotes (double-quote
10505       # substitution turns \\\\ into \\, and sed turns \\ into \).
10506       sed -n \
10507         "s/'/'\\\\''/g;
10508           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10509       ;;
10510     *)
10511       # `set' quotes correctly as required by POSIX, so do not add quotes.
10512       sed -n \
10513         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10514       ;;
10515     esac;
10516 } |
10517   sed '
10518      t clear
10519      : clear
10520      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10521      t end
10522      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10523      : end' >>confcache
10524 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10525   if test -w $cache_file; then
10526     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10527     cat confcache >$cache_file
10528   else
10529     echo "not updating unwritable cache $cache_file"
10530   fi
10531 fi
10532 rm -f confcache
10533
10534 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10535 # Let make expand exec_prefix.
10536 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10537
10538 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10539 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10540 # trailing colons and then remove the whole line if VPATH becomes empty
10541 # (actually we leave an empty line to preserve line numbers).
10542 if test "x$srcdir" = x.; then
10543   ac_vpsub='/^[  ]*VPATH[        ]*=/{
10544 s/:*\$(srcdir):*/:/;
10545 s/:*\${srcdir}:*/:/;
10546 s/:*@srcdir@:*/:/;
10547 s/^\([^=]*=[     ]*\):*/\1/;
10548 s/:*$//;
10549 s/^[^=]*=[       ]*$//;
10550 }'
10551 fi
10552
10553 DEFS=-DHAVE_CONFIG_H
10554
10555 ac_libobjs=
10556 ac_ltlibobjs=
10557 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10558   # 1. Remove the extension, and $U if already installed.
10559   ac_i=`echo "$ac_i" |
10560          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10561   # 2. Add them.
10562   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10563   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10564 done
10565 LIBOBJS=$ac_libobjs
10566
10567 LTLIBOBJS=$ac_ltlibobjs
10568
10569
10570 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10571   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10572 Usually this means the macro was only invoked conditionally." >&5
10573 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10574 Usually this means the macro was only invoked conditionally." >&2;}
10575    { (exit 1); exit 1; }; }
10576 fi
10577
10578 : ${CONFIG_STATUS=./config.status}
10579 ac_clean_files_save=$ac_clean_files
10580 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10581 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10582 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10583 cat >$CONFIG_STATUS <<_ACEOF
10584 #! $SHELL
10585 # Generated by $as_me.
10586 # Run this file to recreate the current configuration.
10587 # Compiler output produced by configure, useful for debugging
10588 # configure, is in config.log if it exists.
10589
10590 debug=false
10591 ac_cs_recheck=false
10592 ac_cs_silent=false
10593 SHELL=\${CONFIG_SHELL-$SHELL}
10594 _ACEOF
10595
10596 cat >>$CONFIG_STATUS <<\_ACEOF
10597 ## --------------------- ##
10598 ## M4sh Initialization.  ##
10599 ## --------------------- ##
10600
10601 # Be Bourne compatible
10602 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10603   emulate sh
10604   NULLCMD=:
10605   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10606   # is contrary to our usage.  Disable this feature.
10607   alias -g '${1+"$@"}'='"$@"'
10608 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10609   set -o posix
10610 fi
10611 DUALCASE=1; export DUALCASE # for MKS sh
10612
10613 # Support unset when possible.
10614 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10615   as_unset=unset
10616 else
10617   as_unset=false
10618 fi
10619
10620
10621 # Work around bugs in pre-3.0 UWIN ksh.
10622 $as_unset ENV MAIL MAILPATH
10623 PS1='$ '
10624 PS2='> '
10625 PS4='+ '
10626
10627 # NLS nuisances.
10628 for as_var in \
10629   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10630   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10631   LC_TELEPHONE LC_TIME
10632 do
10633   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10634     eval $as_var=C; export $as_var
10635   else
10636     $as_unset $as_var
10637   fi
10638 done
10639
10640 # Required to use basename.
10641 if expr a : '\(a\)' >/dev/null 2>&1; then
10642   as_expr=expr
10643 else
10644   as_expr=false
10645 fi
10646
10647 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10648   as_basename=basename
10649 else
10650   as_basename=false
10651 fi
10652
10653
10654 # Name of the executable.
10655 as_me=`$as_basename "$0" ||
10656 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10657          X"$0" : 'X\(//\)$' \| \
10658          X"$0" : 'X\(/\)$' \| \
10659          .     : '\(.\)' 2>/dev/null ||
10660 echo X/"$0" |
10661     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10662           /^X\/\(\/\/\)$/{ s//\1/; q; }
10663           /^X\/\(\/\).*/{ s//\1/; q; }
10664           s/.*/./; q'`
10665
10666
10667 # PATH needs CR, and LINENO needs CR and PATH.
10668 # Avoid depending upon Character Ranges.
10669 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10670 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10671 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10672 as_cr_digits='0123456789'
10673 as_cr_alnum=$as_cr_Letters$as_cr_digits
10674
10675 # The user is always right.
10676 if test "${PATH_SEPARATOR+set}" != set; then
10677   echo "#! /bin/sh" >conf$$.sh
10678   echo  "exit 0"   >>conf$$.sh
10679   chmod +x conf$$.sh
10680   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10681     PATH_SEPARATOR=';'
10682   else
10683     PATH_SEPARATOR=:
10684   fi
10685   rm -f conf$$.sh
10686 fi
10687
10688
10689   as_lineno_1=$LINENO
10690   as_lineno_2=$LINENO
10691   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10692   test "x$as_lineno_1" != "x$as_lineno_2" &&
10693   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
10694   # Find who we are.  Look in the path if we contain no path at all
10695   # relative or not.
10696   case $0 in
10697     *[\\/]* ) as_myself=$0 ;;
10698     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10699 for as_dir in $PATH
10700 do
10701   IFS=$as_save_IFS
10702   test -z "$as_dir" && as_dir=.
10703   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10704 done
10705
10706        ;;
10707   esac
10708   # We did not find ourselves, most probably we were run as `sh COMMAND'
10709   # in which case we are not to be found in the path.
10710   if test "x$as_myself" = x; then
10711     as_myself=$0
10712   fi
10713   if test ! -f "$as_myself"; then
10714     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10715 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10716    { (exit 1); exit 1; }; }
10717   fi
10718   case $CONFIG_SHELL in
10719   '')
10720     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10721 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10722 do
10723   IFS=$as_save_IFS
10724   test -z "$as_dir" && as_dir=.
10725   for as_base in sh bash ksh sh5; do
10726          case $as_dir in
10727          /*)
10728            if ("$as_dir/$as_base" -c '
10729   as_lineno_1=$LINENO
10730   as_lineno_2=$LINENO
10731   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10732   test "x$as_lineno_1" != "x$as_lineno_2" &&
10733   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
10734              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10735              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10736              CONFIG_SHELL=$as_dir/$as_base
10737              export CONFIG_SHELL
10738              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10739            fi;;
10740          esac
10741        done
10742 done
10743 ;;
10744   esac
10745
10746   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10747   # uniformly replaced by the line number.  The first 'sed' inserts a
10748   # line-number line before each line; the second 'sed' does the real
10749   # work.  The second script uses 'N' to pair each line-number line
10750   # with the numbered line, and appends trailing '-' during
10751   # substitution so that $LINENO is not a special case at line end.
10752   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10753   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
10754   sed '=' <$as_myself |
10755     sed '
10756       N
10757       s,$,-,
10758       : loop
10759       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10760       t loop
10761       s,-$,,
10762       s,^['$as_cr_digits']*\n,,
10763     ' >$as_me.lineno &&
10764   chmod +x $as_me.lineno ||
10765     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10766 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10767    { (exit 1); exit 1; }; }
10768
10769   # Don't try to exec as it changes $[0], causing all sort of problems
10770   # (the dirname of $[0] is not the place where we might find the
10771   # original and so on.  Autoconf is especially sensible to this).
10772   . ./$as_me.lineno
10773   # Exit status is that of the last command.
10774   exit
10775 }
10776
10777
10778 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10779   *c*,-n*) ECHO_N= ECHO_C='
10780 ' ECHO_T='      ' ;;
10781   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10782   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
10783 esac
10784
10785 if expr a : '\(a\)' >/dev/null 2>&1; then
10786   as_expr=expr
10787 else
10788   as_expr=false
10789 fi
10790
10791 rm -f conf$$ conf$$.exe conf$$.file
10792 echo >conf$$.file
10793 if ln -s conf$$.file conf$$ 2>/dev/null; then
10794   # We could just check for DJGPP; but this test a) works b) is more generic
10795   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10796   if test -f conf$$.exe; then
10797     # Don't use ln at all; we don't have any links
10798     as_ln_s='cp -p'
10799   else
10800     as_ln_s='ln -s'
10801   fi
10802 elif ln conf$$.file conf$$ 2>/dev/null; then
10803   as_ln_s=ln
10804 else
10805   as_ln_s='cp -p'
10806 fi
10807 rm -f conf$$ conf$$.exe conf$$.file
10808
10809 if mkdir -p . 2>/dev/null; then
10810   as_mkdir_p=:
10811 else
10812   test -d ./-p && rmdir ./-p
10813   as_mkdir_p=false
10814 fi
10815
10816 as_executable_p="test -f"
10817
10818 # Sed expression to map a string onto a valid CPP name.
10819 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10820
10821 # Sed expression to map a string onto a valid variable name.
10822 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10823
10824
10825 # IFS
10826 # We need space, tab and new line, in precisely that order.
10827 as_nl='
10828 '
10829 IFS="   $as_nl"
10830
10831 # CDPATH.
10832 $as_unset CDPATH
10833
10834 exec 6>&1
10835
10836 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10837 # report actual input values of CONFIG_FILES etc. instead of their
10838 # values after options handling.  Logging --version etc. is OK.
10839 exec 5>>config.log
10840 {
10841   echo
10842   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10843 ## Running $as_me. ##
10844 _ASBOX
10845 } >&5
10846 cat >&5 <<_CSEOF
10847
10848 This file was extended by GNU Fortran Runtime Library $as_me 0.2, which was
10849 generated by GNU Autoconf 2.59.  Invocation command line was
10850
10851   CONFIG_FILES    = $CONFIG_FILES
10852   CONFIG_HEADERS  = $CONFIG_HEADERS
10853   CONFIG_LINKS    = $CONFIG_LINKS
10854   CONFIG_COMMANDS = $CONFIG_COMMANDS
10855   $ $0 $@
10856
10857 _CSEOF
10858 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10859 echo >&5
10860 _ACEOF
10861
10862 # Files that config.status was made for.
10863 if test -n "$ac_config_files"; then
10864   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10865 fi
10866
10867 if test -n "$ac_config_headers"; then
10868   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10869 fi
10870
10871 if test -n "$ac_config_links"; then
10872   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10873 fi
10874
10875 if test -n "$ac_config_commands"; then
10876   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10877 fi
10878
10879 cat >>$CONFIG_STATUS <<\_ACEOF
10880
10881 ac_cs_usage="\
10882 \`$as_me' instantiates files from templates according to the
10883 current configuration.
10884
10885 Usage: $0 [OPTIONS] [FILE]...
10886
10887   -h, --help       print this help, then exit
10888   -V, --version    print version number, then exit
10889   -q, --quiet      do not print progress messages
10890   -d, --debug      don't remove temporary files
10891       --recheck    update $as_me by reconfiguring in the same conditions
10892   --file=FILE[:TEMPLATE]
10893                    instantiate the configuration file FILE
10894   --header=FILE[:TEMPLATE]
10895                    instantiate the configuration header FILE
10896
10897 Configuration files:
10898 $config_files
10899
10900 Configuration headers:
10901 $config_headers
10902
10903 Configuration commands:
10904 $config_commands
10905
10906 Report bugs to <bug-autoconf@gnu.org>."
10907 _ACEOF
10908
10909 cat >>$CONFIG_STATUS <<_ACEOF
10910 ac_cs_version="\\
10911 GNU Fortran Runtime Library config.status 0.2
10912 configured by $0, generated by GNU Autoconf 2.59,
10913   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10914
10915 Copyright (C) 2003 Free Software Foundation, Inc.
10916 This config.status script is free software; the Free Software Foundation
10917 gives unlimited permission to copy, distribute and modify it."
10918 srcdir=$srcdir
10919 INSTALL="$INSTALL"
10920 _ACEOF
10921
10922 cat >>$CONFIG_STATUS <<\_ACEOF
10923 # If no file are specified by the user, then we need to provide default
10924 # value.  By we need to know if files were specified by the user.
10925 ac_need_defaults=:
10926 while test $# != 0
10927 do
10928   case $1 in
10929   --*=*)
10930     ac_option=`expr "x$1" : 'x\([^=]*\)='`
10931     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10932     ac_shift=:
10933     ;;
10934   -*)
10935     ac_option=$1
10936     ac_optarg=$2
10937     ac_shift=shift
10938     ;;
10939   *) # This is not an option, so the user has probably given explicit
10940      # arguments.
10941      ac_option=$1
10942      ac_need_defaults=false;;
10943   esac
10944
10945   case $ac_option in
10946   # Handling of the options.
10947 _ACEOF
10948 cat >>$CONFIG_STATUS <<\_ACEOF
10949   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10950     ac_cs_recheck=: ;;
10951   --version | --vers* | -V )
10952     echo "$ac_cs_version"; exit 0 ;;
10953   --he | --h)
10954     # Conflict between --help and --header
10955     { { echo "$as_me:$LINENO: error: ambiguous option: $1
10956 Try \`$0 --help' for more information." >&5
10957 echo "$as_me: error: ambiguous option: $1
10958 Try \`$0 --help' for more information." >&2;}
10959    { (exit 1); exit 1; }; };;
10960   --help | --hel | -h )
10961     echo "$ac_cs_usage"; exit 0 ;;
10962   --debug | --d* | -d )
10963     debug=: ;;
10964   --file | --fil | --fi | --f )
10965     $ac_shift
10966     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10967     ac_need_defaults=false;;
10968   --header | --heade | --head | --hea )
10969     $ac_shift
10970     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10971     ac_need_defaults=false;;
10972   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10973   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10974     ac_cs_silent=: ;;
10975
10976   # This is an error.
10977   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10978 Try \`$0 --help' for more information." >&5
10979 echo "$as_me: error: unrecognized option: $1
10980 Try \`$0 --help' for more information." >&2;}
10981    { (exit 1); exit 1; }; } ;;
10982
10983   *) ac_config_targets="$ac_config_targets $1" ;;
10984
10985   esac
10986   shift
10987 done
10988
10989 ac_configure_extra_args=
10990
10991 if $ac_cs_silent; then
10992   exec 6>/dev/null
10993   ac_configure_extra_args="$ac_configure_extra_args --silent"
10994 fi
10995
10996 _ACEOF
10997 cat >>$CONFIG_STATUS <<_ACEOF
10998 if \$ac_cs_recheck; then
10999   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11000   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11001 fi
11002
11003 _ACEOF
11004
11005 cat >>$CONFIG_STATUS <<_ACEOF
11006 #
11007 # INIT-COMMANDS section.
11008 #
11009
11010
11011 srcdir="$srcdir"
11012 host="$host"
11013 target="$target"
11014 with_multisubdir="$with_multisubdir"
11015 with_multisrctop="$with_multisrctop"
11016 with_target_subdir="$with_target_subdir"
11017 ac_configure_args="${multilib_arg} ${ac_configure_args}"
11018 multi_basedir="$multi_basedir"
11019 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11020 CC="$CC"
11021
11022 _ACEOF
11023
11024
11025
11026 cat >>$CONFIG_STATUS <<\_ACEOF
11027 for ac_config_target in $ac_config_targets
11028 do
11029   case "$ac_config_target" in
11030   # Handling of arguments.
11031   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11032   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11033   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11034   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11035 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11036    { (exit 1); exit 1; }; };;
11037   esac
11038 done
11039
11040 # If the user did not use the arguments to specify the items to instantiate,
11041 # then the envvar interface is used.  Set only those that are not.
11042 # We use the long form for the default assignment because of an extremely
11043 # bizarre bug on SunOS 4.1.3.
11044 if $ac_need_defaults; then
11045   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11046   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11047   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11048 fi
11049
11050 # Have a temporary directory for convenience.  Make it in the build tree
11051 # simply because there is no reason to put it here, and in addition,
11052 # creating and moving files from /tmp can sometimes cause problems.
11053 # Create a temporary directory, and hook for its removal unless debugging.
11054 $debug ||
11055 {
11056   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11057   trap '{ (exit 1); exit 1; }' 1 2 13 15
11058 }
11059
11060 # Create a (secure) tmp directory for tmp files.
11061
11062 {
11063   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11064   test -n "$tmp" && test -d "$tmp"
11065 }  ||
11066 {
11067   tmp=./confstat$$-$RANDOM
11068   (umask 077 && mkdir $tmp)
11069 } ||
11070 {
11071    echo "$me: cannot create a temporary directory in ." >&2
11072    { (exit 1); exit 1; }
11073 }
11074
11075 _ACEOF
11076
11077 cat >>$CONFIG_STATUS <<_ACEOF
11078
11079 #
11080 # CONFIG_FILES section.
11081 #
11082
11083 # No need to generate the scripts if there are no CONFIG_FILES.
11084 # This happens for instance when ./config.status config.h
11085 if test -n "\$CONFIG_FILES"; then
11086   # Protect against being on the right side of a sed subst in config.status.
11087   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11088    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11089 s,@SHELL@,$SHELL,;t t
11090 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11091 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11092 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11093 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11094 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11095 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11096 s,@exec_prefix@,$exec_prefix,;t t
11097 s,@prefix@,$prefix,;t t
11098 s,@program_transform_name@,$program_transform_name,;t t
11099 s,@bindir@,$bindir,;t t
11100 s,@sbindir@,$sbindir,;t t
11101 s,@libexecdir@,$libexecdir,;t t
11102 s,@datadir@,$datadir,;t t
11103 s,@sysconfdir@,$sysconfdir,;t t
11104 s,@sharedstatedir@,$sharedstatedir,;t t
11105 s,@localstatedir@,$localstatedir,;t t
11106 s,@libdir@,$libdir,;t t
11107 s,@includedir@,$includedir,;t t
11108 s,@oldincludedir@,$oldincludedir,;t t
11109 s,@infodir@,$infodir,;t t
11110 s,@mandir@,$mandir,;t t
11111 s,@build_alias@,$build_alias,;t t
11112 s,@host_alias@,$host_alias,;t t
11113 s,@target_alias@,$target_alias,;t t
11114 s,@DEFS@,$DEFS,;t t
11115 s,@ECHO_C@,$ECHO_C,;t t
11116 s,@ECHO_N@,$ECHO_N,;t t
11117 s,@ECHO_T@,$ECHO_T,;t t
11118 s,@LIBS@,$LIBS,;t t
11119 s,@build@,$build,;t t
11120 s,@build_cpu@,$build_cpu,;t t
11121 s,@build_vendor@,$build_vendor,;t t
11122 s,@build_os@,$build_os,;t t
11123 s,@host@,$host,;t t
11124 s,@host_cpu@,$host_cpu,;t t
11125 s,@host_vendor@,$host_vendor,;t t
11126 s,@host_os@,$host_os,;t t
11127 s,@target@,$target,;t t
11128 s,@target_cpu@,$target_cpu,;t t
11129 s,@target_vendor@,$target_vendor,;t t
11130 s,@target_os@,$target_os,;t t
11131 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11132 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11133 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11134 s,@CYGPATH_W@,$CYGPATH_W,;t t
11135 s,@PACKAGE@,$PACKAGE,;t t
11136 s,@VERSION@,$VERSION,;t t
11137 s,@ACLOCAL@,$ACLOCAL,;t t
11138 s,@AUTOCONF@,$AUTOCONF,;t t
11139 s,@AUTOMAKE@,$AUTOMAKE,;t t
11140 s,@AUTOHEADER@,$AUTOHEADER,;t t
11141 s,@MAKEINFO@,$MAKEINFO,;t t
11142 s,@AMTAR@,$AMTAR,;t t
11143 s,@install_sh@,$install_sh,;t t
11144 s,@STRIP@,$STRIP,;t t
11145 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11146 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11147 s,@mkdir_p@,$mkdir_p,;t t
11148 s,@AWK@,$AWK,;t t
11149 s,@SET_MAKE@,$SET_MAKE,;t t
11150 s,@am__leading_dot@,$am__leading_dot,;t t
11151 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11152 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11153 s,@MAINT@,$MAINT,;t t
11154 s,@multi_basedir@,$multi_basedir,;t t
11155 s,@gcc_version@,$gcc_version,;t t
11156 s,@toolexecdir@,$toolexecdir,;t t
11157 s,@toolexeclibdir@,$toolexeclibdir,;t t
11158 s,@CC@,$CC,;t t
11159 s,@ac_ct_CC@,$ac_ct_CC,;t t
11160 s,@EXEEXT@,$EXEEXT,;t t
11161 s,@OBJEXT@,$OBJEXT,;t t
11162 s,@CFLAGS@,$CFLAGS,;t t
11163 s,@AS@,$AS,;t t
11164 s,@ac_ct_AS@,$ac_ct_AS,;t t
11165 s,@AR@,$AR,;t t
11166 s,@ac_ct_AR@,$ac_ct_AR,;t t
11167 s,@RANLIB@,$RANLIB,;t t
11168 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11169 s,@LN_S@,$LN_S,;t t
11170 s,@LIBTOOL@,$LIBTOOL,;t t
11171 s,@enable_shared@,$enable_shared,;t t
11172 s,@enable_static@,$enable_static,;t t
11173 s,@F77@,$F77,;t t
11174 s,@FFLAGS@,$FFLAGS,;t t
11175 s,@LDFLAGS@,$LDFLAGS,;t t
11176 s,@ac_ct_F77@,$ac_ct_F77,;t t
11177 s,@CPP@,$CPP,;t t
11178 s,@CPPFLAGS@,$CPPFLAGS,;t t
11179 s,@EGREP@,$EGREP,;t t
11180 s,@MATH_OBJ@,$MATH_OBJ,;t t
11181 s,@LIBOBJS@,$LIBOBJS,;t t
11182 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11183 CEOF
11184
11185 _ACEOF
11186
11187   cat >>$CONFIG_STATUS <<\_ACEOF
11188   # Split the substitutions into bite-sized pieces for seds with
11189   # small command number limits, like on Digital OSF/1 and HP-UX.
11190   ac_max_sed_lines=48
11191   ac_sed_frag=1 # Number of current file.
11192   ac_beg=1 # First line for current file.
11193   ac_end=$ac_max_sed_lines # Line after last line for current file.
11194   ac_more_lines=:
11195   ac_sed_cmds=
11196   while $ac_more_lines; do
11197     if test $ac_beg -gt 1; then
11198       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11199     else
11200       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11201     fi
11202     if test ! -s $tmp/subs.frag; then
11203       ac_more_lines=false
11204     else
11205       # The purpose of the label and of the branching condition is to
11206       # speed up the sed processing (if there are no `@' at all, there
11207       # is no need to browse any of the substitutions).
11208       # These are the two extra sed commands mentioned above.
11209       (echo ':t
11210   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11211       if test -z "$ac_sed_cmds"; then
11212         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11213       else
11214         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11215       fi
11216       ac_sed_frag=`expr $ac_sed_frag + 1`
11217       ac_beg=$ac_end
11218       ac_end=`expr $ac_end + $ac_max_sed_lines`
11219     fi
11220   done
11221   if test -z "$ac_sed_cmds"; then
11222     ac_sed_cmds=cat
11223   fi
11224 fi # test -n "$CONFIG_FILES"
11225
11226 _ACEOF
11227 cat >>$CONFIG_STATUS <<\_ACEOF
11228 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11229   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11230   case $ac_file in
11231   - | *:- | *:-:* ) # input from stdin
11232         cat >$tmp/stdin
11233         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11234         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11235   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11236         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11237   * )   ac_file_in=$ac_file.in ;;
11238   esac
11239
11240   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11241   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11242 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11243          X"$ac_file" : 'X\(//\)[^/]' \| \
11244          X"$ac_file" : 'X\(//\)$' \| \
11245          X"$ac_file" : 'X\(/\)' \| \
11246          .     : '\(.\)' 2>/dev/null ||
11247 echo X"$ac_file" |
11248     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11249           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11250           /^X\(\/\/\)$/{ s//\1/; q; }
11251           /^X\(\/\).*/{ s//\1/; q; }
11252           s/.*/./; q'`
11253   { if $as_mkdir_p; then
11254     mkdir -p "$ac_dir"
11255   else
11256     as_dir="$ac_dir"
11257     as_dirs=
11258     while test ! -d "$as_dir"; do
11259       as_dirs="$as_dir $as_dirs"
11260       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11261 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11262          X"$as_dir" : 'X\(//\)[^/]' \| \
11263          X"$as_dir" : 'X\(//\)$' \| \
11264          X"$as_dir" : 'X\(/\)' \| \
11265          .     : '\(.\)' 2>/dev/null ||
11266 echo X"$as_dir" |
11267     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11268           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11269           /^X\(\/\/\)$/{ s//\1/; q; }
11270           /^X\(\/\).*/{ s//\1/; q; }
11271           s/.*/./; q'`
11272     done
11273     test ! -n "$as_dirs" || mkdir $as_dirs
11274   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11275 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11276    { (exit 1); exit 1; }; }; }
11277
11278   ac_builddir=.
11279
11280 if test "$ac_dir" != .; then
11281   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11282   # A "../" for each directory in $ac_dir_suffix.
11283   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11284 else
11285   ac_dir_suffix= ac_top_builddir=
11286 fi
11287
11288 case $srcdir in
11289   .)  # No --srcdir option.  We are building in place.
11290     ac_srcdir=.
11291     if test -z "$ac_top_builddir"; then
11292        ac_top_srcdir=.
11293     else
11294        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11295     fi ;;
11296   [\\/]* | ?:[\\/]* )  # Absolute path.
11297     ac_srcdir=$srcdir$ac_dir_suffix;
11298     ac_top_srcdir=$srcdir ;;
11299   *) # Relative path.
11300     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11301     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11302 esac
11303
11304 # Do not use `cd foo && pwd` to compute absolute paths, because
11305 # the directories may not exist.
11306 case `pwd` in
11307 .) ac_abs_builddir="$ac_dir";;
11308 *)
11309   case "$ac_dir" in
11310   .) ac_abs_builddir=`pwd`;;
11311   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11312   *) ac_abs_builddir=`pwd`/"$ac_dir";;
11313   esac;;
11314 esac
11315 case $ac_abs_builddir in
11316 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11317 *)
11318   case ${ac_top_builddir}. in
11319   .) ac_abs_top_builddir=$ac_abs_builddir;;
11320   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11321   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11322   esac;;
11323 esac
11324 case $ac_abs_builddir in
11325 .) ac_abs_srcdir=$ac_srcdir;;
11326 *)
11327   case $ac_srcdir in
11328   .) ac_abs_srcdir=$ac_abs_builddir;;
11329   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11330   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11331   esac;;
11332 esac
11333 case $ac_abs_builddir in
11334 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11335 *)
11336   case $ac_top_srcdir in
11337   .) ac_abs_top_srcdir=$ac_abs_builddir;;
11338   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11339   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11340   esac;;
11341 esac
11342
11343
11344   case $INSTALL in
11345   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11346   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11347   esac
11348
11349   if test x"$ac_file" != x-; then
11350     { echo "$as_me:$LINENO: creating $ac_file" >&5
11351 echo "$as_me: creating $ac_file" >&6;}
11352     rm -f "$ac_file"
11353   fi
11354   # Let's still pretend it is `configure' which instantiates (i.e., don't
11355   # use $as_me), people would be surprised to read:
11356   #    /* config.h.  Generated by config.status.  */
11357   if test x"$ac_file" = x-; then
11358     configure_input=
11359   else
11360     configure_input="$ac_file.  "
11361   fi
11362   configure_input=$configure_input"Generated from `echo $ac_file_in |
11363                                      sed 's,.*/,,'` by configure."
11364
11365   # First look for the input files in the build tree, otherwise in the
11366   # src tree.
11367   ac_file_inputs=`IFS=:
11368     for f in $ac_file_in; do
11369       case $f in
11370       -) echo $tmp/stdin ;;
11371       [\\/$]*)
11372          # Absolute (can't be DOS-style, as IFS=:)
11373          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11374 echo "$as_me: error: cannot find input file: $f" >&2;}
11375    { (exit 1); exit 1; }; }
11376          echo "$f";;
11377       *) # Relative
11378          if test -f "$f"; then
11379            # Build tree
11380            echo "$f"
11381          elif test -f "$srcdir/$f"; then
11382            # Source tree
11383            echo "$srcdir/$f"
11384          else
11385            # /dev/null tree
11386            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11387 echo "$as_me: error: cannot find input file: $f" >&2;}
11388    { (exit 1); exit 1; }; }
11389          fi;;
11390       esac
11391     done` || { (exit 1); exit 1; }
11392 _ACEOF
11393 cat >>$CONFIG_STATUS <<_ACEOF
11394   sed "$ac_vpsub
11395 $extrasub
11396 _ACEOF
11397 cat >>$CONFIG_STATUS <<\_ACEOF
11398 :t
11399 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11400 s,@configure_input@,$configure_input,;t t
11401 s,@srcdir@,$ac_srcdir,;t t
11402 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11403 s,@top_srcdir@,$ac_top_srcdir,;t t
11404 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11405 s,@builddir@,$ac_builddir,;t t
11406 s,@abs_builddir@,$ac_abs_builddir,;t t
11407 s,@top_builddir@,$ac_top_builddir,;t t
11408 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11409 s,@INSTALL@,$ac_INSTALL,;t t
11410 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11411   rm -f $tmp/stdin
11412   if test x"$ac_file" != x-; then
11413     mv $tmp/out $ac_file
11414   else
11415     cat $tmp/out
11416     rm -f $tmp/out
11417   fi
11418
11419 done
11420 _ACEOF
11421 cat >>$CONFIG_STATUS <<\_ACEOF
11422
11423 #
11424 # CONFIG_HEADER section.
11425 #
11426
11427 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11428 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11429 #
11430 # ac_d sets the value in "#define NAME VALUE" lines.
11431 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
11432 ac_dB='[         ].*$,\1#\2'
11433 ac_dC=' '
11434 ac_dD=',;t'
11435 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11436 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
11437 ac_uB='$,\1#\2define\3'
11438 ac_uC=' '
11439 ac_uD=',;t'
11440
11441 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11442   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11443   case $ac_file in
11444   - | *:- | *:-:* ) # input from stdin
11445         cat >$tmp/stdin
11446         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11447         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11448   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11449         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11450   * )   ac_file_in=$ac_file.in ;;
11451   esac
11452
11453   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11454 echo "$as_me: creating $ac_file" >&6;}
11455
11456   # First look for the input files in the build tree, otherwise in the
11457   # src tree.
11458   ac_file_inputs=`IFS=:
11459     for f in $ac_file_in; do
11460       case $f in
11461       -) echo $tmp/stdin ;;
11462       [\\/$]*)
11463          # Absolute (can't be DOS-style, as IFS=:)
11464          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11465 echo "$as_me: error: cannot find input file: $f" >&2;}
11466    { (exit 1); exit 1; }; }
11467          # Do quote $f, to prevent DOS paths from being IFS'd.
11468          echo "$f";;
11469       *) # Relative
11470          if test -f "$f"; then
11471            # Build tree
11472            echo "$f"
11473          elif test -f "$srcdir/$f"; then
11474            # Source tree
11475            echo "$srcdir/$f"
11476          else
11477            # /dev/null tree
11478            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11479 echo "$as_me: error: cannot find input file: $f" >&2;}
11480    { (exit 1); exit 1; }; }
11481          fi;;
11482       esac
11483     done` || { (exit 1); exit 1; }
11484   # Remove the trailing spaces.
11485   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
11486
11487 _ACEOF
11488
11489 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11490 # `conftest.undefs', that substitutes the proper values into
11491 # config.h.in to produce config.h.  The first handles `#define'
11492 # templates, and the second `#undef' templates.
11493 # And first: Protect against being on the right side of a sed subst in
11494 # config.status.  Protect against being in an unquoted here document
11495 # in config.status.
11496 rm -f conftest.defines conftest.undefs
11497 # Using a here document instead of a string reduces the quoting nightmare.
11498 # Putting comments in sed scripts is not portable.
11499 #
11500 # `end' is used to avoid that the second main sed command (meant for
11501 # 0-ary CPP macros) applies to n-ary macro definitions.
11502 # See the Autoconf documentation for `clear'.
11503 cat >confdef2sed.sed <<\_ACEOF
11504 s/[\\&,]/\\&/g
11505 s,[\\$`],\\&,g
11506 t clear
11507 : clear
11508 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11509 t end
11510 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11511 : end
11512 _ACEOF
11513 # If some macros were called several times there might be several times
11514 # the same #defines, which is useless.  Nevertheless, we may not want to
11515 # sort them, since we want the *last* AC-DEFINE to be honored.
11516 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11517 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11518 rm -f confdef2sed.sed
11519
11520 # This sed command replaces #undef with comments.  This is necessary, for
11521 # example, in the case of _POSIX_SOURCE, which is predefined and required
11522 # on some systems where configure will not decide to define it.
11523 cat >>conftest.undefs <<\_ACEOF
11524 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11525 _ACEOF
11526
11527 # Break up conftest.defines because some shells have a limit on the size
11528 # of here documents, and old seds have small limits too (100 cmds).
11529 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11530 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11531 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11532 echo '  :' >>$CONFIG_STATUS
11533 rm -f conftest.tail
11534 while grep . conftest.defines >/dev/null
11535 do
11536   # Write a limited-size here document to $tmp/defines.sed.
11537   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11538   # Speed up: don't consider the non `#define' lines.
11539   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
11540   # Work around the forget-to-reset-the-flag bug.
11541   echo 't clr' >>$CONFIG_STATUS
11542   echo ': clr' >>$CONFIG_STATUS
11543   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11544   echo 'CEOF
11545   sed -f $tmp/defines.sed $tmp/in >$tmp/out
11546   rm -f $tmp/in
11547   mv $tmp/out $tmp/in
11548 ' >>$CONFIG_STATUS
11549   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11550   rm -f conftest.defines
11551   mv conftest.tail conftest.defines
11552 done
11553 rm -f conftest.defines
11554 echo '  fi # grep' >>$CONFIG_STATUS
11555 echo >>$CONFIG_STATUS
11556
11557 # Break up conftest.undefs because some shells have a limit on the size
11558 # of here documents, and old seds have small limits too (100 cmds).
11559 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
11560 rm -f conftest.tail
11561 while grep . conftest.undefs >/dev/null
11562 do
11563   # Write a limited-size here document to $tmp/undefs.sed.
11564   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11565   # Speed up: don't consider the non `#undef'
11566   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
11567   # Work around the forget-to-reset-the-flag bug.
11568   echo 't clr' >>$CONFIG_STATUS
11569   echo ': clr' >>$CONFIG_STATUS
11570   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11571   echo 'CEOF
11572   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11573   rm -f $tmp/in
11574   mv $tmp/out $tmp/in
11575 ' >>$CONFIG_STATUS
11576   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11577   rm -f conftest.undefs
11578   mv conftest.tail conftest.undefs
11579 done
11580 rm -f conftest.undefs
11581
11582 cat >>$CONFIG_STATUS <<\_ACEOF
11583   # Let's still pretend it is `configure' which instantiates (i.e., don't
11584   # use $as_me), people would be surprised to read:
11585   #    /* config.h.  Generated by config.status.  */
11586   if test x"$ac_file" = x-; then
11587     echo "/* Generated by configure.  */" >$tmp/config.h
11588   else
11589     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
11590   fi
11591   cat $tmp/in >>$tmp/config.h
11592   rm -f $tmp/in
11593   if test x"$ac_file" != x-; then
11594     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11595       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11596 echo "$as_me: $ac_file is unchanged" >&6;}
11597     else
11598       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11599 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11600          X"$ac_file" : 'X\(//\)[^/]' \| \
11601          X"$ac_file" : 'X\(//\)$' \| \
11602          X"$ac_file" : 'X\(/\)' \| \
11603          .     : '\(.\)' 2>/dev/null ||
11604 echo X"$ac_file" |
11605     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11606           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11607           /^X\(\/\/\)$/{ s//\1/; q; }
11608           /^X\(\/\).*/{ s//\1/; q; }
11609           s/.*/./; q'`
11610       { if $as_mkdir_p; then
11611     mkdir -p "$ac_dir"
11612   else
11613     as_dir="$ac_dir"
11614     as_dirs=
11615     while test ! -d "$as_dir"; do
11616       as_dirs="$as_dir $as_dirs"
11617       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11618 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11619          X"$as_dir" : 'X\(//\)[^/]' \| \
11620          X"$as_dir" : 'X\(//\)$' \| \
11621          X"$as_dir" : 'X\(/\)' \| \
11622          .     : '\(.\)' 2>/dev/null ||
11623 echo X"$as_dir" |
11624     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11625           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11626           /^X\(\/\/\)$/{ s//\1/; q; }
11627           /^X\(\/\).*/{ s//\1/; q; }
11628           s/.*/./; q'`
11629     done
11630     test ! -n "$as_dirs" || mkdir $as_dirs
11631   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11632 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11633    { (exit 1); exit 1; }; }; }
11634
11635       rm -f $ac_file
11636       mv $tmp/config.h $ac_file
11637     fi
11638   else
11639     cat $tmp/config.h
11640     rm -f $tmp/config.h
11641   fi
11642 # Compute $ac_file's index in $config_headers.
11643 _am_stamp_count=1
11644 for _am_header in $config_headers :; do
11645   case $_am_header in
11646     $ac_file | $ac_file:* )
11647       break ;;
11648     * )
11649       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11650   esac
11651 done
11652 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
11653 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11654          X$ac_file : 'X\(//\)[^/]' \| \
11655          X$ac_file : 'X\(//\)$' \| \
11656          X$ac_file : 'X\(/\)' \| \
11657          .     : '\(.\)' 2>/dev/null ||
11658 echo X$ac_file |
11659     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11660           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11661           /^X\(\/\/\)$/{ s//\1/; q; }
11662           /^X\(\/\).*/{ s//\1/; q; }
11663           s/.*/./; q'`/stamp-h$_am_stamp_count
11664 done
11665 _ACEOF
11666 cat >>$CONFIG_STATUS <<\_ACEOF
11667
11668 #
11669 # CONFIG_COMMANDS section.
11670 #
11671 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11672   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11673   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11674   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11675 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11676          X"$ac_dest" : 'X\(//\)[^/]' \| \
11677          X"$ac_dest" : 'X\(//\)$' \| \
11678          X"$ac_dest" : 'X\(/\)' \| \
11679          .     : '\(.\)' 2>/dev/null ||
11680 echo X"$ac_dest" |
11681     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11682           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11683           /^X\(\/\/\)$/{ s//\1/; q; }
11684           /^X\(\/\).*/{ s//\1/; q; }
11685           s/.*/./; q'`
11686   { if $as_mkdir_p; then
11687     mkdir -p "$ac_dir"
11688   else
11689     as_dir="$ac_dir"
11690     as_dirs=
11691     while test ! -d "$as_dir"; do
11692       as_dirs="$as_dir $as_dirs"
11693       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11694 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11695          X"$as_dir" : 'X\(//\)[^/]' \| \
11696          X"$as_dir" : 'X\(//\)$' \| \
11697          X"$as_dir" : 'X\(/\)' \| \
11698          .     : '\(.\)' 2>/dev/null ||
11699 echo X"$as_dir" |
11700     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11701           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11702           /^X\(\/\/\)$/{ s//\1/; q; }
11703           /^X\(\/\).*/{ s//\1/; q; }
11704           s/.*/./; q'`
11705     done
11706     test ! -n "$as_dirs" || mkdir $as_dirs
11707   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11708 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11709    { (exit 1); exit 1; }; }; }
11710
11711   ac_builddir=.
11712
11713 if test "$ac_dir" != .; then
11714   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11715   # A "../" for each directory in $ac_dir_suffix.
11716   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11717 else
11718   ac_dir_suffix= ac_top_builddir=
11719 fi
11720
11721 case $srcdir in
11722   .)  # No --srcdir option.  We are building in place.
11723     ac_srcdir=.
11724     if test -z "$ac_top_builddir"; then
11725        ac_top_srcdir=.
11726     else
11727        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11728     fi ;;
11729   [\\/]* | ?:[\\/]* )  # Absolute path.
11730     ac_srcdir=$srcdir$ac_dir_suffix;
11731     ac_top_srcdir=$srcdir ;;
11732   *) # Relative path.
11733     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11734     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11735 esac
11736
11737 # Do not use `cd foo && pwd` to compute absolute paths, because
11738 # the directories may not exist.
11739 case `pwd` in
11740 .) ac_abs_builddir="$ac_dir";;
11741 *)
11742   case "$ac_dir" in
11743   .) ac_abs_builddir=`pwd`;;
11744   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11745   *) ac_abs_builddir=`pwd`/"$ac_dir";;
11746   esac;;
11747 esac
11748 case $ac_abs_builddir in
11749 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11750 *)
11751   case ${ac_top_builddir}. in
11752   .) ac_abs_top_builddir=$ac_abs_builddir;;
11753   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11754   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11755   esac;;
11756 esac
11757 case $ac_abs_builddir in
11758 .) ac_abs_srcdir=$ac_srcdir;;
11759 *)
11760   case $ac_srcdir in
11761   .) ac_abs_srcdir=$ac_abs_builddir;;
11762   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11763   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11764   esac;;
11765 esac
11766 case $ac_abs_builddir in
11767 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11768 *)
11769   case $ac_top_srcdir in
11770   .) ac_abs_top_srcdir=$ac_abs_builddir;;
11771   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11772   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11773   esac;;
11774 esac
11775
11776
11777   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11778 echo "$as_me: executing $ac_dest commands" >&6;}
11779   case $ac_dest in
11780     default-1 )
11781 # Only add multilib support code if we just rebuilt the top-level
11782 # Makefile.
11783 case " $CONFIG_FILES " in
11784  *" Makefile "*)
11785    ac_file=Makefile . ${multi_basedir}/config-ml.in
11786    ;;
11787 esac ;;
11788   esac
11789 done
11790 _ACEOF
11791
11792 cat >>$CONFIG_STATUS <<\_ACEOF
11793
11794 { (exit 0); exit 0; }
11795 _ACEOF
11796 chmod +x $CONFIG_STATUS
11797 ac_clean_files=$ac_clean_files_save
11798
11799
11800 # configure is writing to config.log, and then calls config.status.
11801 # config.status does its own redirection, appending to config.log.
11802 # Unfortunately, on DOS this fails, as config.log is still kept open
11803 # by configure, so config.status won't be able to write to it; its
11804 # output is simply discarded.  So we exec the FD to /dev/null,
11805 # effectively closing config.log, so it can be properly (re)opened and
11806 # appended to by config.status.  When coming back to configure, we
11807 # need to make the FD available again.
11808 if test "$no_create" != yes; then
11809   ac_cs_success=:
11810   ac_config_status_args=
11811   test "$silent" = yes &&
11812     ac_config_status_args="$ac_config_status_args --quiet"
11813   exec 5>/dev/null
11814   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11815   exec 5>>config.log
11816   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11817   # would make configure fail if this is the last instruction.
11818   $ac_cs_success || { (exit 1); exit 1; }
11819 fi
11820