OSDN Git Service

099ab80a610a94d98acca5a5c367601732a8376a
[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 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 enable_shared enable_static CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE F77 FFLAGS ac_ct_F77 CPP EGREP MATH_OBJ AR RANLIB ac_ct_RANLIB build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S LIBTOOL 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_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
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_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_F77_set=${F77+set}
769 ac_env_F77_value=$F77
770 ac_cv_env_F77_set=${F77+set}
771 ac_cv_env_F77_value=$F77
772 ac_env_FFLAGS_set=${FFLAGS+set}
773 ac_env_FFLAGS_value=$FFLAGS
774 ac_cv_env_FFLAGS_set=${FFLAGS+set}
775 ac_cv_env_FFLAGS_value=$FFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
780
781 #
782 # Report the --help message.
783 #
784 if test "$ac_init_help" = "long"; then
785   # Omit some internal or obsolete options to make the list less imposing.
786   # This message is too long to be a string in the A/UX 3.1 sh.
787   cat <<_ACEOF
788 \`configure' configures GNU Fortran Runtime Library 0.2 to adapt to many kinds of systems.
789
790 Usage: $0 [OPTION]... [VAR=VALUE]...
791
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE.  See below for descriptions of some of the useful variables.
794
795 Defaults for the options are specified in brackets.
796
797 Configuration:
798   -h, --help              display this help and exit
799       --help=short        display options specific to this package
800       --help=recursive    display the short help of all the included packages
801   -V, --version           display version information and exit
802   -q, --quiet, --silent   do not print \`checking...' messages
803       --cache-file=FILE   cache test results in FILE [disabled]
804   -C, --config-cache      alias for \`--cache-file=config.cache'
805   -n, --no-create         do not create output files
806       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
807
808 _ACEOF
809
810   cat <<_ACEOF
811 Installation directories:
812   --prefix=PREFIX         install architecture-independent files in PREFIX
813                           [$ac_default_prefix]
814   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
815                           [PREFIX]
816
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
821
822 For better control, use the options below.
823
824 Fine tuning of the installation directories:
825   --bindir=DIR           user executables [EPREFIX/bin]
826   --sbindir=DIR          system admin executables [EPREFIX/sbin]
827   --libexecdir=DIR       program executables [EPREFIX/libexec]
828   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
829   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
830   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
831   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
832   --libdir=DIR           object code libraries [EPREFIX/lib]
833   --includedir=DIR       C header files [PREFIX/include]
834   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
835   --infodir=DIR          info documentation [PREFIX/info]
836   --mandir=DIR           man documentation [PREFIX/man]
837 _ACEOF
838
839   cat <<\_ACEOF
840
841 Program names:
842   --program-prefix=PREFIX            prepend PREFIX to installed program names
843   --program-suffix=SUFFIX            append SUFFIX to installed program names
844   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
845
846 System types:
847   --build=BUILD     configure for building on BUILD [guessed]
848   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
849 _ACEOF
850 fi
851
852 if test -n "$ac_init_help"; then
853   case $ac_init_help in
854      short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.2:";;
855    esac
856   cat <<\_ACEOF
857
858 Optional Features:
859   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
860   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
861   --enable-maintainer-mode  enable make rules and dependencies not useful
862                           (and sometimes confusing) to the casual installer
863   --disable-dependency-tracking  speeds up one-time build
864   --enable-dependency-tracking   do not reject slow dependency extractors
865   --enable-cmath          Include complex math functions
866   --enable-shared=PKGS  build shared libraries default=yes
867   --enable-static=PKGS  build static libraries default=yes
868   --enable-fast-install=PKGS  optimize for fast installation default=yes
869   --disable-libtool-lock  avoid locking (might break parallel builds)
870
871 Optional Packages:
872   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
873   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
874   --with-gnu-ld           assume the C compiler uses GNU ld default=no
875   --with-pic              try to use only PIC/non-PIC objects default=use both
876
877 Some influential environment variables:
878   CC          C compiler command
879   CFLAGS      C compiler flags
880   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
881               nonstandard directory <lib dir>
882   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
883               headers in a nonstandard directory <include dir>
884   F77         Fortran 77 compiler command
885   FFLAGS      Fortran 77 compiler flags
886   CPP         C preprocessor
887
888 Use these variables to override the choices made by `configure' or to help
889 it to find libraries and programs with nonstandard names/locations.
890
891 _ACEOF
892 fi
893
894 if test "$ac_init_help" = "recursive"; then
895   # If there are subdirs, report their specific --help.
896   ac_popdir=`pwd`
897   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
898     test -d $ac_dir || continue
899     ac_builddir=.
900
901 if test "$ac_dir" != .; then
902   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
903   # A "../" for each directory in $ac_dir_suffix.
904   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
905 else
906   ac_dir_suffix= ac_top_builddir=
907 fi
908
909 case $srcdir in
910   .)  # No --srcdir option.  We are building in place.
911     ac_srcdir=.
912     if test -z "$ac_top_builddir"; then
913        ac_top_srcdir=.
914     else
915        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
916     fi ;;
917   [\\/]* | ?:[\\/]* )  # Absolute path.
918     ac_srcdir=$srcdir$ac_dir_suffix;
919     ac_top_srcdir=$srcdir ;;
920   *) # Relative path.
921     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
922     ac_top_srcdir=$ac_top_builddir$srcdir ;;
923 esac
924
925 # Do not use `cd foo && pwd` to compute absolute paths, because
926 # the directories may not exist.
927 case `pwd` in
928 .) ac_abs_builddir="$ac_dir";;
929 *)
930   case "$ac_dir" in
931   .) ac_abs_builddir=`pwd`;;
932   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
933   *) ac_abs_builddir=`pwd`/"$ac_dir";;
934   esac;;
935 esac
936 case $ac_abs_builddir in
937 .) ac_abs_top_builddir=${ac_top_builddir}.;;
938 *)
939   case ${ac_top_builddir}. in
940   .) ac_abs_top_builddir=$ac_abs_builddir;;
941   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
942   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
943   esac;;
944 esac
945 case $ac_abs_builddir in
946 .) ac_abs_srcdir=$ac_srcdir;;
947 *)
948   case $ac_srcdir in
949   .) ac_abs_srcdir=$ac_abs_builddir;;
950   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
951   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
952   esac;;
953 esac
954 case $ac_abs_builddir in
955 .) ac_abs_top_srcdir=$ac_top_srcdir;;
956 *)
957   case $ac_top_srcdir in
958   .) ac_abs_top_srcdir=$ac_abs_builddir;;
959   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
960   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
961   esac;;
962 esac
963
964     cd $ac_dir
965     # Check for guested configure; otherwise get Cygnus style configure.
966     if test -f $ac_srcdir/configure.gnu; then
967       echo
968       $SHELL $ac_srcdir/configure.gnu  --help=recursive
969     elif test -f $ac_srcdir/configure; then
970       echo
971       $SHELL $ac_srcdir/configure  --help=recursive
972     elif test -f $ac_srcdir/configure.ac ||
973            test -f $ac_srcdir/configure.in; then
974       echo
975       $ac_configure --help
976     else
977       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
978     fi
979     cd "$ac_popdir"
980   done
981 fi
982
983 test -n "$ac_init_help" && exit 0
984 if $ac_init_version; then
985   cat <<\_ACEOF
986 GNU Fortran Runtime Library configure 0.2
987 generated by GNU Autoconf 2.59
988
989 Copyright (C) 2003 Free Software Foundation, Inc.
990 This configure script is free software; the Free Software Foundation
991 gives unlimited permission to copy, distribute and modify it.
992 _ACEOF
993   exit 0
994 fi
995 exec 5>config.log
996 cat >&5 <<_ACEOF
997 This file contains any messages produced by compilers while
998 running configure, to aid debugging if configure makes a mistake.
999
1000 It was created by GNU Fortran Runtime Library $as_me 0.2, which was
1001 generated by GNU Autoconf 2.59.  Invocation command line was
1002
1003   $ $0 $@
1004
1005 _ACEOF
1006 {
1007 cat <<_ASUNAME
1008 ## --------- ##
1009 ## Platform. ##
1010 ## --------- ##
1011
1012 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1013 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1014 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1015 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1016 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1017
1018 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1019 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1020
1021 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1022 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1023 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1024 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1025 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1026 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1027 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1028
1029 _ASUNAME
1030
1031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1032 for as_dir in $PATH
1033 do
1034   IFS=$as_save_IFS
1035   test -z "$as_dir" && as_dir=.
1036   echo "PATH: $as_dir"
1037 done
1038
1039 } >&5
1040
1041 cat >&5 <<_ACEOF
1042
1043
1044 ## ----------- ##
1045 ## Core tests. ##
1046 ## ----------- ##
1047
1048 _ACEOF
1049
1050
1051 # Keep a trace of the command line.
1052 # Strip out --no-create and --no-recursion so they do not pile up.
1053 # Strip out --silent because we don't want to record it for future runs.
1054 # Also quote any args containing shell meta-characters.
1055 # Make two passes to allow for proper duplicate-argument suppression.
1056 ac_configure_args=
1057 ac_configure_args0=
1058 ac_configure_args1=
1059 ac_sep=
1060 ac_must_keep_next=false
1061 for ac_pass in 1 2
1062 do
1063   for ac_arg
1064   do
1065     case $ac_arg in
1066     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1067     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1068     | -silent | --silent | --silen | --sile | --sil)
1069       continue ;;
1070     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1071       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1072     esac
1073     case $ac_pass in
1074     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1075     2)
1076       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1077       if test $ac_must_keep_next = true; then
1078         ac_must_keep_next=false # Got value, back to normal.
1079       else
1080         case $ac_arg in
1081           *=* | --config-cache | -C | -disable-* | --disable-* \
1082           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1083           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1084           | -with-* | --with-* | -without-* | --without-* | --x)
1085             case "$ac_configure_args0 " in
1086               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1087             esac
1088             ;;
1089           -* ) ac_must_keep_next=true ;;
1090         esac
1091       fi
1092       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1093       # Get rid of the leading space.
1094       ac_sep=" "
1095       ;;
1096     esac
1097   done
1098 done
1099 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1100 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1101
1102 # When interrupted or exit'd, cleanup temporary files, and complete
1103 # config.log.  We remove comments because anyway the quotes in there
1104 # would cause problems or look ugly.
1105 # WARNING: Be sure not to use single quotes in there, as some shells,
1106 # such as our DU 5.0 friend, will then `close' the trap.
1107 trap 'exit_status=$?
1108   # Save into config.log some information that might help in debugging.
1109   {
1110     echo
1111
1112     cat <<\_ASBOX
1113 ## ---------------- ##
1114 ## Cache variables. ##
1115 ## ---------------- ##
1116 _ASBOX
1117     echo
1118     # The following way of writing the cache mishandles newlines in values,
1119 {
1120   (set) 2>&1 |
1121     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1122     *ac_space=\ *)
1123       sed -n \
1124         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1125           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1126       ;;
1127     *)
1128       sed -n \
1129         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1130       ;;
1131     esac;
1132 }
1133     echo
1134
1135     cat <<\_ASBOX
1136 ## ----------------- ##
1137 ## Output variables. ##
1138 ## ----------------- ##
1139 _ASBOX
1140     echo
1141     for ac_var in $ac_subst_vars
1142     do
1143       eval ac_val=$`echo $ac_var`
1144       echo "$ac_var='"'"'$ac_val'"'"'"
1145     done | sort
1146     echo
1147
1148     if test -n "$ac_subst_files"; then
1149       cat <<\_ASBOX
1150 ## ------------- ##
1151 ## Output files. ##
1152 ## ------------- ##
1153 _ASBOX
1154       echo
1155       for ac_var in $ac_subst_files
1156       do
1157         eval ac_val=$`echo $ac_var`
1158         echo "$ac_var='"'"'$ac_val'"'"'"
1159       done | sort
1160       echo
1161     fi
1162
1163     if test -s confdefs.h; then
1164       cat <<\_ASBOX
1165 ## ----------- ##
1166 ## confdefs.h. ##
1167 ## ----------- ##
1168 _ASBOX
1169       echo
1170       sed "/^$/d" confdefs.h | sort
1171       echo
1172     fi
1173     test "$ac_signal" != 0 &&
1174       echo "$as_me: caught signal $ac_signal"
1175     echo "$as_me: exit $exit_status"
1176   } >&5
1177   rm -f core *.core &&
1178   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1179     exit $exit_status
1180      ' 0
1181 for ac_signal in 1 2 13 15; do
1182   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1183 done
1184 ac_signal=0
1185
1186 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1187 rm -rf conftest* confdefs.h
1188 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1189 echo >confdefs.h
1190
1191 # Predefined preprocessor variables.
1192
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_NAME "$PACKAGE_NAME"
1195 _ACEOF
1196
1197
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1200 _ACEOF
1201
1202
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1205 _ACEOF
1206
1207
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_STRING "$PACKAGE_STRING"
1210 _ACEOF
1211
1212
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1215 _ACEOF
1216
1217
1218 # Let the site file select an alternate cache file if it wants to.
1219 # Prefer explicitly selected file to automatically selected ones.
1220 if test -z "$CONFIG_SITE"; then
1221   if test "x$prefix" != xNONE; then
1222     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1223   else
1224     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1225   fi
1226 fi
1227 for ac_site_file in $CONFIG_SITE; do
1228   if test -r "$ac_site_file"; then
1229     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1230 echo "$as_me: loading site script $ac_site_file" >&6;}
1231     sed 's/^/| /' "$ac_site_file" >&5
1232     . "$ac_site_file"
1233   fi
1234 done
1235
1236 if test -r "$cache_file"; then
1237   # Some versions of bash will fail to source /dev/null (special
1238   # files actually), so we avoid doing that.
1239   if test -f "$cache_file"; then
1240     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1241 echo "$as_me: loading cache $cache_file" >&6;}
1242     case $cache_file in
1243       [\\/]* | ?:[\\/]* ) . $cache_file;;
1244       *)                      . ./$cache_file;;
1245     esac
1246   fi
1247 else
1248   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1249 echo "$as_me: creating cache $cache_file" >&6;}
1250   >$cache_file
1251 fi
1252
1253 # Check that the precious variables saved in the cache have kept the same
1254 # value.
1255 ac_cache_corrupted=false
1256 for ac_var in `(set) 2>&1 |
1257                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1258   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1259   eval ac_new_set=\$ac_env_${ac_var}_set
1260   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1261   eval ac_new_val="\$ac_env_${ac_var}_value"
1262   case $ac_old_set,$ac_new_set in
1263     set,)
1264       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1265 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1266       ac_cache_corrupted=: ;;
1267     ,set)
1268       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1269 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1270       ac_cache_corrupted=: ;;
1271     ,);;
1272     *)
1273       if test "x$ac_old_val" != "x$ac_new_val"; then
1274         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1275 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1276         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1277 echo "$as_me:   former value:  $ac_old_val" >&2;}
1278         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1279 echo "$as_me:   current value: $ac_new_val" >&2;}
1280         ac_cache_corrupted=:
1281       fi;;
1282   esac
1283   # Pass precious variables to config.status.
1284   if test "$ac_new_set" = set; then
1285     case $ac_new_val in
1286     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1287       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1288     *) ac_arg=$ac_var=$ac_new_val ;;
1289     esac
1290     case " $ac_configure_args " in
1291       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1292       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1293     esac
1294   fi
1295 done
1296 if $ac_cache_corrupted; then
1297   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1298 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1299   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1300 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1301    { (exit 1); exit 1; }; }
1302 fi
1303
1304 ac_ext=c
1305 ac_cpp='$CPP $CPPFLAGS'
1306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336 am__api_version="1.8"
1337 ac_aux_dir=
1338 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1339   if test -f $ac_dir/install-sh; then
1340     ac_aux_dir=$ac_dir
1341     ac_install_sh="$ac_aux_dir/install-sh -c"
1342     break
1343   elif test -f $ac_dir/install.sh; then
1344     ac_aux_dir=$ac_dir
1345     ac_install_sh="$ac_aux_dir/install.sh -c"
1346     break
1347   elif test -f $ac_dir/shtool; then
1348     ac_aux_dir=$ac_dir
1349     ac_install_sh="$ac_aux_dir/shtool install -c"
1350     break
1351   fi
1352 done
1353 if test -z "$ac_aux_dir"; then
1354   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1355 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1356    { (exit 1); exit 1; }; }
1357 fi
1358 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1359 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1360 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1361
1362 # Find a good install program.  We prefer a C program (faster),
1363 # so one script is as good as another.  But avoid the broken or
1364 # incompatible versions:
1365 # SysV /etc/install, /usr/sbin/install
1366 # SunOS /usr/etc/install
1367 # IRIX /sbin/install
1368 # AIX /bin/install
1369 # AmigaOS /C/install, which installs bootblocks on floppy discs
1370 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1371 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1372 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1373 # OS/2's system install, which has a completely different semantic
1374 # ./install, which can be erroneously created by make from ./install.sh.
1375 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1376 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1377 if test -z "$INSTALL"; then
1378 if test "${ac_cv_path_install+set}" = set; then
1379   echo $ECHO_N "(cached) $ECHO_C" >&6
1380 else
1381   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1382 for as_dir in $PATH
1383 do
1384   IFS=$as_save_IFS
1385   test -z "$as_dir" && as_dir=.
1386   # Account for people who put trailing slashes in PATH elements.
1387 case $as_dir/ in
1388   ./ | .// | /cC/* | \
1389   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1390   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1391   /usr/ucb/* ) ;;
1392   *)
1393     # OSF1 and SCO ODT 3.0 have their own names for install.
1394     # Don't use installbsd from OSF since it installs stuff as root
1395     # by default.
1396     for ac_prog in ginstall scoinst install; do
1397       for ac_exec_ext in '' $ac_executable_extensions; do
1398         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1399           if test $ac_prog = install &&
1400             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1401             # AIX install.  It has an incompatible calling convention.
1402             :
1403           elif test $ac_prog = install &&
1404             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1405             # program-specific install script used by HP pwplus--don't use.
1406             :
1407           else
1408             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1409             break 3
1410           fi
1411         fi
1412       done
1413     done
1414     ;;
1415 esac
1416 done
1417
1418
1419 fi
1420   if test "${ac_cv_path_install+set}" = set; then
1421     INSTALL=$ac_cv_path_install
1422   else
1423     # As a last resort, use the slow shell script.  We don't cache a
1424     # path for INSTALL within a source directory, because that will
1425     # break other packages using the cache if that directory is
1426     # removed, or if the path is relative.
1427     INSTALL=$ac_install_sh
1428   fi
1429 fi
1430 echo "$as_me:$LINENO: result: $INSTALL" >&5
1431 echo "${ECHO_T}$INSTALL" >&6
1432
1433 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1434 # It thinks the first close brace ends the variable substitution.
1435 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1436
1437 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1438
1439 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1440
1441 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1442 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1443 # Just in case
1444 sleep 1
1445 echo timestamp > conftest.file
1446 # Do `set' in a subshell so we don't clobber the current shell's
1447 # arguments.  Must try -L first in case configure is actually a
1448 # symlink; some systems play weird games with the mod time of symlinks
1449 # (eg FreeBSD returns the mod time of the symlink's containing
1450 # directory).
1451 if (
1452    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1453    if test "$*" = "X"; then
1454       # -L didn't work.
1455       set X `ls -t $srcdir/configure conftest.file`
1456    fi
1457    rm -f conftest.file
1458    if test "$*" != "X $srcdir/configure conftest.file" \
1459       && test "$*" != "X conftest.file $srcdir/configure"; then
1460
1461       # If neither matched, then we have a broken ls.  This can happen
1462       # if, for instance, CONFIG_SHELL is bash and it inherits a
1463       # broken ls alias from the environment.  This has actually
1464       # happened.  Such a system could not be considered "sane".
1465       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1466 alias in your environment" >&5
1467 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1468 alias in your environment" >&2;}
1469    { (exit 1); exit 1; }; }
1470    fi
1471
1472    test "$2" = conftest.file
1473    )
1474 then
1475    # Ok.
1476    :
1477 else
1478    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1479 Check your system clock" >&5
1480 echo "$as_me: error: newly created file is older than distributed files!
1481 Check your system clock" >&2;}
1482    { (exit 1); exit 1; }; }
1483 fi
1484 echo "$as_me:$LINENO: result: yes" >&5
1485 echo "${ECHO_T}yes" >&6
1486 test "$program_prefix" != NONE &&
1487   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1488 # Use a double $ so make ignores it.
1489 test "$program_suffix" != NONE &&
1490   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1491 # Double any \ or $.  echo might interpret backslashes.
1492 # By default was `s,x,x', remove it if useless.
1493 cat <<\_ACEOF >conftest.sed
1494 s/[\\$]/&&/g;s/;s,x,x,$//
1495 _ACEOF
1496 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1497 rm conftest.sed
1498
1499 # expand $ac_aux_dir to an absolute path
1500 am_aux_dir=`cd $ac_aux_dir && pwd`
1501
1502 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1503 # Use eval to expand $SHELL
1504 if eval "$MISSING --run true"; then
1505   am_missing_run="$MISSING --run "
1506 else
1507   am_missing_run=
1508   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1509 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1510 fi
1511
1512 if mkdir -p -- . 2>/dev/null; then
1513   # Keeping the `.' argument allows $(mkdir_p) to be used without
1514   # argument.  Indeed, we sometimes output rules like
1515   #   $(mkdir_p) $(somedir)
1516   # where $(somedir) is conditionally defined.
1517   # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1518   # expensive solution, as it forces Make to start a sub-shell.)
1519   mkdir_p='mkdir -p -- .'
1520 else
1521   # On NextStep and OpenStep, the `mkdir' command does not
1522   # recognize any option.  It will interpret all options as
1523   # directories to create, and then abort because `.' already
1524   # exists.
1525   for d in ./-p ./--;
1526   do
1527     test -d $d && rmdir $d
1528   done
1529   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1530   if test -f "$ac_aux_dir/mkinstalldirs"; then
1531     mkdir_p='$(mkinstalldirs)'
1532   else
1533     mkdir_p='$(install_sh) -d'
1534   fi
1535 fi
1536
1537 for ac_prog in gawk mawk nawk awk
1538 do
1539   # Extract the first word of "$ac_prog", so it can be a program name with args.
1540 set dummy $ac_prog; ac_word=$2
1541 echo "$as_me:$LINENO: checking for $ac_word" >&5
1542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1543 if test "${ac_cv_prog_AWK+set}" = set; then
1544   echo $ECHO_N "(cached) $ECHO_C" >&6
1545 else
1546   if test -n "$AWK"; then
1547   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1548 else
1549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1550 for as_dir in $PATH
1551 do
1552   IFS=$as_save_IFS
1553   test -z "$as_dir" && as_dir=.
1554   for ac_exec_ext in '' $ac_executable_extensions; do
1555   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1556     ac_cv_prog_AWK="$ac_prog"
1557     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1558     break 2
1559   fi
1560 done
1561 done
1562
1563 fi
1564 fi
1565 AWK=$ac_cv_prog_AWK
1566 if test -n "$AWK"; then
1567   echo "$as_me:$LINENO: result: $AWK" >&5
1568 echo "${ECHO_T}$AWK" >&6
1569 else
1570   echo "$as_me:$LINENO: result: no" >&5
1571 echo "${ECHO_T}no" >&6
1572 fi
1573
1574   test -n "$AWK" && break
1575 done
1576
1577 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1578 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1579 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1580 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1581   echo $ECHO_N "(cached) $ECHO_C" >&6
1582 else
1583   cat >conftest.make <<\_ACEOF
1584 all:
1585         @echo 'ac_maketemp="$(MAKE)"'
1586 _ACEOF
1587 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1588 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1589 if test -n "$ac_maketemp"; then
1590   eval ac_cv_prog_make_${ac_make}_set=yes
1591 else
1592   eval ac_cv_prog_make_${ac_make}_set=no
1593 fi
1594 rm -f conftest.make
1595 fi
1596 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1597   echo "$as_me:$LINENO: result: yes" >&5
1598 echo "${ECHO_T}yes" >&6
1599   SET_MAKE=
1600 else
1601   echo "$as_me:$LINENO: result: no" >&5
1602 echo "${ECHO_T}no" >&6
1603   SET_MAKE="MAKE=${MAKE-make}"
1604 fi
1605
1606 rm -rf .tst 2>/dev/null
1607 mkdir .tst 2>/dev/null
1608 if test -d .tst; then
1609   am__leading_dot=.
1610 else
1611   am__leading_dot=_
1612 fi
1613 rmdir .tst 2>/dev/null
1614
1615 # test to see if srcdir already configured
1616 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1617    test -f $srcdir/config.status; then
1618   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1619 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1620    { (exit 1); exit 1; }; }
1621 fi
1622
1623 # test whether we have cygpath
1624 if test -z "$CYGPATH_W"; then
1625   if (cygpath --version) >/dev/null 2>/dev/null; then
1626     CYGPATH_W='cygpath -w'
1627   else
1628     CYGPATH_W=echo
1629   fi
1630 fi
1631
1632
1633 # Define the identity of the package.
1634  PACKAGE='libgfortran'
1635  VERSION='0.2'
1636
1637
1638 cat >>confdefs.h <<_ACEOF
1639 #define PACKAGE "$PACKAGE"
1640 _ACEOF
1641
1642
1643 cat >>confdefs.h <<_ACEOF
1644 #define VERSION "$VERSION"
1645 _ACEOF
1646
1647 # Some tools Automake needs.
1648
1649 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1650
1651
1652 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1653
1654
1655 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1656
1657
1658 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1659
1660
1661 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1662
1663
1664 AMTAR=${AMTAR-"${am_missing_run}tar"}
1665
1666 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1667
1668 # Installed binaries are usually stripped using `strip' when the user
1669 # run `make install-strip'.  However `strip' might not be the right
1670 # tool to use in cross-compilation environments, therefore Automake
1671 # will honor the `STRIP' environment variable to overrule this program.
1672 if test "$cross_compiling" != no; then
1673   if test -n "$ac_tool_prefix"; then
1674   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1675 set dummy ${ac_tool_prefix}strip; ac_word=$2
1676 echo "$as_me:$LINENO: checking for $ac_word" >&5
1677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1678 if test "${ac_cv_prog_STRIP+set}" = set; then
1679   echo $ECHO_N "(cached) $ECHO_C" >&6
1680 else
1681   if test -n "$STRIP"; then
1682   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1683 else
1684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1685 for as_dir in $PATH
1686 do
1687   IFS=$as_save_IFS
1688   test -z "$as_dir" && as_dir=.
1689   for ac_exec_ext in '' $ac_executable_extensions; do
1690   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1691     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1692     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1693     break 2
1694   fi
1695 done
1696 done
1697
1698 fi
1699 fi
1700 STRIP=$ac_cv_prog_STRIP
1701 if test -n "$STRIP"; then
1702   echo "$as_me:$LINENO: result: $STRIP" >&5
1703 echo "${ECHO_T}$STRIP" >&6
1704 else
1705   echo "$as_me:$LINENO: result: no" >&5
1706 echo "${ECHO_T}no" >&6
1707 fi
1708
1709 fi
1710 if test -z "$ac_cv_prog_STRIP"; then
1711   ac_ct_STRIP=$STRIP
1712   # Extract the first word of "strip", so it can be a program name with args.
1713 set dummy strip; ac_word=$2
1714 echo "$as_me:$LINENO: checking for $ac_word" >&5
1715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1716 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1717   echo $ECHO_N "(cached) $ECHO_C" >&6
1718 else
1719   if test -n "$ac_ct_STRIP"; then
1720   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1721 else
1722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1723 for as_dir in $PATH
1724 do
1725   IFS=$as_save_IFS
1726   test -z "$as_dir" && as_dir=.
1727   for ac_exec_ext in '' $ac_executable_extensions; do
1728   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1729     ac_cv_prog_ac_ct_STRIP="strip"
1730     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1731     break 2
1732   fi
1733 done
1734 done
1735
1736   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1737 fi
1738 fi
1739 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1740 if test -n "$ac_ct_STRIP"; then
1741   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1742 echo "${ECHO_T}$ac_ct_STRIP" >&6
1743 else
1744   echo "$as_me:$LINENO: result: no" >&5
1745 echo "${ECHO_T}no" >&6
1746 fi
1747
1748   STRIP=$ac_ct_STRIP
1749 else
1750   STRIP="$ac_cv_prog_STRIP"
1751 fi
1752
1753 fi
1754 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1755
1756 # We need awk for the "check" target.  The system "awk" is bad on
1757 # some platforms.
1758
1759
1760
1761           ac_config_headers="$ac_config_headers config.h"
1762
1763 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1764 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1765     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1766 if test "${enable_maintainer_mode+set}" = set; then
1767   enableval="$enable_maintainer_mode"
1768   USE_MAINTAINER_MODE=$enableval
1769 else
1770   USE_MAINTAINER_MODE=no
1771 fi;
1772   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1773 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1774
1775
1776 if test $USE_MAINTAINER_MODE = yes; then
1777   MAINTAINER_MODE_TRUE=
1778   MAINTAINER_MODE_FALSE='#'
1779 else
1780   MAINTAINER_MODE_TRUE='#'
1781   MAINTAINER_MODE_FALSE=
1782 fi
1783
1784   MAINT=$MAINTAINER_MODE_TRUE
1785
1786
1787
1788
1789
1790
1791 # check for compiler
1792 ac_ext=c
1793 ac_cpp='$CPP $CPPFLAGS'
1794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1797 if test -n "$ac_tool_prefix"; then
1798   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1799 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1800 echo "$as_me:$LINENO: checking for $ac_word" >&5
1801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1802 if test "${ac_cv_prog_CC+set}" = set; then
1803   echo $ECHO_N "(cached) $ECHO_C" >&6
1804 else
1805   if test -n "$CC"; then
1806   ac_cv_prog_CC="$CC" # Let the user override the test.
1807 else
1808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1809 for as_dir in $PATH
1810 do
1811   IFS=$as_save_IFS
1812   test -z "$as_dir" && as_dir=.
1813   for ac_exec_ext in '' $ac_executable_extensions; do
1814   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1815     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1816     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1817     break 2
1818   fi
1819 done
1820 done
1821
1822 fi
1823 fi
1824 CC=$ac_cv_prog_CC
1825 if test -n "$CC"; then
1826   echo "$as_me:$LINENO: result: $CC" >&5
1827 echo "${ECHO_T}$CC" >&6
1828 else
1829   echo "$as_me:$LINENO: result: no" >&5
1830 echo "${ECHO_T}no" >&6
1831 fi
1832
1833 fi
1834 if test -z "$ac_cv_prog_CC"; then
1835   ac_ct_CC=$CC
1836   # Extract the first word of "gcc", so it can be a program name with args.
1837 set dummy gcc; ac_word=$2
1838 echo "$as_me:$LINENO: checking for $ac_word" >&5
1839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1840 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1841   echo $ECHO_N "(cached) $ECHO_C" >&6
1842 else
1843   if test -n "$ac_ct_CC"; then
1844   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1845 else
1846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1847 for as_dir in $PATH
1848 do
1849   IFS=$as_save_IFS
1850   test -z "$as_dir" && as_dir=.
1851   for ac_exec_ext in '' $ac_executable_extensions; do
1852   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1853     ac_cv_prog_ac_ct_CC="gcc"
1854     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1855     break 2
1856   fi
1857 done
1858 done
1859
1860 fi
1861 fi
1862 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1863 if test -n "$ac_ct_CC"; then
1864   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1865 echo "${ECHO_T}$ac_ct_CC" >&6
1866 else
1867   echo "$as_me:$LINENO: result: no" >&5
1868 echo "${ECHO_T}no" >&6
1869 fi
1870
1871   CC=$ac_ct_CC
1872 else
1873   CC="$ac_cv_prog_CC"
1874 fi
1875
1876 if test -z "$CC"; then
1877   if test -n "$ac_tool_prefix"; then
1878   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1879 set dummy ${ac_tool_prefix}cc; ac_word=$2
1880 echo "$as_me:$LINENO: checking for $ac_word" >&5
1881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1882 if test "${ac_cv_prog_CC+set}" = set; then
1883   echo $ECHO_N "(cached) $ECHO_C" >&6
1884 else
1885   if test -n "$CC"; then
1886   ac_cv_prog_CC="$CC" # Let the user override the test.
1887 else
1888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1889 for as_dir in $PATH
1890 do
1891   IFS=$as_save_IFS
1892   test -z "$as_dir" && as_dir=.
1893   for ac_exec_ext in '' $ac_executable_extensions; do
1894   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1895     ac_cv_prog_CC="${ac_tool_prefix}cc"
1896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1897     break 2
1898   fi
1899 done
1900 done
1901
1902 fi
1903 fi
1904 CC=$ac_cv_prog_CC
1905 if test -n "$CC"; then
1906   echo "$as_me:$LINENO: result: $CC" >&5
1907 echo "${ECHO_T}$CC" >&6
1908 else
1909   echo "$as_me:$LINENO: result: no" >&5
1910 echo "${ECHO_T}no" >&6
1911 fi
1912
1913 fi
1914 if test -z "$ac_cv_prog_CC"; then
1915   ac_ct_CC=$CC
1916   # Extract the first word of "cc", so it can be a program name with args.
1917 set dummy cc; ac_word=$2
1918 echo "$as_me:$LINENO: checking for $ac_word" >&5
1919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1920 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1921   echo $ECHO_N "(cached) $ECHO_C" >&6
1922 else
1923   if test -n "$ac_ct_CC"; then
1924   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1925 else
1926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1927 for as_dir in $PATH
1928 do
1929   IFS=$as_save_IFS
1930   test -z "$as_dir" && as_dir=.
1931   for ac_exec_ext in '' $ac_executable_extensions; do
1932   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1933     ac_cv_prog_ac_ct_CC="cc"
1934     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1935     break 2
1936   fi
1937 done
1938 done
1939
1940 fi
1941 fi
1942 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1943 if test -n "$ac_ct_CC"; then
1944   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1945 echo "${ECHO_T}$ac_ct_CC" >&6
1946 else
1947   echo "$as_me:$LINENO: result: no" >&5
1948 echo "${ECHO_T}no" >&6
1949 fi
1950
1951   CC=$ac_ct_CC
1952 else
1953   CC="$ac_cv_prog_CC"
1954 fi
1955
1956 fi
1957 if test -z "$CC"; then
1958   # Extract the first word of "cc", so it can be a program name with args.
1959 set dummy cc; ac_word=$2
1960 echo "$as_me:$LINENO: checking for $ac_word" >&5
1961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1962 if test "${ac_cv_prog_CC+set}" = set; then
1963   echo $ECHO_N "(cached) $ECHO_C" >&6
1964 else
1965   if test -n "$CC"; then
1966   ac_cv_prog_CC="$CC" # Let the user override the test.
1967 else
1968   ac_prog_rejected=no
1969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1970 for as_dir in $PATH
1971 do
1972   IFS=$as_save_IFS
1973   test -z "$as_dir" && as_dir=.
1974   for ac_exec_ext in '' $ac_executable_extensions; do
1975   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1976     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1977        ac_prog_rejected=yes
1978        continue
1979      fi
1980     ac_cv_prog_CC="cc"
1981     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1982     break 2
1983   fi
1984 done
1985 done
1986
1987 if test $ac_prog_rejected = yes; then
1988   # We found a bogon in the path, so make sure we never use it.
1989   set dummy $ac_cv_prog_CC
1990   shift
1991   if test $# != 0; then
1992     # We chose a different compiler from the bogus one.
1993     # However, it has the same basename, so the bogon will be chosen
1994     # first if we set CC to just the basename; use the full file name.
1995     shift
1996     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1997   fi
1998 fi
1999 fi
2000 fi
2001 CC=$ac_cv_prog_CC
2002 if test -n "$CC"; then
2003   echo "$as_me:$LINENO: result: $CC" >&5
2004 echo "${ECHO_T}$CC" >&6
2005 else
2006   echo "$as_me:$LINENO: result: no" >&5
2007 echo "${ECHO_T}no" >&6
2008 fi
2009
2010 fi
2011 if test -z "$CC"; then
2012   if test -n "$ac_tool_prefix"; then
2013   for ac_prog in cl
2014   do
2015     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2016 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2017 echo "$as_me:$LINENO: checking for $ac_word" >&5
2018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2019 if test "${ac_cv_prog_CC+set}" = set; then
2020   echo $ECHO_N "(cached) $ECHO_C" >&6
2021 else
2022   if test -n "$CC"; then
2023   ac_cv_prog_CC="$CC" # Let the user override the test.
2024 else
2025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2026 for as_dir in $PATH
2027 do
2028   IFS=$as_save_IFS
2029   test -z "$as_dir" && as_dir=.
2030   for ac_exec_ext in '' $ac_executable_extensions; do
2031   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2032     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2033     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2034     break 2
2035   fi
2036 done
2037 done
2038
2039 fi
2040 fi
2041 CC=$ac_cv_prog_CC
2042 if test -n "$CC"; then
2043   echo "$as_me:$LINENO: result: $CC" >&5
2044 echo "${ECHO_T}$CC" >&6
2045 else
2046   echo "$as_me:$LINENO: result: no" >&5
2047 echo "${ECHO_T}no" >&6
2048 fi
2049
2050     test -n "$CC" && break
2051   done
2052 fi
2053 if test -z "$CC"; then
2054   ac_ct_CC=$CC
2055   for ac_prog in cl
2056 do
2057   # Extract the first word of "$ac_prog", so it can be a program name with args.
2058 set dummy $ac_prog; ac_word=$2
2059 echo "$as_me:$LINENO: checking for $ac_word" >&5
2060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2061 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2062   echo $ECHO_N "(cached) $ECHO_C" >&6
2063 else
2064   if test -n "$ac_ct_CC"; then
2065   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2066 else
2067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2068 for as_dir in $PATH
2069 do
2070   IFS=$as_save_IFS
2071   test -z "$as_dir" && as_dir=.
2072   for ac_exec_ext in '' $ac_executable_extensions; do
2073   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2074     ac_cv_prog_ac_ct_CC="$ac_prog"
2075     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2076     break 2
2077   fi
2078 done
2079 done
2080
2081 fi
2082 fi
2083 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2084 if test -n "$ac_ct_CC"; then
2085   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2086 echo "${ECHO_T}$ac_ct_CC" >&6
2087 else
2088   echo "$as_me:$LINENO: result: no" >&5
2089 echo "${ECHO_T}no" >&6
2090 fi
2091
2092   test -n "$ac_ct_CC" && break
2093 done
2094
2095   CC=$ac_ct_CC
2096 fi
2097
2098 fi
2099
2100
2101 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2102 See \`config.log' for more details." >&5
2103 echo "$as_me: error: no acceptable C compiler found in \$PATH
2104 See \`config.log' for more details." >&2;}
2105    { (exit 1); exit 1; }; }
2106
2107 # Provide some information about the compiler.
2108 echo "$as_me:$LINENO:" \
2109      "checking for C compiler version" >&5
2110 ac_compiler=`set X $ac_compile; echo $2`
2111 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2112   (eval $ac_compiler --version </dev/null >&5) 2>&5
2113   ac_status=$?
2114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115   (exit $ac_status); }
2116 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2117   (eval $ac_compiler -v </dev/null >&5) 2>&5
2118   ac_status=$?
2119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120   (exit $ac_status); }
2121 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2122   (eval $ac_compiler -V </dev/null >&5) 2>&5
2123   ac_status=$?
2124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125   (exit $ac_status); }
2126
2127 cat >conftest.$ac_ext <<_ACEOF
2128 /* confdefs.h.  */
2129 _ACEOF
2130 cat confdefs.h >>conftest.$ac_ext
2131 cat >>conftest.$ac_ext <<_ACEOF
2132 /* end confdefs.h.  */
2133
2134 int
2135 main ()
2136 {
2137
2138   ;
2139   return 0;
2140 }
2141 _ACEOF
2142 ac_clean_files_save=$ac_clean_files
2143 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2144 # Try to create an executable without -o first, disregard a.out.
2145 # It will help us diagnose broken compilers, and finding out an intuition
2146 # of exeext.
2147 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2148 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2149 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2150 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2151   (eval $ac_link_default) 2>&5
2152   ac_status=$?
2153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154   (exit $ac_status); }; then
2155   # Find the output, starting from the most likely.  This scheme is
2156 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2157 # resort.
2158
2159 # Be careful to initialize this variable, since it used to be cached.
2160 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2161 ac_cv_exeext=
2162 # b.out is created by i960 compilers.
2163 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2164 do
2165   test -f "$ac_file" || continue
2166   case $ac_file in
2167     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2168         ;;
2169     conftest.$ac_ext )
2170         # This is the source file.
2171         ;;
2172     [ab].out )
2173         # We found the default executable, but exeext='' is most
2174         # certainly right.
2175         break;;
2176     *.* )
2177         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2178         # FIXME: I believe we export ac_cv_exeext for Libtool,
2179         # but it would be cool to find out if it's true.  Does anybody
2180         # maintain Libtool? --akim.
2181         export ac_cv_exeext
2182         break;;
2183     * )
2184         break;;
2185   esac
2186 done
2187 else
2188   echo "$as_me: failed program was:" >&5
2189 sed 's/^/| /' conftest.$ac_ext >&5
2190
2191 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2192 See \`config.log' for more details." >&5
2193 echo "$as_me: error: C compiler cannot create executables
2194 See \`config.log' for more details." >&2;}
2195    { (exit 77); exit 77; }; }
2196 fi
2197
2198 ac_exeext=$ac_cv_exeext
2199 echo "$as_me:$LINENO: result: $ac_file" >&5
2200 echo "${ECHO_T}$ac_file" >&6
2201
2202 # Check the compiler produces executables we can run.  If not, either
2203 # the compiler is broken, or we cross compile.
2204 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2205 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2206 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2207 # If not cross compiling, check that we can run a simple program.
2208 if test "$cross_compiling" != yes; then
2209   if { ac_try='./$ac_file'
2210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2211   (eval $ac_try) 2>&5
2212   ac_status=$?
2213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214   (exit $ac_status); }; }; then
2215     cross_compiling=no
2216   else
2217     if test "$cross_compiling" = maybe; then
2218         cross_compiling=yes
2219     else
2220         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2221 If you meant to cross compile, use \`--host'.
2222 See \`config.log' for more details." >&5
2223 echo "$as_me: error: cannot run C compiled programs.
2224 If you meant to cross compile, use \`--host'.
2225 See \`config.log' for more details." >&2;}
2226    { (exit 1); exit 1; }; }
2227     fi
2228   fi
2229 fi
2230 echo "$as_me:$LINENO: result: yes" >&5
2231 echo "${ECHO_T}yes" >&6
2232
2233 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2234 ac_clean_files=$ac_clean_files_save
2235 # Check the compiler produces executables we can run.  If not, either
2236 # the compiler is broken, or we cross compile.
2237 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2238 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2239 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2240 echo "${ECHO_T}$cross_compiling" >&6
2241
2242 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2243 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2245   (eval $ac_link) 2>&5
2246   ac_status=$?
2247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248   (exit $ac_status); }; then
2249   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2250 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2251 # work properly (i.e., refer to `conftest.exe'), while it won't with
2252 # `rm'.
2253 for ac_file in conftest.exe conftest conftest.*; do
2254   test -f "$ac_file" || continue
2255   case $ac_file in
2256     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2257     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2258           export ac_cv_exeext
2259           break;;
2260     * ) break;;
2261   esac
2262 done
2263 else
2264   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2265 See \`config.log' for more details." >&5
2266 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2267 See \`config.log' for more details." >&2;}
2268    { (exit 1); exit 1; }; }
2269 fi
2270
2271 rm -f conftest$ac_cv_exeext
2272 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2273 echo "${ECHO_T}$ac_cv_exeext" >&6
2274
2275 rm -f conftest.$ac_ext
2276 EXEEXT=$ac_cv_exeext
2277 ac_exeext=$EXEEXT
2278 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2279 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2280 if test "${ac_cv_objext+set}" = set; then
2281   echo $ECHO_N "(cached) $ECHO_C" >&6
2282 else
2283   cat >conftest.$ac_ext <<_ACEOF
2284 /* confdefs.h.  */
2285 _ACEOF
2286 cat confdefs.h >>conftest.$ac_ext
2287 cat >>conftest.$ac_ext <<_ACEOF
2288 /* end confdefs.h.  */
2289
2290 int
2291 main ()
2292 {
2293
2294   ;
2295   return 0;
2296 }
2297 _ACEOF
2298 rm -f conftest.o conftest.obj
2299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2300   (eval $ac_compile) 2>&5
2301   ac_status=$?
2302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303   (exit $ac_status); }; then
2304   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2305   case $ac_file in
2306     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2307     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2308        break;;
2309   esac
2310 done
2311 else
2312   echo "$as_me: failed program was:" >&5
2313 sed 's/^/| /' conftest.$ac_ext >&5
2314
2315 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2316 See \`config.log' for more details." >&5
2317 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2318 See \`config.log' for more details." >&2;}
2319    { (exit 1); exit 1; }; }
2320 fi
2321
2322 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2323 fi
2324 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2325 echo "${ECHO_T}$ac_cv_objext" >&6
2326 OBJEXT=$ac_cv_objext
2327 ac_objext=$OBJEXT
2328 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2329 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2330 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2331   echo $ECHO_N "(cached) $ECHO_C" >&6
2332 else
2333   cat >conftest.$ac_ext <<_ACEOF
2334 /* confdefs.h.  */
2335 _ACEOF
2336 cat confdefs.h >>conftest.$ac_ext
2337 cat >>conftest.$ac_ext <<_ACEOF
2338 /* end confdefs.h.  */
2339
2340 int
2341 main ()
2342 {
2343 #ifndef __GNUC__
2344        choke me
2345 #endif
2346
2347   ;
2348   return 0;
2349 }
2350 _ACEOF
2351 rm -f conftest.$ac_objext
2352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2353   (eval $ac_compile) 2>conftest.er1
2354   ac_status=$?
2355   grep -v '^ *+' conftest.er1 >conftest.err
2356   rm -f conftest.er1
2357   cat conftest.err >&5
2358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359   (exit $ac_status); } &&
2360          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362   (eval $ac_try) 2>&5
2363   ac_status=$?
2364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365   (exit $ac_status); }; } &&
2366          { ac_try='test -s conftest.$ac_objext'
2367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2368   (eval $ac_try) 2>&5
2369   ac_status=$?
2370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371   (exit $ac_status); }; }; then
2372   ac_compiler_gnu=yes
2373 else
2374   echo "$as_me: failed program was:" >&5
2375 sed 's/^/| /' conftest.$ac_ext >&5
2376
2377 ac_compiler_gnu=no
2378 fi
2379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2380 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2381
2382 fi
2383 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2384 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2385 GCC=`test $ac_compiler_gnu = yes && echo yes`
2386 ac_test_CFLAGS=${CFLAGS+set}
2387 ac_save_CFLAGS=$CFLAGS
2388 CFLAGS="-g"
2389 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2390 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2391 if test "${ac_cv_prog_cc_g+set}" = set; then
2392   echo $ECHO_N "(cached) $ECHO_C" >&6
2393 else
2394   cat >conftest.$ac_ext <<_ACEOF
2395 /* confdefs.h.  */
2396 _ACEOF
2397 cat confdefs.h >>conftest.$ac_ext
2398 cat >>conftest.$ac_ext <<_ACEOF
2399 /* end confdefs.h.  */
2400
2401 int
2402 main ()
2403 {
2404
2405   ;
2406   return 0;
2407 }
2408 _ACEOF
2409 rm -f conftest.$ac_objext
2410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2411   (eval $ac_compile) 2>conftest.er1
2412   ac_status=$?
2413   grep -v '^ *+' conftest.er1 >conftest.err
2414   rm -f conftest.er1
2415   cat conftest.err >&5
2416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417   (exit $ac_status); } &&
2418          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420   (eval $ac_try) 2>&5
2421   ac_status=$?
2422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423   (exit $ac_status); }; } &&
2424          { ac_try='test -s conftest.$ac_objext'
2425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426   (eval $ac_try) 2>&5
2427   ac_status=$?
2428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429   (exit $ac_status); }; }; then
2430   ac_cv_prog_cc_g=yes
2431 else
2432   echo "$as_me: failed program was:" >&5
2433 sed 's/^/| /' conftest.$ac_ext >&5
2434
2435 ac_cv_prog_cc_g=no
2436 fi
2437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2438 fi
2439 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2440 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2441 if test "$ac_test_CFLAGS" = set; then
2442   CFLAGS=$ac_save_CFLAGS
2443 elif test $ac_cv_prog_cc_g = yes; then
2444   if test "$GCC" = yes; then
2445     CFLAGS="-g -O2"
2446   else
2447     CFLAGS="-g"
2448   fi
2449 else
2450   if test "$GCC" = yes; then
2451     CFLAGS="-O2"
2452   else
2453     CFLAGS=
2454   fi
2455 fi
2456 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2457 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2458 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2459   echo $ECHO_N "(cached) $ECHO_C" >&6
2460 else
2461   ac_cv_prog_cc_stdc=no
2462 ac_save_CC=$CC
2463 cat >conftest.$ac_ext <<_ACEOF
2464 /* confdefs.h.  */
2465 _ACEOF
2466 cat confdefs.h >>conftest.$ac_ext
2467 cat >>conftest.$ac_ext <<_ACEOF
2468 /* end confdefs.h.  */
2469 #include <stdarg.h>
2470 #include <stdio.h>
2471 #include <sys/types.h>
2472 #include <sys/stat.h>
2473 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2474 struct buf { int x; };
2475 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2476 static char *e (p, i)
2477      char **p;
2478      int i;
2479 {
2480   return p[i];
2481 }
2482 static char *f (char * (*g) (char **, int), char **p, ...)
2483 {
2484   char *s;
2485   va_list v;
2486   va_start (v,p);
2487   s = g (p, va_arg (v,int));
2488   va_end (v);
2489   return s;
2490 }
2491
2492 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2493    function prototypes and stuff, but not '\xHH' hex character constants.
2494    These don't provoke an error unfortunately, instead are silently treated
2495    as 'x'.  The following induces an error, until -std1 is added to get
2496    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2497    array size at least.  It's necessary to write '\x00'==0 to get something
2498    that's true only with -std1.  */
2499 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2500
2501 int test (int i, double x);
2502 struct s1 {int (*f) (int a);};
2503 struct s2 {int (*f) (double a);};
2504 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2505 int argc;
2506 char **argv;
2507 int
2508 main ()
2509 {
2510 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2511   ;
2512   return 0;
2513 }
2514 _ACEOF
2515 # Don't try gcc -ansi; that turns off useful extensions and
2516 # breaks some systems' header files.
2517 # AIX                   -qlanglvl=ansi
2518 # Ultrix and OSF/1      -std1
2519 # HP-UX 10.20 and later -Ae
2520 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2521 # SVR4                  -Xc -D__EXTENSIONS__
2522 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2523 do
2524   CC="$ac_save_CC $ac_arg"
2525   rm -f conftest.$ac_objext
2526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2527   (eval $ac_compile) 2>conftest.er1
2528   ac_status=$?
2529   grep -v '^ *+' conftest.er1 >conftest.err
2530   rm -f conftest.er1
2531   cat conftest.err >&5
2532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533   (exit $ac_status); } &&
2534          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2536   (eval $ac_try) 2>&5
2537   ac_status=$?
2538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539   (exit $ac_status); }; } &&
2540          { ac_try='test -s conftest.$ac_objext'
2541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2542   (eval $ac_try) 2>&5
2543   ac_status=$?
2544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545   (exit $ac_status); }; }; then
2546   ac_cv_prog_cc_stdc=$ac_arg
2547 break
2548 else
2549   echo "$as_me: failed program was:" >&5
2550 sed 's/^/| /' conftest.$ac_ext >&5
2551
2552 fi
2553 rm -f conftest.err conftest.$ac_objext
2554 done
2555 rm -f conftest.$ac_ext conftest.$ac_objext
2556 CC=$ac_save_CC
2557
2558 fi
2559
2560 case "x$ac_cv_prog_cc_stdc" in
2561   x|xno)
2562     echo "$as_me:$LINENO: result: none needed" >&5
2563 echo "${ECHO_T}none needed" >&6 ;;
2564   *)
2565     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2566 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2567     CC="$CC $ac_cv_prog_cc_stdc" ;;
2568 esac
2569
2570 # Some people use a C++ compiler to compile C.  Since we use `exit',
2571 # in C++ we need to declare it.  In case someone uses the same compiler
2572 # for both compiling C and C++ we need to have the C++ compiler decide
2573 # the declaration of exit, since it's the most demanding environment.
2574 cat >conftest.$ac_ext <<_ACEOF
2575 #ifndef __cplusplus
2576   choke me
2577 #endif
2578 _ACEOF
2579 rm -f conftest.$ac_objext
2580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2581   (eval $ac_compile) 2>conftest.er1
2582   ac_status=$?
2583   grep -v '^ *+' conftest.er1 >conftest.err
2584   rm -f conftest.er1
2585   cat conftest.err >&5
2586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587   (exit $ac_status); } &&
2588          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590   (eval $ac_try) 2>&5
2591   ac_status=$?
2592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593   (exit $ac_status); }; } &&
2594          { ac_try='test -s conftest.$ac_objext'
2595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596   (eval $ac_try) 2>&5
2597   ac_status=$?
2598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599   (exit $ac_status); }; }; then
2600   for ac_declaration in \
2601    '' \
2602    'extern "C" void std::exit (int) throw (); using std::exit;' \
2603    'extern "C" void std::exit (int); using std::exit;' \
2604    'extern "C" void exit (int) throw ();' \
2605    'extern "C" void exit (int);' \
2606    'void exit (int);'
2607 do
2608   cat >conftest.$ac_ext <<_ACEOF
2609 /* confdefs.h.  */
2610 _ACEOF
2611 cat confdefs.h >>conftest.$ac_ext
2612 cat >>conftest.$ac_ext <<_ACEOF
2613 /* end confdefs.h.  */
2614 $ac_declaration
2615 #include <stdlib.h>
2616 int
2617 main ()
2618 {
2619 exit (42);
2620   ;
2621   return 0;
2622 }
2623 _ACEOF
2624 rm -f conftest.$ac_objext
2625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2626   (eval $ac_compile) 2>conftest.er1
2627   ac_status=$?
2628   grep -v '^ *+' conftest.er1 >conftest.err
2629   rm -f conftest.er1
2630   cat conftest.err >&5
2631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632   (exit $ac_status); } &&
2633          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635   (eval $ac_try) 2>&5
2636   ac_status=$?
2637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638   (exit $ac_status); }; } &&
2639          { ac_try='test -s conftest.$ac_objext'
2640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2641   (eval $ac_try) 2>&5
2642   ac_status=$?
2643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644   (exit $ac_status); }; }; then
2645   :
2646 else
2647   echo "$as_me: failed program was:" >&5
2648 sed 's/^/| /' conftest.$ac_ext >&5
2649
2650 continue
2651 fi
2652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2653   cat >conftest.$ac_ext <<_ACEOF
2654 /* confdefs.h.  */
2655 _ACEOF
2656 cat confdefs.h >>conftest.$ac_ext
2657 cat >>conftest.$ac_ext <<_ACEOF
2658 /* end confdefs.h.  */
2659 $ac_declaration
2660 int
2661 main ()
2662 {
2663 exit (42);
2664   ;
2665   return 0;
2666 }
2667 _ACEOF
2668 rm -f conftest.$ac_objext
2669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2670   (eval $ac_compile) 2>conftest.er1
2671   ac_status=$?
2672   grep -v '^ *+' conftest.er1 >conftest.err
2673   rm -f conftest.er1
2674   cat conftest.err >&5
2675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676   (exit $ac_status); } &&
2677          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679   (eval $ac_try) 2>&5
2680   ac_status=$?
2681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682   (exit $ac_status); }; } &&
2683          { ac_try='test -s conftest.$ac_objext'
2684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2685   (eval $ac_try) 2>&5
2686   ac_status=$?
2687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688   (exit $ac_status); }; }; then
2689   break
2690 else
2691   echo "$as_me: failed program was:" >&5
2692 sed 's/^/| /' conftest.$ac_ext >&5
2693
2694 fi
2695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2696 done
2697 rm -f conftest*
2698 if test -n "$ac_declaration"; then
2699   echo '#ifdef __cplusplus' >>confdefs.h
2700   echo $ac_declaration      >>confdefs.h
2701   echo '#endif'             >>confdefs.h
2702 fi
2703
2704 else
2705   echo "$as_me: failed program was:" >&5
2706 sed 's/^/| /' conftest.$ac_ext >&5
2707
2708 fi
2709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2710 ac_ext=c
2711 ac_cpp='$CPP $CPPFLAGS'
2712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2715 DEPDIR="${am__leading_dot}deps"
2716
2717           ac_config_commands="$ac_config_commands depfiles"
2718
2719
2720 am_make=${MAKE-make}
2721 cat > confinc << 'END'
2722 am__doit:
2723         @echo done
2724 .PHONY: am__doit
2725 END
2726 # If we don't find an include directive, just comment out the code.
2727 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2728 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2729 am__include="#"
2730 am__quote=
2731 _am_result=none
2732 # First try GNU make style include.
2733 echo "include confinc" > confmf
2734 # We grep out `Entering directory' and `Leaving directory'
2735 # messages which can occur if `w' ends up in MAKEFLAGS.
2736 # In particular we don't look at `^make:' because GNU make might
2737 # be invoked under some other name (usually "gmake"), in which
2738 # case it prints its new name instead of `make'.
2739 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2740    am__include=include
2741    am__quote=
2742    _am_result=GNU
2743 fi
2744 # Now try BSD make style include.
2745 if test "$am__include" = "#"; then
2746    echo '.include "confinc"' > confmf
2747    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2748       am__include=.include
2749       am__quote="\""
2750       _am_result=BSD
2751    fi
2752 fi
2753
2754
2755 echo "$as_me:$LINENO: result: $_am_result" >&5
2756 echo "${ECHO_T}$_am_result" >&6
2757 rm -f confinc confmf
2758
2759 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2760 if test "${enable_dependency_tracking+set}" = set; then
2761   enableval="$enable_dependency_tracking"
2762
2763 fi;
2764 if test "x$enable_dependency_tracking" != xno; then
2765   am_depcomp="$ac_aux_dir/depcomp"
2766   AMDEPBACKSLASH='\'
2767 fi
2768
2769
2770 if test "x$enable_dependency_tracking" != xno; then
2771   AMDEP_TRUE=
2772   AMDEP_FALSE='#'
2773 else
2774   AMDEP_TRUE='#'
2775   AMDEP_FALSE=
2776 fi
2777
2778
2779
2780
2781 depcc="$CC"   am_compiler_list=
2782
2783 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2784 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2785 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2786   echo $ECHO_N "(cached) $ECHO_C" >&6
2787 else
2788   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2789   # We make a subdir and do the tests there.  Otherwise we can end up
2790   # making bogus files that we don't know about and never remove.  For
2791   # instance it was reported that on HP-UX the gcc test will end up
2792   # making a dummy file named `D' -- because `-MD' means `put the output
2793   # in D'.
2794   mkdir conftest.dir
2795   # Copy depcomp to subdir because otherwise we won't find it if we're
2796   # using a relative directory.
2797   cp "$am_depcomp" conftest.dir
2798   cd conftest.dir
2799   # We will build objects and dependencies in a subdirectory because
2800   # it helps to detect inapplicable dependency modes.  For instance
2801   # both Tru64's cc and ICC support -MD to output dependencies as a
2802   # side effect of compilation, but ICC will put the dependencies in
2803   # the current directory while Tru64 will put them in the object
2804   # directory.
2805   mkdir sub
2806
2807   am_cv_CC_dependencies_compiler_type=none
2808   if test "$am_compiler_list" = ""; then
2809      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2810   fi
2811   for depmode in $am_compiler_list; do
2812     # Setup a source with many dependencies, because some compilers
2813     # like to wrap large dependency lists on column 80 (with \), and
2814     # we should not choose a depcomp mode which is confused by this.
2815     #
2816     # We need to recreate these files for each test, as the compiler may
2817     # overwrite some of them when testing with obscure command lines.
2818     # This happens at least with the AIX C compiler.
2819     : > sub/conftest.c
2820     for i in 1 2 3 4 5 6; do
2821       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2822       : > sub/conftst$i.h
2823     done
2824     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2825
2826     case $depmode in
2827     nosideeffect)
2828       # after this tag, mechanisms are not by side-effect, so they'll
2829       # only be used when explicitly requested
2830       if test "x$enable_dependency_tracking" = xyes; then
2831         continue
2832       else
2833         break
2834       fi
2835       ;;
2836     none) break ;;
2837     esac
2838     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2839     # mode.  It turns out that the SunPro C++ compiler does not properly
2840     # handle `-M -o', and we need to detect this.
2841     if depmode=$depmode \
2842        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2843        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2844        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2845          >/dev/null 2>conftest.err &&
2846        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2847        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2848        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2849       # icc doesn't choke on unknown options, it will just issue warnings
2850       # (even with -Werror).  So we grep stderr for any message
2851       # that says an option was ignored.
2852       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2853         am_cv_CC_dependencies_compiler_type=$depmode
2854         break
2855       fi
2856     fi
2857   done
2858
2859   cd ..
2860   rm -rf conftest.dir
2861 else
2862   am_cv_CC_dependencies_compiler_type=none
2863 fi
2864
2865 fi
2866 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2867 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2868 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2869
2870
2871
2872 if
2873   test "x$enable_dependency_tracking" != xno \
2874   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2875   am__fastdepCC_TRUE=
2876   am__fastdepCC_FALSE='#'
2877 else
2878   am__fastdepCC_TRUE='#'
2879   am__fastdepCC_FALSE=
2880 fi
2881
2882
2883 if test "x$GCC" = "xyes"; then
2884  CFLAGS="$CFLAGS -Wall"
2885 fi
2886
2887 # We need gfortran to compile parts of the library
2888 # We can't use AC_PROG_F77 because it expects a fully working gfortran.
2889 #AC_PROG_F77(gfortran)
2890 F77="$GFORTRAN"
2891 ac_ext=f
2892 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
2893 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2894 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
2895 if test -n "$ac_tool_prefix"; then
2896   for ac_prog in gfortran
2897   do
2898     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2899 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2900 echo "$as_me:$LINENO: checking for $ac_word" >&5
2901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2902 if test "${ac_cv_prog_F77+set}" = set; then
2903   echo $ECHO_N "(cached) $ECHO_C" >&6
2904 else
2905   if test -n "$F77"; then
2906   ac_cv_prog_F77="$F77" # Let the user override the test.
2907 else
2908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909 for as_dir in $PATH
2910 do
2911   IFS=$as_save_IFS
2912   test -z "$as_dir" && as_dir=.
2913   for ac_exec_ext in '' $ac_executable_extensions; do
2914   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2915     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
2916     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2917     break 2
2918   fi
2919 done
2920 done
2921
2922 fi
2923 fi
2924 F77=$ac_cv_prog_F77
2925 if test -n "$F77"; then
2926   echo "$as_me:$LINENO: result: $F77" >&5
2927 echo "${ECHO_T}$F77" >&6
2928 else
2929   echo "$as_me:$LINENO: result: no" >&5
2930 echo "${ECHO_T}no" >&6
2931 fi
2932
2933     test -n "$F77" && break
2934   done
2935 fi
2936 if test -z "$F77"; then
2937   ac_ct_F77=$F77
2938   for ac_prog in gfortran
2939 do
2940   # Extract the first word of "$ac_prog", so it can be a program name with args.
2941 set dummy $ac_prog; ac_word=$2
2942 echo "$as_me:$LINENO: checking for $ac_word" >&5
2943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2944 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
2945   echo $ECHO_N "(cached) $ECHO_C" >&6
2946 else
2947   if test -n "$ac_ct_F77"; then
2948   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
2949 else
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951 for as_dir in $PATH
2952 do
2953   IFS=$as_save_IFS
2954   test -z "$as_dir" && as_dir=.
2955   for ac_exec_ext in '' $ac_executable_extensions; do
2956   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2957     ac_cv_prog_ac_ct_F77="$ac_prog"
2958     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2959     break 2
2960   fi
2961 done
2962 done
2963
2964 fi
2965 fi
2966 ac_ct_F77=$ac_cv_prog_ac_ct_F77
2967 if test -n "$ac_ct_F77"; then
2968   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
2969 echo "${ECHO_T}$ac_ct_F77" >&6
2970 else
2971   echo "$as_me:$LINENO: result: no" >&5
2972 echo "${ECHO_T}no" >&6
2973 fi
2974
2975   test -n "$ac_ct_F77" && break
2976 done
2977
2978   F77=$ac_ct_F77
2979 fi
2980
2981
2982 # Provide some information about the compiler.
2983 echo "$as_me:2983:" \
2984      "checking for Fortran 77 compiler version" >&5
2985 ac_compiler=`set X $ac_compile; echo $2`
2986 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2987   (eval $ac_compiler --version </dev/null >&5) 2>&5
2988   ac_status=$?
2989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990   (exit $ac_status); }
2991 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2992   (eval $ac_compiler -v </dev/null >&5) 2>&5
2993   ac_status=$?
2994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995   (exit $ac_status); }
2996 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2997   (eval $ac_compiler -V </dev/null >&5) 2>&5
2998   ac_status=$?
2999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000   (exit $ac_status); }
3001 rm -f a.out
3002
3003 # If we don't use `.F' as extension, the preprocessor is not run on the
3004 # input file.  (Note that this only needs to work for GNU compilers.)
3005 ac_save_ext=$ac_ext
3006 ac_ext=F
3007 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3008 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3009 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3010   echo $ECHO_N "(cached) $ECHO_C" >&6
3011 else
3012   cat >conftest.$ac_ext <<_ACEOF
3013       program main
3014 #ifndef __GNUC__
3015        choke me
3016 #endif
3017
3018       end
3019 _ACEOF
3020 rm -f conftest.$ac_objext
3021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3022   (eval $ac_compile) 2>conftest.er1
3023   ac_status=$?
3024   grep -v '^ *+' conftest.er1 >conftest.err
3025   rm -f conftest.er1
3026   cat conftest.err >&5
3027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028   (exit $ac_status); } &&
3029          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
3030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3031   (eval $ac_try) 2>&5
3032   ac_status=$?
3033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034   (exit $ac_status); }; } &&
3035          { ac_try='test -s conftest.$ac_objext'
3036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3037   (eval $ac_try) 2>&5
3038   ac_status=$?
3039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040   (exit $ac_status); }; }; then
3041   ac_compiler_gnu=yes
3042 else
3043   echo "$as_me: failed program was:" >&5
3044 sed 's/^/| /' conftest.$ac_ext >&5
3045
3046 ac_compiler_gnu=no
3047 fi
3048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3049 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3050
3051 fi
3052 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3053 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3054 ac_ext=$ac_save_ext
3055 ac_test_FFLAGS=${FFLAGS+set}
3056 ac_save_FFLAGS=$FFLAGS
3057 FFLAGS=
3058 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3059 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3060 if test "${ac_cv_prog_f77_g+set}" = set; then
3061   echo $ECHO_N "(cached) $ECHO_C" >&6
3062 else
3063   FFLAGS=-g
3064 cat >conftest.$ac_ext <<_ACEOF
3065       program main
3066
3067       end
3068 _ACEOF
3069 rm -f conftest.$ac_objext
3070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3071   (eval $ac_compile) 2>conftest.er1
3072   ac_status=$?
3073   grep -v '^ *+' conftest.er1 >conftest.err
3074   rm -f conftest.er1
3075   cat conftest.err >&5
3076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077   (exit $ac_status); } &&
3078          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
3079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3080   (eval $ac_try) 2>&5
3081   ac_status=$?
3082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083   (exit $ac_status); }; } &&
3084          { ac_try='test -s conftest.$ac_objext'
3085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3086   (eval $ac_try) 2>&5
3087   ac_status=$?
3088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089   (exit $ac_status); }; }; then
3090   ac_cv_prog_f77_g=yes
3091 else
3092   echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3094
3095 ac_cv_prog_f77_g=no
3096 fi
3097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3098
3099 fi
3100 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3101 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3102 if test "$ac_test_FFLAGS" = set; then
3103   FFLAGS=$ac_save_FFLAGS
3104 elif test $ac_cv_prog_f77_g = yes; then
3105   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3106     FFLAGS="-g -O2"
3107   else
3108     FFLAGS="-g"
3109   fi
3110 else
3111   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3112     FFLAGS="-O2"
3113   else
3114     FFLAGS=
3115   fi
3116 fi
3117
3118 G77=`test $ac_compiler_gnu = yes && echo yes`
3119 ac_ext=c
3120 ac_cpp='$CPP $CPPFLAGS'
3121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3124
3125 FFLAGS="$FFLAGS -Wall -fno-repack-arrays -fno-underscoring"
3126
3127
3128 ac_ext=c
3129 ac_cpp='$CPP $CPPFLAGS'
3130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3133 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3134 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3135 # On Suns, sometimes $CPP names a directory.
3136 if test -n "$CPP" && test -d "$CPP"; then
3137   CPP=
3138 fi
3139 if test -z "$CPP"; then
3140   if test "${ac_cv_prog_CPP+set}" = set; then
3141   echo $ECHO_N "(cached) $ECHO_C" >&6
3142 else
3143       # Double quotes because CPP needs to be expanded
3144     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3145     do
3146       ac_preproc_ok=false
3147 for ac_c_preproc_warn_flag in '' yes
3148 do
3149   # Use a header file that comes with gcc, so configuring glibc
3150   # with a fresh cross-compiler works.
3151   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3152   # <limits.h> exists even on freestanding compilers.
3153   # On the NeXT, cc -E runs the code through the compiler's parser,
3154   # not just through cpp. "Syntax error" is here to catch this case.
3155   cat >conftest.$ac_ext <<_ACEOF
3156 /* confdefs.h.  */
3157 _ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h.  */
3161 #ifdef __STDC__
3162 # include <limits.h>
3163 #else
3164 # include <assert.h>
3165 #endif
3166                      Syntax error
3167 _ACEOF
3168 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3169   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3170   ac_status=$?
3171   grep -v '^ *+' conftest.er1 >conftest.err
3172   rm -f conftest.er1
3173   cat conftest.err >&5
3174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175   (exit $ac_status); } >/dev/null; then
3176   if test -s conftest.err; then
3177     ac_cpp_err=$ac_c_preproc_warn_flag
3178     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3179   else
3180     ac_cpp_err=
3181   fi
3182 else
3183   ac_cpp_err=yes
3184 fi
3185 if test -z "$ac_cpp_err"; then
3186   :
3187 else
3188   echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.$ac_ext >&5
3190
3191   # Broken: fails on valid input.
3192 continue
3193 fi
3194 rm -f conftest.err conftest.$ac_ext
3195
3196   # OK, works on sane cases.  Now check whether non-existent headers
3197   # can be detected and how.
3198   cat >conftest.$ac_ext <<_ACEOF
3199 /* confdefs.h.  */
3200 _ACEOF
3201 cat confdefs.h >>conftest.$ac_ext
3202 cat >>conftest.$ac_ext <<_ACEOF
3203 /* end confdefs.h.  */
3204 #include <ac_nonexistent.h>
3205 _ACEOF
3206 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3207   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3208   ac_status=$?
3209   grep -v '^ *+' conftest.er1 >conftest.err
3210   rm -f conftest.er1
3211   cat conftest.err >&5
3212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213   (exit $ac_status); } >/dev/null; then
3214   if test -s conftest.err; then
3215     ac_cpp_err=$ac_c_preproc_warn_flag
3216     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3217   else
3218     ac_cpp_err=
3219   fi
3220 else
3221   ac_cpp_err=yes
3222 fi
3223 if test -z "$ac_cpp_err"; then
3224   # Broken: success on invalid input.
3225 continue
3226 else
3227   echo "$as_me: failed program was:" >&5
3228 sed 's/^/| /' conftest.$ac_ext >&5
3229
3230   # Passes both tests.
3231 ac_preproc_ok=:
3232 break
3233 fi
3234 rm -f conftest.err conftest.$ac_ext
3235
3236 done
3237 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3238 rm -f conftest.err conftest.$ac_ext
3239 if $ac_preproc_ok; then
3240   break
3241 fi
3242
3243     done
3244     ac_cv_prog_CPP=$CPP
3245
3246 fi
3247   CPP=$ac_cv_prog_CPP
3248 else
3249   ac_cv_prog_CPP=$CPP
3250 fi
3251 echo "$as_me:$LINENO: result: $CPP" >&5
3252 echo "${ECHO_T}$CPP" >&6
3253 ac_preproc_ok=false
3254 for ac_c_preproc_warn_flag in '' yes
3255 do
3256   # Use a header file that comes with gcc, so configuring glibc
3257   # with a fresh cross-compiler works.
3258   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3259   # <limits.h> exists even on freestanding compilers.
3260   # On the NeXT, cc -E runs the code through the compiler's parser,
3261   # not just through cpp. "Syntax error" is here to catch this case.
3262   cat >conftest.$ac_ext <<_ACEOF
3263 /* confdefs.h.  */
3264 _ACEOF
3265 cat confdefs.h >>conftest.$ac_ext
3266 cat >>conftest.$ac_ext <<_ACEOF
3267 /* end confdefs.h.  */
3268 #ifdef __STDC__
3269 # include <limits.h>
3270 #else
3271 # include <assert.h>
3272 #endif
3273                      Syntax error
3274 _ACEOF
3275 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3276   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3277   ac_status=$?
3278   grep -v '^ *+' conftest.er1 >conftest.err
3279   rm -f conftest.er1
3280   cat conftest.err >&5
3281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282   (exit $ac_status); } >/dev/null; then
3283   if test -s conftest.err; then
3284     ac_cpp_err=$ac_c_preproc_warn_flag
3285     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3286   else
3287     ac_cpp_err=
3288   fi
3289 else
3290   ac_cpp_err=yes
3291 fi
3292 if test -z "$ac_cpp_err"; then
3293   :
3294 else
3295   echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3297
3298   # Broken: fails on valid input.
3299 continue
3300 fi
3301 rm -f conftest.err conftest.$ac_ext
3302
3303   # OK, works on sane cases.  Now check whether non-existent headers
3304   # can be detected and how.
3305   cat >conftest.$ac_ext <<_ACEOF
3306 /* confdefs.h.  */
3307 _ACEOF
3308 cat confdefs.h >>conftest.$ac_ext
3309 cat >>conftest.$ac_ext <<_ACEOF
3310 /* end confdefs.h.  */
3311 #include <ac_nonexistent.h>
3312 _ACEOF
3313 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3314   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3315   ac_status=$?
3316   grep -v '^ *+' conftest.er1 >conftest.err
3317   rm -f conftest.er1
3318   cat conftest.err >&5
3319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320   (exit $ac_status); } >/dev/null; then
3321   if test -s conftest.err; then
3322     ac_cpp_err=$ac_c_preproc_warn_flag
3323     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3324   else
3325     ac_cpp_err=
3326   fi
3327 else
3328   ac_cpp_err=yes
3329 fi
3330 if test -z "$ac_cpp_err"; then
3331   # Broken: success on invalid input.
3332 continue
3333 else
3334   echo "$as_me: failed program was:" >&5
3335 sed 's/^/| /' conftest.$ac_ext >&5
3336
3337   # Passes both tests.
3338 ac_preproc_ok=:
3339 break
3340 fi
3341 rm -f conftest.err conftest.$ac_ext
3342
3343 done
3344 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3345 rm -f conftest.err conftest.$ac_ext
3346 if $ac_preproc_ok; then
3347   :
3348 else
3349   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3350 See \`config.log' for more details." >&5
3351 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3352 See \`config.log' for more details." >&2;}
3353    { (exit 1); exit 1; }; }
3354 fi
3355
3356 ac_ext=c
3357 ac_cpp='$CPP $CPPFLAGS'
3358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3361
3362
3363 echo "$as_me:$LINENO: checking for egrep" >&5
3364 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3365 if test "${ac_cv_prog_egrep+set}" = set; then
3366   echo $ECHO_N "(cached) $ECHO_C" >&6
3367 else
3368   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3369     then ac_cv_prog_egrep='grep -E'
3370     else ac_cv_prog_egrep='egrep'
3371     fi
3372 fi
3373 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3374 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3375  EGREP=$ac_cv_prog_egrep
3376
3377
3378 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3379 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3380 if test "${ac_cv_header_stdc+set}" = set; then
3381   echo $ECHO_N "(cached) $ECHO_C" >&6
3382 else
3383   cat >conftest.$ac_ext <<_ACEOF
3384 /* confdefs.h.  */
3385 _ACEOF
3386 cat confdefs.h >>conftest.$ac_ext
3387 cat >>conftest.$ac_ext <<_ACEOF
3388 /* end confdefs.h.  */
3389 #include <stdlib.h>
3390 #include <stdarg.h>
3391 #include <string.h>
3392 #include <float.h>
3393
3394 int
3395 main ()
3396 {
3397
3398   ;
3399   return 0;
3400 }
3401 _ACEOF
3402 rm -f conftest.$ac_objext
3403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3404   (eval $ac_compile) 2>conftest.er1
3405   ac_status=$?
3406   grep -v '^ *+' conftest.er1 >conftest.err
3407   rm -f conftest.er1
3408   cat conftest.err >&5
3409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410   (exit $ac_status); } &&
3411          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3413   (eval $ac_try) 2>&5
3414   ac_status=$?
3415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416   (exit $ac_status); }; } &&
3417          { ac_try='test -s conftest.$ac_objext'
3418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3419   (eval $ac_try) 2>&5
3420   ac_status=$?
3421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422   (exit $ac_status); }; }; then
3423   ac_cv_header_stdc=yes
3424 else
3425   echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.$ac_ext >&5
3427
3428 ac_cv_header_stdc=no
3429 fi
3430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3431
3432 if test $ac_cv_header_stdc = yes; then
3433   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3434   cat >conftest.$ac_ext <<_ACEOF
3435 /* confdefs.h.  */
3436 _ACEOF
3437 cat confdefs.h >>conftest.$ac_ext
3438 cat >>conftest.$ac_ext <<_ACEOF
3439 /* end confdefs.h.  */
3440 #include <string.h>
3441
3442 _ACEOF
3443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3444   $EGREP "memchr" >/dev/null 2>&1; then
3445   :
3446 else
3447   ac_cv_header_stdc=no
3448 fi
3449 rm -f conftest*
3450
3451 fi
3452
3453 if test $ac_cv_header_stdc = yes; then
3454   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3455   cat >conftest.$ac_ext <<_ACEOF
3456 /* confdefs.h.  */
3457 _ACEOF
3458 cat confdefs.h >>conftest.$ac_ext
3459 cat >>conftest.$ac_ext <<_ACEOF
3460 /* end confdefs.h.  */
3461 #include <stdlib.h>
3462
3463 _ACEOF
3464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3465   $EGREP "free" >/dev/null 2>&1; then
3466   :
3467 else
3468   ac_cv_header_stdc=no
3469 fi
3470 rm -f conftest*
3471
3472 fi
3473
3474 if test $ac_cv_header_stdc = yes; then
3475   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3476   if test "$cross_compiling" = yes; then
3477   :
3478 else
3479   cat >conftest.$ac_ext <<_ACEOF
3480 /* confdefs.h.  */
3481 _ACEOF
3482 cat confdefs.h >>conftest.$ac_ext
3483 cat >>conftest.$ac_ext <<_ACEOF
3484 /* end confdefs.h.  */
3485 #include <ctype.h>
3486 #if ((' ' & 0x0FF) == 0x020)
3487 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3488 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3489 #else
3490 # define ISLOWER(c) \
3491                    (('a' <= (c) && (c) <= 'i') \
3492                      || ('j' <= (c) && (c) <= 'r') \
3493                      || ('s' <= (c) && (c) <= 'z'))
3494 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3495 #endif
3496
3497 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3498 int
3499 main ()
3500 {
3501   int i;
3502   for (i = 0; i < 256; i++)
3503     if (XOR (islower (i), ISLOWER (i))
3504         || toupper (i) != TOUPPER (i))
3505       exit(2);
3506   exit (0);
3507 }
3508 _ACEOF
3509 rm -f conftest$ac_exeext
3510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3511   (eval $ac_link) 2>&5
3512   ac_status=$?
3513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3516   (eval $ac_try) 2>&5
3517   ac_status=$?
3518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519   (exit $ac_status); }; }; then
3520   :
3521 else
3522   echo "$as_me: program exited with status $ac_status" >&5
3523 echo "$as_me: failed program was:" >&5
3524 sed 's/^/| /' conftest.$ac_ext >&5
3525
3526 ( exit $ac_status )
3527 ac_cv_header_stdc=no
3528 fi
3529 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3530 fi
3531 fi
3532 fi
3533 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3534 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3535 if test $ac_cv_header_stdc = yes; then
3536
3537 cat >>confdefs.h <<\_ACEOF
3538 #define STDC_HEADERS 1
3539 _ACEOF
3540
3541 fi
3542
3543 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3554                   inttypes.h stdint.h unistd.h
3555 do
3556 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3557 echo "$as_me:$LINENO: checking for $ac_header" >&5
3558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3560   echo $ECHO_N "(cached) $ECHO_C" >&6
3561 else
3562   cat >conftest.$ac_ext <<_ACEOF
3563 /* confdefs.h.  */
3564 _ACEOF
3565 cat confdefs.h >>conftest.$ac_ext
3566 cat >>conftest.$ac_ext <<_ACEOF
3567 /* end confdefs.h.  */
3568 $ac_includes_default
3569
3570 #include <$ac_header>
3571 _ACEOF
3572 rm -f conftest.$ac_objext
3573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3574   (eval $ac_compile) 2>conftest.er1
3575   ac_status=$?
3576   grep -v '^ *+' conftest.er1 >conftest.err
3577   rm -f conftest.er1
3578   cat conftest.err >&5
3579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580   (exit $ac_status); } &&
3581          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3583   (eval $ac_try) 2>&5
3584   ac_status=$?
3585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586   (exit $ac_status); }; } &&
3587          { ac_try='test -s conftest.$ac_objext'
3588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3589   (eval $ac_try) 2>&5
3590   ac_status=$?
3591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592   (exit $ac_status); }; }; then
3593   eval "$as_ac_Header=yes"
3594 else
3595   echo "$as_me: failed program was:" >&5
3596 sed 's/^/| /' conftest.$ac_ext >&5
3597
3598 eval "$as_ac_Header=no"
3599 fi
3600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3601 fi
3602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3603 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3605   cat >>confdefs.h <<_ACEOF
3606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3607 _ACEOF
3608
3609 fi
3610
3611 done
3612
3613
3614
3615
3616 for ac_header in stdlib.h unistd.h
3617 do
3618 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3619 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3620   echo "$as_me:$LINENO: checking for $ac_header" >&5
3621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3622 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3623   echo $ECHO_N "(cached) $ECHO_C" >&6
3624 fi
3625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3626 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3627 else
3628   # Is the header compilable?
3629 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3630 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3631 cat >conftest.$ac_ext <<_ACEOF
3632 /* confdefs.h.  */
3633 _ACEOF
3634 cat confdefs.h >>conftest.$ac_ext
3635 cat >>conftest.$ac_ext <<_ACEOF
3636 /* end confdefs.h.  */
3637 $ac_includes_default
3638 #include <$ac_header>
3639 _ACEOF
3640 rm -f conftest.$ac_objext
3641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3642   (eval $ac_compile) 2>conftest.er1
3643   ac_status=$?
3644   grep -v '^ *+' conftest.er1 >conftest.err
3645   rm -f conftest.er1
3646   cat conftest.err >&5
3647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648   (exit $ac_status); } &&
3649          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3651   (eval $ac_try) 2>&5
3652   ac_status=$?
3653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654   (exit $ac_status); }; } &&
3655          { ac_try='test -s conftest.$ac_objext'
3656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3657   (eval $ac_try) 2>&5
3658   ac_status=$?
3659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660   (exit $ac_status); }; }; then
3661   ac_header_compiler=yes
3662 else
3663   echo "$as_me: failed program was:" >&5
3664 sed 's/^/| /' conftest.$ac_ext >&5
3665
3666 ac_header_compiler=no
3667 fi
3668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3669 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3670 echo "${ECHO_T}$ac_header_compiler" >&6
3671
3672 # Is the header present?
3673 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3674 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3675 cat >conftest.$ac_ext <<_ACEOF
3676 /* confdefs.h.  */
3677 _ACEOF
3678 cat confdefs.h >>conftest.$ac_ext
3679 cat >>conftest.$ac_ext <<_ACEOF
3680 /* end confdefs.h.  */
3681 #include <$ac_header>
3682 _ACEOF
3683 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3684   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3685   ac_status=$?
3686   grep -v '^ *+' conftest.er1 >conftest.err
3687   rm -f conftest.er1
3688   cat conftest.err >&5
3689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690   (exit $ac_status); } >/dev/null; then
3691   if test -s conftest.err; then
3692     ac_cpp_err=$ac_c_preproc_warn_flag
3693     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3694   else
3695     ac_cpp_err=
3696   fi
3697 else
3698   ac_cpp_err=yes
3699 fi
3700 if test -z "$ac_cpp_err"; then
3701   ac_header_preproc=yes
3702 else
3703   echo "$as_me: failed program was:" >&5
3704 sed 's/^/| /' conftest.$ac_ext >&5
3705
3706   ac_header_preproc=no
3707 fi
3708 rm -f conftest.err conftest.$ac_ext
3709 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3710 echo "${ECHO_T}$ac_header_preproc" >&6
3711
3712 # So?  What about this header?
3713 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3714   yes:no: )
3715     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3716 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3717     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3718 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3719     ac_header_preproc=yes
3720     ;;
3721   no:yes:* )
3722     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3723 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3724     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3725 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3726     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3727 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3728     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3729 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3730     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3731 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3732     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3733 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3734     (
3735       cat <<\_ASBOX
3736 ## ------------------------------------------------------ ##
3737 ## Report this to the GNU Fortran Runtime Library lists.  ##
3738 ## ------------------------------------------------------ ##
3739 _ASBOX
3740     ) |
3741       sed "s/^/$as_me: WARNING:     /" >&2
3742     ;;
3743 esac
3744 echo "$as_me:$LINENO: checking for $ac_header" >&5
3745 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3747   echo $ECHO_N "(cached) $ECHO_C" >&6
3748 else
3749   eval "$as_ac_Header=\$ac_header_preproc"
3750 fi
3751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3752 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3753
3754 fi
3755 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3756   cat >>confdefs.h <<_ACEOF
3757 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3758 _ACEOF
3759
3760 fi
3761
3762 done
3763
3764
3765 for ac_func in getpagesize
3766 do
3767 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3768 echo "$as_me:$LINENO: checking for $ac_func" >&5
3769 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3770 if eval "test \"\${$as_ac_var+set}\" = set"; then
3771   echo $ECHO_N "(cached) $ECHO_C" >&6
3772 else
3773   cat >conftest.$ac_ext <<_ACEOF
3774 /* confdefs.h.  */
3775 _ACEOF
3776 cat confdefs.h >>conftest.$ac_ext
3777 cat >>conftest.$ac_ext <<_ACEOF
3778 /* end confdefs.h.  */
3779 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3780    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3781 #define $ac_func innocuous_$ac_func
3782
3783 /* System header to define __stub macros and hopefully few prototypes,
3784     which can conflict with char $ac_func (); below.
3785     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3786     <limits.h> exists even on freestanding compilers.  */
3787
3788 #ifdef __STDC__
3789 # include <limits.h>
3790 #else
3791 # include <assert.h>
3792 #endif
3793
3794 #undef $ac_func
3795
3796 /* Override any gcc2 internal prototype to avoid an error.  */
3797 #ifdef __cplusplus
3798 extern "C"
3799 {
3800 #endif
3801 /* We use char because int might match the return type of a gcc2
3802    builtin and then its argument prototype would still apply.  */
3803 char $ac_func ();
3804 /* The GNU C library defines this for functions which it implements
3805     to always fail with ENOSYS.  Some functions are actually named
3806     something starting with __ and the normal name is an alias.  */
3807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3808 choke me
3809 #else
3810 char (*f) () = $ac_func;
3811 #endif
3812 #ifdef __cplusplus
3813 }
3814 #endif
3815
3816 int
3817 main ()
3818 {
3819 return f != $ac_func;
3820   ;
3821   return 0;
3822 }
3823 _ACEOF
3824 rm -f conftest.$ac_objext conftest$ac_exeext
3825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3826   (eval $ac_link) 2>conftest.er1
3827   ac_status=$?
3828   grep -v '^ *+' conftest.er1 >conftest.err
3829   rm -f conftest.er1
3830   cat conftest.err >&5
3831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832   (exit $ac_status); } &&
3833          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3835   (eval $ac_try) 2>&5
3836   ac_status=$?
3837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838   (exit $ac_status); }; } &&
3839          { ac_try='test -s conftest$ac_exeext'
3840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3841   (eval $ac_try) 2>&5
3842   ac_status=$?
3843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844   (exit $ac_status); }; }; then
3845   eval "$as_ac_var=yes"
3846 else
3847   echo "$as_me: failed program was:" >&5
3848 sed 's/^/| /' conftest.$ac_ext >&5
3849
3850 eval "$as_ac_var=no"
3851 fi
3852 rm -f conftest.err conftest.$ac_objext \
3853       conftest$ac_exeext conftest.$ac_ext
3854 fi
3855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3856 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3857 if test `eval echo '${'$as_ac_var'}'` = yes; then
3858   cat >>confdefs.h <<_ACEOF
3859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3860 _ACEOF
3861
3862 fi
3863 done
3864
3865 echo "$as_me:$LINENO: checking for working mmap" >&5
3866 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
3867 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
3868   echo $ECHO_N "(cached) $ECHO_C" >&6
3869 else
3870   if test "$cross_compiling" = yes; then
3871   ac_cv_func_mmap_fixed_mapped=no
3872 else
3873   cat >conftest.$ac_ext <<_ACEOF
3874 /* confdefs.h.  */
3875 _ACEOF
3876 cat confdefs.h >>conftest.$ac_ext
3877 cat >>conftest.$ac_ext <<_ACEOF
3878 /* end confdefs.h.  */
3879 $ac_includes_default
3880 /* malloc might have been renamed as rpl_malloc. */
3881 #undef malloc
3882
3883 /* Thanks to Mike Haertel and Jim Avera for this test.
3884    Here is a matrix of mmap possibilities:
3885         mmap private not fixed
3886         mmap private fixed at somewhere currently unmapped
3887         mmap private fixed at somewhere already mapped
3888         mmap shared not fixed
3889         mmap shared fixed at somewhere currently unmapped
3890         mmap shared fixed at somewhere already mapped
3891    For private mappings, we should verify that changes cannot be read()
3892    back from the file, nor mmap's back from the file at a different
3893    address.  (There have been systems where private was not correctly
3894    implemented like the infamous i386 svr4.0, and systems where the
3895    VM page cache was not coherent with the file system buffer cache
3896    like early versions of FreeBSD and possibly contemporary NetBSD.)
3897    For shared mappings, we should conversely verify that changes get
3898    propagated back to all the places they're supposed to be.
3899
3900    Grep wants private fixed already mapped.
3901    The main things grep needs to know about mmap are:
3902    * does it exist and is it safe to write into the mmap'd area
3903    * how to use it (BSD variants)  */
3904
3905 #include <fcntl.h>
3906 #include <sys/mman.h>
3907
3908 #if !STDC_HEADERS && !HAVE_STDLIB_H
3909 char *malloc ();
3910 #endif
3911
3912 /* This mess was copied from the GNU getpagesize.h.  */
3913 #if !HAVE_GETPAGESIZE
3914 /* Assume that all systems that can run configure have sys/param.h.  */
3915 # if !HAVE_SYS_PARAM_H
3916 #  define HAVE_SYS_PARAM_H 1
3917 # endif
3918
3919 # ifdef _SC_PAGESIZE
3920 #  define getpagesize() sysconf(_SC_PAGESIZE)
3921 # else /* no _SC_PAGESIZE */
3922 #  if HAVE_SYS_PARAM_H
3923 #   include <sys/param.h>
3924 #   ifdef EXEC_PAGESIZE
3925 #    define getpagesize() EXEC_PAGESIZE
3926 #   else /* no EXEC_PAGESIZE */
3927 #    ifdef NBPG
3928 #     define getpagesize() NBPG * CLSIZE
3929 #     ifndef CLSIZE
3930 #      define CLSIZE 1
3931 #     endif /* no CLSIZE */
3932 #    else /* no NBPG */
3933 #     ifdef NBPC
3934 #      define getpagesize() NBPC
3935 #     else /* no NBPC */
3936 #      ifdef PAGESIZE
3937 #       define getpagesize() PAGESIZE
3938 #      endif /* PAGESIZE */
3939 #     endif /* no NBPC */
3940 #    endif /* no NBPG */
3941 #   endif /* no EXEC_PAGESIZE */
3942 #  else /* no HAVE_SYS_PARAM_H */
3943 #   define getpagesize() 8192   /* punt totally */
3944 #  endif /* no HAVE_SYS_PARAM_H */
3945 # endif /* no _SC_PAGESIZE */
3946
3947 #endif /* no HAVE_GETPAGESIZE */
3948
3949 int
3950 main ()
3951 {
3952   char *data, *data2, *data3;
3953   int i, pagesize;
3954   int fd;
3955
3956   pagesize = getpagesize ();
3957
3958   /* First, make a file with some known garbage in it. */
3959   data = (char *) malloc (pagesize);
3960   if (!data)
3961     exit (1);
3962   for (i = 0; i < pagesize; ++i)
3963     *(data + i) = rand ();
3964   umask (0);
3965   fd = creat ("conftest.mmap", 0600);
3966   if (fd < 0)
3967     exit (1);
3968   if (write (fd, data, pagesize) != pagesize)
3969     exit (1);
3970   close (fd);
3971
3972   /* Next, try to mmap the file at a fixed address which already has
3973      something else allocated at it.  If we can, also make sure that
3974      we see the same garbage.  */
3975   fd = open ("conftest.mmap", O_RDWR);
3976   if (fd < 0)
3977     exit (1);
3978   data2 = (char *) malloc (2 * pagesize);
3979   if (!data2)
3980     exit (1);
3981   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
3982   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
3983                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
3984     exit (1);
3985   for (i = 0; i < pagesize; ++i)
3986     if (*(data + i) != *(data2 + i))
3987       exit (1);
3988
3989   /* Finally, make sure that changes to the mapped area do not
3990      percolate back to the file as seen by read().  (This is a bug on
3991      some variants of i386 svr4.0.)  */
3992   for (i = 0; i < pagesize; ++i)
3993     *(data2 + i) = *(data2 + i) + 1;
3994   data3 = (char *) malloc (pagesize);
3995   if (!data3)
3996     exit (1);
3997   if (read (fd, data3, pagesize) != pagesize)
3998     exit (1);
3999   for (i = 0; i < pagesize; ++i)
4000     if (*(data + i) != *(data3 + i))
4001       exit (1);
4002   close (fd);
4003   exit (0);
4004 }
4005 _ACEOF
4006 rm -f conftest$ac_exeext
4007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4008   (eval $ac_link) 2>&5
4009   ac_status=$?
4010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4013   (eval $ac_try) 2>&5
4014   ac_status=$?
4015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016   (exit $ac_status); }; }; then
4017   ac_cv_func_mmap_fixed_mapped=yes
4018 else
4019   echo "$as_me: program exited with status $ac_status" >&5
4020 echo "$as_me: failed program was:" >&5
4021 sed 's/^/| /' conftest.$ac_ext >&5
4022
4023 ( exit $ac_status )
4024 ac_cv_func_mmap_fixed_mapped=no
4025 fi
4026 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4027 fi
4028 fi
4029 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4030 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4031 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4032
4033 cat >>confdefs.h <<\_ACEOF
4034 #define HAVE_MMAP 1
4035 _ACEOF
4036
4037 fi
4038 rm -f conftest.mmap
4039
4040 echo "$as_me:$LINENO: checking for off_t" >&5
4041 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4042 if test "${ac_cv_type_off_t+set}" = set; then
4043   echo $ECHO_N "(cached) $ECHO_C" >&6
4044 else
4045   cat >conftest.$ac_ext <<_ACEOF
4046 /* confdefs.h.  */
4047 _ACEOF
4048 cat confdefs.h >>conftest.$ac_ext
4049 cat >>conftest.$ac_ext <<_ACEOF
4050 /* end confdefs.h.  */
4051 $ac_includes_default
4052 int
4053 main ()
4054 {
4055 if ((off_t *) 0)
4056   return 0;
4057 if (sizeof (off_t))
4058   return 0;
4059   ;
4060   return 0;
4061 }
4062 _ACEOF
4063 rm -f conftest.$ac_objext
4064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4065   (eval $ac_compile) 2>conftest.er1
4066   ac_status=$?
4067   grep -v '^ *+' conftest.er1 >conftest.err
4068   rm -f conftest.er1
4069   cat conftest.err >&5
4070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071   (exit $ac_status); } &&
4072          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4074   (eval $ac_try) 2>&5
4075   ac_status=$?
4076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077   (exit $ac_status); }; } &&
4078          { ac_try='test -s conftest.$ac_objext'
4079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4080   (eval $ac_try) 2>&5
4081   ac_status=$?
4082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083   (exit $ac_status); }; }; then
4084   ac_cv_type_off_t=yes
4085 else
4086   echo "$as_me: failed program was:" >&5
4087 sed 's/^/| /' conftest.$ac_ext >&5
4088
4089 ac_cv_type_off_t=no
4090 fi
4091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4092 fi
4093 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4094 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4095 if test $ac_cv_type_off_t = yes; then
4096   :
4097 else
4098
4099 cat >>confdefs.h <<_ACEOF
4100 #define off_t long
4101 _ACEOF
4102
4103 fi
4104
4105
4106 # Check for install
4107 # Find a good install program.  We prefer a C program (faster),
4108 # so one script is as good as another.  But avoid the broken or
4109 # incompatible versions:
4110 # SysV /etc/install, /usr/sbin/install
4111 # SunOS /usr/etc/install
4112 # IRIX /sbin/install
4113 # AIX /bin/install
4114 # AmigaOS /C/install, which installs bootblocks on floppy discs
4115 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4116 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4117 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4118 # OS/2's system install, which has a completely different semantic
4119 # ./install, which can be erroneously created by make from ./install.sh.
4120 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4121 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4122 if test -z "$INSTALL"; then
4123 if test "${ac_cv_path_install+set}" = set; then
4124   echo $ECHO_N "(cached) $ECHO_C" >&6
4125 else
4126   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127 for as_dir in $PATH
4128 do
4129   IFS=$as_save_IFS
4130   test -z "$as_dir" && as_dir=.
4131   # Account for people who put trailing slashes in PATH elements.
4132 case $as_dir/ in
4133   ./ | .// | /cC/* | \
4134   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4135   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4136   /usr/ucb/* ) ;;
4137   *)
4138     # OSF1 and SCO ODT 3.0 have their own names for install.
4139     # Don't use installbsd from OSF since it installs stuff as root
4140     # by default.
4141     for ac_prog in ginstall scoinst install; do
4142       for ac_exec_ext in '' $ac_executable_extensions; do
4143         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4144           if test $ac_prog = install &&
4145             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4146             # AIX install.  It has an incompatible calling convention.
4147             :
4148           elif test $ac_prog = install &&
4149             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4150             # program-specific install script used by HP pwplus--don't use.
4151             :
4152           else
4153             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4154             break 3
4155           fi
4156         fi
4157       done
4158     done
4159     ;;
4160 esac
4161 done
4162
4163
4164 fi
4165   if test "${ac_cv_path_install+set}" = set; then
4166     INSTALL=$ac_cv_path_install
4167   else
4168     # As a last resort, use the slow shell script.  We don't cache a
4169     # path for INSTALL within a source directory, because that will
4170     # break other packages using the cache if that directory is
4171     # removed, or if the path is relative.
4172     INSTALL=$ac_install_sh
4173   fi
4174 fi
4175 echo "$as_me:$LINENO: result: $INSTALL" >&5
4176 echo "${ECHO_T}$INSTALL" >&6
4177
4178 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4179 # It thinks the first close brace ends the variable substitution.
4180 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4181
4182 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4183
4184 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4185
4186
4187 # check header files
4188 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4189 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4190 if test "${ac_cv_header_stdc+set}" = set; then
4191   echo $ECHO_N "(cached) $ECHO_C" >&6
4192 else
4193   cat >conftest.$ac_ext <<_ACEOF
4194 /* confdefs.h.  */
4195 _ACEOF
4196 cat confdefs.h >>conftest.$ac_ext
4197 cat >>conftest.$ac_ext <<_ACEOF
4198 /* end confdefs.h.  */
4199 #include <stdlib.h>
4200 #include <stdarg.h>
4201 #include <string.h>
4202 #include <float.h>
4203
4204 int
4205 main ()
4206 {
4207
4208   ;
4209   return 0;
4210 }
4211 _ACEOF
4212 rm -f conftest.$ac_objext
4213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4214   (eval $ac_compile) 2>conftest.er1
4215   ac_status=$?
4216   grep -v '^ *+' conftest.er1 >conftest.err
4217   rm -f conftest.er1
4218   cat conftest.err >&5
4219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220   (exit $ac_status); } &&
4221          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4223   (eval $ac_try) 2>&5
4224   ac_status=$?
4225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226   (exit $ac_status); }; } &&
4227          { ac_try='test -s conftest.$ac_objext'
4228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4229   (eval $ac_try) 2>&5
4230   ac_status=$?
4231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232   (exit $ac_status); }; }; then
4233   ac_cv_header_stdc=yes
4234 else
4235   echo "$as_me: failed program was:" >&5
4236 sed 's/^/| /' conftest.$ac_ext >&5
4237
4238 ac_cv_header_stdc=no
4239 fi
4240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4241
4242 if test $ac_cv_header_stdc = yes; then
4243   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4244   cat >conftest.$ac_ext <<_ACEOF
4245 /* confdefs.h.  */
4246 _ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h.  */
4250 #include <string.h>
4251
4252 _ACEOF
4253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4254   $EGREP "memchr" >/dev/null 2>&1; then
4255   :
4256 else
4257   ac_cv_header_stdc=no
4258 fi
4259 rm -f conftest*
4260
4261 fi
4262
4263 if test $ac_cv_header_stdc = yes; then
4264   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4265   cat >conftest.$ac_ext <<_ACEOF
4266 /* confdefs.h.  */
4267 _ACEOF
4268 cat confdefs.h >>conftest.$ac_ext
4269 cat >>conftest.$ac_ext <<_ACEOF
4270 /* end confdefs.h.  */
4271 #include <stdlib.h>
4272
4273 _ACEOF
4274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4275   $EGREP "free" >/dev/null 2>&1; then
4276   :
4277 else
4278   ac_cv_header_stdc=no
4279 fi
4280 rm -f conftest*
4281
4282 fi
4283
4284 if test $ac_cv_header_stdc = yes; then
4285   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4286   if test "$cross_compiling" = yes; then
4287   :
4288 else
4289   cat >conftest.$ac_ext <<_ACEOF
4290 /* confdefs.h.  */
4291 _ACEOF
4292 cat confdefs.h >>conftest.$ac_ext
4293 cat >>conftest.$ac_ext <<_ACEOF
4294 /* end confdefs.h.  */
4295 #include <ctype.h>
4296 #if ((' ' & 0x0FF) == 0x020)
4297 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4298 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4299 #else
4300 # define ISLOWER(c) \
4301                    (('a' <= (c) && (c) <= 'i') \
4302                      || ('j' <= (c) && (c) <= 'r') \
4303                      || ('s' <= (c) && (c) <= 'z'))
4304 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4305 #endif
4306
4307 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4308 int
4309 main ()
4310 {
4311   int i;
4312   for (i = 0; i < 256; i++)
4313     if (XOR (islower (i), ISLOWER (i))
4314         || toupper (i) != TOUPPER (i))
4315       exit(2);
4316   exit (0);
4317 }
4318 _ACEOF
4319 rm -f conftest$ac_exeext
4320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4321   (eval $ac_link) 2>&5
4322   ac_status=$?
4323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4326   (eval $ac_try) 2>&5
4327   ac_status=$?
4328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329   (exit $ac_status); }; }; then
4330   :
4331 else
4332   echo "$as_me: program exited with status $ac_status" >&5
4333 echo "$as_me: failed program was:" >&5
4334 sed 's/^/| /' conftest.$ac_ext >&5
4335
4336 ( exit $ac_status )
4337 ac_cv_header_stdc=no
4338 fi
4339 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4340 fi
4341 fi
4342 fi
4343 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4344 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4345 if test $ac_cv_header_stdc = yes; then
4346
4347 cat >>confdefs.h <<\_ACEOF
4348 #define STDC_HEADERS 1
4349 _ACEOF
4350
4351 fi
4352
4353
4354
4355
4356
4357
4358
4359 for ac_header in stdlib.h stdio.h string.h stddef.h math.h unistd.h
4360 do
4361 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4363   echo "$as_me:$LINENO: checking for $ac_header" >&5
4364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4366   echo $ECHO_N "(cached) $ECHO_C" >&6
4367 fi
4368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4369 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4370 else
4371   # Is the header compilable?
4372 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4373 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4374 cat >conftest.$ac_ext <<_ACEOF
4375 /* confdefs.h.  */
4376 _ACEOF
4377 cat confdefs.h >>conftest.$ac_ext
4378 cat >>conftest.$ac_ext <<_ACEOF
4379 /* end confdefs.h.  */
4380 $ac_includes_default
4381 #include <$ac_header>
4382 _ACEOF
4383 rm -f conftest.$ac_objext
4384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4385   (eval $ac_compile) 2>conftest.er1
4386   ac_status=$?
4387   grep -v '^ *+' conftest.er1 >conftest.err
4388   rm -f conftest.er1
4389   cat conftest.err >&5
4390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391   (exit $ac_status); } &&
4392          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4394   (eval $ac_try) 2>&5
4395   ac_status=$?
4396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397   (exit $ac_status); }; } &&
4398          { ac_try='test -s conftest.$ac_objext'
4399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4400   (eval $ac_try) 2>&5
4401   ac_status=$?
4402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403   (exit $ac_status); }; }; then
4404   ac_header_compiler=yes
4405 else
4406   echo "$as_me: failed program was:" >&5
4407 sed 's/^/| /' conftest.$ac_ext >&5
4408
4409 ac_header_compiler=no
4410 fi
4411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4412 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4413 echo "${ECHO_T}$ac_header_compiler" >&6
4414
4415 # Is the header present?
4416 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4417 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4418 cat >conftest.$ac_ext <<_ACEOF
4419 /* confdefs.h.  */
4420 _ACEOF
4421 cat confdefs.h >>conftest.$ac_ext
4422 cat >>conftest.$ac_ext <<_ACEOF
4423 /* end confdefs.h.  */
4424 #include <$ac_header>
4425 _ACEOF
4426 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4427   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4428   ac_status=$?
4429   grep -v '^ *+' conftest.er1 >conftest.err
4430   rm -f conftest.er1
4431   cat conftest.err >&5
4432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433   (exit $ac_status); } >/dev/null; then
4434   if test -s conftest.err; then
4435     ac_cpp_err=$ac_c_preproc_warn_flag
4436     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4437   else
4438     ac_cpp_err=
4439   fi
4440 else
4441   ac_cpp_err=yes
4442 fi
4443 if test -z "$ac_cpp_err"; then
4444   ac_header_preproc=yes
4445 else
4446   echo "$as_me: failed program was:" >&5
4447 sed 's/^/| /' conftest.$ac_ext >&5
4448
4449   ac_header_preproc=no
4450 fi
4451 rm -f conftest.err conftest.$ac_ext
4452 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4453 echo "${ECHO_T}$ac_header_preproc" >&6
4454
4455 # So?  What about this header?
4456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4457   yes:no: )
4458     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4459 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4460     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4461 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4462     ac_header_preproc=yes
4463     ;;
4464   no:yes:* )
4465     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4466 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4467     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4468 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4469     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4470 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4471     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4472 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4473     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4474 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4475     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4476 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4477     (
4478       cat <<\_ASBOX
4479 ## ------------------------------------------------------ ##
4480 ## Report this to the GNU Fortran Runtime Library lists.  ##
4481 ## ------------------------------------------------------ ##
4482 _ASBOX
4483     ) |
4484       sed "s/^/$as_me: WARNING:     /" >&2
4485     ;;
4486 esac
4487 echo "$as_me:$LINENO: checking for $ac_header" >&5
4488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4490   echo $ECHO_N "(cached) $ECHO_C" >&6
4491 else
4492   eval "$as_ac_Header=\$ac_header_preproc"
4493 fi
4494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4496
4497 fi
4498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4499   cat >>confdefs.h <<_ACEOF
4500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4501 _ACEOF
4502
4503 fi
4504
4505 done
4506
4507
4508
4509
4510
4511
4512 for ac_header in time.h sys/params.h sys/time.h sys/times.h sys/resource.h
4513 do
4514 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4516   echo "$as_me:$LINENO: checking for $ac_header" >&5
4517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4519   echo $ECHO_N "(cached) $ECHO_C" >&6
4520 fi
4521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4522 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4523 else
4524   # Is the header compilable?
4525 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4526 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4527 cat >conftest.$ac_ext <<_ACEOF
4528 /* confdefs.h.  */
4529 _ACEOF
4530 cat confdefs.h >>conftest.$ac_ext
4531 cat >>conftest.$ac_ext <<_ACEOF
4532 /* end confdefs.h.  */
4533 $ac_includes_default
4534 #include <$ac_header>
4535 _ACEOF
4536 rm -f conftest.$ac_objext
4537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4538   (eval $ac_compile) 2>conftest.er1
4539   ac_status=$?
4540   grep -v '^ *+' conftest.er1 >conftest.err
4541   rm -f conftest.er1
4542   cat conftest.err >&5
4543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544   (exit $ac_status); } &&
4545          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4547   (eval $ac_try) 2>&5
4548   ac_status=$?
4549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550   (exit $ac_status); }; } &&
4551          { ac_try='test -s conftest.$ac_objext'
4552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4553   (eval $ac_try) 2>&5
4554   ac_status=$?
4555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556   (exit $ac_status); }; }; then
4557   ac_header_compiler=yes
4558 else
4559   echo "$as_me: failed program was:" >&5
4560 sed 's/^/| /' conftest.$ac_ext >&5
4561
4562 ac_header_compiler=no
4563 fi
4564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4565 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4566 echo "${ECHO_T}$ac_header_compiler" >&6
4567
4568 # Is the header present?
4569 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4570 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4571 cat >conftest.$ac_ext <<_ACEOF
4572 /* confdefs.h.  */
4573 _ACEOF
4574 cat confdefs.h >>conftest.$ac_ext
4575 cat >>conftest.$ac_ext <<_ACEOF
4576 /* end confdefs.h.  */
4577 #include <$ac_header>
4578 _ACEOF
4579 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4580   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4581   ac_status=$?
4582   grep -v '^ *+' conftest.er1 >conftest.err
4583   rm -f conftest.er1
4584   cat conftest.err >&5
4585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586   (exit $ac_status); } >/dev/null; then
4587   if test -s conftest.err; then
4588     ac_cpp_err=$ac_c_preproc_warn_flag
4589     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4590   else
4591     ac_cpp_err=
4592   fi
4593 else
4594   ac_cpp_err=yes
4595 fi
4596 if test -z "$ac_cpp_err"; then
4597   ac_header_preproc=yes
4598 else
4599   echo "$as_me: failed program was:" >&5
4600 sed 's/^/| /' conftest.$ac_ext >&5
4601
4602   ac_header_preproc=no
4603 fi
4604 rm -f conftest.err conftest.$ac_ext
4605 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4606 echo "${ECHO_T}$ac_header_preproc" >&6
4607
4608 # So?  What about this header?
4609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4610   yes:no: )
4611     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4612 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4613     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4614 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4615     ac_header_preproc=yes
4616     ;;
4617   no:yes:* )
4618     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4619 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4620     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4621 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4622     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4623 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4624     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4625 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4626     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4627 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4628     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4629 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4630     (
4631       cat <<\_ASBOX
4632 ## ------------------------------------------------------ ##
4633 ## Report this to the GNU Fortran Runtime Library lists.  ##
4634 ## ------------------------------------------------------ ##
4635 _ASBOX
4636     ) |
4637       sed "s/^/$as_me: WARNING:     /" >&2
4638     ;;
4639 esac
4640 echo "$as_me:$LINENO: checking for $ac_header" >&5
4641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4642 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4643   echo $ECHO_N "(cached) $ECHO_C" >&6
4644 else
4645   eval "$as_ac_Header=\$ac_header_preproc"
4646 fi
4647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4648 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4649
4650 fi
4651 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4652   cat >>confdefs.h <<_ACEOF
4653 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4654 _ACEOF
4655
4656 fi
4657
4658 done
4659
4660 if test "${ac_cv_header_complex_h+set}" = set; then
4661   echo "$as_me:$LINENO: checking for complex.h" >&5
4662 echo $ECHO_N "checking for complex.h... $ECHO_C" >&6
4663 if test "${ac_cv_header_complex_h+set}" = set; then
4664   echo $ECHO_N "(cached) $ECHO_C" >&6
4665 fi
4666 echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5
4667 echo "${ECHO_T}$ac_cv_header_complex_h" >&6
4668 else
4669   # Is the header compilable?
4670 echo "$as_me:$LINENO: checking complex.h usability" >&5
4671 echo $ECHO_N "checking complex.h usability... $ECHO_C" >&6
4672 cat >conftest.$ac_ext <<_ACEOF
4673 /* confdefs.h.  */
4674 _ACEOF
4675 cat confdefs.h >>conftest.$ac_ext
4676 cat >>conftest.$ac_ext <<_ACEOF
4677 /* end confdefs.h.  */
4678 $ac_includes_default
4679 #include <complex.h>
4680 _ACEOF
4681 rm -f conftest.$ac_objext
4682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4683   (eval $ac_compile) 2>conftest.er1
4684   ac_status=$?
4685   grep -v '^ *+' conftest.er1 >conftest.err
4686   rm -f conftest.er1
4687   cat conftest.err >&5
4688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689   (exit $ac_status); } &&
4690          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4692   (eval $ac_try) 2>&5
4693   ac_status=$?
4694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695   (exit $ac_status); }; } &&
4696          { ac_try='test -s conftest.$ac_objext'
4697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4698   (eval $ac_try) 2>&5
4699   ac_status=$?
4700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701   (exit $ac_status); }; }; then
4702   ac_header_compiler=yes
4703 else
4704   echo "$as_me: failed program was:" >&5
4705 sed 's/^/| /' conftest.$ac_ext >&5
4706
4707 ac_header_compiler=no
4708 fi
4709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4710 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4711 echo "${ECHO_T}$ac_header_compiler" >&6
4712
4713 # Is the header present?
4714 echo "$as_me:$LINENO: checking complex.h presence" >&5
4715 echo $ECHO_N "checking complex.h presence... $ECHO_C" >&6
4716 cat >conftest.$ac_ext <<_ACEOF
4717 /* confdefs.h.  */
4718 _ACEOF
4719 cat confdefs.h >>conftest.$ac_ext
4720 cat >>conftest.$ac_ext <<_ACEOF
4721 /* end confdefs.h.  */
4722 #include <complex.h>
4723 _ACEOF
4724 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4725   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4726   ac_status=$?
4727   grep -v '^ *+' conftest.er1 >conftest.err
4728   rm -f conftest.er1
4729   cat conftest.err >&5
4730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731   (exit $ac_status); } >/dev/null; then
4732   if test -s conftest.err; then
4733     ac_cpp_err=$ac_c_preproc_warn_flag
4734     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4735   else
4736     ac_cpp_err=
4737   fi
4738 else
4739   ac_cpp_err=yes
4740 fi
4741 if test -z "$ac_cpp_err"; then
4742   ac_header_preproc=yes
4743 else
4744   echo "$as_me: failed program was:" >&5
4745 sed 's/^/| /' conftest.$ac_ext >&5
4746
4747   ac_header_preproc=no
4748 fi
4749 rm -f conftest.err conftest.$ac_ext
4750 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4751 echo "${ECHO_T}$ac_header_preproc" >&6
4752
4753 # So?  What about this header?
4754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4755   yes:no: )
4756     { echo "$as_me:$LINENO: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&5
4757 echo "$as_me: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4758     { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the compiler's result" >&5
4759 echo "$as_me: WARNING: complex.h: proceeding with the compiler's result" >&2;}
4760     ac_header_preproc=yes
4761     ;;
4762   no:yes:* )
4763     { echo "$as_me:$LINENO: WARNING: complex.h: present but cannot be compiled" >&5
4764 echo "$as_me: WARNING: complex.h: present but cannot be compiled" >&2;}
4765     { echo "$as_me:$LINENO: WARNING: complex.h:     check for missing prerequisite headers?" >&5
4766 echo "$as_me: WARNING: complex.h:     check for missing prerequisite headers?" >&2;}
4767     { echo "$as_me:$LINENO: WARNING: complex.h: see the Autoconf documentation" >&5
4768 echo "$as_me: WARNING: complex.h: see the Autoconf documentation" >&2;}
4769     { echo "$as_me:$LINENO: WARNING: complex.h:     section \"Present But Cannot Be Compiled\"" >&5
4770 echo "$as_me: WARNING: complex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4771     { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the preprocessor's result" >&5
4772 echo "$as_me: WARNING: complex.h: proceeding with the preprocessor's result" >&2;}
4773     { echo "$as_me:$LINENO: WARNING: complex.h: in the future, the compiler will take precedence" >&5
4774 echo "$as_me: WARNING: complex.h: in the future, the compiler will take precedence" >&2;}
4775     (
4776       cat <<\_ASBOX
4777 ## ------------------------------------------------------ ##
4778 ## Report this to the GNU Fortran Runtime Library lists.  ##
4779 ## ------------------------------------------------------ ##
4780 _ASBOX
4781     ) |
4782       sed "s/^/$as_me: WARNING:     /" >&2
4783     ;;
4784 esac
4785 echo "$as_me:$LINENO: checking for complex.h" >&5
4786 echo $ECHO_N "checking for complex.h... $ECHO_C" >&6
4787 if test "${ac_cv_header_complex_h+set}" = set; then
4788   echo $ECHO_N "(cached) $ECHO_C" >&6
4789 else
4790   ac_cv_header_complex_h=$ac_header_preproc
4791 fi
4792 echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5
4793 echo "${ECHO_T}$ac_cv_header_complex_h" >&6
4794
4795 fi
4796 if test $ac_cv_header_complex_h = yes; then
4797
4798 cat >>confdefs.h <<\_ACEOF
4799 #define HAVE_COMPLEX_H 1
4800 _ACEOF
4801
4802 fi
4803
4804
4805 # Check for complex math functions
4806 echo "$as_me:$LINENO: checking for csin in -lm" >&5
4807 echo $ECHO_N "checking for csin in -lm... $ECHO_C" >&6
4808 if test "${ac_cv_lib_m_csin+set}" = set; then
4809   echo $ECHO_N "(cached) $ECHO_C" >&6
4810 else
4811   ac_check_lib_save_LIBS=$LIBS
4812 LIBS="-lm  $LIBS"
4813 cat >conftest.$ac_ext <<_ACEOF
4814 /* confdefs.h.  */
4815 _ACEOF
4816 cat confdefs.h >>conftest.$ac_ext
4817 cat >>conftest.$ac_ext <<_ACEOF
4818 /* end confdefs.h.  */
4819
4820 /* Override any gcc2 internal prototype to avoid an error.  */
4821 #ifdef __cplusplus
4822 extern "C"
4823 #endif
4824 /* We use char because int might match the return type of a gcc2
4825    builtin and then its argument prototype would still apply.  */
4826 char csin ();
4827 int
4828 main ()
4829 {
4830 csin ();
4831   ;
4832   return 0;
4833 }
4834 _ACEOF
4835 rm -f conftest.$ac_objext conftest$ac_exeext
4836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4837   (eval $ac_link) 2>conftest.er1
4838   ac_status=$?
4839   grep -v '^ *+' conftest.er1 >conftest.err
4840   rm -f conftest.er1
4841   cat conftest.err >&5
4842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843   (exit $ac_status); } &&
4844          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
4850          { ac_try='test -s conftest$ac_exeext'
4851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4852   (eval $ac_try) 2>&5
4853   ac_status=$?
4854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855   (exit $ac_status); }; }; then
4856   ac_cv_lib_m_csin=yes
4857 else
4858   echo "$as_me: failed program was:" >&5
4859 sed 's/^/| /' conftest.$ac_ext >&5
4860
4861 ac_cv_lib_m_csin=no
4862 fi
4863 rm -f conftest.err conftest.$ac_objext \
4864       conftest$ac_exeext conftest.$ac_ext
4865 LIBS=$ac_check_lib_save_LIBS
4866 fi
4867 echo "$as_me:$LINENO: result: $ac_cv_lib_m_csin" >&5
4868 echo "${ECHO_T}$ac_cv_lib_m_csin" >&6
4869 if test $ac_cv_lib_m_csin = yes; then
4870   need_math="no"
4871 else
4872   need_math="yes"
4873 fi
4874
4875
4876 # Check for complex math functions in -lmx also
4877 echo "$as_me:$LINENO: checking for csin in -lmx" >&5
4878 echo $ECHO_N "checking for csin in -lmx... $ECHO_C" >&6
4879 if test "${ac_cv_lib_mx_csin+set}" = set; then
4880   echo $ECHO_N "(cached) $ECHO_C" >&6
4881 else
4882   ac_check_lib_save_LIBS=$LIBS
4883 LIBS="-lmx  $LIBS"
4884 cat >conftest.$ac_ext <<_ACEOF
4885 /* confdefs.h.  */
4886 _ACEOF
4887 cat confdefs.h >>conftest.$ac_ext
4888 cat >>conftest.$ac_ext <<_ACEOF
4889 /* end confdefs.h.  */
4890
4891 /* Override any gcc2 internal prototype to avoid an error.  */
4892 #ifdef __cplusplus
4893 extern "C"
4894 #endif
4895 /* We use char because int might match the return type of a gcc2
4896    builtin and then its argument prototype would still apply.  */
4897 char csin ();
4898 int
4899 main ()
4900 {
4901 csin ();
4902   ;
4903   return 0;
4904 }
4905 _ACEOF
4906 rm -f conftest.$ac_objext conftest$ac_exeext
4907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4908   (eval $ac_link) 2>conftest.er1
4909   ac_status=$?
4910   grep -v '^ *+' conftest.er1 >conftest.err
4911   rm -f conftest.er1
4912   cat conftest.err >&5
4913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914   (exit $ac_status); } &&
4915          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4917   (eval $ac_try) 2>&5
4918   ac_status=$?
4919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920   (exit $ac_status); }; } &&
4921          { ac_try='test -s conftest$ac_exeext'
4922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4923   (eval $ac_try) 2>&5
4924   ac_status=$?
4925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926   (exit $ac_status); }; }; then
4927   ac_cv_lib_mx_csin=yes
4928 else
4929   echo "$as_me: failed program was:" >&5
4930 sed 's/^/| /' conftest.$ac_ext >&5
4931
4932 ac_cv_lib_mx_csin=no
4933 fi
4934 rm -f conftest.err conftest.$ac_objext \
4935       conftest$ac_exeext conftest.$ac_ext
4936 LIBS=$ac_check_lib_save_LIBS
4937 fi
4938 echo "$as_me:$LINENO: result: $ac_cv_lib_mx_csin" >&5
4939 echo "${ECHO_T}$ac_cv_lib_mx_csin" >&6
4940 if test $ac_cv_lib_mx_csin = yes; then
4941   need_math="no"
4942 else
4943   need_math="yes"
4944 fi
4945
4946
4947
4948
4949 for ac_func in getrusage times
4950 do
4951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4952 echo "$as_me:$LINENO: checking for $ac_func" >&5
4953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4954 if eval "test \"\${$as_ac_var+set}\" = set"; then
4955   echo $ECHO_N "(cached) $ECHO_C" >&6
4956 else
4957   cat >conftest.$ac_ext <<_ACEOF
4958 /* confdefs.h.  */
4959 _ACEOF
4960 cat confdefs.h >>conftest.$ac_ext
4961 cat >>conftest.$ac_ext <<_ACEOF
4962 /* end confdefs.h.  */
4963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4964    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4965 #define $ac_func innocuous_$ac_func
4966
4967 /* System header to define __stub macros and hopefully few prototypes,
4968     which can conflict with char $ac_func (); below.
4969     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4970     <limits.h> exists even on freestanding compilers.  */
4971
4972 #ifdef __STDC__
4973 # include <limits.h>
4974 #else
4975 # include <assert.h>
4976 #endif
4977
4978 #undef $ac_func
4979
4980 /* Override any gcc2 internal prototype to avoid an error.  */
4981 #ifdef __cplusplus
4982 extern "C"
4983 {
4984 #endif
4985 /* We use char because int might match the return type of a gcc2
4986    builtin and then its argument prototype would still apply.  */
4987 char $ac_func ();
4988 /* The GNU C library defines this for functions which it implements
4989     to always fail with ENOSYS.  Some functions are actually named
4990     something starting with __ and the normal name is an alias.  */
4991 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4992 choke me
4993 #else
4994 char (*f) () = $ac_func;
4995 #endif
4996 #ifdef __cplusplus
4997 }
4998 #endif
4999
5000 int
5001 main ()
5002 {
5003 return f != $ac_func;
5004   ;
5005   return 0;
5006 }
5007 _ACEOF
5008 rm -f conftest.$ac_objext conftest$ac_exeext
5009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5010   (eval $ac_link) 2>conftest.er1
5011   ac_status=$?
5012   grep -v '^ *+' conftest.er1 >conftest.err
5013   rm -f conftest.er1
5014   cat conftest.err >&5
5015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016   (exit $ac_status); } &&
5017          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5019   (eval $ac_try) 2>&5
5020   ac_status=$?
5021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022   (exit $ac_status); }; } &&
5023          { ac_try='test -s conftest$ac_exeext'
5024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5025   (eval $ac_try) 2>&5
5026   ac_status=$?
5027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028   (exit $ac_status); }; }; then
5029   eval "$as_ac_var=yes"
5030 else
5031   echo "$as_me: failed program was:" >&5
5032 sed 's/^/| /' conftest.$ac_ext >&5
5033
5034 eval "$as_ac_var=no"
5035 fi
5036 rm -f conftest.err conftest.$ac_objext \
5037       conftest$ac_exeext conftest.$ac_ext
5038 fi
5039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5040 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5041 if test `eval echo '${'$as_ac_var'}'` = yes; then
5042   cat >>confdefs.h <<_ACEOF
5043 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5044 _ACEOF
5045
5046 fi
5047 done
5048
5049
5050 # Let the user override this
5051 # Check whether --enable-cmath or --disable-cmath was given.
5052 if test "${enable_cmath+set}" = set; then
5053   enableval="$enable_cmath"
5054   need_math=$enableval
5055 fi;
5056 if test "$need_math" = "yes"; then
5057         { echo "$as_me:$LINENO: Including complex math functions in libgfor" >&5
5058 echo "$as_me: Including complex math functions in libgfor" >&6;};
5059   extra_math_obj='$(gfor_cmath_obj)'
5060 fi
5061
5062 MATH_OBJ="$extra_math_obj"
5063
5064
5065 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5066 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5067 if test "${ac_cv_header_time+set}" = set; then
5068   echo $ECHO_N "(cached) $ECHO_C" >&6
5069 else
5070   cat >conftest.$ac_ext <<_ACEOF
5071 /* confdefs.h.  */
5072 _ACEOF
5073 cat confdefs.h >>conftest.$ac_ext
5074 cat >>conftest.$ac_ext <<_ACEOF
5075 /* end confdefs.h.  */
5076 #include <sys/types.h>
5077 #include <sys/time.h>
5078 #include <time.h>
5079
5080 int
5081 main ()
5082 {
5083 if ((struct tm *) 0)
5084 return 0;
5085   ;
5086   return 0;
5087 }
5088 _ACEOF
5089 rm -f conftest.$ac_objext
5090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5091   (eval $ac_compile) 2>conftest.er1
5092   ac_status=$?
5093   grep -v '^ *+' conftest.er1 >conftest.err
5094   rm -f conftest.er1
5095   cat conftest.err >&5
5096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097   (exit $ac_status); } &&
5098          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5100   (eval $ac_try) 2>&5
5101   ac_status=$?
5102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103   (exit $ac_status); }; } &&
5104          { ac_try='test -s conftest.$ac_objext'
5105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106   (eval $ac_try) 2>&5
5107   ac_status=$?
5108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109   (exit $ac_status); }; }; then
5110   ac_cv_header_time=yes
5111 else
5112   echo "$as_me: failed program was:" >&5
5113 sed 's/^/| /' conftest.$ac_ext >&5
5114
5115 ac_cv_header_time=no
5116 fi
5117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5118 fi
5119 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5120 echo "${ECHO_T}$ac_cv_header_time" >&6
5121 if test $ac_cv_header_time = yes; then
5122
5123 cat >>confdefs.h <<\_ACEOF
5124 #define TIME_WITH_SYS_TIME 1
5125 _ACEOF
5126
5127 fi
5128
5129
5130
5131 for ac_func in gettimeofday
5132 do
5133 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5134 echo "$as_me:$LINENO: checking for $ac_func" >&5
5135 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5136 if eval "test \"\${$as_ac_var+set}\" = set"; then
5137   echo $ECHO_N "(cached) $ECHO_C" >&6
5138 else
5139   cat >conftest.$ac_ext <<_ACEOF
5140 /* confdefs.h.  */
5141 _ACEOF
5142 cat confdefs.h >>conftest.$ac_ext
5143 cat >>conftest.$ac_ext <<_ACEOF
5144 /* end confdefs.h.  */
5145 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5146    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5147 #define $ac_func innocuous_$ac_func
5148
5149 /* System header to define __stub macros and hopefully few prototypes,
5150     which can conflict with char $ac_func (); below.
5151     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5152     <limits.h> exists even on freestanding compilers.  */
5153
5154 #ifdef __STDC__
5155 # include <limits.h>
5156 #else
5157 # include <assert.h>
5158 #endif
5159
5160 #undef $ac_func
5161
5162 /* Override any gcc2 internal prototype to avoid an error.  */
5163 #ifdef __cplusplus
5164 extern "C"
5165 {
5166 #endif
5167 /* We use char because int might match the return type of a gcc2
5168    builtin and then its argument prototype would still apply.  */
5169 char $ac_func ();
5170 /* The GNU C library defines this for functions which it implements
5171     to always fail with ENOSYS.  Some functions are actually named
5172     something starting with __ and the normal name is an alias.  */
5173 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5174 choke me
5175 #else
5176 char (*f) () = $ac_func;
5177 #endif
5178 #ifdef __cplusplus
5179 }
5180 #endif
5181
5182 int
5183 main ()
5184 {
5185 return f != $ac_func;
5186   ;
5187   return 0;
5188 }
5189 _ACEOF
5190 rm -f conftest.$ac_objext conftest$ac_exeext
5191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5192   (eval $ac_link) 2>conftest.er1
5193   ac_status=$?
5194   grep -v '^ *+' conftest.er1 >conftest.err
5195   rm -f conftest.er1
5196   cat conftest.err >&5
5197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198   (exit $ac_status); } &&
5199          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5201   (eval $ac_try) 2>&5
5202   ac_status=$?
5203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204   (exit $ac_status); }; } &&
5205          { ac_try='test -s conftest$ac_exeext'
5206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5207   (eval $ac_try) 2>&5
5208   ac_status=$?
5209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210   (exit $ac_status); }; }; then
5211   eval "$as_ac_var=yes"
5212 else
5213   echo "$as_me: failed program was:" >&5
5214 sed 's/^/| /' conftest.$ac_ext >&5
5215
5216 eval "$as_ac_var=no"
5217 fi
5218 rm -f conftest.err conftest.$ac_objext \
5219       conftest$ac_exeext conftest.$ac_ext
5220 fi
5221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5222 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5223 if test `eval echo '${'$as_ac_var'}'` = yes; then
5224   cat >>confdefs.h <<_ACEOF
5225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5226 _ACEOF
5227
5228 fi
5229 done
5230
5231   if test "$ac_cv_func_gettimeofday" = yes; then
5232     echo "$as_me:$LINENO: checking for struct timezone" >&5
5233 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
5234 if test "${gfor_cv_struct_timezone+set}" = set; then
5235   echo $ECHO_N "(cached) $ECHO_C" >&6
5236 else
5237   cat >conftest.$ac_ext <<_ACEOF
5238 /* confdefs.h.  */
5239 _ACEOF
5240 cat confdefs.h >>conftest.$ac_ext
5241 cat >>conftest.$ac_ext <<_ACEOF
5242 /* end confdefs.h.  */
5243 #include <sys/time.h>
5244 int
5245 main ()
5246 {
5247 struct timezone tz;
5248   ;
5249   return 0;
5250 }
5251 _ACEOF
5252 rm -f conftest.$ac_objext
5253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5254   (eval $ac_compile) 2>conftest.er1
5255   ac_status=$?
5256   grep -v '^ *+' conftest.er1 >conftest.err
5257   rm -f conftest.er1
5258   cat conftest.err >&5
5259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260   (exit $ac_status); } &&
5261          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5263   (eval $ac_try) 2>&5
5264   ac_status=$?
5265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266   (exit $ac_status); }; } &&
5267          { ac_try='test -s conftest.$ac_objext'
5268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5269   (eval $ac_try) 2>&5
5270   ac_status=$?
5271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272   (exit $ac_status); }; }; then
5273   gfor_cv_struct_timezone=yes
5274 else
5275   echo "$as_me: failed program was:" >&5
5276 sed 's/^/| /' conftest.$ac_ext >&5
5277
5278 gfor_cv_struct_timezone=no
5279 fi
5280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5281 fi
5282 echo "$as_me:$LINENO: result: $gfor_cv_struct_timezone" >&5
5283 echo "${ECHO_T}$gfor_cv_struct_timezone" >&6
5284     if test $gfor_cv_struct_timezone = yes; then
5285                   if test "$cross_compiling" = yes; then
5286   gfor_have_struct_timezone=yes
5287 else
5288   cat >conftest.$ac_ext <<_ACEOF
5289 /* confdefs.h.  */
5290 _ACEOF
5291 cat confdefs.h >>conftest.$ac_ext
5292 cat >>conftest.$ac_ext <<_ACEOF
5293 /* end confdefs.h.  */
5294
5295 #ifdef TIME_WITH_SYS_TIME
5296 #include <sys/time.h>
5297 #include <time.h>
5298 #else
5299 #ifdef HAVE_SYS_TIME_H
5300 #include <sys/time.h>
5301 #else
5302 #include <time.h>
5303 #endif
5304 #endif
5305 main ()
5306 {
5307   struct timeval time;
5308   struct timezone dummy;
5309   if (gettimeofday (&time, &dummy))
5310     exit (1);
5311   else
5312     exit (0);
5313 }
5314 _ACEOF
5315 rm -f conftest$ac_exeext
5316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5317   (eval $ac_link) 2>&5
5318   ac_status=$?
5319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5322   (eval $ac_try) 2>&5
5323   ac_status=$?
5324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325   (exit $ac_status); }; }; then
5326   gfor_have_struct_timezone=yes
5327 else
5328   echo "$as_me: program exited with status $ac_status" >&5
5329 echo "$as_me: failed program was:" >&5
5330 sed 's/^/| /' conftest.$ac_ext >&5
5331
5332 ( exit $ac_status )
5333 gfor_have_struct_timezone=no
5334 fi
5335 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5336 fi
5337       if test $gfor_have_struct_timezone = yes; then
5338
5339 cat >>confdefs.h <<\_ACEOF
5340 #define HAVE_TIMEZONE 1
5341 _ACEOF
5342
5343       fi
5344     fi
5345
5346     echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
5347 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
5348 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
5349   echo $ECHO_N "(cached) $ECHO_C" >&6
5350 else
5351   cat >conftest.$ac_ext <<_ACEOF
5352 /* confdefs.h.  */
5353 _ACEOF
5354 cat confdefs.h >>conftest.$ac_ext
5355 cat >>conftest.$ac_ext <<_ACEOF
5356 /* end confdefs.h.  */
5357
5358 #ifdef TIME_WITH_SYS_TIME
5359 #include <sys/time.h>
5360 #include <time.h>
5361 #else
5362 #ifdef HAVE_SYS_TIME_H
5363 #include <sys/time.h>
5364 #else
5365 #include <time.h>
5366 #endif
5367 #endif
5368
5369 int
5370 main ()
5371 {
5372
5373       struct timeval time;
5374 #ifdef HAVE_TIMEZONE
5375       struct timezone dummy;
5376 #define DUMMY &dummy
5377 #else
5378 #define DUMMY NULL
5379 #endif
5380       gettimeofday (&time, DUMMY);
5381   ;
5382   return 0;
5383 }
5384 _ACEOF
5385 rm -f conftest.$ac_objext conftest$ac_exeext
5386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5387   (eval $ac_link) 2>conftest.er1
5388   ac_status=$?
5389   grep -v '^ *+' conftest.er1 >conftest.err
5390   rm -f conftest.er1
5391   cat conftest.err >&5
5392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393   (exit $ac_status); } &&
5394          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5396   (eval $ac_try) 2>&5
5397   ac_status=$?
5398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399   (exit $ac_status); }; } &&
5400          { ac_try='test -s conftest$ac_exeext'
5401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5402   (eval $ac_try) 2>&5
5403   ac_status=$?
5404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405   (exit $ac_status); }; }; then
5406   emacs_cv_gettimeofday_two_arguments=yes
5407 else
5408   echo "$as_me: failed program was:" >&5
5409 sed 's/^/| /' conftest.$ac_ext >&5
5410
5411 emacs_cv_gettimeofday_two_arguments=no
5412 fi
5413 rm -f conftest.err conftest.$ac_objext \
5414       conftest$ac_exeext conftest.$ac_ext
5415 fi
5416 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
5417 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
5418     if test $emacs_cv_gettimeofday_two_arguments = no; then
5419
5420 cat >>confdefs.h <<\_ACEOF
5421 #define GETTIMEOFDAY_ONE_ARGUMENT 1
5422 _ACEOF
5423
5424     fi
5425   fi
5426
5427 test "$AR" || AR=ar
5428
5429 if test "$RANLIB"; then :
5430
5431 else
5432   if test -n "$ac_tool_prefix"; then
5433   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5434 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5435 echo "$as_me:$LINENO: checking for $ac_word" >&5
5436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5437 if test "${ac_cv_prog_RANLIB+set}" = set; then
5438   echo $ECHO_N "(cached) $ECHO_C" >&6
5439 else
5440   if test -n "$RANLIB"; then
5441   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5442 else
5443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444 for as_dir in $PATH
5445 do
5446   IFS=$as_save_IFS
5447   test -z "$as_dir" && as_dir=.
5448   for ac_exec_ext in '' $ac_executable_extensions; do
5449   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5450     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5451     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5452     break 2
5453   fi
5454 done
5455 done
5456
5457 fi
5458 fi
5459 RANLIB=$ac_cv_prog_RANLIB
5460 if test -n "$RANLIB"; then
5461   echo "$as_me:$LINENO: result: $RANLIB" >&5
5462 echo "${ECHO_T}$RANLIB" >&6
5463 else
5464   echo "$as_me:$LINENO: result: no" >&5
5465 echo "${ECHO_T}no" >&6
5466 fi
5467
5468 fi
5469 if test -z "$ac_cv_prog_RANLIB"; then
5470   ac_ct_RANLIB=$RANLIB
5471   # Extract the first word of "ranlib", so it can be a program name with args.
5472 set dummy ranlib; ac_word=$2
5473 echo "$as_me:$LINENO: checking for $ac_word" >&5
5474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5475 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5476   echo $ECHO_N "(cached) $ECHO_C" >&6
5477 else
5478   if test -n "$ac_ct_RANLIB"; then
5479   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5480 else
5481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5482 for as_dir in $PATH
5483 do
5484   IFS=$as_save_IFS
5485   test -z "$as_dir" && as_dir=.
5486   for ac_exec_ext in '' $ac_executable_extensions; do
5487   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5488     ac_cv_prog_ac_ct_RANLIB="ranlib"
5489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5490     break 2
5491   fi
5492 done
5493 done
5494
5495   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5496 fi
5497 fi
5498 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5499 if test -n "$ac_ct_RANLIB"; then
5500   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5501 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5502 else
5503   echo "$as_me:$LINENO: result: no" >&5
5504 echo "${ECHO_T}no" >&6
5505 fi
5506
5507   RANLIB=$ac_ct_RANLIB
5508 else
5509   RANLIB="$ac_cv_prog_RANLIB"
5510 fi
5511
5512 fi
5513
5514 # Check whether --enable-shared or --disable-shared was given.
5515 if test "${enable_shared+set}" = set; then
5516   enableval="$enable_shared"
5517   p=${PACKAGE-default}
5518 case $enableval in
5519 yes) enable_shared=yes ;;
5520 no) enable_shared=no ;;
5521 *)
5522   enable_shared=no
5523   # Look at the argument we got.  We use all the common list separators.
5524   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5525   for pkg in $enableval; do
5526     if test "X$pkg" = "X$p"; then
5527       enable_shared=yes
5528     fi
5529   done
5530   IFS="$ac_save_ifs"
5531   ;;
5532 esac
5533 else
5534   enable_shared=yes
5535 fi;
5536 # Check whether --enable-static or --disable-static was given.
5537 if test "${enable_static+set}" = set; then
5538   enableval="$enable_static"
5539   p=${PACKAGE-default}
5540 case $enableval in
5541 yes) enable_static=yes ;;
5542 no) enable_static=no ;;
5543 *)
5544   enable_static=no
5545   # Look at the argument we got.  We use all the common list separators.
5546   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5547   for pkg in $enableval; do
5548     if test "X$pkg" = "X$p"; then
5549       enable_static=yes
5550     fi
5551   done
5552   IFS="$ac_save_ifs"
5553   ;;
5554 esac
5555 else
5556   enable_static=yes
5557 fi;
5558 # Check whether --enable-fast-install or --disable-fast-install was given.
5559 if test "${enable_fast_install+set}" = set; then
5560   enableval="$enable_fast_install"
5561   p=${PACKAGE-default}
5562 case $enableval in
5563 yes) enable_fast_install=yes ;;
5564 no) enable_fast_install=no ;;
5565 *)
5566   enable_fast_install=no
5567   # Look at the argument we got.  We use all the common list separators.
5568   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5569   for pkg in $enableval; do
5570     if test "X$pkg" = "X$p"; then
5571       enable_fast_install=yes
5572     fi
5573   done
5574   IFS="$ac_save_ifs"
5575   ;;
5576 esac
5577 else
5578   enable_fast_install=yes
5579 fi;
5580 # Make sure we can run config.sub.
5581 $ac_config_sub sun4 >/dev/null 2>&1 ||
5582   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
5583 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
5584    { (exit 1); exit 1; }; }
5585
5586 echo "$as_me:$LINENO: checking build system type" >&5
5587 echo $ECHO_N "checking build system type... $ECHO_C" >&6
5588 if test "${ac_cv_build+set}" = set; then
5589   echo $ECHO_N "(cached) $ECHO_C" >&6
5590 else
5591   ac_cv_build_alias=$build_alias
5592 test -z "$ac_cv_build_alias" &&
5593   ac_cv_build_alias=`$ac_config_guess`
5594 test -z "$ac_cv_build_alias" &&
5595   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5596 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5597    { (exit 1); exit 1; }; }
5598 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
5599   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
5600 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
5601    { (exit 1); exit 1; }; }
5602
5603 fi
5604 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5605 echo "${ECHO_T}$ac_cv_build" >&6
5606 build=$ac_cv_build
5607 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5608 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5609 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5610
5611
5612 echo "$as_me:$LINENO: checking host system type" >&5
5613 echo $ECHO_N "checking host system type... $ECHO_C" >&6
5614 if test "${ac_cv_host+set}" = set; then
5615   echo $ECHO_N "(cached) $ECHO_C" >&6
5616 else
5617   ac_cv_host_alias=$host_alias
5618 test -z "$ac_cv_host_alias" &&
5619   ac_cv_host_alias=$ac_cv_build_alias
5620 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5621   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5622 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5623    { (exit 1); exit 1; }; }
5624
5625 fi
5626 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5627 echo "${ECHO_T}$ac_cv_host" >&6
5628 host=$ac_cv_host
5629 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5630 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5631 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5632
5633
5634
5635 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5636 if test "${with_gnu_ld+set}" = set; then
5637   withval="$with_gnu_ld"
5638   test "$withval" = no || with_gnu_ld=yes
5639 else
5640   with_gnu_ld=no
5641 fi;
5642 ac_prog=ld
5643 if test "$GCC" = yes; then
5644   # Check if gcc -print-prog-name=ld gives a path.
5645   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5646 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5647   case $host in
5648   *-*-mingw*)
5649     # gcc leaves a trailing carriage return which upsets mingw
5650     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5651   *)
5652     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5653   esac
5654   case $ac_prog in
5655     # Accept absolute paths.
5656     [\\/]* | [A-Za-z]:[\\/]*)
5657       re_direlt='/[^/][^/]*/\.\./'
5658       # Canonicalize the path of ld
5659       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5660       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5661         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5662       done
5663       test -z "$LD" && LD="$ac_prog"
5664       ;;
5665   "")
5666     # If it fails, then pretend we aren't using GCC.
5667     ac_prog=ld
5668     ;;
5669   *)
5670     # If it is relative, then search for the first ld in PATH.
5671     with_gnu_ld=unknown
5672     ;;
5673   esac
5674 elif test "$with_gnu_ld" = yes; then
5675   echo "$as_me:$LINENO: checking for GNU ld" >&5
5676 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5677 else
5678   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5679 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5680 fi
5681 if test "${lt_cv_path_LD+set}" = set; then
5682   echo $ECHO_N "(cached) $ECHO_C" >&6
5683 else
5684   if test -z "$LD"; then
5685   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5686   for ac_dir in $PATH; do
5687     test -z "$ac_dir" && ac_dir=.
5688     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5689       lt_cv_path_LD="$ac_dir/$ac_prog"
5690       # Check to see if the program is GNU ld.  I'd rather use --version,
5691       # but apparently some GNU ld's only accept -v.
5692       # Break only if it was the GNU/non-GNU ld that we prefer.
5693       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5694         test "$with_gnu_ld" != no && break
5695       else
5696         test "$with_gnu_ld" != yes && break
5697       fi
5698     fi
5699   done
5700   IFS="$ac_save_ifs"
5701 else
5702   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5703 fi
5704 fi
5705
5706 LD="$lt_cv_path_LD"
5707 if test -n "$LD"; then
5708   echo "$as_me:$LINENO: result: $LD" >&5
5709 echo "${ECHO_T}$LD" >&6
5710 else
5711   echo "$as_me:$LINENO: result: no" >&5
5712 echo "${ECHO_T}no" >&6
5713 fi
5714 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5715 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5716    { (exit 1); exit 1; }; }
5717 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5718 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5719 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5720   echo $ECHO_N "(cached) $ECHO_C" >&6
5721 else
5722   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5723 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5724   lt_cv_prog_gnu_ld=yes
5725 else
5726   lt_cv_prog_gnu_ld=no
5727 fi
5728 fi
5729 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5730 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5731 with_gnu_ld=$lt_cv_prog_gnu_ld
5732
5733
5734 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5735 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5736 if test "${lt_cv_ld_reload_flag+set}" = set; then
5737   echo $ECHO_N "(cached) $ECHO_C" >&6
5738 else
5739   lt_cv_ld_reload_flag='-r'
5740 fi
5741 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5742 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5743 reload_flag=$lt_cv_ld_reload_flag
5744 test -n "$reload_flag" && reload_flag=" $reload_flag"
5745
5746 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5747 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5748 if test "${lt_cv_path_NM+set}" = set; then
5749   echo $ECHO_N "(cached) $ECHO_C" >&6
5750 else
5751   if test -n "$NM"; then
5752   # Let the user override the test.
5753   lt_cv_path_NM="$NM"
5754 else
5755   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5756   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5757     test -z "$ac_dir" && ac_dir=.
5758     tmp_nm=$ac_dir/${ac_tool_prefix}nm
5759     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
5760       # Check to see if the nm accepts a BSD-compat flag.
5761       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5762       #   nm: unknown option "B" ignored
5763       # Tru64's nm complains that /dev/null is an invalid object file
5764       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
5765         lt_cv_path_NM="$tmp_nm -B"
5766         break
5767       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
5768         lt_cv_path_NM="$tmp_nm -p"
5769         break
5770       else
5771         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5772         continue # so that we can try to find one that supports BSD flags
5773       fi
5774     fi
5775   done
5776   IFS="$ac_save_ifs"
5777   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5778 fi
5779 fi
5780
5781 NM="$lt_cv_path_NM"
5782 echo "$as_me:$LINENO: result: $NM" >&5
5783 echo "${ECHO_T}$NM" >&6
5784
5785 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5786 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5787 LN_S=$as_ln_s
5788 if test "$LN_S" = "ln -s"; then
5789   echo "$as_me:$LINENO: result: yes" >&5
5790 echo "${ECHO_T}yes" >&6
5791 else
5792   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5793 echo "${ECHO_T}no, using $LN_S" >&6
5794 fi
5795
5796 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
5797 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
5798 if test "${lt_cv_deplibs_check_method+set}" = set; then
5799   echo $ECHO_N "(cached) $ECHO_C" >&6
5800 else
5801   lt_cv_file_magic_cmd='$MAGIC_CMD'
5802 lt_cv_file_magic_test_file=
5803 lt_cv_deplibs_check_method='unknown'
5804 # Need to set the preceding variable on all platforms that support
5805 # interlibrary dependencies.
5806 # 'none' -- dependencies not supported.
5807 # `unknown' -- same as none, but documents that we really don't know.
5808 # 'pass_all' -- all dependencies passed with no checks.
5809 # 'test_compile' -- check by making test program.
5810 # 'file_magic [regex]' -- check by looking for files in library path
5811 # which responds to the $file_magic_cmd with a given egrep regex.
5812 # If you have `file' or equivalent on your system and you're not sure
5813 # whether `pass_all' will *always* work, you probably want this one.
5814
5815 case $host_os in
5816 aix*)
5817   lt_cv_deplibs_check_method=pass_all
5818   ;;
5819
5820 beos*)
5821   lt_cv_deplibs_check_method=pass_all
5822   ;;
5823
5824 bsdi4*)
5825   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5826   lt_cv_file_magic_cmd='/usr/bin/file -L'
5827   lt_cv_file_magic_test_file=/shlib/libc.so
5828   ;;
5829
5830 cygwin* | mingw* |pw32*)
5831   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5832   lt_cv_file_magic_cmd='$OBJDUMP -f'
5833   ;;
5834
5835 darwin* | rhapsody*)
5836   # this will be overwritten by pass_all, but leave it in just in case
5837   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5838   lt_cv_file_magic_cmd='/usr/bin/file -L'
5839   case "$host_os" in
5840   rhapsody* | darwin1.012)
5841     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
5842     ;;
5843   *) # Darwin 1.3 on
5844     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5845     ;;
5846   esac
5847   lt_cv_deplibs_check_method=pass_all
5848   ;;
5849
5850 freebsd* )
5851   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5852     case $host_cpu in
5853     i*86 )
5854       # Not sure whether the presence of OpenBSD here was a mistake.
5855       # Let's accept both of them until this is cleared up.
5856       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5857       lt_cv_file_magic_cmd=/usr/bin/file
5858       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5859       ;;
5860     esac
5861   else
5862     lt_cv_deplibs_check_method=pass_all
5863   fi
5864   ;;
5865
5866 gnu*)
5867   lt_cv_deplibs_check_method=pass_all
5868   ;;
5869
5870 hpux10.20*|hpux11*)
5871   case $host_cpu in
5872   hppa*)
5873     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5874     lt_cv_file_magic_cmd=/usr/bin/file
5875     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5876     ;;
5877   ia64*)
5878     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5879     lt_cv_file_magic_cmd=/usr/bin/file
5880     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5881     ;;
5882   esac
5883   ;;
5884
5885 irix5* | irix6*)
5886   case $host_os in
5887   irix5*)
5888     # this will be overridden with pass_all, but let us keep it just in case
5889     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5890     ;;
5891   *)
5892     case $LD in
5893     *-32|*"-32 ") libmagic=32-bit;;
5894     *-n32|*"-n32 ") libmagic=N32;;
5895     *-64|*"-64 ") libmagic=64-bit;;
5896     *) libmagic=never-match;;
5897     esac
5898     # this will be overridden with pass_all, but let us keep it just in case
5899     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5900     ;;
5901   esac
5902   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5903   lt_cv_deplibs_check_method=pass_all
5904   ;;
5905
5906 # This must be Linux ELF.
5907 linux-gnu*)
5908   case $host_cpu in
5909   alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
5910     lt_cv_deplibs_check_method=pass_all ;;
5911   *)
5912     # glibc up to 2.1.1 does not perform some relocations on ARM
5913     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
5914   esac
5915   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
5916   ;;
5917
5918 netbsd*)
5919   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5920     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
5921   else
5922     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
5923   fi
5924   ;;
5925
5926 newsos6)
5927   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5928   lt_cv_file_magic_cmd=/usr/bin/file
5929   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5930   ;;
5931
5932 osf3* | osf4* | osf5*)
5933   # this will be overridden with pass_all, but let us keep it just in case
5934   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5935   lt_cv_file_magic_test_file=/shlib/libc.so
5936   lt_cv_deplibs_check_method=pass_all
5937   ;;
5938
5939 sco3.2v5*)
5940   lt_cv_deplibs_check_method=pass_all
5941   ;;
5942
5943 solaris*)
5944   lt_cv_deplibs_check_method=pass_all
5945   lt_cv_file_magic_test_file=/lib/libc.so
5946   ;;
5947
5948 sysv5uw[78]* | sysv4*uw2*)
5949   lt_cv_deplibs_check_method=pass_all
5950   ;;
5951
5952 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5953   case $host_vendor in
5954   ncr)
5955     lt_cv_deplibs_check_method=pass_all
5956     ;;
5957   motorola)
5958     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]'
5959     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5960     ;;
5961   esac
5962   ;;
5963 esac
5964
5965 fi
5966 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5967 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5968 file_magic_cmd=$lt_cv_file_magic_cmd
5969 deplibs_check_method=$lt_cv_deplibs_check_method
5970
5971
5972
5973
5974 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5975
5976 # Only perform the check for file, if the check method requires it
5977 case $deplibs_check_method in
5978 file_magic*)
5979   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5980     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5981 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5982 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5983   echo $ECHO_N "(cached) $ECHO_C" >&6
5984 else
5985   case $MAGIC_CMD in
5986   /*)
5987   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5988   ;;
5989   ?:/*)
5990   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5991   ;;
5992   *)
5993   ac_save_MAGIC_CMD="$MAGIC_CMD"
5994   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5995   ac_dummy="/usr/bin:$PATH"
5996   for ac_dir in $ac_dummy; do
5997     test -z "$ac_dir" && ac_dir=.
5998     if test -f $ac_dir/${ac_tool_prefix}file; then
5999       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6000       if test -n "$file_magic_test_file"; then
6001         case $deplibs_check_method in
6002         "file_magic "*)
6003           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6004           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6005           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6006             egrep "$file_magic_regex" > /dev/null; then
6007             :
6008           else
6009             cat <<EOF 1>&2
6010
6011 *** Warning: the command libtool uses to detect shared libraries,
6012 *** $file_magic_cmd, produces output that libtool cannot recognize.
6013 *** The result is that libtool may fail to recognize shared libraries
6014 *** as such.  This will affect the creation of libtool libraries that
6015 *** depend on shared libraries, but programs linked with such libtool
6016 *** libraries will work regardless of this problem.  Nevertheless, you
6017 *** may want to report the problem to your system manager and/or to
6018 *** bug-libtool@gnu.org
6019
6020 EOF
6021           fi ;;
6022         esac
6023       fi
6024       break
6025     fi
6026   done
6027   IFS="$ac_save_ifs"
6028   MAGIC_CMD="$ac_save_MAGIC_CMD"
6029   ;;
6030 esac
6031 fi
6032
6033 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6034 if test -n "$MAGIC_CMD"; then
6035   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6036 echo "${ECHO_T}$MAGIC_CMD" >&6
6037 else
6038   echo "$as_me:$LINENO: result: no" >&5
6039 echo "${ECHO_T}no" >&6
6040 fi
6041
6042 if test -z "$lt_cv_path_MAGIC_CMD"; then
6043   if test -n "$ac_tool_prefix"; then
6044     echo "$as_me:$LINENO: checking for file" >&5
6045 echo $ECHO_N "checking for file... $ECHO_C" >&6
6046 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6047   echo $ECHO_N "(cached) $ECHO_C" >&6
6048 else
6049   case $MAGIC_CMD in
6050   /*)
6051   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6052   ;;
6053   ?:/*)
6054   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
6055   ;;
6056   *)
6057   ac_save_MAGIC_CMD="$MAGIC_CMD"
6058   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6059   ac_dummy="/usr/bin:$PATH"
6060   for ac_dir in $ac_dummy; do
6061     test -z "$ac_dir" && ac_dir=.
6062     if test -f $ac_dir/file; then
6063       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6064       if test -n "$file_magic_test_file"; then
6065         case $deplibs_check_method in
6066         "file_magic "*)
6067           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6068           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6069           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6070             egrep "$file_magic_regex" > /dev/null; then
6071             :
6072           else
6073             cat <<EOF 1>&2
6074
6075 *** Warning: the command libtool uses to detect shared libraries,
6076 *** $file_magic_cmd, produces output that libtool cannot recognize.
6077 *** The result is that libtool may fail to recognize shared libraries
6078 *** as such.  This will affect the creation of libtool libraries that
6079 *** depend on shared libraries, but programs linked with such libtool
6080 *** libraries will work regardless of this problem.  Nevertheless, you
6081 *** may want to report the problem to your system manager and/or to
6082 *** bug-libtool@gnu.org
6083
6084 EOF
6085           fi ;;
6086         esac
6087       fi
6088       break
6089     fi
6090   done
6091   IFS="$ac_save_ifs"
6092   MAGIC_CMD="$ac_save_MAGIC_CMD"
6093   ;;
6094 esac
6095 fi
6096
6097 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6098 if test -n "$MAGIC_CMD"; then
6099   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6100 echo "${ECHO_T}$MAGIC_CMD" >&6
6101 else
6102   echo "$as_me:$LINENO: result: no" >&5
6103 echo "${ECHO_T}no" >&6
6104 fi
6105
6106   else
6107     MAGIC_CMD=:
6108   fi
6109 fi
6110
6111   fi
6112   ;;
6113 esac
6114
6115 if test -n "$ac_tool_prefix"; then
6116   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6117 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6118 echo "$as_me:$LINENO: checking for $ac_word" >&5
6119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6120 if test "${ac_cv_prog_RANLIB+set}" = set; then
6121   echo $ECHO_N "(cached) $ECHO_C" >&6
6122 else
6123   if test -n "$RANLIB"; then
6124   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6125 else
6126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127 for as_dir in $PATH
6128 do
6129   IFS=$as_save_IFS
6130   test -z "$as_dir" && as_dir=.
6131   for ac_exec_ext in '' $ac_executable_extensions; do
6132   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6133     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6135     break 2
6136   fi
6137 done
6138 done
6139
6140 fi
6141 fi
6142 RANLIB=$ac_cv_prog_RANLIB
6143 if test -n "$RANLIB"; then
6144   echo "$as_me:$LINENO: result: $RANLIB" >&5
6145 echo "${ECHO_T}$RANLIB" >&6
6146 else
6147   echo "$as_me:$LINENO: result: no" >&5
6148 echo "${ECHO_T}no" >&6
6149 fi
6150
6151 fi
6152 if test -z "$ac_cv_prog_RANLIB"; then
6153   ac_ct_RANLIB=$RANLIB
6154   # Extract the first word of "ranlib", so it can be a program name with args.
6155 set dummy ranlib; ac_word=$2
6156 echo "$as_me:$LINENO: checking for $ac_word" >&5
6157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6158 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6159   echo $ECHO_N "(cached) $ECHO_C" >&6
6160 else
6161   if test -n "$ac_ct_RANLIB"; then
6162   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6163 else
6164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165 for as_dir in $PATH
6166 do
6167   IFS=$as_save_IFS
6168   test -z "$as_dir" && as_dir=.
6169   for ac_exec_ext in '' $ac_executable_extensions; do
6170   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6171     ac_cv_prog_ac_ct_RANLIB="ranlib"
6172     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6173     break 2
6174   fi
6175 done
6176 done
6177
6178   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6179 fi
6180 fi
6181 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6182 if test -n "$ac_ct_RANLIB"; then
6183   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6184 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6185 else
6186   echo "$as_me:$LINENO: result: no" >&5
6187 echo "${ECHO_T}no" >&6
6188 fi
6189
6190   RANLIB=$ac_ct_RANLIB
6191 else
6192   RANLIB="$ac_cv_prog_RANLIB"
6193 fi
6194
6195 if test -n "$ac_tool_prefix"; then
6196   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6197 set dummy ${ac_tool_prefix}strip; ac_word=$2
6198 echo "$as_me:$LINENO: checking for $ac_word" >&5
6199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6200 if test "${ac_cv_prog_STRIP+set}" = set; then
6201   echo $ECHO_N "(cached) $ECHO_C" >&6
6202 else
6203   if test -n "$STRIP"; then
6204   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6205 else
6206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6207 for as_dir in $PATH
6208 do
6209   IFS=$as_save_IFS
6210   test -z "$as_dir" && as_dir=.
6211   for ac_exec_ext in '' $ac_executable_extensions; do
6212   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6213     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6214     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6215     break 2
6216   fi
6217 done
6218 done
6219
6220 fi
6221 fi
6222 STRIP=$ac_cv_prog_STRIP
6223 if test -n "$STRIP"; then
6224   echo "$as_me:$LINENO: result: $STRIP" >&5
6225 echo "${ECHO_T}$STRIP" >&6
6226 else
6227   echo "$as_me:$LINENO: result: no" >&5
6228 echo "${ECHO_T}no" >&6
6229 fi
6230
6231 fi
6232 if test -z "$ac_cv_prog_STRIP"; then
6233   ac_ct_STRIP=$STRIP
6234   # Extract the first word of "strip", so it can be a program name with args.
6235 set dummy strip; ac_word=$2
6236 echo "$as_me:$LINENO: checking for $ac_word" >&5
6237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6238 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6239   echo $ECHO_N "(cached) $ECHO_C" >&6
6240 else
6241   if test -n "$ac_ct_STRIP"; then
6242   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6243 else
6244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245 for as_dir in $PATH
6246 do
6247   IFS=$as_save_IFS
6248   test -z "$as_dir" && as_dir=.
6249   for ac_exec_ext in '' $ac_executable_extensions; do
6250   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6251     ac_cv_prog_ac_ct_STRIP="strip"
6252     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6253     break 2
6254   fi
6255 done
6256 done
6257
6258   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6259 fi
6260 fi
6261 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6262 if test -n "$ac_ct_STRIP"; then
6263   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6264 echo "${ECHO_T}$ac_ct_STRIP" >&6
6265 else
6266   echo "$as_me:$LINENO: result: no" >&5
6267 echo "${ECHO_T}no" >&6
6268 fi
6269
6270   STRIP=$ac_ct_STRIP
6271 else
6272   STRIP="$ac_cv_prog_STRIP"
6273 fi
6274
6275
6276 # Check for any special flags to pass to ltconfig.
6277 libtool_flags="--cache-file=$cache_file"
6278 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
6279 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
6280 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
6281 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
6282 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
6283
6284
6285 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6286 if test "${enable_libtool_lock+set}" = set; then
6287   enableval="$enable_libtool_lock"
6288
6289 fi;
6290 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
6291 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
6292
6293
6294 # Check whether --with-pic or --without-pic was given.
6295 if test "${with_pic+set}" = set; then
6296   withval="$with_pic"
6297   pic_mode="$withval"
6298 else
6299   pic_mode=default
6300 fi;
6301 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
6302 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
6303
6304 # Some flags need to be propagated to the compiler or linker for good
6305 # libtool support.
6306 case $host in
6307 *-*-irix6*)
6308   # Find out which ABI we are using.
6309   echo '#line 6309 "configure"' > conftest.$ac_ext
6310   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6311   (eval $ac_compile) 2>&5
6312   ac_status=$?
6313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314   (exit $ac_status); }; then
6315    if test "$lt_cv_prog_gnu_ld" = yes; then
6316     case `/usr/bin/file conftest.$ac_objext` in
6317     *32-bit*)
6318       LD="${LD-ld} -melf32bsmip"
6319       ;;
6320     *N32*)
6321       LD="${LD-ld} -melf32bmipn32"
6322       ;;
6323     *64-bit*)
6324       LD="${LD-ld} -melf64bmip"
6325       ;;
6326     esac
6327    else
6328     case `/usr/bin/file conftest.$ac_objext` in
6329     *32-bit*)
6330       LD="${LD-ld} -32"
6331       ;;
6332     *N32*)
6333       LD="${LD-ld} -n32"
6334       ;;
6335     *64-bit*)
6336       LD="${LD-ld} -64"
6337       ;;
6338     esac
6339    fi
6340   fi
6341   rm -rf conftest*
6342   ;;
6343
6344 ia64-*-hpux*)
6345   # Find out which ABI we are using.
6346   echo 'int i;' > conftest.$ac_ext
6347   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6348   (eval $ac_compile) 2>&5
6349   ac_status=$?
6350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351   (exit $ac_status); }; then
6352     case "`/usr/bin/file conftest.o`" in
6353     *ELF-32*)
6354       HPUX_IA64_MODE="32"
6355       ;;
6356     *ELF-64*)
6357       HPUX_IA64_MODE="64"
6358       ;;
6359     esac
6360   fi
6361   rm -rf conftest*
6362   ;;
6363
6364 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6365   # Find out which ABI we are using.
6366   echo 'int i;' > conftest.$ac_ext
6367   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6368   (eval $ac_compile) 2>&5
6369   ac_status=$?
6370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371   (exit $ac_status); }; then
6372     case "`/usr/bin/file conftest.o`" in
6373     *32-bit*)
6374       case $host in
6375         x86_64-*linux*)
6376           LD="${LD-ld} -m elf_i386"
6377           ;;
6378         ppc64-*linux*|powerpc64-*linux*)
6379           LD="${LD-ld} -m elf32ppclinux"
6380           ;;
6381         s390x-*linux*)
6382           LD="${LD-ld} -m elf_s390"
6383           ;;
6384         sparc64-*linux*)
6385           LD="${LD-ld} -m elf32_sparc"
6386           ;;
6387       esac
6388       ;;
6389     *64-bit*)
6390       case $host in
6391         x86_64-*linux*)
6392           LD="${LD-ld} -m elf_x86_64"
6393           ;;
6394         ppc*-*linux*|powerpc*-*linux*)
6395           LD="${LD-ld} -m elf64ppc"
6396           ;;
6397         s390*-*linux*)
6398           LD="${LD-ld} -m elf64_s390"
6399           ;;
6400         sparc*-*linux*)
6401           LD="${LD-ld} -m elf64_sparc"
6402           ;;
6403       esac
6404       ;;
6405     esac
6406   fi
6407   rm -rf conftest*
6408   ;;
6409
6410 *-*-sco3.2v5*)
6411   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6412   SAVE_CFLAGS="$CFLAGS"
6413   CFLAGS="$CFLAGS -belf"
6414   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6415 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6416 if test "${lt_cv_cc_needs_belf+set}" = set; then
6417   echo $ECHO_N "(cached) $ECHO_C" >&6
6418 else
6419
6420
6421      ac_ext=c
6422 ac_cpp='$CPP $CPPFLAGS'
6423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6426
6427      cat >conftest.$ac_ext <<_ACEOF
6428 /* confdefs.h.  */
6429 _ACEOF
6430 cat confdefs.h >>conftest.$ac_ext
6431 cat >>conftest.$ac_ext <<_ACEOF
6432 /* end confdefs.h.  */
6433
6434 int
6435 main ()
6436 {
6437
6438   ;
6439   return 0;
6440 }
6441 _ACEOF
6442 rm -f conftest.$ac_objext conftest$ac_exeext
6443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6444   (eval $ac_link) 2>conftest.er1
6445   ac_status=$?
6446   grep -v '^ *+' conftest.er1 >conftest.err
6447   rm -f conftest.er1
6448   cat conftest.err >&5
6449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450   (exit $ac_status); } &&
6451          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6453   (eval $ac_try) 2>&5
6454   ac_status=$?
6455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456   (exit $ac_status); }; } &&
6457          { ac_try='test -s conftest$ac_exeext'
6458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6459   (eval $ac_try) 2>&5
6460   ac_status=$?
6461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462   (exit $ac_status); }; }; then
6463   lt_cv_cc_needs_belf=yes
6464 else
6465   echo "$as_me: failed program was:" >&5
6466 sed 's/^/| /' conftest.$ac_ext >&5
6467
6468 lt_cv_cc_needs_belf=no
6469 fi
6470 rm -f conftest.err conftest.$ac_objext \
6471       conftest$ac_exeext conftest.$ac_ext
6472      ac_ext=c
6473 ac_cpp='$CPP $CPPFLAGS'
6474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6477
6478 fi
6479 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6480 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6481   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6482     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6483     CFLAGS="$SAVE_CFLAGS"
6484   fi
6485   ;;
6486
6487
6488 esac
6489
6490
6491 # Save cache, so that ltconfig can load it
6492 cat >confcache <<\_ACEOF
6493 # This file is a shell script that caches the results of configure
6494 # tests run on this system so they can be shared between configure
6495 # scripts and configure runs, see configure's option --config-cache.
6496 # It is not useful on other systems.  If it contains results you don't
6497 # want to keep, you may remove or edit it.
6498 #
6499 # config.status only pays attention to the cache file if you give it
6500 # the --recheck option to rerun configure.
6501 #
6502 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6503 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6504 # following values.
6505
6506 _ACEOF
6507
6508 # The following way of writing the cache mishandles newlines in values,
6509 # but we know of no workaround that is simple, portable, and efficient.
6510 # So, don't put newlines in cache variables' values.
6511 # Ultrix sh set writes to stderr and can't be redirected directly,
6512 # and sets the high bit in the cache file unless we assign to the vars.
6513 {
6514   (set) 2>&1 |
6515     case `(ac_space=' '; set | grep ac_space) 2>&1` in
6516     *ac_space=\ *)
6517       # `set' does not quote correctly, so add quotes (double-quote
6518       # substitution turns \\\\ into \\, and sed turns \\ into \).
6519       sed -n \
6520         "s/'/'\\\\''/g;
6521           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6522       ;;
6523     *)
6524       # `set' quotes correctly as required by POSIX, so do not add quotes.
6525       sed -n \
6526         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6527       ;;
6528     esac;
6529 } |
6530   sed '
6531      t clear
6532      : clear
6533      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6534      t end
6535      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6536      : end' >>confcache
6537 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6538   if test -w $cache_file; then
6539     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6540     cat confcache >$cache_file
6541   else
6542     echo "not updating unwritable cache $cache_file"
6543   fi
6544 fi
6545 rm -f confcache
6546
6547 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
6548 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
6549 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6550 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6551 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6552 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6553 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
6554 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
6555 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
6556 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
6557 echo "$as_me: error: libtool configure failed" >&2;}
6558    { (exit 1); exit 1; }; }
6559
6560 # Reload cache, that may have been modified by ltconfig
6561 if test -r "$cache_file"; then
6562   # Some versions of bash will fail to source /dev/null (special
6563   # files actually), so we avoid doing that.
6564   if test -f "$cache_file"; then
6565     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
6566 echo "$as_me: loading cache $cache_file" >&6;}
6567     case $cache_file in
6568       [\\/]* | ?:[\\/]* ) . $cache_file;;
6569       *)                      . ./$cache_file;;
6570     esac
6571   fi
6572 else
6573   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
6574 echo "$as_me: creating cache $cache_file" >&6;}
6575   >$cache_file
6576 fi
6577
6578
6579 # This can be used to rebuild libtool when needed
6580 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
6581
6582 # Always use our own libtool.
6583 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6584
6585 # Redirect the config.log output again, so that the ltconfig log is not
6586 # clobbered by the next message.
6587 exec 5>>./config.log
6588
6589
6590
6591
6592
6593
6594
6595 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6596 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6597 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6598 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6599   echo $ECHO_N "(cached) $ECHO_C" >&6
6600 else
6601   cat >conftest.make <<\_ACEOF
6602 all:
6603         @echo 'ac_maketemp="$(MAKE)"'
6604 _ACEOF
6605 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6606 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6607 if test -n "$ac_maketemp"; then
6608   eval ac_cv_prog_make_${ac_make}_set=yes
6609 else
6610   eval ac_cv_prog_make_${ac_make}_set=no
6611 fi
6612 rm -f conftest.make
6613 fi
6614 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6615   echo "$as_me:$LINENO: result: yes" >&5
6616 echo "${ECHO_T}yes" >&6
6617   SET_MAKE=
6618 else
6619   echo "$as_me:$LINENO: result: no" >&5
6620 echo "${ECHO_T}no" >&6
6621   SET_MAKE="MAKE=${MAKE-make}"
6622 fi
6623
6624 # Find a good install program.  We prefer a C program (faster),
6625 # so one script is as good as another.  But avoid the broken or
6626 # incompatible versions:
6627 # SysV /etc/install, /usr/sbin/install
6628 # SunOS /usr/etc/install
6629 # IRIX /sbin/install
6630 # AIX /bin/install
6631 # AmigaOS /C/install, which installs bootblocks on floppy discs
6632 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6633 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6634 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6635 # OS/2's system install, which has a completely different semantic
6636 # ./install, which can be erroneously created by make from ./install.sh.
6637 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6638 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6639 if test -z "$INSTALL"; then
6640 if test "${ac_cv_path_install+set}" = set; then
6641   echo $ECHO_N "(cached) $ECHO_C" >&6
6642 else
6643   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644 for as_dir in $PATH
6645 do
6646   IFS=$as_save_IFS
6647   test -z "$as_dir" && as_dir=.
6648   # Account for people who put trailing slashes in PATH elements.
6649 case $as_dir/ in
6650   ./ | .// | /cC/* | \
6651   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6652   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6653   /usr/ucb/* ) ;;
6654   *)
6655     # OSF1 and SCO ODT 3.0 have their own names for install.
6656     # Don't use installbsd from OSF since it installs stuff as root
6657     # by default.
6658     for ac_prog in ginstall scoinst install; do
6659       for ac_exec_ext in '' $ac_executable_extensions; do
6660         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6661           if test $ac_prog = install &&
6662             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6663             # AIX install.  It has an incompatible calling convention.
6664             :
6665           elif test $ac_prog = install &&
6666             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6667             # program-specific install script used by HP pwplus--don't use.
6668             :
6669           else
6670             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6671             break 3
6672           fi
6673         fi
6674       done
6675     done
6676     ;;
6677 esac
6678 done
6679
6680
6681 fi
6682   if test "${ac_cv_path_install+set}" = set; then
6683     INSTALL=$ac_cv_path_install
6684   else
6685     # As a last resort, use the slow shell script.  We don't cache a
6686     # path for INSTALL within a source directory, because that will
6687     # break other packages using the cache if that directory is
6688     # removed, or if the path is relative.
6689     INSTALL=$ac_install_sh
6690   fi
6691 fi
6692 echo "$as_me:$LINENO: result: $INSTALL" >&5
6693 echo "${ECHO_T}$INSTALL" >&6
6694
6695 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6696 # It thinks the first close brace ends the variable substitution.
6697 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6698
6699 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6700
6701 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6702
6703
6704           ac_config_files="$ac_config_files Makefile"
6705 cat >confcache <<\_ACEOF
6706 # This file is a shell script that caches the results of configure
6707 # tests run on this system so they can be shared between configure
6708 # scripts and configure runs, see configure's option --config-cache.
6709 # It is not useful on other systems.  If it contains results you don't
6710 # want to keep, you may remove or edit it.
6711 #
6712 # config.status only pays attention to the cache file if you give it
6713 # the --recheck option to rerun configure.
6714 #
6715 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6716 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6717 # following values.
6718
6719 _ACEOF
6720
6721 # The following way of writing the cache mishandles newlines in values,
6722 # but we know of no workaround that is simple, portable, and efficient.
6723 # So, don't put newlines in cache variables' values.
6724 # Ultrix sh set writes to stderr and can't be redirected directly,
6725 # and sets the high bit in the cache file unless we assign to the vars.
6726 {
6727   (set) 2>&1 |
6728     case `(ac_space=' '; set | grep ac_space) 2>&1` in
6729     *ac_space=\ *)
6730       # `set' does not quote correctly, so add quotes (double-quote
6731       # substitution turns \\\\ into \\, and sed turns \\ into \).
6732       sed -n \
6733         "s/'/'\\\\''/g;
6734           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6735       ;;
6736     *)
6737       # `set' quotes correctly as required by POSIX, so do not add quotes.
6738       sed -n \
6739         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6740       ;;
6741     esac;
6742 } |
6743   sed '
6744      t clear
6745      : clear
6746      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6747      t end
6748      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6749      : end' >>confcache
6750 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6751   if test -w $cache_file; then
6752     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6753     cat confcache >$cache_file
6754   else
6755     echo "not updating unwritable cache $cache_file"
6756   fi
6757 fi
6758 rm -f confcache
6759
6760 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6761 # Let make expand exec_prefix.
6762 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6763
6764 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6765 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6766 # trailing colons and then remove the whole line if VPATH becomes empty
6767 # (actually we leave an empty line to preserve line numbers).
6768 if test "x$srcdir" = x.; then
6769   ac_vpsub='/^[  ]*VPATH[        ]*=/{
6770 s/:*\$(srcdir):*/:/;
6771 s/:*\${srcdir}:*/:/;
6772 s/:*@srcdir@:*/:/;
6773 s/^\([^=]*=[     ]*\):*/\1/;
6774 s/:*$//;
6775 s/^[^=]*=[       ]*$//;
6776 }'
6777 fi
6778
6779 DEFS=-DHAVE_CONFIG_H
6780
6781 ac_libobjs=
6782 ac_ltlibobjs=
6783 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6784   # 1. Remove the extension, and $U if already installed.
6785   ac_i=`echo "$ac_i" |
6786          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6787   # 2. Add them.
6788   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6789   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6790 done
6791 LIBOBJS=$ac_libobjs
6792
6793 LTLIBOBJS=$ac_ltlibobjs
6794
6795
6796 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6797   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
6798 Usually this means the macro was only invoked conditionally." >&5
6799 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
6800 Usually this means the macro was only invoked conditionally." >&2;}
6801    { (exit 1); exit 1; }; }
6802 fi
6803 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6804   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6805 Usually this means the macro was only invoked conditionally." >&5
6806 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6807 Usually this means the macro was only invoked conditionally." >&2;}
6808    { (exit 1); exit 1; }; }
6809 fi
6810 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6811   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6812 Usually this means the macro was only invoked conditionally." >&5
6813 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6814 Usually this means the macro was only invoked conditionally." >&2;}
6815    { (exit 1); exit 1; }; }
6816 fi
6817
6818 : ${CONFIG_STATUS=./config.status}
6819 ac_clean_files_save=$ac_clean_files
6820 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6821 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6822 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6823 cat >$CONFIG_STATUS <<_ACEOF
6824 #! $SHELL
6825 # Generated by $as_me.
6826 # Run this file to recreate the current configuration.
6827 # Compiler output produced by configure, useful for debugging
6828 # configure, is in config.log if it exists.
6829
6830 debug=false
6831 ac_cs_recheck=false
6832 ac_cs_silent=false
6833 SHELL=\${CONFIG_SHELL-$SHELL}
6834 _ACEOF
6835
6836 cat >>$CONFIG_STATUS <<\_ACEOF
6837 ## --------------------- ##
6838 ## M4sh Initialization.  ##
6839 ## --------------------- ##
6840
6841 # Be Bourne compatible
6842 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6843   emulate sh
6844   NULLCMD=:
6845   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6846   # is contrary to our usage.  Disable this feature.
6847   alias -g '${1+"$@"}'='"$@"'
6848 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6849   set -o posix
6850 fi
6851 DUALCASE=1; export DUALCASE # for MKS sh
6852
6853 # Support unset when possible.
6854 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6855   as_unset=unset
6856 else
6857   as_unset=false
6858 fi
6859
6860
6861 # Work around bugs in pre-3.0 UWIN ksh.
6862 $as_unset ENV MAIL MAILPATH
6863 PS1='$ '
6864 PS2='> '
6865 PS4='+ '
6866
6867 # NLS nuisances.
6868 for as_var in \
6869   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6870   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6871   LC_TELEPHONE LC_TIME
6872 do
6873   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6874     eval $as_var=C; export $as_var
6875   else
6876     $as_unset $as_var
6877   fi
6878 done
6879
6880 # Required to use basename.
6881 if expr a : '\(a\)' >/dev/null 2>&1; then
6882   as_expr=expr
6883 else
6884   as_expr=false
6885 fi
6886
6887 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6888   as_basename=basename
6889 else
6890   as_basename=false
6891 fi
6892
6893
6894 # Name of the executable.
6895 as_me=`$as_basename "$0" ||
6896 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6897          X"$0" : 'X\(//\)$' \| \
6898          X"$0" : 'X\(/\)$' \| \
6899          .     : '\(.\)' 2>/dev/null ||
6900 echo X/"$0" |
6901     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6902           /^X\/\(\/\/\)$/{ s//\1/; q; }
6903           /^X\/\(\/\).*/{ s//\1/; q; }
6904           s/.*/./; q'`
6905
6906
6907 # PATH needs CR, and LINENO needs CR and PATH.
6908 # Avoid depending upon Character Ranges.
6909 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6910 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6911 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6912 as_cr_digits='0123456789'
6913 as_cr_alnum=$as_cr_Letters$as_cr_digits
6914
6915 # The user is always right.
6916 if test "${PATH_SEPARATOR+set}" != set; then
6917   echo "#! /bin/sh" >conf$$.sh
6918   echo  "exit 0"   >>conf$$.sh
6919   chmod +x conf$$.sh
6920   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6921     PATH_SEPARATOR=';'
6922   else
6923     PATH_SEPARATOR=:
6924   fi
6925   rm -f conf$$.sh
6926 fi
6927
6928
6929   as_lineno_1=$LINENO
6930   as_lineno_2=$LINENO
6931   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6932   test "x$as_lineno_1" != "x$as_lineno_2" &&
6933   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
6934   # Find who we are.  Look in the path if we contain no path at all
6935   # relative or not.
6936   case $0 in
6937     *[\\/]* ) as_myself=$0 ;;
6938     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939 for as_dir in $PATH
6940 do
6941   IFS=$as_save_IFS
6942   test -z "$as_dir" && as_dir=.
6943   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6944 done
6945
6946        ;;
6947   esac
6948   # We did not find ourselves, most probably we were run as `sh COMMAND'
6949   # in which case we are not to be found in the path.
6950   if test "x$as_myself" = x; then
6951     as_myself=$0
6952   fi
6953   if test ! -f "$as_myself"; then
6954     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6955 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6956    { (exit 1); exit 1; }; }
6957   fi
6958   case $CONFIG_SHELL in
6959   '')
6960     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6962 do
6963   IFS=$as_save_IFS
6964   test -z "$as_dir" && as_dir=.
6965   for as_base in sh bash ksh sh5; do
6966          case $as_dir in
6967          /*)
6968            if ("$as_dir/$as_base" -c '
6969   as_lineno_1=$LINENO
6970   as_lineno_2=$LINENO
6971   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6972   test "x$as_lineno_1" != "x$as_lineno_2" &&
6973   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
6974              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6975              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6976              CONFIG_SHELL=$as_dir/$as_base
6977              export CONFIG_SHELL
6978              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6979            fi;;
6980          esac
6981        done
6982 done
6983 ;;
6984   esac
6985
6986   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6987   # uniformly replaced by the line number.  The first 'sed' inserts a
6988   # line-number line before each line; the second 'sed' does the real
6989   # work.  The second script uses 'N' to pair each line-number line
6990   # with the numbered line, and appends trailing '-' during
6991   # substitution so that $LINENO is not a special case at line end.
6992   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6993   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
6994   sed '=' <$as_myself |
6995     sed '
6996       N
6997       s,$,-,
6998       : loop
6999       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7000       t loop
7001       s,-$,,
7002       s,^['$as_cr_digits']*\n,,
7003     ' >$as_me.lineno &&
7004   chmod +x $as_me.lineno ||
7005     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7006 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7007    { (exit 1); exit 1; }; }
7008
7009   # Don't try to exec as it changes $[0], causing all sort of problems
7010   # (the dirname of $[0] is not the place where we might find the
7011   # original and so on.  Autoconf is especially sensible to this).
7012   . ./$as_me.lineno
7013   # Exit status is that of the last command.
7014   exit
7015 }
7016
7017
7018 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7019   *c*,-n*) ECHO_N= ECHO_C='
7020 ' ECHO_T='      ' ;;
7021   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7022   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
7023 esac
7024
7025 if expr a : '\(a\)' >/dev/null 2>&1; then
7026   as_expr=expr
7027 else
7028   as_expr=false
7029 fi
7030
7031 rm -f conf$$ conf$$.exe conf$$.file
7032 echo >conf$$.file
7033 if ln -s conf$$.file conf$$ 2>/dev/null; then
7034   # We could just check for DJGPP; but this test a) works b) is more generic
7035   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7036   if test -f conf$$.exe; then
7037     # Don't use ln at all; we don't have any links
7038     as_ln_s='cp -p'
7039   else
7040     as_ln_s='ln -s'
7041   fi
7042 elif ln conf$$.file conf$$ 2>/dev/null; then
7043   as_ln_s=ln
7044 else
7045   as_ln_s='cp -p'
7046 fi
7047 rm -f conf$$ conf$$.exe conf$$.file
7048
7049 if mkdir -p . 2>/dev/null; then
7050   as_mkdir_p=:
7051 else
7052   test -d ./-p && rmdir ./-p
7053   as_mkdir_p=false
7054 fi
7055
7056 as_executable_p="test -f"
7057
7058 # Sed expression to map a string onto a valid CPP name.
7059 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7060
7061 # Sed expression to map a string onto a valid variable name.
7062 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7063
7064
7065 # IFS
7066 # We need space, tab and new line, in precisely that order.
7067 as_nl='
7068 '
7069 IFS="   $as_nl"
7070
7071 # CDPATH.
7072 $as_unset CDPATH
7073
7074 exec 6>&1
7075
7076 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7077 # report actual input values of CONFIG_FILES etc. instead of their
7078 # values after options handling.  Logging --version etc. is OK.
7079 exec 5>>config.log
7080 {
7081   echo
7082   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7083 ## Running $as_me. ##
7084 _ASBOX
7085 } >&5
7086 cat >&5 <<_CSEOF
7087
7088 This file was extended by GNU Fortran Runtime Library $as_me 0.2, which was
7089 generated by GNU Autoconf 2.59.  Invocation command line was
7090
7091   CONFIG_FILES    = $CONFIG_FILES
7092   CONFIG_HEADERS  = $CONFIG_HEADERS
7093   CONFIG_LINKS    = $CONFIG_LINKS
7094   CONFIG_COMMANDS = $CONFIG_COMMANDS
7095   $ $0 $@
7096
7097 _CSEOF
7098 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7099 echo >&5
7100 _ACEOF
7101
7102 # Files that config.status was made for.
7103 if test -n "$ac_config_files"; then
7104   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7105 fi
7106
7107 if test -n "$ac_config_headers"; then
7108   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7109 fi
7110
7111 if test -n "$ac_config_links"; then
7112   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7113 fi
7114
7115 if test -n "$ac_config_commands"; then
7116   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7117 fi
7118
7119 cat >>$CONFIG_STATUS <<\_ACEOF
7120
7121 ac_cs_usage="\
7122 \`$as_me' instantiates files from templates according to the
7123 current configuration.
7124
7125 Usage: $0 [OPTIONS] [FILE]...
7126
7127   -h, --help       print this help, then exit
7128   -V, --version    print version number, then exit
7129   -q, --quiet      do not print progress messages
7130   -d, --debug      don't remove temporary files
7131       --recheck    update $as_me by reconfiguring in the same conditions
7132   --file=FILE[:TEMPLATE]
7133                    instantiate the configuration file FILE
7134   --header=FILE[:TEMPLATE]
7135                    instantiate the configuration header FILE
7136
7137 Configuration files:
7138 $config_files
7139
7140 Configuration headers:
7141 $config_headers
7142
7143 Configuration commands:
7144 $config_commands
7145
7146 Report bugs to <bug-autoconf@gnu.org>."
7147 _ACEOF
7148
7149 cat >>$CONFIG_STATUS <<_ACEOF
7150 ac_cs_version="\\
7151 GNU Fortran Runtime Library config.status 0.2
7152 configured by $0, generated by GNU Autoconf 2.59,
7153   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7154
7155 Copyright (C) 2003 Free Software Foundation, Inc.
7156 This config.status script is free software; the Free Software Foundation
7157 gives unlimited permission to copy, distribute and modify it."
7158 srcdir=$srcdir
7159 INSTALL="$INSTALL"
7160 _ACEOF
7161
7162 cat >>$CONFIG_STATUS <<\_ACEOF
7163 # If no file are specified by the user, then we need to provide default
7164 # value.  By we need to know if files were specified by the user.
7165 ac_need_defaults=:
7166 while test $# != 0
7167 do
7168   case $1 in
7169   --*=*)
7170     ac_option=`expr "x$1" : 'x\([^=]*\)='`
7171     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7172     ac_shift=:
7173     ;;
7174   -*)
7175     ac_option=$1
7176     ac_optarg=$2
7177     ac_shift=shift
7178     ;;
7179   *) # This is not an option, so the user has probably given explicit
7180      # arguments.
7181      ac_option=$1
7182      ac_need_defaults=false;;
7183   esac
7184
7185   case $ac_option in
7186   # Handling of the options.
7187 _ACEOF
7188 cat >>$CONFIG_STATUS <<\_ACEOF
7189   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7190     ac_cs_recheck=: ;;
7191   --version | --vers* | -V )
7192     echo "$ac_cs_version"; exit 0 ;;
7193   --he | --h)
7194     # Conflict between --help and --header
7195     { { echo "$as_me:$LINENO: error: ambiguous option: $1
7196 Try \`$0 --help' for more information." >&5
7197 echo "$as_me: error: ambiguous option: $1
7198 Try \`$0 --help' for more information." >&2;}
7199    { (exit 1); exit 1; }; };;
7200   --help | --hel | -h )
7201     echo "$ac_cs_usage"; exit 0 ;;
7202   --debug | --d* | -d )
7203     debug=: ;;
7204   --file | --fil | --fi | --f )
7205     $ac_shift
7206     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7207     ac_need_defaults=false;;
7208   --header | --heade | --head | --hea )
7209     $ac_shift
7210     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7211     ac_need_defaults=false;;
7212   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7213   | -silent | --silent | --silen | --sile | --sil | --si | --s)
7214     ac_cs_silent=: ;;
7215
7216   # This is an error.
7217   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7218 Try \`$0 --help' for more information." >&5
7219 echo "$as_me: error: unrecognized option: $1
7220 Try \`$0 --help' for more information." >&2;}
7221    { (exit 1); exit 1; }; } ;;
7222
7223   *) ac_config_targets="$ac_config_targets $1" ;;
7224
7225   esac
7226   shift
7227 done
7228
7229 ac_configure_extra_args=
7230
7231 if $ac_cs_silent; then
7232   exec 6>/dev/null
7233   ac_configure_extra_args="$ac_configure_extra_args --silent"
7234 fi
7235
7236 _ACEOF
7237 cat >>$CONFIG_STATUS <<_ACEOF
7238 if \$ac_cs_recheck; then
7239   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7240   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7241 fi
7242
7243 _ACEOF
7244
7245 cat >>$CONFIG_STATUS <<_ACEOF
7246 #
7247 # INIT-COMMANDS section.
7248 #
7249
7250 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7251
7252 _ACEOF
7253
7254
7255
7256 cat >>$CONFIG_STATUS <<\_ACEOF
7257 for ac_config_target in $ac_config_targets
7258 do
7259   case "$ac_config_target" in
7260   # Handling of arguments.
7261   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7262   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7263   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7264   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7265 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7266    { (exit 1); exit 1; }; };;
7267   esac
7268 done
7269
7270 # If the user did not use the arguments to specify the items to instantiate,
7271 # then the envvar interface is used.  Set only those that are not.
7272 # We use the long form for the default assignment because of an extremely
7273 # bizarre bug on SunOS 4.1.3.
7274 if $ac_need_defaults; then
7275   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7276   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7277   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7278 fi
7279
7280 # Have a temporary directory for convenience.  Make it in the build tree
7281 # simply because there is no reason to put it here, and in addition,
7282 # creating and moving files from /tmp can sometimes cause problems.
7283 # Create a temporary directory, and hook for its removal unless debugging.
7284 $debug ||
7285 {
7286   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7287   trap '{ (exit 1); exit 1; }' 1 2 13 15
7288 }
7289
7290 # Create a (secure) tmp directory for tmp files.
7291
7292 {
7293   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7294   test -n "$tmp" && test -d "$tmp"
7295 }  ||
7296 {
7297   tmp=./confstat$$-$RANDOM
7298   (umask 077 && mkdir $tmp)
7299 } ||
7300 {
7301    echo "$me: cannot create a temporary directory in ." >&2
7302    { (exit 1); exit 1; }
7303 }
7304
7305 _ACEOF
7306
7307 cat >>$CONFIG_STATUS <<_ACEOF
7308
7309 #
7310 # CONFIG_FILES section.
7311 #
7312
7313 # No need to generate the scripts if there are no CONFIG_FILES.
7314 # This happens for instance when ./config.status config.h
7315 if test -n "\$CONFIG_FILES"; then
7316   # Protect against being on the right side of a sed subst in config.status.
7317   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7318    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7319 s,@SHELL@,$SHELL,;t t
7320 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7321 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7322 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7323 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7324 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7325 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7326 s,@exec_prefix@,$exec_prefix,;t t
7327 s,@prefix@,$prefix,;t t
7328 s,@program_transform_name@,$program_transform_name,;t t
7329 s,@bindir@,$bindir,;t t
7330 s,@sbindir@,$sbindir,;t t
7331 s,@libexecdir@,$libexecdir,;t t
7332 s,@datadir@,$datadir,;t t
7333 s,@sysconfdir@,$sysconfdir,;t t
7334 s,@sharedstatedir@,$sharedstatedir,;t t
7335 s,@localstatedir@,$localstatedir,;t t
7336 s,@libdir@,$libdir,;t t
7337 s,@includedir@,$includedir,;t t
7338 s,@oldincludedir@,$oldincludedir,;t t
7339 s,@infodir@,$infodir,;t t
7340 s,@mandir@,$mandir,;t t
7341 s,@build_alias@,$build_alias,;t t
7342 s,@host_alias@,$host_alias,;t t
7343 s,@target_alias@,$target_alias,;t t
7344 s,@DEFS@,$DEFS,;t t
7345 s,@ECHO_C@,$ECHO_C,;t t
7346 s,@ECHO_N@,$ECHO_N,;t t
7347 s,@ECHO_T@,$ECHO_T,;t t
7348 s,@LIBS@,$LIBS,;t t
7349 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7350 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7351 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7352 s,@CYGPATH_W@,$CYGPATH_W,;t t
7353 s,@PACKAGE@,$PACKAGE,;t t
7354 s,@VERSION@,$VERSION,;t t
7355 s,@ACLOCAL@,$ACLOCAL,;t t
7356 s,@AUTOCONF@,$AUTOCONF,;t t
7357 s,@AUTOMAKE@,$AUTOMAKE,;t t
7358 s,@AUTOHEADER@,$AUTOHEADER,;t t
7359 s,@MAKEINFO@,$MAKEINFO,;t t
7360 s,@AMTAR@,$AMTAR,;t t
7361 s,@install_sh@,$install_sh,;t t
7362 s,@STRIP@,$STRIP,;t t
7363 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7364 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
7365 s,@mkdir_p@,$mkdir_p,;t t
7366 s,@AWK@,$AWK,;t t
7367 s,@SET_MAKE@,$SET_MAKE,;t t
7368 s,@am__leading_dot@,$am__leading_dot,;t t
7369 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
7370 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
7371 s,@MAINT@,$MAINT,;t t
7372 s,@enable_shared@,$enable_shared,;t t
7373 s,@enable_static@,$enable_static,;t t
7374 s,@CC@,$CC,;t t
7375 s,@CFLAGS@,$CFLAGS,;t t
7376 s,@LDFLAGS@,$LDFLAGS,;t t
7377 s,@CPPFLAGS@,$CPPFLAGS,;t t
7378 s,@ac_ct_CC@,$ac_ct_CC,;t t
7379 s,@EXEEXT@,$EXEEXT,;t t
7380 s,@OBJEXT@,$OBJEXT,;t t
7381 s,@DEPDIR@,$DEPDIR,;t t
7382 s,@am__include@,$am__include,;t t
7383 s,@am__quote@,$am__quote,;t t
7384 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
7385 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
7386 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
7387 s,@CCDEPMODE@,$CCDEPMODE,;t t
7388 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
7389 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
7390 s,@F77@,$F77,;t t
7391 s,@FFLAGS@,$FFLAGS,;t t
7392 s,@ac_ct_F77@,$ac_ct_F77,;t t
7393 s,@CPP@,$CPP,;t t
7394 s,@EGREP@,$EGREP,;t t
7395 s,@MATH_OBJ@,$MATH_OBJ,;t t
7396 s,@AR@,$AR,;t t
7397 s,@RANLIB@,$RANLIB,;t t
7398 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7399 s,@build@,$build,;t t
7400 s,@build_cpu@,$build_cpu,;t t
7401 s,@build_vendor@,$build_vendor,;t t
7402 s,@build_os@,$build_os,;t t
7403 s,@host@,$host,;t t
7404 s,@host_cpu@,$host_cpu,;t t
7405 s,@host_vendor@,$host_vendor,;t t
7406 s,@host_os@,$host_os,;t t
7407 s,@LN_S@,$LN_S,;t t
7408 s,@LIBTOOL@,$LIBTOOL,;t t
7409 s,@LIBOBJS@,$LIBOBJS,;t t
7410 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7411 CEOF
7412
7413 _ACEOF
7414
7415   cat >>$CONFIG_STATUS <<\_ACEOF
7416   # Split the substitutions into bite-sized pieces for seds with
7417   # small command number limits, like on Digital OSF/1 and HP-UX.
7418   ac_max_sed_lines=48
7419   ac_sed_frag=1 # Number of current file.
7420   ac_beg=1 # First line for current file.
7421   ac_end=$ac_max_sed_lines # Line after last line for current file.
7422   ac_more_lines=:
7423   ac_sed_cmds=
7424   while $ac_more_lines; do
7425     if test $ac_beg -gt 1; then
7426       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7427     else
7428       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7429     fi
7430     if test ! -s $tmp/subs.frag; then
7431       ac_more_lines=false
7432     else
7433       # The purpose of the label and of the branching condition is to
7434       # speed up the sed processing (if there are no `@' at all, there
7435       # is no need to browse any of the substitutions).
7436       # These are the two extra sed commands mentioned above.
7437       (echo ':t
7438   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7439       if test -z "$ac_sed_cmds"; then
7440         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7441       else
7442         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7443       fi
7444       ac_sed_frag=`expr $ac_sed_frag + 1`
7445       ac_beg=$ac_end
7446       ac_end=`expr $ac_end + $ac_max_sed_lines`
7447     fi
7448   done
7449   if test -z "$ac_sed_cmds"; then
7450     ac_sed_cmds=cat
7451   fi
7452 fi # test -n "$CONFIG_FILES"
7453
7454 _ACEOF
7455 cat >>$CONFIG_STATUS <<\_ACEOF
7456 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7457   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7458   case $ac_file in
7459   - | *:- | *:-:* ) # input from stdin
7460         cat >$tmp/stdin
7461         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7462         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7463   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7464         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7465   * )   ac_file_in=$ac_file.in ;;
7466   esac
7467
7468   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7469   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7470 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7471          X"$ac_file" : 'X\(//\)[^/]' \| \
7472          X"$ac_file" : 'X\(//\)$' \| \
7473          X"$ac_file" : 'X\(/\)' \| \
7474          .     : '\(.\)' 2>/dev/null ||
7475 echo X"$ac_file" |
7476     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7477           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7478           /^X\(\/\/\)$/{ s//\1/; q; }
7479           /^X\(\/\).*/{ s//\1/; q; }
7480           s/.*/./; q'`
7481   { if $as_mkdir_p; then
7482     mkdir -p "$ac_dir"
7483   else
7484     as_dir="$ac_dir"
7485     as_dirs=
7486     while test ! -d "$as_dir"; do
7487       as_dirs="$as_dir $as_dirs"
7488       as_dir=`(dirname "$as_dir") 2>/dev/null ||
7489 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7490          X"$as_dir" : 'X\(//\)[^/]' \| \
7491          X"$as_dir" : 'X\(//\)$' \| \
7492          X"$as_dir" : 'X\(/\)' \| \
7493          .     : '\(.\)' 2>/dev/null ||
7494 echo X"$as_dir" |
7495     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7496           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7497           /^X\(\/\/\)$/{ s//\1/; q; }
7498           /^X\(\/\).*/{ s//\1/; q; }
7499           s/.*/./; q'`
7500     done
7501     test ! -n "$as_dirs" || mkdir $as_dirs
7502   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7503 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7504    { (exit 1); exit 1; }; }; }
7505
7506   ac_builddir=.
7507
7508 if test "$ac_dir" != .; then
7509   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7510   # A "../" for each directory in $ac_dir_suffix.
7511   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7512 else
7513   ac_dir_suffix= ac_top_builddir=
7514 fi
7515
7516 case $srcdir in
7517   .)  # No --srcdir option.  We are building in place.
7518     ac_srcdir=.
7519     if test -z "$ac_top_builddir"; then
7520        ac_top_srcdir=.
7521     else
7522        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7523     fi ;;
7524   [\\/]* | ?:[\\/]* )  # Absolute path.
7525     ac_srcdir=$srcdir$ac_dir_suffix;
7526     ac_top_srcdir=$srcdir ;;
7527   *) # Relative path.
7528     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7529     ac_top_srcdir=$ac_top_builddir$srcdir ;;
7530 esac
7531
7532 # Do not use `cd foo && pwd` to compute absolute paths, because
7533 # the directories may not exist.
7534 case `pwd` in
7535 .) ac_abs_builddir="$ac_dir";;
7536 *)
7537   case "$ac_dir" in
7538   .) ac_abs_builddir=`pwd`;;
7539   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7540   *) ac_abs_builddir=`pwd`/"$ac_dir";;
7541   esac;;
7542 esac
7543 case $ac_abs_builddir in
7544 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7545 *)
7546   case ${ac_top_builddir}. in
7547   .) ac_abs_top_builddir=$ac_abs_builddir;;
7548   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7549   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7550   esac;;
7551 esac
7552 case $ac_abs_builddir in
7553 .) ac_abs_srcdir=$ac_srcdir;;
7554 *)
7555   case $ac_srcdir in
7556   .) ac_abs_srcdir=$ac_abs_builddir;;
7557   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7558   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7559   esac;;
7560 esac
7561 case $ac_abs_builddir in
7562 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7563 *)
7564   case $ac_top_srcdir in
7565   .) ac_abs_top_srcdir=$ac_abs_builddir;;
7566   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7567   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7568   esac;;
7569 esac
7570
7571
7572   case $INSTALL in
7573   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7574   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7575   esac
7576
7577   # Let's still pretend it is `configure' which instantiates (i.e., don't
7578   # use $as_me), people would be surprised to read:
7579   #    /* config.h.  Generated by config.status.  */
7580   if test x"$ac_file" = x-; then
7581     configure_input=
7582   else
7583     configure_input="$ac_file.  "
7584   fi
7585   configure_input=$configure_input"Generated from `echo $ac_file_in |
7586                                      sed 's,.*/,,'` by configure."
7587
7588   # First look for the input files in the build tree, otherwise in the
7589   # src tree.
7590   ac_file_inputs=`IFS=:
7591     for f in $ac_file_in; do
7592       case $f in
7593       -) echo $tmp/stdin ;;
7594       [\\/$]*)
7595          # Absolute (can't be DOS-style, as IFS=:)
7596          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7597 echo "$as_me: error: cannot find input file: $f" >&2;}
7598    { (exit 1); exit 1; }; }
7599          echo "$f";;
7600       *) # Relative
7601          if test -f "$f"; then
7602            # Build tree
7603            echo "$f"
7604          elif test -f "$srcdir/$f"; then
7605            # Source tree
7606            echo "$srcdir/$f"
7607          else
7608            # /dev/null tree
7609            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7610 echo "$as_me: error: cannot find input file: $f" >&2;}
7611    { (exit 1); exit 1; }; }
7612          fi;;
7613       esac
7614     done` || { (exit 1); exit 1; }
7615
7616   if test x"$ac_file" != x-; then
7617     { echo "$as_me:$LINENO: creating $ac_file" >&5
7618 echo "$as_me: creating $ac_file" >&6;}
7619     rm -f "$ac_file"
7620   fi
7621 _ACEOF
7622 cat >>$CONFIG_STATUS <<_ACEOF
7623   sed "$ac_vpsub
7624 $extrasub
7625 _ACEOF
7626 cat >>$CONFIG_STATUS <<\_ACEOF
7627 :t
7628 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7629 s,@configure_input@,$configure_input,;t t
7630 s,@srcdir@,$ac_srcdir,;t t
7631 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7632 s,@top_srcdir@,$ac_top_srcdir,;t t
7633 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7634 s,@builddir@,$ac_builddir,;t t
7635 s,@abs_builddir@,$ac_abs_builddir,;t t
7636 s,@top_builddir@,$ac_top_builddir,;t t
7637 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7638 s,@INSTALL@,$ac_INSTALL,;t t
7639 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7640   rm -f $tmp/stdin
7641   if test x"$ac_file" != x-; then
7642     mv $tmp/out $ac_file
7643   else
7644     cat $tmp/out
7645     rm -f $tmp/out
7646   fi
7647
7648 done
7649 _ACEOF
7650 cat >>$CONFIG_STATUS <<\_ACEOF
7651
7652 #
7653 # CONFIG_HEADER section.
7654 #
7655
7656 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7657 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7658 #
7659 # ac_d sets the value in "#define NAME VALUE" lines.
7660 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
7661 ac_dB='[         ].*$,\1#\2'
7662 ac_dC=' '
7663 ac_dD=',;t'
7664 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7665 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
7666 ac_uB='$,\1#\2define\3'
7667 ac_uC=' '
7668 ac_uD=',;t'
7669
7670 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7671   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7672   case $ac_file in
7673   - | *:- | *:-:* ) # input from stdin
7674         cat >$tmp/stdin
7675         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7676         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7677   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7678         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7679   * )   ac_file_in=$ac_file.in ;;
7680   esac
7681
7682   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7683 echo "$as_me: creating $ac_file" >&6;}
7684
7685   # First look for the input files in the build tree, otherwise in the
7686   # src tree.
7687   ac_file_inputs=`IFS=:
7688     for f in $ac_file_in; do
7689       case $f in
7690       -) echo $tmp/stdin ;;
7691       [\\/$]*)
7692          # Absolute (can't be DOS-style, as IFS=:)
7693          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7694 echo "$as_me: error: cannot find input file: $f" >&2;}
7695    { (exit 1); exit 1; }; }
7696          # Do quote $f, to prevent DOS paths from being IFS'd.
7697          echo "$f";;
7698       *) # Relative
7699          if test -f "$f"; then
7700            # Build tree
7701            echo "$f"
7702          elif test -f "$srcdir/$f"; then
7703            # Source tree
7704            echo "$srcdir/$f"
7705          else
7706            # /dev/null tree
7707            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7708 echo "$as_me: error: cannot find input file: $f" >&2;}
7709    { (exit 1); exit 1; }; }
7710          fi;;
7711       esac
7712     done` || { (exit 1); exit 1; }
7713   # Remove the trailing spaces.
7714   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
7715
7716 _ACEOF
7717
7718 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7719 # `conftest.undefs', that substitutes the proper values into
7720 # config.h.in to produce config.h.  The first handles `#define'
7721 # templates, and the second `#undef' templates.
7722 # And first: Protect against being on the right side of a sed subst in
7723 # config.status.  Protect against being in an unquoted here document
7724 # in config.status.
7725 rm -f conftest.defines conftest.undefs
7726 # Using a here document instead of a string reduces the quoting nightmare.
7727 # Putting comments in sed scripts is not portable.
7728 #
7729 # `end' is used to avoid that the second main sed command (meant for
7730 # 0-ary CPP macros) applies to n-ary macro definitions.
7731 # See the Autoconf documentation for `clear'.
7732 cat >confdef2sed.sed <<\_ACEOF
7733 s/[\\&,]/\\&/g
7734 s,[\\$`],\\&,g
7735 t clear
7736 : clear
7737 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7738 t end
7739 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7740 : end
7741 _ACEOF
7742 # If some macros were called several times there might be several times
7743 # the same #defines, which is useless.  Nevertheless, we may not want to
7744 # sort them, since we want the *last* AC-DEFINE to be honored.
7745 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7746 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7747 rm -f confdef2sed.sed
7748
7749 # This sed command replaces #undef with comments.  This is necessary, for
7750 # example, in the case of _POSIX_SOURCE, which is predefined and required
7751 # on some systems where configure will not decide to define it.
7752 cat >>conftest.undefs <<\_ACEOF
7753 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7754 _ACEOF
7755
7756 # Break up conftest.defines because some shells have a limit on the size
7757 # of here documents, and old seds have small limits too (100 cmds).
7758 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7759 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7760 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7761 echo '  :' >>$CONFIG_STATUS
7762 rm -f conftest.tail
7763 while grep . conftest.defines >/dev/null
7764 do
7765   # Write a limited-size here document to $tmp/defines.sed.
7766   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7767   # Speed up: don't consider the non `#define' lines.
7768   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
7769   # Work around the forget-to-reset-the-flag bug.
7770   echo 't clr' >>$CONFIG_STATUS
7771   echo ': clr' >>$CONFIG_STATUS
7772   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7773   echo 'CEOF
7774   sed -f $tmp/defines.sed $tmp/in >$tmp/out
7775   rm -f $tmp/in
7776   mv $tmp/out $tmp/in
7777 ' >>$CONFIG_STATUS
7778   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7779   rm -f conftest.defines
7780   mv conftest.tail conftest.defines
7781 done
7782 rm -f conftest.defines
7783 echo '  fi # grep' >>$CONFIG_STATUS
7784 echo >>$CONFIG_STATUS
7785
7786 # Break up conftest.undefs because some shells have a limit on the size
7787 # of here documents, and old seds have small limits too (100 cmds).
7788 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
7789 rm -f conftest.tail
7790 while grep . conftest.undefs >/dev/null
7791 do
7792   # Write a limited-size here document to $tmp/undefs.sed.
7793   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7794   # Speed up: don't consider the non `#undef'
7795   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
7796   # Work around the forget-to-reset-the-flag bug.
7797   echo 't clr' >>$CONFIG_STATUS
7798   echo ': clr' >>$CONFIG_STATUS
7799   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7800   echo 'CEOF
7801   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7802   rm -f $tmp/in
7803   mv $tmp/out $tmp/in
7804 ' >>$CONFIG_STATUS
7805   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7806   rm -f conftest.undefs
7807   mv conftest.tail conftest.undefs
7808 done
7809 rm -f conftest.undefs
7810
7811 cat >>$CONFIG_STATUS <<\_ACEOF
7812   # Let's still pretend it is `configure' which instantiates (i.e., don't
7813   # use $as_me), people would be surprised to read:
7814   #    /* config.h.  Generated by config.status.  */
7815   if test x"$ac_file" = x-; then
7816     echo "/* Generated by configure.  */" >$tmp/config.h
7817   else
7818     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
7819   fi
7820   cat $tmp/in >>$tmp/config.h
7821   rm -f $tmp/in
7822   if test x"$ac_file" != x-; then
7823     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7824       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7825 echo "$as_me: $ac_file is unchanged" >&6;}
7826     else
7827       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7828 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7829          X"$ac_file" : 'X\(//\)[^/]' \| \
7830          X"$ac_file" : 'X\(//\)$' \| \
7831          X"$ac_file" : 'X\(/\)' \| \
7832          .     : '\(.\)' 2>/dev/null ||
7833 echo X"$ac_file" |
7834     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7835           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7836           /^X\(\/\/\)$/{ s//\1/; q; }
7837           /^X\(\/\).*/{ s//\1/; q; }
7838           s/.*/./; q'`
7839       { if $as_mkdir_p; then
7840     mkdir -p "$ac_dir"
7841   else
7842     as_dir="$ac_dir"
7843     as_dirs=
7844     while test ! -d "$as_dir"; do
7845       as_dirs="$as_dir $as_dirs"
7846       as_dir=`(dirname "$as_dir") 2>/dev/null ||
7847 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7848          X"$as_dir" : 'X\(//\)[^/]' \| \
7849          X"$as_dir" : 'X\(//\)$' \| \
7850          X"$as_dir" : 'X\(/\)' \| \
7851          .     : '\(.\)' 2>/dev/null ||
7852 echo X"$as_dir" |
7853     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7854           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7855           /^X\(\/\/\)$/{ s//\1/; q; }
7856           /^X\(\/\).*/{ s//\1/; q; }
7857           s/.*/./; q'`
7858     done
7859     test ! -n "$as_dirs" || mkdir $as_dirs
7860   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7861 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7862    { (exit 1); exit 1; }; }; }
7863
7864       rm -f $ac_file
7865       mv $tmp/config.h $ac_file
7866     fi
7867   else
7868     cat $tmp/config.h
7869     rm -f $tmp/config.h
7870   fi
7871 # Compute $ac_file's index in $config_headers.
7872 _am_stamp_count=1
7873 for _am_header in $config_headers :; do
7874   case $_am_header in
7875     $ac_file | $ac_file:* )
7876       break ;;
7877     * )
7878       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7879   esac
7880 done
7881 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
7882 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7883          X$ac_file : 'X\(//\)[^/]' \| \
7884          X$ac_file : 'X\(//\)$' \| \
7885          X$ac_file : 'X\(/\)' \| \
7886          .     : '\(.\)' 2>/dev/null ||
7887 echo X$ac_file |
7888     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7889           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7890           /^X\(\/\/\)$/{ s//\1/; q; }
7891           /^X\(\/\).*/{ s//\1/; q; }
7892           s/.*/./; q'`/stamp-h$_am_stamp_count
7893 done
7894 _ACEOF
7895 cat >>$CONFIG_STATUS <<\_ACEOF
7896
7897 #
7898 # CONFIG_COMMANDS section.
7899 #
7900 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7901   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7902   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7903   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7904 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7905          X"$ac_dest" : 'X\(//\)[^/]' \| \
7906          X"$ac_dest" : 'X\(//\)$' \| \
7907          X"$ac_dest" : 'X\(/\)' \| \
7908          .     : '\(.\)' 2>/dev/null ||
7909 echo X"$ac_dest" |
7910     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7911           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7912           /^X\(\/\/\)$/{ s//\1/; q; }
7913           /^X\(\/\).*/{ s//\1/; q; }
7914           s/.*/./; q'`
7915   { if $as_mkdir_p; then
7916     mkdir -p "$ac_dir"
7917   else
7918     as_dir="$ac_dir"
7919     as_dirs=
7920     while test ! -d "$as_dir"; do
7921       as_dirs="$as_dir $as_dirs"
7922       as_dir=`(dirname "$as_dir") 2>/dev/null ||
7923 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7924          X"$as_dir" : 'X\(//\)[^/]' \| \
7925          X"$as_dir" : 'X\(//\)$' \| \
7926          X"$as_dir" : 'X\(/\)' \| \
7927          .     : '\(.\)' 2>/dev/null ||
7928 echo X"$as_dir" |
7929     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7930           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7931           /^X\(\/\/\)$/{ s//\1/; q; }
7932           /^X\(\/\).*/{ s//\1/; q; }
7933           s/.*/./; q'`
7934     done
7935     test ! -n "$as_dirs" || mkdir $as_dirs
7936   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7937 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7938    { (exit 1); exit 1; }; }; }
7939
7940   ac_builddir=.
7941
7942 if test "$ac_dir" != .; then
7943   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7944   # A "../" for each directory in $ac_dir_suffix.
7945   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7946 else
7947   ac_dir_suffix= ac_top_builddir=
7948 fi
7949
7950 case $srcdir in
7951   .)  # No --srcdir option.  We are building in place.
7952     ac_srcdir=.
7953     if test -z "$ac_top_builddir"; then
7954        ac_top_srcdir=.
7955     else
7956        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7957     fi ;;
7958   [\\/]* | ?:[\\/]* )  # Absolute path.
7959     ac_srcdir=$srcdir$ac_dir_suffix;
7960     ac_top_srcdir=$srcdir ;;
7961   *) # Relative path.
7962     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7963     ac_top_srcdir=$ac_top_builddir$srcdir ;;
7964 esac
7965
7966 # Do not use `cd foo && pwd` to compute absolute paths, because
7967 # the directories may not exist.
7968 case `pwd` in
7969 .) ac_abs_builddir="$ac_dir";;
7970 *)
7971   case "$ac_dir" in
7972   .) ac_abs_builddir=`pwd`;;
7973   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7974   *) ac_abs_builddir=`pwd`/"$ac_dir";;
7975   esac;;
7976 esac
7977 case $ac_abs_builddir in
7978 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7979 *)
7980   case ${ac_top_builddir}. in
7981   .) ac_abs_top_builddir=$ac_abs_builddir;;
7982   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7983   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7984   esac;;
7985 esac
7986 case $ac_abs_builddir in
7987 .) ac_abs_srcdir=$ac_srcdir;;
7988 *)
7989   case $ac_srcdir in
7990   .) ac_abs_srcdir=$ac_abs_builddir;;
7991   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7992   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7993   esac;;
7994 esac
7995 case $ac_abs_builddir in
7996 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7997 *)
7998   case $ac_top_srcdir in
7999   .) ac_abs_top_srcdir=$ac_abs_builddir;;
8000   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8001   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8002   esac;;
8003 esac
8004
8005
8006   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8007 echo "$as_me: executing $ac_dest commands" >&6;}
8008   case $ac_dest in
8009     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8010   # Strip MF so we end up with the name of the file.
8011   mf=`echo "$mf" | sed -e 's/:.*$//'`
8012   # Check whether this is an Automake generated Makefile or not.
8013   # We used to match only the files named `Makefile.in', but
8014   # some people rename them; so instead we look at the file content.
8015   # Grep'ing the first line is not enough: some people post-process
8016   # each Makefile.in and add a new line on top of each file to say so.
8017   # So let's grep whole file.
8018   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
8019     dirpart=`(dirname "$mf") 2>/dev/null ||
8020 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8021          X"$mf" : 'X\(//\)[^/]' \| \
8022          X"$mf" : 'X\(//\)$' \| \
8023          X"$mf" : 'X\(/\)' \| \
8024          .     : '\(.\)' 2>/dev/null ||
8025 echo X"$mf" |
8026     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8027           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8028           /^X\(\/\/\)$/{ s//\1/; q; }
8029           /^X\(\/\).*/{ s//\1/; q; }
8030           s/.*/./; q'`
8031   else
8032     continue
8033   fi
8034   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
8035   # Extract the definition of DEP_FILES from the Makefile without
8036   # running `make'.
8037   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
8038   test -z "$DEPDIR" && continue
8039   # When using ansi2knr, U may be empty or an underscore; expand it
8040   U=`sed -n -e '/^U = / s///p' < "$mf"`
8041   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
8042   # We invoke sed twice because it is the simplest approach to
8043   # changing $(DEPDIR) to its actual value in the expansion.
8044   for file in `sed -n -e '
8045     /^DEP_FILES = .*\\\\$/ {
8046       s/^DEP_FILES = //
8047       :loop
8048         s/\\\\$//
8049         p
8050         n
8051         /\\\\$/ b loop
8052       p
8053     }
8054     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
8055        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8056     # Make sure the directory exists.
8057     test -f "$dirpart/$file" && continue
8058     fdir=`(dirname "$file") 2>/dev/null ||
8059 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8060          X"$file" : 'X\(//\)[^/]' \| \
8061          X"$file" : 'X\(//\)$' \| \
8062          X"$file" : 'X\(/\)' \| \
8063          .     : '\(.\)' 2>/dev/null ||
8064 echo X"$file" |
8065     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8066           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8067           /^X\(\/\/\)$/{ s//\1/; q; }
8068           /^X\(\/\).*/{ s//\1/; q; }
8069           s/.*/./; q'`
8070     { if $as_mkdir_p; then
8071     mkdir -p $dirpart/$fdir
8072   else
8073     as_dir=$dirpart/$fdir
8074     as_dirs=
8075     while test ! -d "$as_dir"; do
8076       as_dirs="$as_dir $as_dirs"
8077       as_dir=`(dirname "$as_dir") 2>/dev/null ||
8078 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8079          X"$as_dir" : 'X\(//\)[^/]' \| \
8080          X"$as_dir" : 'X\(//\)$' \| \
8081          X"$as_dir" : 'X\(/\)' \| \
8082          .     : '\(.\)' 2>/dev/null ||
8083 echo X"$as_dir" |
8084     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8085           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8086           /^X\(\/\/\)$/{ s//\1/; q; }
8087           /^X\(\/\).*/{ s//\1/; q; }
8088           s/.*/./; q'`
8089     done
8090     test ! -n "$as_dirs" || mkdir $as_dirs
8091   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
8092 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
8093    { (exit 1); exit 1; }; }; }
8094
8095     # echo "creating $dirpart/$file"
8096     echo '# dummy' > "$dirpart/$file"
8097   done
8098 done
8099  ;;
8100   esac
8101 done
8102 _ACEOF
8103
8104 cat >>$CONFIG_STATUS <<\_ACEOF
8105
8106 { (exit 0); exit 0; }
8107 _ACEOF
8108 chmod +x $CONFIG_STATUS
8109 ac_clean_files=$ac_clean_files_save
8110
8111
8112 # configure is writing to config.log, and then calls config.status.
8113 # config.status does its own redirection, appending to config.log.
8114 # Unfortunately, on DOS this fails, as config.log is still kept open
8115 # by configure, so config.status won't be able to write to it; its
8116 # output is simply discarded.  So we exec the FD to /dev/null,
8117 # effectively closing config.log, so it can be properly (re)opened and
8118 # appended to by config.status.  When coming back to configure, we
8119 # need to make the FD available again.
8120 if test "$no_create" != yes; then
8121   ac_cs_success=:
8122   ac_config_status_args=
8123   test "$silent" = yes &&
8124     ac_config_status_args="$ac_config_status_args --quiet"
8125   exec 5>/dev/null
8126   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8127   exec 5>>config.log
8128   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8129   # would make configure fail if this is the last instruction.
8130   $ac_cs_success || { (exit 1); exit 1; }
8131 fi
8132
8133