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